device_type

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamePattern_Nil = "deviceTypes/{device_type}"
)

Variables

View Source
var (
	DeviceType_Hardware_name = map[int32]string{
		0: "HARDWARE_UNSPECIFIED",
		1: "GENERIC",
		2: "RASPBERRYPI",
	}

	DeviceType_Hardware_value = map[string]int32{
		"HARDWARE_UNSPECIFIED": 0,
		"GENERIC":              1,
		"RASPBERRYPI":          2,
	}
)
View Source
var (
	DeviceType_Architecture_name = map[int32]string{
		0: "ARCHITECTURE_UNSPECIFIED",
		1: "AMD64",
		2: "ARM64",
	}

	DeviceType_Architecture_value = map[string]int32{
		"ARCHITECTURE_UNSPECIFIED": 0,
		"AMD64":                    1,
		"ARM64":                    2,
	}
)

Functions

func AsAnyCastAccess

func AsAnyCastAccess(access DeviceTypeAccess) gotenresource.Access

Types

type Descriptor

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

func GetDescriptor

func GetDescriptor() *Descriptor

func (*Descriptor) CanBeParentless

func (d *Descriptor) CanBeParentless() bool

func (*Descriptor) GetNameDescriptor

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

func (*Descriptor) GetParentResDescriptors

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

func (*Descriptor) GetResourceTypeName

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

func (*Descriptor) NewGetQuery

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

func (*Descriptor) NewListQuery

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

func (*Descriptor) NewNameList

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

func (*Descriptor) NewParentNameList

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

func (*Descriptor) NewParentReferenceList

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

func (*Descriptor) NewQueryResultChange

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

func (*Descriptor) NewQueryResultSnapshot

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

func (*Descriptor) NewReferenceList

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

func (*Descriptor) NewResource

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

func (*Descriptor) NewResourceChange

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

func (*Descriptor) NewResourceChangeList

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

func (*Descriptor) NewResourceChangeMap

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

func (*Descriptor) NewResourceCursor

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

func (*Descriptor) NewResourceFieldMask

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

func (*Descriptor) NewResourceFilter

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

func (*Descriptor) NewResourceList

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

func (*Descriptor) NewResourceMap

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

func (*Descriptor) NewResourceName

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

func (*Descriptor) NewResourceOrderBy

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

func (*Descriptor) NewResourcePager

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

func (*Descriptor) NewSearchQuery

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

func (*Descriptor) NewWatchQuery

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

func (*Descriptor) ParseFieldPath

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

func (*Descriptor) ParseResourceName

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

func (*Descriptor) SupportsMetadata

func (d *Descriptor) SupportsMetadata() bool

type DeviceType

type DeviceType struct {

	// Name of DeviceType
	// When creating a new instance, this field is optional and if not provided,
	// it will be generated automatically. Last ID segment must conform to the
	// following regex: [a-z][a-z0-9\\-]{0,28}[a-z0-9]
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// Metadata is an object with information like create, update and delete time
	// (for async deleted resources), has user labels/annotations, sharding
	// information, multi-region syncing information and may have non-schema
	// owners (useful for taking ownership of resources belonging to lower level
	// services by higher ones).
	Metadata *meta.Meta `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty" firestore:"metadata"`
	// Display name of Device Type
	DisplayName  string                  `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty" firestore:"displayName"`
	Hardware     DeviceType_Hardware     `` /* 131-byte string literal not displayed */
	Architecture DeviceType_Architecture `` /* 147-byte string literal not displayed */
	// Description of the Device Type
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty" firestore:"description"`
	// contains filtered or unexported fields
}

DeviceType Resource

func (*DeviceType) Clone

func (o *DeviceType) Clone() *DeviceType

func (*DeviceType) CloneRaw

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

func (*DeviceType) Descriptor

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

Deprecated, Use DeviceType.ProtoReflect.Descriptor instead.

func (*DeviceType) EnsureMetadata

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

func (*DeviceType) GetArchitecture

func (m *DeviceType) GetArchitecture() DeviceType_Architecture

func (*DeviceType) GetDescription

func (m *DeviceType) GetDescription() string

func (*DeviceType) GetDisplayName

func (m *DeviceType) GetDisplayName() string

func (*DeviceType) GetHardware

func (m *DeviceType) GetHardware() DeviceType_Hardware

func (*DeviceType) GetMetadata

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

func (*DeviceType) GetName

func (m *DeviceType) GetName() *Name

func (*DeviceType) GetRawName

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

func (*DeviceType) GetResourceDescriptor

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

func (*DeviceType) GotenMessage

func (*DeviceType) GotenMessage()

func (*DeviceType) GotenObjectExt

func (o *DeviceType) GotenObjectExt()

func (*DeviceType) GotenValidate

func (obj *DeviceType) GotenValidate() error

func (*DeviceType) MakeDiffFieldMask

func (o *DeviceType) MakeDiffFieldMask(other *DeviceType) *DeviceType_FieldMask

func (*DeviceType) MakeFullFieldMask

func (o *DeviceType) MakeFullFieldMask() *DeviceType_FieldMask

func (*DeviceType) MakeRawDiffFieldMask

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

func (*DeviceType) MakeRawFullFieldMask

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

func (*DeviceType) Marshal

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

func (*DeviceType) MarshalJSON

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

func (*DeviceType) MaybePopulateDefaults

func (r *DeviceType) MaybePopulateDefaults() error

func (*DeviceType) Merge

func (o *DeviceType) Merge(source *DeviceType)

func (*DeviceType) MergeRaw

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

func (*DeviceType) ProtoMessage

func (*DeviceType) ProtoMessage()

func (*DeviceType) ProtoReflect

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

func (*DeviceType) Reset

func (m *DeviceType) Reset()

func (*DeviceType) SetArchitecture

func (m *DeviceType) SetArchitecture(fv DeviceType_Architecture)

func (*DeviceType) SetDescription

func (m *DeviceType) SetDescription(fv string)

func (*DeviceType) SetDisplayName

func (m *DeviceType) SetDisplayName(fv string)

func (*DeviceType) SetHardware

func (m *DeviceType) SetHardware(fv DeviceType_Hardware)

func (*DeviceType) SetMetadata

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

func (*DeviceType) SetName

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

func (*DeviceType) String

func (m *DeviceType) String() string

func (*DeviceType) Unmarshal

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

func (*DeviceType) UnmarshalJSON

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

type DeviceTypeAccess

type DeviceTypeAccess interface {
	GetDeviceType(context.Context, *GetQuery) (*DeviceType, error)
	BatchGetDeviceTypes(context.Context, []*Reference, ...gotenresource.BatchGetOption) error
	QueryDeviceTypes(context.Context, *ListQuery) (*QueryResultSnapshot, error)
	WatchDeviceType(context.Context, *GetQuery, func(*DeviceTypeChange) error) error
	WatchDeviceTypes(context.Context, *WatchQuery, func(*QueryResultChange) error) error
	SaveDeviceType(context.Context, *DeviceType, ...gotenresource.SaveOption) error
	DeleteDeviceType(context.Context, *Reference, ...gotenresource.DeleteOption) error
}

type DeviceTypeChange

type DeviceTypeChange struct {

	// DeviceType change
	//
	// Types that are valid to be assigned to ChangeType:
	//	*DeviceTypeChange_Added_
	//	*DeviceTypeChange_Modified_
	//	*DeviceTypeChange_Current_
	//	*DeviceTypeChange_Removed_
	ChangeType isDeviceTypeChange_ChangeType `protobuf_oneof:"change_type"`
	// contains filtered or unexported fields
}

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

func (*DeviceTypeChange) Descriptor

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

Deprecated, Use DeviceTypeChange.ProtoReflect.Descriptor instead.

func (*DeviceTypeChange) GetAdded

func (*DeviceTypeChange) GetChangeType

