工具基本实现write功能
This commit is contained in:
428
cmd.pb.go
428
cmd.pb.go
@@ -193,11 +193,14 @@ type SaasReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
UseridType UserIdType `protobuf:"varint,1,opt,name=userid_type,json=useridType,proto3,enum=saasapi.UserIdType" json:"userid_type,omitempty"` // 用户ID类型
|
||||
Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` // 小程序/小游戏/公众号/视频号的appid
|
||||
Async bool `protobuf:"varint,4,opt,name=async,proto3" json:"async,omitempty"` // 是否异步执行
|
||||
// Types that are valid to be assigned to Cmd:
|
||||
//
|
||||
// *SaasReq_Write
|
||||
// *SaasReq_Read
|
||||
// *SaasReq_ColumnWrite
|
||||
// *SaasReq_TaskList
|
||||
// *SaasReq_TaskCancel
|
||||
// *SaasReq_TaskDetail
|
||||
Cmd isSaasReq_Cmd `protobuf_oneof:"cmd"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -247,13 +250,6 @@ func (x *SaasReq) GetAppid() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SaasReq) GetAsync() bool {
|
||||
if x != nil {
|
||||
return x.Async
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *SaasReq) GetCmd() isSaasReq_Cmd {
|
||||
if x != nil {
|
||||
return x.Cmd
|
||||
@@ -279,6 +275,42 @@ func (x *SaasReq) GetRead() *Read {
|
||||
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) GetTaskList() *TaskList {
|
||||
if x != nil {
|
||||
if x, ok := x.Cmd.(*SaasReq_TaskList); ok {
|
||||
return x.TaskList
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SaasReq) GetTaskCancel() *TaskCancel {
|
||||
if x != nil {
|
||||
if x, ok := x.Cmd.(*SaasReq_TaskCancel); ok {
|
||||
return x.TaskCancel
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SaasReq) GetTaskDetail() *TaskDetail {
|
||||
if x != nil {
|
||||
if x, ok := x.Cmd.(*SaasReq_TaskDetail); ok {
|
||||
return x.TaskDetail
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isSaasReq_Cmd interface {
|
||||
isSaasReq_Cmd()
|
||||
}
|
||||
@@ -291,16 +323,42 @@ type SaasReq_Read struct {
|
||||
Read *Read `protobuf:"bytes,11,opt,name=read,proto3,oneof"` // 批量读取
|
||||
}
|
||||
|
||||
type SaasReq_ColumnWrite struct {
|
||||
ColumnWrite *ColumnWrite `protobuf:"bytes,12,opt,name=column_write,json=columnWrite,proto3,oneof"` // 全量列式写入
|
||||
}
|
||||
|
||||
type SaasReq_TaskList struct {
|
||||
TaskList *TaskList `protobuf:"bytes,20,opt,name=task_list,json=taskList,proto3,oneof"` // 任务列表
|
||||
}
|
||||
|
||||
type SaasReq_TaskCancel struct {
|
||||
TaskCancel *TaskCancel `protobuf:"bytes,21,opt,name=task_cancel,json=taskCancel,proto3,oneof"` // 取消任务
|
||||
}
|
||||
|
||||
type SaasReq_TaskDetail struct {
|
||||
TaskDetail *TaskDetail `protobuf:"bytes,22,opt,name=task_detail,json=taskDetail,proto3,oneof"` // 任务详情
|
||||
}
|
||||
|
||||
func (*SaasReq_Write) isSaasReq_Cmd() {}
|
||||
|
||||
func (*SaasReq_Read) isSaasReq_Cmd() {}
|
||||
|
||||
func (*SaasReq_ColumnWrite) isSaasReq_Cmd() {}
|
||||
|
||||
func (*SaasReq_TaskList) isSaasReq_Cmd() {}
|
||||
|
||||
func (*SaasReq_TaskCancel) isSaasReq_Cmd() {}
|
||||
|
||||
func (*SaasReq_TaskDetail) isSaasReq_Cmd() {}
|
||||
|
||||
// Write 批量写入命令
|
||||
type Write struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
WriteCmds []*WriteCmd `protobuf:"bytes,1,rep,name=write_cmds,json=writeCmds,proto3" json:"write_cmds,omitempty"` // 批量写入命令
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Async bool `protobuf:"varint,1,opt,name=async,proto3" json:"async,omitempty"` // 是否异步执行
|
||||
IsClearAllFirst bool `protobuf:"varint,2,opt,name=is_clear_all_first,json=isClearAllFirst,proto3" json:"is_clear_all_first,omitempty"` // 是否先执行清空
|
||||
WriteCmds []*WriteCmd `protobuf:"bytes,3,rep,name=write_cmds,json=writeCmds,proto3" json:"write_cmds,omitempty"` // 批量写入命令
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Write) Reset() {
|
||||
@@ -333,6 +391,20 @@ func (*Write) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *Write) GetAsync() bool {
|
||||
if x != nil {
|
||||
return x.Async
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *Write) GetIsClearAllFirst() bool {
|
||||
if x != nil {
|
||||
return x.IsClearAllFirst
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *Write) GetWriteCmds() []*WriteCmd {
|
||||
if x != nil {
|
||||
return x.WriteCmds
|
||||
@@ -347,7 +419,6 @@ type WriteCmd struct {
|
||||
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"` // 标志位区域
|
||||
IsFullOverwrite bool `protobuf:"varint,5,opt,name=is_full_overwrite,json=isFullOverwrite,proto3" json:"is_full_overwrite,omitempty"` // 是否全量覆盖
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -410,13 +481,6 @@ func (x *WriteCmd) GetWriteFlagsWithExpire() *FlagsWithExpire {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *WriteCmd) GetIsFullOverwrite() bool {
|
||||
if x != nil {
|
||||
return x.IsFullOverwrite
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Bytes 写入byte区域
|
||||
type Bytes struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
@@ -735,19 +799,201 @@ func (x *ReadCmd) GetUserid() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// ColumnWrite 全量列式写入命令
|
||||
type ColumnWrite struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
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"` // 标志位区域
|
||||
IsClearAllFirst bool `protobuf:"varint,5,opt,name=is_clear_all_first,json=isClearAllFirst,proto3" json:"is_clear_all_first,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) 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
|
||||
}
|
||||
|
||||
func (x *ColumnWrite) GetIsClearAllFirst() bool {
|
||||
if x != nil {
|
||||
return x.IsClearAllFirst
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// TaskList 任务列表
|
||||
type TaskList struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *TaskList) Reset() {
|
||||
*x = TaskList{}
|
||||
mi := &file_cmd_proto_msgTypes[10]
|
||||
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[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 TaskList.ProtoReflect.Descriptor instead.
|
||||
func (*TaskList) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
// TaskCancel 取消任务
|
||||
type TaskCancel struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *TaskCancel) Reset() {
|
||||
*x = TaskCancel{}
|
||||
mi := &file_cmd_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *TaskCancel) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*TaskCancel) ProtoMessage() {}
|
||||
|
||||
func (x *TaskCancel) 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 TaskCancel.ProtoReflect.Descriptor instead.
|
||||
func (*TaskCancel) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
// TaskDetail 任务详情
|
||||
type TaskDetail struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *TaskDetail) Reset() {
|
||||
*x = TaskDetail{}
|
||||
mi := &file_cmd_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *TaskDetail) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*TaskDetail) ProtoMessage() {}
|
||||
|
||||
func (x *TaskDetail) 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 TaskDetail.ProtoReflect.Descriptor instead.
|
||||
func (*TaskDetail) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
// 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"` // 返回信息的文本提示
|
||||
CmdRes []*CmdsResItem `protobuf:"bytes,3,rep,name=cmd_res,json=cmdRes,proto3" json:"cmd_res,omitempty"` // 返回的命令
|
||||
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"` // 返回信息的文本提示
|
||||
SuccCmdCount uint32 `protobuf:"varint,3,opt,name=succ_cmd_count,json=succCmdCount,proto3" json:"succ_cmd_count,omitempty"` // 成功的命令数量
|
||||
FailCmdCount uint32 `protobuf:"varint,4,opt,name=fail_cmd_count,json=failCmdCount,proto3" json:"fail_cmd_count,omitempty"` // 失败的命令数量
|
||||
CmdRes []*CmdsResItem `protobuf:"bytes,5,rep,name=cmd_res,json=cmdRes,proto3" json:"cmd_res,omitempty"` // 返回的命令
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SaasRes) Reset() {
|
||||
*x = SaasRes{}
|
||||
mi := &file_cmd_proto_msgTypes[9]
|
||||
mi := &file_cmd_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -759,7 +1005,7 @@ func (x *SaasRes) String() string {
|
||||
func (*SaasRes) ProtoMessage() {}
|
||||
|
||||
func (x *SaasRes) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cmd_proto_msgTypes[9]
|
||||
mi := &file_cmd_proto_msgTypes[13]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -772,7 +1018,7 @@ func (x *SaasRes) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SaasRes.ProtoReflect.Descriptor instead.
|
||||
func (*SaasRes) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{9}
|
||||
return file_cmd_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *SaasRes) GetCode() ErrorCode {
|
||||
@@ -789,6 +1035,20 @@ func (x *SaasRes) GetStatus() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SaasRes) GetSuccCmdCount() uint32 {
|
||||
if x != nil {
|
||||
return x.SuccCmdCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SaasRes) GetFailCmdCount() uint32 {
|
||||
if x != nil {
|
||||
return x.FailCmdCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SaasRes) GetCmdRes() []*CmdsResItem {
|
||||
if x != nil {
|
||||
return x.CmdRes
|
||||
@@ -804,13 +1064,14 @@ type CmdsResItem struct {
|
||||
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 *CmdsResItem) Reset() {
|
||||
*x = CmdsResItem{}
|
||||
mi := &file_cmd_proto_msgTypes[10]
|
||||
mi := &file_cmd_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -822,7 +1083,7 @@ func (x *CmdsResItem) String() string {
|
||||
func (*CmdsResItem) ProtoMessage() {}
|
||||
|
||||
func (x *CmdsResItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cmd_proto_msgTypes[10]
|
||||
mi := &file_cmd_proto_msgTypes[14]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -835,7 +1096,7 @@ func (x *CmdsResItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CmdsResItem.ProtoReflect.Descriptor instead.
|
||||
func (*CmdsResItem) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{10}
|
||||
return file_cmd_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *CmdsResItem) GetCmdIndex() uint32 {
|
||||
@@ -873,30 +1134,43 @@ func (x *CmdsResItem) GetFlagsWithExpire() []*FlagWithExpire {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CmdsResItem) GetLastModifyTime() uint32 {
|
||||
if x != nil {
|
||||
return x.LastModifyTime
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_cmd_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_cmd_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\tcmd.proto\x12\asaasapi\"\xbf\x01\n" +
|
||||
"\tcmd.proto\x12\asaasapi\"\x86\x03\n" +
|
||||
"\aSaasReq\x124\n" +
|
||||
"\vuserid_type\x18\x01 \x01(\x0e2\x13.saasapi.UserIdTypeR\n" +
|
||||
"useridType\x12\x14\n" +
|
||||
"\x05appid\x18\x02 \x01(\tR\x05appid\x12\x14\n" +
|
||||
"\x05async\x18\x04 \x01(\bR\x05async\x12&\n" +
|
||||
"\x05appid\x18\x02 \x01(\tR\x05appid\x12&\n" +
|
||||
"\x05write\x18\n" +
|
||||
" \x01(\v2\x0e.saasapi.WriteH\x00R\x05write\x12#\n" +
|
||||
"\x04read\x18\v \x01(\v2\r.saasapi.ReadH\x00R\x04readB\x05\n" +
|
||||
"\x03cmd\"9\n" +
|
||||
"\x05Write\x120\n" +
|
||||
"\x04read\x18\v \x01(\v2\r.saasapi.ReadH\x00R\x04read\x129\n" +
|
||||
"\fcolumn_write\x18\f \x01(\v2\x14.saasapi.ColumnWriteH\x00R\vcolumnWrite\x120\n" +
|
||||
"\ttask_list\x18\x14 \x01(\v2\x11.saasapi.TaskListH\x00R\btaskList\x126\n" +
|
||||
"\vtask_cancel\x18\x15 \x01(\v2\x13.saasapi.TaskCancelH\x00R\n" +
|
||||
"taskCancel\x126\n" +
|
||||
"\vtask_detail\x18\x16 \x01(\v2\x13.saasapi.TaskDetailH\x00R\n" +
|
||||
"taskDetailB\x05\n" +
|
||||
"\x03cmd\"|\n" +
|
||||
"\x05Write\x12\x14\n" +
|
||||
"\x05async\x18\x01 \x01(\bR\x05async\x12+\n" +
|
||||
"\x12is_clear_all_first\x18\x02 \x01(\bR\x0fisClearAllFirst\x120\n" +
|
||||
"\n" +
|
||||
"write_cmds\x18\x01 \x03(\v2\x11.saasapi.WriteCmdR\twriteCmds\"\x87\x02\n" +
|
||||
"write_cmds\x18\x03 \x03(\v2\x11.saasapi.WriteCmdR\twriteCmds\"\xdb\x01\n" +
|
||||
"\bWriteCmd\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\x12*\n" +
|
||||
"\x11is_full_overwrite\x18\x05 \x01(\bR\x0fisFullOverwrite\"O\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" +
|
||||
@@ -914,17 +1188,32 @@ const file_cmd_proto_rawDesc = "" +
|
||||
"\x04Read\x12-\n" +
|
||||
"\tread_cmds\x18\x01 \x03(\v2\x10.saasapi.ReadCmdR\breadCmds\"!\n" +
|
||||
"\aReadCmd\x12\x16\n" +
|
||||
"\x06userid\x18\x01 \x01(\tR\x06userid\"x\n" +
|
||||
"\x06userid\x18\x01 \x01(\tR\x06userid\"\xf3\x01\n" +
|
||||
"\vColumnWrite\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\x12+\n" +
|
||||
"\x12is_clear_all_first\x18\x05 \x01(\bR\x0fisClearAllFirst\"\n" +
|
||||
"\n" +
|
||||
"\bTaskList\"\f\n" +
|
||||
"\n" +
|
||||
"TaskCancel\"\f\n" +
|
||||
"\n" +
|
||||
"TaskDetail\"\xc4\x01\n" +
|
||||
"\aSaasRes\x12&\n" +
|
||||
"\x04code\x18\x01 \x01(\x0e2\x12.saasapi.ErrorCodeR\x04code\x12\x16\n" +
|
||||
"\x06status\x18\x02 \x01(\tR\x06status\x12-\n" +
|
||||
"\acmd_res\x18\x03 \x03(\v2\x14.saasapi.CmdsResItemR\x06cmdRes\"\xd1\x01\n" +
|
||||
"\x06status\x18\x02 \x01(\tR\x06status\x12$\n" +
|
||||
"\x0esucc_cmd_count\x18\x03 \x01(\rR\fsuccCmdCount\x12$\n" +
|
||||
"\x0efail_cmd_count\x18\x04 \x01(\rR\ffailCmdCount\x12-\n" +
|
||||
"\acmd_res\x18\x05 \x03(\v2\x14.saasapi.CmdsResItemR\x06cmdRes\"\xfb\x01\n" +
|
||||
"\vCmdsResItem\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*&\n" +
|
||||
"\x11flags_with_expire\x18\x05 \x03(\v2\x17.saasapi.FlagWithExpireR\x0fflagsWithExpire\x12(\n" +
|
||||
"\x10last_modify_time\x18\x06 \x01(\rR\x0elastModifyTime*&\n" +
|
||||
"\n" +
|
||||
"UserIdType\x12\f\n" +
|
||||
"\bDEVICEID\x10\x00\x12\n" +
|
||||
@@ -945,7 +1234,7 @@ const file_cmd_proto_rawDesc = "" +
|
||||
"CMDS_LIMIT\x10r\x12\r\n" +
|
||||
"\tCMDS_NULL\x10s*\x16\n" +
|
||||
"\fCmdErrorCode\x12\x06\n" +
|
||||
"\x02OK\x10\x00B\vZ\t./saasapib\x06proto3"
|
||||
"\x02OK\x10\x00B!Z\x1fe.coding.net/rta/public/saasapib\x06proto3"
|
||||
|
||||
var (
|
||||
file_cmd_proto_rawDescOnce sync.Once
|
||||
@@ -960,7 +1249,7 @@ func file_cmd_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_cmd_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
||||
var file_cmd_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
||||
var file_cmd_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
|
||||
var file_cmd_proto_goTypes = []any{
|
||||
(UserIdType)(0), // 0: saasapi.UserIdType
|
||||
(ErrorCode)(0), // 1: saasapi.ErrorCode
|
||||
@@ -974,28 +1263,39 @@ var file_cmd_proto_goTypes = []any{
|
||||
(*FlagWithExpire)(nil), // 9: saasapi.FlagWithExpire
|
||||
(*Read)(nil), // 10: saasapi.Read
|
||||
(*ReadCmd)(nil), // 11: saasapi.ReadCmd
|
||||
(*SaasRes)(nil), // 12: saasapi.SaasRes
|
||||
(*CmdsResItem)(nil), // 13: saasapi.CmdsResItem
|
||||
(*ColumnWrite)(nil), // 12: saasapi.ColumnWrite
|
||||
(*TaskList)(nil), // 13: saasapi.TaskList
|
||||
(*TaskCancel)(nil), // 14: saasapi.TaskCancel
|
||||
(*TaskDetail)(nil), // 15: saasapi.TaskDetail
|
||||
(*SaasRes)(nil), // 16: saasapi.SaasRes
|
||||
(*CmdsResItem)(nil), // 17: saasapi.CmdsResItem
|
||||
}
|
||||
var file_cmd_proto_depIdxs = []int32{
|
||||
0, // 0: saasapi.SaasReq.userid_type:type_name -> saasapi.UserIdType
|
||||
4, // 1: saasapi.SaasReq.write:type_name -> saasapi.Write
|
||||
10, // 2: saasapi.SaasReq.read:type_name -> saasapi.Read
|
||||
5, // 3: saasapi.Write.write_cmds:type_name -> saasapi.WriteCmd
|
||||
6, // 4: saasapi.WriteCmd.write_bytes:type_name -> saasapi.Bytes
|
||||
7, // 5: saasapi.WriteCmd.write_uint32s:type_name -> saasapi.Uint32s
|
||||
8, // 6: saasapi.WriteCmd.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
|
||||
9, // 7: saasapi.FlagsWithExpire.flags_with_expire:type_name -> saasapi.FlagWithExpire
|
||||
11, // 8: saasapi.Read.read_cmds:type_name -> saasapi.ReadCmd
|
||||
1, // 9: saasapi.SaasRes.code:type_name -> saasapi.ErrorCode
|
||||
13, // 10: saasapi.SaasRes.cmd_res:type_name -> saasapi.CmdsResItem
|
||||
2, // 11: saasapi.CmdsResItem.cmd_code:type_name -> saasapi.CmdErrorCode
|
||||
9, // 12: saasapi.CmdsResItem.flags_with_expire:type_name -> saasapi.FlagWithExpire
|
||||
13, // [13:13] is the sub-list for method output_type
|
||||
13, // [13:13] is the sub-list for method input_type
|
||||
13, // [13:13] is the sub-list for extension type_name
|
||||
13, // [13:13] is the sub-list for extension extendee
|
||||
0, // [0:13] is the sub-list for field type_name
|
||||
12, // 3: saasapi.SaasReq.column_write:type_name -> saasapi.ColumnWrite
|
||||
13, // 4: saasapi.SaasReq.task_list:type_name -> saasapi.TaskList
|
||||
14, // 5: saasapi.SaasReq.task_cancel:type_name -> saasapi.TaskCancel
|
||||
15, // 6: saasapi.SaasReq.task_detail:type_name -> saasapi.TaskDetail
|
||||
5, // 7: saasapi.Write.write_cmds:type_name -> saasapi.WriteCmd
|
||||
6, // 8: saasapi.WriteCmd.write_bytes:type_name -> saasapi.Bytes
|
||||
7, // 9: saasapi.WriteCmd.write_uint32s:type_name -> saasapi.Uint32s
|
||||
8, // 10: saasapi.WriteCmd.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
|
||||
9, // 11: saasapi.FlagsWithExpire.flags_with_expire:type_name -> saasapi.FlagWithExpire
|
||||
11, // 12: saasapi.Read.read_cmds:type_name -> saasapi.ReadCmd
|
||||
6, // 13: saasapi.ColumnWrite.write_bytes:type_name -> saasapi.Bytes
|
||||
7, // 14: saasapi.ColumnWrite.write_uint32s:type_name -> saasapi.Uint32s
|
||||
8, // 15: saasapi.ColumnWrite.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
|
||||
1, // 16: saasapi.SaasRes.code:type_name -> saasapi.ErrorCode
|
||||
17, // 17: saasapi.SaasRes.cmd_res:type_name -> saasapi.CmdsResItem
|
||||
2, // 18: saasapi.CmdsResItem.cmd_code:type_name -> saasapi.CmdErrorCode
|
||||
9, // 19: saasapi.CmdsResItem.flags_with_expire:type_name -> saasapi.FlagWithExpire
|
||||
20, // [20:20] is the sub-list for method output_type
|
||||
20, // [20:20] is the sub-list for method input_type
|
||||
20, // [20:20] is the sub-list for extension type_name
|
||||
20, // [20:20] is the sub-list for extension extendee
|
||||
0, // [0:20] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_cmd_proto_init() }
|
||||
@@ -1006,6 +1306,10 @@ func file_cmd_proto_init() {
|
||||
file_cmd_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*SaasReq_Write)(nil),
|
||||
(*SaasReq_Read)(nil),
|
||||
(*SaasReq_ColumnWrite)(nil),
|
||||
(*SaasReq_TaskList)(nil),
|
||||
(*SaasReq_TaskCancel)(nil),
|
||||
(*SaasReq_TaskDetail)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@@ -1013,7 +1317,7 @@ func file_cmd_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_proto_rawDesc), len(file_cmd_proto_rawDesc)),
|
||||
NumEnums: 3,
|
||||
NumMessages: 11,
|
||||
NumMessages: 15,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user