condition

package
v1.5.12 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamePattern_Nil          = "conditions/{condition}"
	NamePattern_Project      = "projects/{project}/conditions/{condition}"
	NamePattern_Organization = "organizations/{organization}/conditions/{condition}"
	NamePattern_Service      = "services/{service}/conditions/{condition}"
)

Variables

View Source
var (
	Condition_ParameterType_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "STRING",
		2: "INT64",
		3: "DOUBLE",
		4: "BOOL",
		5: "STRING_ARRAY",
		6: "INT64_ARRAY",
		7: "DOUBLE_ARRAY",
		8: "BOOL_ARRAY",
		9: "OBJECT",
	}

	Condition_ParameterType_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"STRING":           1,
		"INT64":            2,
		"DOUBLE":           3,
		"BOOL":             4,
		"STRING_ARRAY":     5,
		"INT64_ARRAY":      6,
		"DOUBLE_ARRAY":     7,
		"BOOL_ARRAY":       8,
		"OBJECT":           9,
	}
)

Functions

func AsAnyCastAccess

func AsAnyCastAccess(access ConditionAccess) gotenresource.Access

Types

type Condition

type Condition struct {

	// Name of Condition
	// When creating a new instance, this field is optional and if not provided,
	// it will be generated automatically. Last ID segment must conform to the
	// following regex: [a-z][a-z0-9\\-]{0,28}[a-z0-9]
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// Metadata is an object with information like create, update and delete time
	// (for async deleted resources), has user labels/annotations, sharding
	// information, multi-region syncing information and may have non-schema
	// owners (useful for taking ownership of resources belonging to lower level
	// services by higher ones).
	Metadata *meta.Meta `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty" firestore:"metadata"`
	// Display Name
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty" firestore:"displayName"`
	// Description
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" firestore:"description"`
	// Condition expression in [Google
	// CEL](https://github.com/google/cel-spec/blob/v0.4.0/doc/intro.md), syntax,
	// e.g. `resource.name == "projects/xyz/instances/abc"`
	//
	// Accessible parameters:
	// | variable | type | description | examples |
	// |-|-|-|-|
	// | `resource.body` | `string` | Resource type | `"iam.edgelq.com/Condition"`
	// | | `request.action` | `string` | Action verb | `"create"`, `"batchGet"` |
	// | `request.body` | `dyn` | Request body (in native format). |
	// request.body.page_size | | `parameters` | `map(string, dyn)` | Bound
	// parameters. | `parameters.minSeverity` | | `attest.policy` | `string` |
	// Name of attestation policy attested with by the atestee; empty string if
	// none. | `""`, `"projects/myProj/AttestationPolicies/myPol"` |
	//
	// Extension:
	//
	// Some
	//
	// Filter.`satisfies(other)`
	//
	// Access is determined by the return value. Return `true` to grant access or
	// `false` to deny. Any execution error results in access denied.
	Expression string `protobuf:"bytes,4,opt,name=expression,proto3" json:"expression,omitempty" firestore:"expression"`
	// Typed parameters declarations. When binding a Condition passed parameters
	// must correspond to declarations.
	ParameterDeclarations []*Condition_ParameterDeclaration `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

Condition Resource represents executable condition template in Google CEL language, as specified in https://github.com/google/cel-spec/blob/v0.4.0/doc/intro.md. It may be used for more advanced cases compared to the resource/request conditions available in Role grant definitions.

func (*Condition) Clone

func (o *Condition) Clone() *Condition

func (*Condition) CloneRaw

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

func (*Condition) Descriptor

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

Deprecated, Use Condition.ProtoReflect.Descriptor instead.

func (*Condition) EnsureMetadata

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

func (*Condition) GetDescription

func (m *Condition) GetDescription() string

func (*Condition) GetDisplayName

func (m *Condition) GetDisplayName() string

func (*Condition) GetExpression

func (m *Condition) GetExpression() string

func (*Condition) GetMetadata

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

func (*Condition) GetName

func (m *Condition) GetName() *Name

func (*Condition) GetParameterDeclarations

func (m *Condition) GetParameterDeclarations() []*Condition_ParameterDeclaration

func (*Condition) GetRawName

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

func (*Condition) GetResourceDescriptor

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

func (*Condition) GotenMessage

func (*Condition) GotenMessage()

func (*Condition) GotenObjectExt

func (o *Condition) GotenObjectExt()

func (*Condition) GotenValidate

func (obj *Condition) GotenValidate() error

func (*Condition) MakeDiffFieldMask

func (o *Condition) MakeDiffFieldMask(other *Condition) *Condition_FieldMask

func (*Condition) MakeFullFieldMask

func (o *Condition) MakeFullFieldMask() *Condition_FieldMask

func (*Condition) MakeRawDiffFieldMask

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

func (*Condition) MakeRawFullFieldMask

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

func (*Condition) Marshal

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

func (*Condition) MarshalJSON

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

func (*Condition) MaybePopulateDefaults

func (r *Condition) MaybePopulateDefaults() error

func (*Condition) Merge

func (o *Condition) Merge(source *Condition)

func (*Condition) MergeRaw

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

func (*Condition) ProtoMessage

func (*Condition) ProtoMessage()

func (*Condition) ProtoReflect

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

func (*Condition) Reset

func (m *Condition) Reset()

func (*Condition) SetDescription

func (m *Condition) SetDescription(fv string)

func (*Condition) SetDisplayName

func (m *Condition) SetDisplayName(fv string)

func (*Condition) SetExpression

func (m *Condition) SetExpression(fv string)

func (*Condition) SetMetadata

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

func (*Condition) SetName

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

func (*Condition) SetParameterDeclarations

func (m *Condition) SetParameterDeclarations(fv []*Condition_ParameterDeclaration)

func (*Condition) String

func (m *Condition) String() string

func (*Condition) Unmarshal

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

func (*Condition) UnmarshalJSON

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

type ConditionAccess

type ConditionAccess interface {
	GetCondition(context.Context, *GetQuery) (*Condition, error)
	BatchGetConditions(context.Context, []*Reference, ...gotenresource.BatchGetOption) error
	QueryConditions(context.Context, *ListQuery) (*QueryResultSnapshot, error)
	WatchCondition(context.Context, *GetQuery, func(*ConditionChange) error) error
	WatchConditions(context.Context, *WatchQuery, func(*QueryResultChange) error) error
	SaveCondition(context.Context, *Condition, ...gotenresource.SaveOption) error
	DeleteCondition(context.Context, *Reference, ...gotenresource.DeleteOption) error
}

type ConditionChange

type ConditionChange struct {

	// Condition change
	//
	// Types that are valid to be assigned to ChangeType:
	//	*ConditionChange_Added_
	//	*ConditionChange_Modified_
	//	*ConditionChange_Current_
	//	*ConditionChange_Removed_
	ChangeType isConditionChange_ChangeType `protobuf_oneof:"change_type"`
	// contains filtered or unexported fields
}

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

func (*ConditionChange) Descriptor

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

Deprecated, Use ConditionChange.ProtoReflect.Descriptor instead.

func (*ConditionChange) GetAdded

func (m *ConditionChange) GetAdded() *ConditionChange_Added

func (*ConditionChange) GetChangeType

func (m *ConditionChange) GetChangeType() isConditionChange_ChangeType

func (*ConditionChange) GetCondition

func (c *ConditionChange) GetCondition() *Condition

func (*ConditionChange) GetConditionName

func (c *ConditionChange) GetConditionName() *Name

func (*ConditionChange) GetCurrent

func (m *ConditionChange) GetCurrent() *ConditionChange_Current

func (*ConditionChange) GetCurrentViewIndex

func (c *ConditionChange) GetCurrentViewIndex() int32

func (*ConditionChange) GetModified

func (m *ConditionChange) GetModified() *ConditionChange_Modified

func (*ConditionChange) GetPreviousViewIndex

func (c *ConditionChange) GetPreviousViewIndex() int32

func (*ConditionChange) GetRawName

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

func (*ConditionChange) GetRawResource

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

func (*ConditionChange) GetRemoved

func (m *ConditionChange) GetRemoved() *ConditionChange_Removed

func (*ConditionChange) GotenMessage

func (*ConditionChange) GotenMessage()

func (*ConditionChange) GotenValidate

func (obj *ConditionChange) GotenValidate() error

func (*ConditionChange) IsAdd

func (c *ConditionChange) IsAdd() bool

func (*ConditionChange) IsCurrent

func (c *ConditionChange) IsCurrent() bool

func (*ConditionChange) IsDelete

func (c *ConditionChange) IsDelete() bool

func (*ConditionChange) IsModify

func (c *ConditionChange) IsModify() bool

func (*ConditionChange) Marshal

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

func (*ConditionChange) MarshalJSON

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

func (*ConditionChange) ProtoMessage

func (*ConditionChange) ProtoMessage()

func (*ConditionChange) ProtoReflect

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

func (*ConditionChange) Reset

func (m *ConditionChange) Reset()

func (*ConditionChange) SetAdded

func (m *ConditionChange) SetAdded(fv *ConditionChange_Added)

func (*ConditionChange) SetAddedRaw

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

func (*ConditionChange) SetChangeType

func (m *ConditionChange) SetChangeType(ofv isConditionChange_ChangeType)

func (*ConditionChange) SetCurrent

func (m *ConditionChange) SetCurrent(fv *ConditionChange_Current)

func (*ConditionChange) SetCurrentRaw

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

func (*ConditionChange) SetDeletedRaw

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

func (*ConditionChange) SetModified

func (m *ConditionChange) SetModified(fv *ConditionChange_Modified)

func (*ConditionChange) SetModifiedRaw

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

func (*ConditionChange) SetRemoved

func (m *ConditionChange) SetRemoved(fv *ConditionChange_Removed)

func (*ConditionChange) String

func (m *ConditionChange) String() string

func (*ConditionChange) Unmarshal

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

func (*ConditionChange) UnmarshalJSON

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

type ConditionChangeList

type ConditionChangeList []*ConditionChange

func (ConditionChangeList) Append

func (ConditionChangeList) At

func (ConditionChangeList) Length

func (l ConditionChangeList) Length() int

func (ConditionChangeList) Set

func (ConditionChangeList) Slice

type ConditionChangeMap

type ConditionChangeMap map[Name]*ConditionChange

func (ConditionChangeMap) Delete

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

func (ConditionChangeMap) ForEach

func (ConditionChangeMap) Get

func (ConditionChangeMap) Length

func (m ConditionChangeMap) Length() int

func (ConditionChangeMap) Set

type ConditionChange_Added

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

Condition has been added to query view

func (*ConditionChange_Added) Descriptor

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

Deprecated, Use ConditionChange_Added.ProtoReflect.Descriptor instead.

func (*ConditionChange_Added) GetCondition

func (m *ConditionChange_Added) GetCondition() *Condition

func (*ConditionChange_Added) GetViewIndex

func (m *ConditionChange_Added) GetViewIndex() int32

func (*ConditionChange_Added) GotenMessage

func (*ConditionChange_Added) GotenMessage()

func (*ConditionChange_Added) GotenValidate

func (obj *ConditionChange_Added) GotenValidate() error

func (*ConditionChange_Added) Marshal

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

func (*ConditionChange_Added) MarshalJSON

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

func (*ConditionChange_Added) ProtoMessage

func (*ConditionChange_Added) ProtoMessage()

func (*ConditionChange_Added) ProtoReflect

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

func (*ConditionChange_Added) Reset

func (m *ConditionChange_Added) Reset()

func (*ConditionChange_Added) SetCondition

func (m *ConditionChange_Added) SetCondition(fv *Condition)

func (*ConditionChange_Added) SetViewIndex

func (m *ConditionChange_Added) SetViewIndex(fv int32)

func (*ConditionChange_Added) String

func (m *ConditionChange_Added) String() string

func (*ConditionChange_Added) Unmarshal

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

func (*ConditionChange_Added) UnmarshalJSON

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

type ConditionChange_Added_

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

type ConditionChange_Current

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

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

func (*ConditionChange_Current) Descriptor

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

Deprecated, Use ConditionChange_Current.ProtoReflect.Descriptor instead.

func (*ConditionChange_Current) GetCondition

func (m *ConditionChange_Current) GetCondition() *Condition

func (*ConditionChange_Current) GotenMessage

func (*ConditionChange_Current) GotenMessage()

func (*ConditionChange_Current) GotenValidate

func (obj *ConditionChange_Current) GotenValidate() error

func (*ConditionChange_Current) Marshal

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

func (*ConditionChange_Current) MarshalJSON

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

func (*ConditionChange_Current) ProtoMessage

func (*ConditionChange_Current) ProtoMessage()

func (*ConditionChange_Current) ProtoReflect

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

func (*ConditionChange_Current) Reset

func (m *ConditionChange_Current) Reset()

func (*ConditionChange_Current) SetCondition

func (m *ConditionChange_Current) SetCondition(fv *Condition)

func (*ConditionChange_Current) String

func (m *ConditionChange_Current) String() string

func (*ConditionChange_Current) Unmarshal

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

func (*ConditionChange_Current) UnmarshalJSON

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

type ConditionChange_Current_

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

type ConditionChange_Modified

type ConditionChange_Modified struct {

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

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

func (*ConditionChange_Modified) Descriptor

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

Deprecated, Use ConditionChange_Modified.ProtoReflect.Descriptor instead.

func (*ConditionChange_Modified) GetCondition

func (m *ConditionChange_Modified) GetCondition() *Condition

func (*ConditionChange_Modified) GetFieldMask

func (m *ConditionChange_Modified) GetFieldMask() *Condition_FieldMask

func (*ConditionChange_Modified) GetName

func (m *ConditionChange_Modified) GetName() *Name

func (*ConditionChange_Modified) GetPreviousViewIndex

func (m *ConditionChange_Modified) GetPreviousViewIndex() int32

func (*ConditionChange_Modified) GetViewIndex

func (m *ConditionChange_Modified) GetViewIndex() int32

func (*ConditionChange_Modified) GotenMessage

func (*ConditionChange_Modified) GotenMessage()

func (*ConditionChange_Modified) GotenValidate

func (obj *ConditionChange_Modified) GotenValidate() error

func (*ConditionChange_Modified) Marshal

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

func (*ConditionChange_Modified) MarshalJSON

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

func (*ConditionChange_Modified) ProtoMessage

func (*ConditionChange_Modified) ProtoMessage()

func (*ConditionChange_Modified) ProtoReflect

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

func (*ConditionChange_Modified) Reset

func (m *ConditionChange_Modified) Reset()

func (*ConditionChange_Modified) SetCondition

func (m *ConditionChange_Modified) SetCondition(fv *Condition)

func (*ConditionChange_Modified) SetFieldMask

func (m *ConditionChange_Modified) SetFieldMask(fv *Condition_FieldMask)

func (*ConditionChange_Modified) SetName

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

func (*ConditionChange_Modified) SetPreviousViewIndex

func (m *ConditionChange_Modified) SetPreviousViewIndex(fv int32)

func (*ConditionChange_Modified) SetViewIndex

func (m *ConditionChange_Modified) SetViewIndex(fv int32)

func (*ConditionChange_Modified) String

func (m *ConditionChange_Modified) String() string

func (*ConditionChange_Modified) Unmarshal

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

func (*ConditionChange_Modified) UnmarshalJSON

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

type ConditionChange_Modified_

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

type ConditionChange_Removed

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

func (*ConditionChange_Removed) Descriptor

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

Deprecated, Use ConditionChange_Removed.ProtoReflect.Descriptor instead.

func (*ConditionChange_Removed) GetName

func (m *ConditionChange_Removed) GetName() *Name

func (*ConditionChange_Removed) GetViewIndex

func (m *ConditionChange_Removed) GetViewIndex() int32

func (*ConditionChange_Removed) GotenMessage

func (*ConditionChange_Removed) GotenMessage()

func (*ConditionChange_Removed) GotenValidate

func (obj *ConditionChange_Removed) GotenValidate() error

func (*ConditionChange_Removed) Marshal

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

func (*ConditionChange_Removed) MarshalJSON

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

func (*ConditionChange_Removed) ProtoMessage

func (*ConditionChange_Removed) ProtoMessage()

func (*ConditionChange_Removed) ProtoReflect

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

func (*ConditionChange_Removed) Reset

func (m *ConditionChange_Removed) Reset()

func (*ConditionChange_Removed) SetName

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

func (*ConditionChange_Removed) SetViewIndex

func (m *ConditionChange_Removed) SetViewIndex(fv int32)

func (*ConditionChange_Removed) String

func (m *ConditionChange_Removed) String() string

func (*ConditionChange_Removed) Unmarshal

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

func (*ConditionChange_Removed) UnmarshalJSON

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

type ConditionChange_Removed_

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

type ConditionFieldPathBuilder

type ConditionFieldPathBuilder struct{}

func NewConditionFieldPathBuilder

func NewConditionFieldPathBuilder() ConditionFieldPathBuilder

func (ConditionFieldPathBuilder) Description

func (ConditionFieldPathBuilder) DisplayName

func (ConditionFieldPathBuilder) Expression

func (ConditionFieldPathBuilder) Metadata

func (ConditionFieldPathBuilder) Name

func (ConditionFieldPathBuilder) ParameterDeclarations

type ConditionList

type ConditionList []*Condition

func (ConditionList) Append

func (ConditionList) AppendList

func (ConditionList) At

func (ConditionList) Length

func (l ConditionList) Length() int

func (ConditionList) Set

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

func (ConditionList) Slice

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

type ConditionMap

type ConditionMap map[Name]*Condition

func (ConditionMap) Delete

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

func (ConditionMap) ForEach

func (ConditionMap) Get

func (ConditionMap) Length

func (m ConditionMap) Length() int

func (ConditionMap) Set

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

type ConditionMapPathSelectorMetadataAnnotations

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

func (ConditionMapPathSelectorMetadataAnnotations) FieldPath

func (ConditionMapPathSelectorMetadataAnnotations) WithArrayOfValues

func (ConditionMapPathSelectorMetadataAnnotations) WithValue

type ConditionMapPathSelectorMetadataLabels

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

func (ConditionMapPathSelectorMetadataLabels) FieldPath

func (ConditionMapPathSelectorMetadataLabels) WithArrayOfValues

func (ConditionMapPathSelectorMetadataLabels) WithValue

type ConditionMapPathSelectorMetadataShards

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

func (ConditionMapPathSelectorMetadataShards) FieldPath

func (ConditionMapPathSelectorMetadataShards) WithArrayOfValues

func (ConditionMapPathSelectorMetadataShards) WithValue

type ConditionNameList

type ConditionNameList []*Name

func (ConditionNameList) Append

func (ConditionNameList) AppendList

func (ConditionNameList) At

func (ConditionNameList) Length

func (l ConditionNameList) Length() int

func (ConditionNameList) Set

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

func (ConditionNameList) Slice

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

type ConditionParameterDeclarationFieldPathBuilder

type ConditionParameterDeclarationFieldPathBuilder struct{}

func NewConditionParameterDeclarationFieldPathBuilder

func NewConditionParameterDeclarationFieldPathBuilder() ConditionParameterDeclarationFieldPathBuilder

func (ConditionParameterDeclarationFieldPathBuilder) Key

func (ConditionParameterDeclarationFieldPathBuilder) Type

type ConditionParameterDeclaration_FieldPath

type ConditionParameterDeclaration_FieldPath interface {
	gotenobject.FieldPath
	Selector() ConditionParameterDeclaration_FieldPathSelector
	Get(source *Condition_ParameterDeclaration) []interface{}
	GetSingle(source *Condition_ParameterDeclaration) (interface{}, bool)
	ClearValue(item *Condition_ParameterDeclaration)

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

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

func MustParseConditionParameterDeclaration_FieldPath

func MustParseConditionParameterDeclaration_FieldPath(rawField string) ConditionParameterDeclaration_FieldPath

func ParseConditionParameterDeclaration_FieldPath

func ParseConditionParameterDeclaration_FieldPath(rawField string) (ConditionParameterDeclaration_FieldPath, error)

type ConditionParameterDeclaration_FieldPathArrayItemValue

type ConditionParameterDeclaration_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	ConditionParameterDeclaration_FieldPath
	ContainsValue(*Condition_ParameterDeclaration) bool
}

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

func MustParseConditionParameterDeclaration_FieldPathArrayItemValue

func MustParseConditionParameterDeclaration_FieldPathArrayItemValue(pathStr, valueStr string) ConditionParameterDeclaration_FieldPathArrayItemValue

func ParseConditionParameterDeclaration_FieldPathArrayItemValue

func ParseConditionParameterDeclaration_FieldPathArrayItemValue(pathStr, valueStr string) (ConditionParameterDeclaration_FieldPathArrayItemValue, error)

ParseConditionParameterDeclaration_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type ConditionParameterDeclaration_FieldPathArrayOfValues

type ConditionParameterDeclaration_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	ConditionParameterDeclaration_FieldPath
}

ConditionParameterDeclaration_FieldPathArrayOfValues allows storing slice of values for ParameterDeclaration fields according to their type

func MustParseConditionParameterDeclaration_FieldPathArrayOfValues

func MustParseConditionParameterDeclaration_FieldPathArrayOfValues(pathStr, valuesStr string) ConditionParameterDeclaration_FieldPathArrayOfValues

func ParseConditionParameterDeclaration_FieldPathArrayOfValues

func ParseConditionParameterDeclaration_FieldPathArrayOfValues(pathStr, valuesStr string) (ConditionParameterDeclaration_FieldPathArrayOfValues, error)

type ConditionParameterDeclaration_FieldPathSelector

type ConditionParameterDeclaration_FieldPathSelector int32
const (
	ConditionParameterDeclaration_FieldPathSelectorKey  ConditionParameterDeclaration_FieldPathSelector = 0
	ConditionParameterDeclaration_FieldPathSelectorType ConditionParameterDeclaration_FieldPathSelector = 1
)

func (ConditionParameterDeclaration_FieldPathSelector) String

type ConditionParameterDeclaration_FieldPathValue

type ConditionParameterDeclaration_FieldPathValue interface {
	ConditionParameterDeclaration_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Condition_ParameterDeclaration)
	CompareWith(*Condition_ParameterDeclaration) (cmp int, comparable bool)
}

ConditionParameterDeclaration_FieldPathValue allows storing values for ParameterDeclaration fields according to their type

func MustParseConditionParameterDeclaration_FieldPathValue

func MustParseConditionParameterDeclaration_FieldPathValue(pathStr, valueStr string) ConditionParameterDeclaration_FieldPathValue

func ParseConditionParameterDeclaration_FieldPathValue

func ParseConditionParameterDeclaration_FieldPathValue(pathStr, valueStr string) (ConditionParameterDeclaration_FieldPathValue, error)

type ConditionParameterDeclaration_FieldTerminalPath

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

func (*ConditionParameterDeclaration_FieldTerminalPath) ClearValue

func (*ConditionParameterDeclaration_FieldTerminalPath) ClearValueRaw

func (*ConditionParameterDeclaration_FieldTerminalPath) Get

Get returns all values pointed by specific field from source Condition_ParameterDeclaration

func (*ConditionParameterDeclaration_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*ConditionParameterDeclaration_FieldTerminalPath) GetRaw

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

func (*ConditionParameterDeclaration_FieldTerminalPath) GetSingle

GetSingle returns value pointed by specific field of from source Condition_ParameterDeclaration

func (*ConditionParameterDeclaration_FieldTerminalPath) GetSingleRaw

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

func (*ConditionParameterDeclaration_FieldTerminalPath) IsLeaf

IsLeaf - whether field path is holds simple value

func (*ConditionParameterDeclaration_FieldTerminalPath) JSONString

JSONString returns path representation is JSON convention

func (*ConditionParameterDeclaration_FieldTerminalPath) Selector

func (*ConditionParameterDeclaration_FieldTerminalPath) SplitIntoTerminalIPaths

func (*ConditionParameterDeclaration_FieldTerminalPath) String

String returns path representation in proto convention

func (*ConditionParameterDeclaration_FieldTerminalPath) WithIArrayItemValue

func (*ConditionParameterDeclaration_FieldTerminalPath) WithIArrayOfValues

func (*ConditionParameterDeclaration_FieldTerminalPath) WithIValue

func (*ConditionParameterDeclaration_FieldTerminalPath) WithRawIArrayItemValue

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

func (*ConditionParameterDeclaration_FieldTerminalPath) WithRawIArrayOfValues

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

func (*ConditionParameterDeclaration_FieldTerminalPath) WithRawIValue

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

type ConditionParameterDeclaration_FieldTerminalPathArrayItemValue

type ConditionParameterDeclaration_FieldTerminalPathArrayItemValue struct {
	ConditionParameterDeclaration_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*ConditionParameterDeclaration_FieldTerminalPathArrayItemValue) ContainsValue

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

func (*ConditionParameterDeclaration_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*ConditionParameterDeclaration_FieldTerminalPathArrayItemValue) GetSingle

func (*ConditionParameterDeclaration_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type ConditionParameterDeclaration_FieldTerminalPathArrayOfValues

type ConditionParameterDeclaration_FieldTerminalPathArrayOfValues struct {
	ConditionParameterDeclaration_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*ConditionParameterDeclaration_FieldTerminalPathArrayOfValues) AsKeyArrayOfValues

func (*ConditionParameterDeclaration_FieldTerminalPathArrayOfValues) AsTypeArrayOfValues

func (*ConditionParameterDeclaration_FieldTerminalPathArrayOfValues) GetRawValues

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

type ConditionParameterDeclaration_FieldTerminalPathValue

type ConditionParameterDeclaration_FieldTerminalPathValue struct {
	ConditionParameterDeclaration_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*ConditionParameterDeclaration_FieldTerminalPathValue) AsKeyValue

func (*ConditionParameterDeclaration_FieldTerminalPathValue) AsTypeValue

func (*ConditionParameterDeclaration_FieldTerminalPathValue) CompareWith

CompareWith compares value in the 'ConditionParameterDeclaration_FieldTerminalPathValue' with the value under path in 'Condition_ParameterDeclaration'.

func (*ConditionParameterDeclaration_FieldTerminalPathValue) CompareWithRaw

func (*ConditionParameterDeclaration_FieldTerminalPathValue) GetRawValue

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

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

func (*ConditionParameterDeclaration_FieldTerminalPathValue) SetTo

SetTo stores value for selected field for object ParameterDeclaration

func (*ConditionParameterDeclaration_FieldTerminalPathValue) SetToRaw

type ConditionParentNameList

type ConditionParentNameList []*ParentName

func (ConditionParentNameList) Append

func (ConditionParentNameList) AppendList

func (ConditionParentNameList) At

func (ConditionParentNameList) Length

func (l ConditionParentNameList) Length() int

func (ConditionParentNameList) Set

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

func (ConditionParentNameList) Slice

type ConditionParentReferenceList

type ConditionParentReferenceList []*ParentReference

func (ConditionParentReferenceList) Append

func (ConditionParentReferenceList) AppendList

func (ConditionParentReferenceList) At

func (ConditionParentReferenceList) Length

func (l ConditionParentReferenceList) Length() int

func (ConditionParentReferenceList) Set

func (ConditionParentReferenceList) Slice

type ConditionPathSelectorDescription

type ConditionPathSelectorDescription struct{}

func (ConditionPathSelectorDescription) FieldPath

func (ConditionPathSelectorDescription) WithArrayOfValues

func (ConditionPathSelectorDescription) WithValue

type ConditionPathSelectorDisplayName

type ConditionPathSelectorDisplayName struct{}

func (ConditionPathSelectorDisplayName) FieldPath

func (ConditionPathSelectorDisplayName) WithArrayOfValues

func (ConditionPathSelectorDisplayName) WithValue

type ConditionPathSelectorExpression

type ConditionPathSelectorExpression struct{}

func (ConditionPathSelectorExpression) FieldPath

func (ConditionPathSelectorExpression) WithArrayOfValues

func (ConditionPathSelectorExpression) WithValue

type ConditionPathSelectorMetadata

type ConditionPathSelectorMetadata struct{}

func (ConditionPathSelectorMetadata) Annotations

func (ConditionPathSelectorMetadata) CreateTime

func (ConditionPathSelectorMetadata) DeleteTime

func (ConditionPathSelectorMetadata) FieldPath

func (ConditionPathSelectorMetadata) Generation

func (ConditionPathSelectorMetadata) Labels

func (ConditionPathSelectorMetadata) Lifecycle

func (ConditionPathSelectorMetadata) OwnerReferences

func (ConditionPathSelectorMetadata) ResourceVersion

func (ConditionPathSelectorMetadata) Services

func (ConditionPathSelectorMetadata) Shards

func (ConditionPathSelectorMetadata) Syncing

func (ConditionPathSelectorMetadata) Tags

func (ConditionPathSelectorMetadata) UpdateTime

func (ConditionPathSelectorMetadata) Uuid

func (ConditionPathSelectorMetadata) WithArrayOfValues

func (ConditionPathSelectorMetadata) WithSubArrayItemValue

func (ConditionPathSelectorMetadata) WithSubArrayOfValues

func (ConditionPathSelectorMetadata) WithSubPath

func (ConditionPathSelectorMetadata) WithSubValue

func (ConditionPathSelectorMetadata) WithValue

type ConditionPathSelectorMetadataAnnotations

type ConditionPathSelectorMetadataAnnotations struct{}

func (ConditionPathSelectorMetadataAnnotations) FieldPath

func (ConditionPathSelectorMetadataAnnotations) WithArrayOfValues

func (ConditionPathSelectorMetadataAnnotations) WithKey

func (ConditionPathSelectorMetadataAnnotations) WithValue

type ConditionPathSelectorMetadataCreateTime

type ConditionPathSelectorMetadataCreateTime struct{}

func (ConditionPathSelectorMetadataCreateTime) FieldPath

func (ConditionPathSelectorMetadataCreateTime) WithArrayOfValues

func (ConditionPathSelectorMetadataCreateTime) WithValue

type ConditionPathSelectorMetadataDeleteTime

type ConditionPathSelectorMetadataDeleteTime struct{}

func (ConditionPathSelectorMetadataDeleteTime) FieldPath

func (ConditionPathSelectorMetadataDeleteTime) WithArrayOfValues

func (ConditionPathSelectorMetadataDeleteTime) WithValue

type ConditionPathSelectorMetadataGeneration

type ConditionPathSelectorMetadataGeneration struct{}

func (ConditionPathSelectorMetadataGeneration) FieldPath

func (ConditionPathSelectorMetadataGeneration) WithArrayOfValues

func (ConditionPathSelectorMetadataGeneration) WithValue

type ConditionPathSelectorMetadataLabels

type ConditionPathSelectorMetadataLabels struct{}

func (ConditionPathSelectorMetadataLabels) FieldPath

func (ConditionPathSelectorMetadataLabels) WithArrayOfValues

func (ConditionPathSelectorMetadataLabels) WithKey

func (ConditionPathSelectorMetadataLabels) WithValue

type ConditionPathSelectorMetadataLifecycle

type ConditionPathSelectorMetadataLifecycle struct{}

func (ConditionPathSelectorMetadataLifecycle) BlockDeletion

func (ConditionPathSelectorMetadataLifecycle) FieldPath

func (ConditionPathSelectorMetadataLifecycle) State

func (ConditionPathSelectorMetadataLifecycle) WithArrayOfValues

func (ConditionPathSelectorMetadataLifecycle) WithValue

type ConditionPathSelectorMetadataLifecycleBlockDeletion

type ConditionPathSelectorMetadataLifecycleBlockDeletion struct{}

func (ConditionPathSelectorMetadataLifecycleBlockDeletion) FieldPath

func (ConditionPathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues

func (ConditionPathSelectorMetadataLifecycleBlockDeletion) WithValue

type ConditionPathSelectorMetadataLifecycleState

type ConditionPathSelectorMetadataLifecycleState struct{}

func (ConditionPathSelectorMetadataLifecycleState) FieldPath

func (ConditionPathSelectorMetadataLifecycleState) WithArrayOfValues

func (ConditionPathSelectorMetadataLifecycleState) WithValue

type ConditionPathSelectorMetadataOwnerReferences

type ConditionPathSelectorMetadataOwnerReferences struct{}

func (ConditionPathSelectorMetadataOwnerReferences) Controller

func (ConditionPathSelectorMetadataOwnerReferences) FieldPath

func (ConditionPathSelectorMetadataOwnerReferences) Kind

func (ConditionPathSelectorMetadataOwnerReferences) Name

func (ConditionPathSelectorMetadataOwnerReferences) Region

func (ConditionPathSelectorMetadataOwnerReferences) Version

func (ConditionPathSelectorMetadataOwnerReferences) WithArrayOfValues

func (ConditionPathSelectorMetadataOwnerReferences) WithItemValue

func (ConditionPathSelectorMetadataOwnerReferences) WithValue

type ConditionPathSelectorMetadataOwnerReferencesController

type ConditionPathSelectorMetadataOwnerReferencesController struct{}

func (ConditionPathSelectorMetadataOwnerReferencesController) FieldPath

func (ConditionPathSelectorMetadataOwnerReferencesController) WithArrayOfValues

func (ConditionPathSelectorMetadataOwnerReferencesController) WithValue

type ConditionPathSelectorMetadataOwnerReferencesKind

type ConditionPathSelectorMetadataOwnerReferencesKind struct{}

func (ConditionPathSelectorMetadataOwnerReferencesKind) FieldPath

func (ConditionPathSelectorMetadataOwnerReferencesKind) WithArrayOfValues

func (ConditionPathSelectorMetadataOwnerReferencesKind) WithValue

type ConditionPathSelectorMetadataOwnerReferencesName

type ConditionPathSelectorMetadataOwnerReferencesName struct{}

func (ConditionPathSelectorMetadataOwnerReferencesName) FieldPath

func (ConditionPathSelectorMetadataOwnerReferencesName) WithArrayOfValues

func (ConditionPathSelectorMetadataOwnerReferencesName) WithValue

type ConditionPathSelectorMetadataOwnerReferencesRegion

type ConditionPathSelectorMetadataOwnerReferencesRegion struct{}

func (ConditionPathSelectorMetadataOwnerReferencesRegion) FieldPath

func (ConditionPathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues

func (ConditionPathSelectorMetadataOwnerReferencesRegion) WithValue

type ConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference

type ConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{}

func (ConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath

func (ConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues

func (ConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue

type ConditionPathSelectorMetadataOwnerReferencesVersion

type ConditionPathSelectorMetadataOwnerReferencesVersion struct{}

func (ConditionPathSelectorMetadataOwnerReferencesVersion) FieldPath

func (ConditionPathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues

func (ConditionPathSelectorMetadataOwnerReferencesVersion) WithValue

type ConditionPathSelectorMetadataResourceVersion

type ConditionPathSelectorMetadataResourceVersion struct{}

func (ConditionPathSelectorMetadataResourceVersion) FieldPath

func (ConditionPathSelectorMetadataResourceVersion) WithArrayOfValues

func (ConditionPathSelectorMetadataResourceVersion) WithValue

type ConditionPathSelectorMetadataServices

type ConditionPathSelectorMetadataServices struct{}

func (ConditionPathSelectorMetadataServices) AllowedServices

func (ConditionPathSelectorMetadataServices) FieldPath

func (ConditionPathSelectorMetadataServices) OwningService

func (ConditionPathSelectorMetadataServices) WithArrayOfValues

func (ConditionPathSelectorMetadataServices) WithValue

type ConditionPathSelectorMetadataServicesAllowedServices

type ConditionPathSelectorMetadataServicesAllowedServices struct{}

func (ConditionPathSelectorMetadataServicesAllowedServices) FieldPath

func (ConditionPathSelectorMetadataServicesAllowedServices) WithArrayOfValues

func (ConditionPathSelectorMetadataServicesAllowedServices) WithItemValue

func (ConditionPathSelectorMetadataServicesAllowedServices) WithValue

type ConditionPathSelectorMetadataServicesOwningService

type ConditionPathSelectorMetadataServicesOwningService struct{}

func (ConditionPathSelectorMetadataServicesOwningService) FieldPath

func (ConditionPathSelectorMetadataServicesOwningService) WithArrayOfValues

func (ConditionPathSelectorMetadataServicesOwningService) WithValue

type ConditionPathSelectorMetadataShards

type ConditionPathSelectorMetadataShards struct{}

func (ConditionPathSelectorMetadataShards) FieldPath

func (ConditionPathSelectorMetadataShards) WithArrayOfValues

func (ConditionPathSelectorMetadataShards) WithKey

func (ConditionPathSelectorMetadataShards) WithValue

type ConditionPathSelectorMetadataSyncing

type ConditionPathSelectorMetadataSyncing struct{}

func (ConditionPathSelectorMetadataSyncing) FieldPath

func (ConditionPathSelectorMetadataSyncing) OwningRegion

func (ConditionPathSelectorMetadataSyncing) Regions

func (ConditionPathSelectorMetadataSyncing) WithArrayOfValues

func (ConditionPathSelectorMetadataSyncing) WithValue

type ConditionPathSelectorMetadataSyncingOwningRegion

type ConditionPathSelectorMetadataSyncingOwningRegion struct{}

func (ConditionPathSelectorMetadataSyncingOwningRegion) FieldPath

func (ConditionPathSelectorMetadataSyncingOwningRegion) WithArrayOfValues

func (ConditionPathSelectorMetadataSyncingOwningRegion) WithValue

type ConditionPathSelectorMetadataSyncingRegions

type ConditionPathSelectorMetadataSyncingRegions struct{}

func (ConditionPathSelectorMetadataSyncingRegions) FieldPath

func (ConditionPathSelectorMetadataSyncingRegions) WithArrayOfValues

func (ConditionPathSelectorMetadataSyncingRegions) WithItemValue

func (ConditionPathSelectorMetadataSyncingRegions) WithValue

type ConditionPathSelectorMetadataTags

type ConditionPathSelectorMetadataTags struct{}

func (ConditionPathSelectorMetadataTags) FieldPath

func (ConditionPathSelectorMetadataTags) WithArrayOfValues

func (ConditionPathSelectorMetadataTags) WithItemValue

func (ConditionPathSelectorMetadataTags) WithValue

type ConditionPathSelectorMetadataUpdateTime

type ConditionPathSelectorMetadataUpdateTime struct{}

func (ConditionPathSelectorMetadataUpdateTime) FieldPath

func (ConditionPathSelectorMetadataUpdateTime) WithArrayOfValues

func (ConditionPathSelectorMetadataUpdateTime) WithValue

type ConditionPathSelectorMetadataUuid

type ConditionPathSelectorMetadataUuid struct{}

func (ConditionPathSelectorMetadataUuid) FieldPath

func (ConditionPathSelectorMetadataUuid) WithArrayOfValues

func (ConditionPathSelectorMetadataUuid) WithValue

type ConditionPathSelectorName

type ConditionPathSelectorName struct{}

func (ConditionPathSelectorName) FieldPath

func (ConditionPathSelectorName) WithArrayOfValues

func (ConditionPathSelectorName) WithValue

type ConditionPathSelectorParameterDeclarations

type ConditionPathSelectorParameterDeclarations struct{}

func (ConditionPathSelectorParameterDeclarations) FieldPath

func (ConditionPathSelectorParameterDeclarations) Key

func (ConditionPathSelectorParameterDeclarations) Type

func (ConditionPathSelectorParameterDeclarations) WithArrayOfValues

func (ConditionPathSelectorParameterDeclarations) WithItemValue

func (ConditionPathSelectorParameterDeclarations) WithSubArrayItemValue

func (ConditionPathSelectorParameterDeclarations) WithSubArrayOfValues

func (ConditionPathSelectorParameterDeclarations) WithSubPath

func (ConditionPathSelectorParameterDeclarations) WithSubValue

func (ConditionPathSelectorParameterDeclarations) WithValue

type ConditionPathSelectorParameterDeclarationsKey

type ConditionPathSelectorParameterDeclarationsKey struct{}

func (ConditionPathSelectorParameterDeclarationsKey) FieldPath

func (ConditionPathSelectorParameterDeclarationsKey) WithArrayOfValues

func (ConditionPathSelectorParameterDeclarationsKey) WithValue

type ConditionPathSelectorParameterDeclarationsType

type ConditionPathSelectorParameterDeclarationsType struct{}

func (ConditionPathSelectorParameterDeclarationsType) FieldPath

func (ConditionPathSelectorParameterDeclarationsType) WithArrayOfValues

func (ConditionPathSelectorParameterDeclarationsType) WithValue

type ConditionReferenceList

type ConditionReferenceList []*Reference

func (ConditionReferenceList) Append

func (ConditionReferenceList) AppendList

func (ConditionReferenceList) At

func (ConditionReferenceList) Length

func (l ConditionReferenceList) Length() int

func (ConditionReferenceList) Set

func (ConditionReferenceList) Slice

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

type Condition_FieldMask

type Condition_FieldMask struct {
	Paths []Condition_FieldPath
}

func FullCondition_FieldMask

func FullCondition_FieldMask() *Condition_FieldMask

func ResourceViewFieldMask

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

func (*Condition_FieldMask) AppendPath

func (fieldMask *Condition_FieldMask) AppendPath(path Condition_FieldPath)

func (*Condition_FieldMask) AppendRawPath

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

func (*Condition_FieldMask) DecodeFirestore

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

func (*Condition_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*Condition_FieldMask) FilterInputFields

func (fieldMask *Condition_FieldMask) FilterInputFields() *Condition_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Condition_FieldMask) FromProtoFieldMask

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

func (*Condition_FieldMask) GetPaths

func (fieldMask *Condition_FieldMask) GetPaths() []Condition_FieldPath

func (*Condition_FieldMask) GetRawPaths

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

func (*Condition_FieldMask) IsFull

func (fieldMask *Condition_FieldMask) IsFull() bool

func (Condition_FieldMask) Marshal

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

implement methods required by customType

func (Condition_FieldMask) MarshalJSON

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

func (*Condition_FieldMask) PathsCount

func (fieldMask *Condition_FieldMask) PathsCount() int

func (*Condition_FieldMask) Project

func (fieldMask *Condition_FieldMask) Project(source *Condition) *Condition

func (*Condition_FieldMask) ProjectRaw

func (*Condition_FieldMask) ProtoMessage

func (fieldMask *Condition_FieldMask) ProtoMessage()

func (*Condition_FieldMask) ProtoReflect

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

func (*Condition_FieldMask) Reset

func (fieldMask *Condition_FieldMask) Reset()

func (*Condition_FieldMask) Set

func (fieldMask *Condition_FieldMask) Set(target, source *Condition)

func (*Condition_FieldMask) SetFromCliFlag

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

func (*Condition_FieldMask) SetRaw

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

func (*Condition_FieldMask) Size

func (fieldMask *Condition_FieldMask) Size() int

func (*Condition_FieldMask) String

func (fieldMask *Condition_FieldMask) String() string

func (*Condition_FieldMask) Subtract

func (fieldMask *Condition_FieldMask) Subtract(other *Condition_FieldMask) *Condition_FieldMask

func (*Condition_FieldMask) SubtractRaw

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

func (*Condition_FieldMask) ToProtoFieldMask

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

ToFieldMask is used for proto conversions

func (*Condition_FieldMask) Unmarshal

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

func (*Condition_FieldMask) UnmarshalJSON

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

type Condition_FieldPath

type Condition_FieldPath interface {
	gotenobject.FieldPath
	Selector() Condition_FieldPathSelector
	Get(source *Condition) []interface{}
	GetSingle(source *Condition) (interface{}, bool)
	ClearValue(item *Condition)

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

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

func BuildCondition_FieldPath

func BuildCondition_FieldPath(fp gotenobject.RawFieldPath) (Condition_FieldPath, error)

func MustParseCondition_FieldPath

func MustParseCondition_FieldPath(rawField string) Condition_FieldPath

func ParseCondition_FieldPath

func ParseCondition_FieldPath(rawField string) (Condition_FieldPath, error)

type Condition_FieldPathArrayItemValue

type Condition_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	Condition_FieldPath
	ContainsValue(*Condition) bool
}

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

func MustParseCondition_FieldPathArrayItemValue

func MustParseCondition_FieldPathArrayItemValue(pathStr, valueStr string) Condition_FieldPathArrayItemValue

func ParseCondition_FieldPathArrayItemValue

func ParseCondition_FieldPathArrayItemValue(pathStr, valueStr string) (Condition_FieldPathArrayItemValue, error)

ParseCondition_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type Condition_FieldPathArrayOfValues

type Condition_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	Condition_FieldPath
}

Condition_FieldPathArrayOfValues allows storing slice of values for Condition fields according to their type

func MustParseCondition_FieldPathArrayOfValues

func MustParseCondition_FieldPathArrayOfValues(pathStr, valuesStr string) Condition_FieldPathArrayOfValues

func ParseCondition_FieldPathArrayOfValues

func ParseCondition_FieldPathArrayOfValues(pathStr, valuesStr string) (Condition_FieldPathArrayOfValues, error)

type Condition_FieldPathSelector

type Condition_FieldPathSelector int32
const (
	Condition_FieldPathSelectorName                  Condition_FieldPathSelector = 0
	Condition_FieldPathSelectorMetadata              Condition_FieldPathSelector = 1
	Condition_FieldPathSelectorDisplayName           Condition_FieldPathSelector = 2
	Condition_FieldPathSelectorDescription           Condition_FieldPathSelector = 3
	Condition_FieldPathSelectorExpression            Condition_FieldPathSelector = 4
	Condition_FieldPathSelectorParameterDeclarations Condition_FieldPathSelector = 5
)

func (Condition_FieldPathSelector) String

type Condition_FieldPathValue

type Condition_FieldPathValue interface {
	Condition_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Condition)
	CompareWith(*Condition) (cmp int, comparable bool)
}

Condition_FieldPathValue allows storing values for Condition fields according to their type

func MustParseCondition_FieldPathValue

func MustParseCondition_FieldPathValue(pathStr, valueStr string) Condition_FieldPathValue

func ParseCondition_FieldPathValue

func ParseCondition_FieldPathValue(pathStr, valueStr string) (Condition_FieldPathValue, error)

type Condition_FieldSubPath

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

func (*Condition_FieldSubPath) AsMetadataSubPath

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

func (*Condition_FieldSubPath) AsParameterDeclarationsSubPath

func (fps *Condition_FieldSubPath) AsParameterDeclarationsSubPath() (ConditionParameterDeclaration_FieldPath, bool)

func (*Condition_FieldSubPath) ClearValue

func (fps *Condition_FieldSubPath) ClearValue(item *Condition)

func (*Condition_FieldSubPath) ClearValueRaw

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

func (*Condition_FieldSubPath) Get

func (fps *Condition_FieldSubPath) Get(source *Condition) (values []interface{})

Get returns all values pointed by selected field from source Condition

func (*Condition_FieldSubPath) GetDefault

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

GetDefault returns a default value of the field type

func (*Condition_FieldSubPath) GetRaw

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

func (*Condition_FieldSubPath) GetSingle

func (fps *Condition_FieldSubPath) GetSingle(source *Condition) (interface{}, bool)

GetSingle returns value of selected field from source Condition

func (*Condition_FieldSubPath) GetSingleRaw

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

func (*Condition_FieldSubPath) IsLeaf

func (fps *Condition_FieldSubPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Condition_FieldSubPath) JSONString

func (fps *Condition_FieldSubPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Condition_FieldSubPath) Selector

func (*Condition_FieldSubPath) SplitIntoTerminalIPaths

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

func (*Condition_FieldSubPath) String

func (fps *Condition_FieldSubPath) String() string

String returns path representation in proto convention

func (*Condition_FieldSubPath) WithIArrayItemValue

func (fps *Condition_FieldSubPath) WithIArrayItemValue(value interface{}) Condition_FieldPathArrayItemValue

func (*Condition_FieldSubPath) WithIArrayOfValues

func (fps *Condition_FieldSubPath) WithIArrayOfValues(values interface{}) Condition_FieldPathArrayOfValues

func (*Condition_FieldSubPath) WithIValue

func (fps *Condition_FieldSubPath) WithIValue(value interface{}) Condition_FieldPathValue

func (*Condition_FieldSubPath) WithRawIArrayItemValue

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

func (*Condition_FieldSubPath) WithRawIArrayOfValues

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

func (*Condition_FieldSubPath) WithRawIValue

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

type Condition_FieldSubPathArrayItemValue

type Condition_FieldSubPathArrayItemValue struct {
	Condition_FieldPath
	// contains filtered or unexported fields
}

func (*Condition_FieldSubPathArrayItemValue) AsMetadataPathItemValue

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

func (*Condition_FieldSubPathArrayItemValue) AsParameterDeclarationsPathItemValue

func (*Condition_FieldSubPathArrayItemValue) ContainsValue

func (fpaivs *Condition_FieldSubPathArrayItemValue) ContainsValue(source *Condition) bool

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

func (*Condition_FieldSubPathArrayItemValue) GetRawItemValue

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

GetRawValue returns stored array item value

type Condition_FieldSubPathArrayOfValues

type Condition_FieldSubPathArrayOfValues struct {
	Condition_FieldPath
	// contains filtered or unexported fields
}

func (*Condition_FieldSubPathArrayOfValues) AsMetadataPathArrayOfValues

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

func (*Condition_FieldSubPathArrayOfValues) AsParameterDeclarationsPathArrayOfValues

func (fpsaov *Condition_FieldSubPathArrayOfValues) AsParameterDeclarationsPathArrayOfValues() (ConditionParameterDeclaration_FieldPathArrayOfValues, bool)

func (*Condition_FieldSubPathArrayOfValues) GetRawValues

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

type Condition_FieldSubPathValue

type Condition_FieldSubPathValue struct {
	Condition_FieldPath
	// contains filtered or unexported fields
}

func (*Condition_FieldSubPathValue) AsMetadataPathValue

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

func (*Condition_FieldSubPathValue) AsParameterDeclarationsPathValue

func (fpvs *Condition_FieldSubPathValue) AsParameterDeclarationsPathValue() (ConditionParameterDeclaration_FieldPathValue, bool)

func (*Condition_FieldSubPathValue) CompareWith

func (fpvs *Condition_FieldSubPathValue) CompareWith(source *Condition) (int, bool)

func (*Condition_FieldSubPathValue) CompareWithRaw

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

func (*Condition_FieldSubPathValue) GetRawValue

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

func (*Condition_FieldSubPathValue) SetTo

func (fpvs *Condition_FieldSubPathValue) SetTo(target **Condition)

func (*Condition_FieldSubPathValue) SetToRaw

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

type Condition_FieldTerminalPath

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

func (*Condition_FieldTerminalPath) ClearValue

func (fp *Condition_FieldTerminalPath) ClearValue(item *Condition)

func (*Condition_FieldTerminalPath) ClearValueRaw

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

func (*Condition_FieldTerminalPath) Get

func (fp *Condition_FieldTerminalPath) Get(source *Condition) (values []interface{})

Get returns all values pointed by specific field from source Condition

func (*Condition_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*Condition_FieldTerminalPath) GetRaw

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

func (*Condition_FieldTerminalPath) GetSingle

func (fp *Condition_FieldTerminalPath) GetSingle(source *Condition) (interface{}, bool)

GetSingle returns value pointed by specific field of from source Condition

func (*Condition_FieldTerminalPath) GetSingleRaw

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

func (*Condition_FieldTerminalPath) IsLeaf

func (fp *Condition_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Condition_FieldTerminalPath) JSONString

func (fp *Condition_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Condition_FieldTerminalPath) Selector

func (*Condition_FieldTerminalPath) SplitIntoTerminalIPaths

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

func (*Condition_FieldTerminalPath) String

func (fp *Condition_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*Condition_FieldTerminalPath) WithIArrayItemValue

func (fp *Condition_FieldTerminalPath) WithIArrayItemValue(value interface{}) Condition_FieldPathArrayItemValue

func (*Condition_FieldTerminalPath) WithIArrayOfValues

func (fp *Condition_FieldTerminalPath) WithIArrayOfValues(values interface{}) Condition_FieldPathArrayOfValues

func (*Condition_FieldTerminalPath) WithIValue

func (fp *Condition_FieldTerminalPath) WithIValue(value interface{}) Condition_FieldPathValue

func (*Condition_FieldTerminalPath) WithRawIArrayItemValue

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

func (*Condition_FieldTerminalPath) WithRawIArrayOfValues

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

func (*Condition_FieldTerminalPath) WithRawIValue

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

type Condition_FieldTerminalPathArrayItemValue

type Condition_FieldTerminalPathArrayItemValue struct {
	Condition_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Condition_FieldTerminalPathArrayItemValue) AsParameterDeclarationsItemValue

func (fpaiv *Condition_FieldTerminalPathArrayItemValue) AsParameterDeclarationsItemValue() (*Condition_ParameterDeclaration, bool)

func (*Condition_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *Condition_FieldTerminalPathArrayItemValue) ContainsValue(source *Condition) bool

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

func (*Condition_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*Condition_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *Condition_FieldTerminalPathArrayItemValue) GetSingle(source *Condition) (interface{}, bool)

func (*Condition_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type Condition_FieldTerminalPathArrayOfValues

type Condition_FieldTerminalPathArrayOfValues struct {
	Condition_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Condition_FieldTerminalPathArrayOfValues) AsDescriptionArrayOfValues

func (fpaov *Condition_FieldTerminalPathArrayOfValues) AsDescriptionArrayOfValues() ([]string, bool)

func (*Condition_FieldTerminalPathArrayOfValues) AsDisplayNameArrayOfValues

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

func (*Condition_FieldTerminalPathArrayOfValues) AsExpressionArrayOfValues

func (fpaov *Condition_FieldTerminalPathArrayOfValues) AsExpressionArrayOfValues() ([]string, bool)

func (*Condition_FieldTerminalPathArrayOfValues) AsMetadataArrayOfValues

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

func (*Condition_FieldTerminalPathArrayOfValues) AsNameArrayOfValues

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

func (*Condition_FieldTerminalPathArrayOfValues) AsParameterDeclarationsArrayOfValues

func (fpaov *Condition_FieldTerminalPathArrayOfValues) AsParameterDeclarationsArrayOfValues() ([][]*Condition_ParameterDeclaration, bool)

func (*Condition_FieldTerminalPathArrayOfValues) GetRawValues

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

type Condition_FieldTerminalPathValue

type Condition_FieldTerminalPathValue struct {
	Condition_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Condition_FieldTerminalPathValue) AsDescriptionValue

func (fpv *Condition_FieldTerminalPathValue) AsDescriptionValue() (string, bool)

func (*Condition_FieldTerminalPathValue) AsDisplayNameValue

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

func (*Condition_FieldTerminalPathValue) AsExpressionValue

func (fpv *Condition_FieldTerminalPathValue) AsExpressionValue() (string, bool)

func (*Condition_FieldTerminalPathValue) AsMetadataValue

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

func (*Condition_FieldTerminalPathValue) AsNameValue

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

func (*Condition_FieldTerminalPathValue) AsParameterDeclarationsValue

func (fpv *Condition_FieldTerminalPathValue) AsParameterDeclarationsValue() ([]*Condition_ParameterDeclaration, bool)

func (*Condition_FieldTerminalPathValue) CompareWith

func (fpv *Condition_FieldTerminalPathValue) CompareWith(source *Condition) (int, bool)

CompareWith compares value in the 'Condition_FieldTerminalPathValue' with the value under path in 'Condition'.

func (*Condition_FieldTerminalPathValue) CompareWithRaw

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

func (*Condition_FieldTerminalPathValue) GetRawValue

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

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

func (*Condition_FieldTerminalPathValue) SetTo

func (fpv *Condition_FieldTerminalPathValue) SetTo(target **Condition)

SetTo stores value for selected field for object Condition

func (*Condition_FieldTerminalPathValue) SetToRaw

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

type Condition_ParameterDeclaration

type Condition_ParameterDeclaration struct {

	// Parameter Key - must be unique within condition. Defined parameter
	// variables are accessible in condition expression via `parameters.<key>`,
	// e.g.`parameters.projectId`
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty" firestore:"key"`
	// Parameter value type
	Type Condition_ParameterType `protobuf:"varint,2,opt,name=type,proto3,enum=ntt.iam.v1.Condition_ParameterType" json:"type,omitempty" firestore:"type"`
	// contains filtered or unexported fields
}

