user

package
v0.10.23 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamePattern_Nil = "users/{user}"
)

Variables

This section is empty.

Functions

func AsAnyCastAccess

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

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 User_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 *User) bool

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

func AndFilterConditions

func AndFilterConditions(conds ...FilterCondition) FilterCondition

type FilterConditionCompare

type FilterConditionCompare struct {
	Operator filterParser.CompareOperator
	User_FieldPathValue
}

func (*FilterConditionCompare) And

func (*FilterConditionCompare) ConditionCompare

func (cond *FilterConditionCompare) ConditionCompare()

func (*FilterConditionCompare) Evaluate

func (cond *FilterConditionCompare) Evaluate(res *User) 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 User_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 *User) 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 User_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 User_FieldPath

	Value  User_FieldPathArrayItemValue
	Values []User_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 *User) bool

func (*FilterConditionContains) EvaluateRaw

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

func (*FilterConditionContains) GetFieldPath

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

func (*FilterConditionIn) And

func (*FilterConditionIn) ConditionIn

func (cond *FilterConditionIn) ConditionIn()

func (*FilterConditionIn) Evaluate

func (cond *FilterConditionIn) Evaluate(res *User) 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 User_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 User_FieldPath
}

func (*FilterConditionIsNaN) And

func (*FilterConditionIsNaN) ConditionIsNaN

func (cond *FilterConditionIsNaN) ConditionIsNaN()

func (*FilterConditionIsNaN) Evaluate

func (cond *FilterConditionIsNaN) Evaluate(res *User) 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 User_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 User_FieldPath
}

func (*FilterConditionIsNull) And

func (*FilterConditionIsNull) ConditionIsNull

func (cond *FilterConditionIsNull) ConditionIsNull()

func (*FilterConditionIsNull) Evaluate

func (cond *FilterConditionIsNull) Evaluate(res *User) 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 User_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 *User) 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 User_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 {
	User_FieldPathArrayOfValues
}

func (*FilterConditionNotIn) And

func (*FilterConditionNotIn) ConditionNotIn

func (cond *FilterConditionNotIn) ConditionNotIn()

func (*FilterConditionNotIn) Evaluate

func (cond *FilterConditionNotIn) Evaluate(res *User) 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 User_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      *User_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           *User_FieldMask
	WithPagingInfo bool
}

func (*ListQuery) GetFieldMask

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

func (*ListQuery) GetFilter

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

func (*ListQuery) GetPager

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

func (*ListQuery) GetResourceDescriptor

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

func (*ListQuery) GetWithPagingInfo added in v0.10.1

func (q *ListQuery) GetWithPagingInfo() bool

func (*ListQuery) GotenQuery

func (q *ListQuery) GotenQuery()

func (*ListQuery) SetFieldMask

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

func (*ListQuery) SetFilter

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

func (*ListQuery) SetPager

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

func (*ListQuery) SetWithPagingInfo added in v0.10.1

func (q *ListQuery) SetWithPagingInfo(with bool)

func (*ListQuery) String

func (q *ListQuery) String() string

type Name

type Name struct {
	NamePattern
	UserId string `firestore:"userId"`
}

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

func (*OrderBy) CompareRaw

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

func (*OrderBy) GetFieldMask

func (orderBy *OrderBy) GetFieldMask() *User_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 UserList, elem *User) (UserList, 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 UserList)

func (*OrderBy) SortRaw

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

func (*OrderBy) String

func (orderBy *OrderBy) String() string

type OrderByField

type OrderByField struct {
	FieldPath User_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 *User) 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        []*UserChange
	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 {
	Users             []*User
	PrevPageCursor    *PagerCursor
	NextPageCursor    *PagerCursor
	TotalResultsCount int32
	CurrentOffset     int32
}

func (*QueryResultSnapshot) GetNextPageCursor

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

func (*QueryResultSnapshot) GetPagingInfo added in v0.10.1

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

func (*QueryResultSnapshot) GetPrevPageCursor

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

func (*QueryResultSnapshot) GetResults

func (*QueryResultSnapshot) SetCursors

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

func (*QueryResultSnapshot) SetPagingInfo added in v0.10.1

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

func (*QueryResultSnapshot) SetResults

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

type Reference

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

func MakeReference

func MakeReference(name *Name, user *User) (*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) GetUser

func (ref *Reference) GetUser() *User

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

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 User

