package
1.50.0
Repository: https://github.com/bufbuild/buf.git
Documentation: pkg.go.dev

# Functions

CheckTagRangeIsSubset checks if supersetRanges is a superset of subsetRanges.
DirPathToFiles maps the Files to a map from directory to the slice of Files in that directory.
EnumIsSubset checks if subsetEnum is a subset of supersetEnum.
FilePathToFile maps the Files to a map from Path() to File.
ForEachEnum calls f on each Enum in the given ContainerDescriptor, including nested Enums.
ForEachExtension calls f on each extension Field in the given ContainerDescriptor, including nested extensions.
ForEachMessage calls f on each Message in the given ContainerDescriptor, including nested Messages.
FullNameToEnum maps the Enums in the Files to a map from full name to enum.
FullNameToMessage maps the Messages in the Files to a map from full name to message.
FullNameToMethod maps the Methods in the Files to a map from full name to Method.
FullNameToService maps the Services in the Files to a map from full name to Service.
NameInReservedNames returns true if the name is in one of the ReservedNames.
NameToEnumValue maps the EnumValues in the Enum to a map from name to EnumValue.
NameToMessageOneof maps the Oneofs in the Message to a map from name to Oneof.
NameToMethod maps the Methods in the Service to a map from name to Method.
NameToService maps the Services in the File to a map from name to Service.
NestedNameToEnum maps the Enums in the ContainerDescriptor to a map from nested name to Enum.
NestedNameToExtension maps the Enums in the ContainerDescriptor to a map from nested name to extension Field.
NestedNameToMessage maps the Messages in the ContainerDescriptor to a map from nested name to Message.
NewFiles converts the input Image into Files.
NumberInReservedRanges returns true if the number is in one of the Ranges.
NumberToMessageField maps the Fields in the Message to a map from number to Field.
NumberToMessageFieldForLabel maps the Fields with the given label in the message to a map from number to Field.
NumberToNameToEnumValue maps the EnumValues in the Enum to a map from number to name to EnumValue.
PackageToDirectlyImportedPackageToFileImports maps packages to directly imported packages to the FileImports that import this package.
PackageToFiles maps the Files to a map from Protobuf package to the slice of Files in that package.
PackageToNameToService maps the Services in the Files to a map from package to name to Service.
PackageToNestedNameToEnum maps the Enums in the Files to a map from package to nested name to Enum.
PackageToNestedNameToExtension maps the extension Fields in the Files to a map from package to nested name to Field.
PackageToNestedNameToMessage maps the Messages in the Files to a map from package to nested name to Message.
SortFiles sorts the Files by FilePath.
StringToExtensionMessageRange maps the ExtensionMessageRanges in the Message to a map from string string to ExtensionMessageRange.
StringToReservedTagRange maps the ReservedTagRanges in the ReservedDescriptor to a map from string string to reserved TagRange.
TagRangeString returns the string representation of the range.
ValueToReservedName maps the ReservedNames in the ReservedDescriptor to a map from string value to ReservedName.

# Constants

EnumRangeInclusiveMax is the maximum allowed number for an enum value.
2^29 - 1.
MessageSetRangeInclusiveMax is the maximum allowed tag for a message field for a message that uses the message-set wire format.
SyntaxEditions represents the editions syntax.
SyntaxProto2 represents the proto2 syntax.
SyntaxProto3 represents the proto3 syntax.
SyntaxUnspecified represents no syntax being specified.

# Interfaces

ContainerDescriptor contains Enums and Messages.
Descriptor is the base interface for a descriptor type.
Enum is an enum descriptor.
EnumRange is a TagRange for Enums.
EnumValue is an enum value descriptor.
ExtensionRange represents an extension range in Messages.
FeaturesDescriptor contains information about features, which are special options in Protobuf Editions.
Field is a field descriptor.
File is a file descriptor.
FileImport is a file import descriptor.
FileInfo contains Protobuf file info.
InputFile is a file used as input when building Files.
Location defines source code info location information.
LocationDescriptor is the base interface for a descriptor type with a location.
Message is a message descriptor.
MessageRange is a TagRange for Messages.
Method is a method descriptor.
ModuleFullName is a module full name.
NamedDescriptor is the base interface for a named descriptor type.
Oneof is a oneof descriptor.
OptionExtensionDescriptor contains options and option extensions.
ReservedDescriptor has reserved ranges and names.
ReservedName is a reserved name for an enum or message.
Service is a service descriptor.
TagRange is a tag range from start to end.

# Type aliases

Syntax is the syntax of a file.