resource

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 40 Imported by: 7

Documentation

Index

Constants

View Source
const (
	NamePattern_Service = "services/{service}/resources/{resource}"
)

Variables

This section is empty.

Functions

func AsAnyCastAccess

func AsAnyCastAccess(access ResourceAccess) gotenresource.Access

Types

type Descriptor

type Descriptor struct {
	// contains filtered or unexported fields
}

func GetDescriptor

func GetDescriptor() *Descriptor

func (*Descriptor) CanBeParentless

func (d *Descriptor) CanBeParentless() bool

func (*Descriptor) GetNameDescriptor

func (d *Descriptor) GetNameDescriptor() *gotenresource.NameDescriptor

func (*Descriptor) GetParentResDescriptors

func (d *Descriptor) GetParentResDescriptors() []gotenresource.Descriptor

func (*Descriptor) GetResourceTypeName

func (d *Descriptor) GetResourceTypeName() *gotenresource.TypeName

func (*Descriptor) NewGetQuery

func (d *Descriptor) NewGetQuery() gotenresource.GetQuery

func (*Descriptor) NewListQuery

func (d *Descriptor) NewListQuery() gotenresource.ListQuery

func (*Descriptor) NewNameList

func (d *Descriptor) NewNameList(size, reserved int) gotenresource.NameList

func (*Descriptor) NewParentNameList

func (d *Descriptor) NewParentNameList(size, reserved int) gotenresource.ParentNameList

func (*Descriptor) NewParentReferenceList

func (d *Descriptor) NewParentReferenceList(size, reserved int) gotenresource.ParentReferenceList

func (*Descriptor) NewQueryResultChange

func (d *Descriptor) NewQueryResultChange() gotenresource.QueryResultChange

func (*Descriptor) NewQueryResultSnapshot

func (d *Descriptor) NewQueryResultSnapshot() gotenresource.QueryResultSnapshot

func (*Descriptor) NewReferenceList

func (d *Descriptor) NewReferenceList(size, reserved int) gotenresource.ReferenceList

func (*Descriptor) NewResource

func (d *Descriptor) NewResource() gotenresource.Resource

func (*Descriptor) NewResourceChange

func (d *Descriptor) NewResourceChange() gotenresource.ResourceChange

func (*Descriptor) NewResourceChangeList

func (d *Descriptor) NewResourceChangeList(size, reserved int) gotenresource.ResourceChangeList

func (*Descriptor) NewResourceChangeMap

func (d *Descriptor) NewResourceChangeMap(reserved int) gotenresource.ResourceChangeMap

func (*Descriptor) NewResourceCursor

func (d *Descriptor) NewResourceCursor() gotenresource.Cursor

func (*Descriptor) NewResourceFieldMask

func (d *Descriptor) NewResourceFieldMask() gotenobject.FieldMask

func (*Descriptor) NewResourceFilter

func (d *Descriptor) NewResourceFilter() gotenresource.Filter

func (*Descriptor) NewResourceList

func (d *Descriptor) NewResourceList(size, reserved int) gotenresource.ResourceList

func (*Descriptor) NewResourceMap

func (d *Descriptor) NewResourceMap(reserved int) gotenresource.ResourceMap

func (*Descriptor) NewResourceName

func (d *Descriptor) NewResourceName() gotenresource.Name

func (*Descriptor) NewResourceOrderBy

func (d *Descriptor) NewResourceOrderBy() gotenresource.OrderBy

func (*Descriptor) NewResourcePager

func (d *Descriptor) NewResourcePager() gotenresource.PagerQuery

func (*Descriptor) NewSearchQuery

func (d *Descriptor) NewSearchQuery() gotenresource.SearchQuery

func (*Descriptor) NewWatchQuery

func (d *Descriptor) NewWatchQuery() gotenresource.WatchQuery

func (*Descriptor) ParseFieldPath

func (d *Descriptor) ParseFieldPath(raw string) (gotenobject.FieldPath, error)

func (*Descriptor) ParseResourceName

func (d *Descriptor) ParseResourceName(nameStr string) (gotenresource.Name, error)

func (*Descriptor) SupportsMetadata

func (d *Descriptor) SupportsMetadata() bool

type Filter

type Filter struct {
	FilterCondition
}

func (*Filter) ConvertToNative

func (filter *Filter) ConvertToNative(typeDesc reflect.Type) (interface{}, error)

func (*Filter) ConvertToType

func (filter *Filter) ConvertToType(typeVal ref.Type) ref.Val

func (*Filter) DecodeFirestore

func (filter *Filter) DecodeFirestore(fpbv *firestorepb.Value) error

func (*Filter) EncodeFirestore

func (filter *Filter) EncodeFirestore() (*firestorepb.Value, error)

firestore encoding/decoding integration

func (*Filter) Equal

func (filter *Filter) Equal(other ref.Val) ref.Val

func (*Filter) Evaluate

func (filter *Filter) Evaluate(res *Resource) bool

Evaluate is a wrapper on FilterCondition, which also handles nil pointer

func (*Filter) EvaluateRaw

func (filter *Filter) EvaluateRaw(res gotenresource.Resource) bool

func (*Filter) FilterSlice

func (filter *Filter) FilterSlice(in []*Resource) (out []*Resource)

FilterSlice is a helper for filtering arrays

func (*Filter) GetCondition

func (filter *Filter) GetCondition() FilterCondition

GetCondition is a getter of FilterCondition, which also handles nil pointer

func (*Filter) GetRawCondition

func (filter *Filter) GetRawCondition() gotenresource.FilterCondition

func (*Filter) HasTrait

func (filter *Filter) HasTrait(trait int) bool

func (*Filter) Match

func (filter *Filter) Match(pattern ref.Val) ref.Val

func (*Filter) ParseProtoString

func (filter *Filter) ParseProtoString(data string) error

func (*Filter) ProtoString

func (filter *Filter) ProtoString() (string, error)

func (*Filter) Receive

func (filter *Filter) Receive(function string, overload string, args []ref.Val) ref.Val

func (*Filter) SetFromCliFlag

func (filter *Filter) SetFromCliFlag(raw string) error

func (*Filter) String

func (filter *Filter) String() string

func (*Filter) Type

func (filter *Filter) Type() ref.Type

func (*Filter) TypeName

func (filter *Filter) TypeName() string

func (*Filter) Value

func (filter *Filter) Value() interface{}

type FilterBuilder

type FilterBuilder struct {
	// contains filtered or unexported fields
}

func NewAndFilterBuilder

func NewAndFilterBuilder() *FilterBuilder

func NewFilterBuilder

func NewFilterBuilder() *FilterBuilder

func NewOrFilterBuilder

func NewOrFilterBuilder() *FilterBuilder

func (*FilterBuilder) Filter

func (b *FilterBuilder) Filter() *Filter

func (*FilterBuilder) Where

func (b *FilterBuilder) Where(opts ...gotenfilter.FilterConditionOption) *filterCndBuilder

func (*FilterBuilder) WherePath

func (b *FilterBuilder) WherePath(fp Resource_FieldPath, opts ...gotenfilter.FilterConditionOption) *filterCndBuilderAnyPath

func (*FilterBuilder) With

type FilterBuilderOrCondition

type FilterBuilderOrCondition interface {
	// contains filtered or unexported methods
}

type FilterCondition

type FilterCondition interface {
	gotenresource.FilterCondition

	And(...FilterCondition) FilterCondition
	Evaluate(res *Resource) bool

	// Whether this condition is at least as specific as other.
	// When true, any Resource that passes this condition will also pass other condition.
	Satisfies(other FilterCondition) bool

	// Checks whether condition specifies given field path
	// Useful for blacklisting protected paths in iam policy conditions
	SpecifiesFieldPath(fp Resource_FieldPath) bool
	// contains filtered or unexported methods
}

func AndFilterConditions

func AndFilterConditions(conds ...FilterCondition) FilterCondition

type FilterConditionCompare

type FilterConditionCompare struct {
	Operator filterParser.CompareOperator
	Resource_FieldPathValue
}

func (*FilterConditionCompare) And

func (*FilterConditionCompare) ConditionCompare

func (cond *FilterConditionCompare) ConditionCompare()

func (*FilterConditionCompare) Evaluate

func (cond *FilterConditionCompare) Evaluate(res *Resource) bool

func (*FilterConditionCompare) EvaluateRaw

func (cond *FilterConditionCompare) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionCompare) GetOperator

func (*FilterConditionCompare) GetRawFieldPath

func (cond *FilterConditionCompare) GetRawFieldPath() gotenobject.FieldPath

func (*FilterConditionCompare) GetRawFieldPathValue

func (cond *FilterConditionCompare) GetRawFieldPathValue() gotenobject.FieldPathValue

func (*FilterConditionCompare) Satisfies

func (cond *FilterConditionCompare) Satisfies(other FilterCondition) bool

func (*FilterConditionCompare) SatisfiesRaw

func (cond *FilterConditionCompare) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionCompare) SpecifiesFieldPath

func (cond *FilterConditionCompare) SpecifiesFieldPath(fp Resource_FieldPath) bool

func (*FilterConditionCompare) SpecifiesRawFieldPath

func (cond *FilterConditionCompare) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionCompare) String

func (cond *FilterConditionCompare) String() string

type FilterConditionComposite

type FilterConditionComposite struct {
	Operator   filterParser.CompositeOperator
	Conditions []FilterCondition
}

func (*FilterConditionComposite) And

func (*FilterConditionComposite) ConditionComposite

func (cond *FilterConditionComposite) ConditionComposite()

func (*FilterConditionComposite) Evaluate

func (cond *FilterConditionComposite) Evaluate(res *Resource) bool

func (*FilterConditionComposite) EvaluateRaw

func (cond *FilterConditionComposite) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionComposite) GetOperator

func (*FilterConditionComposite) GetSubConditions

func (cond *FilterConditionComposite) GetSubConditions() []gotenresource.FilterCondition

func (*FilterConditionComposite) Satisfies

func (cond *FilterConditionComposite) Satisfies(other FilterCondition) bool

func (*FilterConditionComposite) SatisfiesRaw

func (cond *FilterConditionComposite) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionComposite) SpecifiesFieldPath

func (cond *FilterConditionComposite) SpecifiesFieldPath(fp Resource_FieldPath) bool

func (*FilterConditionComposite) SpecifiesRawFieldPath

func (cond *FilterConditionComposite) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionComposite) String

func (cond *FilterConditionComposite) String() string

type FilterConditionContains

func (*FilterConditionContains) And

func (*FilterConditionContains) ConditionContains

func (cond *FilterConditionContains) ConditionContains()

func (*FilterConditionContains) ConditionContainsType

func (cond *FilterConditionContains) ConditionContainsType() gotenresource.ConditionContainsType

func (*FilterConditionContains) Evaluate

func (cond *FilterConditionContains) Evaluate(res *Resource) bool

func (*FilterConditionContains) EvaluateRaw

func (cond *FilterConditionContains) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionContains) GetFieldPath

func (cond *FilterConditionContains) GetFieldPath() Resource_FieldPath

func (*FilterConditionContains) GetRawFieldPath

func (cond *FilterConditionContains) GetRawFieldPath() gotenobject.FieldPath

func (*FilterConditionContains) GetRawFieldPathItemValue

func (cond *FilterConditionContains) GetRawFieldPathItemValue() gotenobject.FieldPathArrayItemValue

func (*FilterConditionContains) GetRawFieldPathItemValues

func (cond *FilterConditionContains) GetRawFieldPathItemValues() (res []gotenobject.FieldPathArrayItemValue)

func (*FilterConditionContains) Satisfies

func (cond *FilterConditionContains) Satisfies(other FilterCondition) bool

func (*FilterConditionContains) SatisfiesRaw

func (cond *FilterConditionContains) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionContains) SpecifiesFieldPath

func (cond *FilterConditionContains) SpecifiesFieldPath(fp Resource_FieldPath) bool

func (*FilterConditionContains) SpecifiesRawFieldPath

func (cond *FilterConditionContains) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionContains) String

func (cond *FilterConditionContains) String() string

type FilterConditionIn

type FilterConditionIn struct {
	Resource_FieldPathArrayOfValues
}

func (*FilterConditionIn) And

func (*FilterConditionIn) ConditionIn

func (cond *FilterConditionIn) ConditionIn()

func (*FilterConditionIn) Evaluate

func (cond *FilterConditionIn) Evaluate(res *Resource) bool

func (*FilterConditionIn) EvaluateRaw

func (cond *FilterConditionIn) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionIn) GetRawFieldPath

func (cond *FilterConditionIn) GetRawFieldPath() gotenobject.FieldPath

func (*FilterConditionIn) GetRawFieldPathArrayOfValues

func (cond *FilterConditionIn) GetRawFieldPathArrayOfValues() gotenobject.FieldPathArrayOfValues

func (*FilterConditionIn) Satisfies

func (cond *FilterConditionIn) Satisfies(other FilterCondition) bool

func (*FilterConditionIn) SatisfiesRaw

func (cond *FilterConditionIn) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionIn) SpecifiesFieldPath

func (cond *FilterConditionIn) SpecifiesFieldPath(fp Resource_FieldPath) bool

func (*FilterConditionIn) SpecifiesRawFieldPath

func (cond *FilterConditionIn) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionIn) String

func (cond *FilterConditionIn) String() string

type FilterConditionIsNaN

type FilterConditionIsNaN struct {
	Not       bool
	FieldPath Resource_FieldPath
}

func (*FilterConditionIsNaN) And

func (*FilterConditionIsNaN) ConditionIsNaN

func (cond *FilterConditionIsNaN) ConditionIsNaN()

func (*FilterConditionIsNaN) Evaluate

func (cond *FilterConditionIsNaN) Evaluate(res *Resource) bool

func (*FilterConditionIsNaN) EvaluateRaw

func (cond *FilterConditionIsNaN) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionIsNaN) GetRawFieldPath

func (cond *FilterConditionIsNaN) GetRawFieldPath() gotenobject.FieldPath

func (*FilterConditionIsNaN) Satisfies

func (cond *FilterConditionIsNaN) Satisfies(other FilterCondition) bool

func (*FilterConditionIsNaN) SatisfiesRaw

func (cond *FilterConditionIsNaN) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionIsNaN) SpecifiesFieldPath

func (cond *FilterConditionIsNaN) SpecifiesFieldPath(fp Resource_FieldPath) bool

func (*FilterConditionIsNaN) SpecifiesRawFieldPath

func (cond *FilterConditionIsNaN) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionIsNaN) String

func (cond *FilterConditionIsNaN) String() string

type FilterConditionIsNull

type FilterConditionIsNull struct {
	Not       bool
	FieldPath Resource_FieldPath
}

func (*FilterConditionIsNull) And

func (*FilterConditionIsNull) ConditionIsNull

func (cond *FilterConditionIsNull) ConditionIsNull()

func (*FilterConditionIsNull) Evaluate

func (cond *FilterConditionIsNull) Evaluate(res *Resource) bool

func (*FilterConditionIsNull) EvaluateRaw

func (cond *FilterConditionIsNull) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionIsNull) GetRawFieldPath

func (cond *FilterConditionIsNull) GetRawFieldPath() gotenobject.FieldPath

func (*FilterConditionIsNull) NotNull

func (cond *FilterConditionIsNull) NotNull() bool

func (*FilterConditionIsNull) Satisfies

func (cond *FilterConditionIsNull) Satisfies(other FilterCondition) bool

func (*FilterConditionIsNull) SatisfiesRaw

func (cond *FilterConditionIsNull) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionIsNull) SpecifiesFieldPath

