Lines Matching refs:field_options
162 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:
220 elif field_options.type == nanopb_pb2.FT_POINTER:
222 elif field_options.type == nanopb_pb2.FT_CALLBACK:
225 raise NotImplementedError(field_options.type)
419 def __init__(self, struct_name, range_start, field_options): argument
453 def __init__(self, struct_name, desc, field_options): argument
456 Field.__init__(self, self.fullname + 'struct', desc, field_options)
508 field_options = get_nanopb_suboptions(f, message_options, self.name + f.name)
509 if field_options.type != nanopb_pb2.FT_IGNORE:
510 self.fields.append(Field(self.name, f, field_options))
513 field_options = get_nanopb_suboptions(desc, message_options, self.name + 'extensions')
515 if field_options.type != nanopb_pb2.FT_IGNORE:
516 self.fields.append(ExtensionRange(self.name, range_start, field_options))
648 field_options = get_nanopb_suboptions(extension, file_options, names)
649 if field_options.type != nanopb_pb2.FT_IGNORE:
650 extensions.append(ExtensionField(names, extension, field_options))