service

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 41 Imported by: 29

Documentation

Index

Constants

View Source
const (
	NamePattern_Nil = "services/{service}"
)

Variables

This section is empty.

Functions

func AsAnyCastAccess

func AsAnyCastAccess(access ServiceAccess) gotenresource.Access

Types

type Descriptor

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

func GetDescriptor

func GetDescriptor() *Descriptor

func (*Descriptor) GetNameDescriptor

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

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

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

func (*Descriptor) NewResourceFilter added in v0.4.16

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

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

func (d *Descriptor) NewSearchQueryResultSnapshot() gotenresource.SearchQueryResultSnapshot

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)

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

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 Service_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 *Service) bool

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

func AndFilterConditions

func AndFilterConditions(conds ...FilterCondition) FilterCondition

type FilterConditionCompare

type FilterConditionCompare struct {
	Operator filterParser.CompareOperator
	Service_FieldPathValue
}

func (*FilterConditionCompare) And

func (*FilterConditionCompare) ConditionCompare

func (cond *FilterConditionCompare) ConditionCompare()

func (*FilterConditionCompare) Evaluate

func (cond *FilterConditionCompare) Evaluate(res *Service) 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 Service_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 *Service) 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 Service_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 Service_FieldPath

	Value  Service_FieldPathArrayItemValue
	Values []Service_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 *Service) bool

func (*FilterConditionContains) EvaluateRaw

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

func (*FilterConditionContains) GetFieldPath

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

func (*FilterConditionIn) And

func (*FilterConditionIn) ConditionIn

func (cond *FilterConditionIn) ConditionIn()

func (*FilterConditionIn) Evaluate

func (cond *FilterConditionIn) Evaluate(res *Service) 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 Service_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 Service_FieldPath
}

func (*FilterConditionIsNaN) And

func (*FilterConditionIsNaN) ConditionIsNaN

func (cond *FilterConditionIsNaN) ConditionIsNaN()

func (*FilterConditionIsNaN) Evaluate

func (cond *FilterConditionIsNaN) Evaluate(res *Service) 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 Service_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 Service_FieldPath
}

func (*FilterConditionIsNull) And

func (*FilterConditionIsNull) ConditionIsNull

func (cond *FilterConditionIsNull) ConditionIsNull()

func (*FilterConditionIsNull) Evaluate

func (cond *FilterConditionIsNull) Evaluate(res *Service) 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 Service_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 *Service) 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 Service_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 {
	Service_FieldPathArrayOfValues
}

func (*FilterConditionNotIn) And

func (*FilterConditionNotIn) ConditionNotIn

func (cond *FilterConditionNotIn) ConditionNotIn()

func (*FilterConditionNotIn) Evaluate

func (cond *FilterConditionNotIn) Evaluate(res *Service) 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 Service_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      *Service_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   *Service_FieldMask
}

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

func (q *ListQuery) String() string

type Name

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

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

func (*OrderBy) CompareRaw

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

func (*OrderBy) GetFieldMask

func (orderBy *OrderBy) GetFieldMask() *Service_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 ServiceList, elem *Service) (ServiceList, 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 ServiceList)

func (*OrderBy) SortRaw

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

func (*OrderBy) String

func (orderBy *OrderBy) String() string

type OrderByField

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

type QueryResultChange struct {
	Changes        []*ServiceChange
	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 {
	Services       []*Service
	PrevPageCursor *PagerCursor
	NextPageCursor *PagerCursor
}

func (*QueryResultSnapshot) GetNextPageCursor

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

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) 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, service *Service) (*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) 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) GetService

func (ref *Reference) GetService() *Service

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

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 Service

type Service struct {

	// Name of Service - it has form of service domain, for example
	// devices.edgelq.com, so full reference name would be like
	// services/devices.edgelq.com
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// Display name, for example "Devices" - CamelVersion
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty" firestore:"displayName"`
	// Current version of the service, for example "v1alpha2"
	CurrentVersion string `` /* 130-byte string literal not displayed */
	// All version in order from newest (index 0) to oldest
	AllVersions []string `protobuf:"bytes,5,rep,name=all_versions,json=allVersions,proto3" json:"all_versions,omitempty" firestore:"allVersions"`
	// Metadata
	Metadata *ntt_meta.Meta `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty" firestore:"metadata"`
	// contains filtered or unexported fields
}

Service Resource

func (*Service) Clone

func (o *Service) Clone() *Service

func (*Service) CloneRaw

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

func (*Service) Descriptor

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

Deprecated, Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetAllVersions added in v0.5.1

func (m *Service) GetAllVersions() []string

func (*Service) GetCurrentVersion added in v0.5.1

func (m *Service) GetCurrentVersion() string

func (*Service) GetDisplayName added in v0.5.1

func (m *Service) GetDisplayName() string

func (*Service) GetMetadata

func (m *Service) GetMetadata() *ntt_meta.Meta

func (*Service) GetName

func (m *Service) GetName() *Name

func (*Service) GetRawName

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

func (*Service) GetResourceDescriptor

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

func (*Service) GotenMessage

func (*Service) GotenMessage()

func (*Service) GotenObjectExt

func (o *Service) GotenObjectExt()

func (*Service) GotenValidate

func (obj *Service) GotenValidate() error

func (*Service) MakeDiffFieldMask

func (o *Service) MakeDiffFieldMask(other *Service) *Service_FieldMask

func (*Service) MakeFullFieldMask

func (o *Service) MakeFullFieldMask() *Service_FieldMask

func (*Service) MakeRawDiffFieldMask

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

func (*Service) MakeRawFullFieldMask

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

func (*Service) Marshal

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

func (*Service) MarshalJSON

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

func (*Service) MaybePopulateDefaults

func (r *Service) MaybePopulateDefaults() error

func (*Service) Merge

func (o *Service) Merge(source *Service)

func (*Service) MergeRaw

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

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (m *Service) Reset()