func (m *DeviceTypeChange) GetChangeType() isDeviceTypeChange_ChangeType

func (*DeviceTypeChange) GetCurrent

func (m *DeviceTypeChange) GetCurrent() *DeviceTypeChange_Current

func (*DeviceTypeChange) GetCurrentViewIndex

func (c *DeviceTypeChange) GetCurrentViewIndex() int32

func (*DeviceTypeChange) GetDeviceType

func (c *DeviceTypeChange) GetDeviceType() *DeviceType

func (*DeviceTypeChange) GetDeviceTypeName

func (c *DeviceTypeChange) GetDeviceTypeName() *Name

func (*DeviceTypeChange) GetModified

func (m *DeviceTypeChange) GetModified() *DeviceTypeChange_Modified

func (*DeviceTypeChange) GetPreviousViewIndex

func (c *DeviceTypeChange) GetPreviousViewIndex() int32

func (*DeviceTypeChange) GetRawName

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

func (*DeviceTypeChange) GetRawResource

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

func (*DeviceTypeChange) GetRemoved

func (m *DeviceTypeChange) GetRemoved() *DeviceTypeChange_Removed

func (*DeviceTypeChange) GotenMessage

func (*DeviceTypeChange) GotenMessage()

func (*DeviceTypeChange) GotenValidate

func (obj *DeviceTypeChange) GotenValidate() error

func (*DeviceTypeChange) IsAdd

func (c *DeviceTypeChange) IsAdd() bool

func (*DeviceTypeChange) IsCurrent

func (c *DeviceTypeChange) IsCurrent() bool

func (*DeviceTypeChange) IsDelete

func (c *DeviceTypeChange) IsDelete() bool

func (*DeviceTypeChange) IsModify

func (c *DeviceTypeChange) IsModify() bool

func (*DeviceTypeChange) Marshal

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

func (*DeviceTypeChange) MarshalJSON

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

func (*DeviceTypeChange) ProtoMessage

func (*DeviceTypeChange) ProtoMessage()

func (*DeviceTypeChange) ProtoReflect

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

func (*DeviceTypeChange) Reset

func (m *DeviceTypeChange) Reset()

func (*DeviceTypeChange) SetAdded

func (m *DeviceTypeChange) SetAdded(fv *DeviceTypeChange_Added)

func (*DeviceTypeChange) SetAddedRaw

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

func (*DeviceTypeChange) SetChangeType

func (m *DeviceTypeChange) SetChangeType(ofv isDeviceTypeChange_ChangeType)

func (*DeviceTypeChange) SetCurrent

func (m *DeviceTypeChange) SetCurrent(fv *DeviceTypeChange_Current)

func (*DeviceTypeChange) SetCurrentRaw

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

func (*DeviceTypeChange) SetDeletedRaw

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

func (*DeviceTypeChange) SetModified

func (m *DeviceTypeChange) SetModified(fv *DeviceTypeChange_Modified)

func (*DeviceTypeChange) SetModifiedRaw

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

func (*DeviceTypeChange) SetRemoved

func (m *DeviceTypeChange) SetRemoved(fv *DeviceTypeChange_Removed)

func (*DeviceTypeChange) String

func (m *DeviceTypeChange) String() string

func (*DeviceTypeChange) Unmarshal

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

func (*DeviceTypeChange) UnmarshalJSON

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

type DeviceTypeChangeList

type DeviceTypeChangeList []*DeviceTypeChange

func (DeviceTypeChangeList) Append

func (DeviceTypeChangeList) At

func (DeviceTypeChangeList) Length

func (l DeviceTypeChangeList) Length() int

func (DeviceTypeChangeList) Set

func (DeviceTypeChangeList) Slice

type DeviceTypeChangeMap

type DeviceTypeChangeMap map[Name]*DeviceTypeChange

func (DeviceTypeChangeMap) Delete

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

func (DeviceTypeChangeMap) ForEach

func (DeviceTypeChangeMap) Get

func (DeviceTypeChangeMap) Length

func (m DeviceTypeChangeMap) Length() int

func (DeviceTypeChangeMap) Set

type DeviceTypeChange_Added

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

DeviceType has been added to query view

func (*DeviceTypeChange_Added) Descriptor

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

Deprecated, Use DeviceTypeChange_Added.ProtoReflect.Descriptor instead.

func (*DeviceTypeChange_Added) GetDeviceType

func (m *DeviceTypeChange_Added) GetDeviceType() *DeviceType

func (*DeviceTypeChange_Added) GetViewIndex

func (m *DeviceTypeChange_Added) GetViewIndex() int32

func (*DeviceTypeChange_Added) GotenMessage

func (*DeviceTypeChange_Added) GotenMessage()

func (*DeviceTypeChange_Added) GotenValidate

func (obj *DeviceTypeChange_Added) GotenValidate() error

func (*DeviceTypeChange_Added) Marshal

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

func (*DeviceTypeChange_Added) MarshalJSON

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

func (*DeviceTypeChange_Added) ProtoMessage

func (*DeviceTypeChange_Added) ProtoMessage()

func (*DeviceTypeChange_Added) ProtoReflect

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

func (*DeviceTypeChange_Added) Reset

func (m *DeviceTypeChange_Added) Reset()

func (*DeviceTypeChange_Added) SetDeviceType

func (m *DeviceTypeChange_Added) SetDeviceType(fv *DeviceType)

func (*DeviceTypeChange_Added) SetViewIndex

func (m *DeviceTypeChange_Added) SetViewIndex(fv int32)

func (*DeviceTypeChange_Added) String

func (m *DeviceTypeChange_Added) String() string

func (*DeviceTypeChange_Added) Unmarshal

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

func (*DeviceTypeChange_Added) UnmarshalJSON

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

type DeviceTypeChange_Added_

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

type DeviceTypeChange_Current

type DeviceTypeChange_Current struct {
	DeviceType *DeviceType `protobuf:"bytes,1,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty" firestore:"deviceType"`
	// contains filtered or unexported fields
}

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

func (*DeviceTypeChange_Current) Descriptor

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

Deprecated, Use DeviceTypeChange_Current.ProtoReflect.Descriptor instead.

func (*DeviceTypeChange_Current) GetDeviceType

func (m *DeviceTypeChange_Current) GetDeviceType() *DeviceType

func (*DeviceTypeChange_Current) GotenMessage

func (*DeviceTypeChange_Current) GotenMessage()

func (*DeviceTypeChange_Current) GotenValidate

func (obj *DeviceTypeChange_Current) GotenValidate() error

func (*DeviceTypeChange_Current) Marshal

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

func (*DeviceTypeChange_Current) MarshalJSON

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

func (*DeviceTypeChange_Current) ProtoMessage

func (*DeviceTypeChange_Current) ProtoMessage()

func (*DeviceTypeChange_Current) ProtoReflect

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

func (*DeviceTypeChange_Current) Reset

func (m *DeviceTypeChange_Current) Reset()

func (*DeviceTypeChange_Current) SetDeviceType

func (m *DeviceTypeChange_Current) SetDeviceType(fv *DeviceType)

func (*DeviceTypeChange_Current) String

func (m *DeviceTypeChange_Current) String() string

func (*DeviceTypeChange_Current) Unmarshal

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

func (*DeviceTypeChange_Current) UnmarshalJSON

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

type DeviceTypeChange_Current_

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

type DeviceTypeChange_Modified

