Home
last modified time | relevance | path

Searched refs:field_options (Results 1 – 3 of 3) sorted by relevance

/external/nanopb-c/generator/
Dnanopb_generator.py162 def __init__(self, struct_name, desc, field_options): argument
175 if field_options.HasField("max_size"):
176 self.max_size = field_options.max_size
178 if field_options.HasField("max_count"):
179 self.max_count = field_options.max_count
208 if field_options.type == nanopb_pb2.FT_DEFAULT:
210 field_options.type = nanopb_pb2.FT_STATIC
212 field_options.type = nanopb_pb2.FT_CALLBACK
214 if field_options.type == nanopb_pb2.FT_STATIC and not can_be_static:
218 if field_options.type == nanopb_pb2.FT_STATIC:
[all …]
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_test.py156 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/
Dpython_generator.cc1207 string field_options = OptionsValue( in FixOptionsForField() local
1209 if (field_options != "None") { in FixOptionsForField()
1223 PrintDescriptorOptionsFixingCode(field_name, field_options, printer_); in FixOptionsForField()