func (*Service) SetAllVersions added in v0.5.1

func (m *Service) SetAllVersions(fv []string)

func (*Service) SetCurrentVersion added in v0.5.1

func (m *Service) SetCurrentVersion(fv string)

func (*Service) SetDisplayName added in v0.5.1

func (m *Service) SetDisplayName(fv string)

func (*Service) SetMetadata

func (m *Service) SetMetadata(fv *ntt_meta.Meta)

func (*Service) SetName

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

func (*Service) String

func (m *Service) String() string

func (*Service) Unmarshal

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

func (*Service) UnmarshalJSON

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

type ServiceAccess

type ServiceAccess interface {
	GetService(context.Context, *GetQuery) (*Service, error)
	BatchGetServices(context.Context, []*Reference, ...gotenresource.BatchGetOption) error
	QueryServices(context.Context, *ListQuery) (*QueryResultSnapshot, error)
	WatchService(context.Context, *GetQuery, func(*ServiceChange) error) error
	WatchServices(context.Context, *WatchQuery, func(*QueryResultChange) error) error
	SaveService(context.Context, *Service, ...gotenresource.SaveOption) error
	DeleteService(context.Context, *Reference, ...gotenresource.DeleteOption) error
}

type ServiceChange

type ServiceChange struct {

	// Service change
	//
	// Types that are valid to be assigned to ChangeType:
	//	*ServiceChange_Added_
	//	*ServiceChange_Modified_
	//	*ServiceChange_Current_
	//	*ServiceChange_Removed_
	ChangeType isServiceChange_ChangeType `protobuf_oneof:"change_type"`
	// contains filtered or unexported fields
}

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

func (*ServiceChange) Descriptor

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

Deprecated, Use ServiceChange.ProtoReflect.Descriptor instead.

func (*ServiceChange) GetAdded

func (m *ServiceChange) GetAdded() *ServiceChange_Added

func (*ServiceChange) GetChangeType

func (m *ServiceChange) GetChangeType() isServiceChange_ChangeType

func (*ServiceChange) GetCurrent

func (m *ServiceChange) GetCurrent() *ServiceChange_Current

func (*ServiceChange) GetCurrentViewIndex

func (c *ServiceChange) GetCurrentViewIndex() int32

func (*ServiceChange) GetModified

func (m *ServiceChange) GetModified() *ServiceChange_Modified

func (*ServiceChange) GetPreviousViewIndex

func (c *ServiceChange) GetPreviousViewIndex() int32

func (*ServiceChange) GetRawName

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

func (*ServiceChange) GetRawResource added in v0.5.1

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

func (*ServiceChange) GetRemoved

func (m *ServiceChange) GetRemoved() *ServiceChange_Removed

func (*ServiceChange) GetService

func (c *ServiceChange) GetService() *Service

func (*ServiceChange) GetServiceName

func (c *ServiceChange) GetServiceName() *Name

func (*ServiceChange) GotenMessage

func (*ServiceChange) GotenMessage()

func (*ServiceChange) GotenValidate

func (obj *ServiceChange) GotenValidate() error

func (*ServiceChange) IsAdd

func (c *ServiceChange) IsAdd() bool

func (*ServiceChange) IsCurrent

func (c *ServiceChange) IsCurrent() bool

func (*ServiceChange) IsDelete

func (c *ServiceChange) IsDelete() bool

func (*ServiceChange) IsModify

func (c *ServiceChange) IsModify() bool

func (*ServiceChange) Marshal

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

func (*ServiceChange) MarshalJSON

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

func (*ServiceChange) ProtoMessage

func (*ServiceChange) ProtoMessage()

func (*ServiceChange) ProtoReflect

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

func (*ServiceChange) Reset

func (m *ServiceChange) Reset()

func (*ServiceChange) SetAdded

func (m *ServiceChange) SetAdded(fv *ServiceChange_Added)

func (*ServiceChange) SetAddedRaw

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

func (*ServiceChange) SetChangeType

func (m *ServiceChange) SetChangeType(ofv isServiceChange_ChangeType)

func (*ServiceChange) SetCurrent

func (m *ServiceChange) SetCurrent(fv *ServiceChange_Current)

func (*ServiceChange) SetCurrentRaw

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

func (*ServiceChange) SetDeletedRaw

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

func (*ServiceChange) SetModified

func (m *ServiceChange) SetModified(fv *ServiceChange_Modified)

func (*ServiceChange) SetModifiedRaw

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

func (*ServiceChange) SetRemoved

func (m *ServiceChange) SetRemoved(fv *ServiceChange_Removed)

func (*ServiceChange) String

func (m *ServiceChange) String() string

func (*ServiceChange) Unmarshal

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

func (*ServiceChange) UnmarshalJSON

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

type ServiceChangeList

type ServiceChangeList []*ServiceChange

func (ServiceChangeList) At

func (ServiceChangeList) Length

func (l ServiceChangeList) Length() int

func (ServiceChangeList) Set

func (ServiceChangeList) Slice

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

type ServiceChangeMap

type ServiceChangeMap map[Name]*ServiceChange

func (ServiceChangeMap) Delete

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

func (ServiceChangeMap) ForEach

func (ServiceChangeMap) Get

func (ServiceChangeMap) Length

func (m ServiceChangeMap) Length() int

func (ServiceChangeMap) Set

type ServiceChange_Added

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

Service has been added to query view

func (*ServiceChange_Added) Descriptor

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

Deprecated, Use ServiceChange_Added.ProtoReflect.Descriptor instead.

func (*ServiceChange_Added) GetService

func (m *ServiceChange_Added) GetService() *Service

func (*ServiceChange_Added) GetViewIndex

func (m *ServiceChange_Added) GetViewIndex() int32

func (*ServiceChange_Added) GotenMessage

func (*ServiceChange_Added) GotenMessage()

func (*ServiceChange_Added) GotenValidate

