// 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) ) // UserIdType 用户 ID 类型 type UserIdType int32 const ( UserIdType_DEVICEID UserIdType = 0 // 设备号 UserIdType_OPENID UserIdType = 1 // OpenId ) // Enum value maps for UserIdType. var ( UserIdType_name = map[int32]string{ 0: "DEVICEID", 1: "OPENID", } UserIdType_value = map[string]int32{ "DEVICEID": 0, "OPENID": 1, } ) func (x UserIdType) Enum() *UserIdType { p := new(UserIdType) *p = x return p } func (x UserIdType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (UserIdType) Descriptor() protoreflect.EnumDescriptor { return file_cmd_proto_enumTypes[0].Descriptor() } func (UserIdType) Type() protoreflect.EnumType { return &file_cmd_proto_enumTypes[0] } func (x UserIdType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use UserIdType.Descriptor instead. func (UserIdType) EnumDescriptor() ([]byte, []int) { return file_cmd_proto_rawDescGZIP(), []int{0} } // 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 // 命令为空 ) // 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", } 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, } ) 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[1].Descriptor() } func (ErrorCode) Type() protoreflect.EnumType { return &file_cmd_proto_enumTypes[1] } 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{1} } 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[2].Descriptor() } func (CmdErrorCode) Type() protoreflect.EnumType { return &file_cmd_proto_enumTypes[2] } 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{2} } // SaasReq 命令请求 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 // 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 } 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) GetUseridType() UserIdType { if x != nil { return x.UseridType } return UserIdType_DEVICEID } func (x *SaasReq) GetAppid() string { if x != nil { return x.Appid } return "" } func (x *SaasReq) GetCmd() isSaasReq_Cmd { if x != nil { return x.Cmd } 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) GetRead() *Read { if x != nil { if x, ok := x.Cmd.(*SaasReq_Read); ok { return x.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() } type SaasReq_Write struct { Write *Write `protobuf:"bytes,10,opt,name=write,proto3,oneof"` // 批量写入 } 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"` 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() { *x = Write{} mi := &file_cmd_proto_msgTypes[1] 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[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 Write.ProtoReflect.Descriptor instead. 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 } return nil } // WriteCmd 写入命令 type WriteCmd 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 *WriteCmd) Reset() { *x = WriteCmd{} mi := &file_cmd_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *WriteCmd) String() string { return protoimpl.X.MessageStringOf(x) } func (*WriteCmd) ProtoMessage() {} func (x *WriteCmd) 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 WriteCmd.ProtoReflect.Descriptor instead. func (*WriteCmd) Descriptor() ([]byte, []int) { return file_cmd_proto_rawDescGZIP(), []int{2} } func (x *WriteCmd) GetUserid() string { if x != nil { return x.Userid } return "" } func (x *WriteCmd) GetWriteBytes() *Bytes { if x != nil { return x.WriteBytes } return nil } func (x *WriteCmd) GetWriteUint32S() *Uint32S { if x != nil { return x.WriteUint32S } return nil } func (x *WriteCmd) 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[3] 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[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 Bytes.ProtoReflect.Descriptor instead. func (*Bytes) Descriptor() ([]byte, []int) { return file_cmd_proto_rawDescGZIP(), []int{3} } 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[4] 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[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 Uint32S.ProtoReflect.Descriptor instead. func (*Uint32S) Descriptor() ([]byte, []int) { return file_cmd_proto_rawDescGZIP(), []int{4} } 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[5] 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[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 FlagsWithExpire.ProtoReflect.Descriptor instead. func (*FlagsWithExpire) Descriptor() ([]byte, []int) { return file_cmd_proto_rawDescGZIP(), []int{5} } 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[6] 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[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 FlagWithExpire.ProtoReflect.Descriptor instead. func (*FlagWithExpire) Descriptor() ([]byte, []int) { return file_cmd_proto_rawDescGZIP(), []int{6} } 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 } // Write 批量读取命令 type Read struct { state protoimpl.MessageState `protogen:"open.v1"` ReadCmds []*ReadCmd `protobuf:"bytes,1,rep,name=read_cmds,json=readCmds,proto3" json:"read_cmds,omitempty"` // 批量获取命令 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Read) Reset() { *x = Read{} mi := &file_cmd_proto_msgTypes[7] 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[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 Read.ProtoReflect.Descriptor instead. func (*Read) Descriptor() ([]byte, []int) { return file_cmd_proto_rawDescGZIP(), []int{7} } func (x *Read) GetReadCmds() []*ReadCmd { if x != nil { return x.ReadCmds } return nil } // WriteCmd 读取命令 type ReadCmd 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 *ReadCmd) Reset() { *x = ReadCmd{} mi := &file_cmd_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ReadCmd) String() string { return protoimpl.X.MessageStringOf(x) } func (*ReadCmd) ProtoMessage() {} func (x *ReadCmd) 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 ReadCmd.ProtoReflect.Descriptor instead. func (*ReadCmd) Descriptor() ([]byte, []int) { return file_cmd_proto_rawDescGZIP(), []int{8} } func (x *ReadCmd) GetUserid() string { if x != nil { return x.Userid } 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"` // 返回信息的文本提示 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[13] 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[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 SaasRes.ProtoReflect.Descriptor instead. func (*SaasRes) Descriptor() ([]byte, []int) { return file_cmd_proto_rawDescGZIP(), []int{13} } 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) 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 } return nil } // CmdsResItem 读取命令返回内容 type CmdsResItem 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 *CmdsResItem) Reset() { *x = CmdsResItem{} mi := &file_cmd_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CmdsResItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*CmdsResItem) ProtoMessage() {} func (x *CmdsResItem) 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 CmdsResItem.ProtoReflect.Descriptor instead. func (*CmdsResItem) Descriptor() ([]byte, []int) { return file_cmd_proto_rawDescGZIP(), []int{14} } func (x *CmdsResItem) GetCmdIndex() uint32 { if x != nil { return x.CmdIndex } return 0 } func (x *CmdsResItem) GetCmdCode() CmdErrorCode { if x != nil { return x.CmdCode } return CmdErrorCode_OK } func (x *CmdsResItem) GetBytes() []byte { if x != nil { return x.Bytes } return nil } func (x *CmdsResItem) GetUint32S() []uint32 { if x != nil { return x.Uint32S } return nil } func (x *CmdsResItem) GetFlagsWithExpire() []*FlagWithExpire { if x != nil { return x.FlagsWithExpire } 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\"\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&\n" + "\x05write\x18\n" + " \x01(\v2\x0e.saasapi.WriteH\x00R\x05write\x12#\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\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\"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\"5\n" + "\x04Read\x12-\n" + "\tread_cmds\x18\x01 \x03(\v2\x10.saasapi.ReadCmdR\breadCmds\"!\n" + "\aReadCmd\x12\x16\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" + "\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\x12(\n" + "\x10last_modify_time\x18\x06 \x01(\rR\x0elastModifyTime*&\n" + "\n" + "UserIdType\x12\f\n" + "\bDEVICEID\x10\x00\x12\n" + "\n" + "\x06OPENID\x10\x01*\xe5\x01\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*\x16\n" + "\fCmdErrorCode\x12\x06\n" + "\x02OK\x10\x00B!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, 15) var file_cmd_proto_goTypes = []any{ (UserIdType)(0), // 0: saasapi.UserIdType (ErrorCode)(0), // 1: saasapi.ErrorCode (CmdErrorCode)(0), // 2: saasapi.CmdErrorCode (*SaasReq)(nil), // 3: saasapi.SaasReq (*Write)(nil), // 4: saasapi.Write (*WriteCmd)(nil), // 5: saasapi.WriteCmd (*Bytes)(nil), // 6: saasapi.Bytes (*Uint32S)(nil), // 7: saasapi.Uint32s (*FlagsWithExpire)(nil), // 8: saasapi.FlagsWithExpire (*FlagWithExpire)(nil), // 9: saasapi.FlagWithExpire (*Read)(nil), // 10: saasapi.Read (*ReadCmd)(nil), // 11: saasapi.ReadCmd (*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 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() } func file_cmd_proto_init() { if File_cmd_proto != nil { return } 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{ 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: 15, 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 }