package
2.0.0+incompatible
Repository: https://github.com/phpstudyer/protoreflect.git
Documentation: pkg.go.dev

# Packages

Package grpcdynamic provides a dynamic RPC stub.
Package msgregistry contains a registry of known message and enum types.

# Functions

AnyResolver returns a jsonpb.AnyResolver that uses the given file descriptors to resolve message names.
AsDynamicMessage converts the given message to a dynamic message.
AsDynamicMessageWithExtensionRegistry converts the given message to a dynamic message.
AsDynamicMessageWithMessageFactory converts the given message to a dynamic message.
Equal returns true if the given two dynamic messages are equal.
Merge merges the given source message into the given destination message.
MessagesEqual returns true if the given two messages are equal.
NewExtensionRegistryWithDefaults is a registry that includes all "default" extensions, which are those that are statically linked into the current program (e.g.
NewKnownTypeRegistryWithDefaults creates a new registry that knows about all "default" types (those for which protoc-generated code is statically linked into the Go program).
NewKnownTypeRegistryWithoutWellKnownTypes creates a new registry that does *not* include the "well-known types" in protobuf.
NewMessage creates a new dynamic message for the type represented by the given message descriptor.
NewMessageFactoryWithDefaults creates a new message factory where all "default" types (those for which protoc-generated code is statically linked into the Go program) are known types.
NewMessageFactoryWithExtensionRegistry creates a new message factory where any dynamic messages produced will use the given extension registry to recognize and parse extension fields.
NewMessageFactoryWithKnownTypeRegistry creates a new message factory where the known types, per the given registry, will be returned as normal protobuf messages (e.g.
NewMessageFactoryWithRegistries creates a new message factory with the given extension and known type registries.
NewMessageWithExtensionRegistry creates a new dynamic message for the type represented by the given message descriptor.
NewMessageWithMessageFactory creates a new dynamic message for the type represented by the given message descriptor.
SetExtension sets the given extension value.
TryMerge merges the given source message into the given destination message.

# Variables

ErrFieldIsNotMap is an error that is returned when map-related operations are attempted with fields that are not maps.
ErrFieldIsNotRepeated is an error that is returned when repeated field operations are attempted with fields that are not repeated.
ErrIndexOutOfRange is an error that is returned when an invalid index is provided when access a single element of a repeated field.
ErrNumericOverflow is an error returned by operations that encounter a numeric value that is too large, for example de-serializing a value into an int32 field when the value is larger that can fit into a 32-bit value.
ErrUnknownFieldName is an error that is returned when an operation refers to an unknown field name.
ErrUnknownTagNumber is an error that is returned when an operation refers to an unknown tag number.
FieldIsNotMapError is the same as ErrFieldIsNotMap.
FieldIsNotRepeatedError is the same as ErrFieldIsNotRepeated.
IndexOutOfRangeError is the same as ErrIndexOutOfRange.
NumericOverflowError is the same as ErrNumericOverflow.
UnknownFieldNameError is the same as ErrUnknownFieldName.
UnknownTagNumberError is the same as ErrUnknownTagNumber.

# Structs

ExtensionRegistry is a registry of known extension fields.
KnownTypeRegistry is a registry of known message types, as identified by their fully-qualified name.
Message is a dynamic protobuf message.
MessageFactory can be used to create new empty message objects.
UnknownField represents a field that was parsed from the binary wire format for a message, but was not a recognized field number.