Parameter Declarations used

func (*Condition_ParameterDeclaration) Clone

func (*Condition_ParameterDeclaration) CloneRaw

func (*Condition_ParameterDeclaration) Descriptor

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

Deprecated, Use Condition_ParameterDeclaration.ProtoReflect.Descriptor instead.

func (*Condition_ParameterDeclaration) GetKey

func (*Condition_ParameterDeclaration) GetType

func (*Condition_ParameterDeclaration) GotenMessage

func (*Condition_ParameterDeclaration) GotenMessage()

func (*Condition_ParameterDeclaration) GotenObjectExt

func (o *Condition_ParameterDeclaration) GotenObjectExt()

func (*Condition_ParameterDeclaration) GotenValidate

func (obj *Condition_ParameterDeclaration) GotenValidate() error

func (*Condition_ParameterDeclaration) MakeDiffFieldMask

func (*Condition_ParameterDeclaration) MakeFullFieldMask

func (*Condition_ParameterDeclaration) MakeRawDiffFieldMask

func (*Condition_ParameterDeclaration) MakeRawFullFieldMask

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

func (*Condition_ParameterDeclaration) Marshal

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

func (*Condition_ParameterDeclaration) MarshalJSON

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

func (*Condition_ParameterDeclaration) Merge

func (*Condition_ParameterDeclaration) MergeRaw

