condition

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 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}"
)

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-zA-Z0-9_.-]{1,128}
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// 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 */
	// Metadata
	Metadata *meta.Meta `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty" firestore:"metadata"`
	// contains filtered or unexported fields
}

Condition Resource provides an extension to primary RBAC model, which allows customizable (scriptable) access. Conditions can only be used to further limit (or narrow) access compared to standard (or unconditional) RBAC.

Usage:

  1. Condition is created with expression and parameter declarations. Consider this a definition, which will be later "bound".
  2. When creating a [RoleBinding] pass ConditionBinding with reference to

Condition and bound parameters.

When checking for principal access (anonymous, user, service account), for RoleBinding to grant permissions included in bound [Role], both RBAC and Condition expression evaluation must grant access.

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

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 ConditionBinding

type ConditionBinding 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"`
	// TODO: Deprecated, use params instead
	Parameters map[string]string `` /* 184-byte string literal not displayed */
	// Parameters in string form. Parameters must match
	// [declarations][ntt.iam.v1alpha2.Condition.parameter_declarations]
	Params *structpb.Struct `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty" firestore:"params"`
	// contains filtered or unexported fields
}

ConditionBinding represents instantiantion of condi

func (*ConditionBinding) Clone

func (o *ConditionBinding) Clone() *ConditionBinding

func (*ConditionBinding) CloneRaw

func (*ConditionBinding) Descriptor

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

Deprecated, Use ConditionBinding.ProtoReflect.Descriptor instead.

func (*ConditionBinding) GetCondition

func (m *ConditionBinding) GetCondition() *Reference

func (*ConditionBinding) GetParameters

func (m *ConditionBinding) GetParameters() map[string]string

func (*ConditionBinding) GetParams added in v0.9.9

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

func (*ConditionBinding) GotenMessage

func (*ConditionBinding) GotenMessage()

func (*ConditionBinding) GotenObjectExt

func (o *ConditionBinding) GotenObjectExt()

func (*ConditionBinding) GotenValidate

func (obj *ConditionBinding) GotenValidate() error

func (*ConditionBinding) MakeDiffFieldMask

func (o *ConditionBinding) MakeDiffFieldMask(other *ConditionBinding) *ConditionBinding_FieldMask

func (*ConditionBinding) MakeFullFieldMask

func (o *ConditionBinding) MakeFullFieldMask() *ConditionBinding_FieldMask

func (*ConditionBinding) MakeRawDiffFieldMask

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

func (*ConditionBinding) MakeRawFullFieldMask

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

func (*ConditionBinding) Marshal

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

func (*ConditionBinding) MarshalJSON

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

func (*ConditionBinding) Merge

func (o *ConditionBinding) Merge(source *ConditionBinding)

func (*ConditionBinding) MergeRaw

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

func (*ConditionBinding) ProtoMessage

func (*ConditionBinding) ProtoMessage()

func (*ConditionBinding) ProtoReflect

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

func (*ConditionBinding) Reset

func (m *ConditionBinding) Reset()

func (*ConditionBinding) SetCondition

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

func (*ConditionBinding) SetParameters

func (m *ConditionBinding) SetParameters(fv map[string]string)

func (*ConditionBinding) SetParams added in v0.9.9

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

func (*ConditionBinding) String

func (m *ConditionBinding) String() string

func (*ConditionBinding) Unmarshal

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

func (*ConditionBinding) UnmarshalJSON

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

type ConditionBindingFieldPathBuilder

type ConditionBindingFieldPathBuilder struct{}

func NewConditionBindingFieldPathBuilder

func NewConditionBindingFieldPathBuilder() ConditionBindingFieldPathBuilder

func (ConditionBindingFieldPathBuilder) Condition

func (ConditionBindingFieldPathBuilder) Parameters

func (ConditionBindingFieldPathBuilder) Params added in v0.9.9

type ConditionBindingMapPathSelectorParameters

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

