|
|
|
@ -30,6 +30,7 @@ const (
|
|
|
|
|
Command_COMMAND_TYPE_QUERY Command_Type = 3
|
|
|
|
|
Command_COMMAND_TYPE_BACKUP Command_Type = 4
|
|
|
|
|
Command_COMMAND_TYPE_LOAD Command_Type = 5
|
|
|
|
|
Command_COMMAND_TYPE_REMOVE_NODE Command_Type = 6
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Enum value maps for Command_Type.
|
|
|
|
@ -41,6 +42,7 @@ var (
|
|
|
|
|
3: "COMMAND_TYPE_QUERY",
|
|
|
|
|
4: "COMMAND_TYPE_BACKUP",
|
|
|
|
|
5: "COMMAND_TYPE_LOAD",
|
|
|
|
|
6: "COMMAND_TYPE_REMOVE_NODE",
|
|
|
|
|
}
|
|
|
|
|
Command_Type_value = map[string]int32{
|
|
|
|
|
"COMMAND_TYPE_UNKNOWN": 0,
|
|
|
|
@ -49,6 +51,7 @@ var (
|
|
|
|
|
"COMMAND_TYPE_QUERY": 3,
|
|
|
|
|
"COMMAND_TYPE_BACKUP": 4,
|
|
|
|
|
"COMMAND_TYPE_LOAD": 5,
|
|
|
|
|
"COMMAND_TYPE_REMOVE_NODE": 6,
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -192,6 +195,7 @@ type Command struct {
|
|
|
|
|
// *Command_QueryRequest
|
|
|
|
|
// *Command_BackupRequest
|
|
|
|
|
// *Command_LoadRequest
|
|
|
|
|
// *Command_RemoveNodeRequest
|
|
|
|
|
Request isCommand_Request `protobuf_oneof:"request"`
|
|
|
|
|
Credentials *Credentials `protobuf:"bytes,4,opt,name=credentials,proto3" json:"credentials,omitempty"`
|
|
|
|
|
}
|
|
|
|
@ -270,6 +274,13 @@ func (x *Command) GetLoadRequest() *command.LoadRequest {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Command) GetRemoveNodeRequest() *command.RemoveNodeRequest {
|
|
|
|
|
if x, ok := x.GetRequest().(*Command_RemoveNodeRequest); ok {
|
|
|
|
|
return x.RemoveNodeRequest
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Command) GetCredentials() *Credentials {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Credentials
|
|
|
|
@ -297,6 +308,10 @@ type Command_LoadRequest struct {
|
|
|
|
|
LoadRequest *command.LoadRequest `protobuf:"bytes,6,opt,name=load_request,json=loadRequest,proto3,oneof"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Command_RemoveNodeRequest struct {
|
|
|
|
|
RemoveNodeRequest *command.RemoveNodeRequest `protobuf:"bytes,7,opt,name=remove_node_request,json=removeNodeRequest,proto3,oneof"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*Command_ExecuteRequest) isCommand_Request() {}
|
|
|
|
|
|
|
|
|
|
func (*Command_QueryRequest) isCommand_Request() {}
|
|
|
|
@ -305,6 +320,8 @@ func (*Command_BackupRequest) isCommand_Request() {}
|
|
|
|
|
|
|
|
|
|
func (*Command_LoadRequest) isCommand_Request() {}
|
|
|
|
|
|
|
|
|
|
func (*Command_RemoveNodeRequest) isCommand_Request() {}
|
|
|
|
|
|
|
|
|
|
type CommandExecuteResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
@ -517,6 +534,53 @@ func (x *CommandLoadResponse) GetError() string {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CommandRemoveNodeResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CommandRemoveNodeResponse) Reset() {
|
|
|
|
|
*x = CommandRemoveNodeResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_message_proto_msgTypes[7]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CommandRemoveNodeResponse) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*CommandRemoveNodeResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *CommandRemoveNodeResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_message_proto_msgTypes[7]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use CommandRemoveNodeResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CommandRemoveNodeResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_message_proto_rawDescGZIP(), []int{7}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CommandRemoveNodeResponse) GetError() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Error
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var File_message_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
var file_message_proto_rawDesc = []byte{
|
|
|
|
@ -529,7 +593,7 @@ var file_message_proto_rawDesc = []byte{
|
|
|
|
|
0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
|
|
|
|
|
0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x1b, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
|
|
|
|
|
0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
|
|
|
|
0x75, 0x72, 0x6c, 0x22, 0x9d, 0x04, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12,
|
|
|
|
|
0x75, 0x72, 0x6c, 0x22, 0x89, 0x05, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12,
|
|
|
|
|
0x29, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e,
|
|
|
|
|
0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e,
|
|
|
|
|
0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0f, 0x65, 0x78,
|
|
|
|
@ -548,43 +612,53 @@ var file_message_proto_rawDesc = []byte{
|
|
|
|
|
0x0c, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x06, 0x20,
|
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x4c, 0x6f,
|
|
|
|
|
0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x6c, 0x6f, 0x61,
|
|
|
|
|
0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64,
|
|
|
|
|
0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
|
|
|
|
|
0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
|
|
|
|
|
0x61, 0x6c, 0x73, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73,
|
|
|
|
|
0x22, 0xa5, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4f, 0x4d,
|
|
|
|
|
0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57,
|
|
|
|
|
0x4e, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54,
|
|
|
|
|
0x59, 0x50, 0x45, 0x5f, 0x47, 0x45, 0x54, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x41, 0x50, 0x49,
|
|
|
|
|
0x5f, 0x55, 0x52, 0x4c, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e,
|
|
|
|
|
0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x45, 0x10, 0x02,
|
|
|
|
|
0x12, 0x16, 0x0a, 0x12, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45,
|
|
|
|
|
0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4d, 0x4d,
|
|
|
|
|
0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x10,
|
|
|
|
|
0x04, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50,
|
|
|
|
|
0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x05, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75,
|
|
|
|
|
0x65, 0x73, 0x74, 0x22, 0x60, 0x0a, 0x16, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78,
|
|
|
|
|
0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a,
|
|
|
|
|
0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72,
|
|
|
|
|
0x72, 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02,
|
|
|
|
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x45,
|
|
|
|
|
0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65,
|
|
|
|
|
0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x54, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
|
|
|
|
|
0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a,
|
|
|
|
|
0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72,
|
|
|
|
|
0x72, 0x6f, 0x72, 0x12, 0x26, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
|
|
|
|
|
0x0b, 0x32, 0x12, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x51, 0x75, 0x65, 0x72,
|
|
|
|
|
0x79, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x22, 0x41, 0x0a, 0x15, 0x43,
|
|
|
|
|
0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
|
0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x13, 0x72, 0x65, 0x6d, 0x6f,
|
|
|
|
|
0x76, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18,
|
|
|
|
|
0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e,
|
|
|
|
|
0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
|
|
0x74, 0x48, 0x00, 0x52, 0x11, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52,
|
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
|
|
|
|
|
0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6c,
|
|
|
|
|
0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
|
|
|
|
|
0x73, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x22, 0xc3,
|
|
|
|
|
0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4f, 0x4d, 0x4d, 0x41,
|
|
|
|
|
0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10,
|
|
|
|
|
0x00, 0x12, 0x21, 0x0a, 0x1d, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50,
|
|
|
|
|
0x45, 0x5f, 0x47, 0x45, 0x54, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x41, 0x50, 0x49, 0x5f, 0x55,
|
|
|
|
|
0x52, 0x4c, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f,
|
|
|
|
|
0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x45, 0x10, 0x02, 0x12, 0x16,
|
|
|
|
|
0x0a, 0x12, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x51,
|
|
|
|
|
0x55, 0x45, 0x52, 0x59, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e,
|
|
|
|
|
0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x10, 0x04, 0x12,
|
|
|
|
|
0x15, 0x0a, 0x11, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,
|
|
|
|
|
0x4c, 0x4f, 0x41, 0x44, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e,
|
|
|
|
|
0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x5f, 0x4e, 0x4f,
|
|
|
|
|
0x44, 0x45, 0x10, 0x06, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
|
|
|
|
|
0x60, 0x0a, 0x16, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74,
|
|
|
|
|
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72,
|
|
|
|
|
0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12,
|
|
|
|
|
0x30, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
|
|
|
|
|
0x32, 0x16, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75,
|
|
|
|
|
0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
|
|
|
|
|
0x73, 0x22, 0x54, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x51, 0x75, 0x65, 0x72,
|
|
|
|
|
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72,
|
|
|
|
|
0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12,
|
|
|
|
|
0x26, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e,
|
|
|
|
|
0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x77,
|
|
|
|
|
0x73, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x22, 0x41, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
|
|
|
|
|
0x6e, 0x64, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
|
0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
|
0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02,
|
|
|
|
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2b, 0x0a, 0x13, 0x43, 0x6f,
|
|
|
|
|
0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
|
0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
|
0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x31, 0x0a, 0x19, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
|
|
|
|
|
0x6e, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20,
|
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61,
|
|
|
|
|
0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2b,
|
|
|
|
|
0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73,
|
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01,
|
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x22, 0x5a, 0x20, 0x67,
|
|
|
|
|
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x71, 0x6c, 0x69, 0x74, 0x65,
|
|
|
|
|
0x2f, 0x72, 0x71, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x62,
|
|
|
|
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x22, 0x5a, 0x20, 0x67, 0x69,
|
|
|
|
|
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x71, 0x6c, 0x69, 0x74, 0x65, 0x2f,
|
|
|
|
|
0x72, 0x71, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x62, 0x06,
|
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
@ -600,37 +674,40 @@ func file_message_proto_rawDescGZIP() []byte {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var file_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
|
|
|
var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
|
|
|
var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
|
|
|
var file_message_proto_goTypes = []interface{}{
|
|
|
|
|
(Command_Type)(0), // 0: cluster.Command.Type
|
|
|
|
|
(*Credentials)(nil), // 1: cluster.Credentials
|
|
|
|
|
(*Address)(nil), // 2: cluster.Address
|
|
|
|
|
(*Command)(nil), // 3: cluster.Command
|
|
|
|
|
(*CommandExecuteResponse)(nil), // 4: cluster.CommandExecuteResponse
|
|
|
|
|
(*CommandQueryResponse)(nil), // 5: cluster.CommandQueryResponse
|
|
|
|
|
(*CommandBackupResponse)(nil), // 6: cluster.CommandBackupResponse
|
|
|
|
|
(*CommandLoadResponse)(nil), // 7: cluster.CommandLoadResponse
|
|
|
|
|
(*command.ExecuteRequest)(nil), // 8: command.ExecuteRequest
|
|
|
|
|
(*command.QueryRequest)(nil), // 9: command.QueryRequest
|
|
|
|
|
(*command.BackupRequest)(nil), // 10: command.BackupRequest
|
|
|
|
|
(*command.LoadRequest)(nil), // 11: command.LoadRequest
|
|
|
|
|
(*command.ExecuteResult)(nil), // 12: command.ExecuteResult
|
|
|
|
|
(*command.QueryRows)(nil), // 13: command.QueryRows
|
|
|
|
|
(Command_Type)(0), // 0: cluster.Command.Type
|
|
|
|
|
(*Credentials)(nil), // 1: cluster.Credentials
|
|
|
|
|
(*Address)(nil), // 2: cluster.Address
|
|
|
|
|
(*Command)(nil), // 3: cluster.Command
|
|
|
|
|
(*CommandExecuteResponse)(nil), // 4: cluster.CommandExecuteResponse
|
|
|
|
|
(*CommandQueryResponse)(nil), // 5: cluster.CommandQueryResponse
|
|
|
|
|
(*CommandBackupResponse)(nil), // 6: cluster.CommandBackupResponse
|
|
|
|
|
(*CommandLoadResponse)(nil), // 7: cluster.CommandLoadResponse
|
|
|
|
|
(*CommandRemoveNodeResponse)(nil), // 8: cluster.CommandRemoveNodeResponse
|
|
|
|
|
(*command.ExecuteRequest)(nil), // 9: command.ExecuteRequest
|
|
|
|
|
(*command.QueryRequest)(nil), // 10: command.QueryRequest
|
|
|
|
|
(*command.BackupRequest)(nil), // 11: command.BackupRequest
|
|
|
|
|
(*command.LoadRequest)(nil), // 12: command.LoadRequest
|
|
|
|
|
(*command.RemoveNodeRequest)(nil), // 13: command.RemoveNodeRequest
|
|
|
|
|
(*command.ExecuteResult)(nil), // 14: command.ExecuteResult
|
|
|
|
|
(*command.QueryRows)(nil), // 15: command.QueryRows
|
|
|
|
|
}
|
|
|
|
|
var file_message_proto_depIdxs = []int32{
|
|
|
|
|
0, // 0: cluster.Command.type:type_name -> cluster.Command.Type
|
|
|
|
|
8, // 1: cluster.Command.execute_request:type_name -> command.ExecuteRequest
|
|
|
|
|
9, // 2: cluster.Command.query_request:type_name -> command.QueryRequest
|
|
|
|
|
10, // 3: cluster.Command.backup_request:type_name -> command.BackupRequest
|
|
|
|
|
11, // 4: cluster.Command.load_request:type_name -> command.LoadRequest
|
|
|
|
|
1, // 5: cluster.Command.credentials:type_name -> cluster.Credentials
|
|
|
|
|
12, // 6: cluster.CommandExecuteResponse.results:type_name -> command.ExecuteResult
|
|
|
|
|
13, // 7: cluster.CommandQueryResponse.rows:type_name -> command.QueryRows
|
|
|
|
|
8, // [8:8] is the sub-list for method output_type
|
|
|
|
|
8, // [8:8] is the sub-list for method input_type
|
|
|
|
|
8, // [8:8] is the sub-list for extension type_name
|
|
|
|
|
8, // [8:8] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:8] is the sub-list for field type_name
|
|
|
|
|
9, // 1: cluster.Command.execute_request:type_name -> command.ExecuteRequest
|
|
|
|
|
10, // 2: cluster.Command.query_request:type_name -> command.QueryRequest
|
|
|
|
|
11, // 3: cluster.Command.backup_request:type_name -> command.BackupRequest
|
|
|
|
|
12, // 4: cluster.Command.load_request:type_name -> command.LoadRequest
|
|
|
|
|
13, // 5: cluster.Command.remove_node_request:type_name -> command.RemoveNodeRequest
|
|
|
|
|
1, // 6: cluster.Command.credentials:type_name -> cluster.Credentials
|
|
|
|
|
14, // 7: cluster.CommandExecuteResponse.results:type_name -> command.ExecuteResult
|
|
|
|
|
15, // 8: cluster.CommandQueryResponse.rows:type_name -> command.QueryRows
|
|
|
|
|
9, // [9:9] is the sub-list for method output_type
|
|
|
|
|
9, // [9:9] is the sub-list for method input_type
|
|
|
|
|
9, // [9:9] is the sub-list for extension type_name
|
|
|
|
|
9, // [9:9] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:9] is the sub-list for field type_name
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { file_message_proto_init() }
|
|
|
|
@ -723,12 +800,25 @@ func file_message_proto_init() {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*CommandRemoveNodeResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_message_proto_msgTypes[2].OneofWrappers = []interface{}{
|
|
|
|
|
(*Command_ExecuteRequest)(nil),
|
|
|
|
|
(*Command_QueryRequest)(nil),
|
|
|
|
|
(*Command_BackupRequest)(nil),
|
|
|
|
|
(*Command_LoadRequest)(nil),
|
|
|
|
|
(*Command_RemoveNodeRequest)(nil),
|
|
|
|
|
}
|
|
|
|
|
type x struct{}
|
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
@ -736,7 +826,7 @@ func file_message_proto_init() {
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
|
RawDescriptor: file_message_proto_rawDesc,
|
|
|
|
|
NumEnums: 1,
|
|
|
|
|
NumMessages: 7,
|
|
|
|
|
NumMessages: 8,
|
|
|
|
|
NumExtensions: 0,
|
|
|
|
|
NumServices: 0,
|
|
|
|
|
},
|
|
|
|
|