You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
753 lines
24 KiB
Go
753 lines
24 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.1
|
|
// protoc v3.6.1
|
|
// source: message.proto
|
|
|
|
package cluster
|
|
|
|
import (
|
|
command "github.com/rqlite/rqlite/command"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
type Command_Type int32
|
|
|
|
const (
|
|
Command_COMMAND_TYPE_UNKNOWN Command_Type = 0
|
|
Command_COMMAND_TYPE_GET_NODE_API_URL Command_Type = 1
|
|
Command_COMMAND_TYPE_EXECUTE Command_Type = 2
|
|
Command_COMMAND_TYPE_QUERY Command_Type = 3
|
|
Command_COMMAND_TYPE_BACKUP Command_Type = 4
|
|
Command_COMMAND_TYPE_LOAD Command_Type = 5
|
|
)
|
|
|
|
// Enum value maps for Command_Type.
|
|
var (
|
|
Command_Type_name = map[int32]string{
|
|
0: "COMMAND_TYPE_UNKNOWN",
|
|
1: "COMMAND_TYPE_GET_NODE_API_URL",
|
|
2: "COMMAND_TYPE_EXECUTE",
|
|
3: "COMMAND_TYPE_QUERY",
|
|
4: "COMMAND_TYPE_BACKUP",
|
|
5: "COMMAND_TYPE_LOAD",
|
|
}
|
|
Command_Type_value = map[string]int32{
|
|
"COMMAND_TYPE_UNKNOWN": 0,
|
|
"COMMAND_TYPE_GET_NODE_API_URL": 1,
|
|
"COMMAND_TYPE_EXECUTE": 2,
|
|
"COMMAND_TYPE_QUERY": 3,
|
|
"COMMAND_TYPE_BACKUP": 4,
|
|
"COMMAND_TYPE_LOAD": 5,
|
|
}
|
|
)
|
|
|
|
func (x Command_Type) Enum() *Command_Type {
|
|
p := new(Command_Type)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Command_Type) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Command_Type) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_message_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (Command_Type) Type() protoreflect.EnumType {
|
|
return &file_message_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x Command_Type) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Command_Type.Descriptor instead.
|
|
func (Command_Type) EnumDescriptor() ([]byte, []int) {
|
|
return file_message_proto_rawDescGZIP(), []int{2, 0}
|
|
}
|
|
|
|
type Credentials struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
}
|
|
|
|
func (x *Credentials) Reset() {
|
|
*x = Credentials{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_message_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Credentials) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Credentials) ProtoMessage() {}
|
|
|
|
func (x *Credentials) ProtoReflect() protoreflect.Message {
|
|
mi := &file_message_proto_msgTypes[0]
|
|
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 Credentials.ProtoReflect.Descriptor instead.
|
|
func (*Credentials) Descriptor() ([]byte, []int) {
|
|
return file_message_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Credentials) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Credentials) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Address struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
}
|
|
|
|
func (x *Address) Reset() {
|
|
*x = Address{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_message_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Address) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Address) ProtoMessage() {}
|
|
|
|
func (x *Address) ProtoReflect() protoreflect.Message {
|
|
mi := &file_message_proto_msgTypes[1]
|
|
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 Address.ProtoReflect.Descriptor instead.
|
|
func (*Address) Descriptor() ([]byte, []int) {
|
|
return file_message_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Address) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Command struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Type Command_Type `protobuf:"varint,1,opt,name=type,proto3,enum=cluster.Command_Type" json:"type,omitempty"`
|
|
// Types that are assignable to Request:
|
|
// *Command_ExecuteRequest
|
|
// *Command_QueryRequest
|
|
// *Command_BackupRequest
|
|
// *Command_LoadRequest
|
|
Request isCommand_Request `protobuf_oneof:"request"`
|
|
Credentials *Credentials `protobuf:"bytes,4,opt,name=credentials,proto3" json:"credentials,omitempty"`
|
|
}
|
|
|
|
func (x *Command) Reset() {
|
|
*x = Command{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_message_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Command) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Command) ProtoMessage() {}
|
|
|
|
func (x *Command) ProtoReflect() protoreflect.Message {
|
|
mi := &file_message_proto_msgTypes[2]
|
|
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 Command.ProtoReflect.Descriptor instead.
|
|
func (*Command) Descriptor() ([]byte, []int) {
|
|
return file_message_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *Command) GetType() Command_Type {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return Command_COMMAND_TYPE_UNKNOWN
|
|
}
|
|
|
|
func (m *Command) GetRequest() isCommand_Request {
|
|
if m != nil {
|
|
return m.Request
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetExecuteRequest() *command.ExecuteRequest {
|
|
if x, ok := x.GetRequest().(*Command_ExecuteRequest); ok {
|
|
return x.ExecuteRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetQueryRequest() *command.QueryRequest {
|
|
if x, ok := x.GetRequest().(*Command_QueryRequest); ok {
|
|
return x.QueryRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetBackupRequest() *command.BackupRequest {
|
|
if x, ok := x.GetRequest().(*Command_BackupRequest); ok {
|
|
return x.BackupRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetLoadRequest() *command.LoadRequest {
|
|
if x, ok := x.GetRequest().(*Command_LoadRequest); ok {
|
|
return x.LoadRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetCredentials() *Credentials {
|
|
if x != nil {
|
|
return x.Credentials
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isCommand_Request interface {
|
|
isCommand_Request()
|
|
}
|
|
|
|
type Command_ExecuteRequest struct {
|
|
ExecuteRequest *command.ExecuteRequest `protobuf:"bytes,2,opt,name=execute_request,json=executeRequest,proto3,oneof"`
|
|
}
|
|
|
|
type Command_QueryRequest struct {
|
|
QueryRequest *command.QueryRequest `protobuf:"bytes,3,opt,name=query_request,json=queryRequest,proto3,oneof"`
|
|
}
|
|
|
|
type Command_BackupRequest struct {
|
|
BackupRequest *command.BackupRequest `protobuf:"bytes,5,opt,name=backup_request,json=backupRequest,proto3,oneof"`
|
|
}
|
|
|
|
type Command_LoadRequest struct {
|
|
LoadRequest *command.LoadRequest `protobuf:"bytes,6,opt,name=load_request,json=loadRequest,proto3,oneof"`
|
|
}
|
|
|
|
func (*Command_ExecuteRequest) isCommand_Request() {}
|
|
|
|
func (*Command_QueryRequest) isCommand_Request() {}
|
|
|
|
func (*Command_BackupRequest) isCommand_Request() {}
|
|
|
|
func (*Command_LoadRequest) isCommand_Request() {}
|
|
|
|
type CommandExecuteResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
Results []*command.ExecuteResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
|
|
}
|
|
|
|
func (x *CommandExecuteResponse) Reset() {
|
|
*x = CommandExecuteResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_message_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CommandExecuteResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CommandExecuteResponse) ProtoMessage() {}
|
|
|
|
func (x *CommandExecuteResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_message_proto_msgTypes[3]
|
|
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 CommandExecuteResponse.ProtoReflect.Descriptor instead.
|
|
func (*CommandExecuteResponse) Descriptor() ([]byte, []int) {
|
|
return file_message_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *CommandExecuteResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CommandExecuteResponse) GetResults() []*command.ExecuteResult {
|
|
if x != nil {
|
|
return x.Results
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CommandQueryResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
Rows []*command.QueryRows `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
|
|
}
|
|
|
|
func (x *CommandQueryResponse) Reset() {
|
|
*x = CommandQueryResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_message_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CommandQueryResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CommandQueryResponse) ProtoMessage() {}
|
|
|
|
func (x *CommandQueryResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_message_proto_msgTypes[4]
|
|
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 CommandQueryResponse.ProtoReflect.Descriptor instead.
|
|
func (*CommandQueryResponse) Descriptor() ([]byte, []int) {
|
|
return file_message_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *CommandQueryResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CommandQueryResponse) GetRows() []*command.QueryRows {
|
|
if x != nil {
|
|
return x.Rows
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CommandBackupResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
}
|
|
|
|
func (x *CommandBackupResponse) Reset() {
|
|
*x = CommandBackupResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_message_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CommandBackupResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CommandBackupResponse) ProtoMessage() {}
|
|
|
|
func (x *CommandBackupResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_message_proto_msgTypes[5]
|
|
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 CommandBackupResponse.ProtoReflect.Descriptor instead.
|
|
func (*CommandBackupResponse) Descriptor() ([]byte, []int) {
|
|
return file_message_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *CommandBackupResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CommandBackupResponse) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CommandLoadResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
}
|
|
|
|
func (x *CommandLoadResponse) Reset() {
|
|
*x = CommandLoadResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_message_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CommandLoadResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CommandLoadResponse) ProtoMessage() {}
|
|
|
|
func (x *CommandLoadResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_message_proto_msgTypes[6]
|
|
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 CommandLoadResponse.ProtoReflect.Descriptor instead.
|
|
func (*CommandLoadResponse) Descriptor() ([]byte, []int) {
|
|
return file_message_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *CommandLoadResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_message_proto protoreflect.FileDescriptor
|
|
|
|
var file_message_proto_rawDesc = []byte{
|
|
0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
|
0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
|
|
0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
|
|
0x45, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, 0x1a,
|
|
0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
|
|
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,
|
|
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,
|
|
0x65, 0x63, 0x75, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20,
|
|
0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x45, 0x78,
|
|
0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0e,
|
|
0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c,
|
|
0x0a, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18,
|
|
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e,
|
|
0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c,
|
|
0x71, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0e,
|
|
0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x05,
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x42,
|
|
0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0d,
|
|
0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a,
|
|
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,
|
|
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,
|
|
}
|
|
|
|
var (
|
|
file_message_proto_rawDescOnce sync.Once
|
|
file_message_proto_rawDescData = file_message_proto_rawDesc
|
|
)
|
|
|
|
func file_message_proto_rawDescGZIP() []byte {
|
|
file_message_proto_rawDescOnce.Do(func() {
|
|
file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
|
|
})
|
|
return file_message_proto_rawDescData
|
|
}
|
|
|
|
var file_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
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
|
|
}
|
|
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
|
|
}
|
|
|
|
func init() { file_message_proto_init() }
|
|
func file_message_proto_init() {
|
|
if File_message_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Credentials); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Address); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Command); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CommandExecuteResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CommandQueryResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CommandBackupResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CommandLoadResponse); 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),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_message_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 7,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_message_proto_goTypes,
|
|
DependencyIndexes: file_message_proto_depIdxs,
|
|
EnumInfos: file_message_proto_enumTypes,
|
|
MessageInfos: file_message_proto_msgTypes,
|
|
}.Build()
|
|
File_message_proto = out.File
|
|
file_message_proto_rawDesc = nil
|
|
file_message_proto_goTypes = nil
|
|
file_message_proto_depIdxs = nil
|
|
}
|