region

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: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamePattern_Nil = "regions/{region}"
)

Variables

This section is empty.

Functions

func AsAnyCastAccess

func AsAnyCastAccess(access RegionAccess) 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 *Region) 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 []*Region) (out []*Region)

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 Region_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 *Region) bool

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

func AndFilterConditions

func AndFilterConditions(conds ...FilterCondition) FilterCondition

type FilterConditionCompare

type FilterConditionCompare struct {
	Operator filterParser.CompareOperator
	Region_FieldPathValue
}

func (*FilterConditionCompare) And

func (*FilterConditionCompare) ConditionCompare

func (cond *FilterConditionCompare) ConditionCompare()

func (*FilterConditionCompare) Evaluate

func (cond *FilterConditionCompare) Evaluate(res *Region) 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 Region_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 *Region) 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 Region_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 Region_FieldPath

	Value  Region_FieldPathArrayItemValue
	Values []Region_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 *Region) bool

func (*FilterConditionContains) EvaluateRaw

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

func (*FilterConditionContains) GetFieldPath

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

func (*FilterConditionIn) And

func (*FilterConditionIn) ConditionIn

func (cond *FilterConditionIn) ConditionIn()

func (*FilterConditionIn) Evaluate

func (cond *FilterConditionIn) Evaluate(res *Region) 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 Region_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 Region_FieldPath
}

func (*FilterConditionIsNaN) And

func (*FilterConditionIsNaN) ConditionIsNaN

func (cond *FilterConditionIsNaN) ConditionIsNaN()

func (*FilterConditionIsNaN) Evaluate

func (cond *FilterConditionIsNaN) Evaluate(res *Region) 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 Region_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 Region_FieldPath
}

func (*FilterConditionIsNull) And

func (*FilterConditionIsNull) ConditionIsNull

func (cond *FilterConditionIsNull) ConditionIsNull()

func (*FilterConditionIsNull) Evaluate

func (cond *FilterConditionIsNull) Evaluate(res *Region) 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 Region_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 *Region) 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 Region_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 {
	Region_FieldPathArrayOfValues
}

func (*FilterConditionNotIn) And

func (*FilterConditionNotIn) ConditionNotIn

func (cond *FilterConditionNotIn) ConditionNotIn()

func (*FilterConditionNotIn) Evaluate

func (cond *FilterConditionNotIn) Evaluate(res *Region) 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 Region_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      *Region_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           *Region_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 {
	NamePattern
	RegionId string `firestore:"regionId"`
}

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

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) 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 *Region) int

func (*OrderBy) CompareRaw

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

func (*OrderBy) GetFieldMask

func (orderBy *OrderBy) GetFieldMask() *Region_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 RegionList, elem *Region) (RegionList, 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 RegionList)

func (*OrderBy) SortRaw

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

func (*OrderBy) String

func (orderBy *OrderBy) String() string

type OrderByField

type OrderByField struct {
	FieldPath Region_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 *Region) 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 QueryResultChange

type QueryResultChange struct {
	Changes        []*RegionChange
	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 {
	Regions           []*Region
	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, region *Region) (*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) GetRegion

func (ref *Reference) GetRegion() *Region

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 *Region)

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 Region

type Region struct {

	// Name of Region
	// 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-z][a-z0-9\\-]{0,28}[a-z0-9]
	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"`
	// Region title
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty" firestore:"title"`
	// contains filtered or unexported fields
}

Region Resource is an auxiliary resource that provides geographic scope to resources in Goten services, ideally should point to narrow geographic location but Goten is not strict about it. This allows case where in single physical location we have multiple clusters using different virtual networks hosting different deployments. Goten uses regions to aid in global scaling, but otherwise tries to abstract from running hardware focusing on services instead.

func (*Region) Clone

func (o *Region) Clone() *Region

func (*Region) CloneRaw

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

func (*Region) Descriptor

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

Deprecated, Use Region.ProtoReflect.Descriptor instead.

func (*Region) EnsureMetadata

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

func (*Region) GetMetadata

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

func (*Region) GetName

func (m *Region) GetName() *Name

func (*Region) GetRawName

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

func (*Region) GetResourceDescriptor

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

func (*Region) GetTitle

func (m *Region) GetTitle() string

func (*Region) GotenMessage

func (*Region) GotenMessage()

func (*Region) GotenObjectExt

func (o *Region) GotenObjectExt()

func (*Region) GotenValidate

func (obj *Region) GotenValidate() error

func (*Region) MakeDiffFieldMask

func (o *Region) MakeDiffFieldMask(other *Region) *Region_FieldMask

func (*Region) MakeFullFieldMask

func (o *Region) MakeFullFieldMask() *Region_FieldMask

func (*Region) MakeRawDiffFieldMask

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

func (*Region) MakeRawFullFieldMask

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

func (*Region) Marshal

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

func (*Region) MarshalJSON

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

func (*Region) MaybePopulateDefaults

func (r *Region) MaybePopulateDefaults() error

func (*Region) Merge

func (o *Region) Merge(source *Region)

func (*Region) MergeRaw

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

func (*Region) ProtoMessage

func (*Region) ProtoMessage()

func (*Region) ProtoReflect

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

func (*Region) Reset

func (m *Region) Reset()

