Documentation ¶
Index ¶
- func EtagLiteral(s string) string
- func FindResourceField(message protoreflect.MessageDescriptor, ...) protoreflect.FieldDescriptor
- func HasAnyStandardMethodFor(s protoreflect.ServiceDescriptor, r *annotations.ResourceDescriptor) bool
- func HasEtagField(m protoreflect.MessageDescriptor) bool
- func HasFieldAnnotation(field protoreflect.FieldDescriptor, annotation annotations.FieldBehavior) bool
- func HasMutableResourceReferences(message protoreflect.MessageDescriptor) bool
- func HasParent(r *annotations.ResourceDescriptor) bool
- func HasRequiredEtagField(m protoreflect.MessageDescriptor) bool
- func HasRequiredFields(message protoreflect.MessageDescriptor) bool
- func HasUpdateMask(method protoreflect.MethodDescriptor) bool
- func HasUserSettableIDField(r *annotations.ResourceDescriptor, m protoreflect.MessageDescriptor) bool
- func IsAlternativeBatch(method protoreflect.MethodDescriptor) bool
- func IsAlternativeBatchDelete(method protoreflect.MethodDescriptor) bool
- func IsAlternativeBatchGet(method protoreflect.MethodDescriptor) bool
- func PathChainGet(p protopath.Path) string
- func RangeMutableResourceReferences(message protoreflect.MessageDescriptor, ...)
- func RangeRequiredFields(message protoreflect.MessageDescriptor, ...)
- func ReturnsEmpty(method protoreflect.MethodDescriptor) bool
- func ReturnsLRO(method protoreflect.MethodDescriptor) bool
- func StandardMethod(service *protogen.Service, r *annotations.ResourceDescriptor, ...) (*protogen.Method, bool)
- func WildcardResourceName(r *annotations.ResourceDescriptor) string
- type MethodBatchGet
- type MethodCreate
- type MethodDelete
- type MethodGet
- type MethodList
- type MethodSearch
- type MethodUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EtagLiteral ¶ added in v0.22.0
func FindResourceField ¶ added in v0.4.1
func FindResourceField( message protoreflect.MessageDescriptor, resource *annotations.ResourceDescriptor, ) protoreflect.FieldDescriptor
func HasAnyStandardMethodFor ¶
func HasAnyStandardMethodFor(s protoreflect.ServiceDescriptor, r *annotations.ResourceDescriptor) bool
func HasEtagField ¶ added in v0.22.0
func HasEtagField(m protoreflect.MessageDescriptor) bool
func HasFieldAnnotation ¶ added in v0.22.0
func HasFieldAnnotation(field protoreflect.FieldDescriptor, annotation annotations.FieldBehavior) bool
func HasMutableResourceReferences ¶
func HasMutableResourceReferences(message protoreflect.MessageDescriptor) bool
func HasParent ¶
func HasParent(r *annotations.ResourceDescriptor) bool
func HasRequiredEtagField ¶ added in v0.22.0
func HasRequiredEtagField(m protoreflect.MessageDescriptor) bool
func HasRequiredFields ¶
func HasRequiredFields(message protoreflect.MessageDescriptor) bool
func HasUpdateMask ¶ added in v0.1.5
func HasUpdateMask(method protoreflect.MethodDescriptor) bool
func HasUserSettableIDField ¶
func HasUserSettableIDField(r *annotations.ResourceDescriptor, m protoreflect.MessageDescriptor) bool
func IsAlternativeBatch ¶ added in v0.4.0
func IsAlternativeBatch(method protoreflect.MethodDescriptor) bool
func IsAlternativeBatchDelete ¶ added in v0.4.0
func IsAlternativeBatchDelete(method protoreflect.MethodDescriptor) bool
func IsAlternativeBatchGet ¶
func IsAlternativeBatchGet(method protoreflect.MethodDescriptor) bool
func PathChainGet ¶
func RangeMutableResourceReferences ¶
func RangeMutableResourceReferences( message protoreflect.MessageDescriptor, f func(protopath.Path, protoreflect.FieldDescriptor, *annotations.ResourceReference), )
func RangeRequiredFields ¶
func RangeRequiredFields( message protoreflect.MessageDescriptor, f func(protopath.Path, protoreflect.FieldDescriptor), )
func ReturnsEmpty ¶ added in v0.24.1
func ReturnsEmpty(method protoreflect.MethodDescriptor) bool
func ReturnsLRO ¶
func ReturnsLRO(method protoreflect.MethodDescriptor) bool
func StandardMethod ¶
func StandardMethod( service *protogen.Service, r *annotations.ResourceDescriptor, methodType aipreflect.MethodType, ) (*protogen.Method, bool)
func WildcardResourceName ¶ added in v0.8.0
func WildcardResourceName(r *annotations.ResourceDescriptor) string
Types ¶
type MethodBatchGet ¶
type MethodBatchGet struct { Resource *annotations.ResourceDescriptor Method *protogen.Method Parent string Names []string }
func (MethodBatchGet) Generate ¶
func (m MethodBatchGet) Generate(f *protogen.GeneratedFile, response, err, assign string)
type MethodCreate ¶
type MethodCreate struct { Resource *annotations.ResourceDescriptor Method *protogen.Method Parent string Message string UserSettableID string }
func (MethodCreate) Generate ¶
func (m MethodCreate) Generate(f *protogen.GeneratedFile, response, err, assign string)
type MethodDelete ¶
type MethodDelete struct { Resource *annotations.ResourceDescriptor Method *protogen.Method ResourceVar string // variable name of the resource. Name string Etag string }
func (MethodDelete) Generate ¶
func (m MethodDelete) Generate(f *protogen.GeneratedFile, response, err, assign string)
type MethodGet ¶
type MethodGet struct { Resource *annotations.ResourceDescriptor Method *protogen.Method Name string }
type MethodList ¶
type MethodList struct { Resource *annotations.ResourceDescriptor Method *protogen.Method Parent string PageSize string PageToken string }
func (MethodList) Generate ¶
func (m MethodList) Generate(f *protogen.GeneratedFile, response, err, assign string)
type MethodSearch ¶
type MethodSearch struct { Resource *annotations.ResourceDescriptor Method *protogen.Method Parent string PageSize string PageToken string }
func (MethodSearch) Generate ¶
func (m MethodSearch) Generate(f *protogen.GeneratedFile, response, err, assign string)
type MethodUpdate ¶
type MethodUpdate struct { Resource *annotations.ResourceDescriptor Method *protogen.Method // set either Parent + Name, or Msg Name string Parent string Msg string UpdateMask []string Etag string EtagTest bool }
func (MethodUpdate) Generate ¶
func (m MethodUpdate) Generate(f *protogen.GeneratedFile, response, err, assign string)
Click to show internal directories.
Click to hide internal directories.