Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromJSON ¶
func FromJSON(jsonBytes []byte) (*descriptorpb.FileDescriptorSet, error)
func Load ¶
func Load(protocArgs []string) (*descriptorpb.FileDescriptorSet, error)
Load the descriptors in the proto files with the same command line arguments as protoc, e.g. -IPATH1 -IPATH2 ... PROTO_FILES
func ToJSON ¶
func ToJSON(fileSet *descriptorpb.FileDescriptorSet) ([]byte, error)
Types ¶
type EnumType ¶
type EnumType struct {
*descriptorpb.EnumDescriptorProto
}
type MessageType ¶
type MessageType struct { *descriptorpb.DescriptorProto File *descriptorpb.FileDescriptorProto }
func (*MessageType) Fields ¶
func (t *MessageType) Fields() []Field
func (*MessageType) GoPackage ¶
func (t *MessageType) GoPackage() string
type TypeSet ¶
type TypeSet struct {
// contains filtered or unexported fields
}
func NewTypeSet ¶
func NewTypeSet(fileSet *descriptorpb.FileDescriptorSet) (*TypeSet, error)
func (*TypeSet) GetMsgType ¶
func (s *TypeSet) GetMsgType(longName string) (*MessageType, bool)
Click to show internal directories.
Click to hide internal directories.