func (cond *FilterConditionIsNull) SpecifiesFieldPath(fp Resource_FieldPath) bool

func (*FilterConditionIsNull) SpecifiesRawFieldPath

func (cond *FilterConditionIsNull) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionIsNull) String

func (cond *FilterConditionIsNull) String() string

type FilterConditionNot

type FilterConditionNot struct {
	FilterCondition
}

func (*FilterConditionNot) And

func (*FilterConditionNot) ConditionNot

func (cond *FilterConditionNot) ConditionNot()

func (*FilterConditionNot) Evaluate

func (cond *FilterConditionNot) Evaluate(res *Resource) bool

func (*FilterConditionNot) EvaluateRaw

func (cond *FilterConditionNot) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionNot) GetSubCondition

func (cond *FilterConditionNot) GetSubCondition() gotenresource.FilterCondition

func (*FilterConditionNot) Satisfies

func (cond *FilterConditionNot) Satisfies(other FilterCondition) bool

func (*FilterConditionNot) SatisfiesRaw

func (cond *FilterConditionNot) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionNot) SpecifiesFieldPath

func (cond *FilterConditionNot) SpecifiesFieldPath(fp Resource_FieldPath) bool

func (*FilterConditionNot) SpecifiesRawFieldPath

func (cond *FilterConditionNot) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionNot) String

func (cond *FilterConditionNot) String() string

type FilterConditionNotIn

type FilterConditionNotIn struct {
	Resource_FieldPathArrayOfValues
}

func (*FilterConditionNotIn) And

func (*FilterConditionNotIn) ConditionNotIn

func (cond *FilterConditionNotIn) ConditionNotIn()

func (*FilterConditionNotIn) Evaluate

func (cond *FilterConditionNotIn) Evaluate(res *Resource) bool

func (*FilterConditionNotIn) EvaluateRaw

func (cond *FilterConditionNotIn) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionNotIn) GetRawFieldPath

func (cond *FilterConditionNotIn) GetRawFieldPath() gotenobject.FieldPath

func (*FilterConditionNotIn) GetRawFieldPathArrayOfValues

func (cond *FilterConditionNotIn) GetRawFieldPathArrayOfValues() gotenobject.FieldPathArrayOfValues

func (*FilterConditionNotIn) Satisfies

func (cond *FilterConditionNotIn) Satisfies(other FilterCondition) bool

func (*FilterConditionNotIn) SatisfiesRaw

func (cond *FilterConditionNotIn) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionNotIn) SpecifiesFieldPath

func (cond *FilterConditionNotIn) SpecifiesFieldPath(fp Resource_FieldPath) bool

func (*FilterConditionNotIn) SpecifiesRawFieldPath

func (cond *FilterConditionNotIn) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionNotIn) String

func (cond *FilterConditionNotIn) String() string

type GetQuery

type GetQuery struct {
	Reference *Reference
	Mask      *Resource_FieldMask
}

func (*GetQuery) GetFieldMask

func (q *GetQuery) GetFieldMask() gotenobject.FieldMask

func (*GetQuery) GetReference

func (q *GetQuery) GetReference() gotenresource.Reference

func (*GetQuery) GetResourceDescriptor

func (q *GetQuery) GetResourceDescriptor() gotenresource.Descriptor

func (*GetQuery) GotenQuery

func (q *GetQuery) GotenQuery()

func (*GetQuery) SetFieldMask

func (q *GetQuery) SetFieldMask(mask gotenobject.FieldMask)

func (*GetQuery) SetReference

func (q *GetQuery) SetReference(ref gotenresource.Reference)

func (*GetQuery) String

func (q *GetQuery) String() string

type ListQuery

type ListQuery struct {
	Filter         *Filter
	Pager          *PagerQuery
	Mask           *Resource_FieldMask
	WithPagingInfo bool
}

func (*ListQuery) GetFieldMask

func (q *ListQuery) GetFieldMask() gotenobject.FieldMask

func (*ListQuery) GetFilter

func (q *ListQuery) GetFilter() gotenresource.Filter

func (*ListQuery) GetPager

func (q *ListQuery) GetPager() gotenresource.PagerQuery

func (*ListQuery) GetResourceDescriptor

func (q *ListQuery) GetResourceDescriptor() gotenresource.Descriptor

func (*ListQuery) GetWithPagingInfo

func (q *ListQuery) GetWithPagingInfo() bool

func (*ListQuery) GotenQuery

func (q *ListQuery) GotenQuery()

func (*ListQuery) SetFieldMask

func (q *ListQuery) SetFieldMask(mask gotenobject.FieldMask)

func (*ListQuery) SetFilter

func (q *ListQuery) SetFilter(filter gotenresource.Filter)

func (*ListQuery) SetPager

func (q *ListQuery) SetPager(pager gotenresource.PagerQuery)

func (*ListQuery) SetWithPagingInfo

func (q *ListQuery) SetWithPagingInfo(with bool)

func (*ListQuery) String

func (q *ListQuery) String() string

type Name

type Name struct {
	ParentName
	ResourceId string `firestore:"resourceId"`
}

func MakeNameFromFullyQualifiedName

func MakeNameFromFullyQualifiedName(fqn string) *Name

func MakeNameFromResourceDescriptor

func MakeNameFromResourceDescriptor(descriptor gotenresource.Descriptor) *Name

func MustParseName

func MustParseName(name string) *Name

func ParseName

func ParseName(name string) (*Name, error)

func ParseNameOrId

func ParseNameOrId(nameOrId string) (*Name, error)

func (*Name) AsRawReference

func (name *Name) AsRawReference() gotenresource.Reference

func (*Name) AsReference

func (name *Name) AsReference() *Reference

func (*Name) ConvertToNative

func (name *Name) ConvertToNative(typeDesc reflect.Type) (interface{}, error)

func (*Name) ConvertToType

func (name *Name) ConvertToType(typeVal ref.Type) ref.Val

func (*Name) Equal

func (name *Name) Equal(other ref.Val) ref.Val

func (*Name) FormResourceFullyQualifiedTypeName

func (n *Name) FormResourceFullyQualifiedTypeName() string

func (*Name) FullyQualifiedName

func (name *Name) FullyQualifiedName() (string, error)

func (*Name) GetIParentName

func (name *Name) GetIParentName() gotenresource.Name

func (*Name) GetIUnderlyingParentName

func (name *Name) GetIUnderlyingParentName() gotenresource.Name

func (*Name) GetIdParts

func (name *Name) GetIdParts() map[string]string

func (*Name) GetPattern

func (name *Name) GetPattern() gotenresource.NamePattern

func (*Name) GetResourceDescriptor

func (name *Name) GetResourceDescriptor() gotenresource.Descriptor

func (*Name) GetSegments

func (name *Name) GetSegments() gotenresource.NameSegments

func (*Name) GetServiceName

func (name *Name) GetServiceName() *service.Name

func (*Name) GotenEqual

func (name *Name) GotenEqual(other interface{}) bool

GotenEqual returns true if other is of same type and paths are equal (implements goten.Equaler interface)

func (*Name) HasTrait

func (name *Name) HasTrait(trait int) bool

func (*Name) IsFullyQualified

func (name *Name) IsFullyQualified() bool

func (*Name) IsSpecified

func (name *Name) IsSpecified() bool

func (*Name) Match

func (name *Name) Match(pattern ref.Val) ref.Val

func (*Name) Matches

func (name *Name) Matches(other interface{}) bool

Matches is same as GotenEqual, but also will accept "other" if name is wildcard.

func (*Name) ParseProtoString

func (name *Name) ParseProtoString(data string) error

func (*Name) ProtoString

func (name *Name) ProtoString() (string, error)

func (*Name) Receive

func (name *Name) Receive(function string, overload string, args []ref.Val) ref.Val

func (*Name) SetFromCliFlag

func (name *Name) SetFromCliFlag(raw string) error

implement CustomTypeCliValue method

func (*Name) SetFromSegments

func (name *Name) SetFromSegments(segments gotenresource.NameSegments) error

func (*Name) String

func (name *Name) String() string

func (*Name) Type

func (name *Name) Type() ref.Type

func (*Name) TypeName

func (name *Name) TypeName() string

func (*Name) Value

func (name *Name) Value() interface{}

type NameBuilder

type NameBuilder struct {
	// contains filtered or unexported fields
}

func NewNameBuilder

func NewNameBuilder() *NameBuilder

func (*NameBuilder) Name

func (b *NameBuilder) Name() *Name

func (*NameBuilder) Parent

func (b *NameBuilder) Parent() *ParentName

func (*NameBuilder) ParentReference

func (b *NameBuilder) ParentReference() *ParentReference

func (*NameBuilder) Reference

func (b *NameBuilder) Reference() *Reference

func (*NameBuilder) SetId

func (b *NameBuilder) SetId(id string) *NameBuilder

func (*NameBuilder) SetService

func (b *NameBuilder) SetService(parent *service.Name) *NameBuilder

func (*NameBuilder) SetServiceId

func (b *NameBuilder) SetServiceId(id string) *NameBuilder

type NamePattern

type NamePattern struct {
	Pattern gotenresource.NamePattern `firestore:"pattern"`
}

type OrderBy

type OrderBy struct {
	OrderByFields []OrderByField
}

OrderBy Is string encoded Custom Protobuf type, which handles "order_by" field order_by consists of coma delimited OrderBy specs, which denote ordering priority, e.g. "state.value asc, state.capacity desc"

func (*OrderBy) Compare

func (orderBy *OrderBy) Compare(left, right *Resource) int

func (*OrderBy) CompareRaw

func (orderBy *OrderBy) CompareRaw(left, right gotenresource.Resource) int

func (*OrderBy) GetFieldMask

func (orderBy *OrderBy) GetFieldMask() *Resource_FieldMask

func (*OrderBy) GetOrderByFields

func (orderBy *OrderBy) GetOrderByFields() []gotenresource.OrderByField

func (*OrderBy) GetRawFieldMask

func (orderBy *OrderBy) GetRawFieldMask() gotenobject.FieldMask

func (*OrderBy) InsertSorted

func (orderBy *OrderBy) InsertSorted(sorted ResourceList, elem *Resource) (ResourceList, int)

func (*OrderBy) InsertSortedRaw

func (orderBy *OrderBy) InsertSortedRaw(sorted gotenresource.ResourceList, elem gotenresource.Resource) (gotenresource.ResourceList, int)

func (*OrderBy) ParseProtoString

func (orderBy *OrderBy) ParseProtoString(data string) error

func (*OrderBy) ProtoString

func (orderBy *OrderBy) ProtoString() (string, error)

func (*OrderBy) SetFromCliFlag

func (orderBy *OrderBy) SetFromCliFlag(raw string) error

func (*OrderBy) Sort

func (orderBy *OrderBy) Sort(results ResourceList)

func (*OrderBy) SortRaw

func (orderBy *OrderBy) SortRaw(results gotenresource.ResourceList)

func (*OrderBy) String

func (orderBy *OrderBy) String() string

type OrderByField

type OrderByField struct {
	FieldPath Resource_FieldPath
	Direction gotenresource.OrderDirection
}

OrderByField is single item in order_by specification it's string format is composed of 2 white-space separated values: - fieldPath and direction, e.g. "state.capacity desc". if direction is not provided, it defaults to "asc" (ascending)

func (*OrderByField) CompareWithDirection

func (orderByFld *OrderByField) CompareWithDirection(left, right *Resource) int

func (*OrderByField) GetDirection

func (orderByFld *OrderByField) GetDirection() gotenresource.OrderDirection

func (*OrderByField) GetFieldPath

func (orderByFld *OrderByField) GetFieldPath() gotenobject.FieldPath

type PagerCursor

type PagerCursor struct {
	CursorValue   gotenresource.CursorValue
	Inclusion     gotenresource.CursorInclusion
	PageDirection gotenresource.PageDirection
}

PagerCursor is protobuf Custom Type, which (de)serializes "string page_token" for API List processing Database adapter implementation must use this cursor when Paginating list views Token is composed of 3 values (dot separated in serialized form) - CursorValue: Backend-specific value of the cursor. - PageDirection: either l (left) or r (right), which hints DB Adapter whether Snapshot marks Start or End of result - Inclusion: either i (inclusive) or e (exclusive) - Whether cursor marks exact point or right before/after (depending on direction)

func (*PagerCursor) GetInclusion

func (cursor *PagerCursor) GetInclusion() gotenresource.CursorInclusion

func (*PagerCursor) GetPageDirection

func (cursor *PagerCursor) GetPageDirection() gotenresource.PageDirection

func (*PagerCursor) GetValue

func (cursor *PagerCursor) GetValue() gotenresource.CursorValue

func (*PagerCursor) IsEmpty

func (cursor *PagerCursor) IsEmpty() bool

func (*PagerCursor) ParseProtoString

func (cursor *PagerCursor) ParseProtoString(data string) (err error)

func (*PagerCursor) ProtoString

func (cursor *PagerCursor) ProtoString() (string, error)

func (*PagerCursor) SetCursorValue

func (cursor *PagerCursor) SetCursorValue(value gotenresource.CursorValue)

func (*PagerCursor) SetFromCliFlag

func (cursor *PagerCursor) SetFromCliFlag(raw string) error

func (*PagerCursor) SetInclusion

func (cursor *PagerCursor) SetInclusion(inclusion gotenresource.CursorInclusion)

func (*PagerCursor) SetPageDirection

func (cursor *PagerCursor) SetPageDirection(direction gotenresource.PageDirection)

func (*PagerCursor) String

func (cursor *PagerCursor) String() string

type PagerQuery

type PagerQuery struct {
	OrderBy     *OrderBy
	Cursor      *PagerCursor
	Limit       int
	PeekForward bool
}

PagerQuery is main struct used for assisting server and database to perform Pagination

func MakePagerQuery

func MakePagerQuery(orderBy *OrderBy, cursor *PagerCursor, pageSize int32, peekForward bool) *PagerQuery

MakePagerQuery builds pager from API data and applies defaults

func (*PagerQuery) GetCursor

func (p *PagerQuery) GetCursor() gotenresource.Cursor

func (*PagerQuery) GetLimit

func (p *PagerQuery) GetLimit() int

func (*PagerQuery) GetOrderBy

func (p *PagerQuery) GetOrderBy() gotenresource.OrderBy

func (*PagerQuery) GetPeekForward

func (p *PagerQuery) GetPeekForward() bool

func (*PagerQuery) GetResourceDescriptor

func (p *PagerQuery) GetResourceDescriptor() gotenresource.Descriptor

func (*PagerQuery) PageDirection

func (p *PagerQuery) PageDirection() gotenresource.PageDirection

func (*PagerQuery) SetCursor

func (p *PagerQuery) SetCursor(cursor gotenresource.Cursor)

func (*PagerQuery) SetLimit

func (p *PagerQuery) SetLimit(limit int)

func (*PagerQuery) SetOrderBy

func (p *PagerQuery) SetOrderBy(orderBy gotenresource.OrderBy)

func (*PagerQuery) SetPageDirection

func (p *PagerQuery) SetPageDirection(direction gotenresource.PageDirection)

func (*PagerQuery) SetPeekForward

func (p *PagerQuery) SetPeekForward(peekForward bool)

type ParentName

type ParentName struct {
	NamePattern
	ServiceId string `firestore:"serviceId"`
}

func MustParseParentName

func MustParseParentName(name string) *ParentName

func ParseParentName

func ParseParentName(name string) (*ParentName, error)

func (*ParentName) AsRawReference

func (name *ParentName) AsRawReference() gotenresource.Reference

