Versions in this module Expand all Collapse all v0 v0.0.1 Jan 14, 2026 Changes in this version + var VersionedSegment = regexp.MustCompile(`\{\$api_version\}`) + func DeclarativeFriendlyResource(d protoreflect.Descriptor) protoreflect.MessageDescriptor + func ExtractRevisionResource(m protoreflect.MethodDescriptor) (string, bool) + func FindFieldDotNotation(msg protoreflect.MessageDescriptor, ref string) protoreflect.FieldDescriptor + func FindMessage(f protoreflect.FileDescriptor, name string) protoreflect.MessageDescriptor + func FindMethod(f protoreflect.FileDescriptor, name string) protoreflect.MethodDescriptor + func FindResource(reference string, file protoreflect.FileDescriptor) *apb.ResourceDescriptor + func FindResourceChildren(parent *apb.ResourceDescriptor, file protoreflect.FileDescriptor) []*apb.ResourceDescriptor + func FindResourceMessage(reference string, file protoreflect.FileDescriptor) protoreflect.MessageDescriptor + func GetAllDependencies(file protoreflect.FileDescriptor) map[string]protoreflect.FileDescriptor + func GetExtensionGeneric[T proto.Message](o protoreflect.Message, ed protoreflect.FieldDescriptor, c T) (T, bool) + func GetFieldBehavior(f protoreflect.FieldDescriptor) stringset.Set + func GetFieldInfo(fd protoreflect.FieldDescriptor) *apb.FieldInfo + func GetFormat(fd protoreflect.FieldDescriptor) apb.FieldInfo_Format + func GetListResourceMessage(m protoreflect.MethodDescriptor) protoreflect.MessageDescriptor + func GetMetadataType(m protoreflect.MethodDescriptor) protoreflect.MessageDescriptor + func GetMethodSignatures(m protoreflect.MethodDescriptor) [][]string + func GetOperationInfo(m protoreflect.MethodDescriptor) *lrpb.OperationInfo + func GetOperationResponseType(m protoreflect.MethodDescriptor) protoreflect.MessageDescriptor + func GetRepeatedMessageFields(m protoreflect.MessageDescriptor) []protoreflect.FieldDescriptor + func GetResource(m protoreflect.MessageDescriptor) *apb.ResourceDescriptor + func GetResourceDefinitions(f protoreflect.FileDescriptor) []*apb.ResourceDescriptor + func GetResourceMessageName(m protoreflect.MethodDescriptor, expectedVerb string) string + func GetResourceNameField(r *apb.ResourceDescriptor) string + func GetResourcePlural(r *apb.ResourceDescriptor) string + func GetResourceReference(f protoreflect.FieldDescriptor) *apb.ResourceReference + func GetResourceSingular(r *apb.ResourceDescriptor) string + func GetResponseType(m protoreflect.MethodDescriptor) protoreflect.MessageDescriptor + func GetTypeName(f protoreflect.FieldDescriptor) string + func HasFieldInfo(fd protoreflect.FieldDescriptor) bool + func HasFormat(fd protoreflect.FieldDescriptor) bool + func HasHTTPRules(m protoreflect.MethodDescriptor) bool + func HasParent(resource *apb.ResourceDescriptor) bool + func HasResourceReference(f protoreflect.FieldDescriptor) bool + func IsCommitRevisionMethod(m protoreflect.MethodDescriptor) bool + func IsCommonProto(f protoreflect.FileDescriptor) bool + func IsCreateMethod(m protoreflect.MethodDescriptor) bool + func IsCreateMethodWithResolvedReturnType(m protoreflect.MethodDescriptor) bool + func IsCreateRequestMessage(m protoreflect.MessageDescriptor) bool + func IsCustomMethod(m protoreflect.MethodDescriptor) bool + func IsDeclarativeFriendlyMessage(m protoreflect.MessageDescriptor) bool + func IsDeclarativeFriendlyMethod(m protoreflect.MethodDescriptor) bool + func IsDeleteMethod(m protoreflect.MethodDescriptor) bool + func IsDeleteRequestMessage(m protoreflect.MessageDescriptor) bool + func IsDeleteRevisionMethod(m protoreflect.MethodDescriptor) bool + func IsGetMethod(m protoreflect.MethodDescriptor) bool + func IsGetRequestMessage(m protoreflect.MessageDescriptor) bool + func IsLegacyListRevisionsMethod(m protoreflect.MethodDescriptor) bool + func IsListMethod(m protoreflect.MethodDescriptor) bool + func IsListRequestMessage(m protoreflect.MessageDescriptor) bool + func IsListResponseMessage(m protoreflect.MessageDescriptor) bool + func IsListRevisionsRequestMessage(m protoreflect.MessageDescriptor) bool + func IsListRevisionsResponseMessage(m protoreflect.MessageDescriptor) bool + func IsOperation(m protoreflect.MessageDescriptor) bool + func IsResource(m protoreflect.MessageDescriptor) bool + func IsResourceRevision(m protoreflect.MessageDescriptor) bool + func IsRevisionRelationship(parent, revision *apb.ResourceDescriptor) bool + func IsRollbackRevisionMethod(m protoreflect.MethodDescriptor) bool + func IsSingletonResource(m protoreflect.MessageDescriptor) bool + func IsSingletonResourcePattern(pattern string) bool + func IsStandardMethod(m protoreflect.MethodDescriptor) bool + func IsStreaming(m protoreflect.MethodDescriptor) bool + func IsTagRevisionMethod(m protoreflect.MethodDescriptor) bool + func IsUpdateMethod(m protoreflect.MethodDescriptor) bool + func IsUpdateRequestMessage(m protoreflect.MessageDescriptor) bool + func LintFieldMask(f protoreflect.FieldDescriptor) []lint.Problem + func LintFieldPresent(m protoreflect.MessageDescriptor, field string) (protoreflect.FieldDescriptor, []lint.Problem) + func LintFieldPresentAndSingularString(field string) func(protoreflect.MessageDescriptor) []lint.Problem + func LintFieldResourceReference(f protoreflect.FieldDescriptor) []lint.Problem + func LintHTTPMethod(verb string) func(protoreflect.MethodDescriptor) []lint.Problem + func LintHTTPURIHasNameVariable(m protoreflect.MethodDescriptor) []lint.Problem + func LintHTTPURIHasParentVariable(m protoreflect.MethodDescriptor) []lint.Problem + func LintHTTPURIHasVariable(m protoreflect.MethodDescriptor, v string) []lint.Problem + func LintHTTPURIVariableCount(m protoreflect.MethodDescriptor, n int) []lint.Problem + func LintMethodHasMatchingRequestName(m protoreflect.MethodDescriptor) []lint.Problem + func LintMethodHasMatchingResponseName(m protoreflect.MethodDescriptor) []lint.Problem + func LintNoHTTPBody(m protoreflect.MethodDescriptor) []lint.Problem + func LintNotOneof(f protoreflect.FieldDescriptor) []lint.Problem + func LintOutputOnlyField(f protoreflect.FieldDescriptor) []lint.Problem + func LintPluralMethodName(m protoreflect.MethodDescriptor, verb string) []lint.Problem + func LintRequiredField(f protoreflect.FieldDescriptor) []lint.Problem + func LintSingularBoolField(f protoreflect.FieldDescriptor) []lint.Problem + func LintSingularField(f protoreflect.FieldDescriptor, t protoreflect.Kind, want string) []lint.Problem + func LintSingularStringField(f protoreflect.FieldDescriptor) []lint.Problem + func LintWildcardHTTPBody(m protoreflect.MethodDescriptor) []lint.Problem + func ListResponseResourceName(m protoreflect.MessageDescriptor) string + func SeparateInternalComments(comments ...string) struct + func SplitResourceTypeName(typ string) (service string, typeName string, ok bool) + func ToLowerCamelCase(s string) string + func ToPlural(s string) string + func ToSingular(s string) string + func ToUpperCamelCase(s string) string + type HTTPRule struct + Body string + Method string + ResponseBody string + URI string + func GetHTTPRules(m protoreflect.MethodDescriptor) []*HTTPRule + func (h *HTTPRule) GetPlainURI() string + func (h *HTTPRule) GetVariables() map[string]string