type DeviceTypeChange_Modified struct {

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

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

func (*DeviceTypeChange_Modified) Descriptor

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

Deprecated, Use DeviceTypeChange_Modified.ProtoReflect.Descriptor instead.

func (*DeviceTypeChange_Modified) GetDeviceType

func (m *DeviceTypeChange_Modified) GetDeviceType() *DeviceType

func (*DeviceTypeChange_Modified) GetFieldMask

func (*DeviceTypeChange_Modified) GetName

func (m *DeviceTypeChange_Modified) GetName() *Name

func (*DeviceTypeChange_Modified) GetPreviousViewIndex

func (m *DeviceTypeChange_Modified) GetPreviousViewIndex() int32

func (*DeviceTypeChange_Modified) GetViewIndex

func (m *DeviceTypeChange_Modified) GetViewIndex() int32

func (*DeviceTypeChange_Modified) GotenMessage

func (*DeviceTypeChange_Modified) GotenMessage()

func (*DeviceTypeChange_Modified) GotenValidate

func (obj *DeviceTypeChange_Modified) GotenValidate() error

func (*DeviceTypeChange_Modified) Marshal

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

func (*DeviceTypeChange_Modified) MarshalJSON

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

func (*DeviceTypeChange_Modified) ProtoMessage

func (*DeviceTypeChange_Modified) ProtoMessage()

func (*DeviceTypeChange_Modified) ProtoReflect

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

func (*DeviceTypeChange_Modified) Reset

func (m *DeviceTypeChange_Modified) Reset()

func (*DeviceTypeChange_Modified) SetDeviceType

func (m *DeviceTypeChange_Modified) SetDeviceType(fv *DeviceType)

func (*DeviceTypeChange_Modified) SetFieldMask

func (m *DeviceTypeChange_Modified) SetFieldMask(fv *DeviceType_FieldMask)

func (*DeviceTypeChange_Modified) SetName

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

func (*DeviceTypeChange_Modified) SetPreviousViewIndex

func (m *DeviceTypeChange_Modified) SetPreviousViewIndex(fv int32)

func (*DeviceTypeChange_Modified) SetViewIndex

func (m *DeviceTypeChange_Modified) SetViewIndex(fv int32)

func (*DeviceTypeChange_Modified) String

func (m *DeviceTypeChange_Modified) String() string

func (*DeviceTypeChange_Modified) Unmarshal

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

func (*DeviceTypeChange_Modified) UnmarshalJSON

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

type DeviceTypeChange_Modified_

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

type DeviceTypeChange_Removed

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

func (*DeviceTypeChange_Removed) Descriptor

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

Deprecated, Use DeviceTypeChange_Removed.ProtoReflect.Descriptor instead.

func (*DeviceTypeChange_Removed) GetName

func (m *DeviceTypeChange_Removed) GetName() *Name

func (*DeviceTypeChange_Removed) GetViewIndex

func (m *DeviceTypeChange_Removed) GetViewIndex() int32

func (*DeviceTypeChange_Removed) GotenMessage

func (*DeviceTypeChange_Removed) GotenMessage()

func (*DeviceTypeChange_Removed) GotenValidate

func (obj *DeviceTypeChange_Removed) GotenValidate() error

func (*DeviceTypeChange_Removed) Marshal

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

func (*DeviceTypeChange_Removed) MarshalJSON

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

func (*DeviceTypeChange_Removed) ProtoMessage

func (*DeviceTypeChange_Removed) ProtoMessage()

func (*DeviceTypeChange_Removed) ProtoReflect

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

func (*DeviceTypeChange_Removed) Reset

func (m *DeviceTypeChange_Removed) Reset()

func (*DeviceTypeChange_Removed) SetName

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

func (*DeviceTypeChange_Removed) SetViewIndex

func (m *DeviceTypeChange_Removed) SetViewIndex(fv int32)

func (*DeviceTypeChange_Removed) String

func (m *DeviceTypeChange_Removed) String() string

func (*DeviceTypeChange_Removed) Unmarshal

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

func (*DeviceTypeChange_Removed) UnmarshalJSON

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

type DeviceTypeChange_Removed_

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

type DeviceTypeFieldPathBuilder

type DeviceTypeFieldPathBuilder struct{}

func NewDeviceTypeFieldPathBuilder

func NewDeviceTypeFieldPathBuilder() DeviceTypeFieldPathBuilder

func (DeviceTypeFieldPathBuilder) Architecture

func (DeviceTypeFieldPathBuilder) Description

func (DeviceTypeFieldPathBuilder) DisplayName

func (DeviceTypeFieldPathBuilder) Hardware

func (DeviceTypeFieldPathBuilder) Metadata

func (DeviceTypeFieldPathBuilder) Name

type DeviceTypeList

type DeviceTypeList []*DeviceType

func (DeviceTypeList) Append

func (DeviceTypeList) AppendList

func (DeviceTypeList) At

func (DeviceTypeList) Length

func (l DeviceTypeList) Length() int

func (DeviceTypeList) Set

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

func (DeviceTypeList) Slice

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

type DeviceTypeMap

type DeviceTypeMap map[Name]*DeviceType

func (DeviceTypeMap) Delete

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

func (DeviceTypeMap) ForEach

func (DeviceTypeMap) Get

func (DeviceTypeMap) Length

func (m DeviceTypeMap) Length() int

func (DeviceTypeMap) Set

type DeviceTypeMapPathSelectorMetadataAnnotations

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

func (DeviceTypeMapPathSelectorMetadataAnnotations) FieldPath

func (DeviceTypeMapPathSelectorMetadataAnnotations) WithArrayOfValues

func (DeviceTypeMapPathSelectorMetadataAnnotations) WithValue

type DeviceTypeMapPathSelectorMetadataLabels

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

func (DeviceTypeMapPathSelectorMetadataLabels) FieldPath

func (DeviceTypeMapPathSelectorMetadataLabels) WithArrayOfValues

func (DeviceTypeMapPathSelectorMetadataLabels) WithValue

type DeviceTypeMapPathSelectorMetadataShards

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

func (DeviceTypeMapPathSelectorMetadataShards) FieldPath

func (DeviceTypeMapPathSelectorMetadataShards) WithArrayOfValues

func (DeviceTypeMapPathSelectorMetadataShards) WithValue

type DeviceTypeNameList

type DeviceTypeNameList []*Name

func (DeviceTypeNameList) Append

func (DeviceTypeNameList) AppendList

func (DeviceTypeNameList) At

func (DeviceTypeNameList) Length

func (l DeviceTypeNameList) Length() int

func (DeviceTypeNameList) Set

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

func (DeviceTypeNameList) Slice

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

type DeviceTypePathSelectorArchitecture

type DeviceTypePathSelectorArchitecture struct{}

func (DeviceTypePathSelectorArchitecture) FieldPath

func (DeviceTypePathSelectorArchitecture) WithArrayOfValues

func (DeviceTypePathSelectorArchitecture) WithValue

type DeviceTypePathSelectorDescription

type DeviceTypePathSelectorDescription struct{}

func (DeviceTypePathSelectorDescription) FieldPath

func (DeviceTypePathSelectorDescription) WithArrayOfValues

func (DeviceTypePathSelectorDescription) WithValue

type DeviceTypePathSelectorDisplayName

type DeviceTypePathSelectorDisplayName struct{}

func (DeviceTypePathSelectorDisplayName) FieldPath

func (DeviceTypePathSelectorDisplayName) WithArrayOfValues

func (DeviceTypePathSelectorDisplayName) WithValue

type DeviceTypePathSelectorHardware

type DeviceTypePathSelectorHardware struct{}

func (DeviceTypePathSelectorHardware) FieldPath

func (DeviceTypePathSelectorHardware) WithArrayOfValues

func (DeviceTypePathSelectorHardware) WithValue

type DeviceTypePathSelectorMetadata

type DeviceTypePathSelectorMetadata struct{}

func (DeviceTypePathSelectorMetadata) Annotations

func (DeviceTypePathSelectorMetadata) CreateTime

func (DeviceTypePathSelectorMetadata) DeleteTime

func (DeviceTypePathSelectorMetadata) FieldPath

func (DeviceTypePathSelectorMetadata) Generation

func (DeviceTypePathSelectorMetadata) Labels

func (DeviceTypePathSelectorMetadata) Lifecycle

func (DeviceTypePathSelectorMetadata) OwnerReferences

func (DeviceTypePathSelectorMetadata) ResourceVersion

func (DeviceTypePathSelectorMetadata) Services

func (DeviceTypePathSelectorMetadata) Shards

func (DeviceTypePathSelectorMetadata) Syncing

func (DeviceTypePathSelectorMetadata) Tags

func (DeviceTypePathSelectorMetadata) UpdateTime

func (DeviceTypePathSelectorMetadata) Uuid

func (DeviceTypePathSelectorMetadata) WithArrayOfValues

func (DeviceTypePathSelectorMetadata) WithSubArrayItemValue

func (DeviceTypePathSelectorMetadata) WithSubArrayOfValues

func (DeviceTypePathSelectorMetadata) WithSubPath

func (DeviceTypePathSelectorMetadata) WithSubValue

func (DeviceTypePathSelectorMetadata) WithValue

type DeviceTypePathSelectorMetadataAnnotations

type DeviceTypePathSelectorMetadataAnnotations struct{}

func (DeviceTypePathSelectorMetadataAnnotations) FieldPath

func (DeviceTypePathSelectorMetadataAnnotations) WithArrayOfValues

func (DeviceTypePathSelectorMetadataAnnotations) WithKey

func (DeviceTypePathSelectorMetadataAnnotations) WithValue

type DeviceTypePathSelectorMetadataCreateTime

type DeviceTypePathSelectorMetadataCreateTime struct{}

func (DeviceTypePathSelectorMetadataCreateTime) FieldPath

func (DeviceTypePathSelectorMetadataCreateTime) WithArrayOfValues

func (DeviceTypePathSelectorMetadataCreateTime) WithValue

type DeviceTypePathSelectorMetadataDeleteTime

type DeviceTypePathSelectorMetadataDeleteTime struct{}

func (DeviceTypePathSelectorMetadataDeleteTime) FieldPath

func (DeviceTypePathSelectorMetadataDeleteTime) WithArrayOfValues

func (DeviceTypePathSelectorMetadataDeleteTime) WithValue

type DeviceTypePathSelectorMetadataGeneration

type DeviceTypePathSelectorMetadataGeneration struct{}

func (DeviceTypePathSelectorMetadataGeneration) FieldPath

func (DeviceTypePathSelectorMetadataGeneration) WithArrayOfValues

func (DeviceTypePathSelectorMetadataGeneration) WithValue

type DeviceTypePathSelectorMetadataLabels

type DeviceTypePathSelectorMetadataLabels struct{}

func (DeviceTypePathSelectorMetadataLabels) FieldPath

func (DeviceTypePathSelectorMetadataLabels) WithArrayOfValues

func (DeviceTypePathSelectorMetadataLabels) WithKey

func (DeviceTypePathSelectorMetadataLabels) WithValue

type DeviceTypePathSelectorMetadataLifecycle

type DeviceTypePathSelectorMetadataLifecycle struct{}

func (DeviceTypePathSelectorMetadataLifecycle) BlockDeletion

func (DeviceTypePathSelectorMetadataLifecycle) FieldPath

func (DeviceTypePathSelectorMetadataLifecycle) State

func (DeviceTypePathSelectorMetadataLifecycle) WithArrayOfValues

func (DeviceTypePathSelectorMetadataLifecycle) WithValue

type DeviceTypePathSelectorMetadataLifecycleBlockDeletion

type DeviceTypePathSelectorMetadataLifecycleBlockDeletion struct{}

func (DeviceTypePathSelectorMetadataLifecycleBlockDeletion) FieldPath

func (DeviceTypePathSelectorMetadataLifecycleBlockDeletion) WithArrayOfValues

func (DeviceTypePathSelectorMetadataLifecycleBlockDeletion) WithValue

type DeviceTypePathSelectorMetadataLifecycleState

type DeviceTypePathSelectorMetadataLifecycleState struct{}

func (DeviceTypePathSelectorMetadataLifecycleState) FieldPath

func (DeviceTypePathSelectorMetadataLifecycleState) WithArrayOfValues

func (DeviceTypePathSelectorMetadataLifecycleState) WithValue

type DeviceTypePathSelectorMetadataOwnerReferences

type DeviceTypePathSelectorMetadataOwnerReferences struct{}

func (DeviceTypePathSelectorMetadataOwnerReferences) Controller

func (DeviceTypePathSelectorMetadataOwnerReferences) FieldPath

func (DeviceTypePathSelectorMetadataOwnerReferences) Kind

func (DeviceTypePathSelectorMetadataOwnerReferences) Name

func (DeviceTypePathSelectorMetadataOwnerReferences) Region

func (DeviceTypePathSelectorMetadataOwnerReferences) Version

func (DeviceTypePathSelectorMetadataOwnerReferences) WithArrayOfValues

func (DeviceTypePathSelectorMetadataOwnerReferences) WithItemValue

func (DeviceTypePathSelectorMetadataOwnerReferences) WithValue

type DeviceTypePathSelectorMetadataOwnerReferencesController

type DeviceTypePathSelectorMetadataOwnerReferencesController struct{}

func (DeviceTypePathSelectorMetadataOwnerReferencesController) FieldPath

func (DeviceTypePathSelectorMetadataOwnerReferencesController) WithArrayOfValues

func (DeviceTypePathSelectorMetadataOwnerReferencesController) WithValue

type DeviceTypePathSelectorMetadataOwnerReferencesKind

type DeviceTypePathSelectorMetadataOwnerReferencesKind struct{}

func (DeviceTypePathSelectorMetadataOwnerReferencesKind) FieldPath

func (DeviceTypePathSelectorMetadataOwnerReferencesKind) WithArrayOfValues

func (DeviceTypePathSelectorMetadataOwnerReferencesKind) WithValue

type DeviceTypePathSelectorMetadataOwnerReferencesName

type DeviceTypePathSelectorMetadataOwnerReferencesName struct{}

func (DeviceTypePathSelectorMetadataOwnerReferencesName) FieldPath

func (DeviceTypePathSelectorMetadataOwnerReferencesName) WithArrayOfValues

func (DeviceTypePathSelectorMetadataOwnerReferencesName) WithValue

type DeviceTypePathSelectorMetadataOwnerReferencesRegion

type DeviceTypePathSelectorMetadataOwnerReferencesRegion struct{}

func (DeviceTypePathSelectorMetadataOwnerReferencesRegion) FieldPath

func (DeviceTypePathSelectorMetadataOwnerReferencesRegion) WithArrayOfValues

func (DeviceTypePathSelectorMetadataOwnerReferencesRegion) WithValue

type DeviceTypePathSelectorMetadataOwnerReferencesRequiresOwnerReference

type DeviceTypePathSelectorMetadataOwnerReferencesRequiresOwnerReference struct{}

func (DeviceTypePathSelectorMetadataOwnerReferencesRequiresOwnerReference) FieldPath

func (DeviceTypePathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithArrayOfValues

func (DeviceTypePathSelectorMetadataOwnerReferencesRequiresOwnerReference) WithValue

type DeviceTypePathSelectorMetadataOwnerReferencesVersion

type DeviceTypePathSelectorMetadataOwnerReferencesVersion struct{}

func (DeviceTypePathSelectorMetadataOwnerReferencesVersion) FieldPath

func (DeviceTypePathSelectorMetadataOwnerReferencesVersion) WithArrayOfValues

func (DeviceTypePathSelectorMetadataOwnerReferencesVersion) WithValue

type DeviceTypePathSelectorMetadataResourceVersion

type DeviceTypePathSelectorMetadataResourceVersion struct{}

func (DeviceTypePathSelectorMetadataResourceVersion) FieldPath

func (DeviceTypePathSelectorMetadataResourceVersion) WithArrayOfValues

func (DeviceTypePathSelectorMetadataResourceVersion) WithValue

type DeviceTypePathSelectorMetadataServices

type DeviceTypePathSelectorMetadataServices struct{}

func (DeviceTypePathSelectorMetadataServices) AllowedServices

func (DeviceTypePathSelectorMetadataServices) FieldPath

func (DeviceTypePathSelectorMetadataServices) OwningService

func (DeviceTypePathSelectorMetadataServices) WithArrayOfValues

func (DeviceTypePathSelectorMetadataServices) WithValue

type DeviceTypePathSelectorMetadataServicesAllowedServices

type DeviceTypePathSelectorMetadataServicesAllowedServices struct{}

func (DeviceTypePathSelectorMetadataServicesAllowedServices) FieldPath

func (DeviceTypePathSelectorMetadataServicesAllowedServices) WithArrayOfValues

func (DeviceTypePathSelectorMetadataServicesAllowedServices) WithItemValue

func (DeviceTypePathSelectorMetadataServicesAllowedServices) WithValue

type DeviceTypePathSelectorMetadataServicesOwningService

type DeviceTypePathSelectorMetadataServicesOwningService struct{}

func (DeviceTypePathSelectorMetadataServicesOwningService) FieldPath

func (DeviceTypePathSelectorMetadataServicesOwningService) WithArrayOfValues

func (DeviceTypePathSelectorMetadataServicesOwningService) WithValue

type DeviceTypePathSelectorMetadataShards

type DeviceTypePathSelectorMetadataShards struct{}

func (DeviceTypePathSelectorMetadataShards) FieldPath

func (DeviceTypePathSelectorMetadataShards) WithArrayOfValues

func (DeviceTypePathSelectorMetadataShards) WithKey

func (DeviceTypePathSelectorMetadataShards) WithValue

type DeviceTypePathSelectorMetadataSyncing

type DeviceTypePathSelectorMetadataSyncing struct{}

func (DeviceTypePathSelectorMetadataSyncing) FieldPath

func (DeviceTypePathSelectorMetadataSyncing) OwningRegion

func (DeviceTypePathSelectorMetadataSyncing) Regions

func (DeviceTypePathSelectorMetadataSyncing) WithArrayOfValues

func (DeviceTypePathSelectorMetadataSyncing) WithValue

type DeviceTypePathSelectorMetadataSyncingOwningRegion

type DeviceTypePathSelectorMetadataSyncingOwningRegion struct{}

func (DeviceTypePathSelectorMetadataSyncingOwningRegion) FieldPath

func (DeviceTypePathSelectorMetadataSyncingOwningRegion) WithArrayOfValues

func (DeviceTypePathSelectorMetadataSyncingOwningRegion) WithValue

type DeviceTypePathSelectorMetadataSyncingRegions

type DeviceTypePathSelectorMetadataSyncingRegions struct{}

func (DeviceTypePathSelectorMetadataSyncingRegions) FieldPath

func (DeviceTypePathSelectorMetadataSyncingRegions) WithArrayOfValues

func (DeviceTypePathSelectorMetadataSyncingRegions) WithItemValue

func (DeviceTypePathSelectorMetadataSyncingRegions) WithValue

type DeviceTypePathSelectorMetadataTags

type DeviceTypePathSelectorMetadataTags struct{}

func (DeviceTypePathSelectorMetadataTags) FieldPath

func (DeviceTypePathSelectorMetadataTags) WithArrayOfValues

func (DeviceTypePathSelectorMetadataTags) WithItemValue

func (DeviceTypePathSelectorMetadataTags) WithValue

type DeviceTypePathSelectorMetadataUpdateTime

type DeviceTypePathSelectorMetadataUpdateTime struct{}

func (DeviceTypePathSelectorMetadataUpdateTime) FieldPath

func (DeviceTypePathSelectorMetadataUpdateTime) WithArrayOfValues

func (DeviceTypePathSelectorMetadataUpdateTime) WithValue

type DeviceTypePathSelectorMetadataUuid

type DeviceTypePathSelectorMetadataUuid struct{}

func (DeviceTypePathSelectorMetadataUuid) FieldPath

func (DeviceTypePathSelectorMetadataUuid) WithArrayOfValues

func (DeviceTypePathSelectorMetadataUuid) WithValue

type DeviceTypePathSelectorName

type DeviceTypePathSelectorName struct{}

func (DeviceTypePathSelectorName) FieldPath

func (DeviceTypePathSelectorName) WithArrayOfValues

func (DeviceTypePathSelectorName) WithValue

type DeviceTypeReferenceList

type DeviceTypeReferenceList []*Reference

func (DeviceTypeReferenceList) Append

func (DeviceTypeReferenceList) AppendList

func (DeviceTypeReferenceList) At

func (DeviceTypeReferenceList) Length

func (l DeviceTypeReferenceList) Length() int

func (DeviceTypeReferenceList) Set

func (DeviceTypeReferenceList) Slice

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

type DeviceType_Architecture

type DeviceType_Architecture int32

Architecture name (e.g. amd64)

const (
	DeviceType_ARCHITECTURE_UNSPECIFIED DeviceType_Architecture = 0
	DeviceType_AMD64                    DeviceType_Architecture = 1
	DeviceType_ARM64                    DeviceType_Architecture = 2
)

func (DeviceType_Architecture) Descriptor

func (DeviceType_Architecture) Enum

func (DeviceType_Architecture) EnumDescriptor

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

Deprecated, Use DeviceType_Architecture.ProtoReflect.Descriptor instead.

func (DeviceType_Architecture) Number

func (DeviceType_Architecture) String

func (x DeviceType_Architecture) String() string

func (DeviceType_Architecture) Type

type DeviceType_FieldMask

type DeviceType_FieldMask struct {
	Paths []DeviceType_FieldPath
}

func FullDeviceType_FieldMask

func FullDeviceType_FieldMask() *DeviceType_FieldMask

func ResourceViewFieldMask

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

func (*DeviceType_FieldMask) AppendPath

func (fieldMask *DeviceType_FieldMask) AppendPath(path DeviceType_FieldPath)

func (*DeviceType_FieldMask) AppendRawPath

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

func (*DeviceType_FieldMask) DecodeFirestore

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

func (*DeviceType_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*DeviceType_FieldMask) FilterInputFields

func (fieldMask *DeviceType_FieldMask) FilterInputFields() *DeviceType_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*DeviceType_FieldMask) FromProtoFieldMask

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

func (*DeviceType_FieldMask) GetPaths

func (fieldMask *DeviceType_FieldMask) GetPaths() []DeviceType_FieldPath

func (*DeviceType_FieldMask) GetRawPaths

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

func (*DeviceType_FieldMask) IsFull

func (fieldMask *DeviceType_FieldMask) IsFull() bool

func (DeviceType_FieldMask) Marshal

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

implement methods required by customType

func (DeviceType_FieldMask) MarshalJSON

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

func (*DeviceType_FieldMask) PathsCount

func (fieldMask *DeviceType_FieldMask) PathsCount() int

func (*DeviceType_FieldMask) Project

func (fieldMask *DeviceType_FieldMask) Project(source *DeviceType) *DeviceType

func (*DeviceType_FieldMask) ProjectRaw

func (*DeviceType_FieldMask) ProtoMessage

func (fieldMask *DeviceType_FieldMask) ProtoMessage()

func (*DeviceType_FieldMask) ProtoReflect

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

func (*DeviceType_FieldMask) Reset

func (fieldMask *DeviceType_FieldMask) Reset()

func (*DeviceType_FieldMask) Set

func (fieldMask *DeviceType_FieldMask) Set(target, source *DeviceType)

func (*DeviceType_FieldMask) SetFromCliFlag

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

func (*DeviceType_FieldMask) SetRaw

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

func (*DeviceType_FieldMask) Size

func (fieldMask *DeviceType_FieldMask) Size() int

func (*DeviceType_FieldMask) String

func (fieldMask *DeviceType_FieldMask) String() string

func (*DeviceType_FieldMask) Subtract

func (fieldMask *DeviceType_FieldMask) Subtract(other *DeviceType_FieldMask) *DeviceType_FieldMask

func (*DeviceType_FieldMask) SubtractRaw

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

func (*DeviceType_FieldMask) ToProtoFieldMask

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

ToFieldMask is used for proto conversions

func (*DeviceType_FieldMask) Unmarshal

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

func (*DeviceType_FieldMask) UnmarshalJSON

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

type DeviceType_FieldPath

type DeviceType_FieldPath interface {
	gotenobject.FieldPath
	Selector() DeviceType_FieldPathSelector
	Get(source *DeviceType) []interface{}
	GetSingle(source *DeviceType) (interface{}, bool)
	ClearValue(item *DeviceType)

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

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

func BuildDeviceType_FieldPath

func BuildDeviceType_FieldPath(fp gotenobject.RawFieldPath) (DeviceType_FieldPath, error)

func MustParseDeviceType_FieldPath

func MustParseDeviceType_FieldPath(rawField string) DeviceType_FieldPath

func ParseDeviceType_FieldPath

func ParseDeviceType_FieldPath(rawField string) (DeviceType_FieldPath, error)

type DeviceType_FieldPathArrayItemValue

type DeviceType_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	DeviceType_FieldPath
	ContainsValue(*DeviceType) bool
}

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

func MustParseDeviceType_FieldPathArrayItemValue

func MustParseDeviceType_FieldPathArrayItemValue(pathStr, valueStr string) DeviceType_FieldPathArrayItemValue

func ParseDeviceType_FieldPathArrayItemValue

func ParseDeviceType_FieldPathArrayItemValue(pathStr, valueStr string) (DeviceType_FieldPathArrayItemValue, error)

ParseDeviceType_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type DeviceType_FieldPathArrayOfValues

type DeviceType_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	DeviceType_FieldPath
}

