Documentation ¶
Index ¶
- Variables
- type Image
- type PageInput
- func (*PageInput) Descriptor() ([]byte, []int)deprecated
- func (x *PageInput) GetLimit() int64
- func (x *PageInput) GetPageToken() *PageToken
- func (x *PageInput) GetSortOrder() []*SortField
- func (*PageInput) ProtoMessage()
- func (x *PageInput) ProtoReflect() protoreflect.Message
- func (x *PageInput) Reset()
- func (x *PageInput) String() string
- type PageToken
- type SortDirection
- func (SortDirection) Descriptor() protoreflect.EnumDescriptor
- func (x SortDirection) Enum() *SortDirection
- func (SortDirection) EnumDescriptor() ([]byte, []int)deprecated
- func (x SortDirection) Number() protoreflect.EnumNumber
- func (x SortDirection) String() string
- func (SortDirection) Type() protoreflect.EnumType
- type SortField
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SortDirection_name = map[int32]string{ 0: "SORT_DIRECTION_ASC", 1: "SORT_DIRECTION_DESC", } SortDirection_value = map[string]int32{ "SORT_DIRECTION_ASC": 0, "SORT_DIRECTION_DESC": 1, } )
Enum value maps for SortDirection.
View Source
var File_basket_protobuf_image_proto protoreflect.FileDescriptor
View Source
var File_basket_protobuf_page_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` ThumbnailUrl string `protobuf:"bytes,3,opt,name=thumbnail_url,json=thumbnailUrl,proto3" json:"thumbnail_url,omitempty"` // contains filtered or unexported fields }
func (*Image) Descriptor
deprecated
func (*Image) GetThumbnailUrl ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type PageInput ¶ added in v0.3.8
type PageInput struct { // If the limit <= 0, then the server will set the default value. Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` // If the page_token is not specified, the server will return the first page. PageToken *PageToken `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // If the sort_order is not specified, the server will choose the default value. SortOrder []*SortField `protobuf:"bytes,3,rep,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"` // contains filtered or unexported fields }
func (*PageInput) Descriptor
deprecated
added in
v0.3.8
func (*PageInput) GetPageToken ¶ added in v0.3.8
func (*PageInput) GetSortOrder ¶ added in v0.3.8
func (*PageInput) ProtoMessage ¶ added in v0.3.8
func (*PageInput) ProtoMessage()
func (*PageInput) ProtoReflect ¶ added in v0.3.8
func (x *PageInput) ProtoReflect() protoreflect.Message
type PageToken ¶ added in v0.3.8
type PageToken struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*PageToken) Descriptor
deprecated
added in
v0.3.8
func (*PageToken) ProtoMessage ¶ added in v0.3.8
func (*PageToken) ProtoMessage()
func (*PageToken) ProtoReflect ¶ added in v0.3.8
func (x *PageToken) ProtoReflect() protoreflect.Message
type SortDirection ¶ added in v0.3.8
type SortDirection int32
buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
const ( SortDirection_SORT_DIRECTION_ASC SortDirection = 0 SortDirection_SORT_DIRECTION_DESC SortDirection = 1 )
func (SortDirection) Descriptor ¶ added in v0.3.8
func (SortDirection) Descriptor() protoreflect.EnumDescriptor
func (SortDirection) Enum ¶ added in v0.3.8
func (x SortDirection) Enum() *SortDirection
func (SortDirection) EnumDescriptor
deprecated
added in
v0.3.8
func (SortDirection) EnumDescriptor() ([]byte, []int)
Deprecated: Use SortDirection.Descriptor instead.
func (SortDirection) Number ¶ added in v0.3.8
func (x SortDirection) Number() protoreflect.EnumNumber
func (SortDirection) String ¶ added in v0.3.8
func (x SortDirection) String() string
func (SortDirection) Type ¶ added in v0.3.8
func (SortDirection) Type() protoreflect.EnumType
type SortField ¶ added in v0.3.8
type SortField struct { Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` Direction SortDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=basket.protobuf.SortDirection" json:"direction,omitempty"` // contains filtered or unexported fields }
func (*SortField) Descriptor
deprecated
added in
v0.3.8
func (*SortField) GetDirection ¶ added in v0.3.8
func (x *SortField) GetDirection() SortDirection
func (*SortField) ProtoMessage ¶ added in v0.3.8
func (*SortField) ProtoMessage()
func (*SortField) ProtoReflect ¶ added in v0.3.8
func (x *SortField) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.