Searched refs:field_options (Results 1 – 4 of 4) sorted by relevance
/external/nanopb-c/generator/ |
D | nanopb_generator.py | 267 def __init__(self, struct_name, desc, field_options): argument 281 if field_options.type == nanopb_pb2.FT_INLINE: 285 field_options.type = nanopb_pb2.FT_STATIC 286 field_options.fixed_length = True 289 if field_options.HasField("max_size"): 290 self.max_size = field_options.max_size 292 if desc.type == FieldD.TYPE_STRING and field_options.HasField("max_length"): 294 self.max_size = field_options.max_length + 1 296 if field_options.HasField("max_count"): 297 self.max_count = field_options.max_count [all …]
|
/external/grpc-grpc/third_party/nanopb/generator/ |
D | nanopb_generator.py | 231 def __init__(self, struct_name, desc, field_options): argument 245 if field_options.type == nanopb_pb2.FT_INLINE: 246 field_options.type = nanopb_pb2.FT_STATIC 250 if field_options.HasField("max_size"): 251 self.max_size = field_options.max_size 253 if field_options.HasField("max_count"): 254 self.max_count = field_options.max_count 283 if field_options.type == nanopb_pb2.FT_DEFAULT: 285 field_options.type = nanopb_pb2.FT_STATIC 287 field_options.type = nanopb_pb2.FT_CALLBACK [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | descriptor_test.py | 156 field_options = field_descriptor.GetOptions() 158 self.assertEqual(8765432109, field_options.Extensions[field_opt1]) 160 self.assertEqual(42, field_options.Extensions[field_opt2])
|
/external/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 1264 string field_options = OptionsValue( in FixOptionsForField() local 1266 if (field_options != "None") { in FixOptionsForField() 1280 PrintDescriptorOptionsFixingCode(field_name, field_options, printer_); in FixOptionsForField()
|