search

goog.proto2.Descriptor

Provided By

A class which describes a Protocol Buffer 2 Message.

new Descriptor( messageType, metadata, fields )

Parameters
messageTypefunction(new: goog.proto2.Message)

Constructor for the message class that this descriptor describes.

metadata{containingType: (goog.proto2.Message|null|undefined), fullName: (string|undefined), name: (string|undefined)}

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

fields(Array<goog.proto2.FieldDescriptor>|null)

The fields of the message described by this descriptor.

Instance Methods