protobuf

package
v0.3.28 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetId

func (x *Image) GetId() string

func (*Image) GetThumbnailUrl

func (x *Image) GetThumbnailUrl() string

func (*Image) GetUrl

func (x *Image) GetUrl() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PageInput.ProtoReflect.Descriptor instead.

func (*PageInput) GetLimit added in v0.3.8

func (x *PageInput) GetLimit() int64

func (*PageInput) GetPageToken added in v0.3.8

func (x *PageInput) GetPageToken() *PageToken

func (*PageInput) GetSortOrder added in v0.3.8

func (x *PageInput) GetSortOrder() []*SortField

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

func (*PageInput) Reset added in v0.3.8

func (x *PageInput) Reset()

func (*PageInput) String added in v0.3.8

func (x *PageInput) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PageToken.ProtoReflect.Descriptor instead.

func (*PageToken) GetToken added in v0.3.8

func (x *PageToken) GetToken() string

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

func (*PageToken) Reset added in v0.3.8

func (x *PageToken) Reset()

func (*PageToken) String added in v0.3.8

func (x *PageToken) String() string

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) 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 (SortDirection) String added in v0.3.8

func (x SortDirection) String() string

func (SortDirection) Type added in v0.3.8

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) Descriptor() ([]byte, []int)

Deprecated: Use SortField.ProtoReflect.Descriptor instead.

func (*SortField) GetDirection added in v0.3.8

func (x *SortField) GetDirection() SortDirection

func (*SortField) GetField added in v0.3.8

func (x *SortField) GetField() string

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

func (*SortField) Reset added in v0.3.8

func (x *SortField) Reset()

func (*SortField) String added in v0.3.8

func (x *SortField) String() string

Jump to

Keyboard shortcuts

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