func (*Region) SetMetadata

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

func (*Region) SetName

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

func (*Region) SetTitle

func (m *Region) SetTitle(fv string)

func (*Region) String

func (m *Region) String() string

func (*Region) Unmarshal

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

func (*Region) UnmarshalJSON

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

type RegionChange

type RegionChange struct {

	// Region change
	//
	// Types that are valid to be assigned to ChangeType:
	//	*RegionChange_Added_
	//	*RegionChange_Modified_
	//	*RegionChange_Current_
	//	*RegionChange_Removed_
	ChangeType isRegionChange_ChangeType `protobuf_oneof:"change_type"`
	// contains filtered or unexported fields
}

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

func (*RegionChange) Descriptor

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

Deprecated, Use RegionChange.ProtoReflect.Descriptor instead.

func (*RegionChange) GetAdded

func (m *RegionChange) GetAdded() *RegionChange_Added

func (*RegionChange) GetChangeType

func (m *RegionChange) GetChangeType() isRegionChange_ChangeType

func (*RegionChange) GetCurrent

func (m *RegionChange) GetCurrent() *RegionChange_Current

func (*RegionChange) GetCurrentViewIndex

func (c *RegionChange) GetCurrentViewIndex() int32

func (*RegionChange) GetModified

func (m *RegionChange) GetModified() *RegionChange_Modified

func (*RegionChange) GetPreviousViewIndex

func (c *RegionChange) GetPreviousViewIndex() int32

func (*RegionChange) GetRawName

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

func (*RegionChange) GetRawResource

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

func (*RegionChange) GetRegion

func (c *RegionChange) GetRegion() *Region

func (*RegionChange) GetRegionName

func (c *RegionChange) GetRegionName() *Name

func (*RegionChange) GetRemoved

func (m *RegionChange) GetRemoved() *RegionChange_Removed

func (*RegionChange) GotenMessage

func (*RegionChange) GotenMessage()

func (*RegionChange) GotenValidate

func (obj *RegionChange) GotenValidate() error

func (*RegionChange) IsAdd

func (c *RegionChange) IsAdd() bool

func (*RegionChange) IsCurrent

func (c *RegionChange) IsCurrent() bool

func (*RegionChange) IsDelete

func (c *RegionChange) IsDelete() bool

func (*RegionChange) IsModify

func (c *RegionChange) IsModify() bool

func (*RegionChange) Marshal

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

func (*RegionChange) MarshalJSON

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

func (*RegionChange) ProtoMessage

func (*RegionChange) ProtoMessage()

func (*RegionChange) ProtoReflect

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

func (*RegionChange) Reset

func (m *RegionChange) Reset()

func (*RegionChange) SetAdded

func (m *RegionChange) SetAdded(fv *RegionChange_Added)

func (*RegionChange) SetAddedRaw

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

func (*RegionChange) SetChangeType

func (m *RegionChange) SetChangeType(ofv isRegionChange_ChangeType)

func (*RegionChange) SetCurrent

func (m *RegionChange) SetCurrent(fv *RegionChange_Current)

func (*RegionChange) SetCurrentRaw

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

func (*RegionChange) SetDeletedRaw

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

func (*RegionChange) SetModified

func (m *RegionChange) SetModified(fv *RegionChange_Modified)

func (*RegionChange) SetModifiedRaw

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

func (*RegionChange) SetRemoved

func (m *RegionChange) SetRemoved(fv *RegionChange_Removed)

func (*RegionChange) String

func (m *RegionChange) String() string

func (*RegionChange) Unmarshal

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

func (*RegionChange) UnmarshalJSON

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

type RegionChangeList

type RegionChangeList []*RegionChange

func (RegionChangeList) At

func (RegionChangeList) Length

func (l RegionChangeList) Length() int

func (RegionChangeList) Set

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

func (RegionChangeList) Slice

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

type RegionChangeMap

type RegionChangeMap map[Name]*RegionChange

func (RegionChangeMap) Delete

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

func (RegionChangeMap) ForEach

func (RegionChangeMap) Get

func (RegionChangeMap) Length

func (m RegionChangeMap) Length() int

func (RegionChangeMap) Set

type RegionChange_Added

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

Region has been added to query view

func (*RegionChange_Added) Descriptor

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

Deprecated, Use RegionChange_Added.ProtoReflect.Descriptor instead.

func (*RegionChange_Added) GetRegion

func (m *RegionChange_Added) GetRegion() *Region

func (*RegionChange_Added) GetViewIndex

func (m *RegionChange_Added) GetViewIndex() int32

func (*RegionChange_Added) GotenMessage

func (*RegionChange_Added) GotenMessage()

func (*RegionChange_Added) GotenValidate

func (obj *RegionChange_Added) GotenValidate() error

func (*RegionChange_Added) Marshal

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

func (*RegionChange_Added) MarshalJSON

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

func (*RegionChange_Added) ProtoMessage

func (*RegionChange_Added) ProtoMessage()

func (*RegionChange_Added) ProtoReflect

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

func (*RegionChange_Added) Reset

func (m *RegionChange_Added) Reset()

func (*RegionChange_Added) SetRegion

func (m *RegionChange_Added) SetRegion(fv *Region)