type User struct {

	// Name of User
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// Full Name
	FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty" firestore:"fullName"`
	// Metadata
	Metadata *ntt_meta.Meta `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty" firestore:"metadata"`
	// Email
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty" firestore:"email"`
	// Is email verified
	EmailVerified bool           `` /* 127-byte string literal not displayed */
	AuthInfo      *User_AuthInfo `protobuf:"bytes,5,opt,name=auth_info,json=authInfo,proto3" json:"auth_info,omitempty" firestore:"authInfo"`
	// User settings and preferences
	Settings      map[string]string    `` /* 178-byte string literal not displayed */
	RefreshedTime *timestamp.Timestamp `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

User Resource

func (*User) Clone

func (o *User) Clone() *User

func (*User) CloneRaw

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

func (*User) Descriptor

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

Deprecated, Use User.ProtoReflect.Descriptor instead.

func (*User) GetAuthInfo

func (m *User) GetAuthInfo() *User_AuthInfo

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetEmailVerified

func (m *User) GetEmailVerified() bool

func (*User) GetFullName

func (m *User) GetFullName() string

func (*User) GetMetadata

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

func (*User) GetName

func (m *User) GetName() *Name

func (*User) GetRawName

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

func (*User) GetRefreshedTime

func (m *User) GetRefreshedTime() *timestamp.Timestamp

func (*User) GetResourceDescriptor

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

func (*User) GetSettings

func (m *User) GetSettings() map[string]string

func (*User) GotenMessage

func (*User) GotenMessage()

func (*User) GotenObjectExt

func (o *User) GotenObjectExt()

func (*User) GotenValidate

func (obj *User) GotenValidate() error

func (*User) MakeDiffFieldMask

func (o *User) MakeDiffFieldMask(other *User) *User_FieldMask

func (*User) MakeFullFieldMask

func (o *User) MakeFullFieldMask() *User_FieldMask

func (*User) MakeRawDiffFieldMask

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

func (*User) MakeRawFullFieldMask

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

func (*User) Marshal

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

func (*User) MarshalJSON

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

func (*User) MaybePopulateDefaults

func (r *User) MaybePopulateDefaults() error

func (*User) Merge

func (o *User) Merge(source *User)

func (*User) MergeRaw

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

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (m *User) Reset()

func (*User) SetAuthInfo

func (m *User) SetAuthInfo(fv *User_AuthInfo)

func (*User) SetEmail

func (m *User) SetEmail(fv string)

func (*User) SetEmailVerified

func (m *User) SetEmailVerified(fv bool)

func (*User) SetFullName

func (m *User) SetFullName(fv string)

func (*User) SetMetadata

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

func (*User) SetName

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

func (*User) SetRefreshedTime

func (m *User) SetRefreshedTime(fv *timestamp.Timestamp)

func (*User) SetSettings

func (m *User) SetSettings(fv map[string]string)

func (*User) String

func (m *User) String() string

func (*User) Unmarshal

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

func (*User) UnmarshalJSON

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

type UserAuthInfoFieldPathBuilder

type UserAuthInfoFieldPathBuilder struct{}

func NewUserAuthInfoFieldPathBuilder

func NewUserAuthInfoFieldPathBuilder() UserAuthInfoFieldPathBuilder

func (UserAuthInfoFieldPathBuilder) Id

func (UserAuthInfoFieldPathBuilder) Provider

type UserAuthInfo_FieldPath

type UserAuthInfo_FieldPath interface {
	gotenobject.FieldPath
	Selector() UserAuthInfo_FieldPathSelector
	Get(source *User_AuthInfo) []interface{}
	GetSingle(source *User_AuthInfo) (interface{}, bool)
	ClearValue(item *User_AuthInfo)

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

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

func MustParseUserAuthInfo_FieldPath

func MustParseUserAuthInfo_FieldPath(rawField string) UserAuthInfo_FieldPath

func ParseUserAuthInfo_FieldPath

func ParseUserAuthInfo_FieldPath(rawField string) (UserAuthInfo_FieldPath, error)

type UserAuthInfo_FieldPathArrayItemValue

type UserAuthInfo_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	UserAuthInfo_FieldPath
	ContainsValue(*User_AuthInfo) bool
}

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

func MustParseUserAuthInfo_FieldPathArrayItemValue

func MustParseUserAuthInfo_FieldPathArrayItemValue(pathStr, valueStr string) UserAuthInfo_FieldPathArrayItemValue

func ParseUserAuthInfo_FieldPathArrayItemValue

func ParseUserAuthInfo_FieldPathArrayItemValue(pathStr, valueStr string) (UserAuthInfo_FieldPathArrayItemValue, error)

ParseUserAuthInfo_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type UserAuthInfo_FieldPathArrayOfValues

type UserAuthInfo_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	UserAuthInfo_FieldPath
}

UserAuthInfo_FieldPathArrayOfValues allows storing slice of values for AuthInfo fields according to their type

func MustParseUserAuthInfo_FieldPathArrayOfValues

func MustParseUserAuthInfo_FieldPathArrayOfValues(pathStr, valuesStr string) UserAuthInfo_FieldPathArrayOfValues

func ParseUserAuthInfo_FieldPathArrayOfValues

func ParseUserAuthInfo_FieldPathArrayOfValues(pathStr, valuesStr string) (UserAuthInfo_FieldPathArrayOfValues, error)

type UserAuthInfo_FieldPathSelector

type UserAuthInfo_FieldPathSelector int32
const (
	UserAuthInfo_FieldPathSelectorProvider UserAuthInfo_FieldPathSelector = 0
	UserAuthInfo_FieldPathSelectorId       UserAuthInfo_FieldPathSelector = 1
)

func (UserAuthInfo_FieldPathSelector) String

type UserAuthInfo_FieldPathValue

type UserAuthInfo_FieldPathValue interface {
	UserAuthInfo_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **User_AuthInfo)
	CompareWith(*User_AuthInfo) (cmp int, comparable bool)
}

UserAuthInfo_FieldPathValue allows storing values for AuthInfo fields according to their type

func MustParseUserAuthInfo_FieldPathValue

func MustParseUserAuthInfo_FieldPathValue(pathStr, valueStr string) UserAuthInfo_FieldPathValue

func ParseUserAuthInfo_FieldPathValue

func ParseUserAuthInfo_FieldPathValue(pathStr, valueStr string) (UserAuthInfo_FieldPathValue, error)

type UserAuthInfo_FieldTerminalPath

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

func (*UserAuthInfo_FieldTerminalPath) ClearValue

func (fp *UserAuthInfo_FieldTerminalPath) ClearValue(item *User_AuthInfo)

func (*UserAuthInfo_FieldTerminalPath) ClearValueRaw

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

func (*UserAuthInfo_FieldTerminalPath) Get

func (fp *UserAuthInfo_FieldTerminalPath) Get(source *User_AuthInfo) (values []interface{})

Get returns all values pointed by specific field from source User_AuthInfo

func (*UserAuthInfo_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*UserAuthInfo_FieldTerminalPath) GetRaw

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

func (*UserAuthInfo_FieldTerminalPath) GetSingle

func (fp *UserAuthInfo_FieldTerminalPath) GetSingle(source *User_AuthInfo) (interface{}, bool)

GetSingle returns value pointed by specific field of from source User_AuthInfo

func (*UserAuthInfo_FieldTerminalPath) GetSingleRaw

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

func (*UserAuthInfo_FieldTerminalPath) IsLeaf

func (fp *UserAuthInfo_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*UserAuthInfo_FieldTerminalPath) JSONString

func (fp *UserAuthInfo_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*UserAuthInfo_FieldTerminalPath) Selector

func (*UserAuthInfo_FieldTerminalPath) SplitIntoTerminalIPaths added in v0.8.0

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

func (*UserAuthInfo_FieldTerminalPath) String

String returns path representation in proto convention

func (*UserAuthInfo_FieldTerminalPath) WithIArrayItemValue

func (fp *UserAuthInfo_FieldTerminalPath) WithIArrayItemValue(value interface{}) UserAuthInfo_FieldPathArrayItemValue

func (*UserAuthInfo_FieldTerminalPath) WithIArrayOfValues

func (fp *UserAuthInfo_FieldTerminalPath) WithIArrayOfValues(values interface{}) UserAuthInfo_FieldPathArrayOfValues

func (*UserAuthInfo_FieldTerminalPath) WithIValue

func (fp *UserAuthInfo_FieldTerminalPath) WithIValue(value interface{}) UserAuthInfo_FieldPathValue

func (*UserAuthInfo_FieldTerminalPath) WithRawIArrayItemValue

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

func (*UserAuthInfo_FieldTerminalPath) WithRawIArrayOfValues

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

func (*UserAuthInfo_FieldTerminalPath) WithRawIValue

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

type UserAuthInfo_FieldTerminalPathArrayItemValue

type UserAuthInfo_FieldTerminalPathArrayItemValue struct {
	UserAuthInfo_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*UserAuthInfo_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *UserAuthInfo_FieldTerminalPathArrayItemValue) ContainsValue(source *User_AuthInfo) bool

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

func (*UserAuthInfo_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*UserAuthInfo_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *UserAuthInfo_FieldTerminalPathArrayItemValue) GetSingle(source *User_AuthInfo) (interface{}, bool)

func (*UserAuthInfo_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type UserAuthInfo_FieldTerminalPathArrayOfValues

type UserAuthInfo_FieldTerminalPathArrayOfValues struct {
	UserAuthInfo_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*UserAuthInfo_FieldTerminalPathArrayOfValues) AsIdArrayOfValues

func (fpaov *UserAuthInfo_FieldTerminalPathArrayOfValues) AsIdArrayOfValues() ([]string, bool)

func (*UserAuthInfo_FieldTerminalPathArrayOfValues) AsProviderArrayOfValues

func (fpaov *UserAuthInfo_FieldTerminalPathArrayOfValues) AsProviderArrayOfValues() ([]string, bool)

func (*UserAuthInfo_FieldTerminalPathArrayOfValues) GetRawValues

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

type UserAuthInfo_FieldTerminalPathValue

type UserAuthInfo_FieldTerminalPathValue struct {
	UserAuthInfo_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*UserAuthInfo_FieldTerminalPathValue) AsIdValue

func (fpv *UserAuthInfo_FieldTerminalPathValue) AsIdValue() (string, bool)

func (*UserAuthInfo_FieldTerminalPathValue) AsProviderValue

func (fpv *UserAuthInfo_FieldTerminalPathValue) AsProviderValue() (string, bool)

func (*UserAuthInfo_FieldTerminalPathValue) CompareWith

func (fpv *UserAuthInfo_FieldTerminalPathValue) CompareWith(source *User_AuthInfo) (int, bool)

CompareWith compares value in the 'UserAuthInfo_FieldTerminalPathValue' with the value under path in 'User_AuthInfo'.

func (*UserAuthInfo_FieldTerminalPathValue) CompareWithRaw

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

func (*UserAuthInfo_FieldTerminalPathValue) GetRawValue

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

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

func (*UserAuthInfo_FieldTerminalPathValue) SetTo

SetTo stores value for selected field for object AuthInfo

func (*UserAuthInfo_FieldTerminalPathValue) SetToRaw

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

type UserChange

type UserChange struct {

	// User change
	//
	// Types that are valid to be assigned to ChangeType:
	//	*UserChange_Added_
	//	*UserChange_Modified_
	//	*UserChange_Current_
	//	*UserChange_Removed_
	ChangeType isUserChange_ChangeType `protobuf_oneof:"change_type"`
	// contains filtered or unexported fields
}

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

func (*UserChange) Descriptor

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

Deprecated, Use UserChange.ProtoReflect.Descriptor instead.

func (*UserChange) GetAdded

func (m *UserChange) GetAdded() *UserChange_Added

func (*UserChange) GetChangeType

func (m *UserChange) GetChangeType() isUserChange_ChangeType

func (*UserChange) GetCurrent

func (m *UserChange) GetCurrent() *UserChange_Current

func (*UserChange) GetCurrentViewIndex

func (c *UserChange) GetCurrentViewIndex() int32

func (*UserChange) GetModified

func (m *UserChange) GetModified() *UserChange_Modified

func (*UserChange) GetPreviousViewIndex

func (c *UserChange) GetPreviousViewIndex() int32

func (*UserChange) GetRawName

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

func (*UserChange) GetRawResource added in v0.5.1

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

func (*UserChange) GetRemoved

func (m *UserChange) GetRemoved() *UserChange_Removed

func (*UserChange) GetUser

func (c *UserChange) GetUser() *User

func (*UserChange) GetUserName

func (c *UserChange) GetUserName() *Name

func (*UserChange) GotenMessage

func (*UserChange) GotenMessage()

func (*UserChange) GotenValidate

func (obj *UserChange) GotenValidate() error

func (*UserChange) IsAdd

func (c *UserChange) IsAdd() bool

func (*UserChange) IsCurrent

func (c *UserChange) IsCurrent() bool

func (*UserChange) IsDelete

func (c *UserChange) IsDelete() bool

func (*UserChange) IsModify

func (c *UserChange) IsModify() bool

func (*UserChange) Marshal

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

func (*UserChange) MarshalJSON

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

func (*UserChange) ProtoMessage

func (*UserChange) ProtoMessage()

func (*UserChange) ProtoReflect

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

func (*UserChange) Reset

func (m *UserChange) Reset()

func (*UserChange) SetAdded

func (m *UserChange) SetAdded(fv *UserChange_Added)

func (*UserChange) SetAddedRaw

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

func (*UserChange) SetChangeType

func (m *UserChange) SetChangeType(ofv isUserChange_ChangeType)

func (*UserChange) SetCurrent

func (m *UserChange) SetCurrent(fv *UserChange_Current)

func (*UserChange) SetCurrentRaw

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

func (*UserChange) SetDeletedRaw

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

func (*UserChange) SetModified

func (m *UserChange) SetModified(fv *UserChange_Modified)

func (*UserChange) SetModifiedRaw

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

func (*UserChange) SetRemoved

func (m *UserChange) SetRemoved(fv *UserChange_Removed)

func (*UserChange) String

func (m *UserChange) String() string

func (*UserChange) Unmarshal

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

func (*UserChange) UnmarshalJSON

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

type UserChangeList

type UserChangeList []*UserChange

func (UserChangeList) At

func (UserChangeList) Length

func (l UserChangeList) Length() int

func (UserChangeList) Set

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

func (UserChangeList) Slice

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

type UserChangeMap

type UserChangeMap map[Name]*UserChange

func (UserChangeMap) Delete

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

func (UserChangeMap) ForEach

func (UserChangeMap) Get

func (UserChangeMap) Length

func (m UserChangeMap) Length() int

func (UserChangeMap) Set

type UserChange_Added

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

User has been added to query view

func (*UserChange_Added) Descriptor

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

Deprecated, Use UserChange_Added.ProtoReflect.Descriptor instead.

func (*UserChange_Added) GetUser

func (m *UserChange_Added) GetUser() *User

func (*UserChange_Added) GetViewIndex

func (m *UserChange_Added) GetViewIndex() int32

func (*UserChange_Added) GotenMessage

func (*UserChange_Added) GotenMessage()

func (*UserChange_Added) GotenValidate

func (obj *UserChange_Added) GotenValidate() error

func (*UserChange_Added) Marshal

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

func (*UserChange_Added) MarshalJSON

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

func (*UserChange_Added) ProtoMessage

func (*UserChange_Added) ProtoMessage()

func (*UserChange_Added) ProtoReflect

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

func (*UserChange_Added) Reset

func (m *UserChange_Added) Reset()

func (*UserChange_Added) SetUser

func (m *UserChange_Added) SetUser(fv *User)

func (*UserChange_Added) SetViewIndex

func (m *UserChange_Added) SetViewIndex(fv int32)

func (*UserChange_Added) String

func (m *UserChange_Added) String() string

func (*UserChange_Added) Unmarshal

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

func (*UserChange_Added) UnmarshalJSON

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

type UserChange_Added_

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

type UserChange_Current

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

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

func (*UserChange_Current) Descriptor

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

Deprecated, Use UserChange_Current.ProtoReflect.Descriptor instead.

func (*UserChange_Current) GetUser

func (m *UserChange_Current) GetUser() *User

func (*UserChange_Current) GotenMessage

func (*UserChange_Current) GotenMessage()

func (*UserChange_Current) GotenValidate

func (obj *UserChange_Current) GotenValidate() error

func (*UserChange_Current) Marshal

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

func (*UserChange_Current) MarshalJSON

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

func (*UserChange_Current) ProtoMessage

func (*UserChange_Current) ProtoMessage()

func (*UserChange_Current) ProtoReflect

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

func (*UserChange_Current) Reset

func (m *UserChange_Current) Reset()

func (*UserChange_Current) SetUser

func (m *UserChange_Current) SetUser(fv *User)

func (*UserChange_Current) String

func (m *UserChange_Current) String() string

func (*UserChange_Current) Unmarshal

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

func (*UserChange_Current) UnmarshalJSON

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

type UserChange_Current_

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

type UserChange_Modified

type UserChange_Modified struct {

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

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

func (*UserChange_Modified) Descriptor

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

Deprecated, Use UserChange_Modified.ProtoReflect.Descriptor instead.

func (*UserChange_Modified) GetFieldMask

func (m *UserChange_Modified) GetFieldMask() *User_FieldMask

func (*UserChange_Modified) GetName

func (m *UserChange_Modified) GetName() *Name

func (*UserChange_Modified) GetPreviousViewIndex

func (m *UserChange_Modified) GetPreviousViewIndex() int32

func (*UserChange_Modified) GetUser

func (m *UserChange_Modified) GetUser() *User

func (*UserChange_Modified) GetViewIndex

func (m *UserChange_Modified) GetViewIndex() int32

func (*UserChange_Modified) GotenMessage

func (*UserChange_Modified) GotenMessage()

func (*UserChange_Modified) GotenValidate

func (obj *UserChange_Modified) GotenValidate() error

func (*UserChange_Modified) Marshal

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

func (*UserChange_Modified) MarshalJSON

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

func (*UserChange_Modified) ProtoMessage

func (*UserChange_Modified) ProtoMessage()

func (*UserChange_Modified) ProtoReflect

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

func (*UserChange_Modified) Reset

func (m *UserChange_Modified) Reset()

func (*UserChange_Modified) SetFieldMask

func (m *UserChange_Modified) SetFieldMask(fv *User_FieldMask)

func (*UserChange_Modified) SetName

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

func (*UserChange_Modified) SetPreviousViewIndex

func (m *UserChange_Modified) SetPreviousViewIndex(fv int32)

func (*UserChange_Modified) SetUser

func (m *UserChange_Modified) SetUser(fv *User)

func (*UserChange_Modified) SetViewIndex

func (m *UserChange_Modified) SetViewIndex(fv int32)

func (*UserChange_Modified) String

func (m *UserChange_Modified) String() string

func (*UserChange_Modified) Unmarshal

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

func (*UserChange_Modified) UnmarshalJSON

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

type UserChange_Modified_

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

type UserChange_Removed

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

func (*UserChange_Removed) Descriptor

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

Deprecated, Use UserChange_Removed.ProtoReflect.Descriptor instead.

func (*UserChange_Removed) GetName

func (m *UserChange_Removed) GetName() *Name

func (*UserChange_Removed) GetViewIndex

func (m *UserChange_Removed) GetViewIndex() int32

func (*UserChange_Removed) GotenMessage

func (*UserChange_Removed) GotenMessage()

func (*UserChange_Removed) GotenValidate

func (obj *UserChange_Removed) GotenValidate() error

func (*UserChange_Removed) Marshal

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

func (*UserChange_Removed) MarshalJSON

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

func (*UserChange_Removed) ProtoMessage

func (*UserChange_Removed) ProtoMessage()

func (*UserChange_Removed) ProtoReflect

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

func (*UserChange_Removed) Reset

func (m *UserChange_Removed) Reset()

func (*UserChange_Removed) SetName

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

func (*UserChange_Removed) SetViewIndex

func (m *UserChange_Removed) SetViewIndex(fv int32)

func (*UserChange_Removed) String

func (m *UserChange_Removed) String() string

func (*UserChange_Removed) Unmarshal

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

func (*UserChange_Removed) UnmarshalJSON

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

type UserChange_Removed_

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

type UserFieldPathBuilder

type UserFieldPathBuilder struct{}

func NewUserFieldPathBuilder

func NewUserFieldPathBuilder() UserFieldPathBuilder

func (UserFieldPathBuilder) AuthInfo

func (UserFieldPathBuilder) Email

func (UserFieldPathBuilder) EmailVerified

func (UserFieldPathBuilder) FullName

func (UserFieldPathBuilder) Metadata

func (UserFieldPathBuilder) Name

func (UserFieldPathBuilder) RefreshedTime

func (UserFieldPathBuilder) Settings

type UserList

type UserList []*User

func (UserList) Append

func (UserList) AppendList

func (UserList) At

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

func (UserList) Length

func (l UserList) Length() int

func (UserList) Set

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

func (UserList) Slice

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

type UserMap

type UserMap map[Name]*User

func (UserMap) Delete

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

func (UserMap) ForEach

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

func (UserMap) Get

func (UserMap) Length

func (m UserMap) Length() int

func (UserMap) Set

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

type UserMapPathSelectorMetadataAnnotations

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

func (UserMapPathSelectorMetadataAnnotations) FieldPath

func (UserMapPathSelectorMetadataAnnotations) WithArrayOfValues

func (UserMapPathSelectorMetadataAnnotations) WithValue

type UserMapPathSelectorMetadataLabels

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

func (UserMapPathSelectorMetadataLabels) FieldPath

func (UserMapPathSelectorMetadataLabels) WithArrayOfValues

func (UserMapPathSelectorMetadataLabels) WithValue

type UserMapPathSelectorMetadataShards

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

func (UserMapPathSelectorMetadataShards) FieldPath

func (UserMapPathSelectorMetadataShards) WithArrayOfValues

func (UserMapPathSelectorMetadataShards) WithValue

type UserMapPathSelectorSettings

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

func (UserMapPathSelectorSettings) FieldPath

func (UserMapPathSelectorSettings) WithArrayOfValues

func (s UserMapPathSelectorSettings) WithArrayOfValues(values []string) *User_FieldPathMapArrayOfValues

func (UserMapPathSelectorSettings) WithValue

type UserNameList

type UserNameList []*Name

func (UserNameList) Append

func (UserNameList) AppendList

func (UserNameList) At

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

func (UserNameList) Length

func (l UserNameList) Length() int

func (UserNameList) Set

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

func (UserNameList) Slice

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

type UserPathSelectorAuthInfo

type UserPathSelectorAuthInfo struct{}

func (UserPathSelectorAuthInfo) FieldPath

func (UserPathSelectorAuthInfo) Id

func (UserPathSelectorAuthInfo) Provider

func (UserPathSelectorAuthInfo) WithArrayOfValues

func (UserPathSelectorAuthInfo) WithSubArrayItemValue

func (UserPathSelectorAuthInfo) WithSubArrayOfValues

func (UserPathSelectorAuthInfo) WithSubPath

func (UserPathSelectorAuthInfo) WithSubValue

func (UserPathSelectorAuthInfo) WithValue

type UserPathSelectorAuthInfoId

type UserPathSelectorAuthInfoId struct{}

func (UserPathSelectorAuthInfoId) FieldPath

func (UserPathSelectorAuthInfoId) WithArrayOfValues

func (s UserPathSelectorAuthInfoId) WithArrayOfValues(values []string) *User_FieldSubPathArrayOfValues

func (UserPathSelectorAuthInfoId) WithValue

type UserPathSelectorAuthInfoProvider

type UserPathSelectorAuthInfoProvider struct{}

func (UserPathSelectorAuthInfoProvider) FieldPath

func (UserPathSelectorAuthInfoProvider) WithArrayOfValues

func (UserPathSelectorAuthInfoProvider) WithValue

type UserPathSelectorEmail

type UserPathSelectorEmail struct{}

func (UserPathSelectorEmail) FieldPath

func (UserPathSelectorEmail) WithArrayOfValues

func (s UserPathSelectorEmail) WithArrayOfValues(values []string) *User_FieldTerminalPathArrayOfValues

func (UserPathSelectorEmail) WithValue

type UserPathSelectorEmailVerified

type UserPathSelectorEmailVerified struct{}

func (UserPathSelectorEmailVerified) FieldPath

func (UserPathSelectorEmailVerified) WithArrayOfValues

func (UserPathSelectorEmailVerified) WithValue

type UserPathSelectorFullName

type UserPathSelectorFullName struct{}

func (UserPathSelectorFullName) FieldPath

func (UserPathSelectorFullName) WithArrayOfValues

func (UserPathSelectorFullName) WithValue

type UserPathSelectorMetadata

type UserPathSelectorMetadata struct{}

func (UserPathSelectorMetadata) Annotations

func (UserPathSelectorMetadata) CreateTime

func (UserPathSelectorMetadata) DeleteTime added in v0.8.0

func (UserPathSelectorMetadata) FieldPath

func (UserPathSelectorMetadata) Generation

func (UserPathSelectorMetadata) Labels

func (UserPathSelectorMetadata) Lifecycle added in v0.8.0

func (UserPathSelectorMetadata) OwnerReferences

func (UserPathSelectorMetadata) ResourceVersion

func (UserPathSelectorMetadata) Shards

func (UserPathSelectorMetadata) Syncing

func (UserPathSelectorMetadata) Tags

func (UserPathSelectorMetadata) UpdateTime

func (UserPathSelectorMetadata) Uuid

func (UserPathSelectorMetadata) WithArrayOfValues

func (UserPathSelectorMetadata) WithSubArrayItemValue

func (UserPathSelectorMetadata) WithSubArrayOfValues

func (UserPathSelectorMetadata) WithSubPath

func (UserPathSelectorMetadata) WithSubValue

func (UserPathSelectorMetadata) WithValue

type UserPathSelectorMetadataAnnotations

type UserPathSelectorMetadataAnnotations struct{}

func (UserPathSelectorMetadataAnnotations) FieldPath

func (UserPathSelectorMetadataAnnotations) WithArrayOfValues

func (UserPathSelectorMetadataAnnotations) WithKey

func (UserPathSelectorMetadataAnnotations) WithValue

type UserPathSelectorMetadataCreateTime

type UserPathSelectorMetadataCreateTime struct{}

func (UserPathSelectorMetadataCreateTime) FieldPath

func (UserPathSelectorMetadataCreateTime) WithArrayOfValues

func (UserPathSelectorMetadataCreateTime) WithValue

type UserPathSelectorMetadataDeleteTime added in v0.8.0

type UserPathSelectorMetadataDeleteTime struct{}

func (UserPathSelectorMetadataDeleteTime) FieldPath added in v0.8.0

func (UserPathSelectorMetadataDeleteTime) WithArrayOfValues added in v0.8.0

func (UserPathSelectorMetadataDeleteTime) WithValue added in v0.8.0

type UserPathSelectorMetadataGeneration

type UserPathSelectorMetadataGeneration struct{}

func (UserPathSelectorMetadataGeneration) FieldPath

func (UserPathSelectorMetadataGeneration) WithArrayOfValues

func (UserPathSelectorMetadataGeneration) WithValue

type UserPathSelectorMetadataLabels

type UserPathSelectorMetadataLabels struct{}

func (UserPathSelectorMetadataLabels) FieldPath

func (UserPathSelectorMetadataLabels) WithArrayOfValues

func (UserPathSelectorMetadataLabels) WithKey

func (UserPathSelectorMetadataLabels) WithValue

type UserPathSelectorMetadataLifecycle added in v0.8.0

type UserPathSelectorMetadataLifecycle struct{}

func (UserPathSelectorMetadataLifecycle) BlockDeletion added in v0.8.0

func (UserPathSelectorMetadataLifecycle) FieldPath added in v0.8.0

func (UserPathSelectorMetadataLifecycle) State added in v0.8.0

func (UserPathSelectorMetadataLifecycle) WithArrayOfValues added in v0.8.0

func (UserPathSelectorMetadataLifecycle) WithValue added in v0.8.0

type UserPathSelectorMetadataLifecycleBlockDeletion added in v0.8.0

type UserPathSelectorMetadataLifecycleBlockDeletion struct{}

func (UserPathSelectorMetadataLifecycleBlockDeletion) FieldPath added in v0.8.0

func (UserPathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues added in v0.8.0

func (UserPathSelectorMetadataLifecycleBlockDeletion) WithValue added in v0.8.0

type UserPathSelectorMetadataLifecycleState added in v0.8.0

type UserPathSelectorMetadataLifecycleState struct{}

func (UserPathSelectorMetadataLifecycleState) FieldPath added in v0.8.0

func (UserPathSelectorMetadataLifecycleState) WithArrayOfValues added in v0.8.0

func (UserPathSelectorMetadataLifecycleState) WithValue added in v0.8.0

type UserPathSelectorMetadataOwnerReferences

type UserPathSelectorMetadataOwnerReferences struct{}

func (UserPathSelectorMetadataOwnerReferences) BlockOwnerDeletion

func (UserPathSelectorMetadataOwnerReferences) Controller

func (UserPathSelectorMetadataOwnerReferences) FieldPath

func (UserPathSelectorMetadataOwnerReferences) Kind

func (UserPathSelectorMetadataOwnerReferences) Name

func (UserPathSelectorMetadataOwnerReferences) Region added in v0.8.0

func (UserPathSelectorMetadataOwnerReferences) RequiresOwnerReference added in v0.8.0

func (UserPathSelectorMetadataOwnerReferences) Version added in v0.8.0

func (UserPathSelectorMetadataOwnerReferences) WithArrayOfValues

func (UserPathSelectorMetadataOwnerReferences) WithItemValue

func (UserPathSelectorMetadataOwnerReferences) WithValue

type UserPathSelectorMetadataOwnerReferencesBlockOwnerDeletion

type UserPathSelectorMetadataOwnerReferencesBlockOwnerDeletion struct{}

func (UserPathSelectorMetadataOwnerReferencesBlockOwnerDeletion) FieldPath

func (UserPathSelectorMetadataOwnerReferencesBlockOwnerDeletion) WithArrayOfValues

func (UserPathSelectorMetadataOwnerReferencesBlockOwnerDeletion) WithValue

type UserPathSelectorMetadataOwnerReferencesController

type UserPathSelectorMetadataOwnerReferencesController struct{}

func (UserPathSelectorMetadataOwnerReferencesController) FieldPath

func (UserPathSelectorMetadataOwnerReferencesController) WithArrayOfValues

func (UserPathSelectorMetadataOwnerReferencesController) WithValue

type UserPathSelectorMetadataOwnerReferencesKind

type UserPathSelectorMetadataOwnerReferencesKind struct{}

func (UserPathSelectorMetadataOwnerReferencesKind) FieldPath

func (UserPathSelectorMetadataOwnerReferencesKind) WithArrayOfValues

func (UserPathSelectorMetadataOwnerReferencesKind) WithValue

type UserPathSelectorMetadataOwnerReferencesName

type UserPathSelectorMetadataOwnerReferencesName struct{}

func (UserPathSelectorMetadataOwnerReferencesName) FieldPath

func (UserPathSelectorMetadataOwnerReferencesName) WithArrayOfValues

func (UserPathSelectorMetadataOwnerReferencesName) WithValue

type UserPathSelectorMetadataOwnerReferencesRegion added in v0.8.0

type UserPathSelectorMetadataOwnerReferencesRegion struct{}

func (UserPathSelectorMetadataOwnerReferencesRegion) FieldPath added in v0.8.0

func (UserPathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues added in v0.8.0

func (UserPathSelectorMetadataOwnerReferencesRegion) WithValue added in v0.8.0

type UserPathSelectorMetadataOwnerReferencesRequiresOwnerReference added in v0.8.0

type UserPathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{}

func (UserPathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath added in v0.8.0

func (UserPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues added in v0.8.0

func (UserPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue added in v0.8.0

type UserPathSelectorMetadataOwnerReferencesVersion added in v0.8.0

type UserPathSelectorMetadataOwnerReferencesVersion struct{}

func (UserPathSelectorMetadataOwnerReferencesVersion) FieldPath added in v0.8.0

func (UserPathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues added in v0.8.0

func (UserPathSelectorMetadataOwnerReferencesVersion) WithValue added in v0.8.0

type UserPathSelectorMetadataResourceVersion

type UserPathSelectorMetadataResourceVersion struct{}

func (UserPathSelectorMetadataResourceVersion) FieldPath

func (UserPathSelectorMetadataResourceVersion) WithArrayOfValues

func (UserPathSelectorMetadataResourceVersion) WithValue

type UserPathSelectorMetadataShards

type UserPathSelectorMetadataShards struct{}

func (UserPathSelectorMetadataShards) FieldPath

func (UserPathSelectorMetadataShards) WithArrayOfValues

func (UserPathSelectorMetadataShards) WithKey

func (UserPathSelectorMetadataShards) WithValue

type UserPathSelectorMetadataSyncing

type UserPathSelectorMetadataSyncing struct{}

func (UserPathSelectorMetadataSyncing) FieldPath

func (UserPathSelectorMetadataSyncing) OwningRegion

func (UserPathSelectorMetadataSyncing) Regions

func (UserPathSelectorMetadataSyncing) WithArrayOfValues

func (UserPathSelectorMetadataSyncing) WithValue

type UserPathSelectorMetadataSyncingOwningRegion

type UserPathSelectorMetadataSyncingOwningRegion struct{}

func (UserPathSelectorMetadataSyncingOwningRegion) FieldPath

func (UserPathSelectorMetadataSyncingOwningRegion) WithArrayOfValues

func (UserPathSelectorMetadataSyncingOwningRegion) WithValue

type UserPathSelectorMetadataSyncingRegions

type UserPathSelectorMetadataSyncingRegions struct{}

func (UserPathSelectorMetadataSyncingRegions) FieldPath

func (UserPathSelectorMetadataSyncingRegions) WithArrayOfValues

func (UserPathSelectorMetadataSyncingRegions) WithItemValue

func (UserPathSelectorMetadataSyncingRegions) WithValue

type UserPathSelectorMetadataTags

type UserPathSelectorMetadataTags struct{}

func (UserPathSelectorMetadataTags) FieldPath

func (UserPathSelectorMetadataTags) WithArrayOfValues

func (s UserPathSelectorMetadataTags) WithArrayOfValues(values [][]string) *User_FieldSubPathArrayOfValues

func (UserPathSelectorMetadataTags) WithItemValue

func (UserPathSelectorMetadataTags) WithValue

type UserPathSelectorMetadataUpdateTime

type UserPathSelectorMetadataUpdateTime struct{}

func (UserPathSelectorMetadataUpdateTime) FieldPath

func (UserPathSelectorMetadataUpdateTime) WithArrayOfValues

func (UserPathSelectorMetadataUpdateTime) WithValue

type UserPathSelectorMetadataUuid

type UserPathSelectorMetadataUuid struct{}

func (UserPathSelectorMetadataUuid) FieldPath

func (UserPathSelectorMetadataUuid) WithArrayOfValues

func (UserPathSelectorMetadataUuid) WithValue

type UserPathSelectorName

type UserPathSelectorName struct{}

func (UserPathSelectorName) FieldPath

func (UserPathSelectorName) WithArrayOfValues

func (s UserPathSelectorName) WithArrayOfValues(values []*Name) *User_FieldTerminalPathArrayOfValues

func (UserPathSelectorName) WithValue

type UserPathSelectorRefreshedTime

type UserPathSelectorRefreshedTime struct{}

func (UserPathSelectorRefreshedTime) FieldPath

func (UserPathSelectorRefreshedTime) WithArrayOfValues

func (UserPathSelectorRefreshedTime) WithValue

type UserPathSelectorSettings

type UserPathSelectorSettings struct{}

func (UserPathSelectorSettings) FieldPath

func (UserPathSelectorSettings) WithArrayOfValues

func (UserPathSelectorSettings) WithKey

func (UserPathSelectorSettings) WithValue

type UserReferenceList

type UserReferenceList []*Reference

func (UserReferenceList) Append

func (UserReferenceList) AppendList

func (UserReferenceList) At

func (UserReferenceList) Length

func (l UserReferenceList) Length() int

func (UserReferenceList) Set

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

func (UserReferenceList) Slice

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

type User_AuthInfo

type User_AuthInfo struct {

	// auth provider
	Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty" firestore:"provider"`
	// auth provider id
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty" firestore:"id"`
	// contains filtered or unexported fields
}