func (ConditionBindingMapPathSelectorParameters) FieldPath

func (ConditionBindingMapPathSelectorParameters) WithArrayOfValues

func (ConditionBindingMapPathSelectorParameters) WithValue

type ConditionBindingPathSelectorCondition

type ConditionBindingPathSelectorCondition struct{}

func (ConditionBindingPathSelectorCondition) FieldPath

func (ConditionBindingPathSelectorCondition) WithArrayOfValues

func (ConditionBindingPathSelectorCondition) WithValue

type ConditionBindingPathSelectorParameters

type ConditionBindingPathSelectorParameters struct{}

func (ConditionBindingPathSelectorParameters) FieldPath

func (ConditionBindingPathSelectorParameters) WithArrayOfValues

func (ConditionBindingPathSelectorParameters) WithKey

func (ConditionBindingPathSelectorParameters) WithValue

type ConditionBindingPathSelectorParams added in v0.9.9

type ConditionBindingPathSelectorParams struct{}

func (ConditionBindingPathSelectorParams) FieldPath added in v0.9.9

func (ConditionBindingPathSelectorParams) WithArrayOfValues added in v0.9.9

func (ConditionBindingPathSelectorParams) WithValue added in v0.9.9

type ConditionBinding_FieldMask

type ConditionBinding_FieldMask struct {
	Paths []ConditionBinding_FieldPath
}

func FullConditionBinding_FieldMask

func FullConditionBinding_FieldMask() *ConditionBinding_FieldMask

func (*ConditionBinding_FieldMask) AppendPath

func (fieldMask *ConditionBinding_FieldMask) AppendPath(path ConditionBinding_FieldPath)

func (*ConditionBinding_FieldMask) AppendRawPath

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

func (*ConditionBinding_FieldMask) DecodeFirestore

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

func (*ConditionBinding_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*ConditionBinding_FieldMask) FilterInputFields

func (fieldMask *ConditionBinding_FieldMask) FilterInputFields() *ConditionBinding_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*ConditionBinding_FieldMask) FromProtoFieldMask

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

func (*ConditionBinding_FieldMask) GetPaths

func (*ConditionBinding_FieldMask) GetRawPaths

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

func (*ConditionBinding_FieldMask) IsFull

func (fieldMask *ConditionBinding_FieldMask) IsFull() bool

func (ConditionBinding_FieldMask) Marshal

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

implement methods required by customType

func (ConditionBinding_FieldMask) MarshalJSON

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

func (*ConditionBinding_FieldMask) PathsCount

func (fieldMask *ConditionBinding_FieldMask) PathsCount() int

func (*ConditionBinding_FieldMask) Project

func (fieldMask *ConditionBinding_FieldMask) Project(source *ConditionBinding) *ConditionBinding

func (*ConditionBinding_FieldMask) ProjectRaw

func (*ConditionBinding_FieldMask) ProtoMessage

func (fieldMask *ConditionBinding_FieldMask) ProtoMessage()

func (*ConditionBinding_FieldMask) ProtoReflect

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

func (*ConditionBinding_FieldMask) Reset

func (fieldMask *ConditionBinding_FieldMask) Reset()

func (*ConditionBinding_FieldMask) Set

func (fieldMask *ConditionBinding_FieldMask) Set(target, source *ConditionBinding)

func (*ConditionBinding_FieldMask) SetFromCliFlag

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

func (*ConditionBinding_FieldMask) SetRaw

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

func (*ConditionBinding_FieldMask) Size

func (fieldMask *ConditionBinding_FieldMask) Size() int

func (*ConditionBinding_FieldMask) String

func (fieldMask *ConditionBinding_FieldMask) String() string

func (*ConditionBinding_FieldMask) Subtract

func (*ConditionBinding_FieldMask) SubtractRaw

func (*ConditionBinding_FieldMask) ToProtoFieldMask

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

ToFieldMask is used for proto conversions