DeviceType_FieldPathArrayOfValues allows storing slice of values for DeviceType fields according to their type

func MustParseDeviceType_FieldPathArrayOfValues

func MustParseDeviceType_FieldPathArrayOfValues(pathStr, valuesStr string) DeviceType_FieldPathArrayOfValues

func ParseDeviceType_FieldPathArrayOfValues

func ParseDeviceType_FieldPathArrayOfValues(pathStr, valuesStr string) (DeviceType_FieldPathArrayOfValues, error)

type DeviceType_FieldPathSelector

type DeviceType_FieldPathSelector int32
const (
	DeviceType_FieldPathSelectorName         DeviceType_FieldPathSelector = 0
	DeviceType_FieldPathSelectorMetadata     DeviceType_FieldPathSelector = 1
	DeviceType_FieldPathSelectorDisplayName  DeviceType_FieldPathSelector = 2
	DeviceType_FieldPathSelectorHardware     DeviceType_FieldPathSelector = 3
	DeviceType_FieldPathSelectorArchitecture DeviceType_FieldPathSelector = 4
	DeviceType_FieldPathSelectorDescription  DeviceType_FieldPathSelector = 5
)

func (DeviceType_FieldPathSelector) String

type DeviceType_FieldPathValue

type DeviceType_FieldPathValue interface {
	DeviceType_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **DeviceType)
	CompareWith(*DeviceType) (cmp int, comparable bool)
}