func (*User_AuthInfo) Clone

func (o *User_AuthInfo) Clone() *User_AuthInfo

func (*User_AuthInfo) CloneRaw

func (*User_AuthInfo) Descriptor

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

Deprecated, Use User_AuthInfo.ProtoReflect.Descriptor instead.

func (*User_AuthInfo) GetId

func (m *User_AuthInfo) GetId() string

func (*User_AuthInfo) GetProvider

func (m *User_AuthInfo) GetProvider() string

func (*User_AuthInfo) GotenMessage

func (*User_AuthInfo) GotenMessage()

func (*User_AuthInfo) GotenObjectExt

func (o *User_AuthInfo) GotenObjectExt()

func (*User_AuthInfo) GotenValidate

func (obj *User_AuthInfo) GotenValidate() error

func (*User_AuthInfo) MakeDiffFieldMask

func (o *User_AuthInfo) MakeDiffFieldMask(other *User_AuthInfo) *User_AuthInfo_FieldMask

func (*User_AuthInfo) MakeFullFieldMask

func (o *User_AuthInfo) MakeFullFieldMask() *User_AuthInfo_FieldMask

func (*User_AuthInfo) MakeRawDiffFieldMask

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

func (*User_AuthInfo) MakeRawFullFieldMask

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

func (*User_AuthInfo) Marshal

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