func (*Condition_ParameterDeclaration) ProtoMessage

func (*Condition_ParameterDeclaration) ProtoMessage()

func (*Condition_ParameterDeclaration) ProtoReflect

func (*Condition_ParameterDeclaration) Reset

func (m *Condition_ParameterDeclaration) Reset()

func (*Condition_ParameterDeclaration) SetKey

func (m *Condition_ParameterDeclaration) SetKey(fv string)

func (*Condition_ParameterDeclaration) SetType

func (*Condition_ParameterDeclaration) String

func (*Condition_ParameterDeclaration) Unmarshal

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

func (*Condition_ParameterDeclaration) UnmarshalJSON

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

type Condition_ParameterDeclarationPathSelectorKey

type Condition_ParameterDeclarationPathSelectorKey struct{}

func (Condition_ParameterDeclarationPathSelectorKey) FieldPath

func (Condition_ParameterDeclarationPathSelectorKey) WithArrayOfValues

func (Condition_ParameterDeclarationPathSelectorKey) WithValue

type Condition_ParameterDeclarationPathSelectorType

type Condition_ParameterDeclarationPathSelectorType struct{}

func (Condition_ParameterDeclarationPathSelectorType) FieldPath

type Condition_ParameterDeclaration_FieldMask

type Condition_ParameterDeclaration_FieldMask struct {
	Paths []ConditionParameterDeclaration_FieldPath
}

