query_result

package
v1.5.16 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryResult

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

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

Deprecated, Use QueryResult.ProtoReflect.Descriptor instead.

func (*QueryResult) GetIsCurrent added in v0.4.28

func (m *QueryResult) GetIsCurrent() bool

func (*QueryResult) GetIsHardReset added in v0.4.28

func (m *QueryResult) GetIsHardReset() bool

func (*QueryResult) GetIsSoftReset added in v0.4.28

func (m *QueryResult) GetIsSoftReset() bool

func (*QueryResult) GetNextCursor

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

func (*QueryResult) GetOffset added in v0.4.28

func (m *QueryResult) GetOffset() int32

func (*QueryResult) GetPrevCursor

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

func (*QueryResult) GetResults

func (m *QueryResult) GetResults() []*anypb.Any

func (*QueryResult) GetResumeToken added in v0.4.28

func (m *QueryResult) GetResumeToken() string

func (*QueryResult) GetSnapshotSize added in v0.4.28

func (m *QueryResult) GetSnapshotSize() int64

func (*QueryResult) GetTotalCount added in v0.4.28

func (m *QueryResult) GetTotalCount() int32

func (*QueryResult) GotenMessage added in v1.0.0

func (*QueryResult) GotenMessage()

func (*QueryResult) GotenValidate added in v1.0.0

func (obj *QueryResult) GotenValidate() error

func (*QueryResult) Marshal added in v1.0.0

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

func (*QueryResult) MarshalJSON added in v1.0.0

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

func (*QueryResult) ProtoMessage

func (*QueryResult) ProtoMessage()

func (*QueryResult) ProtoReflect

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

func (*QueryResult) Reset

func (m *QueryResult) Reset()

func (*QueryResult) SetIsCurrent added in v1.0.0

func (m *QueryResult) SetIsCurrent(fv bool)

func (*QueryResult) SetIsHardReset added in v1.0.0

func (m *QueryResult) SetIsHardReset(fv bool)

func (*QueryResult) SetIsSoftReset added in v1.0.0

func (m *QueryResult) SetIsSoftReset(fv bool)

func (*QueryResult) SetNextCursor added in v1.0.0

func (m *QueryResult) SetNextCursor(fv []byte)

func (*QueryResult) SetOffset added in v1.0.0

func (m *QueryResult) SetOffset(fv int32)

func (*QueryResult) SetPrevCursor added in v1.0.0

func (m *QueryResult) SetPrevCursor(fv []byte)

func (*QueryResult) SetResults added in v1.0.0

func (m *QueryResult) SetResults(fv []*anypb.Any)

func (*QueryResult) SetResumeToken added in v1.0.0

func (m *QueryResult) SetResumeToken(fv string)

func (*QueryResult) SetSnapshotSize added in v1.0.0

func (m *QueryResult) SetSnapshotSize(fv int64)

func (*QueryResult) SetTotalCount added in v1.0.0

func (m *QueryResult) SetTotalCount(fv int32)

func (*QueryResult) String

func (m *QueryResult) String() string

func (*QueryResult) Unmarshal added in v1.0.0

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

func (*QueryResult) UnmarshalJSON added in v1.0.0

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

Jump to

Keyboard shortcuts

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