func (*RegionChange_Added) SetViewIndex

func (m *RegionChange_Added) SetViewIndex(fv int32)

func (*RegionChange_Added) String

func (m *RegionChange_Added) String() string

func (*RegionChange_Added) Unmarshal

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

func (*RegionChange_Added) UnmarshalJSON

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

type RegionChange_Added_

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

type RegionChange_Current

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

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

func (*RegionChange_Current) Descriptor

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

Deprecated, Use RegionChange_Current.ProtoReflect.Descriptor instead.

func (*RegionChange_Current) GetRegion

func (m *RegionChange_Current) GetRegion() *Region

func (*RegionChange_Current) GotenMessage

func (*RegionChange_Current) GotenMessage()

func (*RegionChange_Current) GotenValidate

func (obj *RegionChange_Current) GotenValidate() error

func (*RegionChange_Current) Marshal

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

func (*RegionChange_Current) MarshalJSON

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

func (*RegionChange_Current) ProtoMessage

func (*RegionChange_Current) ProtoMessage()

func (*RegionChange_Current) ProtoReflect

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

func (*RegionChange_Current) Reset

func (m *RegionChange_Current) Reset()

func (*RegionChange_Current) SetRegion

func (m *RegionChange_Current) SetRegion(fv *Region)

func (*RegionChange_Current) String

func (m *RegionChange_Current) String() string

func (*RegionChange_Current) Unmarshal

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

func (*RegionChange_Current) UnmarshalJSON

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

type RegionChange_Current_

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

type RegionChange_Modified