func FullCondition_ParameterDeclaration_FieldMask

func FullCondition_ParameterDeclaration_FieldMask() *Condition_ParameterDeclaration_FieldMask

func (*Condition_ParameterDeclaration_FieldMask) AppendPath

func (*Condition_ParameterDeclaration_FieldMask) AppendRawPath

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

func (*Condition_ParameterDeclaration_FieldMask) DecodeFirestore

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

func (*Condition_ParameterDeclaration_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*Condition_ParameterDeclaration_FieldMask) FilterInputFields

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Condition_ParameterDeclaration_FieldMask) FromProtoFieldMask

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

func (*Condition_ParameterDeclaration_FieldMask) GetPaths

func (*Condition_ParameterDeclaration_FieldMask) GetRawPaths

func (*Condition_ParameterDeclaration_FieldMask) IsFull

func (fieldMask *Condition_ParameterDeclaration_FieldMask) IsFull() bool

func (Condition_ParameterDeclaration_FieldMask) Marshal

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

implement methods required by customType

func (Condition_ParameterDeclaration_FieldMask) MarshalJSON

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

func (*Condition_ParameterDeclaration_FieldMask) PathsCount

func (fieldMask *Condition_ParameterDeclaration_FieldMask) PathsCount() int

func (*Condition_ParameterDeclaration_FieldMask) Project

