plan

package
v1.0.42 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamePattern_Nil = "plans/{plan}"
)

Variables

View Source
var (
	Plan_PlanLevel_name = map[int32]string{
		0: "UNDEFINED",
		1: "SYSTEM",
		2: "ORGANIZATION",
		3: "PROJECT",
	}

	Plan_PlanLevel_value = map[string]int32{
		"UNDEFINED":    0,
		"SYSTEM":       1,
		"ORGANIZATION": 2,
		"PROJECT":      3,
	}
)

Functions

func AsAnyCastAccess

func AsAnyCastAccess(access PlanAccess) gotenresource.Access

Types

type Descriptor

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

func GetDescriptor

func GetDescriptor() *Descriptor

func (*Descriptor) CanBeParentless added in v1.0.21

func (d *Descriptor) CanBeParentless() bool

func (*Descriptor) GetNameDescriptor

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

func (*Descriptor) GetParentResDescriptors added in v1.0.21

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 added in v0.9.0

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 added in v1.0.21

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 *Plan) 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 []*Plan) (out []*Plan)

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 Plan_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 *Plan) bool

	// Whether this condition is at least as specific as other.
	// When true, any Plan 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 Plan_FieldPath) bool
	// contains filtered or unexported methods
}

func AndFilterConditions

func AndFilterConditions(conds ...FilterCondition) FilterCondition

type FilterConditionCompare

type FilterConditionCompare struct {
	Operator filterParser.CompareOperator
	Plan_FieldPathValue
}

func (*FilterConditionCompare) And

func (*FilterConditionCompare) ConditionCompare

func (cond *FilterConditionCompare) ConditionCompare()

func (*FilterConditionCompare) Evaluate

func (cond *FilterConditionCompare) Evaluate(res *Plan) 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 Plan_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 *Plan) 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 Plan_FieldPath) bool

func (*FilterConditionComposite) SpecifiesRawFieldPath

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

func (*FilterConditionComposite) String

func (cond *FilterConditionComposite) String() string

type FilterConditionContains

type FilterConditionContains struct {
	Type      gotenresource.ConditionContainsType
	FieldPath Plan_FieldPath

	Value  Plan_FieldPathArrayItemValue
	Values []Plan_FieldPathArrayItemValue
}

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 *Plan) bool

func (*FilterConditionContains) EvaluateRaw

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

func (*FilterConditionContains) GetFieldPath

func (cond *FilterConditionContains) GetFieldPath() Plan_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 Plan_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 {
	Plan_FieldPathArrayOfValues
}

func (*FilterConditionIn) And

func (*FilterConditionIn) ConditionIn

func (cond *FilterConditionIn) ConditionIn()

func (*FilterConditionIn) Evaluate

func (cond *FilterConditionIn) Evaluate(res *Plan) 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 Plan_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 Plan_FieldPath
}

func (*FilterConditionIsNaN) And

func (*FilterConditionIsNaN) ConditionIsNaN

func (cond *FilterConditionIsNaN) ConditionIsNaN()

func (*FilterConditionIsNaN) Evaluate

func (cond *FilterConditionIsNaN) Evaluate(res *Plan) 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 Plan_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 Plan_FieldPath
}

func (*FilterConditionIsNull) And

func (*FilterConditionIsNull) ConditionIsNull

func (cond *FilterConditionIsNull) ConditionIsNull()

func (*FilterConditionIsNull) Evaluate

func (cond *FilterConditionIsNull) Evaluate(res *Plan) 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 Plan_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 *Plan) 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 Plan_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 {
	Plan_FieldPathArrayOfValues
}

func (*FilterConditionNotIn) And

func (*FilterConditionNotIn) ConditionNotIn

func (cond *FilterConditionNotIn) ConditionNotIn()

func (*FilterConditionNotIn) Evaluate

func (cond *FilterConditionNotIn) Evaluate(res *Plan) 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 Plan_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      *Plan_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           *Plan_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 added in v0.10.1

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 added in v0.10.1

func (q *ListQuery) SetWithPagingInfo(with bool)

func (*ListQuery) String

func (q *ListQuery) String() string

type Name

type Name struct {
	NamePattern
	PlanId string `firestore:"planId"`
}

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) FullyQualifiedName

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

func (*Name) GetIParentName added in v0.8.0

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

func (*Name) GetIUnderlyingParentName added in v0.8.0

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) 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) Reference

func (b *NameBuilder) Reference() *Reference

func (*NameBuilder) SetId

func (b *NameBuilder) SetId(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 *Plan) int

func (*OrderBy) CompareRaw

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

func (*OrderBy) GetFieldMask

func (orderBy *OrderBy) GetFieldMask() *Plan_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 PlanList, elem *Plan) (PlanList, 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 PlanList)

func (*OrderBy) SortRaw

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

func (*OrderBy) String

func (orderBy *OrderBy) String() string

type OrderByField

type OrderByField struct {
	FieldPath Plan_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 *Plan) 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 added in v0.8.0

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

func (*PagerQuery) SetLimit added in v0.8.0

func (p *PagerQuery) SetLimit(limit int)

func (*PagerQuery) SetOrderBy added in v0.8.0

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

func (*PagerQuery) SetPageDirection added in v0.8.0

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

func (*PagerQuery) SetPeekForward added in v0.8.0

func (p *PagerQuery) SetPeekForward(peekForward bool)

type Plan

type Plan struct {

	// Name of Plan
	// 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-Z0-9_.-]{1,128}
	Name        *Name  `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty" firestore:"displayName"`
	// Primary service to which this plan applies
	Service *meta_service.Reference `protobuf:"bytes,3,opt,customtype=Reference,name=service,proto3" json:"service,omitempty" firestore:"service"`
	// List of limits per each resource. Resources may belong to different
	// services (dependant services)
	ResourceLimits []*common.Allowance `` /* 130-byte string literal not displayed */
	// Plan level
	PlanLevel Plan_PlanLevel `` /* 151-byte string literal not displayed */
	// Business tier
	BusinessTier iam_iam_common.BusinessTier `` /* 158-byte string literal not displayed */
	// Metadata
	Metadata *meta.Meta `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty" firestore:"metadata"`
	// contains filtered or unexported fields
}

Plan is a bundle with set of limits for various resources. Those resources should be mostly from service plan references, but it can also include resources from imported services too.

func (*Plan) Clone

func (o *Plan) Clone() *Plan

func (*Plan) CloneRaw

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

func (*Plan) Descriptor

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

Deprecated, Use Plan.ProtoReflect.Descriptor instead.

func (*Plan) EnsureMetadata added in v1.0.21

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

func (*Plan) GetBusinessTier added in v0.10.0

func (m *Plan) GetBusinessTier() iam_iam_common.BusinessTier

func (*Plan) GetDisplayName

func (m *Plan) GetDisplayName() string

func (*Plan) GetMetadata

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

func (*Plan) GetName

func (m *Plan) GetName() *Name

func (*Plan) GetPlanLevel added in v0.10.0

func (m *Plan) GetPlanLevel() Plan_PlanLevel

func (*Plan) GetRawName

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

func (*Plan) GetResourceDescriptor

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

