package
0.14.1
Repository: https://github.com/bufbuild/protocompile.git
Documentation: pkg.go.dev

# Packages

Package editions contains helpers related to resolving features for Protobuf editions.
Package featuresext provides file descriptors for the "google/protobuf/cpp_features.proto" and "google/protobuf/java_features.proto" standard import files.
No description provided by the author
Package protoc contains some helpers for invoking protoc from tests.
No description provided by the author

# Functions

CanPack returns true if a repeated field of the given kind can use packed encoding.
No description provided by the author
ComputePath computes the source location path for the given descriptor.
CreatePrefixList returns a list of package prefixes to search when resolving a symbol name.
No description provided by the author
No description provided by the author
InitCap returns the given field name, but with the first letter capitalized.
IsZeroLocation returns true if the given loc is a zero value (which is returned from queries that have no result).
JSONName returns the default JSON name for a field with the given name.
No description provided by the author
No description provided by the author

# Constants

AnyTypeURLTag is the tag number of the type_url field of the Any proto.
AnyValueTag is the tag number of the value field of the Any proto.
EnumNameTag is the tag number of the name element in an enum descriptor proto.
EnumOptionsFeaturesTag is the tag number of the features field in the EnumOptions proto.
EnumOptionsTag is the tag number of the options element in an enum descriptor proto.
EnumReservedNamesTag is the tag number of the reserved names element in an enum descriptor proto.
EnumReservedRangesTag is the tag number of the reserved ranges element in an enum descriptor proto.
EnumValNameTag is the tag number of the name element in an enum value descriptor proto.
EnumValNumberTag is the tag number of the number element in an enum value descriptor proto.
EnumValOptionsFeaturesTag is the tag number of the features field in the EnumValueOptions proto.
EnumValOptionsTag is the tag number of the options element in an enum value descriptor proto.
EnumValuesTag is the tag number of the values element in an enum descriptor proto.
ExtensionRangeEndTag is the tag number of the end index in an extension range proto.
ExtensionRangeOptionsDeclarationFullNameTag is the tag number of the full_name field in the ExtensionRangeOptions.Declaration proto.
ExtensionRangeOptionsDeclarationNumberTag is the tag number of the number field in the ExtensionRangeOptions.Declaration proto.
ExtensionRangeOptionsDeclarationRepeatedTag is the tag number of the repeated field in the ExtensionRangeOptions.Declaration proto.
ExtensionRangeOptionsDeclarationReservedTag is the tag number of the reserved field in the ExtensionRangeOptions.Declaration proto.
ExtensionRangeOptionsDeclarationTag is the tag number of the declaration field in the ExtensionRangeOptions proto.
ExtensionRangeOptionsDeclarationTypeTag is the tag number of the type field in the ExtensionRangeOptions.Declaration proto.
ExtensionRangeOptionsFeaturesTag is the tag number of the features field in the ExtensionRangeOptions proto.
ExtensionRangeOptionsTag is the tag number of the options element in an extension range proto.
ExtensionRangeOptionsVerificationTag is the tag number of the verification field in the ExtensionRangeOptions proto.
ExtensionRangeStartTag is the tag number of the start index in an extension range proto.
FeatureSetEnumTypeTag is the tag number of the enum_type field in the FeatureSet proto.
FeatureSetFieldPresenceTag is the tag number of the field_presence field in the FeatureSet proto.
FeatureSetJSONFormatTag is the tag number of the json_format field in the FeatureSet proto.
FeatureSetMessageEncodingTag is the tag number of the message_encoding field in the FeatureSet proto.
FeatureSetRepeatedFieldEncodingTag is the tag number of the repeated_field_encoding field in the FeatureSet proto.
FeatureSetUTF8ValidationTag is the tag number of the utf8_validation field in the FeatureSet proto.
FieldDefaultTag is the tag number of the default value element in a field descriptor proto.
FieldExtendeeTag is the tag number of the extendee element in a field descriptor proto.
FieldJSONNameTag is the tag number of the JSON name element in a field descriptor proto.
FieldLabelTag is the tag number of the label element in a field descriptor proto.
FieldNameTag is the tag number of the name element in a field descriptor proto.
FieldNumberTag is the tag number of the number element in a field descriptor proto.
FieldOneofIndexTag is the tag number of the oneof index element in a field descriptor proto.
FieldOptionsCTypeTag is the number of the ctype field in the FieldOptions proto.
FieldOptionsFeaturesTag is the tag number of the features field in the FieldOptions proto.
FieldOptionsJSTypeTag is the number of the jstype field in the FieldOptions proto.
FieldOptionsLazyTag is the number of the lazy field in the FieldOptions proto.
FieldOptionsPackedTag is the number of the packed field in the FieldOptions proto.
FieldOptionsTag is the tag number of the options element in a field descriptor proto.
FieldOptionsUnverifiedLazyTag is the number of the unverified_lazy field in the FieldOptions proto.
FieldProto3OptionalTag is the tag number of the proto3_optional element in a descriptor proto.
FieldTypeNameTag is the tag number of the type name element in a field descriptor proto.
FieldTypeTag is the tag number of the type element in a field descriptor proto.
FileDependencyTag is the tag number of the dependencies element in a file descriptor proto.
FileEditionTag is the tag number of the edition element in a file descriptor proto.
FileEnumsTag is the tag number of the enums element in a file descriptor proto.
FileExtensionsTag is the tag number of the extensions element in a file descriptor proto.
FileMessagesTag is the tag number of the messages element in a file descriptor proto.
FileOptionsFeaturesTag is the tag number of the features field in the FileOptions proto.
FileOptionsJavaStringCheckUTF8Tag is the tag number of the java_string_check_utf8 field in the FileOptions proto.
FileOptionsTag is the tag number of the options element in a file descriptor proto.
FilePackageTag is the tag number of the package element in a file descriptor proto.
FilePublicDependencyTag is the tag number of the public dependency element in a file descriptor proto.
FileServicesTag is the tag number of the services element in a file descriptor proto.
FileSourceCodeInfoTag is the tag number of the source code info element in a file descriptor proto.
FileSyntaxTag is the tag number of the syntax element in a file descriptor proto.
FileWeakDependencyTag is the tag number of the weak dependency element in a file descriptor proto.
No description provided by the author
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.
MessageEnumsTag is the tag number of the enums element in a message descriptor proto.
MessageExtensionRangesTag is the tag number of the extension ranges element in a message descriptor proto.
MessageExtensionsTag is the tag number of the extensions element in a message descriptor proto.
MessageFieldsTag is the tag number of the fields element in a message descriptor proto.
MessageNameTag is the tag number of the name element in a message descriptor proto.
MessageNestedMessagesTag is the tag number of the nested messages element in a message descriptor proto.
MessageOneofsTag is the tag number of the one-ofs element in a message descriptor proto.
MessageOptionsFeaturesTag is the tag number of the features field in the MessageOptions proto.
MessageOptionsTag is the tag number of the options element in a message descriptor proto.
MessageReservedNamesTag is the tag number of the reserved names element in a message descriptor proto.
MessageReservedRangesTag is the tag number of the reserved ranges element in a message descriptor proto.
MethodInputStreamTag is the tag number of the input stream flag in a method descriptor proto.
MethodInputTag is the tag number of the input type element in a method descriptor proto.
MethodNameTag is the tag number of the name element in a method descriptor proto.
MethodOptionsFeaturesTag is the tag number of the features field in the MethodOptions proto.
MethodOptionsTag is the tag number of the options element in a method descriptor proto.
MethodOutputStreamTag is the tag number of the output stream flag in a method descriptor proto.
MethodOutputTag is the tag number of the output type element in a method descriptor proto.
OneofNameTag is the tag number of the name element in a one-of descriptor proto.
OneofOptionsFeaturesTag is the tag number of the features field in the OneofOptions proto.
OneofOptionsTag is the tag number of the options element in a one-of descriptor proto.
ReservedRangeEndTag is the tag number of the end index in a reserved range proto.
ReservedRangeStartTag is the tag number of the start index in a reserved range proto.
ServiceMethodsTag is the tag number of the methods element in a service descriptor proto.
ServiceNameTag is the tag number of the name element in a service descriptor proto.
ServiceOptionsFeaturesTag is the tag number of the features field in the ServiceOptions proto.
ServiceOptionsTag 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.
UninterpretedAggregateTag is the tag number of the aggregate value in an uninterpreted options proto.
UninterpretedDoubleTag is the tag number of the double value in an uninterpreted options proto.
UninterpretedIdentTag is the tag number of the identifier value in an uninterpreted options proto.
UninterpretedNameNameTag is the tag number of the name element in an uninterpreted option name proto.
UninterpretedNameTag is the tag number of the name element in an uninterpreted options proto.
UninterpretedNegIntTag is the tag number of the negative int value in an uninterpreted options proto.
UninterpretedOptionsTag is the tag number of the uninterpreted options element.
UninterpretedPosIntTag is the tag number of the positive int value in an uninterpreted options proto.
UninterpretedStringTag is the tag number of the string value in an uninterpreted options proto.

# Variables

No description provided by the author

# Structs

MessageContext provides information about the location in a descriptor hierarchy, for adding context to warnings and error messages.

# Interfaces

ParsedFile wraps an optional AST and required FileDescriptorProto.