func (*User_AuthInfo) MarshalJSON

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

func (*User_AuthInfo) Merge

func (o *User_AuthInfo) Merge(source *User_AuthInfo)

func (*User_AuthInfo) MergeRaw

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

func (*User_AuthInfo) ProtoMessage

func (*User_AuthInfo) ProtoMessage()

func (*User_AuthInfo) ProtoReflect

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

func (*User_AuthInfo) Reset

func (m *User_AuthInfo) Reset()

func (*User_AuthInfo) SetId

func (m *User_AuthInfo) SetId(fv string)

func (*User_AuthInfo) SetProvider

func (m *User_AuthInfo) SetProvider(fv string)

func (*User_AuthInfo) String

func (m *User_AuthInfo) String() string

func (*User_AuthInfo) Unmarshal

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

func (*User_AuthInfo) UnmarshalJSON

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

type User_AuthInfoPathSelectorId

type User_AuthInfoPathSelectorId struct{}

func (User_AuthInfoPathSelectorId) FieldPath

func (User_AuthInfoPathSelectorId) WithArrayOfValues

func (User_AuthInfoPathSelectorId) WithValue

type User_AuthInfoPathSelectorProvider

type User_AuthInfoPathSelectorProvider struct{}

func (User_AuthInfoPathSelectorProvider) FieldPath

