增加saastool功能
This commit is contained in:
679
cmd.pb.go
679
cmd.pb.go
@@ -25,19 +25,19 @@ const (
|
||||
type UserIdType int32
|
||||
|
||||
const (
|
||||
UserIdType_DeviceId UserIdType = 0 // 设备号
|
||||
UserIdType_OpenId UserIdType = 1 // OpenId
|
||||
UserIdType_DEVICEID UserIdType = 0 // 设备号
|
||||
UserIdType_OPENID UserIdType = 1 // OpenId
|
||||
)
|
||||
|
||||
// Enum value maps for UserIdType.
|
||||
var (
|
||||
UserIdType_name = map[int32]string{
|
||||
0: "DeviceId",
|
||||
1: "OpenId",
|
||||
0: "DEVICEID",
|
||||
1: "OPENID",
|
||||
}
|
||||
UserIdType_value = map[string]int32{
|
||||
"DeviceId": 0,
|
||||
"OpenId": 1,
|
||||
"DEVICEID": 0,
|
||||
"OPENID": 1,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -68,12 +68,137 @@ func (UserIdType) EnumDescriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
// Cmds 批量命令
|
||||
// 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
|
||||
Cmds []*WriteCmd `protobuf:"bytes,3,rep,name=cmds,proto3" json:"cmds,omitempty"` // 批量写入命令
|
||||
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
|
||||
Cmd isSaasReq_Cmd `protobuf_oneof:"cmd"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -112,7 +237,7 @@ func (x *SaasReq) GetUseridType() UserIdType {
|
||||
if x != nil {
|
||||
return x.UseridType
|
||||
}
|
||||
return UserIdType_DeviceId
|
||||
return UserIdType_DEVICEID
|
||||
}
|
||||
|
||||
func (x *SaasReq) GetAppid() string {
|
||||
@@ -122,20 +247,106 @@ func (x *SaasReq) GetAppid() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SaasReq) GetCmds() []*WriteCmd {
|
||||
func (x *SaasReq) GetAsync() bool {
|
||||
if x != nil {
|
||||
return x.Cmds
|
||||
return x.Async
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *SaasReq) GetCmd() isSaasReq_Cmd {
|
||||
if x != nil {
|
||||
return x.Cmd
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// WriteCmd 上传命令
|
||||
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
|
||||
}
|
||||
|
||||
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"` // 批量读取
|
||||
}
|
||||
|
||||
func (*SaasReq_Write) isSaasReq_Cmd() {}
|
||||
|
||||
func (*SaasReq_Read) 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
|
||||
}
|
||||
|
||||
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) 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 *WriteBytes `protobuf:"bytes,2,opt,name=write_bytes,json=writeBytes,proto3" json:"write_bytes,omitempty"` // byte区域
|
||||
WriteUint32S *WriteUint32S `protobuf:"bytes,3,opt,name=write_uint32s,json=writeUint32s,proto3" json:"write_uint32s,omitempty"` // uint32区域
|
||||
WriteFlagsWithExpire *WriteFlagsWithExpire `protobuf:"bytes,4,opt,name=write_flags_with_expire,json=writeFlagsWithExpire,proto3" json:"write_flags_with_expire,omitempty"` // 标志位区域
|
||||
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
|
||||
@@ -143,7 +354,7 @@ type WriteCmd struct {
|
||||
|
||||
func (x *WriteCmd) Reset() {
|
||||
*x = WriteCmd{}
|
||||
mi := &file_cmd_proto_msgTypes[1]
|
||||
mi := &file_cmd_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -155,7 +366,7 @@ func (x *WriteCmd) String() string {
|
||||
func (*WriteCmd) ProtoMessage() {}
|
||||
|
||||
func (x *WriteCmd) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cmd_proto_msgTypes[1]
|
||||
mi := &file_cmd_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -168,7 +379,7 @@ func (x *WriteCmd) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WriteCmd.ProtoReflect.Descriptor instead.
|
||||
func (*WriteCmd) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{1}
|
||||
return file_cmd_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *WriteCmd) GetUserid() string {
|
||||
@@ -178,21 +389,21 @@ func (x *WriteCmd) GetUserid() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *WriteCmd) GetWriteBytes() *WriteBytes {
|
||||
func (x *WriteCmd) GetWriteBytes() *Bytes {
|
||||
if x != nil {
|
||||
return x.WriteBytes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *WriteCmd) GetWriteUint32S() *WriteUint32S {
|
||||
func (x *WriteCmd) GetWriteUint32S() *Uint32S {
|
||||
if x != nil {
|
||||
return x.WriteUint32S
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *WriteCmd) GetWriteFlagsWithExpire() *WriteFlagsWithExpire {
|
||||
func (x *WriteCmd) GetWriteFlagsWithExpire() *FlagsWithExpire {
|
||||
if x != nil {
|
||||
return x.WriteFlagsWithExpire
|
||||
}
|
||||
@@ -206,8 +417,8 @@ func (x *WriteCmd) GetIsFullOverwrite() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// WriteBytes 写入byte
|
||||
type WriteBytes struct {
|
||||
// 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)
|
||||
@@ -216,21 +427,21 @@ type WriteBytes struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *WriteBytes) Reset() {
|
||||
*x = WriteBytes{}
|
||||
mi := &file_cmd_proto_msgTypes[2]
|
||||
func (x *Bytes) Reset() {
|
||||
*x = Bytes{}
|
||||
mi := &file_cmd_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *WriteBytes) String() string {
|
||||
func (x *Bytes) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*WriteBytes) ProtoMessage() {}
|
||||
func (*Bytes) ProtoMessage() {}
|
||||
|
||||
func (x *WriteBytes) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cmd_proto_msgTypes[2]
|
||||
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 {
|
||||
@@ -241,56 +452,56 @@ func (x *WriteBytes) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use WriteBytes.ProtoReflect.Descriptor instead.
|
||||
func (*WriteBytes) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{2}
|
||||
// Deprecated: Use Bytes.ProtoReflect.Descriptor instead.
|
||||
func (*Bytes) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *WriteBytes) GetBytes() []byte {
|
||||
func (x *Bytes) GetBytes() []byte {
|
||||
if x != nil {
|
||||
return x.Bytes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *WriteBytes) GetIndex_1() uint64 {
|
||||
func (x *Bytes) GetIndex_1() uint64 {
|
||||
if x != nil {
|
||||
return x.Index_1
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *WriteBytes) GetIndex_2() uint64 {
|
||||
func (x *Bytes) GetIndex_2() uint64 {
|
||||
if x != nil {
|
||||
return x.Index_2
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// WriteUint32s 写入uint32
|
||||
type WriteUint32S struct {
|
||||
// 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..63)
|
||||
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 *WriteUint32S) Reset() {
|
||||
*x = WriteUint32S{}
|
||||
mi := &file_cmd_proto_msgTypes[3]
|
||||
func (x *Uint32S) Reset() {
|
||||
*x = Uint32S{}
|
||||
mi := &file_cmd_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *WriteUint32S) String() string {
|
||||
func (x *Uint32S) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*WriteUint32S) ProtoMessage() {}
|
||||
func (*Uint32S) ProtoMessage() {}
|
||||
|
||||
func (x *WriteUint32S) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cmd_proto_msgTypes[3]
|
||||
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 {
|
||||
@@ -301,27 +512,27 @@ func (x *WriteUint32S) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use WriteUint32S.ProtoReflect.Descriptor instead.
|
||||
func (*WriteUint32S) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{3}
|
||||
// Deprecated: Use Uint32S.ProtoReflect.Descriptor instead.
|
||||
func (*Uint32S) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *WriteUint32S) GetUint32S() []uint32 {
|
||||
func (x *Uint32S) GetUint32S() []uint32 {
|
||||
if x != nil {
|
||||
return x.Uint32S
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *WriteUint32S) GetIndex_1() uint64 {
|
||||
func (x *Uint32S) GetIndex_1() uint64 {
|
||||
if x != nil {
|
||||
return x.Index_1
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// WriteFlagsWithExpire 写入标志位
|
||||
type WriteFlagsWithExpire struct {
|
||||
// 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"` // 写入标志位的索引值
|
||||
@@ -329,21 +540,21 @@ type WriteFlagsWithExpire struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *WriteFlagsWithExpire) Reset() {
|
||||
*x = WriteFlagsWithExpire{}
|
||||
mi := &file_cmd_proto_msgTypes[4]
|
||||
func (x *FlagsWithExpire) Reset() {
|
||||
*x = FlagsWithExpire{}
|
||||
mi := &file_cmd_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *WriteFlagsWithExpire) String() string {
|
||||
func (x *FlagsWithExpire) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*WriteFlagsWithExpire) ProtoMessage() {}
|
||||
func (*FlagsWithExpire) ProtoMessage() {}
|
||||
|
||||
func (x *WriteFlagsWithExpire) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cmd_proto_msgTypes[4]
|
||||
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 {
|
||||
@@ -354,19 +565,19 @@ func (x *WriteFlagsWithExpire) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use WriteFlagsWithExpire.ProtoReflect.Descriptor instead.
|
||||
func (*WriteFlagsWithExpire) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{4}
|
||||
// Deprecated: Use FlagsWithExpire.ProtoReflect.Descriptor instead.
|
||||
func (*FlagsWithExpire) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *WriteFlagsWithExpire) GetFlagsWithExpire() []*FlagWithExpire {
|
||||
func (x *FlagsWithExpire) GetFlagsWithExpire() []*FlagWithExpire {
|
||||
if x != nil {
|
||||
return x.FlagsWithExpire
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *WriteFlagsWithExpire) GetIndex_1() uint64 {
|
||||
func (x *FlagsWithExpire) GetIndex_1() uint64 {
|
||||
if x != nil {
|
||||
return x.Index_1
|
||||
}
|
||||
@@ -385,7 +596,7 @@ type FlagWithExpire struct {
|
||||
|
||||
func (x *FlagWithExpire) Reset() {
|
||||
*x = FlagWithExpire{}
|
||||
mi := &file_cmd_proto_msgTypes[5]
|
||||
mi := &file_cmd_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -397,7 +608,7 @@ func (x *FlagWithExpire) String() string {
|
||||
func (*FlagWithExpire) ProtoMessage() {}
|
||||
|
||||
func (x *FlagWithExpire) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cmd_proto_msgTypes[5]
|
||||
mi := &file_cmd_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -410,7 +621,7 @@ func (x *FlagWithExpire) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use FlagWithExpire.ProtoReflect.Descriptor instead.
|
||||
func (*FlagWithExpire) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{5}
|
||||
return file_cmd_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *FlagWithExpire) GetFlag() bool {
|
||||
@@ -434,17 +645,109 @@ func (x *FlagWithExpire) GetExpire() uint32 {
|
||||
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 ""
|
||||
}
|
||||
|
||||
// SaasRes 命令返回
|
||||
type SaasRes struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 返回码
|
||||
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,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"` // 返回信息的文本提示
|
||||
CmdRes []*CmdsResItem `protobuf:"bytes,3,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[6]
|
||||
mi := &file_cmd_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -456,7 +759,7 @@ func (x *SaasRes) String() string {
|
||||
func (*SaasRes) ProtoMessage() {}
|
||||
|
||||
func (x *SaasRes) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_cmd_proto_msgTypes[6]
|
||||
mi := &file_cmd_proto_msgTypes[9]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -469,14 +772,14 @@ func (x *SaasRes) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SaasRes.ProtoReflect.Descriptor instead.
|
||||
func (*SaasRes) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{6}
|
||||
return file_cmd_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *SaasRes) GetCode() uint32 {
|
||||
func (x *SaasRes) GetCode() ErrorCode {
|
||||
if x != nil {
|
||||
return x.Code
|
||||
}
|
||||
return 0
|
||||
return ErrorCode_SUCC
|
||||
}
|
||||
|
||||
func (x *SaasRes) GetStatus() string {
|
||||
@@ -486,46 +789,163 @@ func (x *SaasRes) GetStatus() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
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"` // 标志位区域
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CmdsResItem) Reset() {
|
||||
*x = CmdsResItem{}
|
||||
mi := &file_cmd_proto_msgTypes[10]
|
||||
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[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 CmdsResItem.ProtoReflect.Descriptor instead.
|
||||
func (*CmdsResItem) Descriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
var File_cmd_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_cmd_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\tcmd.proto\x12\asaasapi\"|\n" +
|
||||
"\tcmd.proto\x12\asaasapi\"\xbf\x01\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" +
|
||||
"\x04cmds\x18\x03 \x03(\v2\x11.saasapi.WriteCmdR\x04cmds\"\x96\x02\n" +
|
||||
"\bWriteCmd\x12\x16\n" +
|
||||
"\x06userid\x18\x01 \x01(\tR\x06userid\x124\n" +
|
||||
"\vwrite_bytes\x18\x02 \x01(\v2\x13.saasapi.WriteBytesR\n" +
|
||||
"writeBytes\x12:\n" +
|
||||
"\rwrite_uint32s\x18\x03 \x01(\v2\x15.saasapi.WriteUint32sR\fwriteUint32s\x12T\n" +
|
||||
"\x17write_flags_with_expire\x18\x04 \x01(\v2\x1d.saasapi.WriteFlagsWithExpireR\x14writeFlagsWithExpire\x12*\n" +
|
||||
"\x11is_full_overwrite\x18\x05 \x01(\bR\x0fisFullOverwrite\"T\n" +
|
||||
"\x05appid\x18\x02 \x01(\tR\x05appid\x12\x14\n" +
|
||||
"\x05async\x18\x04 \x01(\bR\x05async\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" +
|
||||
"\n" +
|
||||
"WriteBytes\x12\x14\n" +
|
||||
"write_cmds\x18\x01 \x03(\v2\x11.saasapi.WriteCmdR\twriteCmds\"\x87\x02\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" +
|
||||
"\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\"A\n" +
|
||||
"\fWriteUint32s\x12\x18\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\"t\n" +
|
||||
"\x14WriteFlagsWithExpire\x12C\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" +
|
||||
"\aSaasRes\x12\x12\n" +
|
||||
"\x04code\x18\x01 \x01(\rR\x04code\x12\x16\n" +
|
||||
"\x06status\x18\x02 \x01(\tR\x06status*&\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\"x\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" +
|
||||
"\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" +
|
||||
"\n" +
|
||||
"UserIdType\x12\f\n" +
|
||||
"\bDeviceId\x10\x00\x12\n" +
|
||||
"\bDEVICEID\x10\x00\x12\n" +
|
||||
"\n" +
|
||||
"\x06OpenId\x10\x01B\vZ\t./saasapib\x06proto3"
|
||||
"\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\vZ\t./saasapib\x06proto3"
|
||||
|
||||
var (
|
||||
file_cmd_proto_rawDescOnce sync.Once
|
||||
@@ -539,30 +959,43 @@ func file_cmd_proto_rawDescGZIP() []byte {
|
||||
return file_cmd_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_cmd_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cmd_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_cmd_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
||||
var file_cmd_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
||||
var file_cmd_proto_goTypes = []any{
|
||||
(UserIdType)(0), // 0: saasapi.UserIdType
|
||||
(*SaasReq)(nil), // 1: saasapi.SaasReq
|
||||
(*WriteCmd)(nil), // 2: saasapi.WriteCmd
|
||||
(*WriteBytes)(nil), // 3: saasapi.WriteBytes
|
||||
(*WriteUint32S)(nil), // 4: saasapi.WriteUint32s
|
||||
(*WriteFlagsWithExpire)(nil), // 5: saasapi.WriteFlagsWithExpire
|
||||
(*FlagWithExpire)(nil), // 6: saasapi.FlagWithExpire
|
||||
(*SaasRes)(nil), // 7: saasapi.SaasRes
|
||||
(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
|
||||
(*SaasRes)(nil), // 12: saasapi.SaasRes
|
||||
(*CmdsResItem)(nil), // 13: saasapi.CmdsResItem
|
||||
}
|
||||
var file_cmd_proto_depIdxs = []int32{
|
||||
0, // 0: saasapi.SaasReq.userid_type:type_name -> saasapi.UserIdType
|
||||
2, // 1: saasapi.SaasReq.cmds:type_name -> saasapi.WriteCmd
|
||||
3, // 2: saasapi.WriteCmd.write_bytes:type_name -> saasapi.WriteBytes
|
||||
4, // 3: saasapi.WriteCmd.write_uint32s:type_name -> saasapi.WriteUint32s
|
||||
5, // 4: saasapi.WriteCmd.write_flags_with_expire:type_name -> saasapi.WriteFlagsWithExpire
|
||||
6, // 5: saasapi.WriteFlagsWithExpire.flags_with_expire:type_name -> saasapi.FlagWithExpire
|
||||
6, // [6:6] is the sub-list for method output_type
|
||||
6, // [6:6] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
6, // [6:6] is the sub-list for extension extendee
|
||||
0, // [0:6] is the sub-list for field type_name
|
||||
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
|
||||
}
|
||||
|
||||
func init() { file_cmd_proto_init() }
|
||||
@@ -570,13 +1003,17 @@ func file_cmd_proto_init() {
|
||||
if File_cmd_proto != nil {
|
||||
return
|
||||
}
|
||||
file_cmd_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*SaasReq_Write)(nil),
|
||||
(*SaasReq_Read)(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: 1,
|
||||
NumMessages: 7,
|
||||
NumEnums: 3,
|
||||
NumMessages: 11,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user