func (*ConditionBinding_FieldMask) Unmarshal

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

func (*ConditionBinding_FieldMask) UnmarshalJSON

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

type ConditionBinding_FieldPath

type ConditionBinding_FieldPath interface {
	gotenobject.FieldPath
	Selector() ConditionBinding_FieldPathSelector
	Get(source *ConditionBinding) []interface{}
	GetSingle(source *ConditionBinding) (interface{}, bool)
	ClearValue(item *ConditionBinding)

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

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

func MustParseConditionBinding_FieldPath

func MustParseConditionBinding_FieldPath(rawField string) ConditionBinding_FieldPath

func ParseConditionBinding_FieldPath

func ParseConditionBinding_FieldPath(rawField string) (ConditionBinding_FieldPath, error)

type ConditionBinding_FieldPathArrayItemValue

type ConditionBinding_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	ConditionBinding_FieldPath
	ContainsValue(*ConditionBinding) bool
}

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

func MustParseConditionBinding_FieldPathArrayItemValue

func MustParseConditionBinding_FieldPathArrayItemValue(pathStr, valueStr string) ConditionBinding_FieldPathArrayItemValue

func ParseConditionBinding_FieldPathArrayItemValue

func ParseConditionBinding_FieldPathArrayItemValue(pathStr, valueStr string) (ConditionBinding_FieldPathArrayItemValue, error)

ParseConditionBinding_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type ConditionBinding_FieldPathArrayOfValues

type ConditionBinding_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	ConditionBinding_FieldPath
}

ConditionBinding_FieldPathArrayOfValues allows storing slice of values for ConditionBinding fields according to their type

func MustParseConditionBinding_FieldPathArrayOfValues

func MustParseConditionBinding_FieldPathArrayOfValues(pathStr, valuesStr string) ConditionBinding_FieldPathArrayOfValues

func ParseConditionBinding_FieldPathArrayOfValues

func ParseConditionBinding_FieldPathArrayOfValues(pathStr, valuesStr string) (ConditionBinding_FieldPathArrayOfValues, error)

type ConditionBinding_FieldPathMap

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

FieldPath for map type with additional Key information

func (*ConditionBinding_FieldPathMap) ClearValue

func (fpm *ConditionBinding_FieldPathMap) ClearValue(item *ConditionBinding)

func (*ConditionBinding_FieldPathMap) ClearValueRaw

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

func (*ConditionBinding_FieldPathMap) Get

func (fpm *ConditionBinding_FieldPathMap) Get(source *ConditionBinding) (values []interface{})

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

func (*ConditionBinding_FieldPathMap) GetDefault

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

GetDefault returns a default value of the field type

func (*ConditionBinding_FieldPathMap) GetRaw

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

func (*ConditionBinding_FieldPathMap) GetSingle

func (fpm *ConditionBinding_FieldPathMap) GetSingle(source *ConditionBinding) (interface{}, bool)

GetSingle returns value by selected field map key from source ConditionBinding

func (*ConditionBinding_FieldPathMap) GetSingleRaw

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

func (*ConditionBinding_FieldPathMap) IsLeaf

func (fpm *ConditionBinding_FieldPathMap) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*ConditionBinding_FieldPathMap) JSONString

func (fpm *ConditionBinding_FieldPathMap) JSONString() string

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

func (*ConditionBinding_FieldPathMap) Key

func (*ConditionBinding_FieldPathMap) Selector

func (*ConditionBinding_FieldPathMap) SplitIntoTerminalIPaths added in v0.8.0

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

func (*ConditionBinding_FieldPathMap) String

func (fpm *ConditionBinding_FieldPathMap) String() string

String returns path representation in proto convention

func (*ConditionBinding_FieldPathMap) WithIArrayItemValue

func (fpm *ConditionBinding_FieldPathMap) WithIArrayItemValue(value interface{}) ConditionBinding_FieldPathArrayItemValue

