search

goog.proto2.FieldDescriptor

Provided By

A class which describes a field in a Protocol Buffer 2 Message.

new FieldDescriptor( messageType, tag, metadata )

Parameters
messageTypefunction(new: goog.proto2.Message)

Constructor for the message class to which the field described by this class belongs.

tag(number|string)

The field's tag index.

metadata{defaultValue: (undefined|*), fieldType: goog.proto2.FieldDescriptor.FieldType, name: string, packed: (undefined|*), repeated: (undefined|*), required: (undefined|*), type: Function}

The metadata about this field that will be used to construct this descriptor.

Instance Methods

Enumerations