func (*ParentName) AsReference

func (name *ParentName) AsReference() *ParentReference

func (*ParentName) ConvertToNative

func (name *ParentName) ConvertToNative(typeDesc reflect.Type) (interface{}, error)

func (*ParentName) ConvertToType

func (name *ParentName) ConvertToType(typeVal ref.Type) ref.Val

func (*ParentName) DescendsFrom

func (name *ParentName) DescendsFrom(ancestor string) bool

func (*ParentName) Equal

func (name *ParentName) Equal(other ref.Val) ref.Val

func (*ParentName) FullyQualifiedName

func (name *ParentName) FullyQualifiedName() (string, error)

func (*ParentName) GetIParentName

func (name *ParentName) GetIParentName() gotenresource.Name

func (*ParentName) GetIUnderlyingParentName

func (name *ParentName) GetIUnderlyingParentName() gotenresource.Name

func (*ParentName) GetIdParts

func (name *ParentName) GetIdParts() map[string]string

func (*ParentName) GetPattern

func (name *ParentName) GetPattern() gotenresource.NamePattern

func (*ParentName) GetResourceDescriptor

func (name *ParentName) GetResourceDescriptor() gotenresource.Descriptor

func (*ParentName) GetSegments

func (name *ParentName) GetSegments() gotenresource.NameSegments

func (*ParentName) GetServiceName

func (name *ParentName) GetServiceName() *service.Name

func (*ParentName) GotenEqual

func (name *ParentName) GotenEqual(other interface{}) bool

GotenEqual returns true if other is of same type and paths are equal (implements goten.Equaler interface)

func (*ParentName) HasTrait

func (name *ParentName) HasTrait(trait int) bool

func (*ParentName) IsFullyQualified

func (name *ParentName) IsFullyQualified() bool

func (*ParentName) IsSpecified

func (name *ParentName) IsSpecified() bool

func (*ParentName) Match

func (name *ParentName) Match(pattern ref.Val) ref.Val

func (*ParentName) Matches

func (name *ParentName) Matches(other interface{}) bool

Matches is same as GotenEqual, but also will accept "other" if name is wildcard.

func (*ParentName) ParseProtoString

func (name *ParentName) ParseProtoString(data string) error

func (*ParentName) ProtoString

func (name *ParentName) ProtoString() (string, error)

func (*ParentName) Receive

func (name *ParentName) Receive(function string, overload string, args []ref.Val) ref.Val

func (*ParentName) SetFromCliFlag

func (name *ParentName) SetFromCliFlag(raw string) error

implement CustomTypeCliValue method

func (*ParentName) SetFromSegments

func (name *ParentName) SetFromSegments(segments gotenresource.NameSegments) error

func (*ParentName) String

func (name *ParentName) String() string

func (*ParentName) Type

func (name *ParentName) Type() ref.Type

func (*ParentName) TypeName

func (name *ParentName) TypeName() string

func (*ParentName) Value

func (name *ParentName) Value() interface{}

type ParentReference

type ParentReference struct {
	ParentName
	// contains filtered or unexported fields
}

func MakeParentReference

func MakeParentReference(name *ParentName) (*ParentReference, error)

func MustParseParentReference

func MustParseParentReference(name string) *ParentReference

func ParseParentReference

func ParseParentReference(name string) (*ParentReference, error)

func (*ParentReference) ClearCached

func (ref *ParentReference) ClearCached()

func (*ParentReference) GetIParentName

func (ref *ParentReference) GetIParentName() gotenresource.Name

func (*ParentReference) GetIUnderlyingParentName

func (ref *ParentReference) GetIUnderlyingParentName() gotenresource.Name

func (*ParentReference) GetIdParts

func (ref *ParentReference) GetIdParts() map[string]string

func (*ParentReference) GetPattern

func (ref *ParentReference) GetPattern() gotenresource.NamePattern

func (*ParentReference) GetRawResource

func (ref *ParentReference) GetRawResource() gotenresource.Resource

func (*ParentReference) GetResourceDescriptor

func (ref *ParentReference) GetResourceDescriptor() gotenresource.Descriptor

func (*ParentReference) GetSegments

func (ref *ParentReference) GetSegments() gotenresource.NameSegments

func (*ParentReference) GetService

func (ref *ParentReference) GetService() *service.Service

func (*ParentReference) GetServiceReference

func (ref *ParentReference) GetServiceReference() *service.Reference

func (*ParentReference) GetUnderlyingReference

func (ref *ParentReference) GetUnderlyingReference() gotenresource.Reference

func (*ParentReference) GotenEqual

func (ref *ParentReference) GotenEqual(other interface{}) bool

GotenEqual returns true if other is of same type and paths are equal (implements goten.Equaler interface)

func (*ParentReference) IsFullyQualified

func (ref *ParentReference) IsFullyQualified() bool

func (*ParentReference) IsSpecified

func (ref *ParentReference) IsSpecified() bool

func (*ParentReference) Matches

func (name *ParentReference) Matches(other interface{}) bool

Matches is same as GotenEqual, but also will accept "other" if name is wildcard.

func (*ParentReference) ParseProtoString

func (ref *ParentReference) ParseProtoString(data string) error

func (*ParentReference) ProtoString

func (ref *ParentReference) ProtoString() (string, error)

func (*ParentReference) ResolveRaw

func (ref *ParentReference) ResolveRaw(res gotenresource.Resource) error

func (*ParentReference) Resolved

func (ref *ParentReference) Resolved() bool

func (*ParentReference) SetFromCliFlag

func (ref *ParentReference) SetFromCliFlag(raw string) error

implement CustomTypeCliValue method

func (*ParentReference) String

func (ref *ParentReference) String() string

type QueryResultChange

type QueryResultChange struct {
	Changes        []*ResourceChange
	PrevPageCursor *PagerCursor
	NextPageCursor *PagerCursor
	ResumeToken    string
	IsCurrent      bool
	IsHardReset    bool
	IsSoftReset    bool
	SnapshotSize   int64
}

func (*QueryResultChange) GetIsCurrent

func (qr *QueryResultChange) GetIsCurrent() bool

func (*QueryResultChange) GetIsHardReset

func (qr *QueryResultChange) GetIsHardReset() bool

func (*QueryResultChange) GetIsSoftReset

func (qr *QueryResultChange) GetIsSoftReset() bool

func (*QueryResultChange) GetNextPageCursor

func (qr *QueryResultChange) GetNextPageCursor() gotenresource.Cursor

func (*QueryResultChange) GetPrevPageCursor

func (qr *QueryResultChange) GetPrevPageCursor() gotenresource.Cursor

func (*QueryResultChange) GetResults

func (*QueryResultChange) GetResumeToken

func (qr *QueryResultChange) GetResumeToken() string

func (*QueryResultChange) GetSnapshotSize

func (qr *QueryResultChange) GetSnapshotSize() int64

func (*QueryResultChange) SetCursors

func (qr *QueryResultChange) SetCursors(nextPageCursor, prevPageCursor gotenresource.Cursor)

func (*QueryResultChange) SetIsCurrent

func (qr *QueryResultChange) SetIsCurrent()

func (*QueryResultChange) SetIsHardReset

func (qr *QueryResultChange) SetIsHardReset()

func (*QueryResultChange) SetIsSoftReset

func (qr *QueryResultChange) SetIsSoftReset()

func (*QueryResultChange) SetResults

func (qr *QueryResultChange) SetResults(results gotenresource.ResourceChangeList)

func (*QueryResultChange) SetResumeToken

func (qr *QueryResultChange) SetResumeToken(token string)

func (*QueryResultChange) SetSnapshotSize

func (qr *QueryResultChange) SetSnapshotSize(size int64)

type QueryResultSnapshot

type QueryResultSnapshot struct {
	Resources         []*Resource
	PrevPageCursor    *PagerCursor
	NextPageCursor    *PagerCursor
	TotalResultsCount int32
	CurrentOffset     int32
}

func (*QueryResultSnapshot) GetNextPageCursor

func (qr *QueryResultSnapshot) GetNextPageCursor() gotenresource.Cursor

func (*QueryResultSnapshot) GetPagingInfo

func (qr *QueryResultSnapshot) GetPagingInfo() (totalCount, offset int32)

func (*QueryResultSnapshot) GetPrevPageCursor

func (qr *QueryResultSnapshot) GetPrevPageCursor() gotenresource.Cursor

func (*QueryResultSnapshot) GetResults

func (*QueryResultSnapshot) SetCursors

func (qr *QueryResultSnapshot) SetCursors(nextPageCursor, prevPageCursor gotenresource.Cursor)

func (*QueryResultSnapshot) SetPagingInfo

func (qr *QueryResultSnapshot) SetPagingInfo(totalCount, offset int32)

func (*QueryResultSnapshot) SetResults

func (qr *QueryResultSnapshot) SetResults(results gotenresource.ResourceList)

type Reference

type Reference struct {
	Name
	// contains filtered or unexported fields
}

func MakeReference

func MakeReference(name *Name, resource *Resource) (*Reference, error)

func MustParseReference

func MustParseReference(name string) *Reference

func ParseReference

func ParseReference(name string) (*Reference, error)

func (*Reference) ClearCached

func (ref *Reference) ClearCached()

func (*Reference) FullyQualifiedName

func (ref *Reference) FullyQualifiedName() (string, error)

func (*Reference) GetIParentName

func (ref *Reference) GetIParentName() gotenresource.Name

func (*Reference) GetIUnderlyingParentName

func (ref *Reference) GetIUnderlyingParentName() gotenresource.Name

func (*Reference) GetIdParts

func (ref *Reference) GetIdParts() map[string]string

func (*Reference) GetPattern

func (ref *Reference) GetPattern() gotenresource.NamePattern

func (*Reference) GetRawResource

func (ref *Reference) GetRawResource() gotenresource.Resource

func (*Reference) GetResource

func (ref *Reference) GetResource() *Resource

func (*Reference) GetResourceDescriptor

func (ref *Reference) GetResourceDescriptor() gotenresource.Descriptor

func (*Reference) GetSegments

func (ref *Reference) GetSegments() gotenresource.NameSegments

func (*Reference) GotenEqual

func (ref *Reference) GotenEqual(other interface{}) bool

GotenEqual returns true if other is of same type and paths are equal (implements goten.Equaler interface)

func (*Reference) IsFullyQualified

func (ref *Reference) IsFullyQualified() bool

func (*Reference) IsSpecified

func (ref *Reference) IsSpecified() bool

func (*Reference) Matches

func (name *Reference) Matches(other interface{}) bool

Matches is same as GotenEqual, but also will accept "other" if name is wildcard.

func (*Reference) ParseProtoString

func (ref *Reference) ParseProtoString(data string) error

func (*Reference) ProtoString

func (ref *Reference) ProtoString() (string, error)

func (*Reference) Resolve

func (ref *Reference) Resolve(resolved *Resource)

func (*Reference) ResolveRaw

func (ref *Reference) ResolveRaw(res gotenresource.Resource) error

func (*Reference) Resolved

func (ref *Reference) Resolved() bool

func (*Reference) SetFromCliFlag

func (ref *Reference) SetFromCliFlag(raw string) error

implement CustomTypeCliValue method

func (*Reference) String

func (ref *Reference) String() string

type Resource