func (obj *ServiceChange_Added) GotenValidate() error

func (*ServiceChange_Added) Marshal

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

func (*ServiceChange_Added) MarshalJSON

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

func (*ServiceChange_Added) ProtoMessage

func (*ServiceChange_Added) ProtoMessage()

func (*ServiceChange_Added) ProtoReflect

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

func (*ServiceChange_Added) Reset

func (m *ServiceChange_Added) Reset()

func (*ServiceChange_Added) SetService

func (m *ServiceChange_Added) SetService(fv *Service)

func (*ServiceChange_Added) SetViewIndex

func (m *ServiceChange_Added) SetViewIndex(fv int32)

func (*ServiceChange_Added) String

func (m *ServiceChange_Added) String() string

func (*ServiceChange_Added) Unmarshal

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

func (*ServiceChange_Added) UnmarshalJSON

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

type ServiceChange_Added_

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

type ServiceChange_Current

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

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

func (*ServiceChange_Current) Descriptor

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

Deprecated, Use ServiceChange_Current.ProtoReflect.Descriptor instead.

func (*ServiceChange_Current) GetService

func (m *ServiceChange_Current) GetService() *Service

func (*ServiceChange_Current) GotenMessage

func (*ServiceChange_Current) GotenMessage()

func (*ServiceChange_Current) GotenValidate

func (obj *ServiceChange_Current) GotenValidate() error

func (*ServiceChange_Current) Marshal

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

func (*ServiceChange_Current) MarshalJSON

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

func (*ServiceChange_Current) ProtoMessage

func (*ServiceChange_Current) ProtoMessage()

func (*ServiceChange_Current) ProtoReflect

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

func (*ServiceChange_Current) Reset

func (m *ServiceChange_Current) Reset()

func (*ServiceChange_Current) SetService

func (m *ServiceChange_Current) SetService(fv *Service)

func (*ServiceChange_Current) String

func (m *ServiceChange_Current) String() string

func (*ServiceChange_Current) Unmarshal

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

func (*ServiceChange_Current) UnmarshalJSON

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

type ServiceChange_Current_

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

type ServiceChange_Modified