func (*Condition_ParameterDeclaration_FieldMask) ProjectRaw

func (*Condition_ParameterDeclaration_FieldMask) ProtoMessage

func (fieldMask *Condition_ParameterDeclaration_FieldMask) ProtoMessage()

func (*Condition_ParameterDeclaration_FieldMask) ProtoReflect

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

func (*Condition_ParameterDeclaration_FieldMask) Reset

func (fieldMask *Condition_ParameterDeclaration_FieldMask) Reset()

func (*Condition_ParameterDeclaration_FieldMask) Set

func (*Condition_ParameterDeclaration_FieldMask) SetFromCliFlag

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

func (*Condition_ParameterDeclaration_FieldMask) SetRaw

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

func (*Condition_ParameterDeclaration_FieldMask) Size

func (*Condition_ParameterDeclaration_FieldMask) String

func (*Condition_ParameterDeclaration_FieldMask) Subtract

func (*Condition_ParameterDeclaration_FieldMask) SubtractRaw

func (*Condition_ParameterDeclaration_FieldMask) ToProtoFieldMask

ToFieldMask is used for proto conversions

func (*Condition_ParameterDeclaration_FieldMask) Unmarshal

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

func (*Condition_ParameterDeclaration_FieldMask) UnmarshalJSON

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

type Condition_ParameterType