DeviceType_FieldPathValue allows storing values for DeviceType fields according to their type

func MustParseDeviceType_FieldPathValue

func MustParseDeviceType_FieldPathValue(pathStr, valueStr string) DeviceType_FieldPathValue

func ParseDeviceType_FieldPathValue

func ParseDeviceType_FieldPathValue(pathStr, valueStr string) (DeviceType_FieldPathValue, error)

type DeviceType_FieldSubPath

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

func (*DeviceType_FieldSubPath) AsMetadataSubPath

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

func (*DeviceType_FieldSubPath) ClearValue

func (fps *DeviceType_FieldSubPath) ClearValue(item *DeviceType)

func (*DeviceType_FieldSubPath) ClearValueRaw

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

func (*DeviceType_FieldSubPath) Get

func (fps *DeviceType_FieldSubPath) Get(source *DeviceType) (values []interface{})

Get returns all values pointed by selected field from source DeviceType

func (*DeviceType_FieldSubPath) GetDefault

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

GetDefault returns a default value of the field type

func (*DeviceType_FieldSubPath) GetRaw

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

func (*DeviceType_FieldSubPath) GetSingle

func (fps *DeviceType_FieldSubPath) GetSingle(source *DeviceType) (interface{}, bool)

GetSingle returns value of selected field from source DeviceType

