query_result

package
v0.4.39 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_goten_runtime_resource_query_result_query_result_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type QueryResult

type QueryResult struct {
	Results    []*any.Any `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	NextCursor []byte     `protobuf:"bytes,2,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
	PrevCursor []byte     `protobuf:"bytes,3,opt,name=prev_cursor,json=prevCursor,proto3" json:"prev_cursor,omitempty"`
	// search specific
	TotalCount int32 `protobuf:"varint,4,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	Offset     int32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
	// watch-specific
	IsCurrent    bool   `protobuf:"varint,6,opt,name=is_current,json=isCurrent,proto3" json:"is_current,omitempty"`
	IsSoftReset  bool   `protobuf:"varint,7,opt,name=is_soft_reset,json=isSoftReset,proto3" json:"is_soft_reset,omitempty"`
	IsHardReset  bool   `protobuf:"varint,8,opt,name=is_hard_reset,json=isHardReset,proto3" json:"is_hard_reset,omitempty"`
	SnapshotSize int64  `protobuf:"varint,9,opt,name=snapshot_size,json=snapshotSize,proto3" json:"snapshot_size,omitempty"`
	ResumeToken  string `protobuf:"bytes,10,opt,name=resume_token,json=resumeToken,proto3" json:"resume_token,omitempty"`
	// contains filtered or unexported fields
}

Internal object representing query result snapshot OR change. In case of snapshot, it contains list of resources. Otherwise contains list of changes from previous QueryResult.

func (*QueryResult) Descriptor deprecated

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

Deprecated: Use QueryResult.ProtoReflect.Descriptor instead.

func (*QueryResult) GetIsCurrent added in v0.4.28

func (x *QueryResult) GetIsCurrent() bool

func (*QueryResult) GetIsHardReset added in v0.4.28

func (x *QueryResult) GetIsHardReset() bool

func (*QueryResult) GetIsSoftReset added in v0.4.28

func (x *QueryResult) GetIsSoftReset() bool

func (*QueryResult) GetNextCursor

func (x *QueryResult) GetNextCursor() []byte

func (*QueryResult) GetOffset added in v0.4.28

func (x *QueryResult) GetOffset() int32

func (*QueryResult) GetPrevCursor

func (x *QueryResult) GetPrevCursor() []byte

func (*QueryResult) GetResults

func (x *QueryResult) GetResults() []*any.Any

func (*QueryResult) GetResumeToken added in v0.4.28

func (x *QueryResult) GetResumeToken() string

func (*QueryResult) GetSnapshotSize added in v0.4.28

func (x *QueryResult) GetSnapshotSize() int64

func (*QueryResult) GetTotalCount added in v0.4.28

func (x *QueryResult) GetTotalCount() int32

func (*QueryResult) ProtoMessage

func (*QueryResult) ProtoMessage()

func (*QueryResult) ProtoReflect

func (x *QueryResult) ProtoReflect() protoreflect.Message

func (*QueryResult) Reset

func (x *QueryResult) Reset()

func (*QueryResult) String

func (x *QueryResult) String() string

Jump to

Keyboard shortcuts

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