type Resource struct {

	// Name of Resource
	// When creating a new instance, this field is optional and if not provided,
	// it will be generated automatically. Last ID segment must conform to the
	// following regex: [a-zA-Z]{1,128}
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// Metadata is an object with information like create, update and delete time
	// (for async deleted resources), has user labels/annotations, sharding
	// information, multi-region syncing information and may have non-schema
	// owners (useful for taking ownership of resources belonging to lower level
	// services by higher ones).
	Metadata *meta.Meta `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty" firestore:"metadata"`
	// Plural name of resource in CamelForm, for example "Devices"
	PluralName string `protobuf:"bytes,3,opt,name=plural_name,json=pluralName,proto3" json:"plural_name,omitempty" firestore:"pluralName"`
	// Fully qualified name, for example devices.edgelq.com/Device.
	// It can also be derived from name too.
	Fqn string `protobuf:"bytes,4,opt,name=fqn,proto3" json:"fqn,omitempty" firestore:"fqn"`
	// List of service versions where this resource is known.
	// This list will be sorted if created by meta service provided by Goten.
	// The newest version is first, the oldest last.
	Versions []string `protobuf:"bytes,5,rep,name=versions,proto3" json:"versions,omitempty" firestore:"versions"`
	// Versioned information holds values that may be valid for specific versions
	// only. Sorted exactly like versions list.
	VersionedInfos []*Resource_VersionedInfo `` /* 130-byte string literal not displayed */
	// Internal allowed services generation field from Service resource.
	// Used for metadata synchronization.
	AllowedServicesGeneration int64 `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

Resource Resource

func (*Resource) Clone

func (o *Resource) Clone() *Resource

func (*Resource) CloneRaw

func (o *Resource) CloneRaw() gotenobject.GotenObjectExt

func (*Resource) Descriptor

func (*Resource) Descriptor() ([]byte, []int)

Deprecated, Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) EnsureMetadata

func (r *Resource) EnsureMetadata() *meta.Meta

func (*Resource) GetAllowedServicesGeneration

func (m *Resource) GetAllowedServicesGeneration() int64

func (*Resource) GetFqn

func (m *Resource) GetFqn() string

func (*Resource) GetMetadata

func (m *Resource) GetMetadata() *meta.Meta

func (*Resource) GetName

func (m *Resource) GetName() *Name

func (*Resource) GetPluralName

func (m *Resource) GetPluralName() string

func (*Resource) GetRawName

func (r *Resource) GetRawName() gotenresource.Name

func (*Resource) GetResourceDescriptor

func (r *Resource) GetResourceDescriptor() gotenresource.Descriptor

func (*Resource) GetVersionedInfos

func (m *Resource) GetVersionedInfos() []*Resource_VersionedInfo

func (*Resource) GetVersions

func (m *Resource) GetVersions() []string

func (*Resource) GotenMessage

func (*Resource) GotenMessage()

func (*Resource) GotenObjectExt

func (o *Resource) GotenObjectExt()

func (*Resource) GotenValidate

func (obj *Resource) GotenValidate() error

func (*Resource) MakeDiffFieldMask

func (o *Resource) MakeDiffFieldMask(other *Resource) *Resource_FieldMask

func (*Resource) MakeFullFieldMask

func (o *Resource) MakeFullFieldMask() *Resource_FieldMask

func (*Resource) MakeRawDiffFieldMask

func (o *Resource) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask

func (*Resource) MakeRawFullFieldMask

func (o *Resource) MakeRawFullFieldMask() gotenobject.FieldMask

func (*Resource) Marshal

func (m *Resource) Marshal() ([]byte, error)

func (*Resource) MarshalJSON

func (m *Resource) MarshalJSON() ([]byte, error)

func (*Resource) MaybePopulateDefaults

func (r *Resource) MaybePopulateDefaults() error

func (*Resource) Merge

func (o *Resource) Merge(source *Resource)

func (*Resource) MergeRaw

func (o *Resource) MergeRaw(source gotenobject.GotenObjectExt)

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

func (m *Resource) ProtoReflect() preflect.Message

func (*Resource) Reset

func (m *Resource) Reset()

func (*Resource) SetAllowedServicesGeneration

func (m *Resource) SetAllowedServicesGeneration(fv int64)

func (*Resource) SetFqn

func (m *Resource) SetFqn(fv string)

func (*Resource) SetMetadata

func (m *Resource) SetMetadata(fv *meta.Meta)

func (*Resource) SetName

func (m *Resource) SetName(fv *Name)

func (*Resource) SetPluralName

func (m *Resource) SetPluralName(fv string)

func (*Resource) SetVersionedInfos

func (m *Resource) SetVersionedInfos(fv []*Resource_VersionedInfo)

func (*Resource) SetVersions

func (m *Resource) SetVersions(fv []string)

func (*Resource) String

func (m *Resource) String() string

func (*Resource) Unmarshal

func (m *Resource) Unmarshal(b []byte) error

func (*Resource) UnmarshalJSON

func (m *Resource) UnmarshalJSON(data []byte) error

type ResourceAccess

type ResourceAccess interface {
	GetResource(context.Context, *GetQuery) (*Resource, error)
	BatchGetResources(context.Context, []*Reference, ...gotenresource.BatchGetOption) error
	QueryResources(context.Context, *ListQuery) (*QueryResultSnapshot, error)
	WatchResource(context.Context, *GetQuery, func(*ResourceChange) error) error
	WatchResources(context.Context, *WatchQuery, func(*QueryResultChange) error) error
	SaveResource(context.Context, *Resource, ...gotenresource.SaveOption) error
	DeleteResource(context.Context, *Reference, ...gotenresource.DeleteOption) error
}

type ResourceChange

type ResourceChange struct {

	// Resource change
	//
	// Types that are valid to be assigned to ChangeType:
	//	*ResourceChange_Added_
	//	*ResourceChange_Modified_
	//	*ResourceChange_Current_
	//	*ResourceChange_Removed_
	ChangeType isResourceChange_ChangeType `protobuf_oneof:"change_type"`
	// contains filtered or unexported fields
}

ResourceChange is used by Watch notifications Responses to describe change of single Resource One of Added, Modified, Removed

func (*ResourceChange) Descriptor

func (*ResourceChange) Descriptor() ([]byte, []int)

Deprecated, Use ResourceChange.ProtoReflect.Descriptor instead.

func (*ResourceChange) GetAdded

func (m *ResourceChange) GetAdded() *ResourceChange_Added

func (*ResourceChange) GetChangeType

func (m *ResourceChange) GetChangeType() isResourceChange_ChangeType

func (*ResourceChange) GetCurrent

func (m *ResourceChange) GetCurrent() *ResourceChange_Current

func (*ResourceChange) GetCurrentViewIndex

func (c *ResourceChange) GetCurrentViewIndex() int32

func (*ResourceChange) GetModified

func (m *ResourceChange) GetModified() *ResourceChange_Modified

func (*ResourceChange) GetPreviousViewIndex

func (c *ResourceChange) GetPreviousViewIndex() int32

func (*ResourceChange) GetRawName

func (c *ResourceChange) GetRawName() gotenresource.Name

func (*ResourceChange) GetRawResource

func (c *ResourceChange) GetRawResource() gotenresource.Resource

func (*ResourceChange) GetRemoved

func (m *ResourceChange) GetRemoved() *ResourceChange_Removed

func (*ResourceChange) GetResource

func (c *ResourceChange) GetResource() *Resource

func (*ResourceChange) GetResourceName

func (c *ResourceChange) GetResourceName() *Name

func (*ResourceChange) GotenMessage

func (*ResourceChange) GotenMessage()

func (*ResourceChange) GotenValidate

func (obj *ResourceChange) GotenValidate() error

func (*ResourceChange) IsAdd

func (c *ResourceChange) IsAdd() bool

func (*ResourceChange) IsCurrent

func (c *ResourceChange) IsCurrent() bool

func (*ResourceChange) IsDelete

func (c *ResourceChange) IsDelete() bool

func (*ResourceChange) IsModify

func (c *ResourceChange) IsModify() bool

func (*ResourceChange) Marshal

func (m *ResourceChange) Marshal() ([]byte, error)

func (*ResourceChange) MarshalJSON

func (m *ResourceChange) MarshalJSON() ([]byte, error)

func (*ResourceChange) ProtoMessage

func (*ResourceChange) ProtoMessage()

func (*ResourceChange) ProtoReflect

func (m *ResourceChange) ProtoReflect() preflect.Message

func (*ResourceChange) Reset

func (m *ResourceChange) Reset()

func (*ResourceChange) SetAdded

func (m *ResourceChange) SetAdded(fv *ResourceChange_Added)

func (*ResourceChange) SetAddedRaw

func (c *ResourceChange) SetAddedRaw(snapshot gotenresource.Resource, idx int)

func (*ResourceChange) SetChangeType

func (m *ResourceChange) SetChangeType(ofv isResourceChange_ChangeType)

func (*ResourceChange) SetCurrent

func (m *ResourceChange) SetCurrent(fv *ResourceChange_Current)

func (*ResourceChange) SetCurrentRaw

func (c *ResourceChange) SetCurrentRaw(snapshot gotenresource.Resource)

func (*ResourceChange) SetDeletedRaw

func (c *ResourceChange) SetDeletedRaw(name gotenresource.Name, idx int)

func (*ResourceChange) SetModified

func (m *ResourceChange) SetModified(fv *ResourceChange_Modified)

func (*ResourceChange) SetModifiedRaw

func (c *ResourceChange) SetModifiedRaw(name gotenresource.Name, snapshot gotenresource.Resource, prevIdx int, newIdx int)

func (*ResourceChange) SetRemoved

func (m *ResourceChange) SetRemoved(fv *ResourceChange_Removed)

func (*ResourceChange) String

func (m *ResourceChange) String() string

func (*ResourceChange) Unmarshal

func (m *ResourceChange) Unmarshal(b []byte) error

func (*ResourceChange) UnmarshalJSON

func (m *ResourceChange) UnmarshalJSON(data []byte) error

type ResourceChangeList

type ResourceChangeList []*ResourceChange

func (ResourceChangeList) Append

func (ResourceChangeList) At

func (ResourceChangeList) Length

func (l ResourceChangeList) Length() int

func (ResourceChangeList) Set

func (ResourceChangeList) Slice

func (l ResourceChangeList) Slice(first, second int) gotenresource.ResourceChangeList

type ResourceChangeMap

type ResourceChangeMap map[Name]*ResourceChange

func (ResourceChangeMap) Delete

func (m ResourceChangeMap) Delete(name gotenresource.Name)

func (ResourceChangeMap) ForEach

func (ResourceChangeMap) Get

func (ResourceChangeMap) Length

func (m ResourceChangeMap) Length() int

func (ResourceChangeMap) Set

type ResourceChange_Added

type ResourceChange_Added struct {
	Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty" firestore:"resource"`
	// Integer describing index of added Resource in resulting query view.
	ViewIndex int32 `protobuf:"varint,2,opt,name=view_index,json=viewIndex,proto3" json:"view_index,omitempty" firestore:"viewIndex"`
	// contains filtered or unexported fields
}

Resource has been added to query view

func (*ResourceChange_Added) Descriptor

func (*ResourceChange_Added) Descriptor() ([]byte, []int)

Deprecated, Use ResourceChange_Added.ProtoReflect.Descriptor instead.

func (*ResourceChange_Added) GetResource

func (m *ResourceChange_Added) GetResource() *Resource

func (*ResourceChange_Added) GetViewIndex

func (m *ResourceChange_Added) GetViewIndex() int32

func (*ResourceChange_Added) GotenMessage

func (*ResourceChange_Added) GotenMessage()

func (*ResourceChange_Added) GotenValidate

func (obj *ResourceChange_Added) GotenValidate() error

func (*ResourceChange_Added) Marshal

func (m *ResourceChange_Added) Marshal() ([]byte, error)

func (*ResourceChange_Added) MarshalJSON

func (m *ResourceChange_Added) MarshalJSON() ([]byte, error)

func (*ResourceChange_Added) ProtoMessage

func (*ResourceChange_Added) ProtoMessage()

func (*ResourceChange_Added) ProtoReflect

func (m *ResourceChange_Added) ProtoReflect() preflect.Message

func (*ResourceChange_Added) Reset

func (m *ResourceChange_Added) Reset()

func (*ResourceChange_Added) SetResource

func (m *ResourceChange_Added) SetResource(fv *Resource)

func (*ResourceChange_Added) SetViewIndex

func (m *ResourceChange_Added) SetViewIndex(fv int32)

func (*ResourceChange_Added) String

func (m *ResourceChange_Added) String() string

func (*ResourceChange_Added) Unmarshal

func (m *ResourceChange_Added) Unmarshal(b []byte) error

func (*ResourceChange_Added) UnmarshalJSON

func (m *ResourceChange_Added) UnmarshalJSON(data []byte) error

type ResourceChange_Added_

type ResourceChange_Added_ struct {
	// Added is returned when watched document is added, either created or
	// enters Query view
	Added *ResourceChange_Added `protobuf:"bytes,1,opt,name=added,proto3,oneof" firestore:"added"`
}

type ResourceChange_Current

type ResourceChange_Current struct {
	Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty" firestore:"resource"`
	// contains filtered or unexported fields
}

Resource has been added or modified in a query view. Version used for stateless watching

func (*ResourceChange_Current) Descriptor

func (*ResourceChange_Current) Descriptor() ([]byte, []int)

Deprecated, Use ResourceChange_Current.ProtoReflect.Descriptor instead.

func (*ResourceChange_Current) GetResource

func (m *ResourceChange_Current) GetResource() *Resource

func (*ResourceChange_Current) GotenMessage

func (*ResourceChange_Current) GotenMessage()

func (*ResourceChange_Current) GotenValidate

func (obj *ResourceChange_Current) GotenValidate() error

func (*ResourceChange_Current) Marshal

func (m *ResourceChange_Current) Marshal() ([]byte, error)

func (*ResourceChange_Current) MarshalJSON

func (m *ResourceChange_Current) MarshalJSON() ([]byte, error)

func (*ResourceChange_Current) ProtoMessage

func (*ResourceChange_Current) ProtoMessage()

func (*ResourceChange_Current) ProtoReflect

func (m *ResourceChange_Current) ProtoReflect() preflect.Message

func (*ResourceChange_Current) Reset

func (m *ResourceChange_Current) Reset()

func (*ResourceChange_Current) SetResource

func (m *ResourceChange_Current) SetResource(fv *Resource)

func (*ResourceChange_Current) String

func (m *ResourceChange_Current) String() string

func (*ResourceChange_Current) Unmarshal

func (m *ResourceChange_Current) Unmarshal(b []byte) error

func (*ResourceChange_Current) UnmarshalJSON

func (m *ResourceChange_Current) UnmarshalJSON(data []byte) error

type ResourceChange_Current_

type ResourceChange_Current_ struct {
	// Current is returned in stateless watch when document enters query view or
	// is modified within.
	Current *ResourceChange_Current `protobuf:"bytes,4,opt,name=current,proto3,oneof" firestore:"current"`
}

type ResourceChange_Modified

type ResourceChange_Modified struct {

	// Name of modified Resource
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// New version of Resource or masked difference, depending on mask_changes
	// instrumentation of issued [WatchResourceRequest] or
	// [WatchResourcesRequest]
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty" firestore:"resource"`
	// Used when mask_changes is set, contains field paths of modified
	// properties.
	FieldMask *Resource_FieldMask `` /* 140-byte string literal not displayed */
	// Previous view index specifies previous position of modified Resource.
	// When modification doesn't affect sorted order, value will remain
	// identical to [view_index].
	PreviousViewIndex int32 `` /* 145-byte string literal not displayed */
	// Integer specifying Resource new index in resulting query view.
	ViewIndex int32 `protobuf:"varint,5,opt,name=view_index,json=viewIndex,proto3" json:"view_index,omitempty" firestore:"viewIndex"`
	// contains filtered or unexported fields
}

Resource changed some of it's fields - contains either full document or masked change

func (*ResourceChange_Modified) Descriptor

func (*ResourceChange_Modified) Descriptor() ([]byte, []int)

Deprecated, Use ResourceChange_Modified.ProtoReflect.Descriptor instead.

func (*ResourceChange_Modified) GetFieldMask

func (m *ResourceChange_Modified) GetFieldMask() *Resource_FieldMask

func (*ResourceChange_Modified) GetName

func (m *ResourceChange_Modified) GetName() *Name

func (*ResourceChange_Modified) GetPreviousViewIndex

func (m *ResourceChange_Modified) GetPreviousViewIndex() int32

func (*ResourceChange_Modified) GetResource

func (m *ResourceChange_Modified) GetResource() *Resource

func (*ResourceChange_Modified) GetViewIndex

func (m *ResourceChange_Modified) GetViewIndex() int32

func (*ResourceChange_Modified) GotenMessage

func (*ResourceChange_Modified) GotenMessage()

func (*ResourceChange_Modified) GotenValidate

func (obj *ResourceChange_Modified) GotenValidate() error

func (*ResourceChange_Modified) Marshal

func (m *ResourceChange_Modified) Marshal() ([]byte, error)

func (*ResourceChange_Modified) MarshalJSON

func (m *ResourceChange_Modified) MarshalJSON() ([]byte, error)

func (*ResourceChange_Modified) ProtoMessage

func (*ResourceChange_Modified) ProtoMessage()

func (*ResourceChange_Modified) ProtoReflect

func (m *ResourceChange_Modified) ProtoReflect() preflect.Message

func (*ResourceChange_Modified) Reset

func (m *ResourceChange_Modified) Reset()

func (*ResourceChange_Modified) SetFieldMask

func (m *ResourceChange_Modified) SetFieldMask(fv *Resource_FieldMask)

func (*ResourceChange_Modified) SetName

func (m *ResourceChange_Modified) SetName(fv *Name)

func (*ResourceChange_Modified) SetPreviousViewIndex

func (m *ResourceChange_Modified) SetPreviousViewIndex(fv int32)

func (*ResourceChange_Modified) SetResource

func (m *ResourceChange_Modified) SetResource(fv *Resource)

func (*ResourceChange_Modified) SetViewIndex

func (m *ResourceChange_Modified) SetViewIndex(fv int32)

func (*ResourceChange_Modified) String

func (m *ResourceChange_Modified) String() string

func (*ResourceChange_Modified) Unmarshal

func (m *ResourceChange_Modified) Unmarshal(b []byte) error

func (*ResourceChange_Modified) UnmarshalJSON

func (m *ResourceChange_Modified) UnmarshalJSON(data []byte) error

type ResourceChange_Modified_

type ResourceChange_Modified_ struct {
	// Modified is returned when watched document is modified
	Modified *ResourceChange_Modified `protobuf:"bytes,2,opt,name=modified,proto3,oneof" firestore:"modified"`
}

type ResourceChange_Removed

type ResourceChange_Removed struct {
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// Integer specifying removed Resource index. Not populated in stateless
	// watch type.
	ViewIndex int32 `protobuf:"varint,2,opt,name=view_index,json=viewIndex,proto3" json:"view_index,omitempty" firestore:"viewIndex"`
	// contains filtered or unexported fields
}

Removed is returned when Resource is deleted or leaves Query view

func (*ResourceChange_Removed) Descriptor

func (*ResourceChange_Removed) Descriptor() ([]byte, []int)

Deprecated, Use ResourceChange_Removed.ProtoReflect.Descriptor instead.

func (*ResourceChange_Removed) GetName

func (m *ResourceChange_Removed) GetName() *Name

func (*ResourceChange_Removed) GetViewIndex

func (m *ResourceChange_Removed) GetViewIndex() int32

func (*ResourceChange_Removed) GotenMessage

func (*ResourceChange_Removed) GotenMessage()

func (*ResourceChange_Removed) GotenValidate

func (obj *ResourceChange_Removed) GotenValidate() error