func (User_AuthInfoPathSelectorProvider) WithArrayOfValues

func (User_AuthInfoPathSelectorProvider) WithValue

type User_AuthInfo_FieldMask

type User_AuthInfo_FieldMask struct {
	Paths []UserAuthInfo_FieldPath
}

func FullUser_AuthInfo_FieldMask

func FullUser_AuthInfo_FieldMask() *User_AuthInfo_FieldMask

func (*User_AuthInfo_FieldMask) AppendPath

func (fieldMask *User_AuthInfo_FieldMask) AppendPath(path UserAuthInfo_FieldPath)

func (*User_AuthInfo_FieldMask) AppendRawPath

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

func (*User_AuthInfo_FieldMask) DecodeFirestore

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

func (*User_AuthInfo_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*User_AuthInfo_FieldMask) FilterInputFields

func (fieldMask *User_AuthInfo_FieldMask) FilterInputFields() *User_AuthInfo_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*User_AuthInfo_FieldMask) FromProtoFieldMask

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

func (*User_AuthInfo_FieldMask) GetPaths

func (fieldMask *User_AuthInfo_FieldMask) GetPaths() []UserAuthInfo_FieldPath

func (*User_AuthInfo_FieldMask) GetRawPaths

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

func (*User_AuthInfo_FieldMask) IsFull

