goog.proto2.FieldDescriptor
Classgoog.proto2.FieldDescriptor(messageType, tag, metadata)
A class which describes a field in a Protocol Buffer 2 Message.
messageType
{Function
}
tag
{number
|string
}
metadata
{Object
}
goog.proto2.FieldDescriptor.FieldType
EnumAn enumeration defining the possible field types. Should be a mirror of that defined in descriptor.h. … more
.deserializationConversionPermitted()
Returns true if simple conversions between numbers and strings are permitted during deserialization for this field.
boolean
}
.getContainingType()
Returns the descriptor describing the message that defined this field.
goog.proto2.Descriptor
}
.getDefaultValue()
Returns the default value of this field.
.getFieldMessageType()
Returns the descriptor of the message type of this field. Only valid for fields of type GROUP and MESSAGE.
goog.proto2.Descriptor
}
.getFieldType()
Returns the field type of the field described by this descriptor.
goog.proto2.FieldDescriptor.FieldType
}
.getName()
Returns the name of the field that this descriptor represents.
string
}
.getNativeType()
Returns the native (i.e. ECMAScript) type of the field described by this descriptor.
Object
}
.getTag()
Returns the tag of the field that this descriptor represents.
number
}
.isCompositeType()
boolean
}
.isOptional()
Returns whether the field described by this descriptor is optional.
boolean
}
.isRepeated()
Returns whether the field described by this descriptor is repeating.
boolean
}
.isRequired()
Returns whether the field described by this descriptor is required.
boolean
}