func (*ConditionBinding_FieldPathMap) WithIArrayOfValues

func (fpm *ConditionBinding_FieldPathMap) WithIArrayOfValues(values interface{}) ConditionBinding_FieldPathArrayOfValues

func (*ConditionBinding_FieldPathMap) WithIValue

func (fpm *ConditionBinding_FieldPathMap) WithIValue(value interface{}) ConditionBinding_FieldPathValue

func (*ConditionBinding_FieldPathMap) WithRawIArrayItemValue

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

func (*ConditionBinding_FieldPathMap) WithRawIArrayOfValues

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

func (*ConditionBinding_FieldPathMap) WithRawIValue

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

type ConditionBinding_FieldPathMapArrayOfValues

type ConditionBinding_FieldPathMapArrayOfValues struct {
	ConditionBinding_FieldPathMap
	// contains filtered or unexported fields
}

func (*ConditionBinding_FieldPathMapArrayOfValues) AsParametersArrayOfElementValues

func (fpmaov *ConditionBinding_FieldPathMapArrayOfValues) AsParametersArrayOfElementValues() ([]string, bool)

func (*ConditionBinding_FieldPathMapArrayOfValues) GetRawValues

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

type ConditionBinding_FieldPathMapValue

type ConditionBinding_FieldPathMapValue struct {
	ConditionBinding_FieldPathMap
	// contains filtered or unexported fields
}

func (*ConditionBinding_FieldPathMapValue) AsParametersElementValue

func (fpmv *ConditionBinding_FieldPathMapValue) AsParametersElementValue() (string, bool)

func (*ConditionBinding_FieldPathMapValue) CompareWith

func (fpmv *ConditionBinding_FieldPathMapValue) CompareWith(source *ConditionBinding) (int, bool)

CompareWith compares value in the 'ConditionBinding_FieldPathMapValue' with the value under path in 'ConditionBinding'.

func (*ConditionBinding_FieldPathMapValue) CompareWithRaw

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

func (*ConditionBinding_FieldPathMapValue) GetRawValue

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

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

func (*ConditionBinding_FieldPathMapValue) SetTo

SetTo stores value for selected field in ConditionBinding

func (*ConditionBinding_FieldPathMapValue) SetToRaw

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

type ConditionBinding_FieldPathSelector

type ConditionBinding_FieldPathSelector int32
const (
	ConditionBinding_FieldPathSelectorCondition  ConditionBinding_FieldPathSelector = 0
	ConditionBinding_FieldPathSelectorParameters ConditionBinding_FieldPathSelector = 1
	ConditionBinding_FieldPathSelectorParams     ConditionBinding_FieldPathSelector = 2
)

func (ConditionBinding_FieldPathSelector) String

type ConditionBinding_FieldPathValue

type ConditionBinding_FieldPathValue interface {
	ConditionBinding_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **ConditionBinding)
	CompareWith(*ConditionBinding) (cmp int, comparable bool)
}

ConditionBinding_FieldPathValue allows storing values for ConditionBinding fields according to their type

func MustParseConditionBinding_FieldPathValue

func MustParseConditionBinding_FieldPathValue(pathStr, valueStr string) ConditionBinding_FieldPathValue

func ParseConditionBinding_FieldPathValue

func ParseConditionBinding_FieldPathValue(pathStr, valueStr string) (ConditionBinding_FieldPathValue, error)

type ConditionBinding_FieldTerminalPath

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

func (*ConditionBinding_FieldTerminalPath) ClearValue

func (*ConditionBinding_FieldTerminalPath) ClearValueRaw

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

func (*ConditionBinding_FieldTerminalPath) Get

func (fp *ConditionBinding_FieldTerminalPath) Get(source *ConditionBinding) (values []interface{})

Get returns all values pointed by specific field from source ConditionBinding

func (*ConditionBinding_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*ConditionBinding_FieldTerminalPath) GetRaw

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