func (*Plan) GetResourceLimits

func (m *Plan) GetResourceLimits() []*common.Allowance

func (*Plan) GetService

func (m *Plan) GetService() *meta_service.Reference

func (*Plan) GotenMessage

func (*Plan) GotenMessage()

func (*Plan) GotenObjectExt

func (o *Plan) GotenObjectExt()

func (*Plan) GotenValidate

func (obj *Plan) GotenValidate() error

func (*Plan) MakeDiffFieldMask

func (o *Plan) MakeDiffFieldMask(other *Plan) *Plan_FieldMask

func (*Plan) MakeFullFieldMask

func (o *Plan) MakeFullFieldMask() *Plan_FieldMask

func (*Plan) MakeRawDiffFieldMask

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

func (*Plan) MakeRawFullFieldMask

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

func (*Plan) Marshal

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

func (*Plan) MarshalJSON

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

func (*Plan) MaybePopulateDefaults

func (r *Plan) MaybePopulateDefaults() error

func (*Plan) Merge

func (o *Plan) Merge(source *Plan)

func (*Plan) MergeRaw

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

func (*Plan) ProtoMessage

func (*Plan) ProtoMessage()

func (*Plan) ProtoReflect

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

func (*Plan) Reset

func (m *Plan) Reset()

func (*Plan) SetBusinessTier added in v0.10.0

func (m *Plan) SetBusinessTier(fv iam_iam_common.BusinessTier)

func (*Plan) SetDisplayName

func (m *Plan) SetDisplayName(fv string)

func (*Plan) SetMetadata

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

func (*Plan) SetName

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

func (*Plan) SetPlanLevel added in v0.10.0

func (m *Plan) SetPlanLevel(fv Plan_PlanLevel)

func (*Plan) SetResourceLimits

func (m *Plan) SetResourceLimits(fv []*common.Allowance)

func (*Plan) SetService

func (m *Plan) SetService(fv *meta_service.Reference)

func (*Plan) String

func (m *Plan) String() string

func (*Plan) Unmarshal

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

func (*Plan) UnmarshalJSON

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

type PlanChange

type PlanChange struct {

	// Plan change
	//
	// Types that are valid to be assigned to ChangeType:
	//	*PlanChange_Added_
	//	*PlanChange_Modified_
	//	*PlanChange_Current_
	//	*PlanChange_Removed_
	ChangeType isPlanChange_ChangeType `protobuf_oneof:"change_type"`
	// contains filtered or unexported fields
}

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

func (*PlanChange) Descriptor

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

Deprecated, Use PlanChange.ProtoReflect.Descriptor instead.

func (*PlanChange) GetAdded

func (m *PlanChange) GetAdded() *PlanChange_Added

func (*PlanChange) GetChangeType

func (m *PlanChange) GetChangeType() isPlanChange_ChangeType

func (*PlanChange) GetCurrent

func (m *PlanChange) GetCurrent() *PlanChange_Current

func (*PlanChange) GetCurrentViewIndex

func (c *PlanChange) GetCurrentViewIndex() int32

func (*PlanChange) GetModified

func (m *PlanChange) GetModified() *PlanChange_Modified

func (*PlanChange) GetPlan

func (c *PlanChange) GetPlan() *Plan

func (*PlanChange) GetPlanName

func (c *PlanChange) GetPlanName() *Name

func (*PlanChange) GetPreviousViewIndex

func (c *PlanChange) GetPreviousViewIndex() int32

func (*PlanChange) GetRawName

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

func (*PlanChange) GetRawResource

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

func (*PlanChange) GetRemoved

func (m *PlanChange) GetRemoved() *PlanChange_Removed

func (*PlanChange) GotenMessage

func (*PlanChange) GotenMessage()

func (*PlanChange) GotenValidate

func (obj *PlanChange) GotenValidate() error

func (*PlanChange) IsAdd

func (c *PlanChange) IsAdd() bool

func (*PlanChange) IsCurrent

func (c *PlanChange) IsCurrent() bool

func (*PlanChange) IsDelete

func (c *PlanChange) IsDelete() bool

func (*PlanChange) IsModify

func (c *PlanChange) IsModify() bool

func (*PlanChange) Marshal

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

func (*PlanChange) MarshalJSON

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

func (*PlanChange) ProtoMessage

func (*PlanChange) ProtoMessage()

func (*PlanChange) ProtoReflect

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

func (*PlanChange) Reset

func (m *PlanChange) Reset()

func (*PlanChange) SetAdded

func (m *PlanChange) SetAdded(fv *PlanChange_Added)

func (*PlanChange) SetAddedRaw

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

func (*PlanChange) SetChangeType

func (m *PlanChange) SetChangeType(ofv isPlanChange_ChangeType)

func (*PlanChange) SetCurrent

func (m *PlanChange) SetCurrent(fv *PlanChange_Current)

func (*PlanChange) SetCurrentRaw

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

func (*PlanChange) SetDeletedRaw

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

func (*PlanChange) SetModified

func (m *PlanChange) SetModified(fv *PlanChange_Modified)

func (*PlanChange) SetModifiedRaw

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

func (*PlanChange) SetRemoved

func (m *PlanChange) SetRemoved(fv *PlanChange_Removed)

func (*PlanChange) String

func (m *PlanChange) String() string

func (*PlanChange) Unmarshal

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

func (*PlanChange) UnmarshalJSON

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

type PlanChangeList

type PlanChangeList []*PlanChange

func (PlanChangeList) At

func (PlanChangeList) Length

func (l PlanChangeList) Length() int

func (PlanChangeList) Set

func (l PlanChangeList) Set(idx int, change gotenresource.ResourceChange)

func (PlanChangeList) Slice

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

type PlanChangeMap

type PlanChangeMap map[Name]*PlanChange

func (PlanChangeMap) Delete

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

func (PlanChangeMap) ForEach

func (PlanChangeMap) Get

func (PlanChangeMap) Length

func (m PlanChangeMap) Length() int

func (PlanChangeMap) Set

type PlanChange_Added

type PlanChange_Added struct {
	Plan *Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty" firestore:"plan"`
	// Integer describing index of added Plan 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
}

Plan has been added to query view

func (*PlanChange_Added) Descriptor

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

Deprecated, Use PlanChange_Added.ProtoReflect.Descriptor instead.

func (*PlanChange_Added) GetPlan

func (m *PlanChange_Added) GetPlan() *Plan

func (*PlanChange_Added) GetViewIndex

func (m *PlanChange_Added) GetViewIndex() int32

func (*PlanChange_Added) GotenMessage

func (*PlanChange_Added) GotenMessage()

func (*PlanChange_Added) GotenValidate

func (obj *PlanChange_Added) GotenValidate() error

func (*PlanChange_Added) Marshal

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

func (*PlanChange_Added) MarshalJSON

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

func (*PlanChange_Added) ProtoMessage

func (*PlanChange_Added) ProtoMessage()

func (*PlanChange_Added) ProtoReflect

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

func (*PlanChange_Added) Reset

func (m *PlanChange_Added) Reset()

func (*PlanChange_Added) SetPlan

