Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Enum ¶
type Enum struct {
*descriptorpb.EnumDescriptorProto
// File is the file where the enum is defined
File *File
// Outers is a list of outer messages if this enum is a nested type.
Outers []string
// Index is a enum index value.
Index int
// ForcePrefixedName when set to true, prefixes a type with a package prefix.
ForcePrefixedName bool
}
type Field ¶
type Field struct {
*descriptorpb.FieldDescriptorProto
// Message is the message type which this field belongs to.
Message *Message
// FieldMessage is the message type of the field.
FieldMessage *Message
// ForcePrefixedName when set to true, prefixes a type with a package prefix.
ForcePrefixedName bool
}
type File ¶
type File struct {
*descriptorpb.FileDescriptorProto
// GoPkg is the go package of the go file generated from this file.
GoPkg GoPackage
// GeneratedFilenamePrefix is used to construct filenames for generated
// files associated with this source file.
//
// For example, the source file "dir/foo.proto" might have a filename prefix
// of "dir/foo". Appending ".pb.go" produces an output file of "dir/foo.pb.go".
GeneratedFilenamePrefix string
// Messages is the list of messages defined in this file.
Messages []*Message
// Enums is the list of enums defined in this file.
Enums []*Enum
// Services is the list of services defined in this file.
Services []interface{}
}
type Message ¶
type Message struct {
*descriptorpb.DescriptorProto
// File is the file where the message is defined.
File *File
// Outers is a list of outer messages if this message is a nested type.
Outers []string
// Fields is a list of message fields.
Fields []*Field
// Index is proto path index of this message in File.
Index int
// ForcePrefixedName when set to true, prefixes a type with a package prefix.
ForcePrefixedName bool
}
Click to show internal directories.
Click to hide internal directories.