type ServiceChange_Modified struct {

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

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

func (*ServiceChange_Modified) Descriptor

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

Deprecated, Use ServiceChange_Modified.ProtoReflect.Descriptor instead.

func (*ServiceChange_Modified) GetFieldMask

func (m *ServiceChange_Modified) GetFieldMask() *Service_FieldMask

func (*ServiceChange_Modified) GetName

func (m *ServiceChange_Modified) GetName() *Name

func (*ServiceChange_Modified) GetPreviousViewIndex

func (m *ServiceChange_Modified) GetPreviousViewIndex() int32

func (*ServiceChange_Modified) GetService

func (m *ServiceChange_Modified) GetService() *Service

func (*ServiceChange_Modified) GetViewIndex

func (m *ServiceChange_Modified) GetViewIndex() int32

func (*ServiceChange_Modified) GotenMessage

func (*ServiceChange_Modified) GotenMessage()

func (*ServiceChange_Modified) GotenValidate

func (obj *ServiceChange_Modified) GotenValidate() error

func (*ServiceChange_Modified) Marshal

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

func (*ServiceChange_Modified) MarshalJSON

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

func (*ServiceChange_Modified) ProtoMessage

func (*ServiceChange_Modified) ProtoMessage()

func (*ServiceChange_Modified) ProtoReflect

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

func (*ServiceChange_Modified) Reset

func (m *ServiceChange_Modified) Reset()

func (*ServiceChange_Modified) SetFieldMask

func (m *ServiceChange_Modified) SetFieldMask(fv *Service_FieldMask)

func (*ServiceChange_Modified) SetName

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

func (*ServiceChange_Modified) SetPreviousViewIndex

func (m *ServiceChange_Modified) SetPreviousViewIndex(fv int32)

func (*ServiceChange_Modified) SetService

func (m *ServiceChange_Modified) SetService(fv *Service)

func (*ServiceChange_Modified) SetViewIndex

func (m *ServiceChange_Modified) SetViewIndex(fv int32)

func (*ServiceChange_Modified) String

func (m *ServiceChange_Modified) String() string

func (*ServiceChange_Modified) Unmarshal

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

func (*ServiceChange_Modified) UnmarshalJSON

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

type ServiceChange_Modified_

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

type ServiceChange_Removed

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

func (*ServiceChange_Removed) Descriptor

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

Deprecated, Use ServiceChange_Removed.ProtoReflect.Descriptor instead.

func (*ServiceChange_Removed) GetName

func (m *ServiceChange_Removed) GetName() *Name

func (*ServiceChange_Removed) GetViewIndex

func (m *ServiceChange_Removed) GetViewIndex() int32

func (*ServiceChange_Removed) GotenMessage

func (*ServiceChange_Removed) GotenMessage()

func (*ServiceChange_Removed) GotenValidate

func (obj *ServiceChange_Removed) GotenValidate() error

func (*ServiceChange_Removed) Marshal

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

func (*ServiceChange_Removed) MarshalJSON

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

func (*ServiceChange_Removed) ProtoMessage

func (*ServiceChange_Removed) ProtoMessage()

func (*ServiceChange_Removed) ProtoReflect

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

func (*ServiceChange_Removed) Reset

func (m *ServiceChange_Removed) Reset()

func (*ServiceChange_Removed) SetName

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

func (*ServiceChange_Removed) SetViewIndex

func (m *ServiceChange_Removed) SetViewIndex(fv int32)

func (*ServiceChange_Removed) String

func (m *ServiceChange_Removed) String() string

func (*ServiceChange_Removed) Unmarshal

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

func (*ServiceChange_Removed) UnmarshalJSON

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

type ServiceChange_Removed_

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

type ServiceFieldPathBuilder

type ServiceFieldPathBuilder struct{}

func NewServiceFieldPathBuilder

func NewServiceFieldPathBuilder() ServiceFieldPathBuilder

func (ServiceFieldPathBuilder) AllVersions added in v0.5.1

func (ServiceFieldPathBuilder) CurrentVersion added in v0.5.1

func (ServiceFieldPathBuilder) DisplayName added in v0.5.1

func (ServiceFieldPathBuilder) Metadata

func (ServiceFieldPathBuilder) Name

type ServiceList

type ServiceList []*Service

func (ServiceList) Append

func (ServiceList) AppendList

func (ServiceList) At

func (ServiceList) Length

func (l ServiceList) Length() int

func (ServiceList) Set

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

func (ServiceList) Slice

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

type ServiceMap

type ServiceMap map[Name]*Service

func (ServiceMap) Delete

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

func (ServiceMap) ForEach

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

func (ServiceMap) Get

func (ServiceMap) Length

func (m ServiceMap) Length() int

func (ServiceMap) Set

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

type ServiceMapPathSelectorMetadataAnnotations

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

func (ServiceMapPathSelectorMetadataAnnotations) FieldPath

func (ServiceMapPathSelectorMetadataAnnotations) WithArrayOfValues

func (ServiceMapPathSelectorMetadataAnnotations) WithValue

type ServiceMapPathSelectorMetadataLabels

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

func (ServiceMapPathSelectorMetadataLabels) FieldPath

func (ServiceMapPathSelectorMetadataLabels) WithArrayOfValues

func (ServiceMapPathSelectorMetadataLabels) WithValue

type ServiceMapPathSelectorMetadataShards

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

func (ServiceMapPathSelectorMetadataShards) FieldPath

func (ServiceMapPathSelectorMetadataShards) WithArrayOfValues

func (ServiceMapPathSelectorMetadataShards) WithValue

type ServiceNameList

type ServiceNameList []*Name

func (ServiceNameList) Append

func (ServiceNameList) AppendList

func (ServiceNameList) At

func (ServiceNameList) Length

func (l ServiceNameList) Length() int

func (ServiceNameList) Set

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

func (ServiceNameList) Slice

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

type ServicePathSelectorAllVersions added in v0.5.1

type ServicePathSelectorAllVersions struct{}

func (ServicePathSelectorAllVersions) FieldPath added in v0.5.1

func (ServicePathSelectorAllVersions) WithArrayOfValues added in v0.5.1

func (ServicePathSelectorAllVersions) WithItemValue added in v0.5.1

func (ServicePathSelectorAllVersions) WithValue added in v0.5.1

type ServicePathSelectorCurrentVersion added in v0.5.1

type ServicePathSelectorCurrentVersion struct{}

func (ServicePathSelectorCurrentVersion) FieldPath added in v0.5.1

func (ServicePathSelectorCurrentVersion) WithArrayOfValues added in v0.5.1

func (ServicePathSelectorCurrentVersion) WithValue added in v0.5.1

type ServicePathSelectorDisplayName added in v0.5.1

type ServicePathSelectorDisplayName struct{}

func (ServicePathSelectorDisplayName) FieldPath added in v0.5.1

func (ServicePathSelectorDisplayName) WithArrayOfValues added in v0.5.1

func (ServicePathSelectorDisplayName) WithValue added in v0.5.1

type ServicePathSelectorMetadata

type ServicePathSelectorMetadata struct{}

func (ServicePathSelectorMetadata) Annotations

func (ServicePathSelectorMetadata) CreateTime

func (ServicePathSelectorMetadata) DeleteTime added in v0.8.0

func (ServicePathSelectorMetadata) FieldPath

func (ServicePathSelectorMetadata) Generation

func (ServicePathSelectorMetadata) Labels

func (ServicePathSelectorMetadata) Lifecycle added in v0.8.0

func (ServicePathSelectorMetadata) OwnerReferences

func (ServicePathSelectorMetadata) ResourceVersion

func (ServicePathSelectorMetadata) Shards

func (ServicePathSelectorMetadata) Syncing

func (ServicePathSelectorMetadata) Tags

func (ServicePathSelectorMetadata) UpdateTime

func (ServicePathSelectorMetadata) Uuid

func (ServicePathSelectorMetadata) WithArrayOfValues

func (ServicePathSelectorMetadata) WithSubArrayItemValue

func (ServicePathSelectorMetadata) WithSubArrayOfValues

func (ServicePathSelectorMetadata) WithSubPath

func (ServicePathSelectorMetadata) WithSubValue

func (ServicePathSelectorMetadata) WithValue

type ServicePathSelectorMetadataAnnotations

type ServicePathSelectorMetadataAnnotations struct{}

func (ServicePathSelectorMetadataAnnotations) FieldPath

func (ServicePathSelectorMetadataAnnotations) WithArrayOfValues

func (ServicePathSelectorMetadataAnnotations) WithKey

func (ServicePathSelectorMetadataAnnotations) WithValue

type ServicePathSelectorMetadataCreateTime

type ServicePathSelectorMetadataCreateTime struct{}

func (ServicePathSelectorMetadataCreateTime) FieldPath

func (ServicePathSelectorMetadataCreateTime) WithArrayOfValues

func (ServicePathSelectorMetadataCreateTime) WithValue

type ServicePathSelectorMetadataDeleteTime added in v0.8.0

type ServicePathSelectorMetadataDeleteTime struct{}

func (ServicePathSelectorMetadataDeleteTime) FieldPath added in v0.8.0

func (ServicePathSelectorMetadataDeleteTime) WithArrayOfValues added in v0.8.0

func (ServicePathSelectorMetadataDeleteTime) WithValue added in v0.8.0

type ServicePathSelectorMetadataGeneration

type ServicePathSelectorMetadataGeneration struct{}

func (ServicePathSelectorMetadataGeneration) FieldPath

func (ServicePathSelectorMetadataGeneration) WithArrayOfValues

func (ServicePathSelectorMetadataGeneration) WithValue

type ServicePathSelectorMetadataLabels

type ServicePathSelectorMetadataLabels struct{}

func (ServicePathSelectorMetadataLabels) FieldPath

func (ServicePathSelectorMetadataLabels) WithArrayOfValues

func (ServicePathSelectorMetadataLabels) WithKey

func (ServicePathSelectorMetadataLabels) WithValue

type ServicePathSelectorMetadataLifecycle added in v0.8.0

type ServicePathSelectorMetadataLifecycle struct{}

func (ServicePathSelectorMetadataLifecycle) BlockDeletion added in v0.8.0

func (ServicePathSelectorMetadataLifecycle) FieldPath added in v0.8.0

func (ServicePathSelectorMetadataLifecycle) State added in v0.8.0

func (ServicePathSelectorMetadataLifecycle) WithArrayOfValues added in v0.8.0

func (ServicePathSelectorMetadataLifecycle) WithValue added in v0.8.0

type ServicePathSelectorMetadataLifecycleBlockDeletion added in v0.8.0

type ServicePathSelectorMetadataLifecycleBlockDeletion struct{}

func (ServicePathSelectorMetadataLifecycleBlockDeletion) FieldPath added in v0.8.0

func (ServicePathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues added in v0.8.0

func (ServicePathSelectorMetadataLifecycleBlockDeletion) WithValue added in v0.8.0

type ServicePathSelectorMetadataLifecycleState added in v0.8.0

type ServicePathSelectorMetadataLifecycleState struct{}

func (ServicePathSelectorMetadataLifecycleState) FieldPath added in v0.8.0

func (ServicePathSelectorMetadataLifecycleState) WithArrayOfValues added in v0.8.0

func (ServicePathSelectorMetadataLifecycleState) WithValue added in v0.8.0

type ServicePathSelectorMetadataOwnerReferences

type ServicePathSelectorMetadataOwnerReferences struct{}

func (ServicePathSelectorMetadataOwnerReferences) BlockOwnerDeletion

func (ServicePathSelectorMetadataOwnerReferences) Controller

func (ServicePathSelectorMetadataOwnerReferences) FieldPath

func (ServicePathSelectorMetadataOwnerReferences) Kind

func (ServicePathSelectorMetadataOwnerReferences) Name

func (ServicePathSelectorMetadataOwnerReferences) Region added in v0.8.0

func (ServicePathSelectorMetadataOwnerReferences) RequiresOwnerReference added in v0.8.0

func (ServicePathSelectorMetadataOwnerReferences) Version added in v0.8.0

func (ServicePathSelectorMetadataOwnerReferences) WithArrayOfValues

func (ServicePathSelectorMetadataOwnerReferences) WithItemValue

func (ServicePathSelectorMetadataOwnerReferences) WithValue

type ServicePathSelectorMetadataOwnerReferencesBlockOwnerDeletion

type ServicePathSelectorMetadataOwnerReferencesBlockOwnerDeletion struct{}

func (ServicePathSelectorMetadataOwnerReferencesBlockOwnerDeletion) FieldPath

func (ServicePathSelectorMetadataOwnerReferencesBlockOwnerDeletion) WithArrayOfValues

func (ServicePathSelectorMetadataOwnerReferencesBlockOwnerDeletion) WithValue

type ServicePathSelectorMetadataOwnerReferencesController

type ServicePathSelectorMetadataOwnerReferencesController struct{}

func (ServicePathSelectorMetadataOwnerReferencesController) FieldPath

func (ServicePathSelectorMetadataOwnerReferencesController) WithArrayOfValues

func (ServicePathSelectorMetadataOwnerReferencesController) WithValue

type ServicePathSelectorMetadataOwnerReferencesKind

type ServicePathSelectorMetadataOwnerReferencesKind struct{}

func (ServicePathSelectorMetadataOwnerReferencesKind) FieldPath

func (ServicePathSelectorMetadataOwnerReferencesKind) WithArrayOfValues

func (ServicePathSelectorMetadataOwnerReferencesKind) WithValue

type ServicePathSelectorMetadataOwnerReferencesName

type ServicePathSelectorMetadataOwnerReferencesName struct{}

func (ServicePathSelectorMetadataOwnerReferencesName) FieldPath

func (ServicePathSelectorMetadataOwnerReferencesName) WithArrayOfValues

func (ServicePathSelectorMetadataOwnerReferencesName) WithValue

type ServicePathSelectorMetadataOwnerReferencesRegion added in v0.8.0

type ServicePathSelectorMetadataOwnerReferencesRegion struct{}

func (ServicePathSelectorMetadataOwnerReferencesRegion) FieldPath added in v0.8.0

func (ServicePathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues added in v0.8.0

func (ServicePathSelectorMetadataOwnerReferencesRegion) WithValue added in v0.8.0

type ServicePathSelectorMetadataOwnerReferencesRequiresOwnerReference added in v0.8.0

type ServicePathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{}

func (ServicePathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath added in v0.8.0

func (ServicePathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues added in v0.8.0

func (ServicePathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue added in v0.8.0

type ServicePathSelectorMetadataOwnerReferencesVersion added in v0.8.0

type ServicePathSelectorMetadataOwnerReferencesVersion struct{}

func (ServicePathSelectorMetadataOwnerReferencesVersion) FieldPath added in v0.8.0

func (ServicePathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues added in v0.8.0

func (ServicePathSelectorMetadataOwnerReferencesVersion) WithValue added in v0.8.0

type ServicePathSelectorMetadataResourceVersion

type ServicePathSelectorMetadataResourceVersion struct{}

func (ServicePathSelectorMetadataResourceVersion) FieldPath

func (ServicePathSelectorMetadataResourceVersion) WithArrayOfValues

func (ServicePathSelectorMetadataResourceVersion) WithValue

type ServicePathSelectorMetadataShards

type ServicePathSelectorMetadataShards struct{}

func (ServicePathSelectorMetadataShards) FieldPath

func (ServicePathSelectorMetadataShards) WithArrayOfValues

func (ServicePathSelectorMetadataShards) WithKey

func (ServicePathSelectorMetadataShards) WithValue

type ServicePathSelectorMetadataSyncing

type ServicePathSelectorMetadataSyncing struct{}

func (ServicePathSelectorMetadataSyncing) FieldPath

func (ServicePathSelectorMetadataSyncing) OwningRegion

func (ServicePathSelectorMetadataSyncing) Regions

func (ServicePathSelectorMetadataSyncing) WithArrayOfValues

func (ServicePathSelectorMetadataSyncing) WithValue

type ServicePathSelectorMetadataSyncingOwningRegion

type ServicePathSelectorMetadataSyncingOwningRegion struct{}

func (ServicePathSelectorMetadataSyncingOwningRegion) FieldPath

func (ServicePathSelectorMetadataSyncingOwningRegion) WithArrayOfValues

func (ServicePathSelectorMetadataSyncingOwningRegion) WithValue

type ServicePathSelectorMetadataSyncingRegions

type ServicePathSelectorMetadataSyncingRegions struct{}

func (ServicePathSelectorMetadataSyncingRegions) FieldPath

func (ServicePathSelectorMetadataSyncingRegions) WithArrayOfValues

func (ServicePathSelectorMetadataSyncingRegions) WithItemValue

func (ServicePathSelectorMetadataSyncingRegions) WithValue

type ServicePathSelectorMetadataTags

type ServicePathSelectorMetadataTags struct{}

func (ServicePathSelectorMetadataTags) FieldPath

func (ServicePathSelectorMetadataTags) WithArrayOfValues

func (ServicePathSelectorMetadataTags) WithItemValue

func (ServicePathSelectorMetadataTags) WithValue

type ServicePathSelectorMetadataUpdateTime

type ServicePathSelectorMetadataUpdateTime struct{}

func (ServicePathSelectorMetadataUpdateTime) FieldPath

func (ServicePathSelectorMetadataUpdateTime) WithArrayOfValues

func (ServicePathSelectorMetadataUpdateTime) WithValue

type ServicePathSelectorMetadataUuid

type ServicePathSelectorMetadataUuid struct{}

func (ServicePathSelectorMetadataUuid) FieldPath

func (ServicePathSelectorMetadataUuid) WithArrayOfValues

func (ServicePathSelectorMetadataUuid) WithValue

type ServicePathSelectorName

type ServicePathSelectorName struct{}

func (ServicePathSelectorName) FieldPath

func (ServicePathSelectorName) WithArrayOfValues

func (ServicePathSelectorName) WithValue

type ServiceReferenceList

type ServiceReferenceList []*Reference

func (ServiceReferenceList) Append

func (ServiceReferenceList) AppendList

func (ServiceReferenceList) At

func (ServiceReferenceList) Length

func (l ServiceReferenceList) Length() int

func (ServiceReferenceList) Set

func (ServiceReferenceList) Slice

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

type Service_FieldMask

type Service_FieldMask struct {
	Paths []Service_FieldPath
}

func FullService_FieldMask

func FullService_FieldMask() *Service_FieldMask

func ResourceViewFieldMask

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

func (*Service_FieldMask) AppendPath

func (fieldMask *Service_FieldMask) AppendPath(path Service_FieldPath)

func (*Service_FieldMask) AppendRawPath

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

func (*Service_FieldMask) DecodeFirestore

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

func (*Service_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*Service_FieldMask) FilterInputFields

func (fieldMask *Service_FieldMask) FilterInputFields() *Service_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Service_FieldMask) FromProtoFieldMask

func (fieldMask *Service_FieldMask) FromProtoFieldMask(protoFieldMask *fieldmaskpb.FieldMask) error

func (*Service_FieldMask) GetPaths

func (fieldMask *Service_FieldMask) GetPaths() []Service_FieldPath

func (*Service_FieldMask) GetRawPaths

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

func (*Service_FieldMask) IsFull

func (fieldMask *Service_FieldMask) IsFull() bool

func (Service_FieldMask) Marshal

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

implement methods required by customType

func (Service_FieldMask) MarshalJSON

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

func (*Service_FieldMask) PathsCount

func (fieldMask *Service_FieldMask) PathsCount() int

func (*Service_FieldMask) Project

func (fieldMask *Service_FieldMask) Project(source *Service) *Service

func (*Service_FieldMask) ProjectRaw

func (*Service_FieldMask) ProtoMessage

func (fieldMask *Service_FieldMask) ProtoMessage()

func (*Service_FieldMask) ProtoReflect

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

func (*Service_FieldMask) Reset

func (fieldMask *Service_FieldMask) Reset()

func (*Service_FieldMask) Set

func (fieldMask *Service_FieldMask) Set(target, source *Service)

func (*Service_FieldMask) SetFromCliFlag

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

func (*Service_FieldMask) SetRaw

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

func (*Service_FieldMask) Size

func (fieldMask *Service_FieldMask) Size() int

func (*Service_FieldMask) String

func (fieldMask *Service_FieldMask) String() string

func (*Service_FieldMask) Subtract

func (fieldMask *Service_FieldMask) Subtract(other *Service_FieldMask) *Service_FieldMask

func (*Service_FieldMask) SubtractRaw

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

func (*Service_FieldMask) ToProtoFieldMask

func (fieldMask *Service_FieldMask) ToProtoFieldMask() *fieldmaskpb.FieldMask

ToFieldMask is used for proto conversions

func (*Service_FieldMask) Unmarshal

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

func (*Service_FieldMask) UnmarshalJSON

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

type Service_FieldPath

type Service_FieldPath interface {
	gotenobject.FieldPath
	Selector() Service_FieldPathSelector
	Get(source *Service) []interface{}
	GetSingle(source *Service) (interface{}, bool)
	ClearValue(item *Service)

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

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

func BuildService_FieldPath

func BuildService_FieldPath(fp gotenobject.RawFieldPath) (Service_FieldPath, error)

func MustParseService_FieldPath

func MustParseService_FieldPath(rawField string) Service_FieldPath

func ParseService_FieldPath

func ParseService_FieldPath(rawField string) (Service_FieldPath, error)

type Service_FieldPathArrayItemValue

type Service_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	Service_FieldPath
	ContainsValue(*Service) bool
}

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

func MustParseService_FieldPathArrayItemValue

func MustParseService_FieldPathArrayItemValue(pathStr, valueStr string) Service_FieldPathArrayItemValue

func ParseService_FieldPathArrayItemValue

func ParseService_FieldPathArrayItemValue(pathStr, valueStr string) (Service_FieldPathArrayItemValue, error)

ParseService_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type Service_FieldPathArrayOfValues

type Service_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	Service_FieldPath
}

Service_FieldPathArrayOfValues allows storing slice of values for Service fields according to their type

func MustParseService_FieldPathArrayOfValues

func MustParseService_FieldPathArrayOfValues(pathStr, valuesStr string) Service_FieldPathArrayOfValues

func ParseService_FieldPathArrayOfValues

func ParseService_FieldPathArrayOfValues(pathStr, valuesStr string) (Service_FieldPathArrayOfValues, error)

type Service_FieldPathSelector

type Service_FieldPathSelector int32
const (
	Service_FieldPathSelectorName           Service_FieldPathSelector = 0
	Service_FieldPathSelectorDisplayName    Service_FieldPathSelector = 1
	Service_FieldPathSelectorCurrentVersion Service_FieldPathSelector = 2
	Service_FieldPathSelectorAllVersions    Service_FieldPathSelector = 3
	Service_FieldPathSelectorMetadata       Service_FieldPathSelector = 4
)

func (Service_FieldPathSelector) String

func (s Service_FieldPathSelector) String() string

type Service_FieldPathValue

type Service_FieldPathValue interface {
	Service_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Service)
	CompareWith(*Service) (cmp int, comparable bool)
}

Service_FieldPathValue allows storing values for Service fields according to their type

func MustParseService_FieldPathValue

func MustParseService_FieldPathValue(pathStr, valueStr string) Service_FieldPathValue

func ParseService_FieldPathValue

func ParseService_FieldPathValue(pathStr, valueStr string) (Service_FieldPathValue, error)

type Service_FieldSubPath

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

func (*Service_FieldSubPath) AsMetadataSubPath

func (fps *Service_FieldSubPath) AsMetadataSubPath() (ntt_meta.Meta_FieldPath, bool)

func (*Service_FieldSubPath) ClearValue

func (fps *Service_FieldSubPath) ClearValue(item *Service)

func (*Service_FieldSubPath) ClearValueRaw

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

func (*Service_FieldSubPath) Get

func (fps *Service_FieldSubPath) Get(source *Service) (values []interface{})

Get returns all values pointed by selected field from source Service

func (*Service_FieldSubPath) GetDefault

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

GetDefault returns a default value of the field type

func (*Service_FieldSubPath) GetRaw

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

func (*Service_FieldSubPath) GetSingle

func (fps *Service_FieldSubPath) GetSingle(source *Service) (interface{}, bool)

GetSingle returns value of selected field from source Service

func (*Service_FieldSubPath) GetSingleRaw

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

func (*Service_FieldSubPath) IsLeaf

func (fps *Service_FieldSubPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Service_FieldSubPath) JSONString

func (fps *Service_FieldSubPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Service_FieldSubPath) Selector

func (*Service_FieldSubPath) SplitIntoTerminalIPaths added in v0.8.0

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

func (*Service_FieldSubPath) String

func (fps *Service_FieldSubPath) String() string

String returns path representation in proto convention

func (*Service_FieldSubPath) WithIArrayItemValue

func (fps *Service_FieldSubPath) WithIArrayItemValue(value interface{}) Service_FieldPathArrayItemValue

func (*Service_FieldSubPath) WithIArrayOfValues

func (fps *Service_FieldSubPath) WithIArrayOfValues(values interface{}) Service_FieldPathArrayOfValues

func (*Service_FieldSubPath) WithIValue

func (fps *Service_FieldSubPath) WithIValue(value interface{}) Service_FieldPathValue

func (*Service_FieldSubPath) WithRawIArrayItemValue

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

func (*Service_FieldSubPath) WithRawIArrayOfValues

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

func (*Service_FieldSubPath) WithRawIValue

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

type Service_FieldSubPathArrayItemValue

type Service_FieldSubPathArrayItemValue struct {
	Service_FieldPath
	// contains filtered or unexported fields
}

func (*Service_FieldSubPathArrayItemValue) AsMetadataPathItemValue

func (*Service_FieldSubPathArrayItemValue) ContainsValue

func (fpaivs *Service_FieldSubPathArrayItemValue) ContainsValue(source *Service) bool

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

func (*Service_FieldSubPathArrayItemValue) GetRawItemValue

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

GetRawValue returns stored array item value

type Service_FieldSubPathArrayOfValues

type Service_FieldSubPathArrayOfValues struct {
	Service_FieldPath
	// contains filtered or unexported fields
}

func (*Service_FieldSubPathArrayOfValues) AsMetadataPathArrayOfValues

func (fpsaov *Service_FieldSubPathArrayOfValues) AsMetadataPathArrayOfValues() (ntt_meta.Meta_FieldPathArrayOfValues, bool)

func (*Service_FieldSubPathArrayOfValues) GetRawValues

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

type Service_FieldSubPathValue

type Service_FieldSubPathValue struct {
	Service_FieldPath
	// contains filtered or unexported fields
}

func (*Service_FieldSubPathValue) AsMetadataPathValue

func (fpvs *Service_FieldSubPathValue) AsMetadataPathValue() (ntt_meta.Meta_FieldPathValue, bool)

func (*Service_FieldSubPathValue) CompareWith

func (fpvs *Service_FieldSubPathValue) CompareWith(source *Service) (int, bool)

func (*Service_FieldSubPathValue) CompareWithRaw

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

func (*Service_FieldSubPathValue) GetRawValue

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

func (*Service_FieldSubPathValue) SetTo

func (fpvs *Service_FieldSubPathValue) SetTo(target **Service)

func (*Service_FieldSubPathValue) SetToRaw

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

type Service_FieldTerminalPath

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

func (*Service_FieldTerminalPath) ClearValue

func (fp *Service_FieldTerminalPath) ClearValue(item *Service)

func (*Service_FieldTerminalPath) ClearValueRaw

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

func (*Service_FieldTerminalPath) Get

func (fp *Service_FieldTerminalPath) Get(source *Service) (values []interface{})

Get returns all values pointed by specific field from source Service

func (*Service_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*Service_FieldTerminalPath) GetRaw

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

func (*Service_FieldTerminalPath) GetSingle

func (fp *Service_FieldTerminalPath) GetSingle(source *Service) (interface{}, bool)

GetSingle returns value pointed by specific field of from source Service

func (*Service_FieldTerminalPath) GetSingleRaw

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

func (*Service_FieldTerminalPath) IsLeaf

func (fp *Service_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Service_FieldTerminalPath) JSONString

func (fp *Service_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Service_FieldTerminalPath) Selector

func (*Service_FieldTerminalPath) SplitIntoTerminalIPaths added in v0.8.0

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

func (*Service_FieldTerminalPath) String

func (fp *Service_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*Service_FieldTerminalPath) WithIArrayItemValue

func (fp *Service_FieldTerminalPath) WithIArrayItemValue(value interface{}) Service_FieldPathArrayItemValue

func (*Service_FieldTerminalPath) WithIArrayOfValues

func (fp *Service_FieldTerminalPath) WithIArrayOfValues(values interface{}) Service_FieldPathArrayOfValues

func (*Service_FieldTerminalPath) WithIValue

func (fp *Service_FieldTerminalPath) WithIValue(value interface{}) Service_FieldPathValue

func (*Service_FieldTerminalPath) WithRawIArrayItemValue

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

func (*Service_FieldTerminalPath) WithRawIArrayOfValues

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

func (*Service_FieldTerminalPath) WithRawIValue

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

type Service_FieldTerminalPathArrayItemValue

type Service_FieldTerminalPathArrayItemValue struct {
	Service_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Service_FieldTerminalPathArrayItemValue) AsAllVersionsItemValue added in v0.5.1

func (fpaiv *Service_FieldTerminalPathArrayItemValue) AsAllVersionsItemValue() (string, bool)

func (*Service_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *Service_FieldTerminalPathArrayItemValue) ContainsValue(source *Service) bool

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

func (*Service_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*Service_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *Service_FieldTerminalPathArrayItemValue) GetSingle(source *Service) (interface{}, bool)

func (*Service_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type Service_FieldTerminalPathArrayOfValues

type Service_FieldTerminalPathArrayOfValues struct {
	Service_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Service_FieldTerminalPathArrayOfValues) AsAllVersionsArrayOfValues added in v0.5.1

func (fpaov *Service_FieldTerminalPathArrayOfValues) AsAllVersionsArrayOfValues() ([][]string, bool)

func (*Service_FieldTerminalPathArrayOfValues) AsCurrentVersionArrayOfValues added in v0.5.1

func (fpaov *Service_FieldTerminalPathArrayOfValues) AsCurrentVersionArrayOfValues() ([]string, bool)

func (*Service_FieldTerminalPathArrayOfValues) AsDisplayNameArrayOfValues added in v0.5.1

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

func (*Service_FieldTerminalPathArrayOfValues) AsMetadataArrayOfValues

func (fpaov *Service_FieldTerminalPathArrayOfValues) AsMetadataArrayOfValues() ([]*ntt_meta.Meta, bool)

func (*Service_FieldTerminalPathArrayOfValues) AsNameArrayOfValues

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

func (*Service_FieldTerminalPathArrayOfValues) GetRawValues

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

type Service_FieldTerminalPathValue

type Service_FieldTerminalPathValue struct {
	Service_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Service_FieldTerminalPathValue) AsAllVersionsValue added in v0.5.1

func (fpv *Service_FieldTerminalPathValue) AsAllVersionsValue() ([]string, bool)

func (*Service_FieldTerminalPathValue) AsCurrentVersionValue added in v0.5.1

func (fpv *Service_FieldTerminalPathValue) AsCurrentVersionValue() (string, bool)

func (*Service_FieldTerminalPathValue) AsDisplayNameValue added in v0.5.1

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

func (*Service_FieldTerminalPathValue) AsMetadataValue

func (fpv *Service_FieldTerminalPathValue) AsMetadataValue() (*ntt_meta.Meta, bool)

func (*Service_FieldTerminalPathValue) AsNameValue

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

func (*Service_FieldTerminalPathValue) CompareWith

func (fpv *Service_FieldTerminalPathValue) CompareWith(source *Service) (int, bool)

CompareWith compares value in the 'Service_FieldTerminalPathValue' with the value under path in 'Service'.

func (*Service_FieldTerminalPathValue) CompareWithRaw

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

func (*Service_FieldTerminalPathValue) GetRawValue

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

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

func (*Service_FieldTerminalPathValue) SetTo

func (fpv *Service_FieldTerminalPathValue) SetTo(target **Service)

SetTo stores value for selected field for object Service

func (*Service_FieldTerminalPathValue) SetToRaw

func (fpv *Service_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 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 added in v0.4.29

func (q *WatchQuery) String() string

Jump to

Keyboard shortcuts

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