FieldDescriptorProto
Describes a field within a message.
Types
Properties
For numeric types, contains the original text representation of the value. For booleans, "true" or "false". For strings, contains the default text contents (not escaped in any way). For bytes, contains the C escaped value. All bytes >= 128 are escaped.
Returns the value of the defaultValue field if present, otherwise null.
Returns the value of the extendee field if present, otherwise null.
Returns the value of the jsonName field if present, otherwise null.
Returns the value of the label field if present, otherwise null.
Returns the value of the name field if present, otherwise null.
Returns the value of the number field if present, otherwise null.
If set, gives the index of a oneof in the containing type's oneof_decl list. This field is a member of that oneof.
Returns the value of the oneofIndex field if present, otherwise null.
Returns the value of the options field if present, otherwise null.
Returns the field-presence view for this FieldDescriptorProto instance.
If true, this is a proto3 "optional". When a proto3 field is optional, it tracks presence regardless of field type.
Returns the value of the proto3Optional field if present, otherwise null.
If type_name is set, this need not be set. If both this and type_name are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
For message and enum types, this is the name of the type. If the name starts with a '.', it is fully-qualified. Otherwise, C++-like scoping rules are used to find the type (i.e. first the nested types within this message are searched, then within the parent, on up to the root namespace).
Returns the value of the typeName field if present, otherwise null.
Returns the value of the type field if present, otherwise null.
Functions
Copies the original message, including unknown fields.