func (fieldMask *User_AuthInfo_FieldMask) IsFull() bool

func (User_AuthInfo_FieldMask) Marshal

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

implement methods required by customType

func (User_AuthInfo_FieldMask) MarshalJSON

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

func (*User_AuthInfo_FieldMask) PathsCount

func (fieldMask *User_AuthInfo_FieldMask) PathsCount() int

func (*User_AuthInfo_FieldMask) Project

func (fieldMask *User_AuthInfo_FieldMask) Project(source *User_AuthInfo) *User_AuthInfo

func (*User_AuthInfo_FieldMask) ProjectRaw

func (*User_AuthInfo_FieldMask) ProtoMessage

func (fieldMask *User_AuthInfo_FieldMask) ProtoMessage()

func (*User_AuthInfo_FieldMask) ProtoReflect

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

func (*User_AuthInfo_FieldMask) Reset

func (fieldMask *User_AuthInfo_FieldMask) Reset()

func (*User_AuthInfo_FieldMask) Set

func (fieldMask *User_AuthInfo_FieldMask) Set(target, source *User_AuthInfo)

func (*User_AuthInfo_FieldMask) SetFromCliFlag

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

func (*User_AuthInfo_FieldMask) SetRaw

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

func (*User_AuthInfo_FieldMask) Size

func (fieldMask *User_AuthInfo_FieldMask) Size() int

func (*User_AuthInfo_FieldMask) String

func (fieldMask *User_AuthInfo_FieldMask) String() string

func (*User_AuthInfo_FieldMask) Subtract

func (*User_AuthInfo_FieldMask) SubtractRaw

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

func (*User_AuthInfo_FieldMask) ToProtoFieldMask

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

ToFieldMask is used for proto conversions

func (*User_AuthInfo_FieldMask) Unmarshal

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

func (*User_AuthInfo_FieldMask) UnmarshalJSON

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

type User_FieldMask

type User_FieldMask struct {
	Paths []User_FieldPath
}

func FullUser_FieldMask

func FullUser_FieldMask() *User_FieldMask

func ResourceViewFieldMask

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

func (*User_FieldMask) AppendPath

func (fieldMask *User_FieldMask) AppendPath(path User_FieldPath)

func (*User_FieldMask) AppendRawPath

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

func (*User_FieldMask) DecodeFirestore

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

func (*User_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*User_FieldMask) FilterInputFields

func (fieldMask *User_FieldMask) FilterInputFields() *User_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*User_FieldMask) FromProtoFieldMask

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

func (*User_FieldMask) GetPaths

func (fieldMask *User_FieldMask) GetPaths() []User_FieldPath

func (*User_FieldMask) GetRawPaths

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

func (*User_FieldMask) IsFull

func (fieldMask *User_FieldMask) IsFull() bool

func (User_FieldMask) Marshal

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

implement methods required by customType

func (User_FieldMask) MarshalJSON

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

func (*User_FieldMask) PathsCount

func (fieldMask *User_FieldMask) PathsCount() int

func (*User_FieldMask) Project

func (fieldMask *User_FieldMask) Project(source *User) *User

func (*User_FieldMask) ProjectRaw

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

func (*User_FieldMask) ProtoMessage

func (fieldMask *User_FieldMask) ProtoMessage()

func (*User_FieldMask) ProtoReflect

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

func (*User_FieldMask) Reset

func (fieldMask *User_FieldMask) Reset()

func (*User_FieldMask) Set

func (fieldMask *User_FieldMask) Set(target, source *User)

func (*User_FieldMask) SetFromCliFlag

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

func (*User_FieldMask) SetRaw

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

func (*User_FieldMask) Size

func (fieldMask *User_FieldMask) Size() int

func (*User_FieldMask) String

func (fieldMask *User_FieldMask) String() string

func (*User_FieldMask) Subtract

func (fieldMask *User_FieldMask) Subtract(other *User_FieldMask) *User_FieldMask

func (*User_FieldMask) SubtractRaw

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

func (*User_FieldMask) ToProtoFieldMask

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

ToFieldMask is used for proto conversions

func (*User_FieldMask) Unmarshal

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

func (*User_FieldMask) UnmarshalJSON

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

type User_FieldPath

type User_FieldPath interface {
	gotenobject.FieldPath
	Selector() User_FieldPathSelector
	Get(source *User) []interface{}
	GetSingle(source *User) (interface{}, bool)
	ClearValue(item *User)

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

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

func BuildUser_FieldPath

func BuildUser_FieldPath(fp gotenobject.RawFieldPath) (User_FieldPath, error)

func MustParseUser_FieldPath

func MustParseUser_FieldPath(rawField string) User_FieldPath

func ParseUser_FieldPath

func ParseUser_FieldPath(rawField string) (User_FieldPath, error)

type User_FieldPathArrayItemValue

type User_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	User_FieldPath
	ContainsValue(*User) bool
}

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

func MustParseUser_FieldPathArrayItemValue

func MustParseUser_FieldPathArrayItemValue(pathStr, valueStr string) User_FieldPathArrayItemValue

func ParseUser_FieldPathArrayItemValue

func ParseUser_FieldPathArrayItemValue(pathStr, valueStr string) (User_FieldPathArrayItemValue, error)