func (m *PlanChange_Added) SetPlan(fv *Plan)

func (*PlanChange_Added) SetViewIndex

func (m *PlanChange_Added) SetViewIndex(fv int32)

func (*PlanChange_Added) String

func (m *PlanChange_Added) String() string

func (*PlanChange_Added) Unmarshal

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

func (*PlanChange_Added) UnmarshalJSON

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

type PlanChange_Added_

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

type PlanChange_Current

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

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

func (*PlanChange_Current) Descriptor

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

Deprecated, Use PlanChange_Current.ProtoReflect.Descriptor instead.

func (*PlanChange_Current) GetPlan

func (m *PlanChange_Current) GetPlan() *Plan

func (*PlanChange_Current) GotenMessage

func (*PlanChange_Current) GotenMessage()

func (*PlanChange_Current) GotenValidate

func (obj *PlanChange_Current) GotenValidate() error

func (*PlanChange_Current) Marshal

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

func (*PlanChange_Current) MarshalJSON

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

func (*PlanChange_Current) ProtoMessage

func (*PlanChange_Current) ProtoMessage()

func (*PlanChange_Current) ProtoReflect

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

func (*PlanChange_Current) Reset

func (m *PlanChange_Current) Reset()

func (*PlanChange_Current) SetPlan

func (m *PlanChange_Current) SetPlan(fv *Plan)

func (*PlanChange_Current) String

func (m *PlanChange_Current) String() string

func (*PlanChange_Current) Unmarshal

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

func (*PlanChange_Current) UnmarshalJSON

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

type PlanChange_Current_

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

type PlanChange_Modified

type PlanChange_Modified struct {

	// Name of modified Plan
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// New version of Plan or masked difference, depending on mask_changes
	// instrumentation of issued [WatchPlanRequest] or [WatchPlansRequest]
	Plan *Plan `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan,omitempty" firestore:"plan"`
	// Used when mask_changes is set, contains field paths of modified
	// properties.
	FieldMask *Plan_FieldMask `` /* 136-byte string literal not displayed */
	// Previous view index specifies previous position of modified Plan.
	// When modification doesn't affect sorted order, value will remain
	// identical to [view_index].
	PreviousViewIndex int32 `` /* 145-byte string literal not displayed */
	// Integer specifying Plan 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
}

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

func (*PlanChange_Modified) Descriptor

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

Deprecated, Use PlanChange_Modified.ProtoReflect.Descriptor instead.

func (*PlanChange_Modified) GetFieldMask

func (m *PlanChange_Modified) GetFieldMask() *Plan_FieldMask

func (*PlanChange_Modified) GetName

func (m *PlanChange_Modified) GetName() *Name

func (*PlanChange_Modified) GetPlan

func (m *PlanChange_Modified) GetPlan() *Plan

func (*PlanChange_Modified) GetPreviousViewIndex

func (m *PlanChange_Modified) GetPreviousViewIndex() int32

func (*PlanChange_Modified) GetViewIndex

func (m *PlanChange_Modified) GetViewIndex() int32

func (*PlanChange_Modified) GotenMessage

func (*PlanChange_Modified) GotenMessage()

func (*PlanChange_Modified) GotenValidate

func (obj *PlanChange_Modified) GotenValidate() error

func (*PlanChange_Modified) Marshal

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

func (*PlanChange_Modified) MarshalJSON

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

func (*PlanChange_Modified) ProtoMessage

func (*PlanChange_Modified) ProtoMessage()

func (*PlanChange_Modified) ProtoReflect

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

func (*PlanChange_Modified) Reset

func (m *PlanChange_Modified) Reset()

func (*PlanChange_Modified) SetFieldMask

func (m *PlanChange_Modified) SetFieldMask(fv *Plan_FieldMask)

func (*PlanChange_Modified) SetName

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

func (*PlanChange_Modified) SetPlan

func (m *PlanChange_Modified) SetPlan(fv *Plan)

func (*PlanChange_Modified) SetPreviousViewIndex

func (m *PlanChange_Modified) SetPreviousViewIndex(fv int32)

func (*PlanChange_Modified) SetViewIndex

func (m *PlanChange_Modified) SetViewIndex(fv int32)

func (*PlanChange_Modified) String

func (m *PlanChange_Modified) String() string

func (*PlanChange_Modified) Unmarshal

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

func (*PlanChange_Modified) UnmarshalJSON

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

type PlanChange_Modified_

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

type PlanChange_Removed