func (*DeviceType_FieldSubPath) GetSingleRaw

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

func (*DeviceType_FieldSubPath) IsLeaf

func (fps *DeviceType_FieldSubPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*DeviceType_FieldSubPath) JSONString

func (fps *DeviceType_FieldSubPath) JSONString() string

JSONString returns path representation is JSON convention

func (*DeviceType_FieldSubPath) Selector

func (*DeviceType_FieldSubPath) SplitIntoTerminalIPaths

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

func (*DeviceType_FieldSubPath) String

func (fps *DeviceType_FieldSubPath) String() string

String returns path representation in proto convention

func (*DeviceType_FieldSubPath) WithIArrayItemValue

func (fps *DeviceType_FieldSubPath) WithIArrayItemValue(value interface{}) DeviceType_FieldPathArrayItemValue

func (*DeviceType_FieldSubPath) WithIArrayOfValues

func (fps *DeviceType_FieldSubPath) WithIArrayOfValues(values interface{}) DeviceType_FieldPathArrayOfValues

func (*DeviceType_FieldSubPath) WithIValue

func (fps *DeviceType_FieldSubPath) WithIValue(value interface{}) DeviceType_FieldPathValue

func (*DeviceType_FieldSubPath) WithRawIArrayItemValue

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

func (*DeviceType_FieldSubPath) WithRawIArrayOfValues

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

func (*DeviceType_FieldSubPath) WithRawIValue

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

type DeviceType_FieldSubPathArrayItemValue

type DeviceType_FieldSubPathArrayItemValue struct {
	DeviceType_FieldPath
	// contains filtered or unexported fields
}

func (*DeviceType_FieldSubPathArrayItemValue) AsMetadataPathItemValue

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

func (*DeviceType_FieldSubPathArrayItemValue) ContainsValue

func (fpaivs *DeviceType_FieldSubPathArrayItemValue) ContainsValue(source *DeviceType) bool

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

func (*DeviceType_FieldSubPathArrayItemValue) GetRawItemValue

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

GetRawValue returns stored array item value

type DeviceType_FieldSubPathArrayOfValues

type DeviceType_FieldSubPathArrayOfValues struct {
	DeviceType_FieldPath
	// contains filtered or unexported fields
}

func (*DeviceType_FieldSubPathArrayOfValues) AsMetadataPathArrayOfValues

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

func (*DeviceType_FieldSubPathArrayOfValues) GetRawValues

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

type DeviceType_FieldSubPathValue

type DeviceType_FieldSubPathValue struct {
	DeviceType_FieldPath
	// contains filtered or unexported fields
}

func (*DeviceType_FieldSubPathValue) AsMetadataPathValue

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

func (*DeviceType_FieldSubPathValue) CompareWith

func (fpvs *DeviceType_FieldSubPathValue) CompareWith(source *DeviceType) (int, bool)

func (*DeviceType_FieldSubPathValue) CompareWithRaw

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

func (*DeviceType_FieldSubPathValue) GetRawValue

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

func (*DeviceType_FieldSubPathValue) SetTo