func (*ResourceChange_Removed) Marshal

func (m *ResourceChange_Removed) Marshal() ([]byte, error)

func (*ResourceChange_Removed) MarshalJSON

func (m *ResourceChange_Removed) MarshalJSON() ([]byte, error)

func (*ResourceChange_Removed) ProtoMessage

func (*ResourceChange_Removed) ProtoMessage()

func (*ResourceChange_Removed) ProtoReflect

func (m *ResourceChange_Removed) ProtoReflect() preflect.Message

func (*ResourceChange_Removed) Reset

func (m *ResourceChange_Removed) Reset()

func (*ResourceChange_Removed) SetName

func (m *ResourceChange_Removed) SetName(fv *Name)

func (*ResourceChange_Removed) SetViewIndex

func (m *ResourceChange_Removed) SetViewIndex(fv int32)

func (*ResourceChange_Removed) String

func (m *ResourceChange_Removed) String() string

func (*ResourceChange_Removed) Unmarshal

func (m *ResourceChange_Removed) Unmarshal(b []byte) error

func (*ResourceChange_Removed) UnmarshalJSON

func (m *ResourceChange_Removed) UnmarshalJSON(data []byte) error

type ResourceChange_Removed_

type ResourceChange_Removed_ struct {
	// Removed is returned when Resource is deleted or leaves Query view
	Removed *ResourceChange_Removed `protobuf:"bytes,3,opt,name=removed,proto3,oneof" firestore:"removed"`
}

type ResourceFieldPathBuilder

type ResourceFieldPathBuilder struct{}

func NewResourceFieldPathBuilder

func NewResourceFieldPathBuilder() ResourceFieldPathBuilder

func (ResourceFieldPathBuilder) AllowedServicesGeneration

func (ResourceFieldPathBuilder) Fqn

func (ResourceFieldPathBuilder) Metadata

func (ResourceFieldPathBuilder) Name

func (ResourceFieldPathBuilder) PluralName

func (ResourceFieldPathBuilder) VersionedInfos

func (ResourceFieldPathBuilder) Versions

type ResourceList

type ResourceList []*Resource

func (ResourceList) Append

func (ResourceList) AppendList

func (ResourceList) At

func (ResourceList) Length

func (l ResourceList) Length() int

func (ResourceList) Set

func (l ResourceList) Set(idx int, res gotenresource.Resource)

func (ResourceList) Slice

func (l ResourceList) Slice(first, second int) gotenresource.ResourceList

type ResourceMap

type ResourceMap map[Name]*Resource

func (ResourceMap) Delete

func (m ResourceMap) Delete(name gotenresource.Name)

func (ResourceMap) ForEach

func (ResourceMap) Get

func (ResourceMap) Length

func (m ResourceMap) Length() int

func (ResourceMap) Set

func (m ResourceMap) Set(res gotenresource.Resource)

type ResourceMapPathSelectorMetadataAnnotations

type ResourceMapPathSelectorMetadataAnnotations struct {
	// contains filtered or unexported fields
}

func (ResourceMapPathSelectorMetadataAnnotations) FieldPath

func (ResourceMapPathSelectorMetadataAnnotations) WithArrayOfValues

func (ResourceMapPathSelectorMetadataAnnotations) WithValue

type ResourceMapPathSelectorMetadataLabels

type ResourceMapPathSelectorMetadataLabels struct {
	// contains filtered or unexported fields
}

func (ResourceMapPathSelectorMetadataLabels) FieldPath

func (ResourceMapPathSelectorMetadataLabels) WithArrayOfValues

func (ResourceMapPathSelectorMetadataLabels) WithValue

type ResourceMapPathSelectorMetadataShards

type ResourceMapPathSelectorMetadataShards struct {
	// contains filtered or unexported fields
}

func (ResourceMapPathSelectorMetadataShards) FieldPath

func (ResourceMapPathSelectorMetadataShards) WithArrayOfValues

func (ResourceMapPathSelectorMetadataShards) WithValue

type ResourceNameList

type ResourceNameList []*Name

func (ResourceNameList) Append

func (ResourceNameList) AppendList

func (ResourceNameList) At

func (ResourceNameList) Length

func (l ResourceNameList) Length() int

func (ResourceNameList) Set

func (l ResourceNameList) Set(idx int, name gotenresource.Name)

func (ResourceNameList) Slice

func (l ResourceNameList) Slice(first, second int) gotenresource.NameList

type ResourceParentNameList

type ResourceParentNameList []*ParentName

func (ResourceParentNameList) Append

func (ResourceParentNameList) AppendList

func (ResourceParentNameList) At

func (ResourceParentNameList) Length

func (l ResourceParentNameList) Length() int

func (ResourceParentNameList) Set

func (l ResourceParentNameList) Set(idx int, name gotenresource.Name)

func (ResourceParentNameList) Slice

func (l ResourceParentNameList) Slice(first, second int) gotenresource.ParentNameList

type ResourceParentReferenceList

type ResourceParentReferenceList []*ParentReference

func (ResourceParentReferenceList) Append

func (ResourceParentReferenceList) AppendList

func (ResourceParentReferenceList) At

func (ResourceParentReferenceList) Length

func (l ResourceParentReferenceList) Length() int

func (ResourceParentReferenceList) Set

func (ResourceParentReferenceList) Slice

type ResourcePathSelectorAllowedServicesGeneration

type ResourcePathSelectorAllowedServicesGeneration struct{}

func (ResourcePathSelectorAllowedServicesGeneration) FieldPath

func (ResourcePathSelectorAllowedServicesGeneration) WithArrayOfValues

func (ResourcePathSelectorAllowedServicesGeneration) WithValue

type ResourcePathSelectorFqn

type ResourcePathSelectorFqn struct{}

func (ResourcePathSelectorFqn) FieldPath

func (ResourcePathSelectorFqn) WithArrayOfValues

func (ResourcePathSelectorFqn) WithValue

type ResourcePathSelectorMetadata

type ResourcePathSelectorMetadata struct{}

func (ResourcePathSelectorMetadata) Annotations

func (ResourcePathSelectorMetadata) CreateTime

func (ResourcePathSelectorMetadata) DeleteTime

func (ResourcePathSelectorMetadata) FieldPath

func (ResourcePathSelectorMetadata) Generation

func (ResourcePathSelectorMetadata) Labels

func (ResourcePathSelectorMetadata) Lifecycle

func (ResourcePathSelectorMetadata) OwnerReferences

func (ResourcePathSelectorMetadata) ResourceVersion

func (ResourcePathSelectorMetadata) Services

func (ResourcePathSelectorMetadata) Shards

func (ResourcePathSelectorMetadata) Syncing

func (ResourcePathSelectorMetadata) Tags

func (ResourcePathSelectorMetadata) UpdateTime

func (ResourcePathSelectorMetadata) Uuid

func (ResourcePathSelectorMetadata) WithArrayOfValues

func (ResourcePathSelectorMetadata) WithSubArrayItemValue

func (ResourcePathSelectorMetadata) WithSubArrayOfValues

func (ResourcePathSelectorMetadata) WithSubPath

func (ResourcePathSelectorMetadata) WithSubValue

func (ResourcePathSelectorMetadata) WithValue

type ResourcePathSelectorMetadataAnnotations

type ResourcePathSelectorMetadataAnnotations struct{}

func (ResourcePathSelectorMetadataAnnotations) FieldPath

func (ResourcePathSelectorMetadataAnnotations) WithArrayOfValues

func (ResourcePathSelectorMetadataAnnotations) WithKey

func (ResourcePathSelectorMetadataAnnotations) WithValue

type ResourcePathSelectorMetadataCreateTime

type ResourcePathSelectorMetadataCreateTime struct{}

func (ResourcePathSelectorMetadataCreateTime) FieldPath

func (ResourcePathSelectorMetadataCreateTime) WithArrayOfValues

func (ResourcePathSelectorMetadataCreateTime) WithValue

type ResourcePathSelectorMetadataDeleteTime

type ResourcePathSelectorMetadataDeleteTime struct{}

func (ResourcePathSelectorMetadataDeleteTime) FieldPath

func (ResourcePathSelectorMetadataDeleteTime) WithArrayOfValues

func (ResourcePathSelectorMetadataDeleteTime) WithValue

type ResourcePathSelectorMetadataGeneration

type ResourcePathSelectorMetadataGeneration struct{}

func (ResourcePathSelectorMetadataGeneration) FieldPath

func (ResourcePathSelectorMetadataGeneration) WithArrayOfValues

func (ResourcePathSelectorMetadataGeneration) WithValue

type ResourcePathSelectorMetadataLabels

type ResourcePathSelectorMetadataLabels struct{}

func (ResourcePathSelectorMetadataLabels) FieldPath

func (ResourcePathSelectorMetadataLabels) WithArrayOfValues

func (ResourcePathSelectorMetadataLabels) WithKey

func (ResourcePathSelectorMetadataLabels) WithValue

type ResourcePathSelectorMetadataLifecycle

type ResourcePathSelectorMetadataLifecycle struct{}

func (ResourcePathSelectorMetadataLifecycle) BlockDeletion

func (ResourcePathSelectorMetadataLifecycle) FieldPath

func (ResourcePathSelectorMetadataLifecycle) State

func (ResourcePathSelectorMetadataLifecycle) WithArrayOfValues

func (ResourcePathSelectorMetadataLifecycle) WithValue

type ResourcePathSelectorMetadataLifecycleBlockDeletion

type ResourcePathSelectorMetadataLifecycleBlockDeletion struct{}

func (ResourcePathSelectorMetadataLifecycleBlockDeletion) FieldPath