type Condition_ParameterType int32

Parameter Type.

const (
	Condition_TYPE_UNSPECIFIED Condition_ParameterType = 0
	Condition_STRING           Condition_ParameterType = 1
	Condition_INT64            Condition_ParameterType = 2
	Condition_DOUBLE           Condition_ParameterType = 3
	Condition_BOOL             Condition_ParameterType = 4
	Condition_STRING_ARRAY     Condition_ParameterType = 5
	Condition_INT64_ARRAY      Condition_ParameterType = 6
	Condition_DOUBLE_ARRAY     Condition_ParameterType = 7
	Condition_BOOL_ARRAY       Condition_ParameterType = 8
	Condition_OBJECT           Condition_ParameterType = 9
)

func (Condition_ParameterType) Descriptor

func (Condition_ParameterType) Enum

func (Condition_ParameterType) EnumDescriptor

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

Deprecated, Use Condition_ParameterType.ProtoReflect.Descriptor instead.

func (Condition_ParameterType) Number

func (Condition_ParameterType) String

func (x Condition_ParameterType) String() string

func (Condition_ParameterType) Type

type Descriptor

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

func GetDescriptor

func GetDescriptor() *Descriptor

func (*Descriptor) CanBeParentless

func (d *Descriptor) CanBeParentless() bool

func (*Descriptor) GetNameDescriptor

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

func (*Descriptor) GetParentResDescriptors

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

func (*Descriptor) GetResourceTypeName

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

func (*Descriptor) NewGetQuery

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

func (*Descriptor) NewListQuery

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

func (*Descriptor) NewNameList

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

func (*Descriptor) NewParentNameList

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

func (*Descriptor) NewParentReferenceList

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

func (*Descriptor) NewQueryResultChange

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

func (*Descriptor) NewQueryResultSnapshot

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

func (*Descriptor) NewReferenceList

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

func (*Descriptor) NewResource

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

func (*Descriptor) NewResourceChange

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

func (*Descriptor) NewResourceChangeList

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

func (*Descriptor) NewResourceChangeMap

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

func (*Descriptor) NewResourceCursor

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

func (*Descriptor) NewResourceFieldMask

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

func (*Descriptor) NewResourceFilter

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

func (*Descriptor) NewResourceList

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

func (*Descriptor) NewResourceMap

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

func (*Descriptor) NewResourceName

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

func (*Descriptor) NewResourceOrderBy

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

func (*Descriptor) NewResourcePager

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

func (*Descriptor) NewSearchQuery

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

func (*Descriptor) NewWatchQuery

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

func (*Descriptor) ParseFieldPath

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

func (*Descriptor) ParseResourceName

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

func (*Descriptor) SupportsMetadata

func (d *Descriptor) SupportsMetadata() bool

type ExecutableCondition

type ExecutableCondition struct {

	// Reference to Condition which may also be parameterized
	Condition *Reference `protobuf:"bytes,1,opt,customtype=Reference,name=condition,proto3" json:"condition,omitempty" firestore:"condition"`
	// Parameters in string form. Parameters must match
	// [declarations][ntt.iam.v1.Condition.parameter_declarations]
	Params *structpb.Struct `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty" firestore:"params"`
	// contains filtered or unexported fields
}

ExecutableCondition represents instantiation of condition with params, in other words: Executable condition, that is used in Role bindings.

func (*ExecutableCondition) Clone

func (*ExecutableCondition) CloneRaw

func (*ExecutableCondition) Descriptor

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

Deprecated, Use ExecutableCondition.ProtoReflect.Descriptor instead.

func (*ExecutableCondition) GetCondition

func (m *ExecutableCondition) GetCondition() *Reference

func (*ExecutableCondition) GetParams

func (m *ExecutableCondition) GetParams() *structpb.Struct

func (*ExecutableCondition) GotenMessage

func (*ExecutableCondition) GotenMessage()

func (*ExecutableCondition) GotenObjectExt

func (o *ExecutableCondition) GotenObjectExt()

func (*ExecutableCondition) GotenValidate

func (obj *ExecutableCondition) GotenValidate() error

func (*ExecutableCondition) MakeDiffFieldMask

func (*ExecutableCondition) MakeFullFieldMask

func (o *ExecutableCondition) MakeFullFieldMask() *ExecutableCondition_FieldMask

func (*ExecutableCondition) MakeRawDiffFieldMask

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

func (*ExecutableCondition) MakeRawFullFieldMask

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

func (*ExecutableCondition) Marshal

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

func (*ExecutableCondition) MarshalJSON

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

func (*ExecutableCondition) Merge

func (o *ExecutableCondition) Merge(source *ExecutableCondition)

func (*ExecutableCondition) MergeRaw

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

func (*ExecutableCondition) ProtoMessage

func (*ExecutableCondition) ProtoMessage()

func (*ExecutableCondition) ProtoReflect

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

func (*ExecutableCondition) Reset

func (m *ExecutableCondition) Reset()

func (*ExecutableCondition) SetCondition

func (m *ExecutableCondition) SetCondition(fv *Reference)

func (*ExecutableCondition) SetParams

func (m *ExecutableCondition) SetParams(fv *structpb.Struct)

func (*ExecutableCondition) String

func (m *ExecutableCondition) String() string

func (*ExecutableCondition) Unmarshal

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

func (*ExecutableCondition) UnmarshalJSON

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

type ExecutableConditionFieldPathBuilder

type ExecutableConditionFieldPathBuilder struct{}

func NewExecutableConditionFieldPathBuilder

func NewExecutableConditionFieldPathBuilder() ExecutableConditionFieldPathBuilder

func (ExecutableConditionFieldPathBuilder) Condition

func (ExecutableConditionFieldPathBuilder) Params

type ExecutableConditionPathSelectorCondition

type ExecutableConditionPathSelectorCondition struct{}

func (ExecutableConditionPathSelectorCondition) FieldPath

func (ExecutableConditionPathSelectorCondition) WithArrayOfValues

func (ExecutableConditionPathSelectorCondition) WithValue

type ExecutableConditionPathSelectorParams

type ExecutableConditionPathSelectorParams struct{}

func (ExecutableConditionPathSelectorParams) FieldPath

func (ExecutableConditionPathSelectorParams) WithArrayOfValues

func (ExecutableConditionPathSelectorParams) WithValue

type ExecutableCondition_FieldMask

type ExecutableCondition_FieldMask struct {
	Paths []ExecutableCondition_FieldPath
}

func FullExecutableCondition_FieldMask

func FullExecutableCondition_FieldMask() *ExecutableCondition_FieldMask

func (*ExecutableCondition_FieldMask) AppendPath

func (*ExecutableCondition_FieldMask) AppendRawPath

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

func (*ExecutableCondition_FieldMask) DecodeFirestore

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

func (*ExecutableCondition_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*ExecutableCondition_FieldMask) FilterInputFields

func (fieldMask *ExecutableCondition_FieldMask) FilterInputFields() *ExecutableCondition_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*ExecutableCondition_FieldMask) FromProtoFieldMask

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

func (*ExecutableCondition_FieldMask) GetPaths