func (*ConditionBinding_FieldTerminalPath) GetSingle

func (fp *ConditionBinding_FieldTerminalPath) GetSingle(source *ConditionBinding) (interface{}, bool)

GetSingle returns value pointed by specific field of from source ConditionBinding

func (*ConditionBinding_FieldTerminalPath) GetSingleRaw

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

func (*ConditionBinding_FieldTerminalPath) IsLeaf

IsLeaf - whether field path is holds simple value

func (*ConditionBinding_FieldTerminalPath) JSONString

func (fp *ConditionBinding_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*ConditionBinding_FieldTerminalPath) Selector

func (*ConditionBinding_FieldTerminalPath) SplitIntoTerminalIPaths added in v0.8.0

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

func (*ConditionBinding_FieldTerminalPath) String

String returns path representation in proto convention

func (*ConditionBinding_FieldTerminalPath) WithIArrayItemValue

func (fp *ConditionBinding_FieldTerminalPath) WithIArrayItemValue(value interface{}) ConditionBinding_FieldPathArrayItemValue

func (*ConditionBinding_FieldTerminalPath) WithIArrayOfValues

func (fp *ConditionBinding_FieldTerminalPath) WithIArrayOfValues(values interface{}) ConditionBinding_FieldPathArrayOfValues

func (*ConditionBinding_FieldTerminalPath) WithIValue

func (fp *ConditionBinding_FieldTerminalPath) WithIValue(value interface{}) ConditionBinding_FieldPathValue

func (*ConditionBinding_FieldTerminalPath) WithRawIArrayItemValue

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

func (*ConditionBinding_FieldTerminalPath) WithRawIArrayOfValues

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

func (*ConditionBinding_FieldTerminalPath) WithRawIValue

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

type ConditionBinding_FieldTerminalPathArrayItemValue

type ConditionBinding_FieldTerminalPathArrayItemValue struct {
	ConditionBinding_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*ConditionBinding_FieldTerminalPathArrayItemValue) ContainsValue

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

func (*ConditionBinding_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*ConditionBinding_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *ConditionBinding_FieldTerminalPathArrayItemValue) GetSingle(source *ConditionBinding) (interface{}, bool)

