resource_client

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchGetResourcesDescriptor

type BatchGetResourcesDescriptor struct{}

func GetBatchGetResourcesDescriptor

func GetBatchGetResourcesDescriptor() *BatchGetResourcesDescriptor

func (*BatchGetResourcesDescriptor) GetApiDescriptor

func (*BatchGetResourcesDescriptor) GetApiName

func (d *BatchGetResourcesDescriptor) GetApiName() string

func (*BatchGetResourcesDescriptor) GetClientMsgReflectHandle

func (d *BatchGetResourcesDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle

func (*BatchGetResourcesDescriptor) GetFullMethodName

func (d *BatchGetResourcesDescriptor) GetFullMethodName() string

func (*BatchGetResourcesDescriptor) GetMethodName

func (d *BatchGetResourcesDescriptor) GetMethodName() string

func (*BatchGetResourcesDescriptor) GetProtoPkgName

func (d *BatchGetResourcesDescriptor) GetProtoPkgName() string

func (*BatchGetResourcesDescriptor) GetResourceDescriptor

func (d *BatchGetResourcesDescriptor) GetResourceDescriptor() gotenresource.Descriptor

func (*BatchGetResourcesDescriptor) GetServerMsgReflectHandle

func (d *BatchGetResourcesDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle

func (*BatchGetResourcesDescriptor) GetServiceDomain

func (d *BatchGetResourcesDescriptor) GetServiceDomain() string

func (*BatchGetResourcesDescriptor) GetServiceVersion

func (d *BatchGetResourcesDescriptor) GetServiceVersion() string

func (*BatchGetResourcesDescriptor) GetVerb

func (d *BatchGetResourcesDescriptor) GetVerb() string

func (*BatchGetResourcesDescriptor) HasResource

func (d *BatchGetResourcesDescriptor) HasResource() bool

func (*BatchGetResourcesDescriptor) IsClientStream

func (d *BatchGetResourcesDescriptor) IsClientStream() bool

func (*BatchGetResourcesDescriptor) IsCollection

func (d *BatchGetResourcesDescriptor) IsCollection() bool

func (*BatchGetResourcesDescriptor) IsPlural

func (d *BatchGetResourcesDescriptor) IsPlural() bool

func (*BatchGetResourcesDescriptor) IsServerStream

func (d *BatchGetResourcesDescriptor) IsServerStream() bool

func (*BatchGetResourcesDescriptor) IsUnary

func (d *BatchGetResourcesDescriptor) IsUnary() bool

func (*BatchGetResourcesDescriptor) NewEmptyClientMsg

func (d *BatchGetResourcesDescriptor) NewEmptyClientMsg() proto.Message

func (*BatchGetResourcesDescriptor) NewEmptyServerMsg

func (d *BatchGetResourcesDescriptor) NewEmptyServerMsg() proto.Message

func (*BatchGetResourcesDescriptor) RequestHasResourceBody

func (d *BatchGetResourcesDescriptor) RequestHasResourceBody() bool

type BatchGetResourcesDescriptorClientMsgHandle

type BatchGetResourcesDescriptorClientMsgHandle struct{}

func (*BatchGetResourcesDescriptorClientMsgHandle) ExtractCollectionName

func (*BatchGetResourcesDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*BatchGetResourcesDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*BatchGetResourcesDescriptorClientMsgHandle) ExtractResourceName

func (*BatchGetResourcesDescriptorClientMsgHandle) ExtractResourceNames

type BatchGetResourcesDescriptorServerMsgHandle

type BatchGetResourcesDescriptorServerMsgHandle struct{}

func (*BatchGetResourcesDescriptorServerMsgHandle) ExtractCollectionName

func (*BatchGetResourcesDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*BatchGetResourcesDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*BatchGetResourcesDescriptorServerMsgHandle) ExtractResourceName

func (*BatchGetResourcesDescriptorServerMsgHandle) ExtractResourceNames

type BatchGetResourcesRequest

type BatchGetResourcesRequest struct {

	// Names of Resources
	Names []*resource.Name `protobuf:"bytes,2,rep,customtype=Name,name=names,proto3" json:"names,omitempty" firestore:"names"`
	// A list of extra fields to be obtained for each response item on top of
	// fields defined by request field view
	FieldMask *resource.Resource_FieldMask `` /* 140-byte string literal not displayed */
	// View defines list of standard response fields present in response items.
	// Additional fields can be amended by request field field_mask
	View view.View `protobuf:"varint,4,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
	// contains filtered or unexported fields
}

Request message for method [BatchGetResources][ntt.meta.v1alpha2.BatchGetResources]

func (*BatchGetResourcesRequest) Descriptor

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

Deprecated, Use BatchGetResourcesRequest.ProtoReflect.Descriptor instead.

func (*BatchGetResourcesRequest) GetFieldMask

func (*BatchGetResourcesRequest) GetNames

func (m *BatchGetResourcesRequest) GetNames() []*resource.Name

func (*BatchGetResourcesRequest) GetView

func (m *BatchGetResourcesRequest) GetView() view.View

func (*BatchGetResourcesRequest) GotenMessage

func (*BatchGetResourcesRequest) GotenMessage()

func (*BatchGetResourcesRequest) GotenValidate

func (obj *BatchGetResourcesRequest) GotenValidate() error

func (*BatchGetResourcesRequest) Marshal

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

func (*BatchGetResourcesRequest) MarshalJSON

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

func (*BatchGetResourcesRequest) ProtoMessage

func (*BatchGetResourcesRequest) ProtoMessage()

func (*BatchGetResourcesRequest) ProtoReflect

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

func (*BatchGetResourcesRequest) Reset

func (m *BatchGetResourcesRequest) Reset()

func (*BatchGetResourcesRequest) SetFieldMask

func (*BatchGetResourcesRequest) SetNames

func (m *BatchGetResourcesRequest) SetNames(fv []*resource.Name)

func (*BatchGetResourcesRequest) SetView

func (m *BatchGetResourcesRequest) SetView(fv view.View)

func (*BatchGetResourcesRequest) String

func (m *BatchGetResourcesRequest) String() string

func (*BatchGetResourcesRequest) Unmarshal

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

func (*BatchGetResourcesRequest) UnmarshalJSON

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

type BatchGetResourcesResponse

type BatchGetResourcesResponse struct {

	// found Resources
	Resources []*resource.Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty" firestore:"resources"`
	// list of not found Resources
	Missing []*resource.Name `protobuf:"bytes,2,rep,customtype=Name,name=missing,proto3" json:"missing,omitempty" firestore:"missing"`
	// contains filtered or unexported fields
}

BatchGetResourcesResponse

func (*BatchGetResourcesResponse) Descriptor

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

Deprecated, Use BatchGetResourcesResponse.ProtoReflect.Descriptor instead.

func (*BatchGetResourcesResponse) GetMissing

func (m *BatchGetResourcesResponse) GetMissing() []*resource.Name

func (*BatchGetResourcesResponse) GetResources

func (m *BatchGetResourcesResponse) GetResources() []*resource.Resource

func (*BatchGetResourcesResponse) GotenMessage

func (*BatchGetResourcesResponse) GotenMessage()

func (*BatchGetResourcesResponse) GotenValidate

func (obj *BatchGetResourcesResponse) GotenValidate() error

func (*BatchGetResourcesResponse) Marshal

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

func (*BatchGetResourcesResponse) MarshalJSON

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

func (*BatchGetResourcesResponse) ProtoMessage

func (*BatchGetResourcesResponse) ProtoMessage()

func (*BatchGetResourcesResponse) ProtoReflect

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

func (*BatchGetResourcesResponse) Reset

func (m *BatchGetResourcesResponse) Reset()

func (*BatchGetResourcesResponse) SetMissing

func (m *BatchGetResourcesResponse) SetMissing(fv []*resource.Name)

func (*BatchGetResourcesResponse) SetResources

func (m *BatchGetResourcesResponse) SetResources(fv []*resource.Resource)

func (*BatchGetResourcesResponse) String

func (m *BatchGetResourcesResponse) String() string

func (*BatchGetResourcesResponse) Unmarshal

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

func (*BatchGetResourcesResponse) UnmarshalJSON

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

type GetResourceDescriptor

type GetResourceDescriptor struct{}

func GetGetResourceDescriptor

func GetGetResourceDescriptor() *GetResourceDescriptor

func (*GetResourceDescriptor) GetApiDescriptor

func (d *GetResourceDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor

func (*GetResourceDescriptor) GetApiName

func (d *GetResourceDescriptor) GetApiName() string

func (*GetResourceDescriptor) GetClientMsgReflectHandle

func (d *GetResourceDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle

func (*GetResourceDescriptor) GetFullMethodName

func (d *GetResourceDescriptor) GetFullMethodName() string

func (*GetResourceDescriptor) GetMethodName

func (d *GetResourceDescriptor) GetMethodName() string

func (*GetResourceDescriptor) GetProtoPkgName

func (d *GetResourceDescriptor) GetProtoPkgName() string

func (*GetResourceDescriptor) GetResourceDescriptor

func (d *GetResourceDescriptor) GetResourceDescriptor() gotenresource.Descriptor

func (*GetResourceDescriptor) GetServerMsgReflectHandle

func (d *GetResourceDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle

func (*GetResourceDescriptor) GetServiceDomain

func (d *GetResourceDescriptor) GetServiceDomain() string

func (*GetResourceDescriptor) GetServiceVersion

func (d *GetResourceDescriptor) GetServiceVersion() string

func (*GetResourceDescriptor) GetVerb

func (d *GetResourceDescriptor) GetVerb() string

func (*GetResourceDescriptor) HasResource

func (d *GetResourceDescriptor) HasResource() bool

func (*GetResourceDescriptor) IsClientStream

func (d *GetResourceDescriptor) IsClientStream() bool

func (*GetResourceDescriptor) IsCollection

func (d *GetResourceDescriptor) IsCollection() bool

func (*GetResourceDescriptor) IsPlural

func (d *GetResourceDescriptor) IsPlural() bool

func (*GetResourceDescriptor) IsServerStream

func (d *GetResourceDescriptor) IsServerStream() bool

func (*GetResourceDescriptor) IsUnary

func (d *GetResourceDescriptor) IsUnary() bool

func (*GetResourceDescriptor) NewEmptyClientMsg

func (d *GetResourceDescriptor) NewEmptyClientMsg() proto.Message

func (*GetResourceDescriptor) NewEmptyServerMsg

func (d *GetResourceDescriptor) NewEmptyServerMsg() proto.Message

func (*GetResourceDescriptor) RequestHasResourceBody

func (d *GetResourceDescriptor) RequestHasResourceBody() bool

type GetResourceDescriptorClientMsgHandle

type GetResourceDescriptorClientMsgHandle struct{}

func (*GetResourceDescriptorClientMsgHandle) ExtractCollectionName

func (*GetResourceDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*GetResourceDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*GetResourceDescriptorClientMsgHandle) ExtractResourceName

func (*GetResourceDescriptorClientMsgHandle) ExtractResourceNames

type GetResourceDescriptorServerMsgHandle

type GetResourceDescriptorServerMsgHandle struct{}

func (*GetResourceDescriptorServerMsgHandle) ExtractCollectionName

func (*GetResourceDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*GetResourceDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*GetResourceDescriptorServerMsgHandle) ExtractResourceName

func (*GetResourceDescriptorServerMsgHandle) ExtractResourceNames

type GetResourceRequest

type GetResourceRequest struct {

	// Name of ntt.meta.v1alpha2.Resource
	Name *resource.Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// A list of extra fields to be obtained for each response item on top of
	// fields defined by request field view
	FieldMask *resource.Resource_FieldMask `` /* 140-byte string literal not displayed */
	// View defines list of standard response fields present in response items.
	// Additional fields can be amended by request field field_mask
	View view.View `protobuf:"varint,4,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
	// contains filtered or unexported fields
}

Request message for method [GetResource][ntt.meta.v1alpha2.GetResource]

func (*GetResourceRequest) Descriptor

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

Deprecated, Use GetResourceRequest.ProtoReflect.Descriptor instead.

func (*GetResourceRequest) GetFieldMask

func (m *GetResourceRequest) GetFieldMask() *resource.Resource_FieldMask

func (*GetResourceRequest) GetName

func (m *GetResourceRequest) GetName() *resource.Name

func (*GetResourceRequest) GetView

func (m *GetResourceRequest) GetView() view.View

func (*GetResourceRequest) GotenMessage

func (*GetResourceRequest) GotenMessage()

func (*GetResourceRequest) GotenValidate

func (obj *GetResourceRequest) GotenValidate() error

func (*GetResourceRequest) Marshal

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

func (*GetResourceRequest) MarshalJSON

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

func (*GetResourceRequest) ProtoMessage

func (*GetResourceRequest) ProtoMessage()

func (*GetResourceRequest) ProtoReflect

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

func (*GetResourceRequest) Reset

func (m *GetResourceRequest) Reset()

func (*GetResourceRequest) SetFieldMask

func (m *GetResourceRequest) SetFieldMask(fv *resource.Resource_FieldMask)

func (*GetResourceRequest) SetName

func (m *GetResourceRequest) SetName(fv *resource.Name)

func (*GetResourceRequest) SetView

func (m *GetResourceRequest) SetView(fv view.View)

func (*GetResourceRequest) String

func (m *GetResourceRequest) String() string

func (*GetResourceRequest) Unmarshal

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

func (*GetResourceRequest) UnmarshalJSON

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

type ListResourcesDescriptor

type ListResourcesDescriptor struct{}

func GetListResourcesDescriptor

func GetListResourcesDescriptor() *ListResourcesDescriptor

func (*ListResourcesDescriptor) GetApiDescriptor

func (d *ListResourcesDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor

func (*ListResourcesDescriptor) GetApiName

func (d *ListResourcesDescriptor) GetApiName() string

func (*ListResourcesDescriptor) GetClientMsgReflectHandle

func (d *ListResourcesDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle

func (*ListResourcesDescriptor) GetFullMethodName

func (d *ListResourcesDescriptor) GetFullMethodName() string

func (*ListResourcesDescriptor) GetMethodName

func (d *ListResourcesDescriptor) GetMethodName() string

func (*ListResourcesDescriptor) GetProtoPkgName

func (d *ListResourcesDescriptor) GetProtoPkgName() string

func (*ListResourcesDescriptor) GetResourceDescriptor

func (d *ListResourcesDescriptor) GetResourceDescriptor() gotenresource.Descriptor

func (*ListResourcesDescriptor) GetServerMsgReflectHandle

func (d *ListResourcesDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle

func (*ListResourcesDescriptor) GetServiceDomain

func (d *ListResourcesDescriptor) GetServiceDomain() string

func (*ListResourcesDescriptor) GetServiceVersion

func (d *ListResourcesDescriptor) GetServiceVersion() string

func (*ListResourcesDescriptor) GetVerb

func (d *ListResourcesDescriptor) GetVerb() string

func (*ListResourcesDescriptor) HasResource

func (d *ListResourcesDescriptor) HasResource() bool

func (*ListResourcesDescriptor) IsClientStream

func (d *ListResourcesDescriptor) IsClientStream() bool

func (*ListResourcesDescriptor) IsCollection

func (d *ListResourcesDescriptor) IsCollection() bool

func (*ListResourcesDescriptor) IsPlural

func (d *ListResourcesDescriptor) IsPlural() bool

func (*ListResourcesDescriptor) IsServerStream

func (d *ListResourcesDescriptor) IsServerStream() bool

func (*ListResourcesDescriptor) IsUnary

func (d *ListResourcesDescriptor) IsUnary() bool

func (*ListResourcesDescriptor) NewEmptyClientMsg

func (d *ListResourcesDescriptor) NewEmptyClientMsg() proto.Message

func (*ListResourcesDescriptor) NewEmptyServerMsg

func (d *ListResourcesDescriptor) NewEmptyServerMsg() proto.Message

func (*ListResourcesDescriptor) RequestHasResourceBody

func (d *ListResourcesDescriptor) RequestHasResourceBody() bool

type ListResourcesDescriptorClientMsgHandle

type ListResourcesDescriptorClientMsgHandle struct{}

func (*ListResourcesDescriptorClientMsgHandle) ExtractCollectionName

func (*ListResourcesDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*ListResourcesDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*ListResourcesDescriptorClientMsgHandle) ExtractResourceName

func (*ListResourcesDescriptorClientMsgHandle) ExtractResourceNames

type ListResourcesDescriptorServerMsgHandle

type ListResourcesDescriptorServerMsgHandle struct{}

func (*ListResourcesDescriptorServerMsgHandle) ExtractCollectionName

func (*ListResourcesDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*ListResourcesDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*ListResourcesDescriptorServerMsgHandle) ExtractResourceName

func (*ListResourcesDescriptorServerMsgHandle) ExtractResourceNames

type ListResourcesRequest

type ListResourcesRequest struct {

	// Parent name of ntt.meta.v1alpha2.Resource
	Parent *resource.ParentName `protobuf:"bytes,1,opt,customtype=ParentName,name=parent,proto3" json:"parent,omitempty" firestore:"parent"`
	// Requested page size. Server may return fewer Resources than requested.
	// If unspecified, server will pick an appropriate default.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty" firestore:"pageSize"`
	// A token identifying a page of results the server should return.
	// Typically, this is the value of
	// [ListResourcesResponse.next_page_token][ntt.meta.v1alpha2.ListResourcesResponse.next_page_token]
	PageToken *resource.PagerCursor `` /* 133-byte string literal not displayed */
	// Order By -
	// https://cloud.google.com/apis/design/design_patterns#list_pagination list
	// of field path with order directive, either 'asc' or 'desc'. If direction is
	// not provided, 'asc' is assumed. e.g. "state.nested_field asc,
	// state.something.else desc, theme"
	OrderBy *resource.OrderBy `protobuf:"bytes,4,opt,customtype=OrderBy,name=order_by,json=orderBy,proto3" json:"order_by,omitempty" firestore:"orderBy"`
	// Filter - filter results by field criteria. Simplified SQL-like syntax with
	// following operators:
	// <=, >=, =, !=, <, >, LIKE, CONTAINS (aliases CONTAIN, HAS, HAVE), IN, IS
	// [NOT] NULL | NaN . Combine conditions with OR | AND example: 'meta.labels
	// CONTAINS "severity:important" OR (state.last_error_time >
	// "2018-11-15T10:00:00Z" AND state.status = "ERROR")'
	Filter *resource.Filter `protobuf:"bytes,5,opt,customtype=Filter,name=filter,proto3" json:"filter,omitempty" firestore:"filter"`
	// A list of extra fields to be obtained for each response item on top of
	// fields defined by request field view
	FieldMask *resource.Resource_FieldMask `` /* 140-byte string literal not displayed */
	// View defines list of standard response fields present in response items.
	// Additional fields can be amended by request field field_mask
	View view.View `protobuf:"varint,7,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
	// Indicates if list response should contain total count and offset (fields
	// current_offset and total_results_count).
	IncludePagingInfo bool `` /* 145-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for method [ListResources][ntt.meta.v1alpha2.ListResources]

func (*ListResourcesRequest) Descriptor

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

Deprecated, Use ListResourcesRequest.ProtoReflect.Descriptor instead.

func (*ListResourcesRequest) GetFieldMask

func (*ListResourcesRequest) GetFilter

func (m *ListResourcesRequest) GetFilter() *resource.Filter

func (*ListResourcesRequest) GetIncludePagingInfo added in v0.10.1

func (m *ListResourcesRequest) GetIncludePagingInfo() bool

func (*ListResourcesRequest) GetOrderBy

func (m *ListResourcesRequest) GetOrderBy() *resource.OrderBy

func (*ListResourcesRequest) GetPageSize

func (m *ListResourcesRequest) GetPageSize() int32

func (*ListResourcesRequest) GetPageToken

func (m *ListResourcesRequest) GetPageToken() *resource.PagerCursor

func (*ListResourcesRequest) GetParent

func (m *ListResourcesRequest) GetParent() *resource.ParentName

func (*ListResourcesRequest) GetView

func (m *ListResourcesRequest) GetView() view.View

func (*ListResourcesRequest) GotenMessage

func (*ListResourcesRequest) GotenMessage()

func (*ListResourcesRequest) GotenValidate

func (obj *ListResourcesRequest) GotenValidate() error

func (*ListResourcesRequest) Marshal

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

func (*ListResourcesRequest) MarshalJSON

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

func (*ListResourcesRequest) ProtoMessage

func (*ListResourcesRequest) ProtoMessage()

func (*ListResourcesRequest) ProtoReflect

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

func (*ListResourcesRequest) Reset

func (m *ListResourcesRequest) Reset()

func (*ListResourcesRequest) SetFieldMask

func (m *ListResourcesRequest) SetFieldMask(fv *resource.Resource_FieldMask)

func (*ListResourcesRequest) SetFilter

func (m *ListResourcesRequest) SetFilter(fv *resource.Filter)

func (*ListResourcesRequest) SetIncludePagingInfo added in v0.10.1

func (m *ListResourcesRequest) SetIncludePagingInfo(fv bool)

func (*ListResourcesRequest) SetOrderBy

func (m *ListResourcesRequest) SetOrderBy(fv *resource.OrderBy)

func (*ListResourcesRequest) SetPageSize

func (m *ListResourcesRequest) SetPageSize(fv int32)

func (*ListResourcesRequest) SetPageToken

func (m *ListResourcesRequest) SetPageToken(fv *resource.PagerCursor)

func (*ListResourcesRequest) SetParent

func (m *ListResourcesRequest) SetParent(fv *resource.ParentName)

func (*ListResourcesRequest) SetView

func (m *ListResourcesRequest) SetView(fv view.View)

func (*ListResourcesRequest) String

func (m *ListResourcesRequest) String() string

func (*ListResourcesRequest) Unmarshal

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

func (*ListResourcesRequest) UnmarshalJSON

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

type ListResourcesResponse

type ListResourcesResponse struct {

	// The list of Resources
	Resources []*resource.Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty" firestore:"resources"`
	// A token to retrieve previous page of results. Pass this value in the
	// [ListResourcesRequest.page_token][ntt.meta.v1alpha2.ListResourcesRequest.page_token]
	PrevPageToken *resource.PagerCursor `` /* 151-byte string literal not displayed */
	// A token to retrieve next page of results. Pass this value in the
	// [ListResourcesRequest.page_token][ntt.meta.v1alpha2.ListResourcesRequest.page_token]
	NextPageToken *resource.PagerCursor `` /* 151-byte string literal not displayed */
	// Current offset from the first page or 0 if no page tokens were given,
	// paging info was not requested or there was an error while trying to get
	// it). Page index can be computed from offset and limit provided in a
	// request.
	CurrentOffset int32 `` /* 127-byte string literal not displayed */
	// Number of total Resources across all pages or 0, if there are no items,
	// paging info was not requested or there was an error while trying to get it.
	TotalResultsCount int32 `` /* 145-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for method [ListResources][ntt.meta.v1alpha2.ListResources]

func (*ListResourcesResponse) Descriptor

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

Deprecated, Use ListResourcesResponse.ProtoReflect.Descriptor instead.

func (*ListResourcesResponse) GetCurrentOffset added in v0.10.1

func (m *ListResourcesResponse) GetCurrentOffset() int32

func (*ListResourcesResponse) GetNextPageToken

func (m *ListResourcesResponse) GetNextPageToken() *resource.PagerCursor

func (*ListResourcesResponse) GetPrevPageToken

func (m *ListResourcesResponse) GetPrevPageToken() *resource.PagerCursor

func (*ListResourcesResponse) GetResources

func (m *ListResourcesResponse) GetResources() []*resource.Resource

func (*ListResourcesResponse) GetTotalResultsCount added in v0.10.1

func (m *ListResourcesResponse) GetTotalResultsCount() int32

func (*ListResourcesResponse) GotenMessage

func (*ListResourcesResponse) GotenMessage()

func (*ListResourcesResponse) GotenValidate

func (obj *ListResourcesResponse) GotenValidate() error

func (*ListResourcesResponse) Marshal

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

func (*ListResourcesResponse) MarshalJSON

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

func (*ListResourcesResponse) ProtoMessage

func (*ListResourcesResponse) ProtoMessage()

func (*ListResourcesResponse) ProtoReflect

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

func (*ListResourcesResponse) Reset

func (m *ListResourcesResponse) Reset()

func (*ListResourcesResponse) SetCurrentOffset added in v0.10.1

func (m *ListResourcesResponse) SetCurrentOffset(fv int32)

func (*ListResourcesResponse) SetNextPageToken

func (m *ListResourcesResponse) SetNextPageToken(fv *resource.PagerCursor)

func (*ListResourcesResponse) SetPrevPageToken

func (m *ListResourcesResponse) SetPrevPageToken(fv *resource.PagerCursor)

func (*ListResourcesResponse) SetResources

func (m *ListResourcesResponse) SetResources(fv []*resource.Resource)

func (*ListResourcesResponse) SetTotalResultsCount added in v0.10.1

func (m *ListResourcesResponse) SetTotalResultsCount(fv int32)

func (*ListResourcesResponse) String

func (m *ListResourcesResponse) String() string

func (*ListResourcesResponse) Unmarshal

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

func (*ListResourcesResponse) UnmarshalJSON

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

type ResourceServiceClient

type ResourceServiceClient interface {
	GetResource(ctx context.Context, in *GetResourceRequest, opts ...grpc.CallOption) (*resource.Resource, error)
	BatchGetResources(ctx context.Context, in *BatchGetResourcesRequest, opts ...grpc.CallOption) (*BatchGetResourcesResponse, error)
	ListResources(ctx context.Context, in *ListResourcesRequest, opts ...grpc.CallOption) (*ListResourcesResponse, error)
	WatchResource(ctx context.Context, in *WatchResourceRequest, opts ...grpc.CallOption) (WatchResourceClientStream, error)
	WatchResources(ctx context.Context, in *WatchResourcesRequest, opts ...grpc.CallOption) (WatchResourcesClientStream, error)
}

ResourceServiceClient is the client API for ResourceService.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ResourceServiceDescriptor

type ResourceServiceDescriptor struct{}

func GetResourceServiceDescriptor

func GetResourceServiceDescriptor() *ResourceServiceDescriptor

func (*ResourceServiceDescriptor) AllMethodDescriptors

func (d *ResourceServiceDescriptor) AllMethodDescriptors() []gotenclient.MethodDescriptor

func (*ResourceServiceDescriptor) GetApiName

func (d *ResourceServiceDescriptor) GetApiName() string

func (*ResourceServiceDescriptor) GetFullAPIName

func (d *ResourceServiceDescriptor) GetFullAPIName() string

func (*ResourceServiceDescriptor) GetProtoPkgName

func (d *ResourceServiceDescriptor) GetProtoPkgName() string

func (*ResourceServiceDescriptor) GetServiceDomain

func (d *ResourceServiceDescriptor) GetServiceDomain() string

func (*ResourceServiceDescriptor) GetServiceVersion

func (d *ResourceServiceDescriptor) GetServiceVersion() string

type WatchResourceClientStream

type WatchResourceClientStream interface {
	Recv() (*WatchResourceResponse, error)
	grpc.ClientStream
}

type WatchResourceDescriptor

type WatchResourceDescriptor struct{}

func GetWatchResourceDescriptor

func GetWatchResourceDescriptor() *WatchResourceDescriptor

func (*WatchResourceDescriptor) GetApiDescriptor

func (d *WatchResourceDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor

func (*WatchResourceDescriptor) GetApiName

func (d *WatchResourceDescriptor) GetApiName() string

func (*WatchResourceDescriptor) GetClientMsgReflectHandle

func (d *WatchResourceDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle

func (*WatchResourceDescriptor) GetFullMethodName

func (d *WatchResourceDescriptor) GetFullMethodName() string

func (*WatchResourceDescriptor) GetMethodName

func (d *WatchResourceDescriptor) GetMethodName() string

func (*WatchResourceDescriptor) GetProtoPkgName

func (d *WatchResourceDescriptor) GetProtoPkgName() string

func (*WatchResourceDescriptor) GetResourceDescriptor

func (d *WatchResourceDescriptor) GetResourceDescriptor() gotenresource.Descriptor

func (*WatchResourceDescriptor) GetServerMsgReflectHandle

func (d *WatchResourceDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle

func (*WatchResourceDescriptor) GetServiceDomain

func (d *WatchResourceDescriptor) GetServiceDomain() string

func (*WatchResourceDescriptor) GetServiceVersion

func (d *WatchResourceDescriptor) GetServiceVersion() string

func (*WatchResourceDescriptor) GetVerb

func (d *WatchResourceDescriptor) GetVerb() string

func (*WatchResourceDescriptor) HasResource

func (d *WatchResourceDescriptor) HasResource() bool

func (*WatchResourceDescriptor) IsClientStream

func (d *WatchResourceDescriptor) IsClientStream() bool

func (*WatchResourceDescriptor) IsCollection

func (d *WatchResourceDescriptor) IsCollection() bool

func (*WatchResourceDescriptor) IsPlural

func (d *WatchResourceDescriptor) IsPlural() bool

func (*WatchResourceDescriptor) IsServerStream

func (d *WatchResourceDescriptor) IsServerStream() bool

func (*WatchResourceDescriptor) IsUnary

func (d *WatchResourceDescriptor) IsUnary() bool

func (*WatchResourceDescriptor) NewEmptyClientMsg

func (d *WatchResourceDescriptor) NewEmptyClientMsg() proto.Message

func (*WatchResourceDescriptor) NewEmptyServerMsg

func (d *WatchResourceDescriptor) NewEmptyServerMsg() proto.Message

func (*WatchResourceDescriptor) RequestHasResourceBody

func (d *WatchResourceDescriptor) RequestHasResourceBody() bool

type WatchResourceDescriptorClientMsgHandle

type WatchResourceDescriptorClientMsgHandle struct{}

func (*WatchResourceDescriptorClientMsgHandle) ExtractCollectionName

func (*WatchResourceDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*WatchResourceDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*WatchResourceDescriptorClientMsgHandle) ExtractResourceName

func (*WatchResourceDescriptorClientMsgHandle) ExtractResourceNames

type WatchResourceDescriptorServerMsgHandle

type WatchResourceDescriptorServerMsgHandle struct{}

func (*WatchResourceDescriptorServerMsgHandle) ExtractCollectionName

func (*WatchResourceDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*WatchResourceDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*WatchResourceDescriptorServerMsgHandle) ExtractResourceName

func (*WatchResourceDescriptorServerMsgHandle) ExtractResourceNames

type WatchResourceRequest

type WatchResourceRequest struct {

	// Name of ntt.meta.v1alpha2.Resource
	Name *resource.Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// A list of extra fields to be obtained for each response item on top of
	// fields defined by request field view
	FieldMask *resource.Resource_FieldMask `` /* 140-byte string literal not displayed */
	// View defines list of standard response fields present in response items.
	// Additional fields can be amended by request field field_mask
	View view.View `protobuf:"varint,4,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
	// contains filtered or unexported fields
}

Request message for method [WatchResource][ntt.meta.v1alpha2.WatchResource]

func (*WatchResourceRequest) Descriptor

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

Deprecated, Use WatchResourceRequest.ProtoReflect.Descriptor instead.

func (*WatchResourceRequest) GetFieldMask

func (*WatchResourceRequest) GetName

func (m *WatchResourceRequest) GetName() *resource.Name

func (*WatchResourceRequest) GetView

func (m *WatchResourceRequest) GetView() view.View

func (*WatchResourceRequest) GotenMessage

func (*WatchResourceRequest) GotenMessage()

func (*WatchResourceRequest) GotenValidate

func (obj *WatchResourceRequest) GotenValidate() error

func (*WatchResourceRequest) Marshal

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

func (*WatchResourceRequest) MarshalJSON

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

func (*WatchResourceRequest) ProtoMessage

func (*WatchResourceRequest) ProtoMessage()

func (*WatchResourceRequest) ProtoReflect

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

func (*WatchResourceRequest) Reset

func (m *WatchResourceRequest) Reset()

func (*WatchResourceRequest) SetFieldMask

func (m *WatchResourceRequest) SetFieldMask(fv *resource.Resource_FieldMask)

func (*WatchResourceRequest) SetName

func (m *WatchResourceRequest) SetName(fv *resource.Name)

func (*WatchResourceRequest) SetView

func (m *WatchResourceRequest) SetView(fv view.View)

func (*WatchResourceRequest) String

func (m *WatchResourceRequest) String() string

func (*WatchResourceRequest) Unmarshal

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

func (*WatchResourceRequest) UnmarshalJSON

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

type WatchResourceResponse

type WatchResourceResponse struct {
	Change *resource.ResourceChange `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty" firestore:"change"`
	// contains filtered or unexported fields
}

WatchResourceResponse

func (*WatchResourceResponse) Descriptor

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

Deprecated, Use WatchResourceResponse.ProtoReflect.Descriptor instead.

func (*WatchResourceResponse) GetChange

func (*WatchResourceResponse) GotenMessage

func (*WatchResourceResponse) GotenMessage()

func (*WatchResourceResponse) GotenValidate

func (obj *WatchResourceResponse) GotenValidate() error

func (*WatchResourceResponse) Marshal

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

func (*WatchResourceResponse) MarshalJSON

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

func (*WatchResourceResponse) ProtoMessage

func (*WatchResourceResponse) ProtoMessage()

func (*WatchResourceResponse) ProtoReflect

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

func (*WatchResourceResponse) Reset

func (m *WatchResourceResponse) Reset()

func (*WatchResourceResponse) SetChange

func (m *WatchResourceResponse) SetChange(fv *resource.ResourceChange)

func (*WatchResourceResponse) String

func (m *WatchResourceResponse) String() string

func (*WatchResourceResponse) Unmarshal

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

func (*WatchResourceResponse) UnmarshalJSON

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

type WatchResourcesClientStream

type WatchResourcesClientStream interface {
	Recv() (*WatchResourcesResponse, error)
	grpc.ClientStream
}

type WatchResourcesDescriptor

type WatchResourcesDescriptor struct{}

func GetWatchResourcesDescriptor

func GetWatchResourcesDescriptor() *WatchResourcesDescriptor

func (*WatchResourcesDescriptor) GetApiDescriptor

func (d *WatchResourcesDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor

func (*WatchResourcesDescriptor) GetApiName

func (d *WatchResourcesDescriptor) GetApiName() string

func (*WatchResourcesDescriptor) GetClientMsgReflectHandle

func (d *WatchResourcesDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle

func (*WatchResourcesDescriptor) GetFullMethodName

func (d *WatchResourcesDescriptor) GetFullMethodName() string

func (*WatchResourcesDescriptor) GetMethodName

func (d *WatchResourcesDescriptor) GetMethodName() string

func (*WatchResourcesDescriptor) GetProtoPkgName

func (d *WatchResourcesDescriptor) GetProtoPkgName() string

func (*WatchResourcesDescriptor) GetResourceDescriptor

func (d *WatchResourcesDescriptor) GetResourceDescriptor() gotenresource.Descriptor

func (*WatchResourcesDescriptor) GetServerMsgReflectHandle

func (d *WatchResourcesDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle

func (*WatchResourcesDescriptor) GetServiceDomain

func (d *WatchResourcesDescriptor) GetServiceDomain() string

func (*WatchResourcesDescriptor) GetServiceVersion

func (d *WatchResourcesDescriptor) GetServiceVersion() string

func (*WatchResourcesDescriptor) GetVerb

func (d *WatchResourcesDescriptor) GetVerb() string

func (*WatchResourcesDescriptor) HasResource

func (d *WatchResourcesDescriptor) HasResource() bool

func (*WatchResourcesDescriptor) IsClientStream

func (d *WatchResourcesDescriptor) IsClientStream() bool

func (*WatchResourcesDescriptor) IsCollection

func (d *WatchResourcesDescriptor) IsCollection() bool

func (*WatchResourcesDescriptor) IsPlural

func (d *WatchResourcesDescriptor) IsPlural() bool

func (*WatchResourcesDescriptor) IsServerStream

func (d *WatchResourcesDescriptor) IsServerStream() bool

func (*WatchResourcesDescriptor) IsUnary

func (d *WatchResourcesDescriptor) IsUnary() bool

func (*WatchResourcesDescriptor) NewEmptyClientMsg

func (d *WatchResourcesDescriptor) NewEmptyClientMsg() proto.Message

func (*WatchResourcesDescriptor) NewEmptyServerMsg

func (d *WatchResourcesDescriptor) NewEmptyServerMsg() proto.Message

func (*WatchResourcesDescriptor) RequestHasResourceBody

func (d *WatchResourcesDescriptor) RequestHasResourceBody() bool

type WatchResourcesDescriptorClientMsgHandle

type WatchResourcesDescriptorClientMsgHandle struct{}

func (*WatchResourcesDescriptorClientMsgHandle) ExtractCollectionName

func (*WatchResourcesDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*WatchResourcesDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*WatchResourcesDescriptorClientMsgHandle) ExtractResourceName

func (*WatchResourcesDescriptorClientMsgHandle) ExtractResourceNames

type WatchResourcesDescriptorServerMsgHandle

type WatchResourcesDescriptorServerMsgHandle struct{}

func (*WatchResourcesDescriptorServerMsgHandle) ExtractCollectionName

func (*WatchResourcesDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*WatchResourcesDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*WatchResourcesDescriptorServerMsgHandle) ExtractResourceName

func (*WatchResourcesDescriptorServerMsgHandle) ExtractResourceNames

type WatchResourcesRequest

type WatchResourcesRequest struct {

	// Type of a watch. Identifies how server stream data to a client, which
	// fields in a request are allowed and which fields in response are relevant.
	Type watch_type.WatchType `protobuf:"varint,9,opt,name=type,proto3,enum=goten.types.WatchType" json:"type,omitempty" firestore:"type"`
	// Parent name of ntt.meta.v1alpha2.Resource
	Parent *resource.ParentName `protobuf:"bytes,1,opt,customtype=ParentName,name=parent,proto3" json:"parent,omitempty" firestore:"parent"`
	// Requested page size. Server may return fewer Resources than requested.
	// If unspecified, server will pick an appropriate default.
	// Can be populated only for stateful watch type.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty" firestore:"pageSize"`
	// A token identifying a page of results the server should return.
	// Can be populated only for stateful watch type.
	PageToken *resource.PagerCursor `` /* 133-byte string literal not displayed */
	// Order By -
	// https://cloud.google.com/apis/design/design_patterns#list_pagination Can be
	// populated only for stateful watch type.
	OrderBy *resource.OrderBy `protobuf:"bytes,4,opt,customtype=OrderBy,name=order_by,json=orderBy,proto3" json:"order_by,omitempty" firestore:"orderBy"`
	// A token identifying watch resume point from previous session.
	// Can be populated only for stateless watch type.
	ResumeToken string `protobuf:"bytes,10,opt,name=resume_token,json=resumeToken,proto3" json:"resume_token,omitempty" firestore:"resumeToken"`
	// Point in the time from which we want to start getting updates. This field
	// can be populated only for stateless watch type and if resume token is not
	// known yet. If specified, initial snapshot will NOT be provided. It is
	// assumed client can obtain it using separate means. Watch responses will
	// contain resume tokens which should be used to resume broken connection.
	StartingTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=starting_time,json=startingTime,proto3" json:"starting_time,omitempty" firestore:"startingTime"`
	// Filter - filter results by field criteria. Simplified SQL-like syntax with
	// following operators:
	// <=, >=, =, !=, <, >, LIKE, CONTAINS (aliases CONTAIN, HAS, HAVE), IN, IS
	// [NOT] NULL | NaN . Combine conditions with OR | AND example: 'meta.labels
	// CONTAINS "severity:important" OR (state.last_error_time >
	// "2018-11-15T10:00:00Z" AND state.status = "ERROR")'
	Filter *resource.Filter `protobuf:"bytes,5,opt,customtype=Filter,name=filter,proto3" json:"filter,omitempty" firestore:"filter"`
	// A list of extra fields to be obtained for each response item on top of
	// fields defined by request field view Changes to Resource that don't affect
	// any of masked fields won't be sent back.
	FieldMask *resource.Resource_FieldMask `` /* 140-byte string literal not displayed */
	// View defines list of standard response fields present in response items.
	// Additional fields can be amended by request field field_mask Changes to
	// Resource that don't affect any of masked fields won't be sent back.
	View view.View `protobuf:"varint,8,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
	// Maximum amount of changes in each response message. Query result response
	// is divided on the server side into chunks with size of a specified amount
	// to limit memory footprint of each message. Responses will hold information
	// whether more elements will continue for the actual change. If unspecified,
	// server will pick an appropriate default.
	MaxChunkSize int32 `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for method [WatchResources][ntt.meta.v1alpha2.WatchResources]

func (*WatchResourcesRequest) Descriptor

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

Deprecated, Use WatchResourcesRequest.ProtoReflect.Descriptor instead.

func (*WatchResourcesRequest) GetFieldMask

func (*WatchResourcesRequest) GetFilter

func (m *WatchResourcesRequest) GetFilter() *resource.Filter

func (*WatchResourcesRequest) GetMaxChunkSize

func (m *WatchResourcesRequest) GetMaxChunkSize() int32

func (*WatchResourcesRequest) GetOrderBy

func (m *WatchResourcesRequest) GetOrderBy() *resource.OrderBy

func (*WatchResourcesRequest) GetPageSize

func (m *WatchResourcesRequest) GetPageSize() int32

func (*WatchResourcesRequest) GetPageToken

func (m *WatchResourcesRequest) GetPageToken() *resource.PagerCursor

func (*WatchResourcesRequest) GetParent

func (m *WatchResourcesRequest) GetParent() *resource.ParentName

func (*WatchResourcesRequest) GetResumeToken

func (m *WatchResourcesRequest) GetResumeToken() string

func (*WatchResourcesRequest) GetStartingTime added in v0.9.0

func (m *WatchResourcesRequest) GetStartingTime() *timestamppb.Timestamp

func (*WatchResourcesRequest) GetType

func (*WatchResourcesRequest) GetView

func (m *WatchResourcesRequest) GetView() view.View

func (*WatchResourcesRequest) GotenMessage

func (*WatchResourcesRequest) GotenMessage()

func (*WatchResourcesRequest) GotenValidate

func (obj *WatchResourcesRequest) GotenValidate() error

func (*WatchResourcesRequest) Marshal

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

func (*WatchResourcesRequest) MarshalJSON

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

func (*WatchResourcesRequest) ProtoMessage

func (*WatchResourcesRequest) ProtoMessage()

func (*WatchResourcesRequest) ProtoReflect

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

func (*WatchResourcesRequest) Reset

func (m *WatchResourcesRequest) Reset()

func (*WatchResourcesRequest) SetFieldMask

func (m *WatchResourcesRequest) SetFieldMask(fv *resource.Resource_FieldMask)

func (*WatchResourcesRequest) SetFilter

func (m *WatchResourcesRequest) SetFilter(fv *resource.Filter)

func (*WatchResourcesRequest) SetMaxChunkSize

func (m *WatchResourcesRequest) SetMaxChunkSize(fv int32)

func (*WatchResourcesRequest) SetOrderBy

func (m *WatchResourcesRequest) SetOrderBy(fv *resource.OrderBy)

func (*WatchResourcesRequest) SetPageSize

func (m *WatchResourcesRequest) SetPageSize(fv int32)

func (*WatchResourcesRequest) SetPageToken

func (m *WatchResourcesRequest) SetPageToken(fv *resource.PagerCursor)

func (*WatchResourcesRequest) SetParent

func (m *WatchResourcesRequest) SetParent(fv *resource.ParentName)

func (*WatchResourcesRequest) SetResumeToken

func (m *WatchResourcesRequest) SetResumeToken(fv string)

func (*WatchResourcesRequest) SetStartingTime added in v0.9.0

func (m *WatchResourcesRequest) SetStartingTime(fv *timestamppb.Timestamp)

func (*WatchResourcesRequest) SetType

func (*WatchResourcesRequest) SetView

func (m *WatchResourcesRequest) SetView(fv view.View)

func (*WatchResourcesRequest) String

func (m *WatchResourcesRequest) String() string

func (*WatchResourcesRequest) Unmarshal

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

func (*WatchResourcesRequest) UnmarshalJSON

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

type WatchResourcesResponse

type WatchResourcesResponse struct {

	// Changes of Resources
	ResourceChanges []*resource.ResourceChange `` /* 134-byte string literal not displayed */
	// If request specified max_chunk_size (or this limit was enforced if
	// stateless watch has been chosen), then responses with "full changeset" will
	// be divided into chunks. Client should keep receiving messages and, once
	// is_current has value true, combine this recent message with all previous
	// ones where is_current is false. If this is the first is_current in a whole
	// watch stream, then it means that client should have, at this moment,
	// contain snapshot of the current situation (or more accurately, snapshot of
	// situation at the moment of request). All Resources will be of type
	// Added/Current (depending on watch_type specified in the request). Further
	// responses will be incremental - however messages may still be chunked and
	// is_current logic still applies. is_current is always true for stateful
	// watch if max_chunk_size was left to 0.
	IsCurrent bool `protobuf:"varint,4,opt,name=is_current,json=isCurrent,proto3" json:"is_current,omitempty" firestore:"isCurrent"`
	// When present, PageTokens used for page navigation should be updated.
	// Present only if is_current is true (last chunk).
	PageTokenChange *WatchResourcesResponse_PageTokenChange `` /* 136-byte string literal not displayed */
	// Token that can be used if current connection drops and client needs to
	// reconnect. Populated only for stateless watch type. Present only if
	// is_current is true (last chunk).
	ResumeToken string `protobuf:"bytes,5,opt,name=resume_token,json=resumeToken,proto3" json:"resume_token,omitempty" firestore:"resumeToken"`
	// Server may occasionally send information how many resources should client
	// have in its state so far (response message without any changes, but with
	// snapshot_size field specified). If client has different value than the one
	// sent by the server, then it should be treated by a client as an error and
	// should reconnect. If value is smaller then 0, then client should ignore
	// this field as unpopulated. This field should be checked only for stateless
	// watch. In stateful those kind of errors are handled by the server side.
	// Will be never sent together with is_current, is_soft_reset and
	// is_hard_reset flags.
	SnapshotSize int64 `protobuf:"varint,6,opt,name=snapshot_size,json=snapshotSize,proto3" json:"snapshot_size,omitempty" firestore:"snapshotSize"`
	// In case of internal issue server may send response message with this flag.
	// It indicates that client should drop all changes from recent responses
	// where is_current is false only! If last message had is_current set to true,
	// client should do nothing and process normally. Resume token received before
	// is still valid. This field should be checked only for stateless watch. In
	// stateful those kind of errors are handled by the server side. Will never be
	// sent along with is_current, is_hard_reset or snapshot_size.
	IsSoftReset bool `protobuf:"varint,7,opt,name=is_soft_reset,json=isSoftReset,proto3" json:"is_soft_reset,omitempty" firestore:"isSoftReset"`
	// In case of internal issue server may send response message with this flag.
	// After receiving, client should clear whole state (drop all changes received
	// so far) as server will send new snapshot (Resources will contains changes
	// of type Current only). Any resume tokens should be discarded as well. This
	// field should be checked only for stateless watch. In stateful those kind of
	// errors are handled by the server side. Will never be sent along with
	// is_current, is_soft_reset or snapshot_size.
	IsHardReset bool `protobuf:"varint,8,opt,name=is_hard_reset,json=isHardReset,proto3" json:"is_hard_reset,omitempty" firestore:"isHardReset"`
	// contains filtered or unexported fields
}

WatchResourcesResponse

func (*WatchResourcesResponse) Descriptor

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

Deprecated, Use WatchResourcesResponse.ProtoReflect.Descriptor instead.

func (*WatchResourcesResponse) GetIsCurrent

func (m *WatchResourcesResponse) GetIsCurrent() bool

func (*WatchResourcesResponse) GetIsHardReset

func (m *WatchResourcesResponse) GetIsHardReset() bool

func (*WatchResourcesResponse) GetIsSoftReset

func (m *WatchResourcesResponse) GetIsSoftReset() bool

func (*WatchResourcesResponse) GetPageTokenChange

func (*WatchResourcesResponse) GetResourceChanges

func (m *WatchResourcesResponse) GetResourceChanges() []*resource.ResourceChange

func (*WatchResourcesResponse) GetResumeToken

func (m *WatchResourcesResponse) GetResumeToken() string

func (*WatchResourcesResponse) GetSnapshotSize

func (m *WatchResourcesResponse) GetSnapshotSize() int64

func (*WatchResourcesResponse) GotenMessage

func (*WatchResourcesResponse) GotenMessage()

func (*WatchResourcesResponse) GotenValidate

func (obj *WatchResourcesResponse) GotenValidate() error

func (*WatchResourcesResponse) Marshal

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

func (*WatchResourcesResponse) MarshalJSON

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

func (*WatchResourcesResponse) ProtoMessage

func (*WatchResourcesResponse) ProtoMessage()

func (*WatchResourcesResponse) ProtoReflect

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

func (*WatchResourcesResponse) Reset

func (m *WatchResourcesResponse) Reset()

func (*WatchResourcesResponse) SetIsCurrent

func (m *WatchResourcesResponse) SetIsCurrent(fv bool)

func (*WatchResourcesResponse) SetIsHardReset

func (m *WatchResourcesResponse) SetIsHardReset(fv bool)

func (*WatchResourcesResponse) SetIsSoftReset

func (m *WatchResourcesResponse) SetIsSoftReset(fv bool)

func (*WatchResourcesResponse) SetPageTokenChange

func (*WatchResourcesResponse) SetResourceChanges

func (m *WatchResourcesResponse) SetResourceChanges(fv []*resource.ResourceChange)

func (*WatchResourcesResponse) SetResumeToken

func (m *WatchResourcesResponse) SetResumeToken(fv string)

func (*WatchResourcesResponse) SetSnapshotSize

func (m *WatchResourcesResponse) SetSnapshotSize(fv int64)

func (*WatchResourcesResponse) String

func (m *WatchResourcesResponse) String() string

func (*WatchResourcesResponse) Unmarshal

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

func (*WatchResourcesResponse) UnmarshalJSON

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

type WatchResourcesResponse_PageTokenChange

type WatchResourcesResponse_PageTokenChange struct {

	// New token to retrieve previous page of results.
	PrevPageToken *resource.PagerCursor `` /* 151-byte string literal not displayed */
	// New token to retrieve next page of results.
	NextPageToken *resource.PagerCursor `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WatchResourcesResponse_PageTokenChange) Descriptor

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

Deprecated, Use WatchResourcesResponse_PageTokenChange.ProtoReflect.Descriptor instead.

func (*WatchResourcesResponse_PageTokenChange) GetNextPageToken

func (*WatchResourcesResponse_PageTokenChange) GetPrevPageToken

func (*WatchResourcesResponse_PageTokenChange) GotenMessage

func (*WatchResourcesResponse_PageTokenChange) GotenValidate

func (obj *WatchResourcesResponse_PageTokenChange) GotenValidate() error

func (*WatchResourcesResponse_PageTokenChange) Marshal

func (*WatchResourcesResponse_PageTokenChange) MarshalJSON

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

func (*WatchResourcesResponse_PageTokenChange) ProtoMessage

func (*WatchResourcesResponse_PageTokenChange) ProtoReflect

func (*WatchResourcesResponse_PageTokenChange) Reset

func (*WatchResourcesResponse_PageTokenChange) SetNextPageToken

func (*WatchResourcesResponse_PageTokenChange) SetPrevPageToken

func (*WatchResourcesResponse_PageTokenChange) String

func (*WatchResourcesResponse_PageTokenChange) Unmarshal

func (*WatchResourcesResponse_PageTokenChange) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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