ParseUser_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type User_FieldPathArrayOfValues

type User_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	User_FieldPath
}

User_FieldPathArrayOfValues allows storing slice of values for User fields according to their type

func MustParseUser_FieldPathArrayOfValues

func MustParseUser_FieldPathArrayOfValues(pathStr, valuesStr string) User_FieldPathArrayOfValues

func ParseUser_FieldPathArrayOfValues

func ParseUser_FieldPathArrayOfValues(pathStr, valuesStr string) (User_FieldPathArrayOfValues, error)

type User_FieldPathMap

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

FieldPath for map type with additional Key information

func (*User_FieldPathMap) ClearValue

func (fpm *User_FieldPathMap) ClearValue(item *User)

func (*User_FieldPathMap) ClearValueRaw

func (fpm *User_FieldPathMap) ClearValueRaw(item proto.Message)

func (*User_FieldPathMap) Get

func (fpm *User_FieldPathMap) Get(source *User) (values []interface{})

Get returns all values pointed by selected field map key from source User

func (*User_FieldPathMap) GetDefault

func (fpm *User_FieldPathMap) GetDefault() interface{}

GetDefault returns a default value of the field type

func (*User_FieldPathMap) GetRaw

func (fpm *User_FieldPathMap) GetRaw(source proto.Message) []interface{}

func (*User_FieldPathMap) GetSingle

func (fpm *User_FieldPathMap) GetSingle(source *User) (interface{}, bool)

GetSingle returns value by selected field map key from source User

func (*User_FieldPathMap) GetSingleRaw

func (fpm *User_FieldPathMap) GetSingleRaw(source proto.Message) (interface{}, bool)

func (*User_FieldPathMap) IsLeaf

func (fpm *User_FieldPathMap) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*User_FieldPathMap) JSONString

func (fpm *User_FieldPathMap) JSONString() string

JSONString returns path representation is JSON convention. Note that map keys are not transformed

func (*User_FieldPathMap) Key

func (fpm *User_FieldPathMap) Key() string

func (*User_FieldPathMap) Selector

func (fpm *User_FieldPathMap) Selector() User_FieldPathSelector

func (*User_FieldPathMap) SplitIntoTerminalIPaths added in v0.8.0

func (fpm *User_FieldPathMap) SplitIntoTerminalIPaths() []gotenobject.FieldPath

func (*User_FieldPathMap) String

func (fpm *User_FieldPathMap) String() string

String returns path representation in proto convention

func (*User_FieldPathMap) WithIArrayItemValue

func (fpm *User_FieldPathMap) WithIArrayItemValue(value interface{}) User_FieldPathArrayItemValue

func (*User_FieldPathMap) WithIArrayOfValues

func (fpm *User_FieldPathMap) WithIArrayOfValues(values interface{}) User_FieldPathArrayOfValues

func (*User_FieldPathMap) WithIValue

func (fpm *User_FieldPathMap) WithIValue(value interface{}) User_FieldPathValue

func (*User_FieldPathMap) WithRawIArrayItemValue

func (fpm *User_FieldPathMap) WithRawIArrayItemValue(value interface{}) gotenobject.FieldPathArrayItemValue

func (*User_FieldPathMap) WithRawIArrayOfValues

func (fpm *User_FieldPathMap) WithRawIArrayOfValues(values interface{}) gotenobject.FieldPathArrayOfValues

func (*User_FieldPathMap) WithRawIValue

func (fpm *User_FieldPathMap) WithRawIValue(value interface{}) gotenobject.FieldPathValue

type User_FieldPathMapArrayOfValues

type User_FieldPathMapArrayOfValues struct {
	User_FieldPathMap
	// contains filtered or unexported fields
}

func (*User_FieldPathMapArrayOfValues) AsSettingsArrayOfElementValues

func (fpmaov *User_FieldPathMapArrayOfValues) AsSettingsArrayOfElementValues() ([]string, bool)

func (*User_FieldPathMapArrayOfValues) GetRawValues

func (fpmaov *User_FieldPathMapArrayOfValues) GetRawValues() (values []interface{})

type User_FieldPathMapValue

type User_FieldPathMapValue struct {
	User_FieldPathMap
	// contains filtered or unexported fields
}

func (*User_FieldPathMapValue) AsSettingsElementValue

func (fpmv *User_FieldPathMapValue) AsSettingsElementValue() (string, bool)

func (*User_FieldPathMapValue) CompareWith

func (fpmv *User_FieldPathMapValue) CompareWith(source *User) (int, bool)

CompareWith compares value in the 'User_FieldPathMapValue' with the value under path in 'User'.

func (*User_FieldPathMapValue) CompareWithRaw

func (fpmv *User_FieldPathMapValue) CompareWithRaw(source proto.Message) (int, bool)

func (*User_FieldPathMapValue) GetRawValue

func (fpmv *User_FieldPathMapValue) GetRawValue() interface{}

GetValue returns value stored under selected field in User as interface{}

func (*User_FieldPathMapValue) SetTo

func (fpmv *User_FieldPathMapValue) SetTo(target **User)

SetTo stores value for selected field in User

func (*User_FieldPathMapValue) SetToRaw

func (fpmv *User_FieldPathMapValue) SetToRaw(target proto.Message)

type User_FieldPathSelector

type User_FieldPathSelector int32
const (
	User_FieldPathSelectorName          User_FieldPathSelector = 0
	User_FieldPathSelectorFullName      User_FieldPathSelector = 1
	User_FieldPathSelectorMetadata      User_FieldPathSelector = 2
	User_FieldPathSelectorEmail         User_FieldPathSelector = 3
	User_FieldPathSelectorEmailVerified User_FieldPathSelector = 4
	User_FieldPathSelectorAuthInfo      User_FieldPathSelector = 5
	User_FieldPathSelectorSettings      User_FieldPathSelector = 6
	User_FieldPathSelectorRefreshedTime User_FieldPathSelector = 7
)

func (User_FieldPathSelector) String

func (s User_FieldPathSelector) String() string

type User_FieldPathValue

type User_FieldPathValue interface {
	User_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **User)
	CompareWith(*User) (cmp int, comparable bool)
}

User_FieldPathValue allows storing values for User fields according to their type

func MustParseUser_FieldPathValue

func MustParseUser_FieldPathValue(pathStr, valueStr string) User_FieldPathValue

func ParseUser_FieldPathValue

func ParseUser_FieldPathValue(pathStr, valueStr string) (User_FieldPathValue, error)

type User_FieldSubPath

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

func (*User_FieldSubPath) AsAuthInfoSubPath

func (fps *User_FieldSubPath) AsAuthInfoSubPath() (UserAuthInfo_FieldPath, bool)

func (*User_FieldSubPath) AsMetadataSubPath

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

func (*User_FieldSubPath) ClearValue

func (fps *User_FieldSubPath) ClearValue(item *User)

func (*User_FieldSubPath) ClearValueRaw

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

func (*User_FieldSubPath) Get

func (fps *User_FieldSubPath) Get(source *User) (values []interface{})

Get returns all values pointed by selected field from source User

func (*User_FieldSubPath) GetDefault

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

GetDefault returns a default value of the field type

func (*User_FieldSubPath) GetRaw

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

func (*User_FieldSubPath) GetSingle

func (fps *User_FieldSubPath) GetSingle(source *User) (interface{}, bool)

GetSingle returns value of selected field from source User

func (*User_FieldSubPath) GetSingleRaw

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

func (*User_FieldSubPath) IsLeaf

func (fps *User_FieldSubPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*User_FieldSubPath) JSONString

func (fps *User_FieldSubPath) JSONString() string

JSONString returns path representation is JSON convention

func (*User_FieldSubPath) Selector

func (fps *User_FieldSubPath) Selector() User_FieldPathSelector

func (*User_FieldSubPath) SplitIntoTerminalIPaths added in v0.8.0

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

func (*User_FieldSubPath) String

func (fps *User_FieldSubPath) String() string

String returns path representation in proto convention

func (*User_FieldSubPath) WithIArrayItemValue

func (fps *User_FieldSubPath) WithIArrayItemValue(value interface{}) User_FieldPathArrayItemValue

func (*User_FieldSubPath) WithIArrayOfValues

func (fps *User_FieldSubPath) WithIArrayOfValues(values interface{}) User_FieldPathArrayOfValues

func (*User_FieldSubPath) WithIValue