func (ResourcePathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues

func (ResourcePathSelectorMetadataLifecycleBlockDeletion) WithValue

type ResourcePathSelectorMetadataLifecycleState

type ResourcePathSelectorMetadataLifecycleState struct{}

func (ResourcePathSelectorMetadataLifecycleState) FieldPath

func (ResourcePathSelectorMetadataLifecycleState) WithArrayOfValues

func (ResourcePathSelectorMetadataLifecycleState) WithValue

type ResourcePathSelectorMetadataOwnerReferences

type ResourcePathSelectorMetadataOwnerReferences struct{}

func (ResourcePathSelectorMetadataOwnerReferences) Controller

func (ResourcePathSelectorMetadataOwnerReferences) FieldPath

func (ResourcePathSelectorMetadataOwnerReferences) Kind

func (ResourcePathSelectorMetadataOwnerReferences) Name

func (ResourcePathSelectorMetadataOwnerReferences) Region

func (ResourcePathSelectorMetadataOwnerReferences) RequiresOwnerReference

func (ResourcePathSelectorMetadataOwnerReferences) Version

func (ResourcePathSelectorMetadataOwnerReferences) WithArrayOfValues

func (ResourcePathSelectorMetadataOwnerReferences) WithItemValue

func (ResourcePathSelectorMetadataOwnerReferences) WithValue

type ResourcePathSelectorMetadataOwnerReferencesController

type ResourcePathSelectorMetadataOwnerReferencesController struct{}

func (ResourcePathSelectorMetadataOwnerReferencesController) FieldPath

func (ResourcePathSelectorMetadataOwnerReferencesController) WithArrayOfValues

func (ResourcePathSelectorMetadataOwnerReferencesController) WithValue

type ResourcePathSelectorMetadataOwnerReferencesKind

type ResourcePathSelectorMetadataOwnerReferencesKind struct{}

func (ResourcePathSelectorMetadataOwnerReferencesKind) FieldPath

func (ResourcePathSelectorMetadataOwnerReferencesKind) WithArrayOfValues

func (ResourcePathSelectorMetadataOwnerReferencesKind) WithValue

type ResourcePathSelectorMetadataOwnerReferencesName

type ResourcePathSelectorMetadataOwnerReferencesName struct{}

func (ResourcePathSelectorMetadataOwnerReferencesName) FieldPath

func (ResourcePathSelectorMetadataOwnerReferencesName) WithArrayOfValues

func (ResourcePathSelectorMetadataOwnerReferencesName) WithValue

type ResourcePathSelectorMetadataOwnerReferencesRegion

type ResourcePathSelectorMetadataOwnerReferencesRegion struct{}

func (ResourcePathSelectorMetadataOwnerReferencesRegion) FieldPath

func (ResourcePathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues

func (ResourcePathSelectorMetadataOwnerReferencesRegion) WithValue

type ResourcePathSelectorMetadataOwnerReferencesRequiresOwnerReference

type ResourcePathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{}

func (ResourcePathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath

func (ResourcePathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues

func (ResourcePathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue

type ResourcePathSelectorMetadataOwnerReferencesVersion

type ResourcePathSelectorMetadataOwnerReferencesVersion struct{}

func (ResourcePathSelectorMetadataOwnerReferencesVersion) FieldPath

func (ResourcePathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues

func (ResourcePathSelectorMetadataOwnerReferencesVersion) WithValue

type ResourcePathSelectorMetadataResourceVersion

type ResourcePathSelectorMetadataResourceVersion struct{}

func (ResourcePathSelectorMetadataResourceVersion) FieldPath

func (ResourcePathSelectorMetadataResourceVersion) WithArrayOfValues

func (ResourcePathSelectorMetadataResourceVersion) WithValue

type ResourcePathSelectorMetadataServices

type ResourcePathSelectorMetadataServices struct{}

func (ResourcePathSelectorMetadataServices) AllowedServices

func (ResourcePathSelectorMetadataServices) FieldPath

func (ResourcePathSelectorMetadataServices) OwningService

func (ResourcePathSelectorMetadataServices) WithArrayOfValues

func (ResourcePathSelectorMetadataServices) WithValue

type ResourcePathSelectorMetadataServicesAllowedServices

type ResourcePathSelectorMetadataServicesAllowedServices struct{}

func (ResourcePathSelectorMetadataServicesAllowedServices) FieldPath

func (ResourcePathSelectorMetadataServicesAllowedServices) WithArrayOfValues

func (ResourcePathSelectorMetadataServicesAllowedServices) WithItemValue

func (ResourcePathSelectorMetadataServicesAllowedServices) WithValue

type ResourcePathSelectorMetadataServicesOwningService

type ResourcePathSelectorMetadataServicesOwningService struct{}

func (ResourcePathSelectorMetadataServicesOwningService) FieldPath

func (ResourcePathSelectorMetadataServicesOwningService) WithArrayOfValues

func (ResourcePathSelectorMetadataServicesOwningService) WithValue

type ResourcePathSelectorMetadataShards

type ResourcePathSelectorMetadataShards struct{}

func (ResourcePathSelectorMetadataShards) FieldPath

func (ResourcePathSelectorMetadataShards) WithArrayOfValues

func (ResourcePathSelectorMetadataShards) WithKey

func (ResourcePathSelectorMetadataShards) WithValue

type ResourcePathSelectorMetadataSyncing

type ResourcePathSelectorMetadataSyncing struct{}

func (ResourcePathSelectorMetadataSyncing) FieldPath

func (ResourcePathSelectorMetadataSyncing) OwningRegion

func (ResourcePathSelectorMetadataSyncing) Regions

func (ResourcePathSelectorMetadataSyncing) WithArrayOfValues

func (ResourcePathSelectorMetadataSyncing) WithValue

type ResourcePathSelectorMetadataSyncingOwningRegion

type ResourcePathSelectorMetadataSyncingOwningRegion struct{}

func (ResourcePathSelectorMetadataSyncingOwningRegion) FieldPath

func (ResourcePathSelectorMetadataSyncingOwningRegion) WithArrayOfValues

func (ResourcePathSelectorMetadataSyncingOwningRegion) WithValue

type ResourcePathSelectorMetadataSyncingRegions

type ResourcePathSelectorMetadataSyncingRegions struct{}

func (ResourcePathSelectorMetadataSyncingRegions) FieldPath

func (ResourcePathSelectorMetadataSyncingRegions) WithArrayOfValues

func (ResourcePathSelectorMetadataSyncingRegions) WithItemValue

func (ResourcePathSelectorMetadataSyncingRegions) WithValue

type ResourcePathSelectorMetadataTags

type ResourcePathSelectorMetadataTags struct{}

func (ResourcePathSelectorMetadataTags) FieldPath

func (ResourcePathSelectorMetadataTags) WithArrayOfValues

func (ResourcePathSelectorMetadataTags) WithItemValue

func (ResourcePathSelectorMetadataTags) WithValue

type ResourcePathSelectorMetadataUpdateTime

type ResourcePathSelectorMetadataUpdateTime struct{}

func (ResourcePathSelectorMetadataUpdateTime) FieldPath

func (ResourcePathSelectorMetadataUpdateTime) WithArrayOfValues

func (ResourcePathSelectorMetadataUpdateTime) WithValue

type ResourcePathSelectorMetadataUuid

type ResourcePathSelectorMetadataUuid struct{}

func (ResourcePathSelectorMetadataUuid) FieldPath

func (ResourcePathSelectorMetadataUuid) WithArrayOfValues

func (ResourcePathSelectorMetadataUuid) WithValue

type ResourcePathSelectorName

type ResourcePathSelectorName struct{}

func (ResourcePathSelectorName) FieldPath

func (ResourcePathSelectorName) WithArrayOfValues

func (ResourcePathSelectorName) WithValue

type ResourcePathSelectorPluralName

type ResourcePathSelectorPluralName struct{}

func (ResourcePathSelectorPluralName) FieldPath

func (ResourcePathSelectorPluralName) WithArrayOfValues

func (ResourcePathSelectorPluralName) WithValue

type ResourcePathSelectorVersionedInfos

type ResourcePathSelectorVersionedInfos struct{}

func (ResourcePathSelectorVersionedInfos) FieldPath

func (ResourcePathSelectorVersionedInfos) IsRegional

func (ResourcePathSelectorVersionedInfos) Version

func (ResourcePathSelectorVersionedInfos) WithArrayOfValues

func (ResourcePathSelectorVersionedInfos) WithItemValue

func (ResourcePathSelectorVersionedInfos) WithSubArrayItemValue

func (ResourcePathSelectorVersionedInfos) WithSubArrayOfValues

func (ResourcePathSelectorVersionedInfos) WithSubPath

func (ResourcePathSelectorVersionedInfos) WithSubValue

func (ResourcePathSelectorVersionedInfos) WithValue

type ResourcePathSelectorVersionedInfosIsRegional

type ResourcePathSelectorVersionedInfosIsRegional struct{}

func (ResourcePathSelectorVersionedInfosIsRegional) FieldPath

func (ResourcePathSelectorVersionedInfosIsRegional) WithArrayOfValues

func (ResourcePathSelectorVersionedInfosIsRegional) WithValue

type ResourcePathSelectorVersionedInfosVersion

type ResourcePathSelectorVersionedInfosVersion struct{}

func (ResourcePathSelectorVersionedInfosVersion) FieldPath

func (ResourcePathSelectorVersionedInfosVersion) WithArrayOfValues

func (ResourcePathSelectorVersionedInfosVersion) WithValue

type ResourcePathSelectorVersions

type ResourcePathSelectorVersions struct{}

func (ResourcePathSelectorVersions) FieldPath

func (ResourcePathSelectorVersions) WithArrayOfValues

func (ResourcePathSelectorVersions) WithItemValue

func (ResourcePathSelectorVersions) WithValue

type ResourceReferenceList

type ResourceReferenceList []*Reference

func (ResourceReferenceList) Append

func (ResourceReferenceList) AppendList

func (ResourceReferenceList) At

func (ResourceReferenceList) Length

func (l ResourceReferenceList) Length() int

func (ResourceReferenceList) Set

func (ResourceReferenceList) Slice

func (l ResourceReferenceList) Slice(first, second int) gotenresource.ReferenceList

type ResourceVersionedInfoFieldPathBuilder

type ResourceVersionedInfoFieldPathBuilder struct{}

func NewResourceVersionedInfoFieldPathBuilder

func NewResourceVersionedInfoFieldPathBuilder() ResourceVersionedInfoFieldPathBuilder

func (ResourceVersionedInfoFieldPathBuilder) IsRegional

func (ResourceVersionedInfoFieldPathBuilder) Version

type ResourceVersionedInfo_FieldPath

type ResourceVersionedInfo_FieldPath interface {
	gotenobject.FieldPath
	Selector() ResourceVersionedInfo_FieldPathSelector
	Get(source *Resource_VersionedInfo) []interface{}
	GetSingle(source *Resource_VersionedInfo) (interface{}, bool)
	ClearValue(item *Resource_VersionedInfo)

	// Those methods build corresponding ResourceVersionedInfo_FieldPathValue
	// (or array of values) and holds passed value. Panics if injected type is incorrect.
	WithIValue(value interface{}) ResourceVersionedInfo_FieldPathValue
	WithIArrayOfValues(values interface{}) ResourceVersionedInfo_FieldPathArrayOfValues
	WithIArrayItemValue(value interface{}) ResourceVersionedInfo_FieldPathArrayItemValue
}

FieldPath provides implementation to handle https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto

func MustParseResourceVersionedInfo_FieldPath

func MustParseResourceVersionedInfo_FieldPath(rawField string) ResourceVersionedInfo_FieldPath

func ParseResourceVersionedInfo_FieldPath

func ParseResourceVersionedInfo_FieldPath(rawField string) (ResourceVersionedInfo_FieldPath, error)

type ResourceVersionedInfo_FieldPathArrayItemValue

type ResourceVersionedInfo_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	ResourceVersionedInfo_FieldPath
	ContainsValue(*Resource_VersionedInfo) bool
}

ResourceVersionedInfo_FieldPathArrayItemValue allows storing single item in Path-specific values for VersionedInfo according to their type Present only for array (repeated) types.

func MustParseResourceVersionedInfo_FieldPathArrayItemValue

func MustParseResourceVersionedInfo_FieldPathArrayItemValue(pathStr, valueStr string) ResourceVersionedInfo_FieldPathArrayItemValue

func ParseResourceVersionedInfo_FieldPathArrayItemValue

func ParseResourceVersionedInfo_FieldPathArrayItemValue(pathStr, valueStr string) (ResourceVersionedInfo_FieldPathArrayItemValue, error)

ParseResourceVersionedInfo_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type ResourceVersionedInfo_FieldPathArrayOfValues

type ResourceVersionedInfo_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	ResourceVersionedInfo_FieldPath
}

ResourceVersionedInfo_FieldPathArrayOfValues allows storing slice of values for VersionedInfo fields according to their type

func MustParseResourceVersionedInfo_FieldPathArrayOfValues

func MustParseResourceVersionedInfo_FieldPathArrayOfValues(pathStr, valuesStr string) ResourceVersionedInfo_FieldPathArrayOfValues

func ParseResourceVersionedInfo_FieldPathArrayOfValues

func ParseResourceVersionedInfo_FieldPathArrayOfValues(pathStr, valuesStr string) (ResourceVersionedInfo_FieldPathArrayOfValues, error)

type ResourceVersionedInfo_FieldPathSelector

type ResourceVersionedInfo_FieldPathSelector int32
const (
	ResourceVersionedInfo_FieldPathSelectorVersion    ResourceVersionedInfo_FieldPathSelector = 0
	ResourceVersionedInfo_FieldPathSelectorIsRegional ResourceVersionedInfo_FieldPathSelector = 1
)

func (ResourceVersionedInfo_FieldPathSelector) String

type ResourceVersionedInfo_FieldPathValue

type ResourceVersionedInfo_FieldPathValue interface {
	ResourceVersionedInfo_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Resource_VersionedInfo)
	CompareWith(*Resource_VersionedInfo) (cmp int, comparable bool)
}

ResourceVersionedInfo_FieldPathValue allows storing values for VersionedInfo fields according to their type

func MustParseResourceVersionedInfo_FieldPathValue

func MustParseResourceVersionedInfo_FieldPathValue(pathStr, valueStr string) ResourceVersionedInfo_FieldPathValue

func ParseResourceVersionedInfo_FieldPathValue

func ParseResourceVersionedInfo_FieldPathValue(pathStr, valueStr string) (ResourceVersionedInfo_FieldPathValue, error)

type ResourceVersionedInfo_FieldTerminalPath

type ResourceVersionedInfo_FieldTerminalPath struct {
	// contains filtered or unexported fields
}

func (*ResourceVersionedInfo_FieldTerminalPath) ClearValue

func (*ResourceVersionedInfo_FieldTerminalPath) ClearValueRaw

func (fp *ResourceVersionedInfo_FieldTerminalPath) ClearValueRaw(item proto.Message)

func (*ResourceVersionedInfo_FieldTerminalPath) Get

func (fp *ResourceVersionedInfo_FieldTerminalPath) Get(source *Resource_VersionedInfo) (values []interface{})

Get returns all values pointed by specific field from source Resource_VersionedInfo

func (*ResourceVersionedInfo_FieldTerminalPath) GetDefault

func (fp *ResourceVersionedInfo_FieldTerminalPath) GetDefault() interface{}

GetDefault returns a default value of the field type

func (*ResourceVersionedInfo_FieldTerminalPath) GetRaw

func (fp *ResourceVersionedInfo_FieldTerminalPath) GetRaw(source proto.Message) []interface{}

func (*ResourceVersionedInfo_FieldTerminalPath) GetSingle

func (fp *ResourceVersionedInfo_FieldTerminalPath) GetSingle(source *Resource_VersionedInfo) (interface{}, bool)

GetSingle returns value pointed by specific field of from source Resource_VersionedInfo

func (*ResourceVersionedInfo_FieldTerminalPath) GetSingleRaw

func (fp *ResourceVersionedInfo_FieldTerminalPath) GetSingleRaw(source proto.Message) (interface{}, bool)

func (*ResourceVersionedInfo_FieldTerminalPath) IsLeaf

IsLeaf - whether field path is holds simple value

func (*ResourceVersionedInfo_FieldTerminalPath) JSONString

JSONString returns path representation is JSON convention

func (*ResourceVersionedInfo_FieldTerminalPath) Selector

func (*ResourceVersionedInfo_FieldTerminalPath) SplitIntoTerminalIPaths

func (fp *ResourceVersionedInfo_FieldTerminalPath) SplitIntoTerminalIPaths() []gotenobject.FieldPath

func (*ResourceVersionedInfo_FieldTerminalPath) String

String returns path representation in proto convention

func (*ResourceVersionedInfo_FieldTerminalPath) WithIArrayItemValue

func (*ResourceVersionedInfo_FieldTerminalPath) WithIArrayOfValues

func (*ResourceVersionedInfo_FieldTerminalPath) WithIValue

func (*ResourceVersionedInfo_FieldTerminalPath) WithRawIArrayItemValue

func (fp *ResourceVersionedInfo_FieldTerminalPath) WithRawIArrayItemValue(value interface{}) gotenobject.FieldPathArrayItemValue

func (*ResourceVersionedInfo_FieldTerminalPath) WithRawIArrayOfValues

func (fp *ResourceVersionedInfo_FieldTerminalPath) WithRawIArrayOfValues(values interface{}) gotenobject.FieldPathArrayOfValues

func (*ResourceVersionedInfo_FieldTerminalPath) WithRawIValue

func (fp *ResourceVersionedInfo_FieldTerminalPath) WithRawIValue(value interface{}) gotenobject.FieldPathValue

type ResourceVersionedInfo_FieldTerminalPathArrayItemValue

type ResourceVersionedInfo_FieldTerminalPathArrayItemValue struct {
	ResourceVersionedInfo_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*ResourceVersionedInfo_FieldTerminalPathArrayItemValue) ContainsValue

Contains returns a boolean indicating if value that is being held is present in given 'VersionedInfo'

func (*ResourceVersionedInfo_FieldTerminalPathArrayItemValue) GetRawItemValue

func (fpaiv *ResourceVersionedInfo_FieldTerminalPathArrayItemValue) GetRawItemValue() interface{}

GetRawValue returns stored element value for array in object Resource_VersionedInfo as interface{}

func (*ResourceVersionedInfo_FieldTerminalPathArrayItemValue) GetSingle

func (*ResourceVersionedInfo_FieldTerminalPathArrayItemValue) GetSingleRaw

func (fpaiv *ResourceVersionedInfo_FieldTerminalPathArrayItemValue) GetSingleRaw(source proto.Message) (interface{}, bool)

type ResourceVersionedInfo_FieldTerminalPathArrayOfValues

type ResourceVersionedInfo_FieldTerminalPathArrayOfValues struct {
	ResourceVersionedInfo_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*ResourceVersionedInfo_FieldTerminalPathArrayOfValues) AsIsRegionalArrayOfValues

func (fpaov *ResourceVersionedInfo_FieldTerminalPathArrayOfValues) AsIsRegionalArrayOfValues() ([]bool, bool)

func (*ResourceVersionedInfo_FieldTerminalPathArrayOfValues) AsVersionArrayOfValues

func (fpaov *ResourceVersionedInfo_FieldTerminalPathArrayOfValues) AsVersionArrayOfValues() ([]string, bool)

func (*ResourceVersionedInfo_FieldTerminalPathArrayOfValues) GetRawValues

func (fpaov *ResourceVersionedInfo_FieldTerminalPathArrayOfValues) GetRawValues() (values []interface{})

type ResourceVersionedInfo_FieldTerminalPathValue

type ResourceVersionedInfo_FieldTerminalPathValue struct {
	ResourceVersionedInfo_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*ResourceVersionedInfo_FieldTerminalPathValue) AsIsRegionalValue

func (fpv *ResourceVersionedInfo_FieldTerminalPathValue) AsIsRegionalValue() (bool, bool)

func (*ResourceVersionedInfo_FieldTerminalPathValue) AsVersionValue

func (fpv *ResourceVersionedInfo_FieldTerminalPathValue) AsVersionValue() (string, bool)

func (*ResourceVersionedInfo_FieldTerminalPathValue) CompareWith

CompareWith compares value in the 'ResourceVersionedInfo_FieldTerminalPathValue' with the value under path in 'Resource_VersionedInfo'.

func (*ResourceVersionedInfo_FieldTerminalPathValue) CompareWithRaw

func (fpv *ResourceVersionedInfo_FieldTerminalPathValue) CompareWithRaw(source proto.Message) (int, bool)

func (*ResourceVersionedInfo_FieldTerminalPathValue) GetRawValue

func (fpv *ResourceVersionedInfo_FieldTerminalPathValue) GetRawValue() interface{}

GetRawValue returns raw value stored under selected path for 'VersionedInfo' as interface{}

func (*ResourceVersionedInfo_FieldTerminalPathValue) SetTo

SetTo stores value for selected field for object VersionedInfo

func (*ResourceVersionedInfo_FieldTerminalPathValue) SetToRaw

type Resource_FieldMask

type Resource_FieldMask struct {
	Paths []Resource_FieldPath
}

func FullResource_FieldMask

func FullResource_FieldMask() *Resource_FieldMask

func ResourceViewFieldMask

func ResourceViewFieldMask(viewName view.View, extraMask *Resource_FieldMask) *Resource_FieldMask

func (*Resource_FieldMask) AppendPath

func (fieldMask *Resource_FieldMask) AppendPath(path Resource_FieldPath)

func (*Resource_FieldMask) AppendRawPath

func (fieldMask *Resource_FieldMask) AppendRawPath(path gotenobject.FieldPath)

func (*Resource_FieldMask) DecodeFirestore

func (fieldMask *Resource_FieldMask) DecodeFirestore(fpbv *firestorepb.Value) error

func (*Resource_FieldMask) EncodeFirestore

func (fieldMask *Resource_FieldMask) EncodeFirestore() (*firestorepb.Value, error)

firestore encoding/decoding integration

func (*Resource_FieldMask) FilterInputFields

func (fieldMask *Resource_FieldMask) FilterInputFields() *Resource_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Resource_FieldMask) FromProtoFieldMask

func (fieldMask *Resource_FieldMask) FromProtoFieldMask(protoFieldMask *googlefieldmaskpb.FieldMask) error

func (*Resource_FieldMask) GetPaths

func (fieldMask *Resource_FieldMask) GetPaths() []Resource_FieldPath

func (*Resource_FieldMask) GetRawPaths

func (fieldMask *Resource_FieldMask) GetRawPaths() []gotenobject.FieldPath

func (*Resource_FieldMask) IsFull

func (fieldMask *Resource_FieldMask) IsFull() bool

func (Resource_FieldMask) Marshal

func (fieldMask Resource_FieldMask) Marshal() ([]byte, error)

implement methods required by customType

func (Resource_FieldMask) MarshalJSON

func (fieldMask Resource_FieldMask) MarshalJSON() ([]byte, error)

func (*Resource_FieldMask) PathsCount

func (fieldMask *Resource_FieldMask) PathsCount() int

func (*Resource_FieldMask) Project

func (fieldMask *Resource_FieldMask) Project(source *Resource) *Resource

func (*Resource_FieldMask) ProjectRaw

func (*Resource_FieldMask) ProtoMessage

func (fieldMask *Resource_FieldMask) ProtoMessage()

func (*Resource_FieldMask) ProtoReflect

func (fieldMask *Resource_FieldMask) ProtoReflect() preflect.Message

func (*Resource_FieldMask) Reset

func (fieldMask *Resource_FieldMask) Reset()

func (*Resource_FieldMask) Set

func (fieldMask *Resource_FieldMask) Set(target, source *Resource)

func (*Resource_FieldMask) SetFromCliFlag

func (fieldMask *Resource_FieldMask) SetFromCliFlag(raw string) error

func (*Resource_FieldMask) SetRaw

func (fieldMask *Resource_FieldMask) SetRaw(target, source gotenobject.GotenObjectExt)

func (*Resource_FieldMask) Size

func (fieldMask *Resource_FieldMask) Size() int

func (*Resource_FieldMask) String

func (fieldMask *Resource_FieldMask) String() string

func (*Resource_FieldMask) Subtract

func (fieldMask *Resource_FieldMask) Subtract(other *Resource_FieldMask) *Resource_FieldMask

func (*Resource_FieldMask) SubtractRaw

func (fieldMask *Resource_FieldMask) SubtractRaw(other gotenobject.FieldMask) gotenobject.FieldMask

func (*Resource_FieldMask) ToProtoFieldMask

func (fieldMask *Resource_FieldMask) ToProtoFieldMask() *googlefieldmaskpb.FieldMask

ToFieldMask is used for proto conversions

func (*Resource_FieldMask) Unmarshal

func (fieldMask *Resource_FieldMask) Unmarshal(data []byte) error

func (*Resource_FieldMask) UnmarshalJSON

func (fieldMask *Resource_FieldMask) UnmarshalJSON(data []byte) error

type Resource_FieldPath

type Resource_FieldPath interface {
	gotenobject.FieldPath
	Selector() Resource_FieldPathSelector
	Get(source *Resource) []interface{}
	GetSingle(source *Resource) (interface{}, bool)
	ClearValue(item *Resource)

	// Those methods build corresponding Resource_FieldPathValue
	// (or array of values) and holds passed value. Panics if injected type is incorrect.
	WithIValue(value interface{}) Resource_FieldPathValue
	WithIArrayOfValues(values interface{}) Resource_FieldPathArrayOfValues
	WithIArrayItemValue(value interface{}) Resource_FieldPathArrayItemValue
}

FieldPath provides implementation to handle https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto

func BuildResource_FieldPath

func BuildResource_FieldPath(fp gotenobject.RawFieldPath) (Resource_FieldPath, error)

func MustParseResource_FieldPath

func MustParseResource_FieldPath(rawField string) Resource_FieldPath

func ParseResource_FieldPath

func ParseResource_FieldPath(rawField string) (Resource_FieldPath, error)

type Resource_FieldPathArrayItemValue

type Resource_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	Resource_FieldPath
	ContainsValue(*Resource) bool
}

Resource_FieldPathArrayItemValue allows storing single item in Path-specific values for Resource according to their type Present only for array (repeated) types.

func MustParseResource_FieldPathArrayItemValue

func MustParseResource_FieldPathArrayItemValue(pathStr, valueStr string) Resource_FieldPathArrayItemValue

func ParseResource_FieldPathArrayItemValue

func ParseResource_FieldPathArrayItemValue(pathStr, valueStr string) (Resource_FieldPathArrayItemValue, error)

ParseResource_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type Resource_FieldPathArrayOfValues

type Resource_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	Resource_FieldPath
}

