commonv1

package
v1.14.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Example_name = map[int32]string{
		0: "EXAMPLE_UNSPECIFIED",
		1: "EXAMPLE_FOO",
	}
	Example_value = map[string]int32{
		"EXAMPLE_UNSPECIFIED": 0,
		"EXAMPLE_FOO":         1,
	}
)

Enum value maps for Example.

View Source
var File_test_simple_common_v1_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Example added in v1.14.2

type Example int32
const (
	Example_EXAMPLE_UNSPECIFIED Example = 0
	Example_EXAMPLE_FOO         Example = 1
)

func (Example) Descriptor added in v1.14.2

func (Example) Descriptor() protoreflect.EnumDescriptor

func (Example) Enum added in v1.14.2

func (x Example) Enum() *Example

func (Example) EnumDescriptor deprecated added in v1.14.2

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

Deprecated: Use Example.Descriptor instead.

func (Example) Number added in v1.14.2

func (x Example) Number() protoreflect.EnumNumber

func (Example) String added in v1.14.2

func (x Example) String() string

func (Example) Type added in v1.14.2

func (Example) Type() protoreflect.EnumType

type PaginatedRequest

type PaginatedRequest struct {
	Limit  uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Cursor []byte `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

func (*PaginatedRequest) Descriptor deprecated

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

Deprecated: Use PaginatedRequest.ProtoReflect.Descriptor instead.

func (*PaginatedRequest) GetCursor

func (x *PaginatedRequest) GetCursor() []byte

func (*PaginatedRequest) GetLimit

func (x *PaginatedRequest) GetLimit() uint32

func (*PaginatedRequest) ProtoMessage

func (*PaginatedRequest) ProtoMessage()

func (*PaginatedRequest) ProtoReflect

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

func (*PaginatedRequest) Reset

func (x *PaginatedRequest) Reset()

func (*PaginatedRequest) String

func (x *PaginatedRequest) String() string

type PaginatedResponse

type PaginatedResponse struct {
	Items      []*anypb.Any `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	NextCursor []byte       `protobuf:"bytes,2,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
	// contains filtered or unexported fields
}

func (*PaginatedResponse) Descriptor deprecated

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

Deprecated: Use PaginatedResponse.ProtoReflect.Descriptor instead.

func (*PaginatedResponse) GetItems

func (x *PaginatedResponse) GetItems() []*anypb.Any

func (*PaginatedResponse) GetNextCursor

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

func (*PaginatedResponse) ProtoMessage

func (*PaginatedResponse) ProtoMessage()

func (*PaginatedResponse) ProtoReflect

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

func (*PaginatedResponse) Reset

func (x *PaginatedResponse) Reset()

func (*PaginatedResponse) String

func (x *PaginatedResponse) String() string

Jump to

Keyboard shortcuts

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