func (fps *User_FieldSubPath) WithIValue(value interface{}) User_FieldPathValue

func (*User_FieldSubPath) WithRawIArrayItemValue

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

func (*User_FieldSubPath) WithRawIArrayOfValues

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

func (*User_FieldSubPath) WithRawIValue

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

type User_FieldSubPathArrayItemValue

type User_FieldSubPathArrayItemValue struct {
	User_FieldPath
	// contains filtered or unexported fields
}

func (*User_FieldSubPathArrayItemValue) AsAuthInfoPathItemValue

func (fpaivs *User_FieldSubPathArrayItemValue) AsAuthInfoPathItemValue() (UserAuthInfo_FieldPathArrayItemValue, bool)

func (*User_FieldSubPathArrayItemValue) AsMetadataPathItemValue

func (fpaivs *User_FieldSubPathArrayItemValue) AsMetadataPathItemValue() (ntt_meta.Meta_FieldPathArrayItemValue, bool)

func (*User_FieldSubPathArrayItemValue) ContainsValue

func (fpaivs *User_FieldSubPathArrayItemValue) ContainsValue(source *User) bool

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

func (*User_FieldSubPathArrayItemValue) GetRawItemValue

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

GetRawValue returns stored array item value

type User_FieldSubPathArrayOfValues

type User_FieldSubPathArrayOfValues struct {
	User_FieldPath
	// contains filtered or unexported fields
}

func (*User_FieldSubPathArrayOfValues) AsAuthInfoPathArrayOfValues

func (fpsaov *User_FieldSubPathArrayOfValues) AsAuthInfoPathArrayOfValues() (UserAuthInfo_FieldPathArrayOfValues, bool)

func (*User_FieldSubPathArrayOfValues) AsMetadataPathArrayOfValues

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

func (*User_FieldSubPathArrayOfValues) GetRawValues

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

type User_FieldSubPathValue

type User_FieldSubPathValue struct {
	User_FieldPath
	// contains filtered or unexported fields
}

func (*User_FieldSubPathValue) AsAuthInfoPathValue

func (fpvs *User_FieldSubPathValue) AsAuthInfoPathValue() (UserAuthInfo_FieldPathValue, bool)

func (*User_FieldSubPathValue) AsMetadataPathValue

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

func (*User_FieldSubPathValue) CompareWith

func (fpvs *User_FieldSubPathValue) CompareWith(source *User) (int, bool)

func (*User_FieldSubPathValue) CompareWithRaw

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

func (*User_FieldSubPathValue) GetRawValue

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

func (*User_FieldSubPathValue) SetTo

func (fpvs *User_FieldSubPathValue) SetTo(target **User)

func (*User_FieldSubPathValue) SetToRaw

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

type User_FieldTerminalPath

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

func (*User_FieldTerminalPath) ClearValue

func (fp *User_FieldTerminalPath) ClearValue(item *User)

func (*User_FieldTerminalPath) ClearValueRaw

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

func (*User_FieldTerminalPath) Get

func (fp *User_FieldTerminalPath) Get(source *User) (values []interface{})

Get returns all values pointed by specific field from source User

func (*User_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*User_FieldTerminalPath) GetRaw

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

func (*User_FieldTerminalPath) GetSingle

func (fp *User_FieldTerminalPath) GetSingle(source *User) (interface{}, bool)

GetSingle returns value pointed by specific field of from source User

func (*User_FieldTerminalPath) GetSingleRaw

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

func (*User_FieldTerminalPath) IsLeaf

func (fp *User_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*User_FieldTerminalPath) JSONString

func (fp *User_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*User_FieldTerminalPath) Selector

func (*User_FieldTerminalPath) SplitIntoTerminalIPaths added in v0.8.0

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

func (*User_FieldTerminalPath) String

func (fp *User_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*User_FieldTerminalPath) WithIArrayItemValue

func (fp *User_FieldTerminalPath) WithIArrayItemValue(value interface{}) User_FieldPathArrayItemValue

func (*User_FieldTerminalPath) WithIArrayOfValues

func (fp *User_FieldTerminalPath) WithIArrayOfValues(values interface{}) User_FieldPathArrayOfValues

func (*User_FieldTerminalPath) WithIValue

func (fp *User_FieldTerminalPath) WithIValue(value interface{}) User_FieldPathValue

func (*User_FieldTerminalPath) WithRawIArrayItemValue

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

func (*User_FieldTerminalPath) WithRawIArrayOfValues

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

func (*User_FieldTerminalPath) WithRawIValue

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

type User_FieldTerminalPathArrayItemValue

type User_FieldTerminalPathArrayItemValue struct {
	User_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*User_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *User_FieldTerminalPathArrayItemValue) ContainsValue(source *User) bool

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

func (*User_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*User_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *User_FieldTerminalPathArrayItemValue) GetSingle(source *User) (interface{}, bool)

func (*User_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type User_FieldTerminalPathArrayOfValues

type User_FieldTerminalPathArrayOfValues struct {
	User_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*User_FieldTerminalPathArrayOfValues) AsAuthInfoArrayOfValues

func (fpaov *User_FieldTerminalPathArrayOfValues) AsAuthInfoArrayOfValues() ([]*User_AuthInfo, bool)

func (*User_FieldTerminalPathArrayOfValues) AsEmailArrayOfValues

func (fpaov *User_FieldTerminalPathArrayOfValues) AsEmailArrayOfValues() ([]string, bool)

func (*User_FieldTerminalPathArrayOfValues) AsEmailVerifiedArrayOfValues

func (fpaov *User_FieldTerminalPathArrayOfValues) AsEmailVerifiedArrayOfValues() ([]bool, bool)

func (*User_FieldTerminalPathArrayOfValues) AsFullNameArrayOfValues

func (fpaov *User_FieldTerminalPathArrayOfValues) AsFullNameArrayOfValues() ([]string, bool)

func (*User_FieldTerminalPathArrayOfValues) AsMetadataArrayOfValues

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

func (*User_FieldTerminalPathArrayOfValues) AsNameArrayOfValues

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

func (*User_FieldTerminalPathArrayOfValues) AsRefreshedTimeArrayOfValues

func (fpaov *User_FieldTerminalPathArrayOfValues) AsRefreshedTimeArrayOfValues() ([]*timestamp.Timestamp, bool)

func (*User_FieldTerminalPathArrayOfValues) AsSettingsArrayOfValues

func (fpaov *User_FieldTerminalPathArrayOfValues) AsSettingsArrayOfValues() ([]map[string]string, bool)

func (*User_FieldTerminalPathArrayOfValues) GetRawValues

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

type User_FieldTerminalPathValue

type User_FieldTerminalPathValue struct {
	User_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*User_FieldTerminalPathValue) AsAuthInfoValue

func (fpv *User_FieldTerminalPathValue) AsAuthInfoValue() (*User_AuthInfo, bool)

func (*User_FieldTerminalPathValue) AsEmailValue

func (fpv *User_FieldTerminalPathValue) AsEmailValue() (string, bool)

func (*User_FieldTerminalPathValue) AsEmailVerifiedValue

func (fpv *User_FieldTerminalPathValue) AsEmailVerifiedValue() (bool, bool)

func (*User_FieldTerminalPathValue) AsFullNameValue

func (fpv *User_FieldTerminalPathValue) AsFullNameValue() (string, bool)

func (*User_FieldTerminalPathValue) AsMetadataValue

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

func (*User_FieldTerminalPathValue) AsNameValue

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

func (*User_FieldTerminalPathValue) AsRefreshedTimeValue

func (fpv *User_FieldTerminalPathValue) AsRefreshedTimeValue() (*timestamp.Timestamp, bool)

func (*User_FieldTerminalPathValue) AsSettingsValue

func (fpv *User_FieldTerminalPathValue) AsSettingsValue() (map[string]string, bool)

func (*User_FieldTerminalPathValue) CompareWith

func (fpv *User_FieldTerminalPathValue) CompareWith(source *User) (int, bool)

CompareWith compares value in the 'User_FieldTerminalPathValue' with the value under path in 'User'.

func (*User_FieldTerminalPathValue) CompareWithRaw

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

func (*User_FieldTerminalPathValue) GetRawValue

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

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

func (*User_FieldTerminalPathValue) SetTo

func (fpv *User_FieldTerminalPathValue) SetTo(target **User)

SetTo stores value for selected field for object User

func (*User_FieldTerminalPathValue) SetToRaw

func (fpv *User_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