HomeSort by relevance Sort by last modified time
    Searched refs:field_options (Results 1 - 4 of 4) sorted by null

  /external/nanopb-c/generator/
nanopb_generator.py 267 def __init__(self, struct_name, desc, field_options):
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_coun
    [all...]
  /external/grpc-grpc/third_party/nanopb/generator/
nanopb_generator.py 231 def __init__(self, struct_name, desc, field_options):
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_CALLBAC
    [all...]
  /external/protobuf/python/google/protobuf/internal/
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])
    [all...]
  /external/protobuf/src/google/protobuf/compiler/python/
python_generator.cc 1264 string field_options = OptionsValue( local
    [all...]

Completed in 103 milliseconds