proto

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResultStatus_name = map[int32]string{
		0: "Error",
		1: "OK",
		2: "Warning",
		3: "NotFound",
	}
	ResultStatus_value = map[string]int32{
		"Error":    0,
		"OK":       1,
		"Warning":  2,
		"NotFound": 3,
	}
)

Enum value maps for ResultStatus.

View Source
var File_defaultResponse_proto protoreflect.FileDescriptor
View Source
var File_page_proto protoreflect.FileDescriptor
View Source
var File_sort_proto protoreflect.FileDescriptor
View Source
var File_stringlist_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DefaultResponse

type DefaultResponse struct {
	Status  ResultStatus `protobuf:"varint,1,opt,name=status,proto3,enum=genericproto.ResultStatus" json:"status,omitempty"`
	Message string       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *anypb.Any   `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DefaultResponse) Descriptor deprecated

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

Deprecated: Use DefaultResponse.ProtoReflect.Descriptor instead.

func (*DefaultResponse) GetData

func (x *DefaultResponse) GetData() *anypb.Any

func (*DefaultResponse) GetMessage

func (x *DefaultResponse) GetMessage() string

func (*DefaultResponse) GetStatus

func (x *DefaultResponse) GetStatus() ResultStatus

func (*DefaultResponse) ProtoMessage

func (*DefaultResponse) ProtoMessage()

func (*DefaultResponse) ProtoReflect

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

func (*DefaultResponse) Reset

func (x *DefaultResponse) Reset()

func (*DefaultResponse) String

func (x *DefaultResponse) String() string

type Page

type Page struct {
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	PageNo   int64 `protobuf:"varint,3,opt,name=pageNo,proto3" json:"pageNo,omitempty"`
	// contains filtered or unexported fields
}

func (*Page) Descriptor deprecated

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

Deprecated: Use Page.ProtoReflect.Descriptor instead.

func (*Page) GetPageNo

func (x *Page) GetPageNo() int64

func (*Page) GetPageSize

func (x *Page) GetPageSize() int64

func (*Page) ProtoMessage

func (*Page) ProtoMessage()

func (*Page) ProtoReflect

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

func (*Page) Reset

func (x *Page) Reset()

func (*Page) String

func (x *Page) String() string

type PageRequest

type PageRequest struct {

	// Types that are assignable to PageRequest:
	//
	//	*PageRequest_Page
	//	*PageRequest_PageToken
	PageRequest isPageRequest_PageRequest `protobuf_oneof:"pageRequest"`
	// contains filtered or unexported fields
}

func (*PageRequest) Descriptor deprecated

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

Deprecated: Use PageRequest.ProtoReflect.Descriptor instead.

func (*PageRequest) GetPage

func (x *PageRequest) GetPage() *Page

func (*PageRequest) GetPageRequest

func (m *PageRequest) GetPageRequest() isPageRequest_PageRequest

func (*PageRequest) GetPageToken

func (x *PageRequest) GetPageToken() string

func (*PageRequest) ProtoMessage

func (*PageRequest) ProtoMessage()

func (*PageRequest) ProtoReflect

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

func (*PageRequest) Reset

func (x *PageRequest) Reset()

func (*PageRequest) String

func (x *PageRequest) String() string

type PageRequest_Page

type PageRequest_Page struct {
	Page *Page `protobuf:"bytes,1,opt,name=page,proto3,oneof"`
}

type PageRequest_PageToken

type PageRequest_PageToken struct {
	PageToken string `protobuf:"bytes,2,opt,name=PageToken,proto3,oneof"`
}

type PageResponse

type PageResponse struct {

	// Types that are assignable to PageResponse:
	//
	//	*PageResponse_PageResult
	//	*PageResponse_PageToken
	PageResponse isPageResponse_PageResponse `protobuf_oneof:"pageResponse"`
	// contains filtered or unexported fields
}

func (*PageResponse) Descriptor deprecated

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

Deprecated: Use PageResponse.ProtoReflect.Descriptor instead.

func (*PageResponse) GetPageResponse

func (m *PageResponse) GetPageResponse() isPageResponse_PageResponse

func (*PageResponse) GetPageResult

func (x *PageResponse) GetPageResult() *PageResult

func (*PageResponse) GetPageToken

func (x *PageResponse) GetPageToken() string

func (*PageResponse) ProtoMessage

func (*PageResponse) ProtoMessage()

func (*PageResponse) ProtoReflect

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

func (*PageResponse) Reset

func (x *PageResponse) Reset()

func (*PageResponse) String

func (x *PageResponse) String() string

type PageResponse_PageResult

type PageResponse_PageResult struct {
	PageResult *PageResult `protobuf:"bytes,1,opt,name=pageResult,proto3,oneof"`
}

type PageResponse_PageToken

type PageResponse_PageToken struct {
	PageToken string `protobuf:"bytes,2,opt,name=PageToken,proto3,oneof"`
}

type PageResult

type PageResult struct {
	PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	PageNo   int64 `protobuf:"varint,2,opt,name=pageNo,proto3" json:"pageNo,omitempty"`
	Total    int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*PageResult) Descriptor deprecated

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

Deprecated: Use PageResult.ProtoReflect.Descriptor instead.

func (*PageResult) GetPageNo

func (x *PageResult) GetPageNo() int64

func (*PageResult) GetPageSize

func (x *PageResult) GetPageSize() int64

func (*PageResult) GetTotal

func (x *PageResult) GetTotal() int64

func (*PageResult) ProtoMessage

func (*PageResult) ProtoMessage()

func (*PageResult) ProtoReflect

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

func (*PageResult) Reset

func (x *PageResult) Reset()

func (*PageResult) String

func (x *PageResult) String() string

type ResultStatus

type ResultStatus int32
const (
	ResultStatus_Error    ResultStatus = 0
	ResultStatus_OK       ResultStatus = 1
	ResultStatus_Warning  ResultStatus = 2
	ResultStatus_NotFound ResultStatus = 3
)

func (ResultStatus) Descriptor

func (ResultStatus) Enum

func (x ResultStatus) Enum() *ResultStatus

func (ResultStatus) EnumDescriptor deprecated

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

Deprecated: Use ResultStatus.Descriptor instead.

func (ResultStatus) Number

func (ResultStatus) String

func (x ResultStatus) String() string

func (ResultStatus) Type

type Sort

type Sort struct {
	Sort []*SortField `protobuf:"bytes,1,rep,name=sort,proto3" json:"sort,omitempty"`
	// contains filtered or unexported fields
}

func (*Sort) Descriptor deprecated

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

Deprecated: Use Sort.ProtoReflect.Descriptor instead.

func (*Sort) GetSort

func (x *Sort) GetSort() []*SortField

func (*Sort) ProtoMessage

func (*Sort) ProtoMessage()

func (*Sort) ProtoReflect

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

func (*Sort) Reset

func (x *Sort) Reset()

func (*Sort) String

func (x *Sort) String() string

type SortField

type SortField struct {
	Field     string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	Ascending bool   `protobuf:"varint,2,opt,name=ascending,proto3" json:"ascending,omitempty"`
	// contains filtered or unexported fields
}

func (*SortField) Descriptor deprecated

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

Deprecated: Use SortField.ProtoReflect.Descriptor instead.

func (*SortField) GetAscending

func (x *SortField) GetAscending() bool

func (*SortField) GetField

func (x *SortField) GetField() string

func (*SortField) ProtoMessage

func (*SortField) ProtoMessage()

func (*SortField) ProtoReflect

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

func (*SortField) Reset

func (x *SortField) Reset()

func (*SortField) String

func (x *SortField) String() string

type StringList

type StringList struct {
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*StringList) Descriptor deprecated

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

Deprecated: Use StringList.ProtoReflect.Descriptor instead.

func (*StringList) GetValues

func (x *StringList) GetValues() []string

func (*StringList) ProtoMessage

func (*StringList) ProtoMessage()

func (*StringList) ProtoReflect

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

func (*StringList) Reset

func (x *StringList) Reset()

func (*StringList) String

func (x *StringList) String() string

Jump to

Keyboard shortcuts

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