func (*ExecutableCondition_FieldMask) GetRawPaths

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

func (*ExecutableCondition_FieldMask) IsFull

func (fieldMask *ExecutableCondition_FieldMask) IsFull() bool

func (ExecutableCondition_FieldMask) Marshal

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

implement methods required by customType

func (ExecutableCondition_FieldMask) MarshalJSON

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

func (*ExecutableCondition_FieldMask) PathsCount

func (fieldMask *ExecutableCondition_FieldMask) PathsCount() int

func (*ExecutableCondition_FieldMask) Project

func (*ExecutableCondition_FieldMask) ProjectRaw

func (*ExecutableCondition_FieldMask) ProtoMessage

func (fieldMask *ExecutableCondition_FieldMask) ProtoMessage()

func (*ExecutableCondition_FieldMask) ProtoReflect

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

func (*ExecutableCondition_FieldMask) Reset

func (fieldMask *ExecutableCondition_FieldMask) Reset()

func (*ExecutableCondition_FieldMask) Set

func (fieldMask *ExecutableCondition_FieldMask) Set(target, source *ExecutableCondition)

func (*ExecutableCondition_FieldMask) SetFromCliFlag

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

func (*ExecutableCondition_FieldMask) SetRaw

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

func (*ExecutableCondition_FieldMask) Size

func (fieldMask *ExecutableCondition_FieldMask) Size() int

func (*ExecutableCondition_FieldMask) String

func (fieldMask *ExecutableCondition_FieldMask) String() string

func (*ExecutableCondition_FieldMask) Subtract

func (*ExecutableCondition_FieldMask) SubtractRaw

func (*ExecutableCondition_FieldMask) ToProtoFieldMask

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

ToFieldMask is used for proto conversions

func (*ExecutableCondition_FieldMask) Unmarshal

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

func (*ExecutableCondition_FieldMask) UnmarshalJSON

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

type ExecutableCondition_FieldPath

type ExecutableCondition_FieldPath interface {
	gotenobject.FieldPath
	Selector() ExecutableCondition_FieldPathSelector
	Get(source *ExecutableCondition) []interface{}
	GetSingle(source *ExecutableCondition) (interface{}, bool)
	ClearValue(item *ExecutableCondition)

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

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

func MustParseExecutableCondition_FieldPath

func MustParseExecutableCondition_FieldPath(rawField string) ExecutableCondition_FieldPath

func ParseExecutableCondition_FieldPath

func ParseExecutableCondition_FieldPath(rawField string) (ExecutableCondition_FieldPath, error)

type ExecutableCondition_FieldPathArrayItemValue

type ExecutableCondition_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	ExecutableCondition_FieldPath
	ContainsValue(*ExecutableCondition) bool
}

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

func MustParseExecutableCondition_FieldPathArrayItemValue

func MustParseExecutableCondition_FieldPathArrayItemValue(pathStr, valueStr string) ExecutableCondition_FieldPathArrayItemValue

func ParseExecutableCondition_FieldPathArrayItemValue

func ParseExecutableCondition_FieldPathArrayItemValue(pathStr, valueStr string) (ExecutableCondition_FieldPathArrayItemValue, error)

ParseExecutableCondition_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type ExecutableCondition_FieldPathArrayOfValues

type ExecutableCondition_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	ExecutableCondition_FieldPath
}

ExecutableCondition_FieldPathArrayOfValues allows storing slice of values for ExecutableCondition fields according to their type

func MustParseExecutableCondition_FieldPathArrayOfValues

func MustParseExecutableCondition_FieldPathArrayOfValues(pathStr, valuesStr string) ExecutableCondition_FieldPathArrayOfValues

func ParseExecutableCondition_FieldPathArrayOfValues

func ParseExecutableCondition_FieldPathArrayOfValues(pathStr, valuesStr string) (ExecutableCondition_FieldPathArrayOfValues, error)

type ExecutableCondition_FieldPathSelector

type ExecutableCondition_FieldPathSelector int32
const (
	ExecutableCondition_FieldPathSelectorCondition ExecutableCondition_FieldPathSelector = 0
	ExecutableCondition_FieldPathSelectorParams    ExecutableCondition_FieldPathSelector = 1
)

func (ExecutableCondition_FieldPathSelector) String

type ExecutableCondition_FieldPathValue

type ExecutableCondition_FieldPathValue interface {
	ExecutableCondition_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **ExecutableCondition)
	CompareWith(*ExecutableCondition) (cmp int, comparable bool)
}

ExecutableCondition_FieldPathValue allows storing values for ExecutableCondition fields according to their type

func MustParseExecutableCondition_FieldPathValue

func MustParseExecutableCondition_FieldPathValue(pathStr, valueStr string) ExecutableCondition_FieldPathValue

func ParseExecutableCondition_FieldPathValue

func ParseExecutableCondition_FieldPathValue(pathStr, valueStr string) (ExecutableCondition_FieldPathValue, error)

type ExecutableCondition_FieldTerminalPath

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

func (*ExecutableCondition_FieldTerminalPath) ClearValue

func (*ExecutableCondition_FieldTerminalPath) ClearValueRaw

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

func (*ExecutableCondition_FieldTerminalPath) Get

func (fp *ExecutableCondition_FieldTerminalPath) Get(source *ExecutableCondition) (values []interface{})

Get returns all values pointed by specific field from source ExecutableCondition

func (*ExecutableCondition_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*ExecutableCondition_FieldTerminalPath) GetRaw

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

func (*ExecutableCondition_FieldTerminalPath) GetSingle

func (fp *ExecutableCondition_FieldTerminalPath) GetSingle(source *ExecutableCondition) (interface{}, bool)

GetSingle returns value pointed by specific field of from source ExecutableCondition

func (*ExecutableCondition_FieldTerminalPath) GetSingleRaw

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

func (*ExecutableCondition_FieldTerminalPath) IsLeaf

IsLeaf - whether field path is holds simple value

func (*ExecutableCondition_FieldTerminalPath) JSONString

JSONString returns path representation is JSON convention

func (*ExecutableCondition_FieldTerminalPath) Selector

func (*ExecutableCondition_FieldTerminalPath) SplitIntoTerminalIPaths

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

func (*ExecutableCondition_FieldTerminalPath) String

String returns path representation in proto convention

func (*ExecutableCondition_FieldTerminalPath) WithIArrayItemValue

func (*ExecutableCondition_FieldTerminalPath) WithIArrayOfValues

func (fp *ExecutableCondition_FieldTerminalPath) WithIArrayOfValues(values interface{}) ExecutableCondition_FieldPathArrayOfValues

func (*ExecutableCondition_FieldTerminalPath) WithIValue

func (*ExecutableCondition_FieldTerminalPath) WithRawIArrayItemValue

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

func (*ExecutableCondition_FieldTerminalPath) WithRawIArrayOfValues

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

func (*ExecutableCondition_FieldTerminalPath) WithRawIValue

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

type ExecutableCondition_FieldTerminalPathArrayItemValue

type ExecutableCondition_FieldTerminalPathArrayItemValue struct {
	ExecutableCondition_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*ExecutableCondition_FieldTerminalPathArrayItemValue) ContainsValue

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

func (*ExecutableCondition_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*ExecutableCondition_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *ExecutableCondition_FieldTerminalPathArrayItemValue) GetSingle(source *ExecutableCondition) (interface{}, bool)

func (*ExecutableCondition_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type ExecutableCondition_FieldTerminalPathArrayOfValues

type ExecutableCondition_FieldTerminalPathArrayOfValues struct {
	ExecutableCondition_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*ExecutableCondition_FieldTerminalPathArrayOfValues) AsConditionArrayOfValues

func (fpaov *ExecutableCondition_FieldTerminalPathArrayOfValues) AsConditionArrayOfValues() ([]*Reference, bool)

func (*ExecutableCondition_FieldTerminalPathArrayOfValues) AsParamsArrayOfValues

func (fpaov *ExecutableCondition_FieldTerminalPathArrayOfValues) AsParamsArrayOfValues() ([]*structpb.Struct, bool)

func (*ExecutableCondition_FieldTerminalPathArrayOfValues) GetRawValues

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

type ExecutableCondition_FieldTerminalPathValue

type ExecutableCondition_FieldTerminalPathValue struct {
	ExecutableCondition_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*ExecutableCondition_FieldTerminalPathValue) AsConditionValue

func (fpv *ExecutableCondition_FieldTerminalPathValue) AsConditionValue() (*Reference, bool)

func (*ExecutableCondition_FieldTerminalPathValue) AsParamsValue

func (*ExecutableCondition_FieldTerminalPathValue) CompareWith

CompareWith compares value in the 'ExecutableCondition_FieldTerminalPathValue' with the value under path in 'ExecutableCondition'.

func (*ExecutableCondition_FieldTerminalPathValue) CompareWithRaw

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

func (*ExecutableCondition_FieldTerminalPathValue) GetRawValue

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

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

func (*ExecutableCondition_FieldTerminalPathValue) SetTo

SetTo stores value for selected field for object ExecutableCondition

func (*ExecutableCondition_FieldTerminalPathValue) SetToRaw

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

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 Condition_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 *Condition) bool

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

func AndFilterConditions

func AndFilterConditions(conds ...FilterCondition) FilterCondition

type FilterConditionCompare

type FilterConditionCompare struct {
	Operator filterParser.CompareOperator
	Condition_FieldPathValue
}

func (*FilterConditionCompare) And

func (*FilterConditionCompare) ConditionCompare

func (cond *FilterConditionCompare) ConditionCompare()

func (*FilterConditionCompare) Evaluate

func (cond *FilterConditionCompare) Evaluate(res *Condition) 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 Condition_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 *Condition) 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 Condition_FieldPath) bool

func (*FilterConditionComposite) SpecifiesRawFieldPath

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

func (*FilterConditionComposite) String

func (cond *FilterConditionComposite) String() string

type FilterConditionContains

func (*FilterConditionContains) And

func (*FilterConditionContains) ConditionContains

func (cond *FilterConditionContains) ConditionContains()

func (*FilterConditionContains) ConditionContainsType

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

func (*FilterConditionContains) Evaluate

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

func (*FilterConditionContains) EvaluateRaw

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

func (*FilterConditionContains) GetFieldPath

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

func (*FilterConditionIn) And

func (*FilterConditionIn) ConditionIn

func (cond *FilterConditionIn) ConditionIn()

func (*FilterConditionIn) Evaluate

func (cond *FilterConditionIn) Evaluate(res *Condition) 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 Condition_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 Condition_FieldPath
}

func (*FilterConditionIsNaN) And

func (*FilterConditionIsNaN) ConditionIsNaN

func (cond *FilterConditionIsNaN) ConditionIsNaN()

func (*FilterConditionIsNaN) Evaluate

func (cond *FilterConditionIsNaN) Evaluate(res *Condition) 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 Condition_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 Condition_FieldPath
}

func (*FilterConditionIsNull) And

func (*FilterConditionIsNull) ConditionIsNull

func (cond *FilterConditionIsNull) ConditionIsNull()

func (*FilterConditionIsNull) Evaluate

func (cond *FilterConditionIsNull) Evaluate(res *Condition) 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 Condition_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 *Condition) 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 Condition_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 {
	Condition_FieldPathArrayOfValues
}

func (*FilterConditionNotIn) And

func (*FilterConditionNotIn) ConditionNotIn

func (cond *FilterConditionNotIn) ConditionNotIn()

func (*FilterConditionNotIn) Evaluate

func (cond *FilterConditionNotIn) Evaluate(res *Condition) 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 Condition_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      *Condition_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           *Condition_FieldMask
	WithPagingInfo bool
}