type PlanChange_Removed struct {
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// Integer specifying removed Plan 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 Plan is deleted or leaves Query view

func (*PlanChange_Removed) Descriptor

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

Deprecated, Use PlanChange_Removed.ProtoReflect.Descriptor instead.

func (*PlanChange_Removed) GetName

func (m *PlanChange_Removed) GetName() *Name

func (*PlanChange_Removed) GetViewIndex

func (m *PlanChange_Removed) GetViewIndex() int32

func (*PlanChange_Removed) GotenMessage

func (*PlanChange_Removed) GotenMessage()

func (*PlanChange_Removed) GotenValidate

func (obj *PlanChange_Removed) GotenValidate() error

func (*PlanChange_Removed) Marshal

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

func (*PlanChange_Removed) MarshalJSON

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

func (*PlanChange_Removed) ProtoMessage

func (*PlanChange_Removed) ProtoMessage()

func (*PlanChange_Removed) ProtoReflect

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

func (*PlanChange_Removed) Reset

func (m *PlanChange_Removed) Reset()

func (*PlanChange_Removed) SetName

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

func (*PlanChange_Removed) SetViewIndex

func (m *PlanChange_Removed) SetViewIndex(fv int32)

func (*PlanChange_Removed) String

func (m *PlanChange_Removed) String() string

func (*PlanChange_Removed) Unmarshal

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

func (*PlanChange_Removed) UnmarshalJSON

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

type PlanChange_Removed_

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

type PlanFieldPathBuilder

type PlanFieldPathBuilder struct{}

func NewPlanFieldPathBuilder

func NewPlanFieldPathBuilder() PlanFieldPathBuilder

func (PlanFieldPathBuilder) BusinessTier added in v0.10.0

func (PlanFieldPathBuilder) DisplayName

func (PlanFieldPathBuilder) Metadata

func (PlanFieldPathBuilder) Name

func (PlanFieldPathBuilder) PlanLevel added in v0.10.0

func (PlanFieldPathBuilder) ResourceLimits

func (PlanFieldPathBuilder) Service

type PlanList

type PlanList []*Plan

func (PlanList) Append

func (PlanList) AppendList

func (PlanList) At

func (l PlanList) At(idx int) gotenresource.Resource

func (PlanList) Length

func (l PlanList) Length() int

func (PlanList) Set

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

func (PlanList) Slice

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

type PlanMap

type PlanMap map[Name]*Plan

func (PlanMap) Delete

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

func (PlanMap) ForEach

func (m PlanMap) ForEach(cb func(gotenresource.Name, gotenresource.Resource) bool)

func (PlanMap) Get

func (PlanMap) Length

func (m PlanMap) Length() int

func (PlanMap) Set

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

type PlanMapPathSelectorMetadataAnnotations

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

func (PlanMapPathSelectorMetadataAnnotations) FieldPath

func (PlanMapPathSelectorMetadataAnnotations) WithArrayOfValues

func (PlanMapPathSelectorMetadataAnnotations) WithValue

type PlanMapPathSelectorMetadataLabels

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

func (PlanMapPathSelectorMetadataLabels) FieldPath

func (PlanMapPathSelectorMetadataLabels) WithArrayOfValues

func (PlanMapPathSelectorMetadataLabels) WithValue

type PlanMapPathSelectorMetadataShards

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

func (PlanMapPathSelectorMetadataShards) FieldPath

func (PlanMapPathSelectorMetadataShards) WithArrayOfValues

func (PlanMapPathSelectorMetadataShards) WithValue

type PlanNameList

type PlanNameList []*Name

func (PlanNameList) Append

func (PlanNameList) AppendList

func (PlanNameList) At

func (l PlanNameList) At(idx int) gotenresource.Name

func (PlanNameList) Length

func (l PlanNameList) Length() int

func (PlanNameList) Set

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

func (PlanNameList) Slice

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

type PlanPathSelectorBusinessTier added in v0.10.0

type PlanPathSelectorBusinessTier struct{}

func (PlanPathSelectorBusinessTier) FieldPath added in v0.10.0

func (PlanPathSelectorBusinessTier) WithArrayOfValues added in v0.10.0

func (PlanPathSelectorBusinessTier) WithValue added in v0.10.0

type PlanPathSelectorDisplayName

type PlanPathSelectorDisplayName struct{}

func (PlanPathSelectorDisplayName) FieldPath

func (PlanPathSelectorDisplayName) WithArrayOfValues

func (PlanPathSelectorDisplayName) WithValue

type PlanPathSelectorMetadata

type PlanPathSelectorMetadata struct{}

func (PlanPathSelectorMetadata) Annotations

func (PlanPathSelectorMetadata) CreateTime

func (PlanPathSelectorMetadata) DeleteTime added in v0.8.0

func (PlanPathSelectorMetadata) FieldPath

func (PlanPathSelectorMetadata) Generation

func (PlanPathSelectorMetadata) Labels

func (PlanPathSelectorMetadata) Lifecycle added in v0.8.0

func (PlanPathSelectorMetadata) OwnerReferences

func (PlanPathSelectorMetadata) ResourceVersion

func (PlanPathSelectorMetadata) Services added in v1.0.21

func (PlanPathSelectorMetadata) Shards

func (PlanPathSelectorMetadata) Syncing

func (PlanPathSelectorMetadata) Tags

func (PlanPathSelectorMetadata) UpdateTime

func (PlanPathSelectorMetadata) Uuid

func (PlanPathSelectorMetadata) WithArrayOfValues

func (PlanPathSelectorMetadata) WithSubArrayItemValue

func (s PlanPathSelectorMetadata) WithSubArrayItemValue(subPathArrayItemValue meta.Meta_FieldPathArrayItemValue) *Plan_FieldSubPathArrayItemValue

func (PlanPathSelectorMetadata) WithSubArrayOfValues

func (s PlanPathSelectorMetadata) WithSubArrayOfValues(subPathArrayOfValues meta.Meta_FieldPathArrayOfValues) *Plan_FieldSubPathArrayOfValues

func (PlanPathSelectorMetadata) WithSubPath

func (PlanPathSelectorMetadata) WithSubValue

func (PlanPathSelectorMetadata) WithValue

type PlanPathSelectorMetadataAnnotations

type PlanPathSelectorMetadataAnnotations struct{}

func (PlanPathSelectorMetadataAnnotations) FieldPath

func (PlanPathSelectorMetadataAnnotations) WithArrayOfValues

func (PlanPathSelectorMetadataAnnotations) WithKey

func (PlanPathSelectorMetadataAnnotations) WithValue

type PlanPathSelectorMetadataCreateTime

type PlanPathSelectorMetadataCreateTime struct{}

func (PlanPathSelectorMetadataCreateTime) FieldPath

func (PlanPathSelectorMetadataCreateTime) WithArrayOfValues

func (PlanPathSelectorMetadataCreateTime) WithValue

type PlanPathSelectorMetadataDeleteTime added in v0.8.0

type PlanPathSelectorMetadataDeleteTime struct{}

func (PlanPathSelectorMetadataDeleteTime) FieldPath added in v0.8.0

func (PlanPathSelectorMetadataDeleteTime) WithArrayOfValues added in v0.8.0

func (PlanPathSelectorMetadataDeleteTime) WithValue added in v0.8.0

type PlanPathSelectorMetadataGeneration

type PlanPathSelectorMetadataGeneration struct{}

func (PlanPathSelectorMetadataGeneration) FieldPath

func (PlanPathSelectorMetadataGeneration) WithArrayOfValues

func (PlanPathSelectorMetadataGeneration) WithValue

type PlanPathSelectorMetadataLabels

type PlanPathSelectorMetadataLabels struct{}

func (PlanPathSelectorMetadataLabels) FieldPath

func (PlanPathSelectorMetadataLabels) WithArrayOfValues

func (PlanPathSelectorMetadataLabels) WithKey

func (PlanPathSelectorMetadataLabels) WithValue

type PlanPathSelectorMetadataLifecycle added in v0.8.0

type PlanPathSelectorMetadataLifecycle struct{}

func (PlanPathSelectorMetadataLifecycle) BlockDeletion added in v0.8.0

func (PlanPathSelectorMetadataLifecycle) FieldPath added in v0.8.0

func (PlanPathSelectorMetadataLifecycle) State added in v0.8.0

func (PlanPathSelectorMetadataLifecycle) WithArrayOfValues added in v0.8.0

func (PlanPathSelectorMetadataLifecycle) WithValue added in v0.8.0

type PlanPathSelectorMetadataLifecycleBlockDeletion added in v0.8.0

type PlanPathSelectorMetadataLifecycleBlockDeletion struct{}

func (PlanPathSelectorMetadataLifecycleBlockDeletion) FieldPath added in v0.8.0

func (PlanPathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues added in v0.8.0

func (PlanPathSelectorMetadataLifecycleBlockDeletion) WithValue added in v0.8.0

type PlanPathSelectorMetadataLifecycleState added in v0.8.0

type PlanPathSelectorMetadataLifecycleState struct{}

func (PlanPathSelectorMetadataLifecycleState) FieldPath added in v0.8.0

func (PlanPathSelectorMetadataLifecycleState) WithArrayOfValues added in v0.8.0

func (PlanPathSelectorMetadataLifecycleState) WithValue added in v0.8.0

type PlanPathSelectorMetadataOwnerReferences

type PlanPathSelectorMetadataOwnerReferences struct{}

func (PlanPathSelectorMetadataOwnerReferences) Controller

func (PlanPathSelectorMetadataOwnerReferences) FieldPath

func (PlanPathSelectorMetadataOwnerReferences) Kind

func (PlanPathSelectorMetadataOwnerReferences) Name

func (PlanPathSelectorMetadataOwnerReferences) Region added in v0.8.0

func (PlanPathSelectorMetadataOwnerReferences) RequiresOwnerReference added in v0.8.0

func (PlanPathSelectorMetadataOwnerReferences) Version added in v0.8.0

func (PlanPathSelectorMetadataOwnerReferences) WithArrayOfValues

func (PlanPathSelectorMetadataOwnerReferences) WithItemValue

func (PlanPathSelectorMetadataOwnerReferences) WithValue

type PlanPathSelectorMetadataOwnerReferencesController

type PlanPathSelectorMetadataOwnerReferencesController struct{}

func (PlanPathSelectorMetadataOwnerReferencesController) FieldPath

func (PlanPathSelectorMetadataOwnerReferencesController) WithArrayOfValues

func (PlanPathSelectorMetadataOwnerReferencesController) WithValue

type PlanPathSelectorMetadataOwnerReferencesKind

type PlanPathSelectorMetadataOwnerReferencesKind struct{}

func (PlanPathSelectorMetadataOwnerReferencesKind) FieldPath

func (PlanPathSelectorMetadataOwnerReferencesKind) WithArrayOfValues

func (PlanPathSelectorMetadataOwnerReferencesKind) WithValue

type PlanPathSelectorMetadataOwnerReferencesName

type PlanPathSelectorMetadataOwnerReferencesName struct{}

func (PlanPathSelectorMetadataOwnerReferencesName) FieldPath

func (PlanPathSelectorMetadataOwnerReferencesName) WithArrayOfValues

func (PlanPathSelectorMetadataOwnerReferencesName) WithValue

type PlanPathSelectorMetadataOwnerReferencesRegion added in v0.8.0

type PlanPathSelectorMetadataOwnerReferencesRegion struct{}

func (PlanPathSelectorMetadataOwnerReferencesRegion) FieldPath added in v0.8.0

func (PlanPathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues added in v0.8.0

func (PlanPathSelectorMetadataOwnerReferencesRegion) WithValue added in v0.8.0

type PlanPathSelectorMetadataOwnerReferencesRequiresOwnerReference added in v0.8.0

type PlanPathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{}

func (PlanPathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath added in v0.8.0

func (PlanPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues added in v0.8.0

func (PlanPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue added in v0.8.0

type PlanPathSelectorMetadataOwnerReferencesVersion added in v0.8.0

type PlanPathSelectorMetadataOwnerReferencesVersion struct{}

func (PlanPathSelectorMetadataOwnerReferencesVersion) FieldPath added in v0.8.0

func (PlanPathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues added in v0.8.0

func (PlanPathSelectorMetadataOwnerReferencesVersion) WithValue added in v0.8.0

type PlanPathSelectorMetadataResourceVersion

type PlanPathSelectorMetadataResourceVersion struct{}

func (PlanPathSelectorMetadataResourceVersion) FieldPath

func (PlanPathSelectorMetadataResourceVersion) WithArrayOfValues

func (PlanPathSelectorMetadataResourceVersion) WithValue

type PlanPathSelectorMetadataServices added in v1.0.21

type PlanPathSelectorMetadataServices struct{}

func (PlanPathSelectorMetadataServices) AllowedServices added in v1.0.21

func (PlanPathSelectorMetadataServices) FieldPath added in v1.0.21

func (PlanPathSelectorMetadataServices) OwningService added in v1.0.21

func (PlanPathSelectorMetadataServices) WithArrayOfValues added in v1.0.21

func (PlanPathSelectorMetadataServices) WithValue added in v1.0.21

type PlanPathSelectorMetadataServicesAllowedServices added in v1.0.21

type PlanPathSelectorMetadataServicesAllowedServices struct{}

func (PlanPathSelectorMetadataServicesAllowedServices) FieldPath added in v1.0.21

func (PlanPathSelectorMetadataServicesAllowedServices) WithArrayOfValues added in v1.0.21

func (PlanPathSelectorMetadataServicesAllowedServices) WithItemValue added in v1.0.21

func (PlanPathSelectorMetadataServicesAllowedServices) WithValue added in v1.0.21

type PlanPathSelectorMetadataServicesOwningService added in v1.0.21

type PlanPathSelectorMetadataServicesOwningService struct{}

func (PlanPathSelectorMetadataServicesOwningService) FieldPath added in v1.0.21

func (PlanPathSelectorMetadataServicesOwningService) WithArrayOfValues added in v1.0.21

func (PlanPathSelectorMetadataServicesOwningService) WithValue added in v1.0.21

type PlanPathSelectorMetadataShards

type PlanPathSelectorMetadataShards struct{}

func (PlanPathSelectorMetadataShards) FieldPath

func (PlanPathSelectorMetadataShards) WithArrayOfValues

func (PlanPathSelectorMetadataShards) WithKey

func (PlanPathSelectorMetadataShards) WithValue

type PlanPathSelectorMetadataSyncing

type PlanPathSelectorMetadataSyncing struct{}

func (PlanPathSelectorMetadataSyncing) FieldPath

func (PlanPathSelectorMetadataSyncing) OwningRegion

func (PlanPathSelectorMetadataSyncing) Regions

func (PlanPathSelectorMetadataSyncing) WithArrayOfValues

func (PlanPathSelectorMetadataSyncing) WithValue

type PlanPathSelectorMetadataSyncingOwningRegion

type PlanPathSelectorMetadataSyncingOwningRegion struct{}

func (PlanPathSelectorMetadataSyncingOwningRegion) FieldPath

func (PlanPathSelectorMetadataSyncingOwningRegion) WithArrayOfValues

func (PlanPathSelectorMetadataSyncingOwningRegion) WithValue

type PlanPathSelectorMetadataSyncingRegions

type PlanPathSelectorMetadataSyncingRegions struct{}

func (PlanPathSelectorMetadataSyncingRegions) FieldPath

func (PlanPathSelectorMetadataSyncingRegions) WithArrayOfValues

func (PlanPathSelectorMetadataSyncingRegions) WithItemValue

func (PlanPathSelectorMetadataSyncingRegions) WithValue

type PlanPathSelectorMetadataTags

type PlanPathSelectorMetadataTags struct{}

func (PlanPathSelectorMetadataTags) FieldPath

func (PlanPathSelectorMetadataTags) WithArrayOfValues

func (s PlanPathSelectorMetadataTags) WithArrayOfValues(values [][]string) *Plan_FieldSubPathArrayOfValues

func (PlanPathSelectorMetadataTags) WithItemValue

func (PlanPathSelectorMetadataTags) WithValue

type PlanPathSelectorMetadataUpdateTime

type PlanPathSelectorMetadataUpdateTime struct{}

func (PlanPathSelectorMetadataUpdateTime) FieldPath

func (PlanPathSelectorMetadataUpdateTime) WithArrayOfValues

func (PlanPathSelectorMetadataUpdateTime) WithValue

type PlanPathSelectorMetadataUuid

type PlanPathSelectorMetadataUuid struct{}

func (PlanPathSelectorMetadataUuid) FieldPath

func (PlanPathSelectorMetadataUuid) WithArrayOfValues

func (PlanPathSelectorMetadataUuid) WithValue

type PlanPathSelectorName

type PlanPathSelectorName struct{}

func (PlanPathSelectorName) FieldPath

func (PlanPathSelectorName) WithArrayOfValues

func (s PlanPathSelectorName) WithArrayOfValues(values []*Name) *Plan_FieldTerminalPathArrayOfValues

func (PlanPathSelectorName) WithValue

type PlanPathSelectorPlanLevel added in v0.10.0

type PlanPathSelectorPlanLevel struct{}

func (PlanPathSelectorPlanLevel) FieldPath added in v0.10.0

func (PlanPathSelectorPlanLevel) WithArrayOfValues added in v0.10.0

func (PlanPathSelectorPlanLevel) WithValue added in v0.10.0

type PlanPathSelectorResourceLimits

type PlanPathSelectorResourceLimits struct{}

func (PlanPathSelectorResourceLimits) FieldPath

func (PlanPathSelectorResourceLimits) Resource

func (PlanPathSelectorResourceLimits) Value

func (PlanPathSelectorResourceLimits) WithArrayOfValues

func (PlanPathSelectorResourceLimits) WithItemValue

func (PlanPathSelectorResourceLimits) WithSubArrayItemValue

func (PlanPathSelectorResourceLimits) WithSubArrayOfValues

func (PlanPathSelectorResourceLimits) WithSubPath

func (PlanPathSelectorResourceLimits) WithSubValue

func (PlanPathSelectorResourceLimits) WithValue

type PlanPathSelectorResourceLimitsResource

type PlanPathSelectorResourceLimitsResource struct{}

func (PlanPathSelectorResourceLimitsResource) FieldPath

func (PlanPathSelectorResourceLimitsResource) WithArrayOfValues

func (PlanPathSelectorResourceLimitsResource) WithValue

type PlanPathSelectorResourceLimitsValue

type PlanPathSelectorResourceLimitsValue struct{}

func (PlanPathSelectorResourceLimitsValue) FieldPath

func (PlanPathSelectorResourceLimitsValue) WithArrayOfValues

func (PlanPathSelectorResourceLimitsValue) WithValue

type PlanPathSelectorService

type PlanPathSelectorService struct{}

func (PlanPathSelectorService) FieldPath

func (PlanPathSelectorService) WithArrayOfValues

func (PlanPathSelectorService) WithValue

type PlanReferenceList

type PlanReferenceList []*Reference

func (PlanReferenceList) Append

func (PlanReferenceList) AppendList

func (PlanReferenceList) At

func (PlanReferenceList) Length

func (l PlanReferenceList) Length() int

func (PlanReferenceList) Set

func (l PlanReferenceList) Set(idx int, ref gotenresource.Reference)

func (PlanReferenceList) Slice

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

type Plan_FieldMask

type Plan_FieldMask struct {
	Paths []Plan_FieldPath
}

func FullPlan_FieldMask

func FullPlan_FieldMask() *Plan_FieldMask

func ResourceViewFieldMask

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

func (*Plan_FieldMask) AppendPath

func (fieldMask *Plan_FieldMask) AppendPath(path Plan_FieldPath)

func (*Plan_FieldMask) AppendRawPath

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

func (*Plan_FieldMask) DecodeFirestore

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

func (*Plan_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*Plan_FieldMask) FilterInputFields

func (fieldMask *Plan_FieldMask) FilterInputFields() *Plan_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Plan_FieldMask) FromProtoFieldMask

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

func (*Plan_FieldMask) GetPaths

func (fieldMask *Plan_FieldMask) GetPaths() []Plan_FieldPath

func (*Plan_FieldMask) GetRawPaths

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

func (*Plan_FieldMask) IsFull

func (fieldMask *Plan_FieldMask) IsFull() bool

func (Plan_FieldMask) Marshal

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

implement methods required by customType

func (Plan_FieldMask) MarshalJSON

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

func (*Plan_FieldMask) PathsCount

func (fieldMask *Plan_FieldMask) PathsCount() int

func (*Plan_FieldMask) Project

func (fieldMask *Plan_FieldMask) Project(source *Plan) *Plan

func (*Plan_FieldMask) ProjectRaw

func (fieldMask *Plan_FieldMask) ProjectRaw(source gotenobject.GotenObjectExt) gotenobject.GotenObjectExt

func (*Plan_FieldMask) ProtoMessage

func (fieldMask *Plan_FieldMask) ProtoMessage()

func (*Plan_FieldMask) ProtoReflect

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

func (*Plan_FieldMask) Reset

func (fieldMask *Plan_FieldMask) Reset()

func (*Plan_FieldMask) Set

func (fieldMask *Plan_FieldMask) Set(target, source *Plan)

func (*Plan_FieldMask) SetFromCliFlag

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

func (*Plan_FieldMask) SetRaw

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

func (*Plan_FieldMask) Size

func (fieldMask *Plan_FieldMask) Size() int

func (*Plan_FieldMask) String

func (fieldMask *Plan_FieldMask) String() string

func (*Plan_FieldMask) Subtract

func (fieldMask *Plan_FieldMask) Subtract(other *Plan_FieldMask) *Plan_FieldMask

func (*Plan_FieldMask) SubtractRaw

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

func (*Plan_FieldMask) ToProtoFieldMask

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

ToFieldMask is used for proto conversions

func (*Plan_FieldMask) Unmarshal

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

func (*Plan_FieldMask) UnmarshalJSON

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

type Plan_FieldPath

type Plan_FieldPath interface {
	gotenobject.FieldPath
	Selector() Plan_FieldPathSelector
	Get(source *Plan) []interface{}
	GetSingle(source *Plan) (interface{}, bool)
	ClearValue(item *Plan)

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

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

func BuildPlan_FieldPath

func BuildPlan_FieldPath(fp gotenobject.RawFieldPath) (Plan_FieldPath, error)

func MustParsePlan_FieldPath

func MustParsePlan_FieldPath(rawField string) Plan_FieldPath

func ParsePlan_FieldPath

func ParsePlan_FieldPath(rawField string) (Plan_FieldPath, error)

type Plan_FieldPathArrayItemValue

type Plan_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	Plan_FieldPath
	ContainsValue(*Plan) bool
}

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

func MustParsePlan_FieldPathArrayItemValue

func MustParsePlan_FieldPathArrayItemValue(pathStr, valueStr string) Plan_FieldPathArrayItemValue

func ParsePlan_FieldPathArrayItemValue

func ParsePlan_FieldPathArrayItemValue(pathStr, valueStr string) (Plan_FieldPathArrayItemValue, error)

ParsePlan_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type Plan_FieldPathArrayOfValues

type Plan_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	Plan_FieldPath
}

Plan_FieldPathArrayOfValues allows storing slice of values for Plan fields according to their type

func MustParsePlan_FieldPathArrayOfValues

func MustParsePlan_FieldPathArrayOfValues(pathStr, valuesStr string) Plan_FieldPathArrayOfValues

func ParsePlan_FieldPathArrayOfValues

func ParsePlan_FieldPathArrayOfValues(pathStr, valuesStr string) (Plan_FieldPathArrayOfValues, error)

type Plan_FieldPathSelector

type Plan_FieldPathSelector int32
const (
	Plan_FieldPathSelectorName           Plan_FieldPathSelector = 0
	Plan_FieldPathSelectorDisplayName    Plan_FieldPathSelector = 1
	Plan_FieldPathSelectorService        Plan_FieldPathSelector = 2
	Plan_FieldPathSelectorResourceLimits Plan_FieldPathSelector = 3
	Plan_FieldPathSelectorPlanLevel      Plan_FieldPathSelector = 4
	Plan_FieldPathSelectorBusinessTier   Plan_FieldPathSelector = 5
	Plan_FieldPathSelectorMetadata       Plan_FieldPathSelector = 6
)

func (Plan_FieldPathSelector) String

func (s Plan_FieldPathSelector) String() string

type Plan_FieldPathValue

type Plan_FieldPathValue interface {
	Plan_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Plan)
	CompareWith(*Plan) (cmp int, comparable bool)
}

Plan_FieldPathValue allows storing values for Plan fields according to their type

func MustParsePlan_FieldPathValue

func MustParsePlan_FieldPathValue(pathStr, valueStr string) Plan_FieldPathValue

func ParsePlan_FieldPathValue

func ParsePlan_FieldPathValue(pathStr, valueStr string) (Plan_FieldPathValue, error)

type Plan_FieldSubPath

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

func (*Plan_FieldSubPath) AsMetadataSubPath

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

func (*Plan_FieldSubPath) AsResourceLimitsSubPath

func (fps *Plan_FieldSubPath) AsResourceLimitsSubPath() (common.Allowance_FieldPath, bool)

func (*Plan_FieldSubPath) ClearValue

func (fps *Plan_FieldSubPath) ClearValue(item *Plan)

func (*Plan_FieldSubPath) ClearValueRaw

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

func (*Plan_FieldSubPath) Get

func (fps *Plan_FieldSubPath) Get(source *Plan) (values []interface{})

Get returns all values pointed by selected field from source Plan

func (*Plan_FieldSubPath) GetDefault

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

GetDefault returns a default value of the field type

func (*Plan_FieldSubPath) GetRaw

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

func (*Plan_FieldSubPath) GetSingle

func (fps *Plan_FieldSubPath) GetSingle(source *Plan) (interface{}, bool)

GetSingle returns value of selected field from source Plan

func (*Plan_FieldSubPath) GetSingleRaw

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

func (*Plan_FieldSubPath) IsLeaf

func (fps *Plan_FieldSubPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Plan_FieldSubPath) JSONString

func (fps *Plan_FieldSubPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Plan_FieldSubPath) Selector

func (fps *Plan_FieldSubPath) Selector() Plan_FieldPathSelector

func (*Plan_FieldSubPath) SplitIntoTerminalIPaths added in v0.8.0

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

func (*Plan_FieldSubPath) String

func (fps *Plan_FieldSubPath) String() string

String returns path representation in proto convention

func (*Plan_FieldSubPath) WithIArrayItemValue

func (fps *Plan_FieldSubPath) WithIArrayItemValue(value interface{}) Plan_FieldPathArrayItemValue

func (*Plan_FieldSubPath) WithIArrayOfValues

func (fps *Plan_FieldSubPath) WithIArrayOfValues(values interface{}) Plan_FieldPathArrayOfValues

func (*Plan_FieldSubPath) WithIValue

func (fps *Plan_FieldSubPath) WithIValue(value interface{}) Plan_FieldPathValue

func (*Plan_FieldSubPath) WithRawIArrayItemValue

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

func (*Plan_FieldSubPath) WithRawIArrayOfValues

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

func (*Plan_FieldSubPath) WithRawIValue

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

type Plan_FieldSubPathArrayItemValue

type Plan_FieldSubPathArrayItemValue struct {
	Plan_FieldPath
	// contains filtered or unexported fields
}

func (*Plan_FieldSubPathArrayItemValue) AsMetadataPathItemValue

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

func (*Plan_FieldSubPathArrayItemValue) AsResourceLimitsPathItemValue

func (fpaivs *Plan_FieldSubPathArrayItemValue) AsResourceLimitsPathItemValue() (common.Allowance_FieldPathArrayItemValue, bool)

func (*Plan_FieldSubPathArrayItemValue) ContainsValue

func (fpaivs *Plan_FieldSubPathArrayItemValue) ContainsValue(source *Plan) bool

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

func (*Plan_FieldSubPathArrayItemValue) GetRawItemValue

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

GetRawValue returns stored array item value

type Plan_FieldSubPathArrayOfValues

type Plan_FieldSubPathArrayOfValues struct {
	Plan_FieldPath
	// contains filtered or unexported fields
}

func (*Plan_FieldSubPathArrayOfValues) AsMetadataPathArrayOfValues

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

func (*Plan_FieldSubPathArrayOfValues) AsResourceLimitsPathArrayOfValues

func (fpsaov *Plan_FieldSubPathArrayOfValues) AsResourceLimitsPathArrayOfValues() (common.Allowance_FieldPathArrayOfValues, bool)

func (*Plan_FieldSubPathArrayOfValues) GetRawValues

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

type Plan_FieldSubPathValue

type Plan_FieldSubPathValue struct {
	Plan_FieldPath
	// contains filtered or unexported fields
}

func (*Plan_FieldSubPathValue) AsMetadataPathValue

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

func (*Plan_FieldSubPathValue) AsResourceLimitsPathValue

func (fpvs *Plan_FieldSubPathValue) AsResourceLimitsPathValue() (common.Allowance_FieldPathValue, bool)

func (*Plan_FieldSubPathValue) CompareWith

func (fpvs *Plan_FieldSubPathValue) CompareWith(source *Plan) (int, bool)

func (*Plan_FieldSubPathValue) CompareWithRaw

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

func (*Plan_FieldSubPathValue) GetRawValue

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

func (*Plan_FieldSubPathValue) SetTo

func (fpvs *Plan_FieldSubPathValue) SetTo(target **Plan)

func (*Plan_FieldSubPathValue) SetToRaw

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

type Plan_FieldTerminalPath

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

func (*Plan_FieldTerminalPath) ClearValue

func (fp *Plan_FieldTerminalPath) ClearValue(item *Plan)

func (*Plan_FieldTerminalPath) ClearValueRaw

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

func (*Plan_FieldTerminalPath) Get

func (fp *Plan_FieldTerminalPath) Get(source *Plan) (values []interface{})

Get returns all values pointed by specific field from source Plan

func (*Plan_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*Plan_FieldTerminalPath) GetRaw

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

func (*Plan_FieldTerminalPath) GetSingle

func (fp *Plan_FieldTerminalPath) GetSingle(source *Plan) (interface{}, bool)

GetSingle returns value pointed by specific field of from source Plan

func (*Plan_FieldTerminalPath) GetSingleRaw

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

func (*Plan_FieldTerminalPath) IsLeaf

func (fp *Plan_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Plan_FieldTerminalPath) JSONString

func (fp *Plan_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Plan_FieldTerminalPath) Selector

func (*Plan_FieldTerminalPath) SplitIntoTerminalIPaths added in v0.8.0

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

func (*Plan_FieldTerminalPath) String

func (fp *Plan_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*Plan_FieldTerminalPath) WithIArrayItemValue

func (fp *Plan_FieldTerminalPath) WithIArrayItemValue(value interface{}) Plan_FieldPathArrayItemValue

func (*Plan_FieldTerminalPath) WithIArrayOfValues

func (fp *Plan_FieldTerminalPath) WithIArrayOfValues(values interface{}) Plan_FieldPathArrayOfValues

func (*Plan_FieldTerminalPath) WithIValue

func (fp *Plan_FieldTerminalPath) WithIValue(value interface{}) Plan_FieldPathValue

func (*Plan_FieldTerminalPath) WithRawIArrayItemValue

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

func (*Plan_FieldTerminalPath) WithRawIArrayOfValues

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

func (*Plan_FieldTerminalPath) WithRawIValue

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

type Plan_FieldTerminalPathArrayItemValue

type Plan_FieldTerminalPathArrayItemValue struct {
	Plan_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Plan_FieldTerminalPathArrayItemValue) AsResourceLimitsItemValue

func (fpaiv *Plan_FieldTerminalPathArrayItemValue) AsResourceLimitsItemValue() (*common.Allowance, bool)

func (*Plan_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *Plan_FieldTerminalPathArrayItemValue) ContainsValue(source *Plan) bool

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

func (*Plan_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*Plan_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *Plan_FieldTerminalPathArrayItemValue) GetSingle(source *Plan) (interface{}, bool)

func (*Plan_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type Plan_FieldTerminalPathArrayOfValues

type Plan_FieldTerminalPathArrayOfValues struct {
	Plan_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Plan_FieldTerminalPathArrayOfValues) AsBusinessTierArrayOfValues added in v0.10.0

func (fpaov *Plan_FieldTerminalPathArrayOfValues) AsBusinessTierArrayOfValues() ([]iam_iam_common.BusinessTier, bool)

func (*Plan_FieldTerminalPathArrayOfValues) AsDisplayNameArrayOfValues

func (fpaov *Plan_FieldTerminalPathArrayOfValues) AsDisplayNameArrayOfValues() ([]string, bool)

func (*Plan_FieldTerminalPathArrayOfValues) AsMetadataArrayOfValues

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

func (*Plan_FieldTerminalPathArrayOfValues) AsNameArrayOfValues

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

func (*Plan_FieldTerminalPathArrayOfValues) AsPlanLevelArrayOfValues added in v0.10.0

func (fpaov *Plan_FieldTerminalPathArrayOfValues) AsPlanLevelArrayOfValues() ([]Plan_PlanLevel, bool)

func (*Plan_FieldTerminalPathArrayOfValues) AsResourceLimitsArrayOfValues

func (fpaov *Plan_FieldTerminalPathArrayOfValues) AsResourceLimitsArrayOfValues() ([][]*common.Allowance, bool)

func (*Plan_FieldTerminalPathArrayOfValues) AsServiceArrayOfValues

func (fpaov *Plan_FieldTerminalPathArrayOfValues) AsServiceArrayOfValues() ([]*meta_service.Reference, bool)

func (*Plan_FieldTerminalPathArrayOfValues) GetRawValues

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

type Plan_FieldTerminalPathValue

type Plan_FieldTerminalPathValue struct {
	Plan_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Plan_FieldTerminalPathValue) AsBusinessTierValue added in v0.10.0

func (fpv *Plan_FieldTerminalPathValue) AsBusinessTierValue() (iam_iam_common.BusinessTier, bool)

func (*Plan_FieldTerminalPathValue) AsDisplayNameValue

func (fpv *Plan_FieldTerminalPathValue) AsDisplayNameValue() (string, bool)

func (*Plan_FieldTerminalPathValue) AsMetadataValue

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

func (*Plan_FieldTerminalPathValue) AsNameValue

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

func (*Plan_FieldTerminalPathValue) AsPlanLevelValue added in v0.10.0

func (fpv *Plan_FieldTerminalPathValue) AsPlanLevelValue() (Plan_PlanLevel, bool)

func (*Plan_FieldTerminalPathValue) AsResourceLimitsValue

func (fpv *Plan_FieldTerminalPathValue) AsResourceLimitsValue() ([]*common.Allowance, bool)

func (*Plan_FieldTerminalPathValue) AsServiceValue

func (fpv *Plan_FieldTerminalPathValue) AsServiceValue() (*meta_service.Reference, bool)

func (*Plan_FieldTerminalPathValue) CompareWith

func (fpv *Plan_FieldTerminalPathValue) CompareWith(source *Plan) (int, bool)

CompareWith compares value in the 'Plan_FieldTerminalPathValue' with the value under path in 'Plan'.

func (*Plan_FieldTerminalPathValue) CompareWithRaw

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

func (*Plan_FieldTerminalPathValue) GetRawValue

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

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

func (*Plan_FieldTerminalPathValue) SetTo

func (fpv *Plan_FieldTerminalPathValue) SetTo(target **Plan)

SetTo stores value for selected field for object Plan

func (*Plan_FieldTerminalPathValue) SetToRaw

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

type Plan_PlanLevel added in v0.10.0

type Plan_PlanLevel int32

PlanLevel defines entity level for whom plan can be assigned

const (
	Plan_UNDEFINED    Plan_PlanLevel = 0
	Plan_SYSTEM       Plan_PlanLevel = 1
	Plan_ORGANIZATION Plan_PlanLevel = 2
	Plan_PROJECT      Plan_PlanLevel = 3
)

func (Plan_PlanLevel) Descriptor added in v0.10.0

func (Plan_PlanLevel) Descriptor() preflect.EnumDescriptor

func (Plan_PlanLevel) Enum added in v0.10.0

func (x Plan_PlanLevel) Enum() *Plan_PlanLevel

func (Plan_PlanLevel) EnumDescriptor added in v0.10.0

func (Plan_PlanLevel) EnumDescriptor() ([]byte, []int)

Deprecated, Use Plan_PlanLevel.ProtoReflect.Descriptor instead.

func (Plan_PlanLevel) Number added in v0.10.0

func (x Plan_PlanLevel) Number() preflect.EnumNumber

func (Plan_PlanLevel) String added in v0.10.0

func (x Plan_PlanLevel) String() string

func (Plan_PlanLevel) Type added in v0.10.0

type QueryResultChange

type QueryResultChange struct {
	Changes        []*PlanChange
	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 {
	Plans             []*Plan
	PrevPageCursor    *PagerCursor
	NextPageCursor    *PagerCursor
	TotalResultsCount int32
	CurrentOffset     int32
}

func (*QueryResultSnapshot) GetNextPageCursor

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

func (*QueryResultSnapshot) GetPagingInfo added in v0.10.1

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 added in v0.10.1

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, plan *Plan) (*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 added in v0.8.0

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

func (*Reference) GetIUnderlyingParentName added in v0.8.0

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) GetPlan

func (ref *Reference) GetPlan() *Plan

func (*Reference) GetRawResource

func (ref *Reference) GetRawResource() gotenresource.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 *Plan)

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 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 added in v0.9.0

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 added in v0.9.0

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