Resource_FieldPathArrayOfValues allows storing slice of values for Resource fields according to their type

func MustParseResource_FieldPathArrayOfValues

func MustParseResource_FieldPathArrayOfValues(pathStr, valuesStr string) Resource_FieldPathArrayOfValues

func ParseResource_FieldPathArrayOfValues

func ParseResource_FieldPathArrayOfValues(pathStr, valuesStr string) (Resource_FieldPathArrayOfValues, error)

type Resource_FieldPathSelector

type Resource_FieldPathSelector int32
const (
	Resource_FieldPathSelectorName                      Resource_FieldPathSelector = 0
	Resource_FieldPathSelectorMetadata                  Resource_FieldPathSelector = 1
	Resource_FieldPathSelectorPluralName                Resource_FieldPathSelector = 2
	Resource_FieldPathSelectorFqn                       Resource_FieldPathSelector = 3
	Resource_FieldPathSelectorVersions                  Resource_FieldPathSelector = 4
	Resource_FieldPathSelectorVersionedInfos            Resource_FieldPathSelector = 5
	Resource_FieldPathSelectorAllowedServicesGeneration Resource_FieldPathSelector = 6
)

func (Resource_FieldPathSelector) String

type Resource_FieldPathValue

type Resource_FieldPathValue interface {
	Resource_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Resource)
	CompareWith(*Resource) (cmp int, comparable bool)
}

Resource_FieldPathValue allows storing values for Resource fields according to their type

func MustParseResource_FieldPathValue

func MustParseResource_FieldPathValue(pathStr, valueStr string) Resource_FieldPathValue

func ParseResource_FieldPathValue

func ParseResource_FieldPathValue(pathStr, valueStr string) (Resource_FieldPathValue, error)

type Resource_FieldSubPath

type Resource_FieldSubPath struct {
	// contains filtered or unexported fields
}

func (*Resource_FieldSubPath) AsMetadataSubPath

func (fps *Resource_FieldSubPath) AsMetadataSubPath() (meta.Meta_FieldPath, bool)

func (*Resource_FieldSubPath) AsVersionedInfosSubPath

func (fps *Resource_FieldSubPath) AsVersionedInfosSubPath() (ResourceVersionedInfo_FieldPath, bool)

func (*Resource_FieldSubPath) ClearValue

func (fps *Resource_FieldSubPath) ClearValue(item *Resource)

func (*Resource_FieldSubPath) ClearValueRaw

func (fps *Resource_FieldSubPath) ClearValueRaw(item proto.Message)

func (*Resource_FieldSubPath) Get

func (fps *Resource_FieldSubPath) Get(source *Resource) (values []interface{})

Get returns all values pointed by selected field from source Resource

func (*Resource_FieldSubPath) GetDefault

func (fps *Resource_FieldSubPath) GetDefault() interface{}

GetDefault returns a default value of the field type

func (*Resource_FieldSubPath) GetRaw

func (fps *Resource_FieldSubPath) GetRaw(source proto.Message) []interface{}

func (*Resource_FieldSubPath) GetSingle

func (fps *Resource_FieldSubPath) GetSingle(source *Resource) (interface{}, bool)

GetSingle returns value of selected field from source Resource

func (*Resource_FieldSubPath) GetSingleRaw

func (fps *Resource_FieldSubPath) GetSingleRaw(source proto.Message) (interface{}, bool)

func (*Resource_FieldSubPath) IsLeaf

func (fps *Resource_FieldSubPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Resource_FieldSubPath) JSONString

func (fps *Resource_FieldSubPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Resource_FieldSubPath) Selector

func (*Resource_FieldSubPath) SplitIntoTerminalIPaths

func (fps *Resource_FieldSubPath) SplitIntoTerminalIPaths() []gotenobject.FieldPath

func (*Resource_FieldSubPath) String

func (fps *Resource_FieldSubPath) String() string

String returns path representation in proto convention

func (*Resource_FieldSubPath) WithIArrayItemValue

func (fps *Resource_FieldSubPath) WithIArrayItemValue(value interface{}) Resource_FieldPathArrayItemValue

func (*Resource_FieldSubPath) WithIArrayOfValues

func (fps *Resource_FieldSubPath) WithIArrayOfValues(values interface{}) Resource_FieldPathArrayOfValues

func (*Resource_FieldSubPath) WithIValue

func (fps *Resource_FieldSubPath) WithIValue(value interface{}) Resource_FieldPathValue

func (*Resource_FieldSubPath) WithRawIArrayItemValue

func (fps *Resource_FieldSubPath) WithRawIArrayItemValue(value interface{}) gotenobject.FieldPathArrayItemValue

func (*Resource_FieldSubPath) WithRawIArrayOfValues

func (fps *Resource_FieldSubPath) WithRawIArrayOfValues(values interface{}) gotenobject.FieldPathArrayOfValues

func (*Resource_FieldSubPath) WithRawIValue

func (fps *Resource_FieldSubPath) WithRawIValue(value interface{}) gotenobject.FieldPathValue

type Resource_FieldSubPathArrayItemValue

type Resource_FieldSubPathArrayItemValue struct {
	Resource_FieldPath
	// contains filtered or unexported fields
}

func (*Resource_FieldSubPathArrayItemValue) AsMetadataPathItemValue

func (fpaivs *Resource_FieldSubPathArrayItemValue) AsMetadataPathItemValue() (meta.Meta_FieldPathArrayItemValue, bool)

func (*Resource_FieldSubPathArrayItemValue) AsVersionedInfosPathItemValue

func (*Resource_FieldSubPathArrayItemValue) ContainsValue

func (fpaivs *Resource_FieldSubPathArrayItemValue) ContainsValue(source *Resource) bool

Contains returns a boolean indicating if value that is being held is present in given 'Resource'

func (*Resource_FieldSubPathArrayItemValue) GetRawItemValue

func (fpaivs *Resource_FieldSubPathArrayItemValue) GetRawItemValue() interface{}

GetRawValue returns stored array item value

type Resource_FieldSubPathArrayOfValues

type Resource_FieldSubPathArrayOfValues struct {
	Resource_FieldPath
	// contains filtered or unexported fields
}

func (*Resource_FieldSubPathArrayOfValues) AsMetadataPathArrayOfValues

func (fpsaov *Resource_FieldSubPathArrayOfValues) AsMetadataPathArrayOfValues() (meta.Meta_FieldPathArrayOfValues, bool)

func (*Resource_FieldSubPathArrayOfValues) AsVersionedInfosPathArrayOfValues

func (fpsaov *Resource_FieldSubPathArrayOfValues) AsVersionedInfosPathArrayOfValues() (ResourceVersionedInfo_FieldPathArrayOfValues, bool)

func (*Resource_FieldSubPathArrayOfValues) GetRawValues

func (fpsaov *Resource_FieldSubPathArrayOfValues) GetRawValues() []interface{}

type Resource_FieldSubPathValue

type Resource_FieldSubPathValue struct {
	Resource_FieldPath
	// contains filtered or unexported fields
}

func (*Resource_FieldSubPathValue) AsMetadataPathValue

func (fpvs *Resource_FieldSubPathValue) AsMetadataPathValue() (meta.Meta_FieldPathValue, bool)

func (*Resource_FieldSubPathValue) AsVersionedInfosPathValue

func (fpvs *Resource_FieldSubPathValue) AsVersionedInfosPathValue() (ResourceVersionedInfo_FieldPathValue, bool)

func (*Resource_FieldSubPathValue) CompareWith

func (fpvs *Resource_FieldSubPathValue) CompareWith(source *Resource) (int, bool)

func (*Resource_FieldSubPathValue) CompareWithRaw

func (fpvs *Resource_FieldSubPathValue) CompareWithRaw(source proto.Message) (int, bool)

func (*Resource_FieldSubPathValue) GetRawValue

func (fpvs *Resource_FieldSubPathValue) GetRawValue() interface{}

func (*Resource_FieldSubPathValue) SetTo

func (fpvs *Resource_FieldSubPathValue) SetTo(target **Resource)

func (*Resource_FieldSubPathValue) SetToRaw

func (fpvs *Resource_FieldSubPathValue) SetToRaw(target proto.Message)

type Resource_FieldTerminalPath

type Resource_FieldTerminalPath struct {
	// contains filtered or unexported fields
}

func (*Resource_FieldTerminalPath) ClearValue

func (fp *Resource_FieldTerminalPath) ClearValue(item *Resource)

func (*Resource_FieldTerminalPath) ClearValueRaw

func (fp *Resource_FieldTerminalPath) ClearValueRaw(item proto.Message)

func (*Resource_FieldTerminalPath) Get

func (fp *Resource_FieldTerminalPath) Get(source *Resource) (values []interface{})

Get returns all values pointed by specific field from source Resource

func (*Resource_FieldTerminalPath) GetDefault

func (fp *Resource_FieldTerminalPath) GetDefault() interface{}

GetDefault returns a default value of the field type

func (*Resource_FieldTerminalPath) GetRaw

func (fp *Resource_FieldTerminalPath) GetRaw(source proto.Message) []interface{}

func (*Resource_FieldTerminalPath) GetSingle

func (fp *Resource_FieldTerminalPath) GetSingle(source *Resource) (interface{}, bool)

GetSingle returns value pointed by specific field of from source Resource

func (*Resource_FieldTerminalPath) GetSingleRaw

func (fp *Resource_FieldTerminalPath) GetSingleRaw(source proto.Message) (interface{}, bool)

func (*Resource_FieldTerminalPath) IsLeaf

func (fp *Resource_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Resource_FieldTerminalPath) JSONString

func (fp *Resource_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Resource_FieldTerminalPath) Selector

func (*Resource_FieldTerminalPath) SplitIntoTerminalIPaths

func (fp *Resource_FieldTerminalPath) SplitIntoTerminalIPaths() []gotenobject.FieldPath

func (*Resource_FieldTerminalPath) String

func (fp *Resource_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*Resource_FieldTerminalPath) WithIArrayItemValue

func (fp *Resource_FieldTerminalPath) WithIArrayItemValue(value interface{}) Resource_FieldPathArrayItemValue

func (*Resource_FieldTerminalPath) WithIArrayOfValues

func (fp *Resource_FieldTerminalPath) WithIArrayOfValues(values interface{}) Resource_FieldPathArrayOfValues