func (*ListQuery) GetFieldMask

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

func (*ListQuery) GetFilter

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

func (*ListQuery) GetPager

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

func (*ListQuery) GetResourceDescriptor

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

func (*ListQuery) GetWithPagingInfo

func (q *ListQuery) GetWithPagingInfo() bool

func (*ListQuery) GotenQuery

func (q *ListQuery) GotenQuery()

func (*ListQuery) SetFieldMask

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

func (*ListQuery) SetFilter

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

func (*ListQuery) SetPager

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

func (*ListQuery) SetWithPagingInfo

func (q *ListQuery) SetWithPagingInfo(with bool)

func (*ListQuery) String

func (q *ListQuery) String() string

type Name

type Name struct {
	ParentName
	ConditionId string `firestore:"conditionId"`
}

func MustParseName

func MustParseName(name string) *Name

func ParseName

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

func ParseNameOrId

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

func (*Name) AsRawReference

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

func (*Name) AsReference

func (name *Name) AsReference() *Reference

func (*Name) ConvertToNative

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

func (*Name) ConvertToType

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

func (*Name) Equal

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

func (*Name) FullyQualifiedName

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

func (*Name) GetIParentName

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

func (*Name) GetIUnderlyingParentName

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

func (*Name) GetIdParts

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

func (*Name) GetOrganizationName

func (name *Name) GetOrganizationName() *organization.Name

func (*Name) GetPattern

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

func (*Name) GetProjectName

func (name *Name) GetProjectName() *project.Name

func (*Name) GetResourceDescriptor

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

func (*Name) GetSegments

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

func (*Name) GetServiceName

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

func (*Name) GotenEqual

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

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

func (*Name) HasTrait

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

func (*Name) IsFullyQualified

func (name *Name) IsFullyQualified() bool

func (*Name) IsSpecified

func (name *Name) IsSpecified() bool

func (*Name) Match

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

func (*Name) Matches

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

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

func (*Name) ParseProtoString

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

func (*Name) ProtoString

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

func (*Name) Receive

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

func (*Name) SetFromCliFlag

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

implement CustomTypeCliValue method

func (*Name) SetFromSegments

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

func (*Name) String

func (name *Name) String() string

func (*Name) Type

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

func (*Name) TypeName

func (name *Name) TypeName() string

func (*Name) Value

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

type NameBuilder

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

func NewNameBuilder

func NewNameBuilder() *NameBuilder

func (*NameBuilder) Name

func (b *NameBuilder) Name() *Name

func (*NameBuilder) Parent

func (b *NameBuilder) Parent() *ParentName

func (*NameBuilder) ParentReference

func (b *NameBuilder) ParentReference() *ParentReference

func (*NameBuilder) Reference

func (b *NameBuilder) Reference() *Reference

func (*NameBuilder) SetId

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

func (*NameBuilder) SetOrganization

func (b *NameBuilder) SetOrganization(parent *organization.Name) *NameBuilder

func (*NameBuilder) SetOrganizationId

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

func (*NameBuilder) SetProject

func (b *NameBuilder) SetProject(parent *project.Name) *NameBuilder

func (*NameBuilder) SetProjectId

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

func (*NameBuilder) SetService

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

func (*NameBuilder) SetServiceId

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

type NamePattern

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

type OrderBy

type OrderBy struct {
	OrderByFields []OrderByField
}

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

func (*OrderBy) Compare

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

func (*OrderBy) CompareRaw

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

func (*OrderBy) GetFieldMask

func (orderBy *OrderBy) GetFieldMask() *Condition_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 ConditionList, elem *Condition) (ConditionList, 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 ConditionList)

func (*OrderBy) SortRaw

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

func (*OrderBy) String

func (orderBy *OrderBy) String() string

type OrderByField

type OrderByField struct {
	FieldPath Condition_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 *Condition) int

func (*OrderByField) GetDirection

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

func (*OrderByField) GetFieldPath

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

type PagerCursor

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

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

func (*PagerCursor) GetInclusion

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

func (*PagerCursor) GetPageDirection

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

func (*PagerCursor) GetValue

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

func (*PagerCursor) IsEmpty

func (cursor *PagerCursor) IsEmpty() bool

func (*PagerCursor) ParseProtoString

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

func (*PagerCursor) ProtoString

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

func (*PagerCursor) SetCursorValue

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

func (*PagerCursor) SetFromCliFlag

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

func (*PagerCursor) SetInclusion

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

func (*PagerCursor) SetPageDirection

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

func (*PagerCursor) String

func (cursor *PagerCursor) String() string

type PagerQuery

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

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

func MakePagerQuery

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

MakePagerQuery builds pager from API data and applies defaults

func (*PagerQuery) GetCursor

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

func (*PagerQuery) GetLimit

func (p *PagerQuery) GetLimit() int

func (*PagerQuery) GetOrderBy

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

func (*PagerQuery) GetPeekForward

func (p *PagerQuery) GetPeekForward() bool

func (*PagerQuery) GetResourceDescriptor

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

func (*PagerQuery) PageDirection

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

func (*PagerQuery) SetCursor

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

func (*PagerQuery) SetLimit

func (p *PagerQuery) SetLimit(limit int)

func (*PagerQuery) SetOrderBy

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

func (*PagerQuery) SetPageDirection

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

func (*PagerQuery) SetPeekForward

func (p *PagerQuery) SetPeekForward(peekForward bool)

type ParentName

type ParentName struct {
	NamePattern
	ProjectId      string `firestore:"projectId"`
	OrganizationId string `firestore:"organizationId"`
	ServiceId      string `firestore:"serviceId"`
}

func MustParseParentName

func MustParseParentName(name string) *ParentName

func ParseParentName

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

func (*ParentName) AsRawReference

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

func (*ParentName) AsReference

func (name *ParentName) AsReference() *ParentReference

func (*ParentName) ConvertToNative

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

func (*ParentName) ConvertToType

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

func (*ParentName) DescendsFrom

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

func (*ParentName) Equal

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

func (*ParentName) FullyQualifiedName

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

func (*ParentName) GetIParentName

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

func (*ParentName) GetIUnderlyingParentName

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

func (*ParentName) GetIdParts

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

func (*ParentName) GetOrganizationName

func (name *ParentName) GetOrganizationName() *organization.Name

func (*ParentName) GetPattern

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

func (*ParentName) GetProjectName

func (name *ParentName) GetProjectName() *project.Name

func (*ParentName) GetResourceDescriptor

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

func (*ParentName) GetSegments

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

func (*ParentName) GetServiceName

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

func (*ParentName) GotenEqual

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

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

func (*ParentName) HasTrait

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

func (*ParentName) IsFullyQualified

func (name *ParentName) IsFullyQualified() bool

func (*ParentName) IsSpecified

func (name *ParentName) IsSpecified() bool

func (*ParentName) Match

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

func (*ParentName) Matches

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

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

func (*ParentName) ParseProtoString

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

func (*ParentName) ProtoString

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

func (*ParentName) Receive

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

func (*ParentName) SetFromCliFlag

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

implement CustomTypeCliValue method

func (*ParentName) SetFromSegments

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

func (*ParentName) String

func (name *ParentName) String() string

func (*ParentName) Type

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

func (*ParentName) TypeName

func (name *ParentName) TypeName() string

func (*ParentName) Value

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

type ParentReference

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

func MakeParentReference

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

func MustParseParentReference

func MustParseParentReference(name string) *ParentReference

func ParseParentReference

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

func (*ParentReference) ClearCached

func (ref *ParentReference) ClearCached()

func (*ParentReference) GetIParentName

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

func (*ParentReference) GetIUnderlyingParentName

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

func (*ParentReference) GetIdParts

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

func (*ParentReference) GetOrganization

func (ref *ParentReference) GetOrganization() *organization.Organization

func (*ParentReference) GetOrganizationReference

func (ref *ParentReference) GetOrganizationReference() *organization.Reference

func (*ParentReference) GetPattern

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

func (*ParentReference) GetProject

func (ref *ParentReference) GetProject() *project.Project

func (*ParentReference) GetProjectReference

func (ref *ParentReference) GetProjectReference() *project.Reference

func (*ParentReference) GetRawResource

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

func (*ParentReference) GetResourceDescriptor

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

func (*ParentReference) GetSegments

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

func (*ParentReference) GetService

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

func (*ParentReference) GetServiceReference

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

func (*ParentReference) GetUnderlyingReference

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

func (*ParentReference) GotenEqual

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

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

func (*ParentReference) IsFullyQualified

func (ref *ParentReference) IsFullyQualified() bool

func (*ParentReference) IsSpecified

func (ref *ParentReference) IsSpecified() bool

func (*ParentReference) Matches

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

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

func (*ParentReference) ParseProtoString

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

func (*ParentReference) ProtoString

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

func (*ParentReference) ResolveRaw

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

func (*ParentReference) Resolved

func (ref *ParentReference) Resolved() bool

func (*ParentReference) SetFromCliFlag

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

implement CustomTypeCliValue method

func (*ParentReference) String

func (ref *ParentReference) String() string

type QueryResultChange

type QueryResultChange struct {
	Changes        []*ConditionChange
	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 {
	Conditions        []*Condition
	PrevPageCursor    *PagerCursor
	NextPageCursor    *PagerCursor
	TotalResultsCount int32
	CurrentOffset     int32
}

func (*QueryResultSnapshot) GetNextPageCursor

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

func (*QueryResultSnapshot) GetPagingInfo

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

func (*QueryResultSnapshot) GetPrevPageCursor

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

func (*QueryResultSnapshot) GetResults

func (*QueryResultSnapshot) SetCursors

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

func (*QueryResultSnapshot) SetPagingInfo

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

func (*QueryResultSnapshot) SetResults

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

type Reference

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

func MakeReference

func MakeReference(name *Name, condition *Condition) (*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) GetCondition

func (ref *Reference) GetCondition() *Condition

func (*Reference) GetIParentName

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

func (*Reference) GetIUnderlyingParentName

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

func (*Reference) GetIdParts

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

func (*Reference) GetPattern

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

func (*Reference) GetRawResource

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

func (*Reference) GetResourceDescriptor

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

func (*Reference) GetSegments

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

func (*Reference) GotenEqual

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

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

func (*Reference) IsFullyQualified

func (ref *Reference) IsFullyQualified() bool

func (*Reference) IsSpecified

func (ref *Reference) IsSpecified() bool

func (*Reference) Matches

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

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

func (*Reference) ParseProtoString

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

func (*Reference) ProtoString

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

func (*Reference) Resolve

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

func (*Reference) ResolveRaw

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

func (*Reference) Resolved

func (ref *Reference) Resolved() bool

func (*Reference) SetFromCliFlag

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

implement CustomTypeCliValue method

func (*Reference) String

func (ref *Reference) String() string

type WatchQuery

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

func (*WatchQuery) GetMaximumChunkSize

func (q *WatchQuery) GetMaximumChunkSize() int

func (*WatchQuery) GetResumeToken

func (q *WatchQuery) GetResumeToken() string

func (*WatchQuery) GetStartingTime

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

func (*WatchQuery) GetWatchType

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

func (*WatchQuery) SetMaximumChunkSize

func (q *WatchQuery) SetMaximumChunkSize(chunkSize int)

func (*WatchQuery) SetResumeToken

func (q *WatchQuery) SetResumeToken(token string)

func (*WatchQuery) SetStartingTime

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

func (*WatchQuery) SetWatchType

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

func (*WatchQuery) String

func (q *WatchQuery) String() string

Jump to

Keyboard shortcuts

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