paging

package
v3.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FieldsOffsetPageToken_Ordering_name = map[int32]string{
		0: "ORDERING_UNSPECIFIED",
		1: "ASC",
		2: "DESC",
	}
	FieldsOffsetPageToken_Ordering_value = map[string]int32{
		"ORDERING_UNSPECIFIED": 0,
		"ASC":                  1,
		"DESC":                 2,
	}
)

Enum value maps for FieldsOffsetPageToken_Ordering.

View Source
var File_strmprivacy_api_paging_v1_paging_v1_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FieldsOffsetPageToken added in v3.17.0

type FieldsOffsetPageToken struct {

	// key = field name, value = field offset information
	Fields map[string]*FieldsOffsetPageToken_FieldOffset `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

A page token that contains all fields that were used for ordering results. Each field contains the last known value and the ordering direction, which allows to use this in combination with the seek operator in SQL databases.

func (*FieldsOffsetPageToken) Descriptor deprecated added in v3.17.0

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

Deprecated: Use FieldsOffsetPageToken.ProtoReflect.Descriptor instead.

func (*FieldsOffsetPageToken) GetFields added in v3.17.0

func (*FieldsOffsetPageToken) ProtoMessage added in v3.17.0

func (*FieldsOffsetPageToken) ProtoMessage()

func (*FieldsOffsetPageToken) ProtoReflect added in v3.17.0

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

func (*FieldsOffsetPageToken) Reset added in v3.17.0

func (x *FieldsOffsetPageToken) Reset()

func (*FieldsOffsetPageToken) String added in v3.17.0

func (x *FieldsOffsetPageToken) String() string

type FieldsOffsetPageToken_FieldOffset added in v3.17.0

type FieldsOffsetPageToken_FieldOffset struct {
	LastValue string                         `protobuf:"bytes,1,opt,name=last_value,json=lastValue,proto3" json:"last_value,omitempty"`
	Ordering  FieldsOffsetPageToken_Ordering `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*FieldsOffsetPageToken_FieldOffset) Descriptor deprecated added in v3.17.0

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

Deprecated: Use FieldsOffsetPageToken_FieldOffset.ProtoReflect.Descriptor instead.

func (*FieldsOffsetPageToken_FieldOffset) GetLastValue added in v3.17.0

func (x *FieldsOffsetPageToken_FieldOffset) GetLastValue() string

func (*FieldsOffsetPageToken_FieldOffset) GetOrdering added in v3.17.0

func (*FieldsOffsetPageToken_FieldOffset) ProtoMessage added in v3.17.0

func (*FieldsOffsetPageToken_FieldOffset) ProtoMessage()

func (*FieldsOffsetPageToken_FieldOffset) ProtoReflect added in v3.17.0

func (*FieldsOffsetPageToken_FieldOffset) Reset added in v3.17.0

func (*FieldsOffsetPageToken_FieldOffset) String added in v3.17.0

type FieldsOffsetPageToken_Ordering added in v3.17.0

type FieldsOffsetPageToken_Ordering int32
const (
	FieldsOffsetPageToken_ORDERING_UNSPECIFIED FieldsOffsetPageToken_Ordering = 0
	FieldsOffsetPageToken_ASC                  FieldsOffsetPageToken_Ordering = 1
	FieldsOffsetPageToken_DESC                 FieldsOffsetPageToken_Ordering = 2
)

func (FieldsOffsetPageToken_Ordering) Descriptor added in v3.17.0

func (FieldsOffsetPageToken_Ordering) Enum added in v3.17.0

func (FieldsOffsetPageToken_Ordering) EnumDescriptor deprecated added in v3.17.0

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

Deprecated: Use FieldsOffsetPageToken_Ordering.Descriptor instead.

func (FieldsOffsetPageToken_Ordering) Number added in v3.17.0

func (FieldsOffsetPageToken_Ordering) String added in v3.17.0

func (FieldsOffsetPageToken_Ordering) Type added in v3.17.0

type OffsetPageToken added in v3.17.0

type OffsetPageToken struct {
	Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*OffsetPageToken) Descriptor deprecated added in v3.17.0

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

Deprecated: Use OffsetPageToken.ProtoReflect.Descriptor instead.

func (*OffsetPageToken) GetOffset added in v3.17.0

func (x *OffsetPageToken) GetOffset() int64

func (*OffsetPageToken) ProtoMessage added in v3.17.0

func (*OffsetPageToken) ProtoMessage()

func (*OffsetPageToken) ProtoReflect added in v3.17.0

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

func (*OffsetPageToken) Reset added in v3.17.0

func (x *OffsetPageToken) Reset()

func (*OffsetPageToken) String added in v3.17.0

func (x *OffsetPageToken) String() string

type TimestampPageToken

type TimestampPageToken struct {

	// (-- api-linter: core::0142::time-field-type=disabled
	//
	//	aip.dev/not-precedent: As this is a generic page token that uses timestamps, this is a string. --)
	Timestamp string `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*TimestampPageToken) Descriptor deprecated

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

Deprecated: Use TimestampPageToken.ProtoReflect.Descriptor instead.

func (*TimestampPageToken) GetTimestamp

func (x *TimestampPageToken) GetTimestamp() string

func (*TimestampPageToken) ProtoMessage

func (*TimestampPageToken) ProtoMessage()

func (*TimestampPageToken) ProtoReflect

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

func (*TimestampPageToken) Reset

func (x *TimestampPageToken) Reset()

func (*TimestampPageToken) String

func (x *TimestampPageToken) String() string

Jump to

Keyboard shortcuts

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