func (fpvs *DeviceType_FieldSubPathValue) SetTo(target **DeviceType)

func (*DeviceType_FieldSubPathValue) SetToRaw

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

type DeviceType_FieldTerminalPath

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

func (*DeviceType_FieldTerminalPath) ClearValue

func (fp *DeviceType_FieldTerminalPath) ClearValue(item *DeviceType)

func (*DeviceType_FieldTerminalPath) ClearValueRaw

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

func (*DeviceType_FieldTerminalPath) Get

func (fp *DeviceType_FieldTerminalPath) Get(source *DeviceType) (values []interface{})

Get returns all values pointed by specific field from source DeviceType

func (*DeviceType_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*DeviceType_FieldTerminalPath) GetRaw

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

func (*DeviceType_FieldTerminalPath) GetSingle

func (fp *DeviceType_FieldTerminalPath) GetSingle(source *DeviceType) (interface{}, bool)

GetSingle returns value pointed by specific field of from source DeviceType

func (*DeviceType_FieldTerminalPath) GetSingleRaw

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

func (*DeviceType_FieldTerminalPath) IsLeaf

func (fp *DeviceType_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*DeviceType_FieldTerminalPath) JSONString

func (fp *DeviceType_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*DeviceType_FieldTerminalPath) Selector

func (*DeviceType_FieldTerminalPath) SplitIntoTerminalIPaths

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

func (*DeviceType_FieldTerminalPath) String

func (fp *DeviceType_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*DeviceType_FieldTerminalPath) WithIArrayItemValue

func (fp *DeviceType_FieldTerminalPath) WithIArrayItemValue(value interface{}) DeviceType_FieldPathArrayItemValue

func (*DeviceType_FieldTerminalPath) WithIArrayOfValues

func (fp *DeviceType_FieldTerminalPath) WithIArrayOfValues(values interface{}) DeviceType_FieldPathArrayOfValues

func (*DeviceType_FieldTerminalPath) WithIValue

func (fp *DeviceType_FieldTerminalPath) WithIValue(value interface{}) DeviceType_FieldPathValue

func (*DeviceType_FieldTerminalPath) WithRawIArrayItemValue

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

func (*DeviceType_FieldTerminalPath) WithRawIArrayOfValues

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

func (*DeviceType_FieldTerminalPath) WithRawIValue

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

type DeviceType_FieldTerminalPathArrayItemValue

type DeviceType_FieldTerminalPathArrayItemValue struct {
	DeviceType_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*DeviceType_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *DeviceType_FieldTerminalPathArrayItemValue) ContainsValue(source *DeviceType) bool

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

func (*DeviceType_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*DeviceType_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *DeviceType_FieldTerminalPathArrayItemValue) GetSingle(source *DeviceType) (interface{}, bool)

func (*DeviceType_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type DeviceType_FieldTerminalPathArrayOfValues

type DeviceType_FieldTerminalPathArrayOfValues struct {
	DeviceType_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*DeviceType_FieldTerminalPathArrayOfValues) AsArchitectureArrayOfValues

func (fpaov *DeviceType_FieldTerminalPathArrayOfValues) AsArchitectureArrayOfValues() ([]DeviceType_Architecture, bool)

func (*DeviceType_FieldTerminalPathArrayOfValues) AsDescriptionArrayOfValues

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

func (*DeviceType_FieldTerminalPathArrayOfValues) AsDisplayNameArrayOfValues

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

func (*DeviceType_FieldTerminalPathArrayOfValues) AsHardwareArrayOfValues

func (fpaov *DeviceType_FieldTerminalPathArrayOfValues) AsHardwareArrayOfValues() ([]DeviceType_Hardware, bool)

func (*DeviceType_FieldTerminalPathArrayOfValues) AsMetadataArrayOfValues

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

func (*DeviceType_FieldTerminalPathArrayOfValues) AsNameArrayOfValues

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

func (*DeviceType_FieldTerminalPathArrayOfValues) GetRawValues

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

type DeviceType_FieldTerminalPathValue

type DeviceType_FieldTerminalPathValue struct {
	DeviceType_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*DeviceType_FieldTerminalPathValue) AsArchitectureValue

func (fpv *DeviceType_FieldTerminalPathValue) AsArchitectureValue() (DeviceType_Architecture, bool)

func (*DeviceType_FieldTerminalPathValue) AsDescriptionValue

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

func (*DeviceType_FieldTerminalPathValue) AsDisplayNameValue

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

func (*DeviceType_FieldTerminalPathValue) AsHardwareValue

func (*DeviceType_FieldTerminalPathValue) AsMetadataValue

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

func (*DeviceType_FieldTerminalPathValue) AsNameValue

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

func (*DeviceType_FieldTerminalPathValue) CompareWith

func (fpv *DeviceType_FieldTerminalPathValue) CompareWith(source *DeviceType) (int, bool)

CompareWith compares value in the 'DeviceType_FieldTerminalPathValue' with the value under path in 'DeviceType'.

func (*DeviceType_FieldTerminalPathValue) CompareWithRaw

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

func (*DeviceType_FieldTerminalPathValue) GetRawValue

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

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

func (*DeviceType_FieldTerminalPathValue) SetTo

func (fpv *DeviceType_FieldTerminalPathValue) SetTo(target **DeviceType)

SetTo stores value for selected field for object DeviceType

func (*DeviceType_FieldTerminalPathValue) SetToRaw

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

type DeviceType_Hardware added in v1.0.43

type DeviceType_Hardware int32

Hardware (e.g. Generic, Raspberry Pi)

const (
	DeviceType_HARDWARE_UNSPECIFIED DeviceType_Hardware = 0
	DeviceType_GENERIC              DeviceType_Hardware = 1
	DeviceType_RASPBERRYPI          DeviceType_Hardware = 2
)

func (DeviceType_Hardware) Descriptor added in v1.0.43

func (DeviceType_Hardware) Enum added in v1.0.43

func (DeviceType_Hardware) EnumDescriptor added in v1.0.43

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

Deprecated, Use DeviceType_Hardware.ProtoReflect.Descriptor instead.

func (DeviceType_Hardware) Number added in v1.0.43

func (DeviceType_Hardware) String added in v1.0.43

func (x DeviceType_Hardware) String() string

func (DeviceType_Hardware) Type added in v1.0.43

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

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 DeviceType_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 *DeviceType) bool

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

func AndFilterConditions

func AndFilterConditions(conds ...FilterCondition) FilterCondition

type FilterConditionCompare

type FilterConditionCompare struct {
	Operator filterParser.CompareOperator
	DeviceType_FieldPathValue
}

func (*FilterConditionCompare) And

func (*FilterConditionCompare) ConditionCompare

func (cond *FilterConditionCompare) ConditionCompare()

func (*FilterConditionCompare) Evaluate

func (cond *FilterConditionCompare) Evaluate(res *DeviceType) 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 DeviceType_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 *DeviceType) 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 DeviceType_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 *DeviceType) bool

func (*FilterConditionContains) EvaluateRaw

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

func (*FilterConditionContains) GetFieldPath

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

func (*FilterConditionIn) And

func (*FilterConditionIn) ConditionIn

func (cond *FilterConditionIn) ConditionIn()

func (*FilterConditionIn) Evaluate

func (cond *FilterConditionIn) Evaluate(res *DeviceType) 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 DeviceType_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 DeviceType_FieldPath
}

func (*FilterConditionIsNaN) And

func (*FilterConditionIsNaN) ConditionIsNaN

func (cond *FilterConditionIsNaN) ConditionIsNaN()

func (*FilterConditionIsNaN) Evaluate

func (cond *FilterConditionIsNaN) Evaluate(res *DeviceType) 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 DeviceType_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 DeviceType_FieldPath
}

func (*FilterConditionIsNull) And

func (*FilterConditionIsNull) ConditionIsNull