func (*ConditionBinding_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type ConditionBinding_FieldTerminalPathArrayOfValues

type ConditionBinding_FieldTerminalPathArrayOfValues struct {
	ConditionBinding_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*ConditionBinding_FieldTerminalPathArrayOfValues) AsConditionArrayOfValues

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

func (*ConditionBinding_FieldTerminalPathArrayOfValues) AsParametersArrayOfValues

func (fpaov *ConditionBinding_FieldTerminalPathArrayOfValues) AsParametersArrayOfValues() ([]map[string]string, bool)

func (*ConditionBinding_FieldTerminalPathArrayOfValues) AsParamsArrayOfValues added in v0.9.9

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

func (*ConditionBinding_FieldTerminalPathArrayOfValues) GetRawValues

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

type ConditionBinding_FieldTerminalPathValue

type ConditionBinding_FieldTerminalPathValue struct {
	ConditionBinding_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*ConditionBinding_FieldTerminalPathValue) AsConditionValue

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

func (*ConditionBinding_FieldTerminalPathValue) AsParametersValue

func (fpv *ConditionBinding_FieldTerminalPathValue) AsParametersValue() (map[string]string, bool)

func (*ConditionBinding_FieldTerminalPathValue) AsParamsValue added in v0.9.9

func (*ConditionBinding_FieldTerminalPathValue) CompareWith

CompareWith compares value in the 'ConditionBinding_FieldTerminalPathValue' with the value under path in 'ConditionBinding'.

func (*ConditionBinding_FieldTerminalPathValue) CompareWithRaw

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

func (*ConditionBinding_FieldTerminalPathValue) GetRawValue

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

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

func (*ConditionBinding_FieldTerminalPathValue) SetTo

SetTo stores value for selected field for object ConditionBinding

func (*ConditionBinding_FieldTerminalPathValue) SetToRaw

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

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

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

func (ConditionPathSelectorMetadata) FieldPath

func (ConditionPathSelectorMetadata) Generation

func (ConditionPathSelectorMetadata) Labels

func (ConditionPathSelectorMetadata) Lifecycle added in v0.8.0

func (ConditionPathSelectorMetadata) OwnerReferences

func (ConditionPathSelectorMetadata) ResourceVersion

func (ConditionPathSelectorMetadata) Services added in v1.0.21

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

type ConditionPathSelectorMetadataDeleteTime struct{}

func (ConditionPathSelectorMetadataDeleteTime) FieldPath added in v0.8.0

func (ConditionPathSelectorMetadataDeleteTime) WithArrayOfValues added in v0.8.0

func (ConditionPathSelectorMetadataDeleteTime) WithValue added in v0.8.0

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

type ConditionPathSelectorMetadataLifecycle struct{}

func (ConditionPathSelectorMetadataLifecycle) BlockDeletion added in v0.8.0

func (ConditionPathSelectorMetadataLifecycle) FieldPath added in v0.8.0

func (ConditionPathSelectorMetadataLifecycle) State added in v0.8.0

func (ConditionPathSelectorMetadataLifecycle) WithArrayOfValues added in v0.8.0

func (ConditionPathSelectorMetadataLifecycle) WithValue added in v0.8.0

type ConditionPathSelectorMetadataLifecycleBlockDeletion added in v0.8.0

type ConditionPathSelectorMetadataLifecycleBlockDeletion struct{}

func (ConditionPathSelectorMetadataLifecycleBlockDeletion) FieldPath added in v0.8.0

func (ConditionPathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues added in v0.8.0

func (ConditionPathSelectorMetadataLifecycleBlockDeletion) WithValue added in v0.8.0

type ConditionPathSelectorMetadataLifecycleState added in v0.8.0

type ConditionPathSelectorMetadataLifecycleState struct{}

func (ConditionPathSelectorMetadataLifecycleState) FieldPath added in v0.8.0

func (ConditionPathSelectorMetadataLifecycleState) WithArrayOfValues added in v0.8.0

func (ConditionPathSelectorMetadataLifecycleState) WithValue added in v0.8.0

type ConditionPathSelectorMetadataOwnerReferences

type ConditionPathSelectorMetadataOwnerReferences struct{}

func (ConditionPathSelectorMetadataOwnerReferences) Controller

func (ConditionPathSelectorMetadataOwnerReferences) FieldPath

func (ConditionPathSelectorMetadataOwnerReferences) Kind

func (ConditionPathSelectorMetadataOwnerReferences) Name

func (ConditionPathSelectorMetadataOwnerReferences) Region added in v0.8.0

func (ConditionPathSelectorMetadataOwnerReferences) RequiresOwnerReference added in v0.8.0

func (ConditionPathSelectorMetadataOwnerReferences) Version added in v0.8.0

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

type ConditionPathSelectorMetadataOwnerReferencesRegion struct{}

func (ConditionPathSelectorMetadataOwnerReferencesRegion) FieldPath added in v0.8.0

func (ConditionPathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues added in v0.8.0

func (ConditionPathSelectorMetadataOwnerReferencesRegion) WithValue added in v0.8.0

type ConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference added in v0.8.0

type ConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{}

func (ConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath added in v0.8.0

func (ConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues added in v0.8.0

func (ConditionPathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue added in v0.8.0

type ConditionPathSelectorMetadataOwnerReferencesVersion added in v0.8.0

type ConditionPathSelectorMetadataOwnerReferencesVersion struct{}

func (ConditionPathSelectorMetadataOwnerReferencesVersion) FieldPath added in v0.8.0

func (ConditionPathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues added in v0.8.0

func (ConditionPathSelectorMetadataOwnerReferencesVersion) WithValue added in v0.8.0

type ConditionPathSelectorMetadataResourceVersion

type ConditionPathSelectorMetadataResourceVersion struct{}

func (ConditionPathSelectorMetadataResourceVersion) FieldPath

func (ConditionPathSelectorMetadataResourceVersion) WithArrayOfValues

func (ConditionPathSelectorMetadataResourceVersion) WithValue

type ConditionPathSelectorMetadataServices added in v1.0.21

type ConditionPathSelectorMetadataServices struct{}

func (ConditionPathSelectorMetadataServices) AllowedServices added in v1.0.21

func (ConditionPathSelectorMetadataServices) FieldPath added in v1.0.21

func (ConditionPathSelectorMetadataServices) OwningService added in v1.0.21

func (ConditionPathSelectorMetadataServices) WithArrayOfValues added in v1.0.21

func (ConditionPathSelectorMetadataServices) WithValue added in v1.0.21

type ConditionPathSelectorMetadataServicesAllowedServices added in v1.0.21

type ConditionPathSelectorMetadataServicesAllowedServices struct{}

func (ConditionPathSelectorMetadataServicesAllowedServices) FieldPath added in v1.0.21

func (ConditionPathSelectorMetadataServicesAllowedServices) WithArrayOfValues added in v1.0.21

func (ConditionPathSelectorMetadataServicesAllowedServices) WithItemValue added in v1.0.21

func (ConditionPathSelectorMetadataServicesAllowedServices) WithValue added in v1.0.21

type ConditionPathSelectorMetadataServicesOwningService added in v1.0.21

type ConditionPathSelectorMetadataServicesOwningService struct{}

func (ConditionPathSelectorMetadataServicesOwningService) FieldPath added in v1.0.21

func (ConditionPathSelectorMetadataServicesOwningService) WithArrayOfValues added in v1.0.21

func (ConditionPathSelectorMetadataServicesOwningService) WithValue added in v1.0.21

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_FieldPathSelectorDisplayName           Condition_FieldPathSelector = 1
	Condition_FieldPathSelectorDescription           Condition_FieldPathSelector = 2
	Condition_FieldPathSelectorExpression            Condition_FieldPathSelector = 3
	Condition_FieldPathSelectorParameterDeclarations Condition_FieldPathSelector = 4
	Condition_FieldPathSelectorMetadata              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 added in v0.8.0

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

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

func (d *Descriptor) CanBeParentless() bool

func (*Descriptor) GetNameDescriptor

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

func (*Descriptor) GetParentResDescriptors added in v1.0.21

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

func (*Descriptor) GetResourceTypeName

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

func (*Descriptor) NewGetQuery

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

func (*Descriptor) NewListQuery

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

func (*Descriptor) NewNameList

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

func (*Descriptor) NewParentNameList

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

func (*Descriptor) NewParentReferenceList

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

func (*Descriptor) NewQueryResultChange

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

func (*Descriptor) NewQueryResultSnapshot

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

func (*Descriptor) NewReferenceList

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

func (*Descriptor) NewResource

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

func (*Descriptor) NewResourceChange

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

func (*Descriptor) NewResourceChangeList

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

func (*Descriptor) NewResourceChangeMap

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

func (*Descriptor) NewResourceCursor

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

func (*Descriptor) NewResourceFieldMask added in v0.4.16

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

func (*Descriptor) NewResourceFilter added in v0.4.16

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

func (*Descriptor) NewResourceList

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

func (*Descriptor) NewResourceMap

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

func (*Descriptor) NewResourceName

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

func (*Descriptor) NewResourceOrderBy added in v0.4.16

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

func (*Descriptor) NewResourcePager added in v0.9.0

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

func (*Descriptor) NewSearchQuery

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

func (*Descriptor) NewWatchQuery

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

func (*Descriptor) ParseFieldPath

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

func (*Descriptor) ParseResourceName

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

func (*Descriptor) SupportsMetadata added in v1.0.21

func (d *Descriptor) SupportsMetadata() bool

type Filter

type Filter struct {
	FilterCondition
}

func (*Filter) ConvertToNative

func (filter *Filter) ConvertToNative(typeDesc reflect.Type) (interface{}, error)

func (*Filter) ConvertToType

func (filter *Filter) ConvertToType(typeVal ref.Type) ref.Val

func (*Filter) DecodeFirestore

func (filter *Filter) DecodeFirestore(fpbv *firestorepb.Value) error

func (*Filter) EncodeFirestore

func (filter *Filter) EncodeFirestore() (*firestorepb.Value, error)

firestore encoding/decoding integration

func (*Filter) Equal

func (filter *Filter) Equal(other ref.Val) ref.Val

func (*Filter) Evaluate

func (filter *Filter) Evaluate(res *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 added in v0.10.1

func (q *ListQuery) GetWithPagingInfo() bool

func (*ListQuery) GotenQuery

func (q *ListQuery) GotenQuery()

func (*ListQuery) SetFieldMask

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

func (*ListQuery) SetFilter

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

func (*ListQuery) SetPager

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

func (*ListQuery) SetWithPagingInfo added in v0.10.1

func (q *ListQuery) SetWithPagingInfo(with bool)

func (*ListQuery) String

func (q *ListQuery) String() string

type Name

type Name struct {
	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 added in v0.8.0

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

func (*Name) GetIUnderlyingParentName added in v0.8.0

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

func (*Name) GetIdParts

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

func (*Name) 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) 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

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

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

func (*PagerQuery) SetLimit added in v0.8.0

func (p *PagerQuery) SetLimit(limit int)

func (*PagerQuery) SetOrderBy added in v0.8.0

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

func (*PagerQuery) SetPageDirection added in v0.8.0

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

func (*PagerQuery) SetPeekForward added in v0.8.0

func (p *PagerQuery) SetPeekForward(peekForward bool)

type ParentName

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

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

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

func (*ParentName) ConvertToType added in v1.0.21

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

func (*ParentName) DescendsFrom

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

func (*ParentName) Equal added in v1.0.21

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

func (*ParentName) FullyQualifiedName

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

func (*ParentName) GetIParentName added in v0.8.0

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

func (*ParentName) GetIUnderlyingParentName added in v0.8.0

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

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

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

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

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

func (*ParentName) TypeName added in v1.0.21

func (name *ParentName) TypeName() string

func (*ParentName) Value added in v1.0.21

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

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

func (*ParentReference) GetIUnderlyingParentName added in v0.8.0

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

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

func (*QueryResultSnapshot) GetPrevPageCursor

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

func (*QueryResultSnapshot) GetResults

func (*QueryResultSnapshot) SetCursors

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

func (*QueryResultSnapshot) SetPagingInfo added in v0.10.1

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

func (*QueryResultSnapshot) SetResults

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

type Reference

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

func MakeReference

func MakeReference(name *Name, 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 added in v0.8.0

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

func (*Reference) GetIUnderlyingParentName added in v0.8.0

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

func (*Reference) GetIdParts

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

func (*Reference) GetPattern

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

func (*Reference) GetRawResource

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

func (*Reference) GetResourceDescriptor

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

func (*Reference) GetSegments

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

func (*Reference) 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 added in v0.9.0

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

func (*WatchQuery) GetWatchType

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

func (*WatchQuery) SetMaximumChunkSize

func (q *WatchQuery) SetMaximumChunkSize(chunkSize int)

func (*WatchQuery) SetResumeToken

func (q *WatchQuery) SetResumeToken(token string)

func (*WatchQuery) SetStartingTime added in v0.9.0

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

func (*WatchQuery) SetWatchType

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

func (*WatchQuery) String added in v0.4.29

func (q *WatchQuery) String() string

Jump to

Keyboard shortcuts

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