type RegionChange_Modified struct {

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

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

func (*RegionChange_Modified) Descriptor

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

Deprecated, Use RegionChange_Modified.ProtoReflect.Descriptor instead.

func (*RegionChange_Modified) GetFieldMask

func (m *RegionChange_Modified) GetFieldMask() *Region_FieldMask

func (*RegionChange_Modified) GetName

func (m *RegionChange_Modified) GetName() *Name

func (*RegionChange_Modified) GetPreviousViewIndex

func (m *RegionChange_Modified) GetPreviousViewIndex() int32

func (*RegionChange_Modified) GetRegion

func (m *RegionChange_Modified) GetRegion() *Region

func (*RegionChange_Modified) GetViewIndex

func (m *RegionChange_Modified) GetViewIndex() int32

func (*RegionChange_Modified) GotenMessage

func (*RegionChange_Modified) GotenMessage()

func (*RegionChange_Modified) GotenValidate

func (obj *RegionChange_Modified) GotenValidate() error

func (*RegionChange_Modified) Marshal

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

func (*RegionChange_Modified) MarshalJSON

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

func (*RegionChange_Modified) ProtoMessage

func (*RegionChange_Modified) ProtoMessage()

func (*RegionChange_Modified) ProtoReflect

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

func (*RegionChange_Modified) Reset

func (m *RegionChange_Modified) Reset()

func (*RegionChange_Modified) SetFieldMask

func (m *RegionChange_Modified) SetFieldMask(fv *Region_FieldMask)

func (*RegionChange_Modified) SetName

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

func (*RegionChange_Modified) SetPreviousViewIndex

func (m *RegionChange_Modified) SetPreviousViewIndex(fv int32)

func (*RegionChange_Modified) SetRegion

func (m *RegionChange_Modified) SetRegion(fv *Region)

func (*RegionChange_Modified) SetViewIndex

func (m *RegionChange_Modified) SetViewIndex(fv int32)

func (*RegionChange_Modified) String

func (m *RegionChange_Modified) String() string

func (*RegionChange_Modified) Unmarshal

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

func (*RegionChange_Modified) UnmarshalJSON

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

type RegionChange_Modified_

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

type RegionChange_Removed

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

func (*RegionChange_Removed) Descriptor

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

Deprecated, Use RegionChange_Removed.ProtoReflect.Descriptor instead.

func (*RegionChange_Removed) GetName

func (m *RegionChange_Removed) GetName() *Name

func (*RegionChange_Removed) GetViewIndex

func (m *RegionChange_Removed) GetViewIndex() int32

func (*RegionChange_Removed) GotenMessage

func (*RegionChange_Removed) GotenMessage()

func (*RegionChange_Removed) GotenValidate

func (obj *RegionChange_Removed) GotenValidate() error

func (*RegionChange_Removed) Marshal

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

func (*RegionChange_Removed) MarshalJSON

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

func (*RegionChange_Removed) ProtoMessage

func (*RegionChange_Removed) ProtoMessage()

func (*RegionChange_Removed) ProtoReflect

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

func (*RegionChange_Removed) Reset

func (m *RegionChange_Removed) Reset()

func (*RegionChange_Removed) SetName

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

func (*RegionChange_Removed) SetViewIndex

func (m *RegionChange_Removed) SetViewIndex(fv int32)

func (*RegionChange_Removed) String

func (m *RegionChange_Removed) String() string

func (*RegionChange_Removed) Unmarshal

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

func (*RegionChange_Removed) UnmarshalJSON

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

type RegionChange_Removed_

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

type RegionFieldPathBuilder

type RegionFieldPathBuilder struct{}

func NewRegionFieldPathBuilder

func NewRegionFieldPathBuilder() RegionFieldPathBuilder

func (RegionFieldPathBuilder) Metadata

func (RegionFieldPathBuilder) Name

func (RegionFieldPathBuilder) Title

type RegionList

type RegionList []*Region

func (RegionList) Append

func (RegionList) AppendList

func (RegionList) At

func (RegionList) Length

func (l RegionList) Length() int

func (RegionList) Set

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

func (RegionList) Slice

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

type RegionMap

type RegionMap map[Name]*Region

func (RegionMap) Delete

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

func (RegionMap) ForEach

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

func (RegionMap) Get

func (RegionMap) Length

func (m RegionMap) Length() int

func (RegionMap) Set

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

type RegionMapPathSelectorMetadataAnnotations

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

func (RegionMapPathSelectorMetadataAnnotations) FieldPath

func (RegionMapPathSelectorMetadataAnnotations) WithArrayOfValues

func (RegionMapPathSelectorMetadataAnnotations) WithValue

type RegionMapPathSelectorMetadataLabels

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

func (RegionMapPathSelectorMetadataLabels) FieldPath

func (RegionMapPathSelectorMetadataLabels) WithArrayOfValues

func (RegionMapPathSelectorMetadataLabels) WithValue

type RegionMapPathSelectorMetadataShards

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

func (RegionMapPathSelectorMetadataShards) FieldPath

func (RegionMapPathSelectorMetadataShards) WithArrayOfValues

func (RegionMapPathSelectorMetadataShards) WithValue

type RegionNameList

type RegionNameList []*Name

func (RegionNameList) Append

func (RegionNameList) AppendList

func (RegionNameList) At

func (RegionNameList) Length

func (l RegionNameList) Length() int

func (RegionNameList) Set

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

func (RegionNameList) Slice

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

type RegionPathSelectorMetadata

type RegionPathSelectorMetadata struct{}

func (RegionPathSelectorMetadata) Annotations

func (RegionPathSelectorMetadata) CreateTime

func (RegionPathSelectorMetadata) DeleteTime

func (RegionPathSelectorMetadata) FieldPath

func (RegionPathSelectorMetadata) Generation

func (RegionPathSelectorMetadata) Labels

func (RegionPathSelectorMetadata) Lifecycle

func (RegionPathSelectorMetadata) OwnerReferences

func (RegionPathSelectorMetadata) ResourceVersion

func (RegionPathSelectorMetadata) Services

func (RegionPathSelectorMetadata) Shards

func (RegionPathSelectorMetadata) Syncing

func (RegionPathSelectorMetadata) Tags

func (RegionPathSelectorMetadata) UpdateTime

func (RegionPathSelectorMetadata) Uuid

func (RegionPathSelectorMetadata) WithArrayOfValues

func (RegionPathSelectorMetadata) WithSubArrayItemValue

func (RegionPathSelectorMetadata) WithSubArrayOfValues

func (RegionPathSelectorMetadata) WithSubPath

func (RegionPathSelectorMetadata) WithSubValue

func (RegionPathSelectorMetadata) WithValue

type RegionPathSelectorMetadataAnnotations

type RegionPathSelectorMetadataAnnotations struct{}

func (RegionPathSelectorMetadataAnnotations) FieldPath

func (RegionPathSelectorMetadataAnnotations) WithArrayOfValues

func (RegionPathSelectorMetadataAnnotations) WithKey

func (RegionPathSelectorMetadataAnnotations) WithValue

type RegionPathSelectorMetadataCreateTime

type RegionPathSelectorMetadataCreateTime struct{}

func (RegionPathSelectorMetadataCreateTime) FieldPath

func (RegionPathSelectorMetadataCreateTime) WithArrayOfValues

func (RegionPathSelectorMetadataCreateTime) WithValue

type RegionPathSelectorMetadataDeleteTime

type RegionPathSelectorMetadataDeleteTime struct{}

func (RegionPathSelectorMetadataDeleteTime) FieldPath

func (RegionPathSelectorMetadataDeleteTime) WithArrayOfValues

func (RegionPathSelectorMetadataDeleteTime) WithValue

type RegionPathSelectorMetadataGeneration

type RegionPathSelectorMetadataGeneration struct{}

func (RegionPathSelectorMetadataGeneration) FieldPath

func (RegionPathSelectorMetadataGeneration) WithArrayOfValues

func (RegionPathSelectorMetadataGeneration) WithValue

type RegionPathSelectorMetadataLabels

type RegionPathSelectorMetadataLabels struct{}

func (RegionPathSelectorMetadataLabels) FieldPath

func (RegionPathSelectorMetadataLabels) WithArrayOfValues

func (RegionPathSelectorMetadataLabels) WithKey

func (RegionPathSelectorMetadataLabels) WithValue

type RegionPathSelectorMetadataLifecycle

type RegionPathSelectorMetadataLifecycle struct{}

func (RegionPathSelectorMetadataLifecycle) BlockDeletion

func (RegionPathSelectorMetadataLifecycle) FieldPath

func (RegionPathSelectorMetadataLifecycle) State

func (RegionPathSelectorMetadataLifecycle) WithArrayOfValues

func (RegionPathSelectorMetadataLifecycle) WithValue

type RegionPathSelectorMetadataLifecycleBlockDeletion

type RegionPathSelectorMetadataLifecycleBlockDeletion struct{}

func (RegionPathSelectorMetadataLifecycleBlockDeletion) FieldPath

func (RegionPathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues

func (RegionPathSelectorMetadataLifecycleBlockDeletion) WithValue

type RegionPathSelectorMetadataLifecycleState

type RegionPathSelectorMetadataLifecycleState struct{}

func (RegionPathSelectorMetadataLifecycleState) FieldPath

func (RegionPathSelectorMetadataLifecycleState) WithArrayOfValues

func (RegionPathSelectorMetadataLifecycleState) WithValue

type RegionPathSelectorMetadataOwnerReferences

type RegionPathSelectorMetadataOwnerReferences struct{}

func (RegionPathSelectorMetadataOwnerReferences) Controller

func (RegionPathSelectorMetadataOwnerReferences) FieldPath

func (RegionPathSelectorMetadataOwnerReferences) Kind

func (RegionPathSelectorMetadataOwnerReferences) Name

func (RegionPathSelectorMetadataOwnerReferences) Region

func (RegionPathSelectorMetadataOwnerReferences) RequiresOwnerReference

func (RegionPathSelectorMetadataOwnerReferences) Version

func (RegionPathSelectorMetadataOwnerReferences) WithArrayOfValues

func (RegionPathSelectorMetadataOwnerReferences) WithItemValue

func (RegionPathSelectorMetadataOwnerReferences) WithValue

type RegionPathSelectorMetadataOwnerReferencesController

type RegionPathSelectorMetadataOwnerReferencesController struct{}

func (RegionPathSelectorMetadataOwnerReferencesController) FieldPath

func (RegionPathSelectorMetadataOwnerReferencesController) WithArrayOfValues

func (RegionPathSelectorMetadataOwnerReferencesController) WithValue

type RegionPathSelectorMetadataOwnerReferencesKind

type RegionPathSelectorMetadataOwnerReferencesKind struct{}

func (RegionPathSelectorMetadataOwnerReferencesKind) FieldPath

func (RegionPathSelectorMetadataOwnerReferencesKind) WithArrayOfValues

func (RegionPathSelectorMetadataOwnerReferencesKind) WithValue

type RegionPathSelectorMetadataOwnerReferencesName

type RegionPathSelectorMetadataOwnerReferencesName struct{}

func (RegionPathSelectorMetadataOwnerReferencesName) FieldPath

func (RegionPathSelectorMetadataOwnerReferencesName) WithArrayOfValues

func (RegionPathSelectorMetadataOwnerReferencesName) WithValue

type RegionPathSelectorMetadataOwnerReferencesRegion

type RegionPathSelectorMetadataOwnerReferencesRegion struct{}

func (RegionPathSelectorMetadataOwnerReferencesRegion) FieldPath

func (RegionPathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues

func (RegionPathSelectorMetadataOwnerReferencesRegion) WithValue

type RegionPathSelectorMetadataOwnerReferencesRequiresOwnerReference

type RegionPathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{}

func (RegionPathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath

func (RegionPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues

func (RegionPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue

type RegionPathSelectorMetadataOwnerReferencesVersion

type RegionPathSelectorMetadataOwnerReferencesVersion struct{}

func (RegionPathSelectorMetadataOwnerReferencesVersion) FieldPath

func (RegionPathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues

func (RegionPathSelectorMetadataOwnerReferencesVersion) WithValue

type RegionPathSelectorMetadataResourceVersion

type RegionPathSelectorMetadataResourceVersion struct{}

func (RegionPathSelectorMetadataResourceVersion) FieldPath

func (RegionPathSelectorMetadataResourceVersion) WithArrayOfValues

func (RegionPathSelectorMetadataResourceVersion) WithValue

type RegionPathSelectorMetadataServices

type RegionPathSelectorMetadataServices struct{}

func (RegionPathSelectorMetadataServices) AllowedServices

func (RegionPathSelectorMetadataServices) FieldPath

func (RegionPathSelectorMetadataServices) OwningService

func (RegionPathSelectorMetadataServices) WithArrayOfValues

func (RegionPathSelectorMetadataServices) WithValue

type RegionPathSelectorMetadataServicesAllowedServices

type RegionPathSelectorMetadataServicesAllowedServices struct{}

func (RegionPathSelectorMetadataServicesAllowedServices) FieldPath

func (RegionPathSelectorMetadataServicesAllowedServices) WithArrayOfValues

func (RegionPathSelectorMetadataServicesAllowedServices) WithItemValue

func (RegionPathSelectorMetadataServicesAllowedServices) WithValue

type RegionPathSelectorMetadataServicesOwningService

type RegionPathSelectorMetadataServicesOwningService struct{}

func (RegionPathSelectorMetadataServicesOwningService) FieldPath

func (RegionPathSelectorMetadataServicesOwningService) WithArrayOfValues

func (RegionPathSelectorMetadataServicesOwningService) WithValue

type RegionPathSelectorMetadataShards

type RegionPathSelectorMetadataShards struct{}

func (RegionPathSelectorMetadataShards) FieldPath

func (RegionPathSelectorMetadataShards) WithArrayOfValues

func (RegionPathSelectorMetadataShards) WithKey

func (RegionPathSelectorMetadataShards) WithValue

type RegionPathSelectorMetadataSyncing

type RegionPathSelectorMetadataSyncing struct{}

func (RegionPathSelectorMetadataSyncing) FieldPath

func (RegionPathSelectorMetadataSyncing) OwningRegion

func (RegionPathSelectorMetadataSyncing) Regions

func (RegionPathSelectorMetadataSyncing) WithArrayOfValues

func (RegionPathSelectorMetadataSyncing) WithValue

type RegionPathSelectorMetadataSyncingOwningRegion

type RegionPathSelectorMetadataSyncingOwningRegion struct{}

func (RegionPathSelectorMetadataSyncingOwningRegion) FieldPath

func (RegionPathSelectorMetadataSyncingOwningRegion) WithArrayOfValues

func (RegionPathSelectorMetadataSyncingOwningRegion) WithValue

type RegionPathSelectorMetadataSyncingRegions

type RegionPathSelectorMetadataSyncingRegions struct{}

func (RegionPathSelectorMetadataSyncingRegions) FieldPath

func (RegionPathSelectorMetadataSyncingRegions) WithArrayOfValues

func (RegionPathSelectorMetadataSyncingRegions) WithItemValue

func (RegionPathSelectorMetadataSyncingRegions) WithValue

type RegionPathSelectorMetadataTags

type RegionPathSelectorMetadataTags struct{}

func (RegionPathSelectorMetadataTags) FieldPath

func (RegionPathSelectorMetadataTags) WithArrayOfValues

func (RegionPathSelectorMetadataTags) WithItemValue

func (RegionPathSelectorMetadataTags) WithValue

type RegionPathSelectorMetadataUpdateTime

type RegionPathSelectorMetadataUpdateTime struct{}

func (RegionPathSelectorMetadataUpdateTime) FieldPath

func (RegionPathSelectorMetadataUpdateTime) WithArrayOfValues

func (RegionPathSelectorMetadataUpdateTime) WithValue

type RegionPathSelectorMetadataUuid

type RegionPathSelectorMetadataUuid struct{}

func (RegionPathSelectorMetadataUuid) FieldPath

func (RegionPathSelectorMetadataUuid) WithArrayOfValues

func (RegionPathSelectorMetadataUuid) WithValue

type RegionPathSelectorName

type RegionPathSelectorName struct{}

func (RegionPathSelectorName) FieldPath

func (RegionPathSelectorName) WithArrayOfValues

func (s RegionPathSelectorName) WithArrayOfValues(values []*Name) *Region_FieldTerminalPathArrayOfValues

func (RegionPathSelectorName) WithValue

type RegionPathSelectorTitle

type RegionPathSelectorTitle struct{}

func (RegionPathSelectorTitle) FieldPath

func (RegionPathSelectorTitle) WithArrayOfValues

func (RegionPathSelectorTitle) WithValue

type RegionReferenceList

type RegionReferenceList []*Reference

func (RegionReferenceList) Append

func (RegionReferenceList) AppendList

func (RegionReferenceList) At

func (RegionReferenceList) Length

func (l RegionReferenceList) Length() int

func (RegionReferenceList) Set

func (RegionReferenceList) Slice

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

type Region_FieldMask

type Region_FieldMask struct {
	Paths []Region_FieldPath
}

func FullRegion_FieldMask

func FullRegion_FieldMask() *Region_FieldMask

func ResourceViewFieldMask

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

func (*Region_FieldMask) AppendPath

func (fieldMask *Region_FieldMask) AppendPath(path Region_FieldPath)

func (*Region_FieldMask) AppendRawPath

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

func (*Region_FieldMask) DecodeFirestore

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

func (*Region_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*Region_FieldMask) FilterInputFields

func (fieldMask *Region_FieldMask) FilterInputFields() *Region_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Region_FieldMask) FromProtoFieldMask

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

func (*Region_FieldMask) GetPaths

func (fieldMask *Region_FieldMask) GetPaths() []Region_FieldPath

func (*Region_FieldMask) GetRawPaths

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

func (*Region_FieldMask) IsFull

func (fieldMask *Region_FieldMask) IsFull() bool

func (Region_FieldMask) Marshal

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

implement methods required by customType

func (Region_FieldMask) MarshalJSON

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

func (*Region_FieldMask) PathsCount

func (fieldMask *Region_FieldMask) PathsCount() int

func (*Region_FieldMask) Project

func (fieldMask *Region_FieldMask) Project(source *Region) *Region

func (*Region_FieldMask) ProjectRaw

func (*Region_FieldMask) ProtoMessage

func (fieldMask *Region_FieldMask) ProtoMessage()

func (*Region_FieldMask) ProtoReflect

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

func (*Region_FieldMask) Reset

func (fieldMask *Region_FieldMask) Reset()

func (*Region_FieldMask) Set

func (fieldMask *Region_FieldMask) Set(target, source *Region)

func (*Region_FieldMask) SetFromCliFlag

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

func (*Region_FieldMask) SetRaw

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

func (*Region_FieldMask) Size

func (fieldMask *Region_FieldMask) Size() int

func (*Region_FieldMask) String

func (fieldMask *Region_FieldMask) String() string

func (*Region_FieldMask) Subtract

func (fieldMask *Region_FieldMask) Subtract(other *Region_FieldMask) *Region_FieldMask

func (*Region_FieldMask) SubtractRaw

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

func (*Region_FieldMask) ToProtoFieldMask

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

ToFieldMask is used for proto conversions

func (*Region_FieldMask) Unmarshal

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

func (*Region_FieldMask) UnmarshalJSON

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

type Region_FieldPath

type Region_FieldPath interface {
	gotenobject.FieldPath
	Selector() Region_FieldPathSelector
	Get(source *Region) []interface{}
	GetSingle(source *Region) (interface{}, bool)
	ClearValue(item *Region)

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

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

func BuildRegion_FieldPath

func BuildRegion_FieldPath(fp gotenobject.RawFieldPath) (Region_FieldPath, error)

func MustParseRegion_FieldPath

func MustParseRegion_FieldPath(rawField string) Region_FieldPath

func ParseRegion_FieldPath

func ParseRegion_FieldPath(rawField string) (Region_FieldPath, error)

type Region_FieldPathArrayItemValue

type Region_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	Region_FieldPath
	ContainsValue(*Region) bool
}

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

func MustParseRegion_FieldPathArrayItemValue

func MustParseRegion_FieldPathArrayItemValue(pathStr, valueStr string) Region_FieldPathArrayItemValue

func ParseRegion_FieldPathArrayItemValue

func ParseRegion_FieldPathArrayItemValue(pathStr, valueStr string) (Region_FieldPathArrayItemValue, error)

ParseRegion_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type Region_FieldPathArrayOfValues

type Region_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	Region_FieldPath
}

Region_FieldPathArrayOfValues allows storing slice of values for Region fields according to their type

func MustParseRegion_FieldPathArrayOfValues

func MustParseRegion_FieldPathArrayOfValues(pathStr, valuesStr string) Region_FieldPathArrayOfValues

func ParseRegion_FieldPathArrayOfValues

func ParseRegion_FieldPathArrayOfValues(pathStr, valuesStr string) (Region_FieldPathArrayOfValues, error)

type Region_FieldPathSelector

type Region_FieldPathSelector int32
const (
	Region_FieldPathSelectorName     Region_FieldPathSelector = 0
	Region_FieldPathSelectorMetadata Region_FieldPathSelector = 1
	Region_FieldPathSelectorTitle    Region_FieldPathSelector = 2
)

func (Region_FieldPathSelector) String

func (s Region_FieldPathSelector) String() string

type Region_FieldPathValue

type Region_FieldPathValue interface {
	Region_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Region)
	CompareWith(*Region) (cmp int, comparable bool)
}

Region_FieldPathValue allows storing values for Region fields according to their type

func MustParseRegion_FieldPathValue

func MustParseRegion_FieldPathValue(pathStr, valueStr string) Region_FieldPathValue

func ParseRegion_FieldPathValue

func ParseRegion_FieldPathValue(pathStr, valueStr string) (Region_FieldPathValue, error)

type Region_FieldSubPath

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

func (*Region_FieldSubPath) AsMetadataSubPath

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

func (*Region_FieldSubPath) ClearValue

func (fps *Region_FieldSubPath) ClearValue(item *Region)

func (*Region_FieldSubPath) ClearValueRaw

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

func (*Region_FieldSubPath) Get

func (fps *Region_FieldSubPath) Get(source *Region) (values []interface{})

Get returns all values pointed by selected field from source Region

func (*Region_FieldSubPath) GetDefault

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

GetDefault returns a default value of the field type

func (*Region_FieldSubPath) GetRaw

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

func (*Region_FieldSubPath) GetSingle

func (fps *Region_FieldSubPath) GetSingle(source *Region) (interface{}, bool)

GetSingle returns value of selected field from source Region

func (*Region_FieldSubPath) GetSingleRaw

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

func (*Region_FieldSubPath) IsLeaf

func (fps *Region_FieldSubPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Region_FieldSubPath) JSONString

func (fps *Region_FieldSubPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Region_FieldSubPath) Selector

func (*Region_FieldSubPath) SplitIntoTerminalIPaths

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

func (*Region_FieldSubPath) String

func (fps *Region_FieldSubPath) String() string

String returns path representation in proto convention

func (*Region_FieldSubPath) WithIArrayItemValue

func (fps *Region_FieldSubPath) WithIArrayItemValue(value interface{}) Region_FieldPathArrayItemValue

func (*Region_FieldSubPath) WithIArrayOfValues

func (fps *Region_FieldSubPath) WithIArrayOfValues(values interface{}) Region_FieldPathArrayOfValues

func (*Region_FieldSubPath) WithIValue

func (fps *Region_FieldSubPath) WithIValue(value interface{}) Region_FieldPathValue

func (*Region_FieldSubPath) WithRawIArrayItemValue

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

func (*Region_FieldSubPath) WithRawIArrayOfValues

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

func (*Region_FieldSubPath) WithRawIValue

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

type Region_FieldSubPathArrayItemValue

type Region_FieldSubPathArrayItemValue struct {
	Region_FieldPath
	// contains filtered or unexported fields
}

func (*Region_FieldSubPathArrayItemValue) AsMetadataPathItemValue

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

func (*Region_FieldSubPathArrayItemValue) ContainsValue

func (fpaivs *Region_FieldSubPathArrayItemValue) ContainsValue(source *Region) bool

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

func (*Region_FieldSubPathArrayItemValue) GetRawItemValue

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

GetRawValue returns stored array item value

type Region_FieldSubPathArrayOfValues

type Region_FieldSubPathArrayOfValues struct {
	Region_FieldPath
	// contains filtered or unexported fields
}

func (*Region_FieldSubPathArrayOfValues) AsMetadataPathArrayOfValues

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

func (*Region_FieldSubPathArrayOfValues) GetRawValues

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

type Region_FieldSubPathValue

type Region_FieldSubPathValue struct {
	Region_FieldPath
	// contains filtered or unexported fields
}

func (*Region_FieldSubPathValue) AsMetadataPathValue

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

func (*Region_FieldSubPathValue) CompareWith

func (fpvs *Region_FieldSubPathValue) CompareWith(source *Region) (int, bool)

func (*Region_FieldSubPathValue) CompareWithRaw

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

func (*Region_FieldSubPathValue) GetRawValue

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

func (*Region_FieldSubPathValue) SetTo

func (fpvs *Region_FieldSubPathValue) SetTo(target **Region)

func (*Region_FieldSubPathValue) SetToRaw

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

type Region_FieldTerminalPath

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

func (*Region_FieldTerminalPath) ClearValue

func (fp *Region_FieldTerminalPath) ClearValue(item *Region)

func (*Region_FieldTerminalPath) ClearValueRaw

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

func (*Region_FieldTerminalPath) Get

func (fp *Region_FieldTerminalPath) Get(source *Region) (values []interface{})

Get returns all values pointed by specific field from source Region

func (*Region_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*Region_FieldTerminalPath) GetRaw

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

func (*Region_FieldTerminalPath) GetSingle

func (fp *Region_FieldTerminalPath) GetSingle(source *Region) (interface{}, bool)

GetSingle returns value pointed by specific field of from source Region

func (*Region_FieldTerminalPath) GetSingleRaw

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

func (*Region_FieldTerminalPath) IsLeaf

func (fp *Region_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Region_FieldTerminalPath) JSONString

func (fp *Region_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Region_FieldTerminalPath) Selector

func (*Region_FieldTerminalPath) SplitIntoTerminalIPaths

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

func (*Region_FieldTerminalPath) String

func (fp *Region_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*Region_FieldTerminalPath) WithIArrayItemValue

func (fp *Region_FieldTerminalPath) WithIArrayItemValue(value interface{}) Region_FieldPathArrayItemValue

func (*Region_FieldTerminalPath) WithIArrayOfValues

func (fp *Region_FieldTerminalPath) WithIArrayOfValues(values interface{}) Region_FieldPathArrayOfValues

func (*Region_FieldTerminalPath) WithIValue

func (fp *Region_FieldTerminalPath) WithIValue(value interface{}) Region_FieldPathValue

func (*Region_FieldTerminalPath) WithRawIArrayItemValue

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

func (*Region_FieldTerminalPath) WithRawIArrayOfValues

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

func (*Region_FieldTerminalPath) WithRawIValue

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

type Region_FieldTerminalPathArrayItemValue

type Region_FieldTerminalPathArrayItemValue struct {
	Region_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Region_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *Region_FieldTerminalPathArrayItemValue) ContainsValue(source *Region) bool

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

func (*Region_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*Region_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *Region_FieldTerminalPathArrayItemValue) GetSingle(source *Region) (interface{}, bool)

func (*Region_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type Region_FieldTerminalPathArrayOfValues

type Region_FieldTerminalPathArrayOfValues struct {
	Region_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Region_FieldTerminalPathArrayOfValues) AsMetadataArrayOfValues

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

func (*Region_FieldTerminalPathArrayOfValues) AsNameArrayOfValues

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

func (*Region_FieldTerminalPathArrayOfValues) AsTitleArrayOfValues

func (fpaov *Region_FieldTerminalPathArrayOfValues) AsTitleArrayOfValues() ([]string, bool)

func (*Region_FieldTerminalPathArrayOfValues) GetRawValues

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

type Region_FieldTerminalPathValue

type Region_FieldTerminalPathValue struct {
	Region_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Region_FieldTerminalPathValue) AsMetadataValue

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

func (*Region_FieldTerminalPathValue) AsNameValue

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

func (*Region_FieldTerminalPathValue) AsTitleValue

func (fpv *Region_FieldTerminalPathValue) AsTitleValue() (string, bool)

func (*Region_FieldTerminalPathValue) CompareWith

func (fpv *Region_FieldTerminalPathValue) CompareWith(source *Region) (int, bool)

CompareWith compares value in the 'Region_FieldTerminalPathValue' with the value under path in 'Region'.

func (*Region_FieldTerminalPathValue) CompareWithRaw

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

func (*Region_FieldTerminalPathValue) GetRawValue

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

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

func (*Region_FieldTerminalPathValue) SetTo

func (fpv *Region_FieldTerminalPathValue) SetTo(target **Region)

SetTo stores value for selected field for object Region

func (*Region_FieldTerminalPathValue) SetToRaw

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

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