func (*Resource_FieldTerminalPath) WithIValue

func (fp *Resource_FieldTerminalPath) WithIValue(value interface{}) Resource_FieldPathValue

func (*Resource_FieldTerminalPath) WithRawIArrayItemValue

func (fp *Resource_FieldTerminalPath) WithRawIArrayItemValue(value interface{}) gotenobject.FieldPathArrayItemValue

func (*Resource_FieldTerminalPath) WithRawIArrayOfValues

func (fp *Resource_FieldTerminalPath) WithRawIArrayOfValues(values interface{}) gotenobject.FieldPathArrayOfValues

func (*Resource_FieldTerminalPath) WithRawIValue

func (fp *Resource_FieldTerminalPath) WithRawIValue(value interface{}) gotenobject.FieldPathValue

type Resource_FieldTerminalPathArrayItemValue

type Resource_FieldTerminalPathArrayItemValue struct {
	Resource_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Resource_FieldTerminalPathArrayItemValue) AsVersionedInfosItemValue

func (fpaiv *Resource_FieldTerminalPathArrayItemValue) AsVersionedInfosItemValue() (*Resource_VersionedInfo, bool)

func (*Resource_FieldTerminalPathArrayItemValue) AsVersionsItemValue

func (fpaiv *Resource_FieldTerminalPathArrayItemValue) AsVersionsItemValue() (string, bool)

func (*Resource_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *Resource_FieldTerminalPathArrayItemValue) ContainsValue(source *Resource) bool

Contains returns a boolean indicating if value that is being held is present in given 'Resource'

func (*Resource_FieldTerminalPathArrayItemValue) GetRawItemValue

func (fpaiv *Resource_FieldTerminalPathArrayItemValue) GetRawItemValue() interface{}

GetRawValue returns stored element value for array in object Resource as interface{}

func (*Resource_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *Resource_FieldTerminalPathArrayItemValue) GetSingle(source *Resource) (interface{}, bool)

func (*Resource_FieldTerminalPathArrayItemValue) GetSingleRaw

func (fpaiv *Resource_FieldTerminalPathArrayItemValue) GetSingleRaw(source proto.Message) (interface{}, bool)

type Resource_FieldTerminalPathArrayOfValues

type Resource_FieldTerminalPathArrayOfValues struct {
	Resource_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Resource_FieldTerminalPathArrayOfValues) AsAllowedServicesGenerationArrayOfValues

func (fpaov *Resource_FieldTerminalPathArrayOfValues) AsAllowedServicesGenerationArrayOfValues() ([]int64, bool)

func (*Resource_FieldTerminalPathArrayOfValues) AsFqnArrayOfValues

func (fpaov *Resource_FieldTerminalPathArrayOfValues) AsFqnArrayOfValues() ([]string, bool)

func (*Resource_FieldTerminalPathArrayOfValues) AsMetadataArrayOfValues

func (fpaov *Resource_FieldTerminalPathArrayOfValues) AsMetadataArrayOfValues() ([]*meta.Meta, bool)

func (*Resource_FieldTerminalPathArrayOfValues) AsNameArrayOfValues

func (fpaov *Resource_FieldTerminalPathArrayOfValues) AsNameArrayOfValues() ([]*Name, bool)

func (*Resource_FieldTerminalPathArrayOfValues) AsPluralNameArrayOfValues

func (fpaov *Resource_FieldTerminalPathArrayOfValues) AsPluralNameArrayOfValues() ([]string, bool)

func (*Resource_FieldTerminalPathArrayOfValues) AsVersionedInfosArrayOfValues

func (fpaov *Resource_FieldTerminalPathArrayOfValues) AsVersionedInfosArrayOfValues() ([][]*Resource_VersionedInfo, bool)

func (*Resource_FieldTerminalPathArrayOfValues) AsVersionsArrayOfValues

func (fpaov *Resource_FieldTerminalPathArrayOfValues) AsVersionsArrayOfValues() ([][]string, bool)

func (*Resource_FieldTerminalPathArrayOfValues) GetRawValues

func (fpaov *Resource_FieldTerminalPathArrayOfValues) GetRawValues() (values []interface{})

type Resource_FieldTerminalPathValue

type Resource_FieldTerminalPathValue struct {
	Resource_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Resource_FieldTerminalPathValue) AsAllowedServicesGenerationValue

func (fpv *Resource_FieldTerminalPathValue) AsAllowedServicesGenerationValue() (int64, bool)

func (*Resource_FieldTerminalPathValue) AsFqnValue

func (fpv *Resource_FieldTerminalPathValue) AsFqnValue() (string, bool)

func (*Resource_FieldTerminalPathValue) AsMetadataValue

func (fpv *Resource_FieldTerminalPathValue) AsMetadataValue() (*meta.Meta, bool)

func (*Resource_FieldTerminalPathValue) AsNameValue

func (fpv *Resource_FieldTerminalPathValue) AsNameValue() (*Name, bool)

func (*Resource_FieldTerminalPathValue) AsPluralNameValue

func (fpv *Resource_FieldTerminalPathValue) AsPluralNameValue() (string, bool)

func (*Resource_FieldTerminalPathValue) AsVersionedInfosValue

func (fpv *Resource_FieldTerminalPathValue) AsVersionedInfosValue() ([]*Resource_VersionedInfo, bool)

func (*Resource_FieldTerminalPathValue) AsVersionsValue

func (fpv *Resource_FieldTerminalPathValue) AsVersionsValue() ([]string, bool)

func (*Resource_FieldTerminalPathValue) CompareWith

func (fpv *Resource_FieldTerminalPathValue) CompareWith(source *Resource) (int, bool)

CompareWith compares value in the 'Resource_FieldTerminalPathValue' with the value under path in 'Resource'.

func (*Resource_FieldTerminalPathValue) CompareWithRaw

func (fpv *Resource_FieldTerminalPathValue) CompareWithRaw(source proto.Message) (int, bool)

func (*Resource_FieldTerminalPathValue) GetRawValue

func (fpv *Resource_FieldTerminalPathValue) GetRawValue() interface{}

GetRawValue returns raw value stored under selected path for 'Resource' as interface{}

func (*Resource_FieldTerminalPathValue) SetTo

func (fpv *Resource_FieldTerminalPathValue) SetTo(target **Resource)

SetTo stores value for selected field for object Resource

func (*Resource_FieldTerminalPathValue) SetToRaw

func (fpv *Resource_FieldTerminalPathValue) SetToRaw(target proto.Message)

type Resource_VersionedInfo

type Resource_VersionedInfo struct {

	// Resource version this information applies to.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty" firestore:"version"`
	// Whether resource is regional.
	IsRegional bool `protobuf:"varint,2,opt,name=is_regional,json=isRegional,proto3" json:"is_regional,omitempty" firestore:"isRegional"`
	// contains filtered or unexported fields
}

VersionedInfo contains specification part that is versioned.

func (*Resource_VersionedInfo) Clone

func (*Resource_VersionedInfo) CloneRaw

func (*Resource_VersionedInfo) Descriptor

func (*Resource_VersionedInfo) Descriptor() ([]byte, []int)

Deprecated, Use Resource_VersionedInfo.ProtoReflect.Descriptor instead.

func (*Resource_VersionedInfo) GetIsRegional

func (m *Resource_VersionedInfo) GetIsRegional() bool

func (*Resource_VersionedInfo) GetVersion

func (m *Resource_VersionedInfo) GetVersion() string

func (*Resource_VersionedInfo) GotenMessage

func (*Resource_VersionedInfo) GotenMessage()

func (*Resource_VersionedInfo) GotenObjectExt

func (o *Resource_VersionedInfo) GotenObjectExt()

func (*Resource_VersionedInfo) GotenValidate

func (obj *Resource_VersionedInfo) GotenValidate() error

func (*Resource_VersionedInfo) MakeDiffFieldMask

func (*Resource_VersionedInfo) MakeFullFieldMask

func (*Resource_VersionedInfo) MakeRawDiffFieldMask

func (*Resource_VersionedInfo) MakeRawFullFieldMask

func (o *Resource_VersionedInfo) MakeRawFullFieldMask() gotenobject.FieldMask

func (*Resource_VersionedInfo) Marshal

func (m *Resource_VersionedInfo) Marshal() ([]byte, error)

func (*Resource_VersionedInfo) MarshalJSON

func (m *Resource_VersionedInfo) MarshalJSON() ([]byte, error)

func (*Resource_VersionedInfo) Merge

func (*Resource_VersionedInfo) MergeRaw

func (*Resource_VersionedInfo) ProtoMessage

func (*Resource_VersionedInfo) ProtoMessage()

func (*Resource_VersionedInfo) ProtoReflect

func (m *Resource_VersionedInfo) ProtoReflect() preflect.Message

func (*Resource_VersionedInfo) Reset

func (m *Resource_VersionedInfo) Reset()

func (*Resource_VersionedInfo) SetIsRegional

func (m *Resource_VersionedInfo) SetIsRegional(fv bool)

func (*Resource_VersionedInfo) SetVersion

func (m *Resource_VersionedInfo) SetVersion(fv string)

func (*Resource_VersionedInfo) String

func (m *Resource_VersionedInfo) String() string

func (*Resource_VersionedInfo) Unmarshal

func (m *Resource_VersionedInfo) Unmarshal(b []byte) error

func (*Resource_VersionedInfo) UnmarshalJSON

func (m *Resource_VersionedInfo) UnmarshalJSON(data []byte) error

type Resource_VersionedInfoPathSelectorIsRegional

type Resource_VersionedInfoPathSelectorIsRegional struct{}

func (Resource_VersionedInfoPathSelectorIsRegional) FieldPath

func (Resource_VersionedInfoPathSelectorIsRegional) WithArrayOfValues

func (Resource_VersionedInfoPathSelectorIsRegional) WithValue

type Resource_VersionedInfoPathSelectorVersion

type Resource_VersionedInfoPathSelectorVersion struct{}

func (Resource_VersionedInfoPathSelectorVersion) FieldPath

func (Resource_VersionedInfoPathSelectorVersion) WithArrayOfValues

func (Resource_VersionedInfoPathSelectorVersion) WithValue

type Resource_VersionedInfo_FieldMask

type Resource_VersionedInfo_FieldMask struct {
	Paths []ResourceVersionedInfo_FieldPath
}

func FullResource_VersionedInfo_FieldMask

func FullResource_VersionedInfo_FieldMask() *Resource_VersionedInfo_FieldMask

func (*Resource_VersionedInfo_FieldMask) AppendPath

func (*Resource_VersionedInfo_FieldMask) AppendRawPath

func (fieldMask *Resource_VersionedInfo_FieldMask) AppendRawPath(path gotenobject.FieldPath)

func (*Resource_VersionedInfo_FieldMask) DecodeFirestore

func (fieldMask *Resource_VersionedInfo_FieldMask) DecodeFirestore(fpbv *firestorepb.Value) error

func (*Resource_VersionedInfo_FieldMask) EncodeFirestore

func (fieldMask *Resource_VersionedInfo_FieldMask) EncodeFirestore() (*firestorepb.Value, error)

firestore encoding/decoding integration

func (*Resource_VersionedInfo_FieldMask) FilterInputFields

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Resource_VersionedInfo_FieldMask) FromProtoFieldMask

func (fieldMask *Resource_VersionedInfo_FieldMask) FromProtoFieldMask(protoFieldMask *googlefieldmaskpb.FieldMask) error

func (*Resource_VersionedInfo_FieldMask) GetPaths

func (*Resource_VersionedInfo_FieldMask) GetRawPaths

func (fieldMask *Resource_VersionedInfo_FieldMask) GetRawPaths() []gotenobject.FieldPath

func (*Resource_VersionedInfo_FieldMask) IsFull

func (fieldMask *Resource_VersionedInfo_FieldMask) IsFull() bool

func (Resource_VersionedInfo_FieldMask) Marshal

func (fieldMask Resource_VersionedInfo_FieldMask) Marshal() ([]byte, error)

implement methods required by customType

func (Resource_VersionedInfo_FieldMask) MarshalJSON

func (fieldMask Resource_VersionedInfo_FieldMask) MarshalJSON() ([]byte, error)

func (*Resource_VersionedInfo_FieldMask) PathsCount

func (fieldMask *Resource_VersionedInfo_FieldMask) PathsCount() int

func (*Resource_VersionedInfo_FieldMask) Project

func (*Resource_VersionedInfo_FieldMask) ProjectRaw

func (*Resource_VersionedInfo_FieldMask) ProtoMessage

func (fieldMask *Resource_VersionedInfo_FieldMask) ProtoMessage()

func (*Resource_VersionedInfo_FieldMask) ProtoReflect

func (fieldMask *Resource_VersionedInfo_FieldMask) ProtoReflect() preflect.Message

func (*Resource_VersionedInfo_FieldMask) Reset

func (fieldMask *Resource_VersionedInfo_FieldMask) Reset()

func (*Resource_VersionedInfo_FieldMask) Set

func (fieldMask *Resource_VersionedInfo_FieldMask) Set(target, source *Resource_VersionedInfo)

func (*Resource_VersionedInfo_FieldMask) SetFromCliFlag

func (fieldMask *Resource_VersionedInfo_FieldMask) SetFromCliFlag(raw string) error

func (*Resource_VersionedInfo_FieldMask) SetRaw

func (fieldMask *Resource_VersionedInfo_FieldMask) SetRaw(target, source gotenobject.GotenObjectExt)

func (*Resource_VersionedInfo_FieldMask) Size

func (fieldMask *Resource_VersionedInfo_FieldMask) Size() int

func (*Resource_VersionedInfo_FieldMask) String

func (fieldMask *Resource_VersionedInfo_FieldMask) String() string

func (*Resource_VersionedInfo_FieldMask) Subtract

func (*Resource_VersionedInfo_FieldMask) SubtractRaw

func (*Resource_VersionedInfo_FieldMask) ToProtoFieldMask

func (fieldMask *Resource_VersionedInfo_FieldMask) ToProtoFieldMask() *googlefieldmaskpb.FieldMask

ToFieldMask is used for proto conversions

func (*Resource_VersionedInfo_FieldMask) Unmarshal

func (fieldMask *Resource_VersionedInfo_FieldMask) Unmarshal(data []byte) error

func (*Resource_VersionedInfo_FieldMask) UnmarshalJSON

func (fieldMask *Resource_VersionedInfo_FieldMask) UnmarshalJSON(data []byte) error

type WatchQuery

type WatchQuery struct {
	ListQuery
	WatchType    watch_type.WatchType
	ChunkSize    int
	ResumeToken  string
	StartingTime *timestamppb.Timestamp
}

func (*WatchQuery) GetMaximumChunkSize

func (q *WatchQuery) GetMaximumChunkSize() int

func (*WatchQuery) GetResumeToken

func (q *WatchQuery) GetResumeToken() string

func (*WatchQuery) GetStartingTime

func (q *WatchQuery) GetStartingTime() *timestamppb.Timestamp

func (*WatchQuery) GetWatchType

func (q *WatchQuery) GetWatchType() watch_type.WatchType

func (*WatchQuery) SetMaximumChunkSize

func (q *WatchQuery) SetMaximumChunkSize(chunkSize int)

func (*WatchQuery) SetResumeToken

func (q *WatchQuery) SetResumeToken(token string)

func (*WatchQuery) SetStartingTime

func (q *WatchQuery) SetStartingTime(startingTime *timestamppb.Timestamp)

func (*WatchQuery) SetWatchType

func (q *WatchQuery) SetWatchType(watchType watch_type.WatchType)

func (*WatchQuery) String

func (q *WatchQuery) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL