common

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allowance

type Allowance struct {

	// Reference to resource
	Resource *meta_resource.Reference `protobuf:"bytes,1,opt,customtype=Reference,name=resource,proto3" json:"resource,omitempty" firestore:"resource"`
	// Limit or extension for given resource.
	Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty" firestore:"value"`
	// contains filtered or unexported fields
}

Allowance informs how many instances of resource for given type are permitted.

func (*Allowance) Clone

func (o *Allowance) Clone() *Allowance

func (*Allowance) CloneRaw

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

func (*Allowance) Descriptor

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

Deprecated, Use Allowance.ProtoReflect.Descriptor instead.

func (*Allowance) GetResource

func (m *Allowance) GetResource() *meta_resource.Reference

func (*Allowance) GetValue

func (m *Allowance) GetValue() int64

func (*Allowance) GotenMessage

func (*Allowance) GotenMessage()

func (*Allowance) GotenObjectExt

func (o *Allowance) GotenObjectExt()

func (*Allowance) GotenValidate

func (obj *Allowance) GotenValidate() error

func (*Allowance) MakeDiffFieldMask

func (o *Allowance) MakeDiffFieldMask(other *Allowance) *Allowance_FieldMask

func (*Allowance) MakeFullFieldMask

func (o *Allowance) MakeFullFieldMask() *Allowance_FieldMask

func (*Allowance) MakeRawDiffFieldMask

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

func (*Allowance) MakeRawFullFieldMask

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

func (*Allowance) Marshal

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

func (*Allowance) MarshalJSON

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

func (*Allowance) Merge

func (o *Allowance) Merge(source *Allowance)

func (*Allowance) MergeRaw

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

func (*Allowance) ProtoMessage

func (*Allowance) ProtoMessage()

func (*Allowance) ProtoReflect

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

func (*Allowance) Reset

func (m *Allowance) Reset()

func (*Allowance) SetResource

func (m *Allowance) SetResource(fv *meta_resource.Reference)

func (*Allowance) SetValue

func (m *Allowance) SetValue(fv int64)

func (*Allowance) String

func (m *Allowance) String() string

func (*Allowance) Unmarshal

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

func (*Allowance) UnmarshalJSON

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

type AllowanceFieldPathBuilder

type AllowanceFieldPathBuilder struct{}

func NewAllowanceFieldPathBuilder

func NewAllowanceFieldPathBuilder() AllowanceFieldPathBuilder

func (AllowanceFieldPathBuilder) Resource

func (AllowanceFieldPathBuilder) Value

type AllowancePathSelectorResource

type AllowancePathSelectorResource struct{}

func (AllowancePathSelectorResource) FieldPath

func (AllowancePathSelectorResource) WithArrayOfValues

func (AllowancePathSelectorResource) WithValue

type AllowancePathSelectorValue

type AllowancePathSelectorValue struct{}

func (AllowancePathSelectorValue) FieldPath

func (AllowancePathSelectorValue) WithArrayOfValues

func (AllowancePathSelectorValue) WithValue

type Allowance_FieldMask

type Allowance_FieldMask struct {
	Paths []Allowance_FieldPath
}

func FullAllowance_FieldMask

func FullAllowance_FieldMask() *Allowance_FieldMask

func (*Allowance_FieldMask) AppendPath

func (fieldMask *Allowance_FieldMask) AppendPath(path Allowance_FieldPath)

func (*Allowance_FieldMask) AppendRawPath

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

func (*Allowance_FieldMask) DecodeFirestore

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

func (*Allowance_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*Allowance_FieldMask) FilterInputFields

func (fieldMask *Allowance_FieldMask) FilterInputFields() *Allowance_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Allowance_FieldMask) FromProtoFieldMask

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

func (*Allowance_FieldMask) GetPaths

func (fieldMask *Allowance_FieldMask) GetPaths() []Allowance_FieldPath

func (*Allowance_FieldMask) GetRawPaths

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

func (*Allowance_FieldMask) IsFull

func (fieldMask *Allowance_FieldMask) IsFull() bool

func (Allowance_FieldMask) Marshal

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

implement methods required by customType

func (Allowance_FieldMask) MarshalJSON

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

func (*Allowance_FieldMask) PathsCount

func (fieldMask *Allowance_FieldMask) PathsCount() int

func (*Allowance_FieldMask) Project

func (fieldMask *Allowance_FieldMask) Project(source *Allowance) *Allowance

func (*Allowance_FieldMask) ProjectRaw

func (*Allowance_FieldMask) ProtoMessage

func (fieldMask *Allowance_FieldMask) ProtoMessage()

func (*Allowance_FieldMask) ProtoReflect

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

func (*Allowance_FieldMask) Reset

func (fieldMask *Allowance_FieldMask) Reset()

func (*Allowance_FieldMask) Set

func (fieldMask *Allowance_FieldMask) Set(target, source *Allowance)

func (*Allowance_FieldMask) SetFromCliFlag

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

func (*Allowance_FieldMask) SetRaw

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

func (*Allowance_FieldMask) Size

func (fieldMask *Allowance_FieldMask) Size() int

func (*Allowance_FieldMask) String

func (fieldMask *Allowance_FieldMask) String() string

func (*Allowance_FieldMask) Subtract

func (fieldMask *Allowance_FieldMask) Subtract(other *Allowance_FieldMask) *Allowance_FieldMask

func (*Allowance_FieldMask) SubtractRaw

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

func (*Allowance_FieldMask) ToProtoFieldMask

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

ToFieldMask is used for proto conversions

func (*Allowance_FieldMask) Unmarshal

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

func (*Allowance_FieldMask) UnmarshalJSON

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

type Allowance_FieldPath

type Allowance_FieldPath interface {
	gotenobject.FieldPath
	Selector() Allowance_FieldPathSelector
	Get(source *Allowance) []interface{}
	GetSingle(source *Allowance) (interface{}, bool)
	ClearValue(item *Allowance)

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

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

func BuildAllowance_FieldPath

func BuildAllowance_FieldPath(fp gotenobject.RawFieldPath) (Allowance_FieldPath, error)

func MustParseAllowance_FieldPath

func MustParseAllowance_FieldPath(rawField string) Allowance_FieldPath

func ParseAllowance_FieldPath

func ParseAllowance_FieldPath(rawField string) (Allowance_FieldPath, error)

type Allowance_FieldPathArrayItemValue

type Allowance_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	Allowance_FieldPath
	ContainsValue(*Allowance) bool
}

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

func MustParseAllowance_FieldPathArrayItemValue

func MustParseAllowance_FieldPathArrayItemValue(pathStr, valueStr string) Allowance_FieldPathArrayItemValue

func ParseAllowance_FieldPathArrayItemValue

func ParseAllowance_FieldPathArrayItemValue(pathStr, valueStr string) (Allowance_FieldPathArrayItemValue, error)

ParseAllowance_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type Allowance_FieldPathArrayOfValues

type Allowance_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	Allowance_FieldPath
}

Allowance_FieldPathArrayOfValues allows storing slice of values for Allowance fields according to their type

func MustParseAllowance_FieldPathArrayOfValues

func MustParseAllowance_FieldPathArrayOfValues(pathStr, valuesStr string) Allowance_FieldPathArrayOfValues

func ParseAllowance_FieldPathArrayOfValues

func ParseAllowance_FieldPathArrayOfValues(pathStr, valuesStr string) (Allowance_FieldPathArrayOfValues, error)

type Allowance_FieldPathSelector

type Allowance_FieldPathSelector int32
const (
	Allowance_FieldPathSelectorResource Allowance_FieldPathSelector = 0
	Allowance_FieldPathSelectorValue    Allowance_FieldPathSelector = 1
)

func (Allowance_FieldPathSelector) String

type Allowance_FieldPathValue

type Allowance_FieldPathValue interface {
	Allowance_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Allowance)
	CompareWith(*Allowance) (cmp int, comparable bool)
}

Allowance_FieldPathValue allows storing values for Allowance fields according to their type

func MustParseAllowance_FieldPathValue

func MustParseAllowance_FieldPathValue(pathStr, valueStr string) Allowance_FieldPathValue

func ParseAllowance_FieldPathValue

func ParseAllowance_FieldPathValue(pathStr, valueStr string) (Allowance_FieldPathValue, error)

type Allowance_FieldTerminalPath

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

func (*Allowance_FieldTerminalPath) ClearValue

func (fp *Allowance_FieldTerminalPath) ClearValue(item *Allowance)

func (*Allowance_FieldTerminalPath) ClearValueRaw

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

func (*Allowance_FieldTerminalPath) Get

func (fp *Allowance_FieldTerminalPath) Get(source *Allowance) (values []interface{})

Get returns all values pointed by specific field from source Allowance

func (*Allowance_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*Allowance_FieldTerminalPath) GetRaw

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

func (*Allowance_FieldTerminalPath) GetSingle

func (fp *Allowance_FieldTerminalPath) GetSingle(source *Allowance) (interface{}, bool)

GetSingle returns value pointed by specific field of from source Allowance

func (*Allowance_FieldTerminalPath) GetSingleRaw

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

func (*Allowance_FieldTerminalPath) IsLeaf

func (fp *Allowance_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Allowance_FieldTerminalPath) JSONString

func (fp *Allowance_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Allowance_FieldTerminalPath) Selector

func (*Allowance_FieldTerminalPath) SplitIntoTerminalIPaths added in v0.8.0

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

func (*Allowance_FieldTerminalPath) String

func (fp *Allowance_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*Allowance_FieldTerminalPath) WithIArrayItemValue

func (fp *Allowance_FieldTerminalPath) WithIArrayItemValue(value interface{}) Allowance_FieldPathArrayItemValue

func (*Allowance_FieldTerminalPath) WithIArrayOfValues

func (fp *Allowance_FieldTerminalPath) WithIArrayOfValues(values interface{}) Allowance_FieldPathArrayOfValues

func (*Allowance_FieldTerminalPath) WithIValue

func (fp *Allowance_FieldTerminalPath) WithIValue(value interface{}) Allowance_FieldPathValue

func (*Allowance_FieldTerminalPath) WithRawIArrayItemValue

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

func (*Allowance_FieldTerminalPath) WithRawIArrayOfValues

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

func (*Allowance_FieldTerminalPath) WithRawIValue

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

type Allowance_FieldTerminalPathArrayItemValue

type Allowance_FieldTerminalPathArrayItemValue struct {
	Allowance_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Allowance_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *Allowance_FieldTerminalPathArrayItemValue) ContainsValue(source *Allowance) bool

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

func (*Allowance_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*Allowance_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *Allowance_FieldTerminalPathArrayItemValue) GetSingle(source *Allowance) (interface{}, bool)

func (*Allowance_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type Allowance_FieldTerminalPathArrayOfValues

type Allowance_FieldTerminalPathArrayOfValues struct {
	Allowance_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Allowance_FieldTerminalPathArrayOfValues) AsResourceArrayOfValues

func (fpaov *Allowance_FieldTerminalPathArrayOfValues) AsResourceArrayOfValues() ([]*meta_resource.Reference, bool)

func (*Allowance_FieldTerminalPathArrayOfValues) AsValueArrayOfValues

func (fpaov *Allowance_FieldTerminalPathArrayOfValues) AsValueArrayOfValues() ([]int64, bool)

func (*Allowance_FieldTerminalPathArrayOfValues) GetRawValues

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

type Allowance_FieldTerminalPathValue

type Allowance_FieldTerminalPathValue struct {
	Allowance_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Allowance_FieldTerminalPathValue) AsResourceValue

func (fpv *Allowance_FieldTerminalPathValue) AsResourceValue() (*meta_resource.Reference, bool)

func (*Allowance_FieldTerminalPathValue) AsValueValue

func (fpv *Allowance_FieldTerminalPathValue) AsValueValue() (int64, bool)

func (*Allowance_FieldTerminalPathValue) CompareWith

func (fpv *Allowance_FieldTerminalPathValue) CompareWith(source *Allowance) (int, bool)

CompareWith compares value in the 'Allowance_FieldTerminalPathValue' with the value under path in 'Allowance'.

func (*Allowance_FieldTerminalPathValue) CompareWithRaw

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

func (*Allowance_FieldTerminalPathValue) GetRawValue

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

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

func (*Allowance_FieldTerminalPathValue) SetTo

func (fpv *Allowance_FieldTerminalPathValue) SetTo(target **Allowance)

SetTo stores value for selected field for object Allowance

func (*Allowance_FieldTerminalPathValue) SetToRaw

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

type RegionalDistribution

type RegionalDistribution struct {

	// Reference to resource
	Resource *meta_resource.Reference `protobuf:"bytes,1,opt,customtype=Reference,name=resource,proto3" json:"resource,omitempty" firestore:"resource"`
	// Limit per region.
	LimitsByRegion map[string]int64 `` /* 221-byte string literal not displayed */
	// contains filtered or unexported fields
}

RegionalDistribution shows distribution of certain resource allowances across regions.

func (*RegionalDistribution) Clone

func (*RegionalDistribution) CloneRaw

func (*RegionalDistribution) Descriptor

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

Deprecated, Use RegionalDistribution.ProtoReflect.Descriptor instead.

func (*RegionalDistribution) GetLimitsByRegion

func (m *RegionalDistribution) GetLimitsByRegion() map[string]int64

func (*RegionalDistribution) GetResource

func (m *RegionalDistribution) GetResource() *meta_resource.Reference

func (*RegionalDistribution) GotenMessage

func (*RegionalDistribution) GotenMessage()

func (*RegionalDistribution) GotenObjectExt

func (o *RegionalDistribution) GotenObjectExt()

func (*RegionalDistribution) GotenValidate

func (obj *RegionalDistribution) GotenValidate() error

func (*RegionalDistribution) MakeDiffFieldMask

func (*RegionalDistribution) MakeFullFieldMask

func (o *RegionalDistribution) MakeFullFieldMask() *RegionalDistribution_FieldMask

func (*RegionalDistribution) MakeRawDiffFieldMask

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

func (*RegionalDistribution) MakeRawFullFieldMask

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

func (*RegionalDistribution) Marshal

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

func (*RegionalDistribution) MarshalJSON

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

func (*RegionalDistribution) Merge

func (o *RegionalDistribution) Merge(source *RegionalDistribution)

func (*RegionalDistribution) MergeRaw

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

func (*RegionalDistribution) ProtoMessage

func (*RegionalDistribution) ProtoMessage()

func (*RegionalDistribution) ProtoReflect

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

func (*RegionalDistribution) Reset

func (m *RegionalDistribution) Reset()

func (*RegionalDistribution) SetLimitsByRegion

func (m *RegionalDistribution) SetLimitsByRegion(fv map[string]int64)

func (*RegionalDistribution) SetResource

func (m *RegionalDistribution) SetResource(fv *meta_resource.Reference)

func (*RegionalDistribution) String

func (m *RegionalDistribution) String() string

func (*RegionalDistribution) Unmarshal

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

func (*RegionalDistribution) UnmarshalJSON

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

type RegionalDistributionFieldPathBuilder

type RegionalDistributionFieldPathBuilder struct{}

func NewRegionalDistributionFieldPathBuilder

func NewRegionalDistributionFieldPathBuilder() RegionalDistributionFieldPathBuilder

func (RegionalDistributionFieldPathBuilder) LimitsByRegion

func (RegionalDistributionFieldPathBuilder) Resource

type RegionalDistributionMapPathSelectorLimitsByRegion

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

func (RegionalDistributionMapPathSelectorLimitsByRegion) FieldPath

func (RegionalDistributionMapPathSelectorLimitsByRegion) WithArrayOfValues

func (RegionalDistributionMapPathSelectorLimitsByRegion) WithValue

type RegionalDistributionPathSelectorLimitsByRegion

type RegionalDistributionPathSelectorLimitsByRegion struct{}

func (RegionalDistributionPathSelectorLimitsByRegion) FieldPath

func (RegionalDistributionPathSelectorLimitsByRegion) WithArrayOfValues

func (RegionalDistributionPathSelectorLimitsByRegion) WithKey

func (RegionalDistributionPathSelectorLimitsByRegion) WithValue

type RegionalDistributionPathSelectorResource

type RegionalDistributionPathSelectorResource struct{}

func (RegionalDistributionPathSelectorResource) FieldPath

func (RegionalDistributionPathSelectorResource) WithArrayOfValues

func (RegionalDistributionPathSelectorResource) WithValue

type RegionalDistribution_FieldMask

type RegionalDistribution_FieldMask struct {
	Paths []RegionalDistribution_FieldPath
}

func FullRegionalDistribution_FieldMask

func FullRegionalDistribution_FieldMask() *RegionalDistribution_FieldMask

func (*RegionalDistribution_FieldMask) AppendPath

func (*RegionalDistribution_FieldMask) AppendRawPath

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

func (*RegionalDistribution_FieldMask) DecodeFirestore

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

func (*RegionalDistribution_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*RegionalDistribution_FieldMask) FilterInputFields

func (fieldMask *RegionalDistribution_FieldMask) FilterInputFields() *RegionalDistribution_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*RegionalDistribution_FieldMask) FromProtoFieldMask

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

func (*RegionalDistribution_FieldMask) GetPaths

func (*RegionalDistribution_FieldMask) GetRawPaths

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

func (*RegionalDistribution_FieldMask) IsFull

func (fieldMask *RegionalDistribution_FieldMask) IsFull() bool

func (RegionalDistribution_FieldMask) Marshal

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

implement methods required by customType

func (RegionalDistribution_FieldMask) MarshalJSON

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

func (*RegionalDistribution_FieldMask) PathsCount

func (fieldMask *RegionalDistribution_FieldMask) PathsCount() int

func (*RegionalDistribution_FieldMask) Project

func (*RegionalDistribution_FieldMask) ProjectRaw

func (*RegionalDistribution_FieldMask) ProtoMessage

func (fieldMask *RegionalDistribution_FieldMask) ProtoMessage()

func (*RegionalDistribution_FieldMask) ProtoReflect

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

func (*RegionalDistribution_FieldMask) Reset

func (fieldMask *RegionalDistribution_FieldMask) Reset()

func (*RegionalDistribution_FieldMask) Set

func (fieldMask *RegionalDistribution_FieldMask) Set(target, source *RegionalDistribution)

func (*RegionalDistribution_FieldMask) SetFromCliFlag

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

func (*RegionalDistribution_FieldMask) SetRaw

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

func (*RegionalDistribution_FieldMask) Size

func (fieldMask *RegionalDistribution_FieldMask) Size() int

func (*RegionalDistribution_FieldMask) String

func (fieldMask *RegionalDistribution_FieldMask) String() string

func (*RegionalDistribution_FieldMask) Subtract

func (*RegionalDistribution_FieldMask) SubtractRaw

func (*RegionalDistribution_FieldMask) ToProtoFieldMask

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

ToFieldMask is used for proto conversions

func (*RegionalDistribution_FieldMask) Unmarshal

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

func (*RegionalDistribution_FieldMask) UnmarshalJSON

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

type RegionalDistribution_FieldPath

type RegionalDistribution_FieldPath interface {
	gotenobject.FieldPath
	Selector() RegionalDistribution_FieldPathSelector
	Get(source *RegionalDistribution) []interface{}
	GetSingle(source *RegionalDistribution) (interface{}, bool)
	ClearValue(item *RegionalDistribution)

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

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

func MustParseRegionalDistribution_FieldPath

func MustParseRegionalDistribution_FieldPath(rawField string) RegionalDistribution_FieldPath

func ParseRegionalDistribution_FieldPath

func ParseRegionalDistribution_FieldPath(rawField string) (RegionalDistribution_FieldPath, error)

type RegionalDistribution_FieldPathArrayItemValue

type RegionalDistribution_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	RegionalDistribution_FieldPath
	ContainsValue(*RegionalDistribution) bool
}

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

func MustParseRegionalDistribution_FieldPathArrayItemValue

func MustParseRegionalDistribution_FieldPathArrayItemValue(pathStr, valueStr string) RegionalDistribution_FieldPathArrayItemValue

func ParseRegionalDistribution_FieldPathArrayItemValue

func ParseRegionalDistribution_FieldPathArrayItemValue(pathStr, valueStr string) (RegionalDistribution_FieldPathArrayItemValue, error)

ParseRegionalDistribution_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type RegionalDistribution_FieldPathArrayOfValues

type RegionalDistribution_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	RegionalDistribution_FieldPath
}

RegionalDistribution_FieldPathArrayOfValues allows storing slice of values for RegionalDistribution fields according to their type

func MustParseRegionalDistribution_FieldPathArrayOfValues

func MustParseRegionalDistribution_FieldPathArrayOfValues(pathStr, valuesStr string) RegionalDistribution_FieldPathArrayOfValues

func ParseRegionalDistribution_FieldPathArrayOfValues

func ParseRegionalDistribution_FieldPathArrayOfValues(pathStr, valuesStr string) (RegionalDistribution_FieldPathArrayOfValues, error)

type RegionalDistribution_FieldPathMap

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

FieldPath for map type with additional Key information

func (*RegionalDistribution_FieldPathMap) ClearValue

func (*RegionalDistribution_FieldPathMap) ClearValueRaw

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

func (*RegionalDistribution_FieldPathMap) Get

func (fpm *RegionalDistribution_FieldPathMap) Get(source *RegionalDistribution) (values []interface{})

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

func (*RegionalDistribution_FieldPathMap) GetDefault

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

GetDefault returns a default value of the field type

func (*RegionalDistribution_FieldPathMap) GetRaw

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

func (*RegionalDistribution_FieldPathMap) GetSingle

func (fpm *RegionalDistribution_FieldPathMap) GetSingle(source *RegionalDistribution) (interface{}, bool)

GetSingle returns value by selected field map key from source RegionalDistribution

func (*RegionalDistribution_FieldPathMap) GetSingleRaw

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

func (*RegionalDistribution_FieldPathMap) IsLeaf

IsLeaf - whether field path is holds simple value

func (*RegionalDistribution_FieldPathMap) JSONString

func (fpm *RegionalDistribution_FieldPathMap) JSONString() string

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

func (*RegionalDistribution_FieldPathMap) Key

func (*RegionalDistribution_FieldPathMap) Selector

func (*RegionalDistribution_FieldPathMap) SplitIntoTerminalIPaths added in v0.8.0

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

func (*RegionalDistribution_FieldPathMap) String

String returns path representation in proto convention

func (*RegionalDistribution_FieldPathMap) WithIArrayItemValue

func (fpm *RegionalDistribution_FieldPathMap) WithIArrayItemValue(value interface{}) RegionalDistribution_FieldPathArrayItemValue

func (*RegionalDistribution_FieldPathMap) WithIArrayOfValues

func (fpm *RegionalDistribution_FieldPathMap) WithIArrayOfValues(values interface{}) RegionalDistribution_FieldPathArrayOfValues

func (*RegionalDistribution_FieldPathMap) WithIValue

func (*RegionalDistribution_FieldPathMap) WithRawIArrayItemValue

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

func (*RegionalDistribution_FieldPathMap) WithRawIArrayOfValues

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

func (*RegionalDistribution_FieldPathMap) WithRawIValue

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

type RegionalDistribution_FieldPathMapArrayOfValues

type RegionalDistribution_FieldPathMapArrayOfValues struct {
	RegionalDistribution_FieldPathMap
	// contains filtered or unexported fields
}

func (*RegionalDistribution_FieldPathMapArrayOfValues) AsLimitsByRegionArrayOfElementValues

func (fpmaov *RegionalDistribution_FieldPathMapArrayOfValues) AsLimitsByRegionArrayOfElementValues() ([]int64, bool)

func (*RegionalDistribution_FieldPathMapArrayOfValues) GetRawValues

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

type RegionalDistribution_FieldPathMapValue

type RegionalDistribution_FieldPathMapValue struct {
	RegionalDistribution_FieldPathMap
	// contains filtered or unexported fields
}

func (*RegionalDistribution_FieldPathMapValue) AsLimitsByRegionElementValue

func (fpmv *RegionalDistribution_FieldPathMapValue) AsLimitsByRegionElementValue() (int64, bool)

func (*RegionalDistribution_FieldPathMapValue) CompareWith

CompareWith compares value in the 'RegionalDistribution_FieldPathMapValue' with the value under path in 'RegionalDistribution'.

func (*RegionalDistribution_FieldPathMapValue) CompareWithRaw

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

func (*RegionalDistribution_FieldPathMapValue) GetRawValue

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

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

func (*RegionalDistribution_FieldPathMapValue) SetTo

SetTo stores value for selected field in RegionalDistribution

func (*RegionalDistribution_FieldPathMapValue) SetToRaw

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

type RegionalDistribution_FieldPathSelector

type RegionalDistribution_FieldPathSelector int32
const (
	RegionalDistribution_FieldPathSelectorResource       RegionalDistribution_FieldPathSelector = 0
	RegionalDistribution_FieldPathSelectorLimitsByRegion RegionalDistribution_FieldPathSelector = 1
)

func (RegionalDistribution_FieldPathSelector) String

type RegionalDistribution_FieldPathValue

type RegionalDistribution_FieldPathValue interface {
	RegionalDistribution_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **RegionalDistribution)
	CompareWith(*RegionalDistribution) (cmp int, comparable bool)
}

RegionalDistribution_FieldPathValue allows storing values for RegionalDistribution fields according to their type

func MustParseRegionalDistribution_FieldPathValue

func MustParseRegionalDistribution_FieldPathValue(pathStr, valueStr string) RegionalDistribution_FieldPathValue

func ParseRegionalDistribution_FieldPathValue

func ParseRegionalDistribution_FieldPathValue(pathStr, valueStr string) (RegionalDistribution_FieldPathValue, error)

type RegionalDistribution_FieldTerminalPath

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

func (*RegionalDistribution_FieldTerminalPath) ClearValue

func (*RegionalDistribution_FieldTerminalPath) ClearValueRaw

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

func (*RegionalDistribution_FieldTerminalPath) Get

func (fp *RegionalDistribution_FieldTerminalPath) Get(source *RegionalDistribution) (values []interface{})

Get returns all values pointed by specific field from source RegionalDistribution

func (*RegionalDistribution_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*RegionalDistribution_FieldTerminalPath) GetRaw

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

func (*RegionalDistribution_FieldTerminalPath) GetSingle

func (fp *RegionalDistribution_FieldTerminalPath) GetSingle(source *RegionalDistribution) (interface{}, bool)

GetSingle returns value pointed by specific field of from source RegionalDistribution

func (*RegionalDistribution_FieldTerminalPath) GetSingleRaw

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

func (*RegionalDistribution_FieldTerminalPath) IsLeaf

IsLeaf - whether field path is holds simple value

func (*RegionalDistribution_FieldTerminalPath) JSONString

JSONString returns path representation is JSON convention

func (*RegionalDistribution_FieldTerminalPath) Selector

func (*RegionalDistribution_FieldTerminalPath) SplitIntoTerminalIPaths added in v0.8.0

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

func (*RegionalDistribution_FieldTerminalPath) String

String returns path representation in proto convention

func (*RegionalDistribution_FieldTerminalPath) WithIArrayItemValue

func (*RegionalDistribution_FieldTerminalPath) WithIArrayOfValues

func (*RegionalDistribution_FieldTerminalPath) WithIValue

func (*RegionalDistribution_FieldTerminalPath) WithRawIArrayItemValue

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

func (*RegionalDistribution_FieldTerminalPath) WithRawIArrayOfValues

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

func (*RegionalDistribution_FieldTerminalPath) WithRawIValue

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

type RegionalDistribution_FieldTerminalPathArrayItemValue

type RegionalDistribution_FieldTerminalPathArrayItemValue struct {
	RegionalDistribution_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*RegionalDistribution_FieldTerminalPathArrayItemValue) ContainsValue

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

func (*RegionalDistribution_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*RegionalDistribution_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *RegionalDistribution_FieldTerminalPathArrayItemValue) GetSingle(source *RegionalDistribution) (interface{}, bool)

func (*RegionalDistribution_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type RegionalDistribution_FieldTerminalPathArrayOfValues

type RegionalDistribution_FieldTerminalPathArrayOfValues struct {
	RegionalDistribution_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*RegionalDistribution_FieldTerminalPathArrayOfValues) AsLimitsByRegionArrayOfValues

func (fpaov *RegionalDistribution_FieldTerminalPathArrayOfValues) AsLimitsByRegionArrayOfValues() ([]map[string]int64, bool)

func (*RegionalDistribution_FieldTerminalPathArrayOfValues) AsResourceArrayOfValues

func (*RegionalDistribution_FieldTerminalPathArrayOfValues) GetRawValues

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

type RegionalDistribution_FieldTerminalPathValue

type RegionalDistribution_FieldTerminalPathValue struct {
	RegionalDistribution_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*RegionalDistribution_FieldTerminalPathValue) AsLimitsByRegionValue

func (fpv *RegionalDistribution_FieldTerminalPathValue) AsLimitsByRegionValue() (map[string]int64, bool)

func (*RegionalDistribution_FieldTerminalPathValue) AsResourceValue

func (*RegionalDistribution_FieldTerminalPathValue) CompareWith

CompareWith compares value in the 'RegionalDistribution_FieldTerminalPathValue' with the value under path in 'RegionalDistribution'.

func (*RegionalDistribution_FieldTerminalPathValue) CompareWithRaw

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

func (*RegionalDistribution_FieldTerminalPathValue) GetRawValue

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

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

func (*RegionalDistribution_FieldTerminalPathValue) SetTo

SetTo stores value for selected field for object RegionalDistribution

func (*RegionalDistribution_FieldTerminalPathValue) SetToRaw

Jump to

Keyboard shortcuts

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