4786 lines
143 KiB
Go
4786 lines
143 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v6.32.0
|
|
// source: cloudprint.proto
|
|
|
|
package generated
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
_ "google.golang.org/protobuf/types/known/emptypb"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Empty struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Empty) Reset() {
|
|
*x = Empty{}
|
|
mi := &file_cloudprint_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Empty) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Empty) ProtoMessage() {}
|
|
|
|
func (x *Empty) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
|
func (*Empty) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type StatusResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StatusResponse) Reset() {
|
|
*x = StatusResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StatusResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatusResponse) ProtoMessage() {}
|
|
|
|
func (x *StatusResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
|
|
func (*StatusResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *StatusResponse) GetCode() int32 {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StatusResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type User struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Openid string `protobuf:"bytes,2,opt,name=openid,proto3" json:"openid,omitempty"`
|
|
Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
|
|
Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
|
Balance float64 `protobuf:"fixed64,5,opt,name=balance,proto3" json:"balance,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *User) Reset() {
|
|
*x = User{}
|
|
mi := &file_cloudprint_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *User) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*User) ProtoMessage() {}
|
|
|
|
func (x *User) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use User.ProtoReflect.Descriptor instead.
|
|
func (*User) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *User) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *User) GetOpenid() string {
|
|
if x != nil {
|
|
return x.Openid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetNickname() string {
|
|
if x != nil {
|
|
return x.Nickname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetAvatar() string {
|
|
if x != nil {
|
|
return x.Avatar
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetBalance() float64 {
|
|
if x != nil {
|
|
return x.Balance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *User) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type LoginRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // 微信授权码
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginRequest) Reset() {
|
|
*x = LoginRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginRequest) ProtoMessage() {}
|
|
|
|
func (x *LoginRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
|
|
func (*LoginRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *LoginRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
|
User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginResponse) Reset() {
|
|
*x = LoginResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginResponse) ProtoMessage() {}
|
|
|
|
func (x *LoginResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
|
|
func (*LoginResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *LoginResponse) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginResponse) GetRefreshToken() string {
|
|
if x != nil {
|
|
return x.RefreshToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RefreshRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RefreshRequest) Reset() {
|
|
*x = RefreshRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RefreshRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RefreshRequest) ProtoMessage() {}
|
|
|
|
func (x *RefreshRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RefreshRequest.ProtoReflect.Descriptor instead.
|
|
func (*RefreshRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *RefreshRequest) GetRefreshToken() string {
|
|
if x != nil {
|
|
return x.RefreshToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RefreshResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RefreshResponse) Reset() {
|
|
*x = RefreshResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RefreshResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RefreshResponse) ProtoMessage() {}
|
|
|
|
func (x *RefreshResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RefreshResponse.ProtoReflect.Descriptor instead.
|
|
func (*RefreshResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *RefreshResponse) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetUserInfoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserInfoRequest) Reset() {
|
|
*x = GetUserInfoRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserInfoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserInfoRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUserInfoRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
type UpdateUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"`
|
|
Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateUserRequest) Reset() {
|
|
*x = UpdateUserRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateUserRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *UpdateUserRequest) GetNickname() string {
|
|
if x != nil {
|
|
return x.Nickname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserRequest) GetAvatar() string {
|
|
if x != nil {
|
|
return x.Avatar
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type FileInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
|
|
FilePath string `protobuf:"bytes,3,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
|
|
FileType string `protobuf:"bytes,4,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
|
|
FileSize int64 `protobuf:"varint,5,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"`
|
|
UploaderType string `protobuf:"bytes,6,opt,name=uploader_type,json=uploaderType,proto3" json:"uploader_type,omitempty"`
|
|
UploaderId int32 `protobuf:"varint,7,opt,name=uploader_id,json=uploaderId,proto3" json:"uploader_id,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FileInfo) Reset() {
|
|
*x = FileInfo{}
|
|
mi := &file_cloudprint_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FileInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FileInfo) ProtoMessage() {}
|
|
|
|
func (x *FileInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.
|
|
func (*FileInfo) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *FileInfo) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FileInfo) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetFilePath() string {
|
|
if x != nil {
|
|
return x.FilePath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetFileType() string {
|
|
if x != nil {
|
|
return x.FileType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetFileSize() int64 {
|
|
if x != nil {
|
|
return x.FileSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FileInfo) GetUploaderType() string {
|
|
if x != nil {
|
|
return x.UploaderType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileInfo) GetUploaderId() int32 {
|
|
if x != nil {
|
|
return x.UploaderId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FileInfo) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UploadRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
|
|
FileType string `protobuf:"bytes,2,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
|
|
FileSize int64 `protobuf:"varint,3,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"`
|
|
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
|
IsLastChunk bool `protobuf:"varint,5,opt,name=is_last_chunk,json=isLastChunk,proto3" json:"is_last_chunk,omitempty"`
|
|
ChunkId string `protobuf:"bytes,6,opt,name=chunk_id,json=chunkId,proto3" json:"chunk_id,omitempty"`
|
|
ChunkIndex int32 `protobuf:"varint,7,opt,name=chunk_index,json=chunkIndex,proto3" json:"chunk_index,omitempty"`
|
|
TotalChunks int32 `protobuf:"varint,8,opt,name=total_chunks,json=totalChunks,proto3" json:"total_chunks,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadRequest) Reset() {
|
|
*x = UploadRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadRequest) ProtoMessage() {}
|
|
|
|
func (x *UploadRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UploadRequest.ProtoReflect.Descriptor instead.
|
|
func (*UploadRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *UploadRequest) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadRequest) GetFileType() string {
|
|
if x != nil {
|
|
return x.FileType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadRequest) GetFileSize() int64 {
|
|
if x != nil {
|
|
return x.FileSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadRequest) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UploadRequest) GetIsLastChunk() bool {
|
|
if x != nil {
|
|
return x.IsLastChunk
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UploadRequest) GetChunkId() string {
|
|
if x != nil {
|
|
return x.ChunkId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadRequest) GetChunkIndex() int32 {
|
|
if x != nil {
|
|
return x.ChunkIndex
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadRequest) GetTotalChunks() int32 {
|
|
if x != nil {
|
|
return x.TotalChunks
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UploadResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId int32 `protobuf:"varint,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
FilePath string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
|
|
FileUrl string `protobuf:"bytes,3,opt,name=file_url,json=fileUrl,proto3" json:"file_url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadResponse) Reset() {
|
|
*x = UploadResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadResponse) ProtoMessage() {}
|
|
|
|
func (x *UploadResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UploadResponse.ProtoReflect.Descriptor instead.
|
|
func (*UploadResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *UploadResponse) GetFileId() int32 {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadResponse) GetFilePath() string {
|
|
if x != nil {
|
|
return x.FilePath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadResponse) GetFileUrl() string {
|
|
if x != nil {
|
|
return x.FileUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId int32 `protobuf:"varint,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFileRequest) Reset() {
|
|
*x = GetFileRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFileRequest) ProtoMessage() {}
|
|
|
|
func (x *GetFileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *GetFileRequest) GetFileId() int32 {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FileData struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
IsLast bool `protobuf:"varint,2,opt,name=is_last,json=isLast,proto3" json:"is_last,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FileData) Reset() {
|
|
*x = FileData{}
|
|
mi := &file_cloudprint_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FileData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FileData) ProtoMessage() {}
|
|
|
|
func (x *FileData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FileData.ProtoReflect.Descriptor instead.
|
|
func (*FileData) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *FileData) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FileData) GetIsLast() bool {
|
|
if x != nil {
|
|
return x.IsLast
|
|
}
|
|
return false
|
|
}
|
|
|
|
type DeleteFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId int32 `protobuf:"varint,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteFileRequest) Reset() {
|
|
*x = DeleteFileRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteFileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteFileRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *DeleteFileRequest) GetFileId() int32 {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type WatermarkRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId int32 `protobuf:"varint,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
|
|
Opacity float32 `protobuf:"fixed32,3,opt,name=opacity,proto3" json:"opacity,omitempty"`
|
|
Position int32 `protobuf:"varint,4,opt,name=position,proto3" json:"position,omitempty"` // 1: 左上 2: 右上 3: 左下 4: 右下 5: 居中
|
|
FontSize int32 `protobuf:"varint,5,opt,name=font_size,json=fontSize,proto3" json:"font_size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WatermarkRequest) Reset() {
|
|
*x = WatermarkRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WatermarkRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WatermarkRequest) ProtoMessage() {}
|
|
|
|
func (x *WatermarkRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use WatermarkRequest.ProtoReflect.Descriptor instead.
|
|
func (*WatermarkRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *WatermarkRequest) GetFileId() int32 {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *WatermarkRequest) GetText() string {
|
|
if x != nil {
|
|
return x.Text
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WatermarkRequest) GetOpacity() float32 {
|
|
if x != nil {
|
|
return x.Opacity
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *WatermarkRequest) GetPosition() int32 {
|
|
if x != nil {
|
|
return x.Position
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *WatermarkRequest) GetFontSize() int32 {
|
|
if x != nil {
|
|
return x.FontSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type WatermarkResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId int32 `protobuf:"varint,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
FilePath string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WatermarkResponse) Reset() {
|
|
*x = WatermarkResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WatermarkResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WatermarkResponse) ProtoMessage() {}
|
|
|
|
func (x *WatermarkResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use WatermarkResponse.ProtoReflect.Descriptor instead.
|
|
func (*WatermarkResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *WatermarkResponse) GetFileId() int32 {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *WatermarkResponse) GetFilePath() string {
|
|
if x != nil {
|
|
return x.FilePath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetFileListRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UploaderType string `protobuf:"bytes,1,opt,name=uploader_type,json=uploaderType,proto3" json:"uploader_type,omitempty"`
|
|
UploaderId int32 `protobuf:"varint,2,opt,name=uploader_id,json=uploaderId,proto3" json:"uploader_id,omitempty"`
|
|
Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
|
|
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFileListRequest) Reset() {
|
|
*x = GetFileListRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFileListRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFileListRequest) ProtoMessage() {}
|
|
|
|
func (x *GetFileListRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetFileListRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetFileListRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *GetFileListRequest) GetUploaderType() string {
|
|
if x != nil {
|
|
return x.UploaderType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetFileListRequest) GetUploaderId() int32 {
|
|
if x != nil {
|
|
return x.UploaderId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetFileListRequest) GetPage() int32 {
|
|
if x != nil {
|
|
return x.Page
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetFileListRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FileListResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Files []*FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
|
|
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FileListResponse) Reset() {
|
|
*x = FileListResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FileListResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FileListResponse) ProtoMessage() {}
|
|
|
|
func (x *FileListResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FileListResponse.ProtoReflect.Descriptor instead.
|
|
func (*FileListResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *FileListResponse) GetFiles() []*FileInfo {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FileListResponse) GetTotal() int32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Order struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
OrderNo string `protobuf:"bytes,2,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
|
|
UserId int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
|
|
TotalAmount float64 `protobuf:"fixed64,5,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
|
|
Remark string `protobuf:"bytes,6,opt,name=remark,proto3" json:"remark,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
PaidAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=paid_at,json=paidAt,proto3" json:"paid_at,omitempty"`
|
|
Items []*OrderItem `protobuf:"bytes,9,rep,name=items,proto3" json:"items,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Order) Reset() {
|
|
*x = Order{}
|
|
mi := &file_cloudprint_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Order) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Order) ProtoMessage() {}
|
|
|
|
func (x *Order) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Order.ProtoReflect.Descriptor instead.
|
|
func (*Order) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *Order) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Order) GetOrderNo() string {
|
|
if x != nil {
|
|
return x.OrderNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Order) GetUserId() int32 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Order) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Order) GetTotalAmount() float64 {
|
|
if x != nil {
|
|
return x.TotalAmount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Order) GetRemark() string {
|
|
if x != nil {
|
|
return x.Remark
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Order) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Order) GetPaidAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.PaidAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Order) GetItems() []*OrderItem {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OrderItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
OrderId int32 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
|
|
FileId int32 `protobuf:"varint,3,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
File *FileInfo `protobuf:"bytes,4,opt,name=file,proto3" json:"file,omitempty"`
|
|
PrinterId int32 `protobuf:"varint,5,opt,name=printer_id,json=printerId,proto3" json:"printer_id,omitempty"`
|
|
Copies int32 `protobuf:"varint,6,opt,name=copies,proto3" json:"copies,omitempty"`
|
|
Color bool `protobuf:"varint,7,opt,name=color,proto3" json:"color,omitempty"`
|
|
Duplex bool `protobuf:"varint,8,opt,name=duplex,proto3" json:"duplex,omitempty"`
|
|
PageRange string `protobuf:"bytes,9,opt,name=page_range,json=pageRange,proto3" json:"page_range,omitempty"`
|
|
Price float64 `protobuf:"fixed64,10,opt,name=price,proto3" json:"price,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OrderItem) Reset() {
|
|
*x = OrderItem{}
|
|
mi := &file_cloudprint_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OrderItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrderItem) ProtoMessage() {}
|
|
|
|
func (x *OrderItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OrderItem.ProtoReflect.Descriptor instead.
|
|
func (*OrderItem) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *OrderItem) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrderItem) GetOrderId() int32 {
|
|
if x != nil {
|
|
return x.OrderId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrderItem) GetFileId() int32 {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrderItem) GetFile() *FileInfo {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OrderItem) GetPrinterId() int32 {
|
|
if x != nil {
|
|
return x.PrinterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrderItem) GetCopies() int32 {
|
|
if x != nil {
|
|
return x.Copies
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrderItem) GetColor() bool {
|
|
if x != nil {
|
|
return x.Color
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *OrderItem) GetDuplex() bool {
|
|
if x != nil {
|
|
return x.Duplex
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *OrderItem) GetPageRange() string {
|
|
if x != nil {
|
|
return x.PageRange
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OrderItem) GetPrice() float64 {
|
|
if x != nil {
|
|
return x.Price
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateOrderRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Items []*CreateOrderItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
|
Remark string `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateOrderRequest) Reset() {
|
|
*x = CreateOrderRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateOrderRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateOrderRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateOrderRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *CreateOrderRequest) GetItems() []*CreateOrderItem {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateOrderRequest) GetRemark() string {
|
|
if x != nil {
|
|
return x.Remark
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateOrderItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId int32 `protobuf:"varint,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
PrinterId int32 `protobuf:"varint,2,opt,name=printer_id,json=printerId,proto3" json:"printer_id,omitempty"`
|
|
Copies int32 `protobuf:"varint,3,opt,name=copies,proto3" json:"copies,omitempty"`
|
|
Color bool `protobuf:"varint,4,opt,name=color,proto3" json:"color,omitempty"`
|
|
Duplex bool `protobuf:"varint,5,opt,name=duplex,proto3" json:"duplex,omitempty"`
|
|
PageRange string `protobuf:"bytes,6,opt,name=page_range,json=pageRange,proto3" json:"page_range,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateOrderItem) Reset() {
|
|
*x = CreateOrderItem{}
|
|
mi := &file_cloudprint_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateOrderItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateOrderItem) ProtoMessage() {}
|
|
|
|
func (x *CreateOrderItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[22]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateOrderItem.ProtoReflect.Descriptor instead.
|
|
func (*CreateOrderItem) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *CreateOrderItem) GetFileId() int32 {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateOrderItem) GetPrinterId() int32 {
|
|
if x != nil {
|
|
return x.PrinterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateOrderItem) GetCopies() int32 {
|
|
if x != nil {
|
|
return x.Copies
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateOrderItem) GetColor() bool {
|
|
if x != nil {
|
|
return x.Color
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CreateOrderItem) GetDuplex() bool {
|
|
if x != nil {
|
|
return x.Duplex
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CreateOrderItem) GetPageRange() string {
|
|
if x != nil {
|
|
return x.PageRange
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateOrderResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
|
|
TotalAmount float64 `protobuf:"fixed64,2,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateOrderResponse) Reset() {
|
|
*x = CreateOrderResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateOrderResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateOrderResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateOrderResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[23]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateOrderResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateOrderResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *CreateOrderResponse) GetOrderNo() string {
|
|
if x != nil {
|
|
return x.OrderNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOrderResponse) GetTotalAmount() float64 {
|
|
if x != nil {
|
|
return x.TotalAmount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetOrderRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetOrderRequest) Reset() {
|
|
*x = GetOrderRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetOrderRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetOrderRequest) ProtoMessage() {}
|
|
|
|
func (x *GetOrderRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[24]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetOrderRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetOrderRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *GetOrderRequest) GetOrderNo() string {
|
|
if x != nil {
|
|
return x.OrderNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetOrderListRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
|
|
Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
|
|
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetOrderListRequest) Reset() {
|
|
*x = GetOrderListRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetOrderListRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetOrderListRequest) ProtoMessage() {}
|
|
|
|
func (x *GetOrderListRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[25]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetOrderListRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetOrderListRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *GetOrderListRequest) GetUserId() int32 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetOrderListRequest) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetOrderListRequest) GetPage() int32 {
|
|
if x != nil {
|
|
return x.Page
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetOrderListRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type OrderListResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
|
|
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OrderListResponse) Reset() {
|
|
*x = OrderListResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OrderListResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrderListResponse) ProtoMessage() {}
|
|
|
|
func (x *OrderListResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[26]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OrderListResponse.ProtoReflect.Descriptor instead.
|
|
func (*OrderListResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{26}
|
|
}
|
|
|
|
func (x *OrderListResponse) GetOrders() []*Order {
|
|
if x != nil {
|
|
return x.Orders
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OrderListResponse) GetTotal() int32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateOrderStatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
|
|
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateOrderStatusRequest) Reset() {
|
|
*x = UpdateOrderStatusRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateOrderStatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateOrderStatusRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateOrderStatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[27]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateOrderStatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateOrderStatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{27}
|
|
}
|
|
|
|
func (x *UpdateOrderStatusRequest) GetOrderNo() string {
|
|
if x != nil {
|
|
return x.OrderNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateOrderStatusRequest) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CancelOrderRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CancelOrderRequest) Reset() {
|
|
*x = CancelOrderRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CancelOrderRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CancelOrderRequest) ProtoMessage() {}
|
|
|
|
func (x *CancelOrderRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[28]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CancelOrderRequest.ProtoReflect.Descriptor instead.
|
|
func (*CancelOrderRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{28}
|
|
}
|
|
|
|
func (x *CancelOrderRequest) GetOrderNo() string {
|
|
if x != nil {
|
|
return x.OrderNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Printer struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
|
IsActive bool `protobuf:"varint,4,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
|
|
Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` // 0: 空闲 1: 打印中 2: 离线
|
|
LastHeartbeat *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_heartbeat,json=lastHeartbeat,proto3" json:"last_heartbeat,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Printer) Reset() {
|
|
*x = Printer{}
|
|
mi := &file_cloudprint_proto_msgTypes[29]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Printer) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Printer) ProtoMessage() {}
|
|
|
|
func (x *Printer) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[29]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Printer.ProtoReflect.Descriptor instead.
|
|
func (*Printer) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{29}
|
|
}
|
|
|
|
func (x *Printer) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Printer) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Printer) GetDisplayName() string {
|
|
if x != nil {
|
|
return x.DisplayName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Printer) GetIsActive() bool {
|
|
if x != nil {
|
|
return x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Printer) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Printer) GetLastHeartbeat() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.LastHeartbeat
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetPrintersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPrintersRequest) Reset() {
|
|
*x = GetPrintersRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[30]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPrintersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPrintersRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPrintersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[30]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPrintersRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPrintersRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{30}
|
|
}
|
|
|
|
type PrinterListResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Printers []*Printer `protobuf:"bytes,1,rep,name=printers,proto3" json:"printers,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PrinterListResponse) Reset() {
|
|
*x = PrinterListResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[31]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PrinterListResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PrinterListResponse) ProtoMessage() {}
|
|
|
|
func (x *PrinterListResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[31]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PrinterListResponse.ProtoReflect.Descriptor instead.
|
|
func (*PrinterListResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{31}
|
|
}
|
|
|
|
func (x *PrinterListResponse) GetPrinters() []*Printer {
|
|
if x != nil {
|
|
return x.Printers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetPrinterStatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PrinterId int32 `protobuf:"varint,1,opt,name=printer_id,json=printerId,proto3" json:"printer_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPrinterStatusRequest) Reset() {
|
|
*x = GetPrinterStatusRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[32]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPrinterStatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPrinterStatusRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPrinterStatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[32]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPrinterStatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPrinterStatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{32}
|
|
}
|
|
|
|
func (x *GetPrinterStatusRequest) GetPrinterId() int32 {
|
|
if x != nil {
|
|
return x.PrinterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PrinterStatusResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Printer *Printer `protobuf:"bytes,1,opt,name=printer,proto3" json:"printer,omitempty"`
|
|
QueueCount int32 `protobuf:"varint,2,opt,name=queue_count,json=queueCount,proto3" json:"queue_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PrinterStatusResponse) Reset() {
|
|
*x = PrinterStatusResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[33]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PrinterStatusResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PrinterStatusResponse) ProtoMessage() {}
|
|
|
|
func (x *PrinterStatusResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[33]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PrinterStatusResponse.ProtoReflect.Descriptor instead.
|
|
func (*PrinterStatusResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{33}
|
|
}
|
|
|
|
func (x *PrinterStatusResponse) GetPrinter() *Printer {
|
|
if x != nil {
|
|
return x.Printer
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PrinterStatusResponse) GetQueueCount() int32 {
|
|
if x != nil {
|
|
return x.QueueCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RegisterPrinterRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
|
ApiKey string `protobuf:"bytes,3,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterPrinterRequest) Reset() {
|
|
*x = RegisterPrinterRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[34]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterPrinterRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterPrinterRequest) ProtoMessage() {}
|
|
|
|
func (x *RegisterPrinterRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[34]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RegisterPrinterRequest.ProtoReflect.Descriptor instead.
|
|
func (*RegisterPrinterRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{34}
|
|
}
|
|
|
|
func (x *RegisterPrinterRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterPrinterRequest) GetDisplayName() string {
|
|
if x != nil {
|
|
return x.DisplayName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterPrinterRequest) GetApiKey() string {
|
|
if x != nil {
|
|
return x.ApiKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RegisterPrinterResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PrinterId int32 `protobuf:"varint,1,opt,name=printer_id,json=printerId,proto3" json:"printer_id,omitempty"`
|
|
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterPrinterResponse) Reset() {
|
|
*x = RegisterPrinterResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[35]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterPrinterResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterPrinterResponse) ProtoMessage() {}
|
|
|
|
func (x *RegisterPrinterResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[35]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RegisterPrinterResponse.ProtoReflect.Descriptor instead.
|
|
func (*RegisterPrinterResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{35}
|
|
}
|
|
|
|
func (x *RegisterPrinterResponse) GetPrinterId() int32 {
|
|
if x != nil {
|
|
return x.PrinterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RegisterPrinterResponse) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PrinterHeartbeatRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PrinterId int32 `protobuf:"varint,1,opt,name=printer_id,json=printerId,proto3" json:"printer_id,omitempty"`
|
|
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
|
|
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PrinterHeartbeatRequest) Reset() {
|
|
*x = PrinterHeartbeatRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[36]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PrinterHeartbeatRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PrinterHeartbeatRequest) ProtoMessage() {}
|
|
|
|
func (x *PrinterHeartbeatRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[36]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PrinterHeartbeatRequest.ProtoReflect.Descriptor instead.
|
|
func (*PrinterHeartbeatRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{36}
|
|
}
|
|
|
|
func (x *PrinterHeartbeatRequest) GetPrinterId() int32 {
|
|
if x != nil {
|
|
return x.PrinterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PrinterHeartbeatRequest) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PrinterHeartbeatRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PrintJob struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
JobNo string `protobuf:"bytes,2,opt,name=job_no,json=jobNo,proto3" json:"job_no,omitempty"`
|
|
PrinterId int32 `protobuf:"varint,3,opt,name=printer_id,json=printerId,proto3" json:"printer_id,omitempty"`
|
|
OrderItemId int32 `protobuf:"varint,4,opt,name=order_item_id,json=orderItemId,proto3" json:"order_item_id,omitempty"`
|
|
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` // pending/printing/completed/failed/cancelled
|
|
Progress int32 `protobuf:"varint,6,opt,name=progress,proto3" json:"progress,omitempty"`
|
|
ErrorMsg string `protobuf:"bytes,7,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
|
|
StartedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
|
|
CompletedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"`
|
|
OrderItem *OrderItem `protobuf:"bytes,10,opt,name=order_item,json=orderItem,proto3" json:"order_item,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PrintJob) Reset() {
|
|
*x = PrintJob{}
|
|
mi := &file_cloudprint_proto_msgTypes[37]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PrintJob) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PrintJob) ProtoMessage() {}
|
|
|
|
func (x *PrintJob) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[37]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PrintJob.ProtoReflect.Descriptor instead.
|
|
func (*PrintJob) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{37}
|
|
}
|
|
|
|
func (x *PrintJob) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PrintJob) GetJobNo() string {
|
|
if x != nil {
|
|
return x.JobNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PrintJob) GetPrinterId() int32 {
|
|
if x != nil {
|
|
return x.PrinterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PrintJob) GetOrderItemId() int32 {
|
|
if x != nil {
|
|
return x.OrderItemId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PrintJob) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PrintJob) GetProgress() int32 {
|
|
if x != nil {
|
|
return x.Progress
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PrintJob) GetErrorMsg() string {
|
|
if x != nil {
|
|
return x.ErrorMsg
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PrintJob) GetStartedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.StartedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PrintJob) GetCompletedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CompletedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PrintJob) GetOrderItem() *OrderItem {
|
|
if x != nil {
|
|
return x.OrderItem
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SubmitPrintJobRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderItemId int32 `protobuf:"varint,1,opt,name=order_item_id,json=orderItemId,proto3" json:"order_item_id,omitempty"`
|
|
PrinterId int32 `protobuf:"varint,2,opt,name=printer_id,json=printerId,proto3" json:"printer_id,omitempty"`
|
|
FilePath string `protobuf:"bytes,3,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
|
|
Copies int32 `protobuf:"varint,4,opt,name=copies,proto3" json:"copies,omitempty"`
|
|
Color bool `protobuf:"varint,5,opt,name=color,proto3" json:"color,omitempty"`
|
|
Duplex bool `protobuf:"varint,6,opt,name=duplex,proto3" json:"duplex,omitempty"`
|
|
PageRange string `protobuf:"bytes,7,opt,name=page_range,json=pageRange,proto3" json:"page_range,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SubmitPrintJobRequest) Reset() {
|
|
*x = SubmitPrintJobRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[38]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SubmitPrintJobRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SubmitPrintJobRequest) ProtoMessage() {}
|
|
|
|
func (x *SubmitPrintJobRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[38]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SubmitPrintJobRequest.ProtoReflect.Descriptor instead.
|
|
func (*SubmitPrintJobRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{38}
|
|
}
|
|
|
|
func (x *SubmitPrintJobRequest) GetOrderItemId() int32 {
|
|
if x != nil {
|
|
return x.OrderItemId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SubmitPrintJobRequest) GetPrinterId() int32 {
|
|
if x != nil {
|
|
return x.PrinterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SubmitPrintJobRequest) GetFilePath() string {
|
|
if x != nil {
|
|
return x.FilePath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SubmitPrintJobRequest) GetCopies() int32 {
|
|
if x != nil {
|
|
return x.Copies
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SubmitPrintJobRequest) GetColor() bool {
|
|
if x != nil {
|
|
return x.Color
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SubmitPrintJobRequest) GetDuplex() bool {
|
|
if x != nil {
|
|
return x.Duplex
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SubmitPrintJobRequest) GetPageRange() string {
|
|
if x != nil {
|
|
return x.PageRange
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SubmitPrintJobResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
JobNo string `protobuf:"bytes,1,opt,name=job_no,json=jobNo,proto3" json:"job_no,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SubmitPrintJobResponse) Reset() {
|
|
*x = SubmitPrintJobResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[39]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SubmitPrintJobResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SubmitPrintJobResponse) ProtoMessage() {}
|
|
|
|
func (x *SubmitPrintJobResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[39]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SubmitPrintJobResponse.ProtoReflect.Descriptor instead.
|
|
func (*SubmitPrintJobResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{39}
|
|
}
|
|
|
|
func (x *SubmitPrintJobResponse) GetJobNo() string {
|
|
if x != nil {
|
|
return x.JobNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CancelPrintJobRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
JobNo string `protobuf:"bytes,1,opt,name=job_no,json=jobNo,proto3" json:"job_no,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CancelPrintJobRequest) Reset() {
|
|
*x = CancelPrintJobRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[40]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CancelPrintJobRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CancelPrintJobRequest) ProtoMessage() {}
|
|
|
|
func (x *CancelPrintJobRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[40]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CancelPrintJobRequest.ProtoReflect.Descriptor instead.
|
|
func (*CancelPrintJobRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{40}
|
|
}
|
|
|
|
func (x *CancelPrintJobRequest) GetJobNo() string {
|
|
if x != nil {
|
|
return x.JobNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SubscribeJobsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PrinterId int32 `protobuf:"varint,1,opt,name=printer_id,json=printerId,proto3" json:"printer_id,omitempty"`
|
|
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SubscribeJobsRequest) Reset() {
|
|
*x = SubscribeJobsRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[41]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SubscribeJobsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SubscribeJobsRequest) ProtoMessage() {}
|
|
|
|
func (x *SubscribeJobsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[41]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SubscribeJobsRequest.ProtoReflect.Descriptor instead.
|
|
func (*SubscribeJobsRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{41}
|
|
}
|
|
|
|
func (x *SubscribeJobsRequest) GetPrinterId() int32 {
|
|
if x != nil {
|
|
return x.PrinterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SubscribeJobsRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ReportJobStatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
JobNo string `protobuf:"bytes,1,opt,name=job_no,json=jobNo,proto3" json:"job_no,omitempty"`
|
|
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
|
|
Progress int32 `protobuf:"varint,3,opt,name=progress,proto3" json:"progress,omitempty"`
|
|
ErrorMsg string `protobuf:"bytes,4,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReportJobStatusRequest) Reset() {
|
|
*x = ReportJobStatusRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[42]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReportJobStatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReportJobStatusRequest) ProtoMessage() {}
|
|
|
|
func (x *ReportJobStatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[42]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ReportJobStatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*ReportJobStatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{42}
|
|
}
|
|
|
|
func (x *ReportJobStatusRequest) GetJobNo() string {
|
|
if x != nil {
|
|
return x.JobNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ReportJobStatusRequest) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ReportJobStatusRequest) GetProgress() int32 {
|
|
if x != nil {
|
|
return x.Progress
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ReportJobStatusRequest) GetErrorMsg() string {
|
|
if x != nil {
|
|
return x.ErrorMsg
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LibraryCategory struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Icon string `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"`
|
|
SortOrder int32 `protobuf:"varint,4,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LibraryCategory) Reset() {
|
|
*x = LibraryCategory{}
|
|
mi := &file_cloudprint_proto_msgTypes[43]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LibraryCategory) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LibraryCategory) ProtoMessage() {}
|
|
|
|
func (x *LibraryCategory) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[43]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use LibraryCategory.ProtoReflect.Descriptor instead.
|
|
func (*LibraryCategory) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{43}
|
|
}
|
|
|
|
func (x *LibraryCategory) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *LibraryCategory) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LibraryCategory) GetIcon() string {
|
|
if x != nil {
|
|
return x.Icon
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LibraryCategory) GetSortOrder() int32 {
|
|
if x != nil {
|
|
return x.SortOrder
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type LibraryFile struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
CategoryId int32 `protobuf:"varint,2,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
|
|
FileId int32 `protobuf:"varint,3,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
|
|
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
|
|
PageCount int32 `protobuf:"varint,6,opt,name=page_count,json=pageCount,proto3" json:"page_count,omitempty"`
|
|
DownloadCount int32 `protobuf:"varint,7,opt,name=download_count,json=downloadCount,proto3" json:"download_count,omitempty"`
|
|
File *FileInfo `protobuf:"bytes,8,opt,name=file,proto3" json:"file,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LibraryFile) Reset() {
|
|
*x = LibraryFile{}
|
|
mi := &file_cloudprint_proto_msgTypes[44]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LibraryFile) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LibraryFile) ProtoMessage() {}
|
|
|
|
func (x *LibraryFile) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[44]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use LibraryFile.ProtoReflect.Descriptor instead.
|
|
func (*LibraryFile) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{44}
|
|
}
|
|
|
|
func (x *LibraryFile) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *LibraryFile) GetCategoryId() int32 {
|
|
if x != nil {
|
|
return x.CategoryId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *LibraryFile) GetFileId() int32 {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *LibraryFile) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LibraryFile) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LibraryFile) GetPageCount() int32 {
|
|
if x != nil {
|
|
return x.PageCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *LibraryFile) GetDownloadCount() int32 {
|
|
if x != nil {
|
|
return x.DownloadCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *LibraryFile) GetFile() *FileInfo {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *LibraryFile) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetCategoriesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetCategoriesRequest) Reset() {
|
|
*x = GetCategoriesRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[45]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetCategoriesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetCategoriesRequest) ProtoMessage() {}
|
|
|
|
func (x *GetCategoriesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[45]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetCategoriesRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetCategoriesRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{45}
|
|
}
|
|
|
|
type CategoryListResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Categories []*LibraryCategory `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CategoryListResponse) Reset() {
|
|
*x = CategoryListResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[46]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CategoryListResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CategoryListResponse) ProtoMessage() {}
|
|
|
|
func (x *CategoryListResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[46]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CategoryListResponse.ProtoReflect.Descriptor instead.
|
|
func (*CategoryListResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{46}
|
|
}
|
|
|
|
func (x *CategoryListResponse) GetCategories() []*LibraryCategory {
|
|
if x != nil {
|
|
return x.Categories
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetLibraryFilesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CategoryId int32 `protobuf:"varint,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
|
|
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
|
|
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetLibraryFilesRequest) Reset() {
|
|
*x = GetLibraryFilesRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[47]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetLibraryFilesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetLibraryFilesRequest) ProtoMessage() {}
|
|
|
|
func (x *GetLibraryFilesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[47]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetLibraryFilesRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetLibraryFilesRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{47}
|
|
}
|
|
|
|
func (x *GetLibraryFilesRequest) GetCategoryId() int32 {
|
|
if x != nil {
|
|
return x.CategoryId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetLibraryFilesRequest) GetPage() int32 {
|
|
if x != nil {
|
|
return x.Page
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetLibraryFilesRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type LibraryFileListResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Files []*LibraryFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
|
|
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LibraryFileListResponse) Reset() {
|
|
*x = LibraryFileListResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[48]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LibraryFileListResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LibraryFileListResponse) ProtoMessage() {}
|
|
|
|
func (x *LibraryFileListResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[48]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use LibraryFileListResponse.ProtoReflect.Descriptor instead.
|
|
func (*LibraryFileListResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{48}
|
|
}
|
|
|
|
func (x *LibraryFileListResponse) GetFiles() []*LibraryFile {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *LibraryFileListResponse) GetTotal() int32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UploadLibraryFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CategoryId int32 `protobuf:"varint,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
|
|
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
|
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
|
FileName string `protobuf:"bytes,5,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
|
|
FileType string `protobuf:"bytes,6,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadLibraryFileRequest) Reset() {
|
|
*x = UploadLibraryFileRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[49]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadLibraryFileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadLibraryFileRequest) ProtoMessage() {}
|
|
|
|
func (x *UploadLibraryFileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[49]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UploadLibraryFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*UploadLibraryFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{49}
|
|
}
|
|
|
|
func (x *UploadLibraryFileRequest) GetCategoryId() int32 {
|
|
if x != nil {
|
|
return x.CategoryId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadLibraryFileRequest) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadLibraryFileRequest) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadLibraryFileRequest) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UploadLibraryFileRequest) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadLibraryFileRequest) GetFileType() string {
|
|
if x != nil {
|
|
return x.FileType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UploadLibraryFileResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
LibraryFileId int32 `protobuf:"varint,1,opt,name=library_file_id,json=libraryFileId,proto3" json:"library_file_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadLibraryFileResponse) Reset() {
|
|
*x = UploadLibraryFileResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[50]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadLibraryFileResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadLibraryFileResponse) ProtoMessage() {}
|
|
|
|
func (x *UploadLibraryFileResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[50]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UploadLibraryFileResponse.ProtoReflect.Descriptor instead.
|
|
func (*UploadLibraryFileResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{50}
|
|
}
|
|
|
|
func (x *UploadLibraryFileResponse) GetLibraryFileId() int32 {
|
|
if x != nil {
|
|
return x.LibraryFileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteLibraryFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
LibraryFileId int32 `protobuf:"varint,1,opt,name=library_file_id,json=libraryFileId,proto3" json:"library_file_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteLibraryFileRequest) Reset() {
|
|
*x = DeleteLibraryFileRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[51]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteLibraryFileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteLibraryFileRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteLibraryFileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[51]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteLibraryFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteLibraryFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{51}
|
|
}
|
|
|
|
func (x *DeleteLibraryFileRequest) GetLibraryFileId() int32 {
|
|
if x != nil {
|
|
return x.LibraryFileId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PriceItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
|
Price float64 `protobuf:"fixed64,4,opt,name=price,proto3" json:"price,omitempty"`
|
|
Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"`
|
|
ColorEnabled bool `protobuf:"varint,6,opt,name=color_enabled,json=colorEnabled,proto3" json:"color_enabled,omitempty"`
|
|
IsActive bool `protobuf:"varint,7,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PriceItem) Reset() {
|
|
*x = PriceItem{}
|
|
mi := &file_cloudprint_proto_msgTypes[52]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PriceItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PriceItem) ProtoMessage() {}
|
|
|
|
func (x *PriceItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[52]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PriceItem.ProtoReflect.Descriptor instead.
|
|
func (*PriceItem) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{52}
|
|
}
|
|
|
|
func (x *PriceItem) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PriceItem) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PriceItem) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PriceItem) GetPrice() float64 {
|
|
if x != nil {
|
|
return x.Price
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PriceItem) GetUnit() string {
|
|
if x != nil {
|
|
return x.Unit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PriceItem) GetColorEnabled() bool {
|
|
if x != nil {
|
|
return x.ColorEnabled
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *PriceItem) GetIsActive() bool {
|
|
if x != nil {
|
|
return x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
type GetPriceListRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPriceListRequest) Reset() {
|
|
*x = GetPriceListRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[53]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPriceListRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPriceListRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPriceListRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[53]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPriceListRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPriceListRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{53}
|
|
}
|
|
|
|
type PriceListResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Items []*PriceItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PriceListResponse) Reset() {
|
|
*x = PriceListResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[54]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PriceListResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PriceListResponse) ProtoMessage() {}
|
|
|
|
func (x *PriceListResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[54]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PriceListResponse.ProtoReflect.Descriptor instead.
|
|
func (*PriceListResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{54}
|
|
}
|
|
|
|
func (x *PriceListResponse) GetItems() []*PriceItem {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreatePriceItemRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
Price float64 `protobuf:"fixed64,3,opt,name=price,proto3" json:"price,omitempty"`
|
|
Unit string `protobuf:"bytes,4,opt,name=unit,proto3" json:"unit,omitempty"`
|
|
ColorEnabled bool `protobuf:"varint,5,opt,name=color_enabled,json=colorEnabled,proto3" json:"color_enabled,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreatePriceItemRequest) Reset() {
|
|
*x = CreatePriceItemRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[55]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreatePriceItemRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreatePriceItemRequest) ProtoMessage() {}
|
|
|
|
func (x *CreatePriceItemRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[55]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreatePriceItemRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreatePriceItemRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{55}
|
|
}
|
|
|
|
func (x *CreatePriceItemRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreatePriceItemRequest) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreatePriceItemRequest) GetPrice() float64 {
|
|
if x != nil {
|
|
return x.Price
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreatePriceItemRequest) GetUnit() string {
|
|
if x != nil {
|
|
return x.Unit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreatePriceItemRequest) GetColorEnabled() bool {
|
|
if x != nil {
|
|
return x.ColorEnabled
|
|
}
|
|
return false
|
|
}
|
|
|
|
type UpdatePriceItemRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
|
Price float64 `protobuf:"fixed64,4,opt,name=price,proto3" json:"price,omitempty"`
|
|
Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"`
|
|
ColorEnabled bool `protobuf:"varint,6,opt,name=color_enabled,json=colorEnabled,proto3" json:"color_enabled,omitempty"`
|
|
IsActive bool `protobuf:"varint,7,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdatePriceItemRequest) Reset() {
|
|
*x = UpdatePriceItemRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[56]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdatePriceItemRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdatePriceItemRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdatePriceItemRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[56]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdatePriceItemRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdatePriceItemRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{56}
|
|
}
|
|
|
|
func (x *UpdatePriceItemRequest) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdatePriceItemRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdatePriceItemRequest) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdatePriceItemRequest) GetPrice() float64 {
|
|
if x != nil {
|
|
return x.Price
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdatePriceItemRequest) GetUnit() string {
|
|
if x != nil {
|
|
return x.Unit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdatePriceItemRequest) GetColorEnabled() bool {
|
|
if x != nil {
|
|
return x.ColorEnabled
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UpdatePriceItemRequest) GetIsActive() bool {
|
|
if x != nil {
|
|
return x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
type WxPayRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
|
|
Amount float64 `protobuf:"fixed64,2,opt,name=amount,proto3" json:"amount,omitempty"`
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
|
Openid string `protobuf:"bytes,4,opt,name=openid,proto3" json:"openid,omitempty"`
|
|
ClientIp string `protobuf:"bytes,5,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WxPayRequest) Reset() {
|
|
*x = WxPayRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[57]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WxPayRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WxPayRequest) ProtoMessage() {}
|
|
|
|
func (x *WxPayRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[57]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use WxPayRequest.ProtoReflect.Descriptor instead.
|
|
func (*WxPayRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{57}
|
|
}
|
|
|
|
func (x *WxPayRequest) GetOrderNo() string {
|
|
if x != nil {
|
|
return x.OrderNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WxPayRequest) GetAmount() float64 {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *WxPayRequest) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WxPayRequest) GetOpenid() string {
|
|
if x != nil {
|
|
return x.Openid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WxPayRequest) GetClientIp() string {
|
|
if x != nil {
|
|
return x.ClientIp
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type WxPayResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PrepayId string `protobuf:"bytes,1,opt,name=prepay_id,json=prepayId,proto3" json:"prepay_id,omitempty"`
|
|
CodeUrl string `protobuf:"bytes,2,opt,name=code_url,json=codeUrl,proto3" json:"code_url,omitempty"`
|
|
MwebUrl string `protobuf:"bytes,3,opt,name=mweb_url,json=mwebUrl,proto3" json:"mweb_url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WxPayResponse) Reset() {
|
|
*x = WxPayResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[58]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WxPayResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WxPayResponse) ProtoMessage() {}
|
|
|
|
func (x *WxPayResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[58]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use WxPayResponse.ProtoReflect.Descriptor instead.
|
|
func (*WxPayResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{58}
|
|
}
|
|
|
|
func (x *WxPayResponse) GetPrepayId() string {
|
|
if x != nil {
|
|
return x.PrepayId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WxPayResponse) GetCodeUrl() string {
|
|
if x != nil {
|
|
return x.CodeUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WxPayResponse) GetMwebUrl() string {
|
|
if x != nil {
|
|
return x.MwebUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type QueryPayStatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *QueryPayStatusRequest) Reset() {
|
|
*x = QueryPayStatusRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[59]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *QueryPayStatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryPayStatusRequest) ProtoMessage() {}
|
|
|
|
func (x *QueryPayStatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[59]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use QueryPayStatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryPayStatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{59}
|
|
}
|
|
|
|
func (x *QueryPayStatusRequest) GetOrderNo() string {
|
|
if x != nil {
|
|
return x.OrderNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PayStatusResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // 0: 待支付 1: 支付中 2: 成功 3: 失败
|
|
TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PayStatusResponse) Reset() {
|
|
*x = PayStatusResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[60]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PayStatusResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PayStatusResponse) ProtoMessage() {}
|
|
|
|
func (x *PayStatusResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[60]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PayStatusResponse.ProtoReflect.Descriptor instead.
|
|
func (*PayStatusResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{60}
|
|
}
|
|
|
|
func (x *PayStatusResponse) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PayStatusResponse) GetTransactionId() string {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PayCallbackRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PayCallbackRequest) Reset() {
|
|
*x = PayCallbackRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[61]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PayCallbackRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PayCallbackRequest) ProtoMessage() {}
|
|
|
|
func (x *PayCallbackRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[61]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PayCallbackRequest.ProtoReflect.Descriptor instead.
|
|
func (*PayCallbackRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{61}
|
|
}
|
|
|
|
func (x *PayCallbackRequest) GetBody() string {
|
|
if x != nil {
|
|
return x.Body
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PayCallbackResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ReturnCode string `protobuf:"bytes,1,opt,name=return_code,json=returnCode,proto3" json:"return_code,omitempty"`
|
|
ReturnMsg string `protobuf:"bytes,2,opt,name=return_msg,json=returnMsg,proto3" json:"return_msg,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PayCallbackResponse) Reset() {
|
|
*x = PayCallbackResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[62]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PayCallbackResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PayCallbackResponse) ProtoMessage() {}
|
|
|
|
func (x *PayCallbackResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[62]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PayCallbackResponse.ProtoReflect.Descriptor instead.
|
|
func (*PayCallbackResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{62}
|
|
}
|
|
|
|
func (x *PayCallbackResponse) GetReturnCode() string {
|
|
if x != nil {
|
|
return x.ReturnCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PayCallbackResponse) GetReturnMsg() string {
|
|
if x != nil {
|
|
return x.ReturnMsg
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PayByBalanceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
|
|
UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PayByBalanceRequest) Reset() {
|
|
*x = PayByBalanceRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[63]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PayByBalanceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PayByBalanceRequest) ProtoMessage() {}
|
|
|
|
func (x *PayByBalanceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[63]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PayByBalanceRequest.ProtoReflect.Descriptor instead.
|
|
func (*PayByBalanceRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{63}
|
|
}
|
|
|
|
func (x *PayByBalanceRequest) GetOrderNo() string {
|
|
if x != nil {
|
|
return x.OrderNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PayByBalanceRequest) GetUserId() int32 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Admin struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
|
Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
|
|
Role int32 `protobuf:"varint,4,opt,name=role,proto3" json:"role,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Admin) Reset() {
|
|
*x = Admin{}
|
|
mi := &file_cloudprint_proto_msgTypes[64]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Admin) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Admin) ProtoMessage() {}
|
|
|
|
func (x *Admin) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[64]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Admin.ProtoReflect.Descriptor instead.
|
|
func (*Admin) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{64}
|
|
}
|
|
|
|
func (x *Admin) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Admin) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Admin) GetNickname() string {
|
|
if x != nil {
|
|
return x.Nickname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Admin) GetRole() int32 {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Admin) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AdminLoginRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AdminLoginRequest) Reset() {
|
|
*x = AdminLoginRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[65]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AdminLoginRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AdminLoginRequest) ProtoMessage() {}
|
|
|
|
func (x *AdminLoginRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[65]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AdminLoginRequest.ProtoReflect.Descriptor instead.
|
|
func (*AdminLoginRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{65}
|
|
}
|
|
|
|
func (x *AdminLoginRequest) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AdminLoginRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AdminLoginResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
Admin *Admin `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AdminLoginResponse) Reset() {
|
|
*x = AdminLoginResponse{}
|
|
mi := &file_cloudprint_proto_msgTypes[66]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AdminLoginResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AdminLoginResponse) ProtoMessage() {}
|
|
|
|
func (x *AdminLoginResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[66]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AdminLoginResponse.ProtoReflect.Descriptor instead.
|
|
func (*AdminLoginResponse) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{66}
|
|
}
|
|
|
|
func (x *AdminLoginResponse) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AdminLoginResponse) GetAdmin() *Admin {
|
|
if x != nil {
|
|
return x.Admin
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetStatisticsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetStatisticsRequest) Reset() {
|
|
*x = GetStatisticsRequest{}
|
|
mi := &file_cloudprint_proto_msgTypes[67]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetStatisticsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetStatisticsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetStatisticsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[67]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetStatisticsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetStatisticsRequest) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{67}
|
|
}
|
|
|
|
type Statistics struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TotalUsers int32 `protobuf:"varint,1,opt,name=total_users,json=totalUsers,proto3" json:"total_users,omitempty"`
|
|
TotalOrders int32 `protobuf:"varint,2,opt,name=total_orders,json=totalOrders,proto3" json:"total_orders,omitempty"`
|
|
TodayOrders int32 `protobuf:"varint,3,opt,name=today_orders,json=todayOrders,proto3" json:"today_orders,omitempty"`
|
|
TodayRevenue float64 `protobuf:"fixed64,4,opt,name=today_revenue,json=todayRevenue,proto3" json:"today_revenue,omitempty"`
|
|
PendingOrders int32 `protobuf:"varint,5,opt,name=pending_orders,json=pendingOrders,proto3" json:"pending_orders,omitempty"`
|
|
ActivePrinters int32 `protobuf:"varint,6,opt,name=active_printers,json=activePrinters,proto3" json:"active_printers,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Statistics) Reset() {
|
|
*x = Statistics{}
|
|
mi := &file_cloudprint_proto_msgTypes[68]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Statistics) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Statistics) ProtoMessage() {}
|
|
|
|
func (x *Statistics) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cloudprint_proto_msgTypes[68]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Statistics.ProtoReflect.Descriptor instead.
|
|
func (*Statistics) Descriptor() ([]byte, []int) {
|
|
return file_cloudprint_proto_rawDescGZIP(), []int{68}
|
|
}
|
|
|
|
func (x *Statistics) GetTotalUsers() int32 {
|
|
if x != nil {
|
|
return x.TotalUsers
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Statistics) GetTotalOrders() int32 {
|
|
if x != nil {
|
|
return x.TotalOrders
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Statistics) GetTodayOrders() int32 {
|
|
if x != nil {
|
|
return x.TodayOrders
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Statistics) GetTodayRevenue() float64 {
|
|
if x != nil {
|
|
return x.TodayRevenue
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Statistics) GetPendingOrders() int32 {
|
|
if x != nil {
|
|
return x.PendingOrders
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Statistics) GetActivePrinters() int32 {
|
|
if x != nil {
|
|
return x.ActivePrinters
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_cloudprint_proto protoreflect.FileDescriptor
|
|
|
|
const file_cloudprint_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x10cloudprint.proto\x12\n" +
|
|
"cloudprint\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\a\n" +
|
|
"\x05Empty\">\n" +
|
|
"\x0eStatusResponse\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x18\n" +
|
|
"\amessage\x18\x02 \x01(\tR\amessage\"\xb7\x01\n" +
|
|
"\x04User\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x16\n" +
|
|
"\x06openid\x18\x02 \x01(\tR\x06openid\x12\x1a\n" +
|
|
"\bnickname\x18\x03 \x01(\tR\bnickname\x12\x16\n" +
|
|
"\x06avatar\x18\x04 \x01(\tR\x06avatar\x12\x18\n" +
|
|
"\abalance\x18\x05 \x01(\x01R\abalance\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\"\n" +
|
|
"\fLoginRequest\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\tR\x04code\"}\n" +
|
|
"\rLoginResponse\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12#\n" +
|
|
"\rrefresh_token\x18\x02 \x01(\tR\frefreshToken\x12$\n" +
|
|
"\x04user\x18\x03 \x01(\v2\x10.cloudprint.UserR\x04user\"5\n" +
|
|
"\x0eRefreshRequest\x12#\n" +
|
|
"\rrefresh_token\x18\x01 \x01(\tR\frefreshToken\"4\n" +
|
|
"\x0fRefreshResponse\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\"\x14\n" +
|
|
"\x12GetUserInfoRequest\"G\n" +
|
|
"\x11UpdateUserRequest\x12\x1a\n" +
|
|
"\bnickname\x18\x01 \x01(\tR\bnickname\x12\x16\n" +
|
|
"\x06avatar\x18\x02 \x01(\tR\x06avatar\"\x8f\x02\n" +
|
|
"\bFileInfo\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x1b\n" +
|
|
"\tfile_name\x18\x02 \x01(\tR\bfileName\x12\x1b\n" +
|
|
"\tfile_path\x18\x03 \x01(\tR\bfilePath\x12\x1b\n" +
|
|
"\tfile_type\x18\x04 \x01(\tR\bfileType\x12\x1b\n" +
|
|
"\tfile_size\x18\x05 \x01(\x03R\bfileSize\x12#\n" +
|
|
"\ruploader_type\x18\x06 \x01(\tR\fuploaderType\x12\x1f\n" +
|
|
"\vuploader_id\x18\a \x01(\x05R\n" +
|
|
"uploaderId\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\xfd\x01\n" +
|
|
"\rUploadRequest\x12\x1b\n" +
|
|
"\tfile_name\x18\x01 \x01(\tR\bfileName\x12\x1b\n" +
|
|
"\tfile_type\x18\x02 \x01(\tR\bfileType\x12\x1b\n" +
|
|
"\tfile_size\x18\x03 \x01(\x03R\bfileSize\x12\x12\n" +
|
|
"\x04data\x18\x04 \x01(\fR\x04data\x12\"\n" +
|
|
"\ris_last_chunk\x18\x05 \x01(\bR\visLastChunk\x12\x19\n" +
|
|
"\bchunk_id\x18\x06 \x01(\tR\achunkId\x12\x1f\n" +
|
|
"\vchunk_index\x18\a \x01(\x05R\n" +
|
|
"chunkIndex\x12!\n" +
|
|
"\ftotal_chunks\x18\b \x01(\x05R\vtotalChunks\"a\n" +
|
|
"\x0eUploadResponse\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\x05R\x06fileId\x12\x1b\n" +
|
|
"\tfile_path\x18\x02 \x01(\tR\bfilePath\x12\x19\n" +
|
|
"\bfile_url\x18\x03 \x01(\tR\afileUrl\")\n" +
|
|
"\x0eGetFileRequest\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\x05R\x06fileId\"7\n" +
|
|
"\bFileData\x12\x12\n" +
|
|
"\x04data\x18\x01 \x01(\fR\x04data\x12\x17\n" +
|
|
"\ais_last\x18\x02 \x01(\bR\x06isLast\",\n" +
|
|
"\x11DeleteFileRequest\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\x05R\x06fileId\"\x92\x01\n" +
|
|
"\x10WatermarkRequest\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\x05R\x06fileId\x12\x12\n" +
|
|
"\x04text\x18\x02 \x01(\tR\x04text\x12\x18\n" +
|
|
"\aopacity\x18\x03 \x01(\x02R\aopacity\x12\x1a\n" +
|
|
"\bposition\x18\x04 \x01(\x05R\bposition\x12\x1b\n" +
|
|
"\tfont_size\x18\x05 \x01(\x05R\bfontSize\"I\n" +
|
|
"\x11WatermarkResponse\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\x05R\x06fileId\x12\x1b\n" +
|
|
"\tfile_path\x18\x02 \x01(\tR\bfilePath\"\x8b\x01\n" +
|
|
"\x12GetFileListRequest\x12#\n" +
|
|
"\ruploader_type\x18\x01 \x01(\tR\fuploaderType\x12\x1f\n" +
|
|
"\vuploader_id\x18\x02 \x01(\x05R\n" +
|
|
"uploaderId\x12\x12\n" +
|
|
"\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" +
|
|
"\tpage_size\x18\x04 \x01(\x05R\bpageSize\"T\n" +
|
|
"\x10FileListResponse\x12*\n" +
|
|
"\x05files\x18\x01 \x03(\v2\x14.cloudprint.FileInfoR\x05files\x12\x14\n" +
|
|
"\x05total\x18\x02 \x01(\x05R\x05total\"\xbb\x02\n" +
|
|
"\x05Order\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x19\n" +
|
|
"\border_no\x18\x02 \x01(\tR\aorderNo\x12\x17\n" +
|
|
"\auser_id\x18\x03 \x01(\x05R\x06userId\x12\x16\n" +
|
|
"\x06status\x18\x04 \x01(\x05R\x06status\x12!\n" +
|
|
"\ftotal_amount\x18\x05 \x01(\x01R\vtotalAmount\x12\x16\n" +
|
|
"\x06remark\x18\x06 \x01(\tR\x06remark\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x123\n" +
|
|
"\apaid_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\x06paidAt\x12+\n" +
|
|
"\x05items\x18\t \x03(\v2\x15.cloudprint.OrderItemR\x05items\"\x93\x02\n" +
|
|
"\tOrderItem\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x19\n" +
|
|
"\border_id\x18\x02 \x01(\x05R\aorderId\x12\x17\n" +
|
|
"\afile_id\x18\x03 \x01(\x05R\x06fileId\x12(\n" +
|
|
"\x04file\x18\x04 \x01(\v2\x14.cloudprint.FileInfoR\x04file\x12\x1d\n" +
|
|
"\n" +
|
|
"printer_id\x18\x05 \x01(\x05R\tprinterId\x12\x16\n" +
|
|
"\x06copies\x18\x06 \x01(\x05R\x06copies\x12\x14\n" +
|
|
"\x05color\x18\a \x01(\bR\x05color\x12\x16\n" +
|
|
"\x06duplex\x18\b \x01(\bR\x06duplex\x12\x1d\n" +
|
|
"\n" +
|
|
"page_range\x18\t \x01(\tR\tpageRange\x12\x14\n" +
|
|
"\x05price\x18\n" +
|
|
" \x01(\x01R\x05price\"_\n" +
|
|
"\x12CreateOrderRequest\x121\n" +
|
|
"\x05items\x18\x01 \x03(\v2\x1b.cloudprint.CreateOrderItemR\x05items\x12\x16\n" +
|
|
"\x06remark\x18\x02 \x01(\tR\x06remark\"\xae\x01\n" +
|
|
"\x0fCreateOrderItem\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\x05R\x06fileId\x12\x1d\n" +
|
|
"\n" +
|
|
"printer_id\x18\x02 \x01(\x05R\tprinterId\x12\x16\n" +
|
|
"\x06copies\x18\x03 \x01(\x05R\x06copies\x12\x14\n" +
|
|
"\x05color\x18\x04 \x01(\bR\x05color\x12\x16\n" +
|
|
"\x06duplex\x18\x05 \x01(\bR\x06duplex\x12\x1d\n" +
|
|
"\n" +
|
|
"page_range\x18\x06 \x01(\tR\tpageRange\"S\n" +
|
|
"\x13CreateOrderResponse\x12\x19\n" +
|
|
"\border_no\x18\x01 \x01(\tR\aorderNo\x12!\n" +
|
|
"\ftotal_amount\x18\x02 \x01(\x01R\vtotalAmount\",\n" +
|
|
"\x0fGetOrderRequest\x12\x19\n" +
|
|
"\border_no\x18\x01 \x01(\tR\aorderNo\"w\n" +
|
|
"\x13GetOrderListRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x05R\x06userId\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\x05R\x06status\x12\x12\n" +
|
|
"\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" +
|
|
"\tpage_size\x18\x04 \x01(\x05R\bpageSize\"T\n" +
|
|
"\x11OrderListResponse\x12)\n" +
|
|
"\x06orders\x18\x01 \x03(\v2\x11.cloudprint.OrderR\x06orders\x12\x14\n" +
|
|
"\x05total\x18\x02 \x01(\x05R\x05total\"M\n" +
|
|
"\x18UpdateOrderStatusRequest\x12\x19\n" +
|
|
"\border_no\x18\x01 \x01(\tR\aorderNo\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\x05R\x06status\"/\n" +
|
|
"\x12CancelOrderRequest\x12\x19\n" +
|
|
"\border_no\x18\x01 \x01(\tR\aorderNo\"\xc8\x01\n" +
|
|
"\aPrinter\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12!\n" +
|
|
"\fdisplay_name\x18\x03 \x01(\tR\vdisplayName\x12\x1b\n" +
|
|
"\tis_active\x18\x04 \x01(\bR\bisActive\x12\x16\n" +
|
|
"\x06status\x18\x05 \x01(\x05R\x06status\x12A\n" +
|
|
"\x0elast_heartbeat\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\rlastHeartbeat\"\x14\n" +
|
|
"\x12GetPrintersRequest\"F\n" +
|
|
"\x13PrinterListResponse\x12/\n" +
|
|
"\bprinters\x18\x01 \x03(\v2\x13.cloudprint.PrinterR\bprinters\"8\n" +
|
|
"\x17GetPrinterStatusRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"printer_id\x18\x01 \x01(\x05R\tprinterId\"g\n" +
|
|
"\x15PrinterStatusResponse\x12-\n" +
|
|
"\aprinter\x18\x01 \x01(\v2\x13.cloudprint.PrinterR\aprinter\x12\x1f\n" +
|
|
"\vqueue_count\x18\x02 \x01(\x05R\n" +
|
|
"queueCount\"h\n" +
|
|
"\x16RegisterPrinterRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12!\n" +
|
|
"\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12\x17\n" +
|
|
"\aapi_key\x18\x03 \x01(\tR\x06apiKey\"N\n" +
|
|
"\x17RegisterPrinterResponse\x12\x1d\n" +
|
|
"\n" +
|
|
"printer_id\x18\x01 \x01(\x05R\tprinterId\x12\x14\n" +
|
|
"\x05token\x18\x02 \x01(\tR\x05token\"f\n" +
|
|
"\x17PrinterHeartbeatRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"printer_id\x18\x01 \x01(\x05R\tprinterId\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\x05R\x06status\x12\x14\n" +
|
|
"\x05token\x18\x03 \x01(\tR\x05token\"\xf5\x02\n" +
|
|
"\bPrintJob\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x15\n" +
|
|
"\x06job_no\x18\x02 \x01(\tR\x05jobNo\x12\x1d\n" +
|
|
"\n" +
|
|
"printer_id\x18\x03 \x01(\x05R\tprinterId\x12\"\n" +
|
|
"\rorder_item_id\x18\x04 \x01(\x05R\vorderItemId\x12\x16\n" +
|
|
"\x06status\x18\x05 \x01(\tR\x06status\x12\x1a\n" +
|
|
"\bprogress\x18\x06 \x01(\x05R\bprogress\x12\x1b\n" +
|
|
"\terror_msg\x18\a \x01(\tR\berrorMsg\x129\n" +
|
|
"\n" +
|
|
"started_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" +
|
|
"\fcompleted_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\x124\n" +
|
|
"\n" +
|
|
"order_item\x18\n" +
|
|
" \x01(\v2\x15.cloudprint.OrderItemR\torderItem\"\xdc\x01\n" +
|
|
"\x15SubmitPrintJobRequest\x12\"\n" +
|
|
"\rorder_item_id\x18\x01 \x01(\x05R\vorderItemId\x12\x1d\n" +
|
|
"\n" +
|
|
"printer_id\x18\x02 \x01(\x05R\tprinterId\x12\x1b\n" +
|
|
"\tfile_path\x18\x03 \x01(\tR\bfilePath\x12\x16\n" +
|
|
"\x06copies\x18\x04 \x01(\x05R\x06copies\x12\x14\n" +
|
|
"\x05color\x18\x05 \x01(\bR\x05color\x12\x16\n" +
|
|
"\x06duplex\x18\x06 \x01(\bR\x06duplex\x12\x1d\n" +
|
|
"\n" +
|
|
"page_range\x18\a \x01(\tR\tpageRange\"/\n" +
|
|
"\x16SubmitPrintJobResponse\x12\x15\n" +
|
|
"\x06job_no\x18\x01 \x01(\tR\x05jobNo\".\n" +
|
|
"\x15CancelPrintJobRequest\x12\x15\n" +
|
|
"\x06job_no\x18\x01 \x01(\tR\x05jobNo\"K\n" +
|
|
"\x14SubscribeJobsRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"printer_id\x18\x01 \x01(\x05R\tprinterId\x12\x14\n" +
|
|
"\x05token\x18\x02 \x01(\tR\x05token\"\x80\x01\n" +
|
|
"\x16ReportJobStatusRequest\x12\x15\n" +
|
|
"\x06job_no\x18\x01 \x01(\tR\x05jobNo\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\tR\x06status\x12\x1a\n" +
|
|
"\bprogress\x18\x03 \x01(\x05R\bprogress\x12\x1b\n" +
|
|
"\terror_msg\x18\x04 \x01(\tR\berrorMsg\"h\n" +
|
|
"\x0fLibraryCategory\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04icon\x18\x03 \x01(\tR\x04icon\x12\x1d\n" +
|
|
"\n" +
|
|
"sort_order\x18\x04 \x01(\x05R\tsortOrder\"\xba\x02\n" +
|
|
"\vLibraryFile\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x1f\n" +
|
|
"\vcategory_id\x18\x02 \x01(\x05R\n" +
|
|
"categoryId\x12\x17\n" +
|
|
"\afile_id\x18\x03 \x01(\x05R\x06fileId\x12\x14\n" +
|
|
"\x05title\x18\x04 \x01(\tR\x05title\x12 \n" +
|
|
"\vdescription\x18\x05 \x01(\tR\vdescription\x12\x1d\n" +
|
|
"\n" +
|
|
"page_count\x18\x06 \x01(\x05R\tpageCount\x12%\n" +
|
|
"\x0edownload_count\x18\a \x01(\x05R\rdownloadCount\x12(\n" +
|
|
"\x04file\x18\b \x01(\v2\x14.cloudprint.FileInfoR\x04file\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\x16\n" +
|
|
"\x14GetCategoriesRequest\"S\n" +
|
|
"\x14CategoryListResponse\x12;\n" +
|
|
"\n" +
|
|
"categories\x18\x01 \x03(\v2\x1b.cloudprint.LibraryCategoryR\n" +
|
|
"categories\"j\n" +
|
|
"\x16GetLibraryFilesRequest\x12\x1f\n" +
|
|
"\vcategory_id\x18\x01 \x01(\x05R\n" +
|
|
"categoryId\x12\x12\n" +
|
|
"\x04page\x18\x02 \x01(\x05R\x04page\x12\x1b\n" +
|
|
"\tpage_size\x18\x03 \x01(\x05R\bpageSize\"^\n" +
|
|
"\x17LibraryFileListResponse\x12-\n" +
|
|
"\x05files\x18\x01 \x03(\v2\x17.cloudprint.LibraryFileR\x05files\x12\x14\n" +
|
|
"\x05total\x18\x02 \x01(\x05R\x05total\"\xc1\x01\n" +
|
|
"\x18UploadLibraryFileRequest\x12\x1f\n" +
|
|
"\vcategory_id\x18\x01 \x01(\x05R\n" +
|
|
"categoryId\x12\x14\n" +
|
|
"\x05title\x18\x02 \x01(\tR\x05title\x12 \n" +
|
|
"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x12\n" +
|
|
"\x04data\x18\x04 \x01(\fR\x04data\x12\x1b\n" +
|
|
"\tfile_name\x18\x05 \x01(\tR\bfileName\x12\x1b\n" +
|
|
"\tfile_type\x18\x06 \x01(\tR\bfileType\"C\n" +
|
|
"\x19UploadLibraryFileResponse\x12&\n" +
|
|
"\x0flibrary_file_id\x18\x01 \x01(\x05R\rlibraryFileId\"B\n" +
|
|
"\x18DeleteLibraryFileRequest\x12&\n" +
|
|
"\x0flibrary_file_id\x18\x01 \x01(\x05R\rlibraryFileId\"\xaf\x01\n" +
|
|
"\tPriceItem\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04type\x18\x03 \x01(\tR\x04type\x12\x14\n" +
|
|
"\x05price\x18\x04 \x01(\x01R\x05price\x12\x12\n" +
|
|
"\x04unit\x18\x05 \x01(\tR\x04unit\x12#\n" +
|
|
"\rcolor_enabled\x18\x06 \x01(\bR\fcolorEnabled\x12\x1b\n" +
|
|
"\tis_active\x18\a \x01(\bR\bisActive\"\x15\n" +
|
|
"\x13GetPriceListRequest\"@\n" +
|
|
"\x11PriceListResponse\x12+\n" +
|
|
"\x05items\x18\x01 \x03(\v2\x15.cloudprint.PriceItemR\x05items\"\x8f\x01\n" +
|
|
"\x16CreatePriceItemRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12\x14\n" +
|
|
"\x05price\x18\x03 \x01(\x01R\x05price\x12\x12\n" +
|
|
"\x04unit\x18\x04 \x01(\tR\x04unit\x12#\n" +
|
|
"\rcolor_enabled\x18\x05 \x01(\bR\fcolorEnabled\"\xbc\x01\n" +
|
|
"\x16UpdatePriceItemRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04type\x18\x03 \x01(\tR\x04type\x12\x14\n" +
|
|
"\x05price\x18\x04 \x01(\x01R\x05price\x12\x12\n" +
|
|
"\x04unit\x18\x05 \x01(\tR\x04unit\x12#\n" +
|
|
"\rcolor_enabled\x18\x06 \x01(\bR\fcolorEnabled\x12\x1b\n" +
|
|
"\tis_active\x18\a \x01(\bR\bisActive\"\x98\x01\n" +
|
|
"\fWxPayRequest\x12\x19\n" +
|
|
"\border_no\x18\x01 \x01(\tR\aorderNo\x12\x16\n" +
|
|
"\x06amount\x18\x02 \x01(\x01R\x06amount\x12 \n" +
|
|
"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x16\n" +
|
|
"\x06openid\x18\x04 \x01(\tR\x06openid\x12\x1b\n" +
|
|
"\tclient_ip\x18\x05 \x01(\tR\bclientIp\"b\n" +
|
|
"\rWxPayResponse\x12\x1b\n" +
|
|
"\tprepay_id\x18\x01 \x01(\tR\bprepayId\x12\x19\n" +
|
|
"\bcode_url\x18\x02 \x01(\tR\acodeUrl\x12\x19\n" +
|
|
"\bmweb_url\x18\x03 \x01(\tR\amwebUrl\"2\n" +
|
|
"\x15QueryPayStatusRequest\x12\x19\n" +
|
|
"\border_no\x18\x01 \x01(\tR\aorderNo\"R\n" +
|
|
"\x11PayStatusResponse\x12\x16\n" +
|
|
"\x06status\x18\x01 \x01(\x05R\x06status\x12%\n" +
|
|
"\x0etransaction_id\x18\x02 \x01(\tR\rtransactionId\"(\n" +
|
|
"\x12PayCallbackRequest\x12\x12\n" +
|
|
"\x04body\x18\x01 \x01(\tR\x04body\"U\n" +
|
|
"\x13PayCallbackResponse\x12\x1f\n" +
|
|
"\vreturn_code\x18\x01 \x01(\tR\n" +
|
|
"returnCode\x12\x1d\n" +
|
|
"\n" +
|
|
"return_msg\x18\x02 \x01(\tR\treturnMsg\"I\n" +
|
|
"\x13PayByBalanceRequest\x12\x19\n" +
|
|
"\border_no\x18\x01 \x01(\tR\aorderNo\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\x05R\x06userId\"\x9e\x01\n" +
|
|
"\x05Admin\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x1a\n" +
|
|
"\busername\x18\x02 \x01(\tR\busername\x12\x1a\n" +
|
|
"\bnickname\x18\x03 \x01(\tR\bnickname\x12\x12\n" +
|
|
"\x04role\x18\x04 \x01(\x05R\x04role\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"K\n" +
|
|
"\x11AdminLoginRequest\x12\x1a\n" +
|
|
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\"`\n" +
|
|
"\x12AdminLoginResponse\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12'\n" +
|
|
"\x05admin\x18\x02 \x01(\v2\x11.cloudprint.AdminR\x05admin\"\x16\n" +
|
|
"\x14GetStatisticsRequest\"\xe8\x01\n" +
|
|
"\n" +
|
|
"Statistics\x12\x1f\n" +
|
|
"\vtotal_users\x18\x01 \x01(\x05R\n" +
|
|
"totalUsers\x12!\n" +
|
|
"\ftotal_orders\x18\x02 \x01(\x05R\vtotalOrders\x12!\n" +
|
|
"\ftoday_orders\x18\x03 \x01(\x05R\vtodayOrders\x12#\n" +
|
|
"\rtoday_revenue\x18\x04 \x01(\x01R\ftodayRevenue\x12%\n" +
|
|
"\x0epending_orders\x18\x05 \x01(\x05R\rpendingOrders\x12'\n" +
|
|
"\x0factive_printers\x18\x06 \x01(\x05R\x0eactivePrinters2\x94\x02\n" +
|
|
"\vAuthService\x12<\n" +
|
|
"\x05Login\x12\x18.cloudprint.LoginRequest\x1a\x19.cloudprint.LoginResponse\x12G\n" +
|
|
"\fRefreshToken\x12\x1a.cloudprint.RefreshRequest\x1a\x1b.cloudprint.RefreshResponse\x12?\n" +
|
|
"\vGetUserInfo\x12\x1e.cloudprint.GetUserInfoRequest\x1a\x10.cloudprint.User\x12=\n" +
|
|
"\n" +
|
|
"UpdateUser\x12\x1d.cloudprint.UpdateUserRequest\x1a\x10.cloudprint.User2\xe9\x02\n" +
|
|
"\vFileService\x12A\n" +
|
|
"\x06Upload\x12\x19.cloudprint.UploadRequest\x1a\x1a.cloudprint.UploadResponse(\x01\x12=\n" +
|
|
"\aGetFile\x12\x1a.cloudprint.GetFileRequest\x1a\x14.cloudprint.FileData0\x01\x12>\n" +
|
|
"\n" +
|
|
"DeleteFile\x12\x1d.cloudprint.DeleteFileRequest\x1a\x11.cloudprint.Empty\x12K\n" +
|
|
"\fAddWatermark\x12\x1c.cloudprint.WatermarkRequest\x1a\x1d.cloudprint.WatermarkResponse\x12K\n" +
|
|
"\vGetFileList\x12\x1e.cloudprint.GetFileListRequest\x1a\x1c.cloudprint.FileListResponse2\xfa\x02\n" +
|
|
"\fOrderService\x12N\n" +
|
|
"\vCreateOrder\x12\x1e.cloudprint.CreateOrderRequest\x1a\x1f.cloudprint.CreateOrderResponse\x12:\n" +
|
|
"\bGetOrder\x12\x1b.cloudprint.GetOrderRequest\x1a\x11.cloudprint.Order\x12N\n" +
|
|
"\fGetOrderList\x12\x1f.cloudprint.GetOrderListRequest\x1a\x1d.cloudprint.OrderListResponse\x12L\n" +
|
|
"\x11UpdateOrderStatus\x12$.cloudprint.UpdateOrderStatusRequest\x1a\x11.cloudprint.Empty\x12@\n" +
|
|
"\vCancelOrder\x12\x1e.cloudprint.CancelOrderRequest\x1a\x11.cloudprint.Empty2\x98\x05\n" +
|
|
"\fPrintService\x12N\n" +
|
|
"\vGetPrinters\x12\x1e.cloudprint.GetPrintersRequest\x1a\x1f.cloudprint.PrinterListResponse\x12Z\n" +
|
|
"\x10GetPrinterStatus\x12#.cloudprint.GetPrinterStatusRequest\x1a!.cloudprint.PrinterStatusResponse\x12Z\n" +
|
|
"\x0fRegisterPrinter\x12\".cloudprint.RegisterPrinterRequest\x1a#.cloudprint.RegisterPrinterResponse\x12J\n" +
|
|
"\x10PrinterHeartbeat\x12#.cloudprint.PrinterHeartbeatRequest\x1a\x11.cloudprint.Empty\x12W\n" +
|
|
"\x0eSubmitPrintJob\x12!.cloudprint.SubmitPrintJobRequest\x1a\".cloudprint.SubmitPrintJobResponse\x12F\n" +
|
|
"\x0eCancelPrintJob\x12!.cloudprint.CancelPrintJobRequest\x1a\x11.cloudprint.Empty\x12I\n" +
|
|
"\rSubscribeJobs\x12 .cloudprint.SubscribeJobsRequest\x1a\x14.cloudprint.PrintJob0\x01\x12H\n" +
|
|
"\x0fReportJobStatus\x12\".cloudprint.ReportJobStatusRequest\x1a\x11.cloudprint.Empty2\xde\x02\n" +
|
|
"\x0eLibraryService\x12S\n" +
|
|
"\rGetCategories\x12 .cloudprint.GetCategoriesRequest\x1a .cloudprint.CategoryListResponse\x12S\n" +
|
|
"\bGetFiles\x12\".cloudprint.GetLibraryFilesRequest\x1a#.cloudprint.LibraryFileListResponse\x12[\n" +
|
|
"\n" +
|
|
"UploadFile\x12$.cloudprint.UploadLibraryFileRequest\x1a%.cloudprint.UploadLibraryFileResponse(\x01\x12E\n" +
|
|
"\n" +
|
|
"DeleteFile\x12$.cloudprint.DeleteLibraryFileRequest\x1a\x11.cloudprint.Empty2\xfa\x01\n" +
|
|
"\fPriceService\x12N\n" +
|
|
"\fGetPriceList\x12\x1f.cloudprint.GetPriceListRequest\x1a\x1d.cloudprint.PriceListResponse\x12L\n" +
|
|
"\x0fCreatePriceItem\x12\".cloudprint.CreatePriceItemRequest\x1a\x15.cloudprint.PriceItem\x12L\n" +
|
|
"\x0fUpdatePriceItem\x12\".cloudprint.UpdatePriceItemRequest\x1a\x15.cloudprint.PriceItem2\xcc\x02\n" +
|
|
"\n" +
|
|
"PayService\x12G\n" +
|
|
"\x10CreateWxPayOrder\x12\x18.cloudprint.WxPayRequest\x1a\x19.cloudprint.WxPayResponse\x12R\n" +
|
|
"\x0eQueryPayStatus\x12!.cloudprint.QueryPayStatusRequest\x1a\x1d.cloudprint.PayStatusResponse\x12T\n" +
|
|
"\x11HandlePayCallback\x12\x1e.cloudprint.PayCallbackRequest\x1a\x1f.cloudprint.PayCallbackResponse\x12K\n" +
|
|
"\fPayByBalance\x12\x1f.cloudprint.PayByBalanceRequest\x1a\x1a.cloudprint.StatusResponse2\xa1\x01\n" +
|
|
"\fAdminService\x12F\n" +
|
|
"\x05Login\x12\x1d.cloudprint.AdminLoginRequest\x1a\x1e.cloudprint.AdminLoginResponse\x12I\n" +
|
|
"\rGetStatistics\x12 .cloudprint.GetStatisticsRequest\x1a\x16.cloudprint.StatisticsB:Z8github.com/cloudprint/cloudprint-backend/proto/generatedb\x06proto3"
|
|
|
|
var (
|
|
file_cloudprint_proto_rawDescOnce sync.Once
|
|
file_cloudprint_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_cloudprint_proto_rawDescGZIP() []byte {
|
|
file_cloudprint_proto_rawDescOnce.Do(func() {
|
|
file_cloudprint_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cloudprint_proto_rawDesc), len(file_cloudprint_proto_rawDesc)))
|
|
})
|
|
return file_cloudprint_proto_rawDescData
|
|
}
|
|
|
|
var file_cloudprint_proto_msgTypes = make([]protoimpl.MessageInfo, 69)
|
|
var file_cloudprint_proto_goTypes = []any{
|
|
(*Empty)(nil), // 0: cloudprint.Empty
|
|
(*StatusResponse)(nil), // 1: cloudprint.StatusResponse
|
|
(*User)(nil), // 2: cloudprint.User
|
|
(*LoginRequest)(nil), // 3: cloudprint.LoginRequest
|
|
(*LoginResponse)(nil), // 4: cloudprint.LoginResponse
|
|
(*RefreshRequest)(nil), // 5: cloudprint.RefreshRequest
|
|
(*RefreshResponse)(nil), // 6: cloudprint.RefreshResponse
|
|
(*GetUserInfoRequest)(nil), // 7: cloudprint.GetUserInfoRequest
|
|
(*UpdateUserRequest)(nil), // 8: cloudprint.UpdateUserRequest
|
|
(*FileInfo)(nil), // 9: cloudprint.FileInfo
|
|
(*UploadRequest)(nil), // 10: cloudprint.UploadRequest
|
|
(*UploadResponse)(nil), // 11: cloudprint.UploadResponse
|
|
(*GetFileRequest)(nil), // 12: cloudprint.GetFileRequest
|
|
(*FileData)(nil), // 13: cloudprint.FileData
|
|
(*DeleteFileRequest)(nil), // 14: cloudprint.DeleteFileRequest
|
|
(*WatermarkRequest)(nil), // 15: cloudprint.WatermarkRequest
|
|
(*WatermarkResponse)(nil), // 16: cloudprint.WatermarkResponse
|
|
(*GetFileListRequest)(nil), // 17: cloudprint.GetFileListRequest
|
|
(*FileListResponse)(nil), // 18: cloudprint.FileListResponse
|
|
(*Order)(nil), // 19: cloudprint.Order
|
|
(*OrderItem)(nil), // 20: cloudprint.OrderItem
|
|
(*CreateOrderRequest)(nil), // 21: cloudprint.CreateOrderRequest
|
|
(*CreateOrderItem)(nil), // 22: cloudprint.CreateOrderItem
|
|
(*CreateOrderResponse)(nil), // 23: cloudprint.CreateOrderResponse
|
|
(*GetOrderRequest)(nil), // 24: cloudprint.GetOrderRequest
|
|
(*GetOrderListRequest)(nil), // 25: cloudprint.GetOrderListRequest
|
|
(*OrderListResponse)(nil), // 26: cloudprint.OrderListResponse
|
|
(*UpdateOrderStatusRequest)(nil), // 27: cloudprint.UpdateOrderStatusRequest
|
|
(*CancelOrderRequest)(nil), // 28: cloudprint.CancelOrderRequest
|
|
(*Printer)(nil), // 29: cloudprint.Printer
|
|
(*GetPrintersRequest)(nil), // 30: cloudprint.GetPrintersRequest
|
|
(*PrinterListResponse)(nil), // 31: cloudprint.PrinterListResponse
|
|
(*GetPrinterStatusRequest)(nil), // 32: cloudprint.GetPrinterStatusRequest
|
|
(*PrinterStatusResponse)(nil), // 33: cloudprint.PrinterStatusResponse
|
|
(*RegisterPrinterRequest)(nil), // 34: cloudprint.RegisterPrinterRequest
|
|
(*RegisterPrinterResponse)(nil), // 35: cloudprint.RegisterPrinterResponse
|
|
(*PrinterHeartbeatRequest)(nil), // 36: cloudprint.PrinterHeartbeatRequest
|
|
(*PrintJob)(nil), // 37: cloudprint.PrintJob
|
|
(*SubmitPrintJobRequest)(nil), // 38: cloudprint.SubmitPrintJobRequest
|
|
(*SubmitPrintJobResponse)(nil), // 39: cloudprint.SubmitPrintJobResponse
|
|
(*CancelPrintJobRequest)(nil), // 40: cloudprint.CancelPrintJobRequest
|
|
(*SubscribeJobsRequest)(nil), // 41: cloudprint.SubscribeJobsRequest
|
|
(*ReportJobStatusRequest)(nil), // 42: cloudprint.ReportJobStatusRequest
|
|
(*LibraryCategory)(nil), // 43: cloudprint.LibraryCategory
|
|
(*LibraryFile)(nil), // 44: cloudprint.LibraryFile
|
|
(*GetCategoriesRequest)(nil), // 45: cloudprint.GetCategoriesRequest
|
|
(*CategoryListResponse)(nil), // 46: cloudprint.CategoryListResponse
|
|
(*GetLibraryFilesRequest)(nil), // 47: cloudprint.GetLibraryFilesRequest
|
|
(*LibraryFileListResponse)(nil), // 48: cloudprint.LibraryFileListResponse
|
|
(*UploadLibraryFileRequest)(nil), // 49: cloudprint.UploadLibraryFileRequest
|
|
(*UploadLibraryFileResponse)(nil), // 50: cloudprint.UploadLibraryFileResponse
|
|
(*DeleteLibraryFileRequest)(nil), // 51: cloudprint.DeleteLibraryFileRequest
|
|
(*PriceItem)(nil), // 52: cloudprint.PriceItem
|
|
(*GetPriceListRequest)(nil), // 53: cloudprint.GetPriceListRequest
|
|
(*PriceListResponse)(nil), // 54: cloudprint.PriceListResponse
|
|
(*CreatePriceItemRequest)(nil), // 55: cloudprint.CreatePriceItemRequest
|
|
(*UpdatePriceItemRequest)(nil), // 56: cloudprint.UpdatePriceItemRequest
|
|
(*WxPayRequest)(nil), // 57: cloudprint.WxPayRequest
|
|
(*WxPayResponse)(nil), // 58: cloudprint.WxPayResponse
|
|
(*QueryPayStatusRequest)(nil), // 59: cloudprint.QueryPayStatusRequest
|
|
(*PayStatusResponse)(nil), // 60: cloudprint.PayStatusResponse
|
|
(*PayCallbackRequest)(nil), // 61: cloudprint.PayCallbackRequest
|
|
(*PayCallbackResponse)(nil), // 62: cloudprint.PayCallbackResponse
|
|
(*PayByBalanceRequest)(nil), // 63: cloudprint.PayByBalanceRequest
|
|
(*Admin)(nil), // 64: cloudprint.Admin
|
|
(*AdminLoginRequest)(nil), // 65: cloudprint.AdminLoginRequest
|
|
(*AdminLoginResponse)(nil), // 66: cloudprint.AdminLoginResponse
|
|
(*GetStatisticsRequest)(nil), // 67: cloudprint.GetStatisticsRequest
|
|
(*Statistics)(nil), // 68: cloudprint.Statistics
|
|
(*timestamppb.Timestamp)(nil), // 69: google.protobuf.Timestamp
|
|
}
|
|
var file_cloudprint_proto_depIdxs = []int32{
|
|
69, // 0: cloudprint.User.created_at:type_name -> google.protobuf.Timestamp
|
|
2, // 1: cloudprint.LoginResponse.user:type_name -> cloudprint.User
|
|
69, // 2: cloudprint.FileInfo.created_at:type_name -> google.protobuf.Timestamp
|
|
9, // 3: cloudprint.FileListResponse.files:type_name -> cloudprint.FileInfo
|
|
69, // 4: cloudprint.Order.created_at:type_name -> google.protobuf.Timestamp
|
|
69, // 5: cloudprint.Order.paid_at:type_name -> google.protobuf.Timestamp
|
|
20, // 6: cloudprint.Order.items:type_name -> cloudprint.OrderItem
|
|
9, // 7: cloudprint.OrderItem.file:type_name -> cloudprint.FileInfo
|
|
22, // 8: cloudprint.CreateOrderRequest.items:type_name -> cloudprint.CreateOrderItem
|
|
19, // 9: cloudprint.OrderListResponse.orders:type_name -> cloudprint.Order
|
|
69, // 10: cloudprint.Printer.last_heartbeat:type_name -> google.protobuf.Timestamp
|
|
29, // 11: cloudprint.PrinterListResponse.printers:type_name -> cloudprint.Printer
|
|
29, // 12: cloudprint.PrinterStatusResponse.printer:type_name -> cloudprint.Printer
|
|
69, // 13: cloudprint.PrintJob.started_at:type_name -> google.protobuf.Timestamp
|
|
69, // 14: cloudprint.PrintJob.completed_at:type_name -> google.protobuf.Timestamp
|
|
20, // 15: cloudprint.PrintJob.order_item:type_name -> cloudprint.OrderItem
|
|
9, // 16: cloudprint.LibraryFile.file:type_name -> cloudprint.FileInfo
|
|
69, // 17: cloudprint.LibraryFile.created_at:type_name -> google.protobuf.Timestamp
|
|
43, // 18: cloudprint.CategoryListResponse.categories:type_name -> cloudprint.LibraryCategory
|
|
44, // 19: cloudprint.LibraryFileListResponse.files:type_name -> cloudprint.LibraryFile
|
|
52, // 20: cloudprint.PriceListResponse.items:type_name -> cloudprint.PriceItem
|
|
69, // 21: cloudprint.Admin.created_at:type_name -> google.protobuf.Timestamp
|
|
64, // 22: cloudprint.AdminLoginResponse.admin:type_name -> cloudprint.Admin
|
|
3, // 23: cloudprint.AuthService.Login:input_type -> cloudprint.LoginRequest
|
|
5, // 24: cloudprint.AuthService.RefreshToken:input_type -> cloudprint.RefreshRequest
|
|
7, // 25: cloudprint.AuthService.GetUserInfo:input_type -> cloudprint.GetUserInfoRequest
|
|
8, // 26: cloudprint.AuthService.UpdateUser:input_type -> cloudprint.UpdateUserRequest
|
|
10, // 27: cloudprint.FileService.Upload:input_type -> cloudprint.UploadRequest
|
|
12, // 28: cloudprint.FileService.GetFile:input_type -> cloudprint.GetFileRequest
|
|
14, // 29: cloudprint.FileService.DeleteFile:input_type -> cloudprint.DeleteFileRequest
|
|
15, // 30: cloudprint.FileService.AddWatermark:input_type -> cloudprint.WatermarkRequest
|
|
17, // 31: cloudprint.FileService.GetFileList:input_type -> cloudprint.GetFileListRequest
|
|
21, // 32: cloudprint.OrderService.CreateOrder:input_type -> cloudprint.CreateOrderRequest
|
|
24, // 33: cloudprint.OrderService.GetOrder:input_type -> cloudprint.GetOrderRequest
|
|
25, // 34: cloudprint.OrderService.GetOrderList:input_type -> cloudprint.GetOrderListRequest
|
|
27, // 35: cloudprint.OrderService.UpdateOrderStatus:input_type -> cloudprint.UpdateOrderStatusRequest
|
|
28, // 36: cloudprint.OrderService.CancelOrder:input_type -> cloudprint.CancelOrderRequest
|
|
30, // 37: cloudprint.PrintService.GetPrinters:input_type -> cloudprint.GetPrintersRequest
|
|
32, // 38: cloudprint.PrintService.GetPrinterStatus:input_type -> cloudprint.GetPrinterStatusRequest
|
|
34, // 39: cloudprint.PrintService.RegisterPrinter:input_type -> cloudprint.RegisterPrinterRequest
|
|
36, // 40: cloudprint.PrintService.PrinterHeartbeat:input_type -> cloudprint.PrinterHeartbeatRequest
|
|
38, // 41: cloudprint.PrintService.SubmitPrintJob:input_type -> cloudprint.SubmitPrintJobRequest
|
|
40, // 42: cloudprint.PrintService.CancelPrintJob:input_type -> cloudprint.CancelPrintJobRequest
|
|
41, // 43: cloudprint.PrintService.SubscribeJobs:input_type -> cloudprint.SubscribeJobsRequest
|
|
42, // 44: cloudprint.PrintService.ReportJobStatus:input_type -> cloudprint.ReportJobStatusRequest
|
|
45, // 45: cloudprint.LibraryService.GetCategories:input_type -> cloudprint.GetCategoriesRequest
|
|
47, // 46: cloudprint.LibraryService.GetFiles:input_type -> cloudprint.GetLibraryFilesRequest
|
|
49, // 47: cloudprint.LibraryService.UploadFile:input_type -> cloudprint.UploadLibraryFileRequest
|
|
51, // 48: cloudprint.LibraryService.DeleteFile:input_type -> cloudprint.DeleteLibraryFileRequest
|
|
53, // 49: cloudprint.PriceService.GetPriceList:input_type -> cloudprint.GetPriceListRequest
|
|
55, // 50: cloudprint.PriceService.CreatePriceItem:input_type -> cloudprint.CreatePriceItemRequest
|
|
56, // 51: cloudprint.PriceService.UpdatePriceItem:input_type -> cloudprint.UpdatePriceItemRequest
|
|
57, // 52: cloudprint.PayService.CreateWxPayOrder:input_type -> cloudprint.WxPayRequest
|
|
59, // 53: cloudprint.PayService.QueryPayStatus:input_type -> cloudprint.QueryPayStatusRequest
|
|
61, // 54: cloudprint.PayService.HandlePayCallback:input_type -> cloudprint.PayCallbackRequest
|
|
63, // 55: cloudprint.PayService.PayByBalance:input_type -> cloudprint.PayByBalanceRequest
|
|
65, // 56: cloudprint.AdminService.Login:input_type -> cloudprint.AdminLoginRequest
|
|
67, // 57: cloudprint.AdminService.GetStatistics:input_type -> cloudprint.GetStatisticsRequest
|
|
4, // 58: cloudprint.AuthService.Login:output_type -> cloudprint.LoginResponse
|
|
6, // 59: cloudprint.AuthService.RefreshToken:output_type -> cloudprint.RefreshResponse
|
|
2, // 60: cloudprint.AuthService.GetUserInfo:output_type -> cloudprint.User
|
|
2, // 61: cloudprint.AuthService.UpdateUser:output_type -> cloudprint.User
|
|
11, // 62: cloudprint.FileService.Upload:output_type -> cloudprint.UploadResponse
|
|
13, // 63: cloudprint.FileService.GetFile:output_type -> cloudprint.FileData
|
|
0, // 64: cloudprint.FileService.DeleteFile:output_type -> cloudprint.Empty
|
|
16, // 65: cloudprint.FileService.AddWatermark:output_type -> cloudprint.WatermarkResponse
|
|
18, // 66: cloudprint.FileService.GetFileList:output_type -> cloudprint.FileListResponse
|
|
23, // 67: cloudprint.OrderService.CreateOrder:output_type -> cloudprint.CreateOrderResponse
|
|
19, // 68: cloudprint.OrderService.GetOrder:output_type -> cloudprint.Order
|
|
26, // 69: cloudprint.OrderService.GetOrderList:output_type -> cloudprint.OrderListResponse
|
|
0, // 70: cloudprint.OrderService.UpdateOrderStatus:output_type -> cloudprint.Empty
|
|
0, // 71: cloudprint.OrderService.CancelOrder:output_type -> cloudprint.Empty
|
|
31, // 72: cloudprint.PrintService.GetPrinters:output_type -> cloudprint.PrinterListResponse
|
|
33, // 73: cloudprint.PrintService.GetPrinterStatus:output_type -> cloudprint.PrinterStatusResponse
|
|
35, // 74: cloudprint.PrintService.RegisterPrinter:output_type -> cloudprint.RegisterPrinterResponse
|
|
0, // 75: cloudprint.PrintService.PrinterHeartbeat:output_type -> cloudprint.Empty
|
|
39, // 76: cloudprint.PrintService.SubmitPrintJob:output_type -> cloudprint.SubmitPrintJobResponse
|
|
0, // 77: cloudprint.PrintService.CancelPrintJob:output_type -> cloudprint.Empty
|
|
37, // 78: cloudprint.PrintService.SubscribeJobs:output_type -> cloudprint.PrintJob
|
|
0, // 79: cloudprint.PrintService.ReportJobStatus:output_type -> cloudprint.Empty
|
|
46, // 80: cloudprint.LibraryService.GetCategories:output_type -> cloudprint.CategoryListResponse
|
|
48, // 81: cloudprint.LibraryService.GetFiles:output_type -> cloudprint.LibraryFileListResponse
|
|
50, // 82: cloudprint.LibraryService.UploadFile:output_type -> cloudprint.UploadLibraryFileResponse
|
|
0, // 83: cloudprint.LibraryService.DeleteFile:output_type -> cloudprint.Empty
|
|
54, // 84: cloudprint.PriceService.GetPriceList:output_type -> cloudprint.PriceListResponse
|
|
52, // 85: cloudprint.PriceService.CreatePriceItem:output_type -> cloudprint.PriceItem
|
|
52, // 86: cloudprint.PriceService.UpdatePriceItem:output_type -> cloudprint.PriceItem
|
|
58, // 87: cloudprint.PayService.CreateWxPayOrder:output_type -> cloudprint.WxPayResponse
|
|
60, // 88: cloudprint.PayService.QueryPayStatus:output_type -> cloudprint.PayStatusResponse
|
|
62, // 89: cloudprint.PayService.HandlePayCallback:output_type -> cloudprint.PayCallbackResponse
|
|
1, // 90: cloudprint.PayService.PayByBalance:output_type -> cloudprint.StatusResponse
|
|
66, // 91: cloudprint.AdminService.Login:output_type -> cloudprint.AdminLoginResponse
|
|
68, // 92: cloudprint.AdminService.GetStatistics:output_type -> cloudprint.Statistics
|
|
58, // [58:93] is the sub-list for method output_type
|
|
23, // [23:58] is the sub-list for method input_type
|
|
23, // [23:23] is the sub-list for extension type_name
|
|
23, // [23:23] is the sub-list for extension extendee
|
|
0, // [0:23] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_cloudprint_proto_init() }
|
|
func file_cloudprint_proto_init() {
|
|
if File_cloudprint_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cloudprint_proto_rawDesc), len(file_cloudprint_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 69,
|
|
NumExtensions: 0,
|
|
NumServices: 8,
|
|
},
|
|
GoTypes: file_cloudprint_proto_goTypes,
|
|
DependencyIndexes: file_cloudprint_proto_depIdxs,
|
|
MessageInfos: file_cloudprint_proto_msgTypes,
|
|
}.Build()
|
|
File_cloudprint_proto = out.File
|
|
file_cloudprint_proto_goTypes = nil
|
|
file_cloudprint_proto_depIdxs = nil
|
|
}
|