Files
saasapi/cmd.pb.go
2025-05-21 17:06:32 +08:00

2091 lines
60 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v4.24.4
// source: cmd.proto
package saasapi
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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)
)
// ErrorCode 返回码
type ErrorCode int32
const (
ErrorCode_SUCC ErrorCode = 0 // 成功
ErrorCode_INVALID_ACCOUNT ErrorCode = 101 // Account不合法
ErrorCode_INVALID_TIMESTAMP ErrorCode = 102 // 头信息缺少时间戳或不正确
ErrorCode_INVALID_SIGNATURE ErrorCode = 103 // 头信息缺少签名
ErrorCode_AUTH_FAIL ErrorCode = 104 // 签名较验失败
ErrorCode_DISABLED_ACCOUNT ErrorCode = 105 // 账号已禁用
ErrorCode_INVALID_CONTENT_TYPE ErrorCode = 110 // 非法的Content-Type
ErrorCode_READ_BODY ErrorCode = 111 // 读取 http body 失败
ErrorCode_DECODE_BODY ErrorCode = 112 // 解码 body 失败
ErrorCode_QPS_LIMIT ErrorCode = 113 // 并发请求量超限
ErrorCode_CMDS_LIMIT ErrorCode = 114 // 命令数量超限
ErrorCode_CMDS_NULL ErrorCode = 115 // 命令为空
ErrorCode_DATASPACE_NOT_EXISTS ErrorCode = 116 // 数据空间不存在
ErrorCode_TASK_EXISTS ErrorCode = 120 // 任务已存在
ErrorCode_TASK_IS_NOT_EXISTS ErrorCode = 121 // 任务不存在
ErrorCode_TASK_NUM_LIMIT ErrorCode = 122 // 任务数达到上限
ErrorCode_TASK_BLOCK_SIZE ErrorCode = 123 // 块大小超限
ErrorCode_TASK_TOTAL_SIZE ErrorCode = 124 // 总文件大小超限
ErrorCode_TASK_MARSHAL ErrorCode = 125 // 序列化
ErrorCode_TASK_IS_WATING ErrorCode = 130 // 任务未上传完毕
ErrorCode_TASK_IS_RUNNING ErrorCode = 131 // 任务已经在运行
ErrorCode_TASK_FAILED ErrorCode = 132 // 任务已失败
ErrorCode_TASK_FINISHED ErrorCode = 133 // 任务已完成
ErrorCode_DATA_ERROR ErrorCode = 201 // 数据错误
ErrorCode_CMD_ERROR ErrorCode = 202 // 命令行执行错误
)
// Enum value maps for ErrorCode.
var (
ErrorCode_name = map[int32]string{
0: "SUCC",
101: "INVALID_ACCOUNT",
102: "INVALID_TIMESTAMP",
103: "INVALID_SIGNATURE",
104: "AUTH_FAIL",
105: "DISABLED_ACCOUNT",
110: "INVALID_CONTENT_TYPE",
111: "READ_BODY",
112: "DECODE_BODY",
113: "QPS_LIMIT",
114: "CMDS_LIMIT",
115: "CMDS_NULL",
116: "DATASPACE_NOT_EXISTS",
120: "TASK_EXISTS",
121: "TASK_IS_NOT_EXISTS",
122: "TASK_NUM_LIMIT",
123: "TASK_BLOCK_SIZE",
124: "TASK_TOTAL_SIZE",
125: "TASK_MARSHAL",
130: "TASK_IS_WATING",
131: "TASK_IS_RUNNING",
132: "TASK_FAILED",
133: "TASK_FINISHED",
201: "DATA_ERROR",
202: "CMD_ERROR",
}
ErrorCode_value = map[string]int32{
"SUCC": 0,
"INVALID_ACCOUNT": 101,
"INVALID_TIMESTAMP": 102,
"INVALID_SIGNATURE": 103,
"AUTH_FAIL": 104,
"DISABLED_ACCOUNT": 105,
"INVALID_CONTENT_TYPE": 110,
"READ_BODY": 111,
"DECODE_BODY": 112,
"QPS_LIMIT": 113,
"CMDS_LIMIT": 114,
"CMDS_NULL": 115,
"DATASPACE_NOT_EXISTS": 116,
"TASK_EXISTS": 120,
"TASK_IS_NOT_EXISTS": 121,
"TASK_NUM_LIMIT": 122,
"TASK_BLOCK_SIZE": 123,
"TASK_TOTAL_SIZE": 124,
"TASK_MARSHAL": 125,
"TASK_IS_WATING": 130,
"TASK_IS_RUNNING": 131,
"TASK_FAILED": 132,
"TASK_FINISHED": 133,
"DATA_ERROR": 201,
"CMD_ERROR": 202,
}
)
func (x ErrorCode) Enum() *ErrorCode {
p := new(ErrorCode)
*p = x
return p
}
func (x ErrorCode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ErrorCode) Descriptor() protoreflect.EnumDescriptor {
return file_cmd_proto_enumTypes[0].Descriptor()
}
func (ErrorCode) Type() protoreflect.EnumType {
return &file_cmd_proto_enumTypes[0]
}
func (x ErrorCode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ErrorCode.Descriptor instead.
func (ErrorCode) EnumDescriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{0}
}
type CmdErrorCode int32
const (
CmdErrorCode_OK CmdErrorCode = 0 // 成功
)
// Enum value maps for CmdErrorCode.
var (
CmdErrorCode_name = map[int32]string{
0: "OK",
}
CmdErrorCode_value = map[string]int32{
"OK": 0,
}
)
func (x CmdErrorCode) Enum() *CmdErrorCode {
p := new(CmdErrorCode)
*p = x
return p
}
func (x CmdErrorCode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CmdErrorCode) Descriptor() protoreflect.EnumDescriptor {
return file_cmd_proto_enumTypes[1].Descriptor()
}
func (CmdErrorCode) Type() protoreflect.EnumType {
return &file_cmd_proto_enumTypes[1]
}
func (x CmdErrorCode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CmdErrorCode.Descriptor instead.
func (CmdErrorCode) EnumDescriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{1}
}
type TaskStatus int32
const (
TaskStatus_ALL TaskStatus = 0 // 全部
TaskStatus_WAITING TaskStatus = 1 // 等待中
TaskStatus_READY TaskStatus = 2 // 上传完毕
TaskStatus_RUNNING TaskStatus = 3 // 运行中
TaskStatus_SUCCESS TaskStatus = 4 // 成功
TaskStatus_FAIL TaskStatus = 5 // 失败
TaskStatus_DELETED TaskStatus = 10 // 已删除,仅在执行删除成功时返回
)
// Enum value maps for TaskStatus.
var (
TaskStatus_name = map[int32]string{
0: "ALL",
1: "WAITING",
2: "READY",
3: "RUNNING",
4: "SUCCESS",
5: "FAIL",
10: "DELETED",
}
TaskStatus_value = map[string]int32{
"ALL": 0,
"WAITING": 1,
"READY": 2,
"RUNNING": 3,
"SUCCESS": 4,
"FAIL": 5,
"DELETED": 10,
}
)
func (x TaskStatus) Enum() *TaskStatus {
p := new(TaskStatus)
*p = x
return p
}
func (x TaskStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TaskStatus) Descriptor() protoreflect.EnumDescriptor {
return file_cmd_proto_enumTypes[2].Descriptor()
}
func (TaskStatus) Type() protoreflect.EnumType {
return &file_cmd_proto_enumTypes[2]
}
func (x TaskStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TaskStatus.Descriptor instead.
func (TaskStatus) EnumDescriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{2}
}
// SaasReq 命令请求
type SaasReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Cmd:
//
// *SaasReq_Read
// *SaasReq_Write
// *SaasReq_ColumnWrite
// *SaasReq_TaskCreate
// *SaasReq_TaskList
// *SaasReq_TaskRun
// *SaasReq_TaskDelete
// *SaasReq_TaskInfo
Cmd isSaasReq_Cmd `protobuf_oneof:"cmd"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SaasReq) Reset() {
*x = SaasReq{}
mi := &file_cmd_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SaasReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SaasReq) ProtoMessage() {}
func (x *SaasReq) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 SaasReq.ProtoReflect.Descriptor instead.
func (*SaasReq) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{0}
}
func (x *SaasReq) GetCmd() isSaasReq_Cmd {
if x != nil {
return x.Cmd
}
return nil
}
func (x *SaasReq) GetRead() *Read {
if x != nil {
if x, ok := x.Cmd.(*SaasReq_Read); ok {
return x.Read
}
}
return nil
}
func (x *SaasReq) GetWrite() *Write {
if x != nil {
if x, ok := x.Cmd.(*SaasReq_Write); ok {
return x.Write
}
}
return nil
}
func (x *SaasReq) GetColumnWrite() *ColumnWrite {
if x != nil {
if x, ok := x.Cmd.(*SaasReq_ColumnWrite); ok {
return x.ColumnWrite
}
}
return nil
}
func (x *SaasReq) GetTaskCreate() *Task {
if x != nil {
if x, ok := x.Cmd.(*SaasReq_TaskCreate); ok {
return x.TaskCreate
}
}
return nil
}
func (x *SaasReq) GetTaskList() *TaskList {
if x != nil {
if x, ok := x.Cmd.(*SaasReq_TaskList); ok {
return x.TaskList
}
}
return nil
}
func (x *SaasReq) GetTaskRun() *TaskRun {
if x != nil {
if x, ok := x.Cmd.(*SaasReq_TaskRun); ok {
return x.TaskRun
}
}
return nil
}
func (x *SaasReq) GetTaskDelete() *TaskDelete {
if x != nil {
if x, ok := x.Cmd.(*SaasReq_TaskDelete); ok {
return x.TaskDelete
}
}
return nil
}
func (x *SaasReq) GetTaskInfo() *TaskInfo {
if x != nil {
if x, ok := x.Cmd.(*SaasReq_TaskInfo); ok {
return x.TaskInfo
}
}
return nil
}
type isSaasReq_Cmd interface {
isSaasReq_Cmd()
}
type SaasReq_Read struct {
Read *Read `protobuf:"bytes,10,opt,name=read,proto3,oneof"` // 批量读取
}
type SaasReq_Write struct {
Write *Write `protobuf:"bytes,11,opt,name=write,proto3,oneof"` // 批量写入
}
type SaasReq_ColumnWrite struct {
ColumnWrite *ColumnWrite `protobuf:"bytes,12,opt,name=column_write,json=columnWrite,proto3,oneof"` // 全量列式写入
}
type SaasReq_TaskCreate struct {
TaskCreate *Task `protobuf:"bytes,20,opt,name=task_create,json=taskCreate,proto3,oneof"` // 任务创建
}
type SaasReq_TaskList struct {
TaskList *TaskList `protobuf:"bytes,21,opt,name=task_list,json=taskList,proto3,oneof"` // 列出任务
}
type SaasReq_TaskRun struct {
TaskRun *TaskRun `protobuf:"bytes,22,opt,name=task_run,json=taskRun,proto3,oneof"` // 执行任务
}
type SaasReq_TaskDelete struct {
TaskDelete *TaskDelete `protobuf:"bytes,23,opt,name=task_delete,json=taskDelete,proto3,oneof"` // 删除任务
}
type SaasReq_TaskInfo struct {
TaskInfo *TaskInfo `protobuf:"bytes,24,opt,name=task_info,json=taskInfo,proto3,oneof"` // 任务详情
}
func (*SaasReq_Read) isSaasReq_Cmd() {}
func (*SaasReq_Write) isSaasReq_Cmd() {}
func (*SaasReq_ColumnWrite) isSaasReq_Cmd() {}
func (*SaasReq_TaskCreate) isSaasReq_Cmd() {}
func (*SaasReq_TaskList) isSaasReq_Cmd() {}
func (*SaasReq_TaskRun) isSaasReq_Cmd() {}
func (*SaasReq_TaskDelete) isSaasReq_Cmd() {}
func (*SaasReq_TaskInfo) isSaasReq_Cmd() {}
// Read 批量读取命令
type Read struct {
state protoimpl.MessageState `protogen:"open.v1"`
DataspaceId string `protobuf:"bytes,1,opt,name=dataspace_id,json=dataspaceId,proto3" json:"dataspace_id,omitempty"` // 数据空间ID
Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` // 小程序/小游戏/公众号/视频号的appid
ReadItems []*ReadItem `protobuf:"bytes,3,rep,name=read_items,json=readItems,proto3" json:"read_items,omitempty"` // 批量获取命令
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Read) Reset() {
*x = Read{}
mi := &file_cmd_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Read) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Read) ProtoMessage() {}
func (x *Read) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 Read.ProtoReflect.Descriptor instead.
func (*Read) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{1}
}
func (x *Read) GetDataspaceId() string {
if x != nil {
return x.DataspaceId
}
return ""
}
func (x *Read) GetAppid() string {
if x != nil {
return x.Appid
}
return ""
}
func (x *Read) GetReadItems() []*ReadItem {
if x != nil {
return x.ReadItems
}
return nil
}
// ReadItem 读取命令
type ReadItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Userid string `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid,omitempty"` // 用户ID
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ReadItem) Reset() {
*x = ReadItem{}
mi := &file_cmd_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ReadItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReadItem) ProtoMessage() {}
func (x *ReadItem) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 ReadItem.ProtoReflect.Descriptor instead.
func (*ReadItem) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{2}
}
func (x *ReadItem) GetUserid() string {
if x != nil {
return x.Userid
}
return ""
}
// Write 批量写入命令
type Write struct {
state protoimpl.MessageState `protogen:"open.v1"`
DataspaceId string `protobuf:"bytes,1,opt,name=dataspace_id,json=dataspaceId,proto3" json:"dataspace_id,omitempty"` // 数据空间ID
Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` // 小程序/小游戏/公众号/视频号的appid
IsClearAllFirst bool `protobuf:"varint,3,opt,name=is_clear_all_first,json=isClearAllFirst,proto3" json:"is_clear_all_first,omitempty"` // 是否先清空该用户所有数据
WriteItems []*WriteItem `protobuf:"bytes,4,rep,name=write_items,json=writeItems,proto3" json:"write_items,omitempty"` // 批量写入命令
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Write) Reset() {
*x = Write{}
mi := &file_cmd_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Write) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Write) ProtoMessage() {}
func (x *Write) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 Write.ProtoReflect.Descriptor instead.
func (*Write) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{3}
}
func (x *Write) GetDataspaceId() string {
if x != nil {
return x.DataspaceId
}
return ""
}
func (x *Write) GetAppid() string {
if x != nil {
return x.Appid
}
return ""
}
func (x *Write) GetIsClearAllFirst() bool {
if x != nil {
return x.IsClearAllFirst
}
return false
}
func (x *Write) GetWriteItems() []*WriteItem {
if x != nil {
return x.WriteItems
}
return nil
}
// WriteItem 写入命令
type WriteItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Userid string `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid,omitempty"` // 用户ID
WriteBytes *Bytes `protobuf:"bytes,2,opt,name=write_bytes,json=writeBytes,proto3" json:"write_bytes,omitempty"` // byte区域
WriteUint32S *Uint32S `protobuf:"bytes,3,opt,name=write_uint32s,json=writeUint32s,proto3" json:"write_uint32s,omitempty"` // uint32区域
WriteFlagsWithExpire *FlagsWithExpire `protobuf:"bytes,4,opt,name=write_flags_with_expire,json=writeFlagsWithExpire,proto3" json:"write_flags_with_expire,omitempty"` // 标志位区域
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WriteItem) Reset() {
*x = WriteItem{}
mi := &file_cmd_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WriteItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WriteItem) ProtoMessage() {}
func (x *WriteItem) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 WriteItem.ProtoReflect.Descriptor instead.
func (*WriteItem) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{4}
}
func (x *WriteItem) GetUserid() string {
if x != nil {
return x.Userid
}
return ""
}
func (x *WriteItem) GetWriteBytes() *Bytes {
if x != nil {
return x.WriteBytes
}
return nil
}
func (x *WriteItem) GetWriteUint32S() *Uint32S {
if x != nil {
return x.WriteUint32S
}
return nil
}
func (x *WriteItem) GetWriteFlagsWithExpire() *FlagsWithExpire {
if x != nil {
return x.WriteFlagsWithExpire
}
return nil
}
// Bytes 写入byte区域
type Bytes struct {
state protoimpl.MessageState `protogen:"open.v1"`
Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` // 写入的byte
Index_1 uint64 `protobuf:"varint,2,opt,name=index_1,json=index1,proto3" json:"index_1,omitempty"` // 写入byte的索引值(0..63)
Index_2 uint64 `protobuf:"varint,3,opt,name=index_2,json=index2,proto3" json:"index_2,omitempty"` // 写入byte的索引值(64..127)
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Bytes) Reset() {
*x = Bytes{}
mi := &file_cmd_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Bytes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Bytes) ProtoMessage() {}
func (x *Bytes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 Bytes.ProtoReflect.Descriptor instead.
func (*Bytes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{5}
}
func (x *Bytes) GetBytes() []byte {
if x != nil {
return x.Bytes
}
return nil
}
func (x *Bytes) GetIndex_1() uint64 {
if x != nil {
return x.Index_1
}
return 0
}
func (x *Bytes) GetIndex_2() uint64 {
if x != nil {
return x.Index_2
}
return 0
}
// Uint32s 写入uint32区域
type Uint32S struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uint32S []uint32 `protobuf:"varint,1,rep,packed,name=uint32s,proto3" json:"uint32s,omitempty"` // 写入的uint32
Index_1 uint64 `protobuf:"varint,2,opt,name=index_1,json=index1,proto3" json:"index_1,omitempty"` // 写入uint32的索引值(0..15) 最多 16 个
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Uint32S) Reset() {
*x = Uint32S{}
mi := &file_cmd_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Uint32S) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Uint32S) ProtoMessage() {}
func (x *Uint32S) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 Uint32S.ProtoReflect.Descriptor instead.
func (*Uint32S) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{6}
}
func (x *Uint32S) GetUint32S() []uint32 {
if x != nil {
return x.Uint32S
}
return nil
}
func (x *Uint32S) GetIndex_1() uint64 {
if x != nil {
return x.Index_1
}
return 0
}
// FlagsWithExpire 写入标志位区域
type FlagsWithExpire struct {
state protoimpl.MessageState `protogen:"open.v1"`
FlagsWithExpire []*FlagWithExpire `protobuf:"bytes,1,rep,name=flags_with_expire,json=flagsWithExpire,proto3" json:"flags_with_expire,omitempty"` // 写入的标志位
Index_1 uint64 `protobuf:"varint,2,opt,name=index_1,json=index1,proto3" json:"index_1,omitempty"` // 写入标志位的索引值
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FlagsWithExpire) Reset() {
*x = FlagsWithExpire{}
mi := &file_cmd_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FlagsWithExpire) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FlagsWithExpire) ProtoMessage() {}
func (x *FlagsWithExpire) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 FlagsWithExpire.ProtoReflect.Descriptor instead.
func (*FlagsWithExpire) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{7}
}
func (x *FlagsWithExpire) GetFlagsWithExpire() []*FlagWithExpire {
if x != nil {
return x.FlagsWithExpire
}
return nil
}
func (x *FlagsWithExpire) GetIndex_1() uint64 {
if x != nil {
return x.Index_1
}
return 0
}
// FlagWithExpire 标志位
type FlagWithExpire struct {
state protoimpl.MessageState `protogen:"open.v1"`
Flag bool `protobuf:"varint,1,opt,name=flag,proto3" json:"flag,omitempty"` // 标志位
DefaultFlag bool `protobuf:"varint,2,opt,name=default_flag,json=defaultFlag,proto3" json:"default_flag,omitempty"` // 默认值。超时后则回到默认值。
Expire uint32 `protobuf:"varint,3,opt,name=expire,proto3" json:"expire,omitempty"` // 过期时间,为 0 则永不过期
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FlagWithExpire) Reset() {
*x = FlagWithExpire{}
mi := &file_cmd_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FlagWithExpire) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FlagWithExpire) ProtoMessage() {}
func (x *FlagWithExpire) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 FlagWithExpire.ProtoReflect.Descriptor instead.
func (*FlagWithExpire) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{8}
}
func (x *FlagWithExpire) GetFlag() bool {
if x != nil {
return x.Flag
}
return false
}
func (x *FlagWithExpire) GetDefaultFlag() bool {
if x != nil {
return x.DefaultFlag
}
return false
}
func (x *FlagWithExpire) GetExpire() uint32 {
if x != nil {
return x.Expire
}
return 0
}
// ColumnWrite 全量列式写入命令
type ColumnWrite struct {
state protoimpl.MessageState `protogen:"open.v1"`
DataspaceId string `protobuf:"bytes,1,opt,name=dataspace_id,json=dataspaceId,proto3" json:"dataspace_id,omitempty"` // 数据空间ID
IsClearAllFirst bool `protobuf:"varint,2,opt,name=is_clear_all_first,json=isClearAllFirst,proto3" json:"is_clear_all_first,omitempty"` // 是否先执行清空
WriteBytes *Bytes `protobuf:"bytes,3,opt,name=write_bytes,json=writeBytes,proto3" json:"write_bytes,omitempty"` // byte区域
WriteUint32S *Uint32S `protobuf:"bytes,4,opt,name=write_uint32s,json=writeUint32s,proto3" json:"write_uint32s,omitempty"` // uint32区域
WriteFlagsWithExpire *FlagsWithExpire `protobuf:"bytes,5,opt,name=write_flags_with_expire,json=writeFlagsWithExpire,proto3" json:"write_flags_with_expire,omitempty"` // 标志位区域
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ColumnWrite) Reset() {
*x = ColumnWrite{}
mi := &file_cmd_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ColumnWrite) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ColumnWrite) ProtoMessage() {}
func (x *ColumnWrite) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 ColumnWrite.ProtoReflect.Descriptor instead.
func (*ColumnWrite) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{9}
}
func (x *ColumnWrite) GetDataspaceId() string {
if x != nil {
return x.DataspaceId
}
return ""
}
func (x *ColumnWrite) GetIsClearAllFirst() bool {
if x != nil {
return x.IsClearAllFirst
}
return false
}
func (x *ColumnWrite) GetWriteBytes() *Bytes {
if x != nil {
return x.WriteBytes
}
return nil
}
func (x *ColumnWrite) GetWriteUint32S() *Uint32S {
if x != nil {
return x.WriteUint32S
}
return nil
}
func (x *ColumnWrite) GetWriteFlagsWithExpire() *FlagsWithExpire {
if x != nil {
return x.WriteFlagsWithExpire
}
return nil
}
type Task struct {
state protoimpl.MessageState `protogen:"open.v1"`
DataspaceId string `protobuf:"bytes,1,opt,name=dataspace_id,json=dataspaceId,proto3" json:"dataspace_id,omitempty"` // 数据空间ID
Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` // 小程序/小游戏/公众号/视频号的appid
TaskSha256 string `protobuf:"bytes,3,opt,name=task_sha256,json=taskSha256,proto3" json:"task_sha256,omitempty"` // 任务sha256
TaskDescription string `protobuf:"bytes,4,opt,name=task_description,json=taskDescription,proto3" json:"task_description,omitempty"` // 任务描述
TaskFileInfos []*FileInfo `protobuf:"bytes,5,rep,name=task_file_infos,json=taskFileInfos,proto3" json:"task_file_infos,omitempty"` // 文件列表
TaskBlockSize uint64 `protobuf:"varint,6,opt,name=task_block_size,json=taskBlockSize,proto3" json:"task_block_size,omitempty"` // 文件块字节大小推荐200M
// 以下字段只在返回时填写,用于提供服务端的任务状态。在请求时填写会被忽略
CreateTime string `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 创建时间
RunTime string `protobuf:"bytes,11,opt,name=run_time,json=runTime,proto3" json:"run_time,omitempty"` // 运行时间
FinishTime string `protobuf:"bytes,12,opt,name=finish_time,json=finishTime,proto3" json:"finish_time,omitempty"` // 完成时间
Status TaskStatus `protobuf:"varint,15,opt,name=status,proto3,enum=saasapi.TaskStatus" json:"status,omitempty"` // 任务状态
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Task) Reset() {
*x = Task{}
mi := &file_cmd_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Task) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Task) ProtoMessage() {}
func (x *Task) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 Task.ProtoReflect.Descriptor instead.
func (*Task) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{10}
}
func (x *Task) GetDataspaceId() string {
if x != nil {
return x.DataspaceId
}
return ""
}
func (x *Task) GetAppid() string {
if x != nil {
return x.Appid
}
return ""
}
func (x *Task) GetTaskSha256() string {
if x != nil {
return x.TaskSha256
}
return ""
}
func (x *Task) GetTaskDescription() string {
if x != nil {
return x.TaskDescription
}
return ""
}
func (x *Task) GetTaskFileInfos() []*FileInfo {
if x != nil {
return x.TaskFileInfos
}
return nil
}
func (x *Task) GetTaskBlockSize() uint64 {
if x != nil {
return x.TaskBlockSize
}
return 0
}
func (x *Task) GetCreateTime() string {
if x != nil {
return x.CreateTime
}
return ""
}
func (x *Task) GetRunTime() string {
if x != nil {
return x.RunTime
}
return ""
}
func (x *Task) GetFinishTime() string {
if x != nil {
return x.FinishTime
}
return ""
}
func (x *Task) GetStatus() TaskStatus {
if x != nil {
return x.Status
}
return TaskStatus_ALL
}
// TaskList 任务列表
type TaskList struct {
state protoimpl.MessageState `protogen:"open.v1"`
StatusFilter TaskStatus `protobuf:"varint,1,opt,name=status_filter,json=statusFilter,proto3,enum=saasapi.TaskStatus" json:"status_filter,omitempty"` // 只显示指定状态的任务
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TaskList) Reset() {
*x = TaskList{}
mi := &file_cmd_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TaskList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TaskList) ProtoMessage() {}
func (x *TaskList) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 TaskList.ProtoReflect.Descriptor instead.
func (*TaskList) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{11}
}
func (x *TaskList) GetStatusFilter() TaskStatus {
if x != nil {
return x.StatusFilter
}
return TaskStatus_ALL
}
// TaskRun 任务运行
type TaskRun struct {
state protoimpl.MessageState `protogen:"open.v1"`
TaskSha256 string `protobuf:"bytes,1,opt,name=task_sha256,json=taskSha256,proto3" json:"task_sha256,omitempty"` // 任务sha256
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TaskRun) Reset() {
*x = TaskRun{}
mi := &file_cmd_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TaskRun) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TaskRun) ProtoMessage() {}
func (x *TaskRun) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 TaskRun.ProtoReflect.Descriptor instead.
func (*TaskRun) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{12}
}
func (x *TaskRun) GetTaskSha256() string {
if x != nil {
return x.TaskSha256
}
return ""
}
// TaskDelete 取消任务
type TaskDelete struct {
state protoimpl.MessageState `protogen:"open.v1"`
TaskSha256 string `protobuf:"bytes,1,opt,name=task_sha256,json=taskSha256,proto3" json:"task_sha256,omitempty"` // 任务sha256
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TaskDelete) Reset() {
*x = TaskDelete{}
mi := &file_cmd_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TaskDelete) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TaskDelete) ProtoMessage() {}
func (x *TaskDelete) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 TaskDelete.ProtoReflect.Descriptor instead.
func (*TaskDelete) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{13}
}
func (x *TaskDelete) GetTaskSha256() string {
if x != nil {
return x.TaskSha256
}
return ""
}
// TaskInfo 任务详情
type TaskInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
TaskSha256 string `protobuf:"bytes,1,opt,name=task_sha256,json=taskSha256,proto3" json:"task_sha256,omitempty"` // 任务sha256
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TaskInfo) Reset() {
*x = TaskInfo{}
mi := &file_cmd_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TaskInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TaskInfo) ProtoMessage() {}
func (x *TaskInfo) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 TaskInfo.ProtoReflect.Descriptor instead.
func (*TaskInfo) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{14}
}
func (x *TaskInfo) GetTaskSha256() string {
if x != nil {
return x.TaskSha256
}
return ""
}
type FileInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // 文件名
FileSize uint64 `protobuf:"varint,2,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // 文件大小
FileBlocks []*FileBlock `protobuf:"bytes,3,rep,name=file_blocks,json=fileBlocks,proto3" json:"file_blocks,omitempty"` // 文件块列表
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FileInfo) Reset() {
*x = FileInfo{}
mi := &file_cmd_proto_msgTypes[15]
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_cmd_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 FileInfo.ProtoReflect.Descriptor instead.
func (*FileInfo) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{15}
}
func (x *FileInfo) GetFileName() string {
if x != nil {
return x.FileName
}
return ""
}
func (x *FileInfo) GetFileSize() uint64 {
if x != nil {
return x.FileSize
}
return 0
}
func (x *FileInfo) GetFileBlocks() []*FileBlock {
if x != nil {
return x.FileBlocks
}
return nil
}
type FileBlock struct {
state protoimpl.MessageState `protogen:"open.v1"`
BlockSha256 string `protobuf:"bytes,1,opt,name=block_sha256,json=blockSha256,proto3" json:"block_sha256,omitempty"` // 块的sha256
BlockLength uint64 `protobuf:"varint,2,opt,name=block_length,json=blockLength,proto3" json:"block_length,omitempty"` // 块的字节长度
Uploaded bool `protobuf:"varint,3,opt,name=uploaded,proto3" json:"uploaded,omitempty"` // 是否已上传在TaskCreate/TaskInfo请求返回
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FileBlock) Reset() {
*x = FileBlock{}
mi := &file_cmd_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FileBlock) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FileBlock) ProtoMessage() {}
func (x *FileBlock) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 FileBlock.ProtoReflect.Descriptor instead.
func (*FileBlock) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{16}
}
func (x *FileBlock) GetBlockSha256() string {
if x != nil {
return x.BlockSha256
}
return ""
}
func (x *FileBlock) GetBlockLength() uint64 {
if x != nil {
return x.BlockLength
}
return 0
}
func (x *FileBlock) GetUploaded() bool {
if x != nil {
return x.Uploaded
}
return false
}
// SaasRes 命令返回
type SaasRes struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=saasapi.ErrorCode" json:"code,omitempty"` // 返回码
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // 返回信息的文本提示
// Types that are valid to be assigned to Res:
//
// *SaasRes_ReadRes
// *SaasRes_WriteRes
// *SaasRes_TaskCreateRes
// *SaasRes_TaskListRes
// *SaasRes_TaskRunRes
// *SaasRes_TaskDeleteRes
// *SaasRes_TaskInfoRes
Res isSaasRes_Res `protobuf_oneof:"res"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SaasRes) Reset() {
*x = SaasRes{}
mi := &file_cmd_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SaasRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SaasRes) ProtoMessage() {}
func (x *SaasRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 SaasRes.ProtoReflect.Descriptor instead.
func (*SaasRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{17}
}
func (x *SaasRes) GetCode() ErrorCode {
if x != nil {
return x.Code
}
return ErrorCode_SUCC
}
func (x *SaasRes) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *SaasRes) GetRes() isSaasRes_Res {
if x != nil {
return x.Res
}
return nil
}
func (x *SaasRes) GetReadRes() *ReadRes {
if x != nil {
if x, ok := x.Res.(*SaasRes_ReadRes); ok {
return x.ReadRes
}
}
return nil
}
func (x *SaasRes) GetWriteRes() *WriteRes {
if x != nil {
if x, ok := x.Res.(*SaasRes_WriteRes); ok {
return x.WriteRes
}
}
return nil
}
func (x *SaasRes) GetTaskCreateRes() *Task {
if x != nil {
if x, ok := x.Res.(*SaasRes_TaskCreateRes); ok {
return x.TaskCreateRes
}
}
return nil
}
func (x *SaasRes) GetTaskListRes() *TaskListRes {
if x != nil {
if x, ok := x.Res.(*SaasRes_TaskListRes); ok {
return x.TaskListRes
}
}
return nil
}
func (x *SaasRes) GetTaskRunRes() *Task {
if x != nil {
if x, ok := x.Res.(*SaasRes_TaskRunRes); ok {
return x.TaskRunRes
}
}
return nil
}
func (x *SaasRes) GetTaskDeleteRes() *Task {
if x != nil {
if x, ok := x.Res.(*SaasRes_TaskDeleteRes); ok {
return x.TaskDeleteRes
}
}
return nil
}
func (x *SaasRes) GetTaskInfoRes() *Task {
if x != nil {
if x, ok := x.Res.(*SaasRes_TaskInfoRes); ok {
return x.TaskInfoRes
}
}
return nil
}
type isSaasRes_Res interface {
isSaasRes_Res()
}
type SaasRes_ReadRes struct {
ReadRes *ReadRes `protobuf:"bytes,10,opt,name=read_res,json=readRes,proto3,oneof"` // 读取命令返回
}
type SaasRes_WriteRes struct {
WriteRes *WriteRes `protobuf:"bytes,11,opt,name=write_res,json=writeRes,proto3,oneof"` // 写入命令返回
}
type SaasRes_TaskCreateRes struct {
TaskCreateRes *Task `protobuf:"bytes,20,opt,name=task_create_res,json=taskCreateRes,proto3,oneof"` // 创建任务返回状态
}
type SaasRes_TaskListRes struct {
TaskListRes *TaskListRes `protobuf:"bytes,21,opt,name=task_list_res,json=taskListRes,proto3,oneof"` // 任务列表返回状态
}
type SaasRes_TaskRunRes struct {
TaskRunRes *Task `protobuf:"bytes,22,opt,name=task_run_res,json=taskRunRes,proto3,oneof"` // 运行任务返回状态
}
type SaasRes_TaskDeleteRes struct {
TaskDeleteRes *Task `protobuf:"bytes,23,opt,name=task_delete_res,json=taskDeleteRes,proto3,oneof"` // 删除任务返回状态
}
type SaasRes_TaskInfoRes struct {
TaskInfoRes *Task `protobuf:"bytes,24,opt,name=task_info_res,json=taskInfoRes,proto3,oneof"` // 任务详情返回状态
}
func (*SaasRes_ReadRes) isSaasRes_Res() {}
func (*SaasRes_WriteRes) isSaasRes_Res() {}
func (*SaasRes_TaskCreateRes) isSaasRes_Res() {}
func (*SaasRes_TaskListRes) isSaasRes_Res() {}
func (*SaasRes_TaskRunRes) isSaasRes_Res() {}
func (*SaasRes_TaskDeleteRes) isSaasRes_Res() {}
func (*SaasRes_TaskInfoRes) isSaasRes_Res() {}
type ReadRes struct {
state protoimpl.MessageState `protogen:"open.v1"`
SuccCmdCount uint32 `protobuf:"varint,1,opt,name=succ_cmd_count,json=succCmdCount,proto3" json:"succ_cmd_count,omitempty"` // 成功的命令数量
FailCmdCount uint32 `protobuf:"varint,2,opt,name=fail_cmd_count,json=failCmdCount,proto3" json:"fail_cmd_count,omitempty"` // 失败的命令数量
CmdRes []*ValueItem `protobuf:"bytes,3,rep,name=cmd_res,json=cmdRes,proto3" json:"cmd_res,omitempty"` // 返回的命令
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ReadRes) Reset() {
*x = ReadRes{}
mi := &file_cmd_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ReadRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReadRes) ProtoMessage() {}
func (x *ReadRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 ReadRes.ProtoReflect.Descriptor instead.
func (*ReadRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{18}
}
func (x *ReadRes) GetSuccCmdCount() uint32 {
if x != nil {
return x.SuccCmdCount
}
return 0
}
func (x *ReadRes) GetFailCmdCount() uint32 {
if x != nil {
return x.FailCmdCount
}
return 0
}
func (x *ReadRes) GetCmdRes() []*ValueItem {
if x != nil {
return x.CmdRes
}
return nil
}
type WriteRes struct {
state protoimpl.MessageState `protogen:"open.v1"`
// uint32 succ_cmd_count = 1; // 成功的命令数量
// uint32 fail_cmd_count = 2; // 失败的命令数量
FailedUserid []string `protobuf:"bytes,3,rep,name=failed_userid,json=failedUserid,proto3" json:"failed_userid,omitempty"` // 返回的失败的用户ID
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WriteRes) Reset() {
*x = WriteRes{}
mi := &file_cmd_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WriteRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WriteRes) ProtoMessage() {}
func (x *WriteRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 WriteRes.ProtoReflect.Descriptor instead.
func (*WriteRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{19}
}
func (x *WriteRes) GetFailedUserid() []string {
if x != nil {
return x.FailedUserid
}
return nil
}
// ValueItem 读取命令返回内容
type ValueItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
CmdIndex uint32 `protobuf:"varint,1,opt,name=cmd_index,json=cmdIndex,proto3" json:"cmd_index,omitempty"` // 命令索引
CmdCode CmdErrorCode `protobuf:"varint,2,opt,name=cmd_code,json=cmdCode,proto3,enum=saasapi.CmdErrorCode" json:"cmd_code,omitempty"` // 状态
Bytes []byte `protobuf:"bytes,3,opt,name=bytes,proto3" json:"bytes,omitempty"` // byte区域
Uint32S []uint32 `protobuf:"varint,4,rep,packed,name=uint32s,proto3" json:"uint32s,omitempty"` // uint32区域
FlagsWithExpire []*FlagWithExpire `protobuf:"bytes,5,rep,name=flags_with_expire,json=flagsWithExpire,proto3" json:"flags_with_expire,omitempty"` // 标志位区域
LastModifyTime uint32 `protobuf:"varint,6,opt,name=last_modify_time,json=lastModifyTime,proto3" json:"last_modify_time,omitempty"` // 最后修改时间
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ValueItem) Reset() {
*x = ValueItem{}
mi := &file_cmd_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ValueItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ValueItem) ProtoMessage() {}
func (x *ValueItem) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 ValueItem.ProtoReflect.Descriptor instead.
func (*ValueItem) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{20}
}
func (x *ValueItem) GetCmdIndex() uint32 {
if x != nil {
return x.CmdIndex
}
return 0
}
func (x *ValueItem) GetCmdCode() CmdErrorCode {
if x != nil {
return x.CmdCode
}
return CmdErrorCode_OK
}
func (x *ValueItem) GetBytes() []byte {
if x != nil {
return x.Bytes
}
return nil
}
func (x *ValueItem) GetUint32S() []uint32 {
if x != nil {
return x.Uint32S
}
return nil
}
func (x *ValueItem) GetFlagsWithExpire() []*FlagWithExpire {
if x != nil {
return x.FlagsWithExpire
}
return nil
}
func (x *ValueItem) GetLastModifyTime() uint32 {
if x != nil {
return x.LastModifyTime
}
return 0
}
type TaskListRes struct {
state protoimpl.MessageState `protogen:"open.v1"`
Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` // 任务列表
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TaskListRes) Reset() {
*x = TaskListRes{}
mi := &file_cmd_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TaskListRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TaskListRes) ProtoMessage() {}
func (x *TaskListRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_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 TaskListRes.ProtoReflect.Descriptor instead.
func (*TaskListRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{21}
}
func (x *TaskListRes) GetTasks() []*Task {
if x != nil {
return x.Tasks
}
return nil
}
var File_cmd_proto protoreflect.FileDescriptor
const file_cmd_proto_rawDesc = "" +
"\n" +
"\tcmd.proto\x12\asaasapi\"\x95\x03\n" +
"\aSaasReq\x12#\n" +
"\x04read\x18\n" +
" \x01(\v2\r.saasapi.ReadH\x00R\x04read\x12&\n" +
"\x05write\x18\v \x01(\v2\x0e.saasapi.WriteH\x00R\x05write\x129\n" +
"\fcolumn_write\x18\f \x01(\v2\x14.saasapi.ColumnWriteH\x00R\vcolumnWrite\x120\n" +
"\vtask_create\x18\x14 \x01(\v2\r.saasapi.TaskH\x00R\n" +
"taskCreate\x120\n" +
"\ttask_list\x18\x15 \x01(\v2\x11.saasapi.TaskListH\x00R\btaskList\x12-\n" +
"\btask_run\x18\x16 \x01(\v2\x10.saasapi.TaskRunH\x00R\ataskRun\x126\n" +
"\vtask_delete\x18\x17 \x01(\v2\x13.saasapi.TaskDeleteH\x00R\n" +
"taskDelete\x120\n" +
"\ttask_info\x18\x18 \x01(\v2\x11.saasapi.TaskInfoH\x00R\btaskInfoB\x05\n" +
"\x03cmd\"q\n" +
"\x04Read\x12!\n" +
"\fdataspace_id\x18\x01 \x01(\tR\vdataspaceId\x12\x14\n" +
"\x05appid\x18\x02 \x01(\tR\x05appid\x120\n" +
"\n" +
"read_items\x18\x03 \x03(\v2\x11.saasapi.ReadItemR\treadItems\"\"\n" +
"\bReadItem\x12\x16\n" +
"\x06userid\x18\x01 \x01(\tR\x06userid\"\xa2\x01\n" +
"\x05Write\x12!\n" +
"\fdataspace_id\x18\x01 \x01(\tR\vdataspaceId\x12\x14\n" +
"\x05appid\x18\x02 \x01(\tR\x05appid\x12+\n" +
"\x12is_clear_all_first\x18\x03 \x01(\bR\x0fisClearAllFirst\x123\n" +
"\vwrite_items\x18\x04 \x03(\v2\x12.saasapi.WriteItemR\n" +
"writeItems\"\xdc\x01\n" +
"\tWriteItem\x12\x16\n" +
"\x06userid\x18\x01 \x01(\tR\x06userid\x12/\n" +
"\vwrite_bytes\x18\x02 \x01(\v2\x0e.saasapi.BytesR\n" +
"writeBytes\x125\n" +
"\rwrite_uint32s\x18\x03 \x01(\v2\x10.saasapi.Uint32sR\fwriteUint32s\x12O\n" +
"\x17write_flags_with_expire\x18\x04 \x01(\v2\x18.saasapi.FlagsWithExpireR\x14writeFlagsWithExpire\"O\n" +
"\x05Bytes\x12\x14\n" +
"\x05bytes\x18\x01 \x01(\fR\x05bytes\x12\x17\n" +
"\aindex_1\x18\x02 \x01(\x04R\x06index1\x12\x17\n" +
"\aindex_2\x18\x03 \x01(\x04R\x06index2\"<\n" +
"\aUint32s\x12\x18\n" +
"\auint32s\x18\x01 \x03(\rR\auint32s\x12\x17\n" +
"\aindex_1\x18\x02 \x01(\x04R\x06index1\"o\n" +
"\x0fFlagsWithExpire\x12C\n" +
"\x11flags_with_expire\x18\x01 \x03(\v2\x17.saasapi.FlagWithExpireR\x0fflagsWithExpire\x12\x17\n" +
"\aindex_1\x18\x02 \x01(\x04R\x06index1\"_\n" +
"\x0eFlagWithExpire\x12\x12\n" +
"\x04flag\x18\x01 \x01(\bR\x04flag\x12!\n" +
"\fdefault_flag\x18\x02 \x01(\bR\vdefaultFlag\x12\x16\n" +
"\x06expire\x18\x03 \x01(\rR\x06expire\"\x96\x02\n" +
"\vColumnWrite\x12!\n" +
"\fdataspace_id\x18\x01 \x01(\tR\vdataspaceId\x12+\n" +
"\x12is_clear_all_first\x18\x02 \x01(\bR\x0fisClearAllFirst\x12/\n" +
"\vwrite_bytes\x18\x03 \x01(\v2\x0e.saasapi.BytesR\n" +
"writeBytes\x125\n" +
"\rwrite_uint32s\x18\x04 \x01(\v2\x10.saasapi.Uint32sR\fwriteUint32s\x12O\n" +
"\x17write_flags_with_expire\x18\x05 \x01(\v2\x18.saasapi.FlagsWithExpireR\x14writeFlagsWithExpire\"\xf8\x02\n" +
"\x04Task\x12!\n" +
"\fdataspace_id\x18\x01 \x01(\tR\vdataspaceId\x12\x14\n" +
"\x05appid\x18\x02 \x01(\tR\x05appid\x12\x1f\n" +
"\vtask_sha256\x18\x03 \x01(\tR\n" +
"taskSha256\x12)\n" +
"\x10task_description\x18\x04 \x01(\tR\x0ftaskDescription\x129\n" +
"\x0ftask_file_infos\x18\x05 \x03(\v2\x11.saasapi.FileInfoR\rtaskFileInfos\x12&\n" +
"\x0ftask_block_size\x18\x06 \x01(\x04R\rtaskBlockSize\x12\x1f\n" +
"\vcreate_time\x18\n" +
" \x01(\tR\n" +
"createTime\x12\x19\n" +
"\brun_time\x18\v \x01(\tR\arunTime\x12\x1f\n" +
"\vfinish_time\x18\f \x01(\tR\n" +
"finishTime\x12+\n" +
"\x06status\x18\x0f \x01(\x0e2\x13.saasapi.TaskStatusR\x06status\"D\n" +
"\bTaskList\x128\n" +
"\rstatus_filter\x18\x01 \x01(\x0e2\x13.saasapi.TaskStatusR\fstatusFilter\"*\n" +
"\aTaskRun\x12\x1f\n" +
"\vtask_sha256\x18\x01 \x01(\tR\n" +
"taskSha256\"-\n" +
"\n" +
"TaskDelete\x12\x1f\n" +
"\vtask_sha256\x18\x01 \x01(\tR\n" +
"taskSha256\"+\n" +
"\bTaskInfo\x12\x1f\n" +
"\vtask_sha256\x18\x01 \x01(\tR\n" +
"taskSha256\"y\n" +
"\bFileInfo\x12\x1b\n" +
"\tfile_name\x18\x01 \x01(\tR\bfileName\x12\x1b\n" +
"\tfile_size\x18\x02 \x01(\x04R\bfileSize\x123\n" +
"\vfile_blocks\x18\x03 \x03(\v2\x12.saasapi.FileBlockR\n" +
"fileBlocks\"m\n" +
"\tFileBlock\x12!\n" +
"\fblock_sha256\x18\x01 \x01(\tR\vblockSha256\x12!\n" +
"\fblock_length\x18\x02 \x01(\x04R\vblockLength\x12\x1a\n" +
"\buploaded\x18\x03 \x01(\bR\buploaded\"\xc7\x03\n" +
"\aSaasRes\x12&\n" +
"\x04code\x18\x01 \x01(\x0e2\x12.saasapi.ErrorCodeR\x04code\x12\x16\n" +
"\x06status\x18\x02 \x01(\tR\x06status\x12-\n" +
"\bread_res\x18\n" +
" \x01(\v2\x10.saasapi.ReadResH\x00R\areadRes\x120\n" +
"\twrite_res\x18\v \x01(\v2\x11.saasapi.WriteResH\x00R\bwriteRes\x127\n" +
"\x0ftask_create_res\x18\x14 \x01(\v2\r.saasapi.TaskH\x00R\rtaskCreateRes\x12:\n" +
"\rtask_list_res\x18\x15 \x01(\v2\x14.saasapi.TaskListResH\x00R\vtaskListRes\x121\n" +
"\ftask_run_res\x18\x16 \x01(\v2\r.saasapi.TaskH\x00R\n" +
"taskRunRes\x127\n" +
"\x0ftask_delete_res\x18\x17 \x01(\v2\r.saasapi.TaskH\x00R\rtaskDeleteRes\x123\n" +
"\rtask_info_res\x18\x18 \x01(\v2\r.saasapi.TaskH\x00R\vtaskInfoResB\x05\n" +
"\x03res\"\x82\x01\n" +
"\aReadRes\x12$\n" +
"\x0esucc_cmd_count\x18\x01 \x01(\rR\fsuccCmdCount\x12$\n" +
"\x0efail_cmd_count\x18\x02 \x01(\rR\ffailCmdCount\x12+\n" +
"\acmd_res\x18\x03 \x03(\v2\x12.saasapi.ValueItemR\x06cmdRes\"/\n" +
"\bWriteRes\x12#\n" +
"\rfailed_userid\x18\x03 \x03(\tR\ffailedUserid\"\xf9\x01\n" +
"\tValueItem\x12\x1b\n" +
"\tcmd_index\x18\x01 \x01(\rR\bcmdIndex\x120\n" +
"\bcmd_code\x18\x02 \x01(\x0e2\x15.saasapi.CmdErrorCodeR\acmdCode\x12\x14\n" +
"\x05bytes\x18\x03 \x01(\fR\x05bytes\x12\x18\n" +
"\auint32s\x18\x04 \x03(\rR\auint32s\x12C\n" +
"\x11flags_with_expire\x18\x05 \x03(\v2\x17.saasapi.FlagWithExpireR\x0fflagsWithExpire\x12(\n" +
"\x10last_modify_time\x18\x06 \x01(\rR\x0elastModifyTime\"2\n" +
"\vTaskListRes\x12#\n" +
"\x05tasks\x18\x01 \x03(\v2\r.saasapi.TaskR\x05tasks*\xea\x03\n" +
"\tErrorCode\x12\b\n" +
"\x04SUCC\x10\x00\x12\x13\n" +
"\x0fINVALID_ACCOUNT\x10e\x12\x15\n" +
"\x11INVALID_TIMESTAMP\x10f\x12\x15\n" +
"\x11INVALID_SIGNATURE\x10g\x12\r\n" +
"\tAUTH_FAIL\x10h\x12\x14\n" +
"\x10DISABLED_ACCOUNT\x10i\x12\x18\n" +
"\x14INVALID_CONTENT_TYPE\x10n\x12\r\n" +
"\tREAD_BODY\x10o\x12\x0f\n" +
"\vDECODE_BODY\x10p\x12\r\n" +
"\tQPS_LIMIT\x10q\x12\x0e\n" +
"\n" +
"CMDS_LIMIT\x10r\x12\r\n" +
"\tCMDS_NULL\x10s\x12\x18\n" +
"\x14DATASPACE_NOT_EXISTS\x10t\x12\x0f\n" +
"\vTASK_EXISTS\x10x\x12\x16\n" +
"\x12TASK_IS_NOT_EXISTS\x10y\x12\x12\n" +
"\x0eTASK_NUM_LIMIT\x10z\x12\x13\n" +
"\x0fTASK_BLOCK_SIZE\x10{\x12\x13\n" +
"\x0fTASK_TOTAL_SIZE\x10|\x12\x10\n" +
"\fTASK_MARSHAL\x10}\x12\x13\n" +
"\x0eTASK_IS_WATING\x10\x82\x01\x12\x14\n" +
"\x0fTASK_IS_RUNNING\x10\x83\x01\x12\x10\n" +
"\vTASK_FAILED\x10\x84\x01\x12\x12\n" +
"\rTASK_FINISHED\x10\x85\x01\x12\x0f\n" +
"\n" +
"DATA_ERROR\x10\xc9\x01\x12\x0e\n" +
"\tCMD_ERROR\x10\xca\x01*\x16\n" +
"\fCmdErrorCode\x12\x06\n" +
"\x02OK\x10\x00*^\n" +
"\n" +
"TaskStatus\x12\a\n" +
"\x03ALL\x10\x00\x12\v\n" +
"\aWAITING\x10\x01\x12\t\n" +
"\x05READY\x10\x02\x12\v\n" +
"\aRUNNING\x10\x03\x12\v\n" +
"\aSUCCESS\x10\x04\x12\b\n" +
"\x04FAIL\x10\x05\x12\v\n" +
"\aDELETED\x10\n" +
"B!Z\x1fe.coding.net/rta/public/saasapib\x06proto3"
var (
file_cmd_proto_rawDescOnce sync.Once
file_cmd_proto_rawDescData []byte
)
func file_cmd_proto_rawDescGZIP() []byte {
file_cmd_proto_rawDescOnce.Do(func() {
file_cmd_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_proto_rawDesc), len(file_cmd_proto_rawDesc)))
})
return file_cmd_proto_rawDescData
}
var file_cmd_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
var file_cmd_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
var file_cmd_proto_goTypes = []any{
(ErrorCode)(0), // 0: saasapi.ErrorCode
(CmdErrorCode)(0), // 1: saasapi.CmdErrorCode
(TaskStatus)(0), // 2: saasapi.TaskStatus
(*SaasReq)(nil), // 3: saasapi.SaasReq
(*Read)(nil), // 4: saasapi.Read
(*ReadItem)(nil), // 5: saasapi.ReadItem
(*Write)(nil), // 6: saasapi.Write
(*WriteItem)(nil), // 7: saasapi.WriteItem
(*Bytes)(nil), // 8: saasapi.Bytes
(*Uint32S)(nil), // 9: saasapi.Uint32s
(*FlagsWithExpire)(nil), // 10: saasapi.FlagsWithExpire
(*FlagWithExpire)(nil), // 11: saasapi.FlagWithExpire
(*ColumnWrite)(nil), // 12: saasapi.ColumnWrite
(*Task)(nil), // 13: saasapi.Task
(*TaskList)(nil), // 14: saasapi.TaskList
(*TaskRun)(nil), // 15: saasapi.TaskRun
(*TaskDelete)(nil), // 16: saasapi.TaskDelete
(*TaskInfo)(nil), // 17: saasapi.TaskInfo
(*FileInfo)(nil), // 18: saasapi.FileInfo
(*FileBlock)(nil), // 19: saasapi.FileBlock
(*SaasRes)(nil), // 20: saasapi.SaasRes
(*ReadRes)(nil), // 21: saasapi.ReadRes
(*WriteRes)(nil), // 22: saasapi.WriteRes
(*ValueItem)(nil), // 23: saasapi.ValueItem
(*TaskListRes)(nil), // 24: saasapi.TaskListRes
}
var file_cmd_proto_depIdxs = []int32{
4, // 0: saasapi.SaasReq.read:type_name -> saasapi.Read
6, // 1: saasapi.SaasReq.write:type_name -> saasapi.Write
12, // 2: saasapi.SaasReq.column_write:type_name -> saasapi.ColumnWrite
13, // 3: saasapi.SaasReq.task_create:type_name -> saasapi.Task
14, // 4: saasapi.SaasReq.task_list:type_name -> saasapi.TaskList
15, // 5: saasapi.SaasReq.task_run:type_name -> saasapi.TaskRun
16, // 6: saasapi.SaasReq.task_delete:type_name -> saasapi.TaskDelete
17, // 7: saasapi.SaasReq.task_info:type_name -> saasapi.TaskInfo
5, // 8: saasapi.Read.read_items:type_name -> saasapi.ReadItem
7, // 9: saasapi.Write.write_items:type_name -> saasapi.WriteItem
8, // 10: saasapi.WriteItem.write_bytes:type_name -> saasapi.Bytes
9, // 11: saasapi.WriteItem.write_uint32s:type_name -> saasapi.Uint32s
10, // 12: saasapi.WriteItem.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
11, // 13: saasapi.FlagsWithExpire.flags_with_expire:type_name -> saasapi.FlagWithExpire
8, // 14: saasapi.ColumnWrite.write_bytes:type_name -> saasapi.Bytes
9, // 15: saasapi.ColumnWrite.write_uint32s:type_name -> saasapi.Uint32s
10, // 16: saasapi.ColumnWrite.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
18, // 17: saasapi.Task.task_file_infos:type_name -> saasapi.FileInfo
2, // 18: saasapi.Task.status:type_name -> saasapi.TaskStatus
2, // 19: saasapi.TaskList.status_filter:type_name -> saasapi.TaskStatus
19, // 20: saasapi.FileInfo.file_blocks:type_name -> saasapi.FileBlock
0, // 21: saasapi.SaasRes.code:type_name -> saasapi.ErrorCode
21, // 22: saasapi.SaasRes.read_res:type_name -> saasapi.ReadRes
22, // 23: saasapi.SaasRes.write_res:type_name -> saasapi.WriteRes
13, // 24: saasapi.SaasRes.task_create_res:type_name -> saasapi.Task
24, // 25: saasapi.SaasRes.task_list_res:type_name -> saasapi.TaskListRes
13, // 26: saasapi.SaasRes.task_run_res:type_name -> saasapi.Task
13, // 27: saasapi.SaasRes.task_delete_res:type_name -> saasapi.Task
13, // 28: saasapi.SaasRes.task_info_res:type_name -> saasapi.Task
23, // 29: saasapi.ReadRes.cmd_res:type_name -> saasapi.ValueItem
1, // 30: saasapi.ValueItem.cmd_code:type_name -> saasapi.CmdErrorCode
11, // 31: saasapi.ValueItem.flags_with_expire:type_name -> saasapi.FlagWithExpire
13, // 32: saasapi.TaskListRes.tasks:type_name -> saasapi.Task
33, // [33:33] is the sub-list for method output_type
33, // [33:33] is the sub-list for method input_type
33, // [33:33] is the sub-list for extension type_name
33, // [33:33] is the sub-list for extension extendee
0, // [0:33] is the sub-list for field type_name
}
func init() { file_cmd_proto_init() }
func file_cmd_proto_init() {
if File_cmd_proto != nil {
return
}
file_cmd_proto_msgTypes[0].OneofWrappers = []any{
(*SaasReq_Read)(nil),
(*SaasReq_Write)(nil),
(*SaasReq_ColumnWrite)(nil),
(*SaasReq_TaskCreate)(nil),
(*SaasReq_TaskList)(nil),
(*SaasReq_TaskRun)(nil),
(*SaasReq_TaskDelete)(nil),
(*SaasReq_TaskInfo)(nil),
}
file_cmd_proto_msgTypes[17].OneofWrappers = []any{
(*SaasRes_ReadRes)(nil),
(*SaasRes_WriteRes)(nil),
(*SaasRes_TaskCreateRes)(nil),
(*SaasRes_TaskListRes)(nil),
(*SaasRes_TaskRunRes)(nil),
(*SaasRes_TaskDeleteRes)(nil),
(*SaasRes_TaskInfoRes)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_proto_rawDesc), len(file_cmd_proto_rawDesc)),
NumEnums: 3,
NumMessages: 22,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cmd_proto_goTypes,
DependencyIndexes: file_cmd_proto_depIdxs,
EnumInfos: file_cmd_proto_enumTypes,
MessageInfos: file_cmd_proto_msgTypes,
}.Build()
File_cmd_proto = out.File
file_cmd_proto_goTypes = nil
file_cmd_proto_depIdxs = nil
}