func (cond *FilterConditionIsNull) ConditionIsNull()

func (*FilterConditionIsNull) Evaluate

func (cond *FilterConditionIsNull) Evaluate(res *DeviceType) 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 DeviceType_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 *DeviceType) 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 DeviceType_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 {
	DeviceType_FieldPathArrayOfValues
}

func (*FilterConditionNotIn) And

func (*FilterConditionNotIn) ConditionNotIn

func (cond *FilterConditionNotIn) ConditionNotIn()

func (*FilterConditionNotIn) Evaluate

func (cond *FilterConditionNotIn) Evaluate(res *DeviceType) 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 DeviceType_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      *DeviceType_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           *DeviceType_FieldMask
	WithPagingInfo bool
}

func (*ListQuery) GetFieldMask

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

func (*ListQuery) GetFilter

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

func (*ListQuery) GetPager

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

func (*ListQuery) GetResourceDescriptor

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

func (*ListQuery) GetWithPagingInfo

func (q *ListQuery) GetWithPagingInfo() bool

func (*ListQuery) GotenQuery

func (q *ListQuery) GotenQuery()

func (*ListQuery) SetFieldMask

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

func (*ListQuery) SetFilter

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

func (*ListQuery) SetPager

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

func (*ListQuery) SetWithPagingInfo

func (q *ListQuery) SetWithPagingInfo(with bool)

func (*ListQuery) String

func (q *ListQuery) String() string

type Name

type Name struct {
	NamePattern
	DeviceTypeId string `firestore:"deviceTypeId"`
}

func MustParseName

func MustParseName(name string) *Name

func ParseName

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

func ParseNameOrId

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

func (*Name) AsRawReference

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

func (*Name) AsReference

func (name *Name) AsReference() *Reference

func (*Name) ConvertToNative

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

func (*Name) ConvertToType

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

func (*Name) Equal

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

func (*Name) FullyQualifiedName

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

func (*Name) GetIParentName

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

func (*Name) GetIUnderlyingParentName

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

func (*Name) GetIdParts

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

func (*Name) GetPattern

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

func (*Name) GetResourceDescriptor

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

func (*Name) GetSegments

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

func (*Name) GotenEqual

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

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

func (*Name) HasTrait

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

func (*Name) IsFullyQualified

func (name *Name) IsFullyQualified() bool

func (*Name) IsSpecified

func (name *Name) IsSpecified() bool

func (*Name) Match

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

func (*Name) Matches

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

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

func (*Name) ParseProtoString

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

func (*Name) ProtoString

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

func (*Name) Receive

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

func (*Name) SetFromCliFlag

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

implement CustomTypeCliValue method

func (*Name) SetFromSegments

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

func (*Name) String

func (name *Name) String() string

func (*Name) Type

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

func (*Name) TypeName

func (name *Name) TypeName() string

func (*Name) Value

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

type NameBuilder

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

func NewNameBuilder

func NewNameBuilder() *NameBuilder

func (*NameBuilder) Name

func (b *NameBuilder) Name() *Name

func (*NameBuilder) Reference

func (b *NameBuilder) Reference() *Reference

func (*NameBuilder) SetId

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

type NamePattern

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

type OrderBy

type OrderBy struct {
	OrderByFields []OrderByField
}

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

func (*OrderBy) Compare

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

func (*OrderBy) CompareRaw

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

func (*OrderBy) GetFieldMask

func (orderBy *OrderBy) GetFieldMask() *DeviceType_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 DeviceTypeList, elem *DeviceType) (DeviceTypeList, 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 DeviceTypeList)

func (*OrderBy) SortRaw

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

func (*OrderBy) String

func (orderBy *OrderBy) String() string

type OrderByField

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

func (*OrderByField) GetDirection

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

func (*OrderByField) GetFieldPath

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

type PagerCursor

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

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

func (*PagerCursor) GetInclusion

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

func (*PagerCursor) GetPageDirection

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

func (*PagerCursor) GetValue

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

func (*PagerCursor) IsEmpty

func (cursor *PagerCursor) IsEmpty() bool

func (*PagerCursor) ParseProtoString

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

func (*PagerCursor) ProtoString

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

func (*PagerCursor) SetCursorValue

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

func (*PagerCursor) SetFromCliFlag

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

func (*PagerCursor) SetInclusion

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

func (*PagerCursor) SetPageDirection

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

func (*PagerCursor) String

func (cursor *PagerCursor) String() string

type PagerQuery

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

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

func MakePagerQuery

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

MakePagerQuery builds pager from API data and applies defaults

func (*PagerQuery) GetCursor

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

func (*PagerQuery) GetLimit

func (p *PagerQuery) GetLimit() int

func (*PagerQuery) GetOrderBy

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

func (*PagerQuery) GetPeekForward

func (p *PagerQuery) GetPeekForward() bool

func (*PagerQuery) GetResourceDescriptor

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

func (*PagerQuery) PageDirection

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

func (*PagerQuery) SetCursor

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

func (*PagerQuery) SetLimit

func (p *PagerQuery) SetLimit(limit int)

func (*PagerQuery) SetOrderBy

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

func (*PagerQuery) SetPageDirection

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

func (*PagerQuery) SetPeekForward

func (p *PagerQuery) SetPeekForward(peekForward bool)

type QueryResultChange

type QueryResultChange struct {
	Changes        []*DeviceTypeChange
	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 {
	DeviceTypes       []*DeviceType
	PrevPageCursor    *PagerCursor
	NextPageCursor    *PagerCursor
	TotalResultsCount int32
	CurrentOffset     int32
}

func (*QueryResultSnapshot) GetNextPageCursor

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

func (*QueryResultSnapshot) GetPagingInfo

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

func (*QueryResultSnapshot) GetPrevPageCursor

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

func (*QueryResultSnapshot) GetResults

func (*QueryResultSnapshot) SetCursors

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

func (*QueryResultSnapshot) SetPagingInfo

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

func (*QueryResultSnapshot) SetResults

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

type Reference

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

func MakeReference

func MakeReference(name *Name, deviceType *DeviceType) (*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) GetDeviceType

func (ref *Reference) GetDeviceType() *DeviceType

func (*Reference) GetIParentName

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

func (*Reference) GetIUnderlyingParentName

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

func (*Reference) GetIdParts

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

func (*Reference) GetPattern

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

func (*Reference) GetRawResource

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

func (*Reference) GetResourceDescriptor

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

func (*Reference) GetSegments

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

func (*Reference) GotenEqual

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

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

func (*Reference) IsFullyQualified

func (ref *Reference) IsFullyQualified() bool

func (*Reference) IsSpecified

func (ref *Reference) IsSpecified() bool

func (*Reference) Matches

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

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

func (*Reference) ParseProtoString

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

func (*Reference) ProtoString

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

func (*Reference) Resolve

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

func (*Reference) ResolveRaw

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

func (*Reference) Resolved

func (ref *Reference) Resolved() bool

func (*Reference) SetFromCliFlag

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

implement CustomTypeCliValue method

func (*Reference) String

func (ref *Reference) String() string

type WatchQuery

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

func (*WatchQuery) GetMaximumChunkSize

func (q *WatchQuery) GetMaximumChunkSize() int

func (*WatchQuery) GetResumeToken

func (q *WatchQuery) GetResumeToken() string

func (*WatchQuery) GetStartingTime

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

func (*WatchQuery) GetWatchType

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

func (*WatchQuery) SetMaximumChunkSize

func (q *WatchQuery) SetMaximumChunkSize(chunkSize int)

func (*WatchQuery) SetResumeToken

func (q *WatchQuery) SetResumeToken(token string)

func (*WatchQuery) SetStartingTime

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

func (*WatchQuery) SetWatchType

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

func (*WatchQuery) String

func (q *WatchQuery) String() string

Jump to

Keyboard shortcuts

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