package
2.0.0+incompatible
Repository: https://github.com/phpstudyer/protoreflect.git
Documentation: pkg.go.dev
# Functions
CreatePrefixList returns a list of package prefixes to search when resolving a symbol name.
CreateSourceInfoMap constructs a new SourceInfoMap and populates it with the source code info in the given file descriptor proto.
GetMaxTag returns the max tag number allowed, based on whether a message uses message set wire format or not.
No description provided by the author
InitCap returns the given field name, but with the first letter capitalized.
JsonName returns the default JSON name for a field with the given name.
PopulateSourceInfoMap populates the given SourceInfoMap with information from the given file descriptor.
ProcessProto3OptionalFields adds synthetic oneofs to the given message descriptor for each proto3 optional field.
RecomputeSourceInfo is used to initiate recomputation of source info.
No description provided by the author
# Constants
Enum_nameTag is the tag number of the name element in an enum descriptor proto.
Enum_optionsTag is the tag number of the options element in an enum descriptor proto.
Enum_reservedNameTag is the tag number of the reserved names element in an enum descriptor proto.
Enum_reservedRangeTag is the tag number of the reserved ranges element in an enum descriptor proto.
Enum_valuesTag is the tag number of the values element in an enum descriptor proto.
EnumVal_nameTag is the tag number of the name element in an enum value descriptor proto.
EnumVal_numberTag is the tag number of the number element in an enum value descriptor proto.
EnumVal_optionsTag is the tag number of the options element in an enum value descriptor proto.
ExtensionRange_endTag is the tag number of the end index in an extension range proto.
ExtensionRange_optionsTag is the tag number of the options element in an extension range proto.
ExtensionRange_startTag is the tag number of the start index in an extension range proto.
Field_defaultTag is the tag number of the default value element in a field descriptor proto.
Field_extendeeTag is the tag number of the extendee element in a field descriptor proto.
Field_jsonNameTag is the tag number of the JSON name element in a field descriptor proto.
Field_labelTag is the tag number of the label element in a field descriptor proto.
Field_nameTag is the tag number of the name element in a field descriptor proto.
Field_numberTag is the tag number of the number element in a field descriptor proto.
Field_optionsTag is the tag number of the options element in a field descriptor proto.
Field_proto3OptionalTag is the tag number of the proto3_optional element in a descriptor proto.
Field_typeNameTag is the tag number of the type name element in a field descriptor proto.
Field_typeTag is the tag number of the type element in a field descriptor proto.
File_dependencyTag is the tag number of the dependencies element in a file descriptor proto.
File_enumsTag is the tag number of the enums element in a file descriptor proto.
File_extensionsTag is the tag number of the extensions element in a file descriptor proto.
File_messagesTag is the tag number of the messages element in a file descriptor proto.
File_optionsTag is the tag number of the options element in a file descriptor proto.
File_packageTag is the tag number of the package element in a file descriptor proto.
File_servicesTag is the tag number of the services element in a file descriptor proto.
File_syntaxTag is the tag number of the syntax element in a file descriptor proto.
MaxMessageSetTag is the maximum allowed tag number of a field in a message that uses the message set wire format.
2^29 - 1.
MaxTag is the maximum allowed tag number.
Message_enumsTag is the tag number of the enums element in a message descriptor proto.
Message_extensionRangeTag is the tag number of the extension ranges element in a message descriptor proto.
Message_extensionsTag is the tag number of the extensions element in a message descriptor proto.
Message_fieldsTag is the tag number of the fields element in a message descriptor proto.
Message_nameTag is the tag number of the name element in a message descriptor proto.
Message_nestedMessagesTag is the tag number of the nested messages element in a message descriptor proto.
Message_oneOfsTag is the tag number of the one-ofs element in a message descriptor proto.
Message_optionsTag is the tag number of the options element in a message descriptor proto.
Message_reservedNameTag is the tag number of the reserved names element in a message descriptor proto.
Message_reservedRangeTag is the tag number of the reserved ranges element in a message descriptor proto.
Method_inputStreamTag is the tag number of the input stream flag in a method descriptor proto.
Method_inputTag is the tag number of the input type element in a method descriptor proto.
Method_nameTag is the tag number of the name element in a method descriptor proto.
Method_optionsTag is the tag number of the options element in a method descriptor proto.
Method_outputStreamTag is the tag number of the output stream flag in a method descriptor proto.
Method_outputTag is the tag number of the output type element in a method descriptor proto.
OneOf_nameTag is the tag number of the name element in a one-of descriptor proto.
OneOf_optionsTag is the tag number of the options element in a one-of descriptor proto.
ReservedRange_endTag is the tag number of the end index in a reserved range proto.
ReservedRange_startTag is the tag number of the start index in a reserved range proto.
Service_methodsTag is the tag number of the methods element in a service descriptor proto.
Service_nameTag is the tag number of the name element in a service descriptor proto.
Service_optionsTag is the tag number of the options element in a service descriptor proto.
SpecialReservedEnd is the last tag in a range that is reserved and not allowed for use in message definitions.
SpecialReservedStart is the first tag in a range that is reserved and not allowed for use in message definitions.
Uninterpreted_aggregateTag is the tag number of the aggregate value in an uninterpreted options proto.
Uninterpreted_doubleTag is the tag number of the double value in an uninterpreted options proto.
Uninterpreted_identTag is the tag number of the identifier value in an uninterpreted options proto.
Uninterpreted_nameTag is the tag number of the name element in an uninterpreted options proto.
Uninterpreted_negIntTag is the tag number of the negative int value in an uninterpreted options proto.
Uninterpreted_posIntTag is the tag number of the positive int value in an uninterpreted options proto.
Uninterpreted_stringTag is the tag number of the string value in an uninterpreted options proto.
UninterpretedName_nameTag is the tag number of the name element in an uninterpreted option name proto.
UninterpretedOptionsTag is the tag number of the uninterpreted options element.
# Interfaces
SourceInfoComputer is a single method which will be invoked to recompute source info.
# Type aliases
SourceInfoComputeFunc is the type that a desc.Descriptor will embed.
SourceInfoMap is a map of paths in a descriptor to the corresponding source code info.