goog.proto2.FieldDescriptor |
messageType
: Function
Constructor for the message
class to which the field described by this class belongs.
|
tag
: number | string
The field's tag index.
|
metadata
: Object
The metadata about this field that will be used
to construct this descriptor.
|
Returns true if simple conversions between numbers and strings are permitted
during deserialization for this field.
Returns: boolean
Whether conversion is permitted.
|
code » | |
Returns the descriptor describing the message that defined this field.
Returns: goog.proto2.Descriptor
The descriptor.
|
code » | |
![]()
Returns the default value of this field.
Returns: *
The default value.
|
code » | |
Returns the descriptor of the message type of this field. Only valid
for fields of type GROUP and MESSAGE.
Returns: goog.proto2.Descriptor
The message descriptor.
|
code » | |
![]()
Returns the field type of the field described by this descriptor.
Returns: goog.proto2.FieldDescriptor.FieldType
The field type.
|
code » | |
Returns the name of the field that this descriptor represents.
Returns: string
The name.
|
code » | |
Returns the native (i.e. ECMAScript) type of the field described by this
descriptor.
Returns: Object
The native type.
|
code » | |
Returns the tag of the field that this descriptor represents.
Returns: number
The tag number.
|
code » | |
No description.
Returns: boolean
True if the field stores composite data or repeated
composite data (message or group).
|
code » | |
Returns whether the field described by this descriptor is optional.
Returns: boolean
Whether the field is optional.
|
code » | |
Returns whether the field described by this descriptor is repeating.
Returns: boolean
Whether the field is repeated.
|
code » | |
Returns whether the field described by this descriptor is required.
Returns: boolean
Whether the field is required.
|
code » |
![]()
The default value of this field, if different from the default, default
value.
|
Code » | |
![]()
Is it permissible on deserialization to convert between numbers and
well-formed strings? Is true for 64-bit integral field types, false for
all other field types.
|
Code » | |
![]()
The field type of this field.
|
Code » | |
![]()
If true, this field is a repeating field.
|
Code » | |
![]()
If true, this field is required.
|
Code » | |
![]()
The field's name.
|
Code » | |
![]()
If this field is a primitive: The native (ECMAScript) type of this field.
If an enumeration: The enumeration object.
If a message or group field: The Message function.
|
Code » | |
![]()
The message type that contains the field that this
descriptor describes.
|
Code » | |
![]()
The field's tag number.
|
Code » |
![]()
An enumeration defining the possible field types.
Should be a mirror of that defined in descriptor.h.
Constants:
|
Code » |