Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Enum ¶
type Enum struct { desc.EnumDescriptor FullName string }
Enum is the representation of a source proto enum.
type Field ¶
type Field struct { desc.FieldDescriptor // contains filtered or unexported fields }
Field is the representation of a source proto field.
func (*Field) GetCapitalName ¶
type Message ¶
type Message struct { desc.MessageDescriptor // FullName is the full unique name of this message (includes parent names). FullName string // Fields of this message. Fields []*Field // FieldsMap maps the name of the field to its representation. FieldsMap map[string]*Field // FlagsTypeAlias is the name of the type alias for the _flags field. FlagsTypeAlias string // FlagsTypeAlias is the underlying unsigned integer type of the _flags field. FlagsUnderlyingType string // FlagsBitCount is the number of the bits that the _flags field contains. FlagsBitCount int // DecodedFlags are definitions for "decoded" flags. Each such flag indicates // that a particular field of the message is already decoded. DecodedFlags []flagBitDef // DecodedFlagName maps the field to its "decoded" const name. DecodedFlagName map[*Field]string // DecodedFlags are definitions for "present" flags. Each such flag indicates // that a particular field of the message is present. Used for "Has" methods. PresenceFlags []flagBitDef // PresenceFlagName maps the field to its "present" const name. PresenceFlagName map[*Field]string }
Message is the representation of a source proto "message".
func NewMessage ¶
func NewMessage(parent *Message, descr *desc.MessageDescriptor) *Message
Click to show internal directories.
Click to hide internal directories.