Lines Matching refs:field
42 # Holds information about a protobuf message field.
45 # repeated: Whether the field is a repeated field.
46 # type_: The type of the field. E.g. int32.
47 # name: The name of the field.
69 """Adds a new field to the message.
73 field_type: The type of the field. E.g. int32.
74 field_name: The name of the field.
151 # Look for a message field definition.
376 for field in message.fields:
377 if field.repeated:
378 value_get = repeated_field_get % {'name': field.name}
381 value_get = singular_field_get % {'name': field.name}
383 if field.type_ in formats:
384 value_format = formats[field.type_] % {'value': value_get}
387 impl_file.write(field_code % {'name': field.name,