package
2.0.0+incompatible
Repository: https://github.com/phpstudyer/protoreflect.git
Documentation: pkg.go.dev
# Packages
Package builder contains a means of building and modifying proto descriptors programmatically.
Package protoparse provides functionality for parsing *.proto source files into descriptors that can be used with other protoreflect packages, like dynamic messages and dynamic GRPC clients.
Package protoprint provides a mechanism to generate protobuf source code from descriptors.
# Functions
CreateFileDescriptor instantiates a new file descriptor for the given descriptor proto.
CreateFileDescriptorFromSet creates a descriptor from the given file descriptor set.
CreateFileDescriptors constructs a set of descriptors, one for each of the given descriptor protos.
CreateFileDescriptorsFromSet creates file descriptors from the given file descriptor set.
LoadEnumDescriptorForEnum loads descriptor using the encoded descriptor proto returned by enum.EnumDescriptor().
LoadEnumDescriptorForType loads descriptor using the encoded descriptor proto returned by enum.EnumDescriptor() for the given enum type.
LoadFieldDescriptorForExtension loads the field descriptor that corresponds to the given extension description.
LoadFileDescriptor creates a file descriptor using the bytes returned by proto.FileDescriptor.
LoadMessageDescriptor loads descriptor using the encoded descriptor proto returned by Message.Descriptor() for the given message type.
LoadMessageDescriptorForMessage loads descriptor using the encoded descriptor proto returned by message.Descriptor().
LoadMessageDescriptorForType loads descriptor using the encoded descriptor proto returned by message.Descriptor() for the given message type.
RegisterImportPath registers an alternate import path for a given registered proto file path.
ResolveImport resolves the given import path.
ToFileDescriptorSet creates a FileDescriptorSet proto that contains all of the given file descriptors and their transitive dependencies.
# Structs
EnumDescriptor describes an enum declared in a proto file.
EnumValueDescriptor describes an allowed value of an enum declared in a proto file.
FieldDescriptor describes a field of a protocol buffer message.
FileDescriptor describes a proto source file.
ImportResolver lets you work-around linking issues that are caused by mismatches between how a particular proto source file is registered in the Go protobuf runtime and how that same file is imported by other files.
MessageDescriptor describes a protocol buffer message.
MethodDescriptor describes an RPC method declared in a proto file.
OneOfDescriptor describes a one-of field set declared in a protocol buffer message.
ServiceDescriptor describes an RPC service declared in a proto file.
# Interfaces
Descriptor is the common interface implemented by all descriptor objects.