From ad916270d2b9fc374145a4cccc62325a244a5462 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Thu, 21 Dec 2023 11:22:36 -0500 Subject: [PATCH] Bring go mod import path into compliance --- auto/backup/config.go | 4 +- auto/backup/config_test.go | 4 +- auto/backup/uploader.go | 2 +- auto/restore/config.go | 4 +- auto/restore/config_test.go | 4 +- cluster/bootstrap.go | 4 +- cluster/bootstrap_test.go | 4 +- cluster/client.go | 4 +- cluster/client_test.go | 4 +- cluster/join.go | 2 +- cluster/join_test.go | 2 +- cluster/message.pb.go | 2 +- cluster/message.proto | 2 +- cluster/remove.go | 2 +- cluster/remove_test.go | 2 +- cluster/service.go | 4 +- cluster/service_db_clstr_test.go | 4 +- cluster/service_mux_test.go | 6 +- cluster/service_test.go | 4 +- cmd/rqlite/execute.go | 2 +- cmd/rqlite/main.go | 8 +- cmd/rqlite/query.go | 2 +- cmd/rqlited/main.go | 26 +- command/chunking/chunker.go | 2 +- command/chunking/dechunker.go | 2 +- command/chunking/dechunker_test.go | 2 +- command/command.proto | 2 +- command/encoding/json.go | 2 +- command/encoding/json_test.go | 2 +- db/db.go | 2 +- db/db_common_test.go | 4 +- db/db_test.go | 4 +- db/wal/walr/main.go | 2 +- db/wal/writer_test.go | 2 +- disco/service.go | 2 +- go.mod | 2 +- http/nodes.go | 2 +- http/nodes_test.go | 2 +- http/preflight_test.go | 2 +- http/query_params.go | 2 +- http/request_parser.go | 2 +- http/service.go | 16 +- http/service_test.go | 6 +- http/service_tls_test.go | 2 +- queue/queue.go | 2 +- queue/queue_test.go | 2 +- snapshot/sink.go | 2 +- snapshot/sink_test.go | 4 +- snapshot/snapshot.go | 2 +- snapshot/store.go | 2 +- snapshot/upgrader.go | 2 +- store/provider_test.go | 2 +- store/store.go | 14 +- store/store_restart_test.go | 2 +- store/store_test.go | 10 +- store/transport.go | 2 +- system_test/cluster_test.go | 12 +- system_test/helpers.go | 14 +- system_test/request_forwarding_test.go | 8 +- system_test/single_node_test.go | 8 +- tcp/dialer_test.go | 4 +- tcp/mux.go | 2 +- tcp/mux_test.go | 2 +- tcp/pool/channel_test.go | 2 +- v8/cluster/message.pb.go | 1223 ++++++++++++++++ v8/command/command.pb.go | 1843 ++++++++++++++++++++++++ 66 files changed, 3198 insertions(+), 132 deletions(-) create mode 100644 v8/cluster/message.pb.go create mode 100644 v8/command/command.pb.go diff --git a/auto/backup/config.go b/auto/backup/config.go index 87d0309d..2be7f213 100644 --- a/auto/backup/config.go +++ b/auto/backup/config.go @@ -5,8 +5,8 @@ import ( "io" "os" - "github.com/rqlite/rqlite/auto" - "github.com/rqlite/rqlite/aws" + "github.com/rqlite/rqlite/v8/auto" + "github.com/rqlite/rqlite/v8/aws" ) // Config is the config file format for the upload service diff --git a/auto/backup/config_test.go b/auto/backup/config_test.go index e3da7df9..c26251e7 100644 --- a/auto/backup/config_test.go +++ b/auto/backup/config_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/auto" - "github.com/rqlite/rqlite/aws" + "github.com/rqlite/rqlite/v8/auto" + "github.com/rqlite/rqlite/v8/aws" ) func Test_ReadConfigFile(t *testing.T) { diff --git a/auto/backup/uploader.go b/auto/backup/uploader.go index bf3e733e..71c1d358 100644 --- a/auto/backup/uploader.go +++ b/auto/backup/uploader.go @@ -10,7 +10,7 @@ import ( "os" "time" - "github.com/rqlite/rqlite/progress" + "github.com/rqlite/rqlite/v8/progress" ) // StorageClient is an interface for uploading data to a storage service. diff --git a/auto/restore/config.go b/auto/restore/config.go index 70c6599c..e6995f41 100644 --- a/auto/restore/config.go +++ b/auto/restore/config.go @@ -6,8 +6,8 @@ import ( "os" "time" - "github.com/rqlite/rqlite/auto" - "github.com/rqlite/rqlite/aws" + "github.com/rqlite/rqlite/v8/auto" + "github.com/rqlite/rqlite/v8/aws" ) // Config is the config file format for the upload service diff --git a/auto/restore/config_test.go b/auto/restore/config_test.go index 1a677e3d..06872da9 100644 --- a/auto/restore/config_test.go +++ b/auto/restore/config_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/auto" - "github.com/rqlite/rqlite/aws" + "github.com/rqlite/rqlite/v8/auto" + "github.com/rqlite/rqlite/v8/aws" ) func Test_ReadConfigFile(t *testing.T) { diff --git a/cluster/bootstrap.go b/cluster/bootstrap.go index 7c10a864..3d383bba 100644 --- a/cluster/bootstrap.go +++ b/cluster/bootstrap.go @@ -8,8 +8,8 @@ import ( "sync" "time" - "github.com/rqlite/rqlite/command" - "github.com/rqlite/rqlite/random" + "github.com/rqlite/rqlite/v8/command" + "github.com/rqlite/rqlite/v8/random" ) var ( diff --git a/cluster/bootstrap_test.go b/cluster/bootstrap_test.go index 4093ab50..21d5345a 100644 --- a/cluster/bootstrap_test.go +++ b/cluster/bootstrap_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/cluster/servicetest" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/cluster/servicetest" + "github.com/rqlite/rqlite/v8/command" "google.golang.org/protobuf/proto" ) diff --git a/cluster/client.go b/cluster/client.go index b2b56048..333e9395 100644 --- a/cluster/client.go +++ b/cluster/client.go @@ -11,8 +11,8 @@ import ( "sync" "time" - "github.com/rqlite/rqlite/command" - "github.com/rqlite/rqlite/tcp/pool" + "github.com/rqlite/rqlite/v8/command" + "github.com/rqlite/rqlite/v8/tcp/pool" "google.golang.org/protobuf/proto" ) diff --git a/cluster/client_test.go b/cluster/client_test.go index b6457efc..bb36d43d 100644 --- a/cluster/client_test.go +++ b/cluster/client_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/cluster/servicetest" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/cluster/servicetest" + "github.com/rqlite/rqlite/v8/command" "google.golang.org/protobuf/proto" ) diff --git a/cluster/join.go b/cluster/join.go index 9fa69c0e..d6e25f92 100644 --- a/cluster/join.go +++ b/cluster/join.go @@ -6,7 +6,7 @@ import ( "os" "time" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) var ( diff --git a/cluster/join_test.go b/cluster/join_test.go index faccfe6e..0fccfb7b 100644 --- a/cluster/join_test.go +++ b/cluster/join_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/cluster/servicetest" + "github.com/rqlite/rqlite/v8/cluster/servicetest" "google.golang.org/protobuf/proto" ) diff --git a/cluster/message.pb.go b/cluster/message.pb.go index b52ee9db..f327a0a6 100644 --- a/cluster/message.pb.go +++ b/cluster/message.pb.go @@ -7,7 +7,7 @@ package cluster import ( - command "github.com/rqlite/rqlite/command" + command "github.com/rqlite/rqlite/v8/command" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" diff --git a/cluster/message.proto b/cluster/message.proto index 7feca851..f14b481e 100644 --- a/cluster/message.proto +++ b/cluster/message.proto @@ -3,7 +3,7 @@ package cluster; import "command/command.proto"; -option go_package = "github.com/rqlite/rqlite/cluster"; +option go_package = "github.com/rqlite/rqlite/v8/cluster"; message Credentials { string username = 1; diff --git a/cluster/remove.go b/cluster/remove.go index 74d944d8..4a848042 100644 --- a/cluster/remove.go +++ b/cluster/remove.go @@ -5,7 +5,7 @@ import ( "os" "time" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) const ( diff --git a/cluster/remove_test.go b/cluster/remove_test.go index 50ec2856..2fb59b45 100644 --- a/cluster/remove_test.go +++ b/cluster/remove_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/cluster/servicetest" + "github.com/rqlite/rqlite/v8/cluster/servicetest" "google.golang.org/protobuf/proto" ) diff --git a/cluster/service.go b/cluster/service.go index 583f2a6e..0e61f84d 100644 --- a/cluster/service.go +++ b/cluster/service.go @@ -14,8 +14,8 @@ import ( "sync" "time" - "github.com/rqlite/rqlite/auth" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/auth" + "github.com/rqlite/rqlite/v8/command" "google.golang.org/protobuf/proto" ) diff --git a/cluster/service_db_clstr_test.go b/cluster/service_db_clstr_test.go index f25dc593..1ea82734 100644 --- a/cluster/service_db_clstr_test.go +++ b/cluster/service_db_clstr_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/command" - "github.com/rqlite/rqlite/command/encoding" + "github.com/rqlite/rqlite/v8/command" + "github.com/rqlite/rqlite/v8/command/encoding" ) const shortWait = 1 * time.Second diff --git a/cluster/service_mux_test.go b/cluster/service_mux_test.go index 1a5e7bd0..18797a96 100644 --- a/cluster/service_mux_test.go +++ b/cluster/service_mux_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/rtls" - "github.com/rqlite/rqlite/tcp" - "github.com/rqlite/rqlite/testdata/x509" + "github.com/rqlite/rqlite/v8/rtls" + "github.com/rqlite/rqlite/v8/tcp" + "github.com/rqlite/rqlite/v8/testdata/x509" ) func Test_NewServiceSetGetNodeAPIAddrMuxed(t *testing.T) { diff --git a/cluster/service_test.go b/cluster/service_test.go index 05f48911..d5aa5067 100644 --- a/cluster/service_test.go +++ b/cluster/service_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/command" - "github.com/rqlite/rqlite/testdata/x509" + "github.com/rqlite/rqlite/v8/command" + "github.com/rqlite/rqlite/v8/testdata/x509" ) func Test_NewServiceOpenClose(t *testing.T) { diff --git a/cmd/rqlite/execute.go b/cmd/rqlite/execute.go index a3f806a7..3a0186eb 100644 --- a/cmd/rqlite/execute.go +++ b/cmd/rqlite/execute.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/mkideal/cli" - cl "github.com/rqlite/rqlite/cmd/rqlite/http" + cl "github.com/rqlite/rqlite/v8/cmd/rqlite/http" ) // Result represents execute result diff --git a/cmd/rqlite/main.go b/cmd/rqlite/main.go index fd259b94..fb5181dc 100644 --- a/cmd/rqlite/main.go +++ b/cmd/rqlite/main.go @@ -18,10 +18,10 @@ import ( "github.com/Bowery/prompt" "github.com/mkideal/cli" clix "github.com/mkideal/cli/ext" - "github.com/rqlite/rqlite/cmd" - "github.com/rqlite/rqlite/cmd/rqlite/history" - httpcl "github.com/rqlite/rqlite/cmd/rqlite/http" - "github.com/rqlite/rqlite/rtls" + "github.com/rqlite/rqlite/v8/cmd" + "github.com/rqlite/rqlite/v8/cmd/rqlite/history" + httpcl "github.com/rqlite/rqlite/v8/cmd/rqlite/http" + "github.com/rqlite/rqlite/v8/rtls" ) const maxRedirect = 21 diff --git a/cmd/rqlite/query.go b/cmd/rqlite/query.go index 1db2042a..e8534f67 100644 --- a/cmd/rqlite/query.go +++ b/cmd/rqlite/query.go @@ -8,7 +8,7 @@ import ( "github.com/mkideal/cli" "github.com/mkideal/pkg/textutil" - cl "github.com/rqlite/rqlite/cmd/rqlite/http" + cl "github.com/rqlite/rqlite/v8/cmd/rqlite/http" ) // Rows represents query result diff --git a/cmd/rqlited/main.go b/cmd/rqlited/main.go index 4bdf397c..627c4c5f 100644 --- a/cmd/rqlited/main.go +++ b/cmd/rqlited/main.go @@ -18,19 +18,19 @@ import ( "github.com/rqlite/rqlite-disco-clients/dns" "github.com/rqlite/rqlite-disco-clients/dnssrv" etcd "github.com/rqlite/rqlite-disco-clients/etcd" - "github.com/rqlite/rqlite/auth" - "github.com/rqlite/rqlite/auto/backup" - "github.com/rqlite/rqlite/auto/restore" - "github.com/rqlite/rqlite/aws" - "github.com/rqlite/rqlite/cluster" - "github.com/rqlite/rqlite/cmd" - "github.com/rqlite/rqlite/db" - "github.com/rqlite/rqlite/disco" - "github.com/rqlite/rqlite/http" - httpd "github.com/rqlite/rqlite/http" - "github.com/rqlite/rqlite/rtls" - "github.com/rqlite/rqlite/store" - "github.com/rqlite/rqlite/tcp" + "github.com/rqlite/rqlite/v8/auth" + "github.com/rqlite/rqlite/v8/auto/backup" + "github.com/rqlite/rqlite/v8/auto/restore" + "github.com/rqlite/rqlite/v8/aws" + "github.com/rqlite/rqlite/v8/cluster" + "github.com/rqlite/rqlite/v8/cmd" + "github.com/rqlite/rqlite/v8/db" + "github.com/rqlite/rqlite/v8/disco" + "github.com/rqlite/rqlite/v8/http" + httpd "github.com/rqlite/rqlite/v8/http" + "github.com/rqlite/rqlite/v8/rtls" + "github.com/rqlite/rqlite/v8/store" + "github.com/rqlite/rqlite/v8/tcp" ) const logo = ` diff --git a/command/chunking/chunker.go b/command/chunking/chunker.go index d2e944d9..5e0691eb 100644 --- a/command/chunking/chunker.go +++ b/command/chunking/chunker.go @@ -9,7 +9,7 @@ import ( "io" "sync" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) const ( diff --git a/command/chunking/dechunker.go b/command/chunking/dechunker.go index dcb2f1bb..6f2ce7b6 100644 --- a/command/chunking/dechunker.go +++ b/command/chunking/dechunker.go @@ -8,7 +8,7 @@ import ( "os" "sync" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) // Dechunker is a writer that writes chunks to a file and returns the file path when diff --git a/command/chunking/dechunker_test.go b/command/chunking/dechunker_test.go index 3db290f1..a9ff7bd0 100644 --- a/command/chunking/dechunker_test.go +++ b/command/chunking/dechunker_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) func Test_SingleChunk(t *testing.T) { diff --git a/command/command.proto b/command/command.proto index eba56a6d..3a504504 100644 --- a/command/command.proto +++ b/command/command.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package command; -option go_package = "github.com/rqlite/rqlite/command"; +option go_package = "github.com/rqlite/rqlite/v8/command"; message Parameter { oneof value { diff --git a/command/encoding/json.go b/command/encoding/json.go index beeccf42..586de9b9 100644 --- a/command/encoding/json.go +++ b/command/encoding/json.go @@ -6,7 +6,7 @@ import ( "errors" "fmt" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) var ( diff --git a/command/encoding/json_test.go b/command/encoding/json_test.go index 7ac082a8..2a33b4af 100644 --- a/command/encoding/json_test.go +++ b/command/encoding/json_test.go @@ -3,7 +3,7 @@ package encoding import ( "testing" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) func Test_JSONNoEscaping(t *testing.T) { diff --git a/db/db.go b/db/db.go index b867bcb9..d01b16e3 100644 --- a/db/db.go +++ b/db/db.go @@ -18,7 +18,7 @@ import ( "time" "github.com/rqlite/go-sqlite3" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) const ( diff --git a/db/db_common_test.go b/db/db_common_test.go index fe70c68f..df0ee10b 100644 --- a/db/db_common_test.go +++ b/db/db_common_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "github.com/rqlite/rqlite/command" - "github.com/rqlite/rqlite/testdata/chinook" + "github.com/rqlite/rqlite/v8/command" + "github.com/rqlite/rqlite/v8/testdata/chinook" ) func testCompileOptions(t *testing.T, db *DB) { diff --git a/db/db_test.go b/db/db_test.go index ae5d5f8c..11d3fee5 100644 --- a/db/db_test.go +++ b/db/db_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/command" - "github.com/rqlite/rqlite/command/encoding" + "github.com/rqlite/rqlite/v8/command" + "github.com/rqlite/rqlite/v8/command/encoding" ) // Test_OpenNonExistentDatabase tests that opening a non-existent database diff --git a/db/wal/walr/main.go b/db/wal/walr/main.go index e9fc0b39..2c595556 100644 --- a/db/wal/walr/main.go +++ b/db/wal/walr/main.go @@ -6,7 +6,7 @@ import ( "io" "os" - "github.com/rqlite/rqlite/db/wal" + "github.com/rqlite/rqlite/v8/db/wal" ) const name = `walr` diff --git a/db/wal/writer_test.go b/db/wal/writer_test.go index a62828bd..20098e7f 100644 --- a/db/wal/writer_test.go +++ b/db/wal/writer_test.go @@ -9,7 +9,7 @@ import ( "testing" _ "github.com/rqlite/go-sqlite3" - "github.com/rqlite/rqlite/random" + "github.com/rqlite/rqlite/v8/random" ) func Test_Writer_FullScanner(t *testing.T) { diff --git a/disco/service.go b/disco/service.go index 99376477..5dd22fa6 100644 --- a/disco/service.go +++ b/disco/service.go @@ -7,7 +7,7 @@ import ( "sync" "time" - "github.com/rqlite/rqlite/random" + "github.com/rqlite/rqlite/v8/random" ) const ( diff --git a/go.mod b/go.mod index ebedb453..cda678e7 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/rqlite/rqlite +module github.com/rqlite/rqlite/v8 go 1.21 diff --git a/http/nodes.go b/http/nodes.go index 7c802c61..f4313748 100644 --- a/http/nodes.go +++ b/http/nodes.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "github.com/rqlite/rqlite/store" + "github.com/rqlite/rqlite/v8/store" ) // Node represents a single node in the cluster and can include diff --git a/http/nodes_test.go b/http/nodes_test.go index bf6958af..546ede06 100644 --- a/http/nodes_test.go +++ b/http/nodes_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/store" + "github.com/rqlite/rqlite/v8/store" ) func Test_NewNodeFromServer(t *testing.T) { diff --git a/http/preflight_test.go b/http/preflight_test.go index 8ff684dd..c6ae5f6c 100644 --- a/http/preflight_test.go +++ b/http/preflight_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/rtls" + "github.com/rqlite/rqlite/v8/rtls" ) // Test_IsServingHTTP_HTTPServerOnly tests only HTTP server running. diff --git a/http/query_params.go b/http/query_params.go index 72bda891..08bb8be0 100644 --- a/http/query_params.go +++ b/http/query_params.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) // QueryParams represents the query parameters passed in an HTTP request. diff --git a/http/request_parser.go b/http/request_parser.go index 9a481396..20880d25 100644 --- a/http/request_parser.go +++ b/http/request_parser.go @@ -6,7 +6,7 @@ import ( "errors" "fmt" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) var ( diff --git a/http/service.go b/http/service.go index c52b7a4c..754db5f2 100644 --- a/http/service.go +++ b/http/service.go @@ -20,14 +20,14 @@ import ( "sync" "time" - "github.com/rqlite/rqlite/auth" - "github.com/rqlite/rqlite/cluster" - "github.com/rqlite/rqlite/command" - "github.com/rqlite/rqlite/command/encoding" - "github.com/rqlite/rqlite/db" - "github.com/rqlite/rqlite/queue" - "github.com/rqlite/rqlite/rtls" - "github.com/rqlite/rqlite/store" + "github.com/rqlite/rqlite/v8/auth" + "github.com/rqlite/rqlite/v8/cluster" + "github.com/rqlite/rqlite/v8/command" + "github.com/rqlite/rqlite/v8/command/encoding" + "github.com/rqlite/rqlite/v8/db" + "github.com/rqlite/rqlite/v8/queue" + "github.com/rqlite/rqlite/v8/rtls" + "github.com/rqlite/rqlite/v8/store" ) var ( diff --git a/http/service_test.go b/http/service_test.go index 078dd105..64796de7 100644 --- a/http/service_test.go +++ b/http/service_test.go @@ -13,9 +13,9 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/cluster" - "github.com/rqlite/rqlite/command" - "github.com/rqlite/rqlite/store" + "github.com/rqlite/rqlite/v8/cluster" + "github.com/rqlite/rqlite/v8/command" + "github.com/rqlite/rqlite/v8/store" ) func Test_ResponseJSONMarshal(t *testing.T) { diff --git a/http/service_tls_test.go b/http/service_tls_test.go index 59f0bfa1..34c918fb 100644 --- a/http/service_tls_test.go +++ b/http/service_tls_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/rtls" + "github.com/rqlite/rqlite/v8/rtls" "golang.org/x/net/http2" ) diff --git a/queue/queue.go b/queue/queue.go index 29053cf6..6b955804 100644 --- a/queue/queue.go +++ b/queue/queue.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) // stats captures stats for the Queue. diff --git a/queue/queue_test.go b/queue/queue_test.go index c3db6f5d..c811988b 100644 --- a/queue/queue_test.go +++ b/queue/queue_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) var ( diff --git a/snapshot/sink.go b/snapshot/sink.go index 863152ee..1a55a719 100644 --- a/snapshot/sink.go +++ b/snapshot/sink.go @@ -6,7 +6,7 @@ import ( "path/filepath" "github.com/hashicorp/raft" - "github.com/rqlite/rqlite/db" + "github.com/rqlite/rqlite/v8/db" ) // Sink is a sink for writing snapshot data to a Snapshot store. diff --git a/snapshot/sink_test.go b/snapshot/sink_test.go index f53b7123..f50a09b3 100644 --- a/snapshot/sink_test.go +++ b/snapshot/sink_test.go @@ -9,8 +9,8 @@ import ( "testing" "github.com/hashicorp/raft" - "github.com/rqlite/rqlite/command/encoding" - "github.com/rqlite/rqlite/db" + "github.com/rqlite/rqlite/v8/command/encoding" + "github.com/rqlite/rqlite/v8/db" ) func Test_NewSinkCancel(t *testing.T) { diff --git a/snapshot/snapshot.go b/snapshot/snapshot.go index e848794d..9d19b4f2 100644 --- a/snapshot/snapshot.go +++ b/snapshot/snapshot.go @@ -7,7 +7,7 @@ import ( "time" "github.com/hashicorp/raft" - "github.com/rqlite/rqlite/progress" + "github.com/rqlite/rqlite/v8/progress" ) // Snapshot represents a snapshot of the database state. diff --git a/snapshot/store.go b/snapshot/store.go index 9e4e43ce..c1c2d7e5 100644 --- a/snapshot/store.go +++ b/snapshot/store.go @@ -15,7 +15,7 @@ import ( "time" "github.com/hashicorp/raft" - "github.com/rqlite/rqlite/db" + "github.com/rqlite/rqlite/v8/db" ) const ( diff --git a/snapshot/upgrader.go b/snapshot/upgrader.go index 154210a6..52b74329 100644 --- a/snapshot/upgrader.go +++ b/snapshot/upgrader.go @@ -11,7 +11,7 @@ import ( "sort" "github.com/hashicorp/raft" - "github.com/rqlite/rqlite/db" + "github.com/rqlite/rqlite/v8/db" ) const ( diff --git a/store/provider_test.go b/store/provider_test.go index a05fb066..f9fcf737 100644 --- a/store/provider_test.go +++ b/store/provider_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) // Test_SingleNodeProvide tests that the Store correctly implements diff --git a/store/store.go b/store/store.go index d455866c..248a32e8 100644 --- a/store/store.go +++ b/store/store.go @@ -20,13 +20,13 @@ import ( "time" "github.com/hashicorp/raft" - "github.com/rqlite/rqlite/command" - "github.com/rqlite/rqlite/command/chunking" - sql "github.com/rqlite/rqlite/db" - wal "github.com/rqlite/rqlite/db/wal" - rlog "github.com/rqlite/rqlite/log" - "github.com/rqlite/rqlite/progress" - "github.com/rqlite/rqlite/snapshot" + "github.com/rqlite/rqlite/v8/command" + "github.com/rqlite/rqlite/v8/command/chunking" + sql "github.com/rqlite/rqlite/v8/db" + wal "github.com/rqlite/rqlite/v8/db/wal" + rlog "github.com/rqlite/rqlite/v8/log" + "github.com/rqlite/rqlite/v8/progress" + "github.com/rqlite/rqlite/v8/snapshot" ) var ( diff --git a/store/store_restart_test.go b/store/store_restart_test.go index c895f986..33b6a6aa 100644 --- a/store/store_restart_test.go +++ b/store/store_restart_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/command" + "github.com/rqlite/rqlite/v8/command" ) func test_OpenStoreCloseStartup(t *testing.T, s *Store) { diff --git a/store/store_test.go b/store/store_test.go index ddac55f8..f71128c5 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -13,11 +13,11 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/command" - "github.com/rqlite/rqlite/command/encoding" - "github.com/rqlite/rqlite/db" - "github.com/rqlite/rqlite/random" - "github.com/rqlite/rqlite/testdata/chinook" + "github.com/rqlite/rqlite/v8/command" + "github.com/rqlite/rqlite/v8/command/encoding" + "github.com/rqlite/rqlite/v8/db" + "github.com/rqlite/rqlite/v8/random" + "github.com/rqlite/rqlite/v8/testdata/chinook" ) // Test_StoreSingleNode tests that a single node basically operates. diff --git a/store/transport.go b/store/transport.go index 2b689a14..6ddde994 100644 --- a/store/transport.go +++ b/store/transport.go @@ -6,7 +6,7 @@ import ( "time" "github.com/hashicorp/raft" - "github.com/rqlite/rqlite/store/gzip" + "github.com/rqlite/rqlite/v8/store/gzip" ) // Listener is the interface expected by the Store for Transports. diff --git a/system_test/cluster_test.go b/system_test/cluster_test.go index eba05ce0..f5b9ebb2 100644 --- a/system_test/cluster_test.go +++ b/system_test/cluster_test.go @@ -7,12 +7,12 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/cluster" - "github.com/rqlite/rqlite/db" - "github.com/rqlite/rqlite/http" - "github.com/rqlite/rqlite/queue" - "github.com/rqlite/rqlite/store" - "github.com/rqlite/rqlite/tcp" + "github.com/rqlite/rqlite/v8/cluster" + "github.com/rqlite/rqlite/v8/db" + "github.com/rqlite/rqlite/v8/http" + "github.com/rqlite/rqlite/v8/queue" + "github.com/rqlite/rqlite/v8/store" + "github.com/rqlite/rqlite/v8/tcp" ) // Test_JoinLeaderNode tests a join operation between a leader and a new node. diff --git a/system_test/helpers.go b/system_test/helpers.go index 56dcad83..eaebe576 100644 --- a/system_test/helpers.go +++ b/system_test/helpers.go @@ -18,13 +18,13 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/cluster" - "github.com/rqlite/rqlite/command" - "github.com/rqlite/rqlite/command/encoding" - httpd "github.com/rqlite/rqlite/http" - "github.com/rqlite/rqlite/store" - "github.com/rqlite/rqlite/tcp" - rX509 "github.com/rqlite/rqlite/testdata/x509" + "github.com/rqlite/rqlite/v8/cluster" + "github.com/rqlite/rqlite/v8/command" + "github.com/rqlite/rqlite/v8/command/encoding" + httpd "github.com/rqlite/rqlite/v8/http" + "github.com/rqlite/rqlite/v8/store" + "github.com/rqlite/rqlite/v8/tcp" + rX509 "github.com/rqlite/rqlite/v8/testdata/x509" ) const ( diff --git a/system_test/request_forwarding_test.go b/system_test/request_forwarding_test.go index 98481708..6679872f 100644 --- a/system_test/request_forwarding_test.go +++ b/system_test/request_forwarding_test.go @@ -6,10 +6,10 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/cluster" - "github.com/rqlite/rqlite/command" - "github.com/rqlite/rqlite/rtls" - "github.com/rqlite/rqlite/tcp" + "github.com/rqlite/rqlite/v8/cluster" + "github.com/rqlite/rqlite/v8/command" + "github.com/rqlite/rqlite/v8/rtls" + "github.com/rqlite/rqlite/v8/tcp" ) const ( diff --git a/system_test/single_node_test.go b/system_test/single_node_test.go index 2ccc241e..2c9e34db 100644 --- a/system_test/single_node_test.go +++ b/system_test/single_node_test.go @@ -12,10 +12,10 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/cluster" - httpd "github.com/rqlite/rqlite/http" - "github.com/rqlite/rqlite/store" - "github.com/rqlite/rqlite/tcp" + "github.com/rqlite/rqlite/v8/cluster" + httpd "github.com/rqlite/rqlite/v8/http" + "github.com/rqlite/rqlite/v8/store" + "github.com/rqlite/rqlite/v8/tcp" ) func Test_SingleNodeBasicEndpoint(t *testing.T) { diff --git a/tcp/dialer_test.go b/tcp/dialer_test.go index 5c064e44..5cc6697b 100644 --- a/tcp/dialer_test.go +++ b/tcp/dialer_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/rtls" - "github.com/rqlite/rqlite/testdata/x509" + "github.com/rqlite/rqlite/v8/rtls" + "github.com/rqlite/rqlite/v8/testdata/x509" ) func Test_NewDialer(t *testing.T) { diff --git a/tcp/mux.go b/tcp/mux.go index a10bf2b4..fc40c4a4 100644 --- a/tcp/mux.go +++ b/tcp/mux.go @@ -12,7 +12,7 @@ import ( "sync" "time" - "github.com/rqlite/rqlite/rtls" + "github.com/rqlite/rqlite/v8/rtls" ) const ( diff --git a/tcp/mux_test.go b/tcp/mux_test.go index b38a3856..8ef17a1c 100644 --- a/tcp/mux_test.go +++ b/tcp/mux_test.go @@ -13,7 +13,7 @@ import ( "testing/quick" "time" - "github.com/rqlite/rqlite/testdata/x509" + "github.com/rqlite/rqlite/v8/testdata/x509" ) // Ensure the muxer can split a listener's connections across multiple listeners. diff --git a/tcp/pool/channel_test.go b/tcp/pool/channel_test.go index d98f8012..310f064f 100644 --- a/tcp/pool/channel_test.go +++ b/tcp/pool/channel_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/rqlite/rqlite/random" + "github.com/rqlite/rqlite/v8/random" ) var ( diff --git a/v8/cluster/message.pb.go b/v8/cluster/message.pb.go new file mode 100644 index 00000000..9c60e62a --- /dev/null +++ b/v8/cluster/message.pb.go @@ -0,0 +1,1223 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc v3.6.1 +// source: cluster/message.proto + +package cluster + +import ( + command "github.com/rqlite/rqlite/v8/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 + Command_COMMAND_TYPE_REMOVE_NODE Command_Type = 6 + Command_COMMAND_TYPE_NOTIFY Command_Type = 7 + Command_COMMAND_TYPE_JOIN Command_Type = 8 + Command_COMMAND_TYPE_REQUEST Command_Type = 9 + Command_COMMAND_TYPE_LOAD_CHUNK Command_Type = 10 +) + +// 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", + 6: "COMMAND_TYPE_REMOVE_NODE", + 7: "COMMAND_TYPE_NOTIFY", + 8: "COMMAND_TYPE_JOIN", + 9: "COMMAND_TYPE_REQUEST", + 10: "COMMAND_TYPE_LOAD_CHUNK", + } + 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, + "COMMAND_TYPE_REMOVE_NODE": 6, + "COMMAND_TYPE_NOTIFY": 7, + "COMMAND_TYPE_JOIN": 8, + "COMMAND_TYPE_REQUEST": 9, + "COMMAND_TYPE_LOAD_CHUNK": 10, + } +) + +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_cluster_message_proto_enumTypes[0].Descriptor() +} + +func (Command_Type) Type() protoreflect.EnumType { + return &file_cluster_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_cluster_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_cluster_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_cluster_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_cluster_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_cluster_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_cluster_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_cluster_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 + // *Command_RemoveNodeRequest + // *Command_NotifyRequest + // *Command_JoinRequest + // *Command_ExecuteQueryRequest + // *Command_LoadChunkRequest + 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_cluster_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_cluster_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_cluster_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) GetRemoveNodeRequest() *command.RemoveNodeRequest { + if x, ok := x.GetRequest().(*Command_RemoveNodeRequest); ok { + return x.RemoveNodeRequest + } + return nil +} + +func (x *Command) GetNotifyRequest() *command.NotifyRequest { + if x, ok := x.GetRequest().(*Command_NotifyRequest); ok { + return x.NotifyRequest + } + return nil +} + +func (x *Command) GetJoinRequest() *command.JoinRequest { + if x, ok := x.GetRequest().(*Command_JoinRequest); ok { + return x.JoinRequest + } + return nil +} + +func (x *Command) GetExecuteQueryRequest() *command.ExecuteQueryRequest { + if x, ok := x.GetRequest().(*Command_ExecuteQueryRequest); ok { + return x.ExecuteQueryRequest + } + return nil +} + +func (x *Command) GetLoadChunkRequest() *command.LoadChunkRequest { + if x, ok := x.GetRequest().(*Command_LoadChunkRequest); ok { + return x.LoadChunkRequest + } + 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"` +} + +type Command_RemoveNodeRequest struct { + RemoveNodeRequest *command.RemoveNodeRequest `protobuf:"bytes,7,opt,name=remove_node_request,json=removeNodeRequest,proto3,oneof"` +} + +type Command_NotifyRequest struct { + NotifyRequest *command.NotifyRequest `protobuf:"bytes,8,opt,name=notify_request,json=notifyRequest,proto3,oneof"` +} + +type Command_JoinRequest struct { + JoinRequest *command.JoinRequest `protobuf:"bytes,9,opt,name=join_request,json=joinRequest,proto3,oneof"` +} + +type Command_ExecuteQueryRequest struct { + ExecuteQueryRequest *command.ExecuteQueryRequest `protobuf:"bytes,10,opt,name=execute_query_request,json=executeQueryRequest,proto3,oneof"` +} + +type Command_LoadChunkRequest struct { + LoadChunkRequest *command.LoadChunkRequest `protobuf:"bytes,11,opt,name=load_chunk_request,json=loadChunkRequest,proto3,oneof"` +} + +func (*Command_ExecuteRequest) isCommand_Request() {} + +func (*Command_QueryRequest) isCommand_Request() {} + +func (*Command_BackupRequest) isCommand_Request() {} + +func (*Command_LoadRequest) isCommand_Request() {} + +func (*Command_RemoveNodeRequest) isCommand_Request() {} + +func (*Command_NotifyRequest) isCommand_Request() {} + +func (*Command_JoinRequest) isCommand_Request() {} + +func (*Command_ExecuteQueryRequest) isCommand_Request() {} + +func (*Command_LoadChunkRequest) 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_cluster_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_cluster_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_cluster_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_cluster_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_cluster_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_cluster_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 CommandRequestResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Response []*command.ExecuteQueryResponse `protobuf:"bytes,2,rep,name=response,proto3" json:"response,omitempty"` +} + +func (x *CommandRequestResponse) Reset() { + *x = CommandRequestResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cluster_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CommandRequestResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CommandRequestResponse) ProtoMessage() {} + +func (x *CommandRequestResponse) ProtoReflect() protoreflect.Message { + mi := &file_cluster_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 CommandRequestResponse.ProtoReflect.Descriptor instead. +func (*CommandRequestResponse) Descriptor() ([]byte, []int) { + return file_cluster_message_proto_rawDescGZIP(), []int{5} +} + +func (x *CommandRequestResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +func (x *CommandRequestResponse) GetResponse() []*command.ExecuteQueryResponse { + if x != nil { + return x.Response + } + 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_cluster_message_proto_msgTypes[6] + 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_cluster_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 CommandBackupResponse.ProtoReflect.Descriptor instead. +func (*CommandBackupResponse) Descriptor() ([]byte, []int) { + return file_cluster_message_proto_rawDescGZIP(), []int{6} +} + +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_cluster_message_proto_msgTypes[7] + 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_cluster_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 CommandLoadResponse.ProtoReflect.Descriptor instead. +func (*CommandLoadResponse) Descriptor() ([]byte, []int) { + return file_cluster_message_proto_rawDescGZIP(), []int{7} +} + +func (x *CommandLoadResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +type CommandLoadChunkResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *CommandLoadChunkResponse) Reset() { + *x = CommandLoadChunkResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cluster_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CommandLoadChunkResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CommandLoadChunkResponse) ProtoMessage() {} + +func (x *CommandLoadChunkResponse) ProtoReflect() protoreflect.Message { + mi := &file_cluster_message_proto_msgTypes[8] + 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 CommandLoadChunkResponse.ProtoReflect.Descriptor instead. +func (*CommandLoadChunkResponse) Descriptor() ([]byte, []int) { + return file_cluster_message_proto_rawDescGZIP(), []int{8} +} + +func (x *CommandLoadChunkResponse) GetError() string { + if x != nil { + return x.Error + } + 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_cluster_message_proto_msgTypes[9] + 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_cluster_message_proto_msgTypes[9] + 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_cluster_message_proto_rawDescGZIP(), []int{9} +} + +func (x *CommandRemoveNodeResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +type CommandNotifyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *CommandNotifyResponse) Reset() { + *x = CommandNotifyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cluster_message_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CommandNotifyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CommandNotifyResponse) ProtoMessage() {} + +func (x *CommandNotifyResponse) ProtoReflect() protoreflect.Message { + mi := &file_cluster_message_proto_msgTypes[10] + 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 CommandNotifyResponse.ProtoReflect.Descriptor instead. +func (*CommandNotifyResponse) Descriptor() ([]byte, []int) { + return file_cluster_message_proto_rawDescGZIP(), []int{10} +} + +func (x *CommandNotifyResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +type CommandJoinResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Leader string `protobuf:"bytes,2,opt,name=leader,proto3" json:"leader,omitempty"` +} + +func (x *CommandJoinResponse) Reset() { + *x = CommandJoinResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cluster_message_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CommandJoinResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CommandJoinResponse) ProtoMessage() {} + +func (x *CommandJoinResponse) ProtoReflect() protoreflect.Message { + mi := &file_cluster_message_proto_msgTypes[11] + 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 CommandJoinResponse.ProtoReflect.Descriptor instead. +func (*CommandJoinResponse) Descriptor() ([]byte, []int) { + return file_cluster_message_proto_rawDescGZIP(), []int{11} +} + +func (x *CommandJoinResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +func (x *CommandJoinResponse) GetLeader() string { + if x != nil { + return x.Leader + } + return "" +} + +var File_cluster_message_proto protoreflect.FileDescriptor + +var file_cluster_message_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2f, 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, 0x8b, 0x08, 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, 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, 0x3f, + 0x0a, 0x0e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, + 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x39, 0x0a, 0x0c, 0x6a, 0x6f, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, + 0x4a, 0x6f, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x6a, + 0x6f, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x15, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x13, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, + 0x0a, 0x12, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x5f, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x10, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x68, 0x75, + 0x6e, 0x6b, 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, 0xaa, 0x02, 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, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4d, 0x4d, 0x41, + 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x59, 0x10, 0x07, + 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4a, 0x4f, 0x49, 0x4e, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4f, 0x4d, 0x4d, 0x41, + 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, + 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x43, 0x48, 0x55, 0x4e, 0x4b, 0x10, 0x0a, 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, 0x69, 0x0a, 0x16, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 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, 0x39, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 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, 0x30, 0x0a, 0x18, + 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x68, 0x75, 0x6e, 0x6b, + 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, 0x22, 0x2d, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, + 0x66, 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, + 0x22, 0x43, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x4a, 0x6f, 0x69, 0x6e, 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, 0x16, 0x0a, + 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x25, 0x5a, 0x23, 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, 0x76, 0x38, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cluster_message_proto_rawDescOnce sync.Once + file_cluster_message_proto_rawDescData = file_cluster_message_proto_rawDesc +) + +func file_cluster_message_proto_rawDescGZIP() []byte { + file_cluster_message_proto_rawDescOnce.Do(func() { + file_cluster_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_cluster_message_proto_rawDescData) + }) + return file_cluster_message_proto_rawDescData +} + +var file_cluster_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cluster_message_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_cluster_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 + (*CommandRequestResponse)(nil), // 6: cluster.CommandRequestResponse + (*CommandBackupResponse)(nil), // 7: cluster.CommandBackupResponse + (*CommandLoadResponse)(nil), // 8: cluster.CommandLoadResponse + (*CommandLoadChunkResponse)(nil), // 9: cluster.CommandLoadChunkResponse + (*CommandRemoveNodeResponse)(nil), // 10: cluster.CommandRemoveNodeResponse + (*CommandNotifyResponse)(nil), // 11: cluster.CommandNotifyResponse + (*CommandJoinResponse)(nil), // 12: cluster.CommandJoinResponse + (*command.ExecuteRequest)(nil), // 13: command.ExecuteRequest + (*command.QueryRequest)(nil), // 14: command.QueryRequest + (*command.BackupRequest)(nil), // 15: command.BackupRequest + (*command.LoadRequest)(nil), // 16: command.LoadRequest + (*command.RemoveNodeRequest)(nil), // 17: command.RemoveNodeRequest + (*command.NotifyRequest)(nil), // 18: command.NotifyRequest + (*command.JoinRequest)(nil), // 19: command.JoinRequest + (*command.ExecuteQueryRequest)(nil), // 20: command.ExecuteQueryRequest + (*command.LoadChunkRequest)(nil), // 21: command.LoadChunkRequest + (*command.ExecuteResult)(nil), // 22: command.ExecuteResult + (*command.QueryRows)(nil), // 23: command.QueryRows + (*command.ExecuteQueryResponse)(nil), // 24: command.ExecuteQueryResponse +} +var file_cluster_message_proto_depIdxs = []int32{ + 0, // 0: cluster.Command.type:type_name -> cluster.Command.Type + 13, // 1: cluster.Command.execute_request:type_name -> command.ExecuteRequest + 14, // 2: cluster.Command.query_request:type_name -> command.QueryRequest + 15, // 3: cluster.Command.backup_request:type_name -> command.BackupRequest + 16, // 4: cluster.Command.load_request:type_name -> command.LoadRequest + 17, // 5: cluster.Command.remove_node_request:type_name -> command.RemoveNodeRequest + 18, // 6: cluster.Command.notify_request:type_name -> command.NotifyRequest + 19, // 7: cluster.Command.join_request:type_name -> command.JoinRequest + 20, // 8: cluster.Command.execute_query_request:type_name -> command.ExecuteQueryRequest + 21, // 9: cluster.Command.load_chunk_request:type_name -> command.LoadChunkRequest + 1, // 10: cluster.Command.credentials:type_name -> cluster.Credentials + 22, // 11: cluster.CommandExecuteResponse.results:type_name -> command.ExecuteResult + 23, // 12: cluster.CommandQueryResponse.rows:type_name -> command.QueryRows + 24, // 13: cluster.CommandRequestResponse.response:type_name -> command.ExecuteQueryResponse + 14, // [14:14] is the sub-list for method output_type + 14, // [14:14] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name +} + +func init() { file_cluster_message_proto_init() } +func file_cluster_message_proto_init() { + if File_cluster_message_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cluster_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_cluster_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_cluster_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_cluster_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_cluster_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_cluster_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommandRequestResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cluster_message_proto_msgTypes[6].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_cluster_message_proto_msgTypes[7].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_cluster_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommandLoadChunkResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cluster_message_proto_msgTypes[9].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_cluster_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommandNotifyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cluster_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommandJoinResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_cluster_message_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*Command_ExecuteRequest)(nil), + (*Command_QueryRequest)(nil), + (*Command_BackupRequest)(nil), + (*Command_LoadRequest)(nil), + (*Command_RemoveNodeRequest)(nil), + (*Command_NotifyRequest)(nil), + (*Command_JoinRequest)(nil), + (*Command_ExecuteQueryRequest)(nil), + (*Command_LoadChunkRequest)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cluster_message_proto_rawDesc, + NumEnums: 1, + NumMessages: 12, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cluster_message_proto_goTypes, + DependencyIndexes: file_cluster_message_proto_depIdxs, + EnumInfos: file_cluster_message_proto_enumTypes, + MessageInfos: file_cluster_message_proto_msgTypes, + }.Build() + File_cluster_message_proto = out.File + file_cluster_message_proto_rawDesc = nil + file_cluster_message_proto_goTypes = nil + file_cluster_message_proto_depIdxs = nil +} diff --git a/v8/command/command.pb.go b/v8/command/command.pb.go new file mode 100644 index 00000000..96e661c5 --- /dev/null +++ b/v8/command/command.pb.go @@ -0,0 +1,1843 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc v3.6.1 +// source: command/command.proto + +package command + +import ( + 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 QueryRequest_Level int32 + +const ( + QueryRequest_QUERY_REQUEST_LEVEL_NONE QueryRequest_Level = 0 + QueryRequest_QUERY_REQUEST_LEVEL_WEAK QueryRequest_Level = 1 + QueryRequest_QUERY_REQUEST_LEVEL_STRONG QueryRequest_Level = 2 +) + +// Enum value maps for QueryRequest_Level. +var ( + QueryRequest_Level_name = map[int32]string{ + 0: "QUERY_REQUEST_LEVEL_NONE", + 1: "QUERY_REQUEST_LEVEL_WEAK", + 2: "QUERY_REQUEST_LEVEL_STRONG", + } + QueryRequest_Level_value = map[string]int32{ + "QUERY_REQUEST_LEVEL_NONE": 0, + "QUERY_REQUEST_LEVEL_WEAK": 1, + "QUERY_REQUEST_LEVEL_STRONG": 2, + } +) + +func (x QueryRequest_Level) Enum() *QueryRequest_Level { + p := new(QueryRequest_Level) + *p = x + return p +} + +func (x QueryRequest_Level) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (QueryRequest_Level) Descriptor() protoreflect.EnumDescriptor { + return file_command_command_proto_enumTypes[0].Descriptor() +} + +func (QueryRequest_Level) Type() protoreflect.EnumType { + return &file_command_command_proto_enumTypes[0] +} + +func (x QueryRequest_Level) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use QueryRequest_Level.Descriptor instead. +func (QueryRequest_Level) EnumDescriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{3, 0} +} + +type BackupRequest_Format int32 + +const ( + BackupRequest_BACKUP_REQUEST_FORMAT_NONE BackupRequest_Format = 0 + BackupRequest_BACKUP_REQUEST_FORMAT_SQL BackupRequest_Format = 1 + BackupRequest_BACKUP_REQUEST_FORMAT_BINARY BackupRequest_Format = 2 +) + +// Enum value maps for BackupRequest_Format. +var ( + BackupRequest_Format_name = map[int32]string{ + 0: "BACKUP_REQUEST_FORMAT_NONE", + 1: "BACKUP_REQUEST_FORMAT_SQL", + 2: "BACKUP_REQUEST_FORMAT_BINARY", + } + BackupRequest_Format_value = map[string]int32{ + "BACKUP_REQUEST_FORMAT_NONE": 0, + "BACKUP_REQUEST_FORMAT_SQL": 1, + "BACKUP_REQUEST_FORMAT_BINARY": 2, + } +) + +func (x BackupRequest_Format) Enum() *BackupRequest_Format { + p := new(BackupRequest_Format) + *p = x + return p +} + +func (x BackupRequest_Format) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BackupRequest_Format) Descriptor() protoreflect.EnumDescriptor { + return file_command_command_proto_enumTypes[1].Descriptor() +} + +func (BackupRequest_Format) Type() protoreflect.EnumType { + return &file_command_command_proto_enumTypes[1] +} + +func (x BackupRequest_Format) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BackupRequest_Format.Descriptor instead. +func (BackupRequest_Format) EnumDescriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{10, 0} +} + +type Command_Type int32 + +const ( + Command_COMMAND_TYPE_UNKNOWN Command_Type = 0 + Command_COMMAND_TYPE_QUERY Command_Type = 1 + Command_COMMAND_TYPE_EXECUTE Command_Type = 2 + Command_COMMAND_TYPE_NOOP Command_Type = 3 + Command_COMMAND_TYPE_LOAD Command_Type = 4 + Command_COMMAND_TYPE_JOIN Command_Type = 5 + Command_COMMAND_TYPE_EXECUTE_QUERY Command_Type = 6 + Command_COMMAND_TYPE_LOAD_CHUNK Command_Type = 7 +) + +// Enum value maps for Command_Type. +var ( + Command_Type_name = map[int32]string{ + 0: "COMMAND_TYPE_UNKNOWN", + 1: "COMMAND_TYPE_QUERY", + 2: "COMMAND_TYPE_EXECUTE", + 3: "COMMAND_TYPE_NOOP", + 4: "COMMAND_TYPE_LOAD", + 5: "COMMAND_TYPE_JOIN", + 6: "COMMAND_TYPE_EXECUTE_QUERY", + 7: "COMMAND_TYPE_LOAD_CHUNK", + } + Command_Type_value = map[string]int32{ + "COMMAND_TYPE_UNKNOWN": 0, + "COMMAND_TYPE_QUERY": 1, + "COMMAND_TYPE_EXECUTE": 2, + "COMMAND_TYPE_NOOP": 3, + "COMMAND_TYPE_LOAD": 4, + "COMMAND_TYPE_JOIN": 5, + "COMMAND_TYPE_EXECUTE_QUERY": 6, + "COMMAND_TYPE_LOAD_CHUNK": 7, + } +) + +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_command_command_proto_enumTypes[2].Descriptor() +} + +func (Command_Type) Type() protoreflect.EnumType { + return &file_command_command_proto_enumTypes[2] +} + +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_command_command_proto_rawDescGZIP(), []int{17, 0} +} + +type Parameter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Value: + // + // *Parameter_I + // *Parameter_D + // *Parameter_B + // *Parameter_Y + // *Parameter_S + Value isParameter_Value `protobuf_oneof:"value"` + Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *Parameter) Reset() { + *x = Parameter{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Parameter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Parameter) ProtoMessage() {} + +func (x *Parameter) ProtoReflect() protoreflect.Message { + mi := &file_command_command_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 Parameter.ProtoReflect.Descriptor instead. +func (*Parameter) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{0} +} + +func (m *Parameter) GetValue() isParameter_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *Parameter) GetI() int64 { + if x, ok := x.GetValue().(*Parameter_I); ok { + return x.I + } + return 0 +} + +func (x *Parameter) GetD() float64 { + if x, ok := x.GetValue().(*Parameter_D); ok { + return x.D + } + return 0 +} + +func (x *Parameter) GetB() bool { + if x, ok := x.GetValue().(*Parameter_B); ok { + return x.B + } + return false +} + +func (x *Parameter) GetY() []byte { + if x, ok := x.GetValue().(*Parameter_Y); ok { + return x.Y + } + return nil +} + +func (x *Parameter) GetS() string { + if x, ok := x.GetValue().(*Parameter_S); ok { + return x.S + } + return "" +} + +func (x *Parameter) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type isParameter_Value interface { + isParameter_Value() +} + +type Parameter_I struct { + I int64 `protobuf:"zigzag64,1,opt,name=i,proto3,oneof"` +} + +type Parameter_D struct { + D float64 `protobuf:"fixed64,2,opt,name=d,proto3,oneof"` +} + +type Parameter_B struct { + B bool `protobuf:"varint,3,opt,name=b,proto3,oneof"` +} + +type Parameter_Y struct { + Y []byte `protobuf:"bytes,4,opt,name=y,proto3,oneof"` +} + +type Parameter_S struct { + S string `protobuf:"bytes,5,opt,name=s,proto3,oneof"` +} + +func (*Parameter_I) isParameter_Value() {} + +func (*Parameter_D) isParameter_Value() {} + +func (*Parameter_B) isParameter_Value() {} + +func (*Parameter_Y) isParameter_Value() {} + +func (*Parameter_S) isParameter_Value() {} + +type Statement struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Sql string `protobuf:"bytes,1,opt,name=sql,proto3" json:"sql,omitempty"` + Parameters []*Parameter `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty"` +} + +func (x *Statement) Reset() { + *x = Statement{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Statement) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Statement) ProtoMessage() {} + +func (x *Statement) ProtoReflect() protoreflect.Message { + mi := &file_command_command_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 Statement.ProtoReflect.Descriptor instead. +func (*Statement) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{1} +} + +func (x *Statement) GetSql() string { + if x != nil { + return x.Sql + } + return "" +} + +func (x *Statement) GetParameters() []*Parameter { + if x != nil { + return x.Parameters + } + return nil +} + +type Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Transaction bool `protobuf:"varint,1,opt,name=transaction,proto3" json:"transaction,omitempty"` + Statements []*Statement `protobuf:"bytes,2,rep,name=statements,proto3" json:"statements,omitempty"` +} + +func (x *Request) Reset() { + *x = Request{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Request) ProtoMessage() {} + +func (x *Request) ProtoReflect() protoreflect.Message { + mi := &file_command_command_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 Request.ProtoReflect.Descriptor instead. +func (*Request) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{2} +} + +func (x *Request) GetTransaction() bool { + if x != nil { + return x.Transaction + } + return false +} + +func (x *Request) GetStatements() []*Statement { + if x != nil { + return x.Statements + } + return nil +} + +type QueryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Request *Request `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` + Timings bool `protobuf:"varint,2,opt,name=timings,proto3" json:"timings,omitempty"` + Level QueryRequest_Level `protobuf:"varint,3,opt,name=level,proto3,enum=command.QueryRequest_Level" json:"level,omitempty"` + Freshness int64 `protobuf:"varint,4,opt,name=freshness,proto3" json:"freshness,omitempty"` +} + +func (x *QueryRequest) Reset() { + *x = QueryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRequest) ProtoMessage() {} + +func (x *QueryRequest) ProtoReflect() protoreflect.Message { + mi := &file_command_command_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 QueryRequest.ProtoReflect.Descriptor instead. +func (*QueryRequest) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryRequest) GetRequest() *Request { + if x != nil { + return x.Request + } + return nil +} + +func (x *QueryRequest) GetTimings() bool { + if x != nil { + return x.Timings + } + return false +} + +func (x *QueryRequest) GetLevel() QueryRequest_Level { + if x != nil { + return x.Level + } + return QueryRequest_QUERY_REQUEST_LEVEL_NONE +} + +func (x *QueryRequest) GetFreshness() int64 { + if x != nil { + return x.Freshness + } + return 0 +} + +type Values struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Parameters []*Parameter `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty"` +} + +func (x *Values) Reset() { + *x = Values{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Values) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Values) ProtoMessage() {} + +func (x *Values) ProtoReflect() protoreflect.Message { + mi := &file_command_command_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 Values.ProtoReflect.Descriptor instead. +func (*Values) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{4} +} + +func (x *Values) GetParameters() []*Parameter { + if x != nil { + return x.Parameters + } + return nil +} + +type QueryRows struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Columns []string `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"` + Types []string `protobuf:"bytes,2,rep,name=types,proto3" json:"types,omitempty"` + Values []*Values `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` + Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` + Time float64 `protobuf:"fixed64,5,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *QueryRows) Reset() { + *x = QueryRows{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRows) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRows) ProtoMessage() {} + +func (x *QueryRows) ProtoReflect() protoreflect.Message { + mi := &file_command_command_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 QueryRows.ProtoReflect.Descriptor instead. +func (*QueryRows) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{5} +} + +func (x *QueryRows) GetColumns() []string { + if x != nil { + return x.Columns + } + return nil +} + +func (x *QueryRows) GetTypes() []string { + if x != nil { + return x.Types + } + return nil +} + +func (x *QueryRows) GetValues() []*Values { + if x != nil { + return x.Values + } + return nil +} + +func (x *QueryRows) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +func (x *QueryRows) GetTime() float64 { + if x != nil { + return x.Time + } + return 0 +} + +type ExecuteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Request *Request `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` + Timings bool `protobuf:"varint,2,opt,name=timings,proto3" json:"timings,omitempty"` +} + +func (x *ExecuteRequest) Reset() { + *x = ExecuteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecuteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteRequest) ProtoMessage() {} + +func (x *ExecuteRequest) ProtoReflect() protoreflect.Message { + mi := &file_command_command_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 ExecuteRequest.ProtoReflect.Descriptor instead. +func (*ExecuteRequest) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{6} +} + +func (x *ExecuteRequest) GetRequest() *Request { + if x != nil { + return x.Request + } + return nil +} + +func (x *ExecuteRequest) GetTimings() bool { + if x != nil { + return x.Timings + } + return false +} + +type ExecuteResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LastInsertId int64 `protobuf:"varint,1,opt,name=last_insert_id,json=lastInsertId,proto3" json:"last_insert_id,omitempty"` + RowsAffected int64 `protobuf:"varint,2,opt,name=rows_affected,json=rowsAffected,proto3" json:"rows_affected,omitempty"` + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + Time float64 `protobuf:"fixed64,4,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *ExecuteResult) Reset() { + *x = ExecuteResult{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecuteResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteResult) ProtoMessage() {} + +func (x *ExecuteResult) ProtoReflect() protoreflect.Message { + mi := &file_command_command_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 ExecuteResult.ProtoReflect.Descriptor instead. +func (*ExecuteResult) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{7} +} + +func (x *ExecuteResult) GetLastInsertId() int64 { + if x != nil { + return x.LastInsertId + } + return 0 +} + +func (x *ExecuteResult) GetRowsAffected() int64 { + if x != nil { + return x.RowsAffected + } + return 0 +} + +func (x *ExecuteResult) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +func (x *ExecuteResult) GetTime() float64 { + if x != nil { + return x.Time + } + return 0 +} + +type ExecuteQueryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Request *Request `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` + Timings bool `protobuf:"varint,2,opt,name=timings,proto3" json:"timings,omitempty"` + Level QueryRequest_Level `protobuf:"varint,3,opt,name=level,proto3,enum=command.QueryRequest_Level" json:"level,omitempty"` + Freshness int64 `protobuf:"varint,4,opt,name=freshness,proto3" json:"freshness,omitempty"` +} + +func (x *ExecuteQueryRequest) Reset() { + *x = ExecuteQueryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecuteQueryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteQueryRequest) ProtoMessage() {} + +func (x *ExecuteQueryRequest) ProtoReflect() protoreflect.Message { + mi := &file_command_command_proto_msgTypes[8] + 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 ExecuteQueryRequest.ProtoReflect.Descriptor instead. +func (*ExecuteQueryRequest) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{8} +} + +func (x *ExecuteQueryRequest) GetRequest() *Request { + if x != nil { + return x.Request + } + return nil +} + +func (x *ExecuteQueryRequest) GetTimings() bool { + if x != nil { + return x.Timings + } + return false +} + +func (x *ExecuteQueryRequest) GetLevel() QueryRequest_Level { + if x != nil { + return x.Level + } + return QueryRequest_QUERY_REQUEST_LEVEL_NONE +} + +func (x *ExecuteQueryRequest) GetFreshness() int64 { + if x != nil { + return x.Freshness + } + return 0 +} + +type ExecuteQueryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Result: + // + // *ExecuteQueryResponse_Q + // *ExecuteQueryResponse_E + // *ExecuteQueryResponse_Error + Result isExecuteQueryResponse_Result `protobuf_oneof:"result"` +} + +func (x *ExecuteQueryResponse) Reset() { + *x = ExecuteQueryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecuteQueryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteQueryResponse) ProtoMessage() {} + +func (x *ExecuteQueryResponse) ProtoReflect() protoreflect.Message { + mi := &file_command_command_proto_msgTypes[9] + 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 ExecuteQueryResponse.ProtoReflect.Descriptor instead. +func (*ExecuteQueryResponse) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{9} +} + +func (m *ExecuteQueryResponse) GetResult() isExecuteQueryResponse_Result { + if m != nil { + return m.Result + } + return nil +} + +func (x *ExecuteQueryResponse) GetQ() *QueryRows { + if x, ok := x.GetResult().(*ExecuteQueryResponse_Q); ok { + return x.Q + } + return nil +} + +func (x *ExecuteQueryResponse) GetE() *ExecuteResult { + if x, ok := x.GetResult().(*ExecuteQueryResponse_E); ok { + return x.E + } + return nil +} + +func (x *ExecuteQueryResponse) GetError() string { + if x, ok := x.GetResult().(*ExecuteQueryResponse_Error); ok { + return x.Error + } + return "" +} + +type isExecuteQueryResponse_Result interface { + isExecuteQueryResponse_Result() +} + +type ExecuteQueryResponse_Q struct { + Q *QueryRows `protobuf:"bytes,1,opt,name=q,proto3,oneof"` +} + +type ExecuteQueryResponse_E struct { + E *ExecuteResult `protobuf:"bytes,2,opt,name=e,proto3,oneof"` +} + +type ExecuteQueryResponse_Error struct { + Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"` +} + +func (*ExecuteQueryResponse_Q) isExecuteQueryResponse_Result() {} + +func (*ExecuteQueryResponse_E) isExecuteQueryResponse_Result() {} + +func (*ExecuteQueryResponse_Error) isExecuteQueryResponse_Result() {} + +type BackupRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Format BackupRequest_Format `protobuf:"varint,1,opt,name=format,proto3,enum=command.BackupRequest_Format" json:"format,omitempty"` + Leader bool `protobuf:"varint,2,opt,name=Leader,proto3" json:"Leader,omitempty"` + Vacuum bool `protobuf:"varint,3,opt,name=Vacuum,proto3" json:"Vacuum,omitempty"` +} + +func (x *BackupRequest) Reset() { + *x = BackupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BackupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BackupRequest) ProtoMessage() {} + +func (x *BackupRequest) ProtoReflect() protoreflect.Message { + mi := &file_command_command_proto_msgTypes[10] + 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 BackupRequest.ProtoReflect.Descriptor instead. +func (*BackupRequest) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{10} +} + +func (x *BackupRequest) GetFormat() BackupRequest_Format { + if x != nil { + return x.Format + } + return BackupRequest_BACKUP_REQUEST_FORMAT_NONE +} + +func (x *BackupRequest) GetLeader() bool { + if x != nil { + return x.Leader + } + return false +} + +func (x *BackupRequest) GetVacuum() bool { + if x != nil { + return x.Vacuum + } + return false +} + +type LoadRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *LoadRequest) Reset() { + *x = LoadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LoadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LoadRequest) ProtoMessage() {} + +func (x *LoadRequest) ProtoReflect() protoreflect.Message { + mi := &file_command_command_proto_msgTypes[11] + 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 LoadRequest.ProtoReflect.Descriptor instead. +func (*LoadRequest) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{11} +} + +func (x *LoadRequest) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + +type LoadChunkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StreamId string `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` + SequenceNum int64 `protobuf:"varint,2,opt,name=sequence_num,json=sequenceNum,proto3" json:"sequence_num,omitempty"` + IsLast bool `protobuf:"varint,3,opt,name=is_last,json=isLast,proto3" json:"is_last,omitempty"` + Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` + Abort bool `protobuf:"varint,5,opt,name=abort,proto3" json:"abort,omitempty"` +} + +func (x *LoadChunkRequest) Reset() { + *x = LoadChunkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LoadChunkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LoadChunkRequest) ProtoMessage() {} + +func (x *LoadChunkRequest) ProtoReflect() protoreflect.Message { + mi := &file_command_command_proto_msgTypes[12] + 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 LoadChunkRequest.ProtoReflect.Descriptor instead. +func (*LoadChunkRequest) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{12} +} + +func (x *LoadChunkRequest) GetStreamId() string { + if x != nil { + return x.StreamId + } + return "" +} + +func (x *LoadChunkRequest) GetSequenceNum() int64 { + if x != nil { + return x.SequenceNum + } + return 0 +} + +func (x *LoadChunkRequest) GetIsLast() bool { + if x != nil { + return x.IsLast + } + return false +} + +func (x *LoadChunkRequest) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + +func (x *LoadChunkRequest) GetAbort() bool { + if x != nil { + return x.Abort + } + return false +} + +type JoinRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Voter bool `protobuf:"varint,3,opt,name=voter,proto3" json:"voter,omitempty"` +} + +func (x *JoinRequest) Reset() { + *x = JoinRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JoinRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JoinRequest) ProtoMessage() {} + +func (x *JoinRequest) ProtoReflect() protoreflect.Message { + mi := &file_command_command_proto_msgTypes[13] + 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 JoinRequest.ProtoReflect.Descriptor instead. +func (*JoinRequest) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{13} +} + +func (x *JoinRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *JoinRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *JoinRequest) GetVoter() bool { + if x != nil { + return x.Voter + } + return false +} + +type NotifyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *NotifyRequest) Reset() { + *x = NotifyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NotifyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NotifyRequest) ProtoMessage() {} + +func (x *NotifyRequest) ProtoReflect() protoreflect.Message { + mi := &file_command_command_proto_msgTypes[14] + 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 NotifyRequest.ProtoReflect.Descriptor instead. +func (*NotifyRequest) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{14} +} + +func (x *NotifyRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *NotifyRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +type RemoveNodeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *RemoveNodeRequest) Reset() { + *x = RemoveNodeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveNodeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveNodeRequest) ProtoMessage() {} + +func (x *RemoveNodeRequest) ProtoReflect() protoreflect.Message { + mi := &file_command_command_proto_msgTypes[15] + 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 RemoveNodeRequest.ProtoReflect.Descriptor instead. +func (*RemoveNodeRequest) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{15} +} + +func (x *RemoveNodeRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type Noop struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *Noop) Reset() { + *x = Noop{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Noop) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Noop) ProtoMessage() {} + +func (x *Noop) ProtoReflect() protoreflect.Message { + mi := &file_command_command_proto_msgTypes[16] + 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 Noop.ProtoReflect.Descriptor instead. +func (*Noop) Descriptor() ([]byte, []int) { + return file_command_command_proto_rawDescGZIP(), []int{16} +} + +func (x *Noop) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type Command struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type Command_Type `protobuf:"varint,1,opt,name=type,proto3,enum=command.Command_Type" json:"type,omitempty"` + SubCommand []byte `protobuf:"bytes,2,opt,name=sub_command,json=subCommand,proto3" json:"sub_command,omitempty"` + Compressed bool `protobuf:"varint,3,opt,name=compressed,proto3" json:"compressed,omitempty"` +} + +func (x *Command) Reset() { + *x = Command{} + if protoimpl.UnsafeEnabled { + mi := &file_command_command_proto_msgTypes[17] + 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_command_command_proto_msgTypes[17] + 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_command_command_proto_rawDescGZIP(), []int{17} +} + +func (x *Command) GetType() Command_Type { + if x != nil { + return x.Type + } + return Command_COMMAND_TYPE_UNKNOWN +} + +func (x *Command) GetSubCommand() []byte { + if x != nil { + return x.SubCommand + } + return nil +} + +func (x *Command) GetCompressed() bool { + if x != nil { + return x.Compressed + } + return false +} + +var File_command_command_proto protoreflect.FileDescriptor + +var file_command_command_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x22, 0x78, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, + 0x01, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x12, 0x48, 0x00, 0x52, 0x01, 0x69, 0x12, 0x0e, 0x0a, + 0x01, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x01, 0x64, 0x12, 0x0e, 0x0a, + 0x01, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x01, 0x62, 0x12, 0x0e, 0x0a, + 0x01, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x01, 0x79, 0x12, 0x0e, 0x0a, + 0x01, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x01, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x51, 0x0a, 0x09, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, 0x32, 0x0a, 0x0a, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0x5f, 0x0a, + 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x0a, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x8a, + 0x02, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x2a, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x74, + 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x74, 0x69, + 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x72, 0x65, 0x73, + 0x68, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x66, 0x72, 0x65, + 0x73, 0x68, 0x6e, 0x65, 0x73, 0x73, 0x22, 0x63, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, + 0x1c, 0x0a, 0x18, 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, + 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1c, 0x0a, + 0x18, 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x4c, + 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x57, 0x45, 0x41, 0x4b, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x51, + 0x55, 0x45, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x4c, 0x45, 0x56, + 0x45, 0x4c, 0x5f, 0x53, 0x54, 0x52, 0x4f, 0x4e, 0x47, 0x10, 0x02, 0x22, 0x3c, 0x0a, 0x06, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0x8e, 0x01, 0x0a, 0x09, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x56, 0x0a, 0x0e, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x07, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x69, + 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x69, 0x6e, + 0x67, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x0d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x73, + 0x65, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6c, 0x61, + 0x73, 0x74, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x6f, + 0x77, 0x73, 0x5f, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0c, 0x72, 0x6f, 0x77, 0x73, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, + 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0xac, 0x01, 0x0a, 0x13, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x2a, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, + 0x07, 0x74, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, + 0x74, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x65, + 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x72, + 0x65, 0x73, 0x68, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x66, + 0x72, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x73, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x14, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x22, 0x0a, 0x01, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x77, 0x73, + 0x48, 0x00, 0x52, 0x01, 0x71, 0x12, 0x26, 0x0a, 0x01, 0x65, 0x18, 0x02, 0x20, 0x01, 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, 0x48, 0x00, 0x52, 0x01, 0x65, 0x12, 0x16, 0x0a, + 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, + 0xe1, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x35, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x42, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, + 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x4c, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x12, 0x16, 0x0a, 0x06, 0x56, 0x61, 0x63, 0x75, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x06, 0x56, 0x61, 0x63, 0x75, 0x75, 0x6d, 0x22, 0x69, 0x0a, 0x06, 0x46, 0x6f, 0x72, 0x6d, + 0x61, 0x74, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x52, 0x45, 0x51, + 0x55, 0x45, 0x53, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, + 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x52, 0x45, 0x51, + 0x55, 0x45, 0x53, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x53, 0x51, 0x4c, 0x10, + 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x52, 0x45, 0x51, 0x55, + 0x45, 0x53, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x42, 0x49, 0x4e, 0x41, 0x52, + 0x59, 0x10, 0x02, 0x22, 0x21, 0x0a, 0x0b, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x95, 0x01, 0x0a, 0x10, 0x4c, 0x6f, 0x61, 0x64, 0x43, + 0x68, 0x75, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, + 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x17, 0x0a, 0x07, 0x69, + 0x73, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, + 0x4c, 0x61, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x62, 0x6f, 0x72, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x22, 0x4d, + 0x0a, 0x0b, 0x4a, 0x6f, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x22, 0x39, 0x0a, + 0x0d, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, + 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x23, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x16, 0x0a, + 0x04, 0x4e, 0x6f, 0x6f, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xcc, 0x02, 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, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, + 0x73, 0x75, 0x62, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x1e, 0x0a, + 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x22, 0xd4, 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, 0x16, 0x0a, 0x12, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 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, 0x15, 0x0a, 0x11, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x4f, 0x50, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f, 0x4d, + 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x04, + 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4a, 0x4f, 0x49, 0x4e, 0x10, 0x05, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4f, 0x4d, 0x4d, 0x41, + 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x45, 0x5f, + 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x06, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4f, 0x4d, 0x4d, 0x41, + 0x4e, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x43, 0x48, 0x55, + 0x4e, 0x4b, 0x10, 0x07, 0x42, 0x25, 0x5a, 0x23, 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, 0x76, 0x38, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_command_command_proto_rawDescOnce sync.Once + file_command_command_proto_rawDescData = file_command_command_proto_rawDesc +) + +func file_command_command_proto_rawDescGZIP() []byte { + file_command_command_proto_rawDescOnce.Do(func() { + file_command_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_command_command_proto_rawDescData) + }) + return file_command_command_proto_rawDescData +} + +var file_command_command_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_command_command_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_command_command_proto_goTypes = []interface{}{ + (QueryRequest_Level)(0), // 0: command.QueryRequest.Level + (BackupRequest_Format)(0), // 1: command.BackupRequest.Format + (Command_Type)(0), // 2: command.Command.Type + (*Parameter)(nil), // 3: command.Parameter + (*Statement)(nil), // 4: command.Statement + (*Request)(nil), // 5: command.Request + (*QueryRequest)(nil), // 6: command.QueryRequest + (*Values)(nil), // 7: command.Values + (*QueryRows)(nil), // 8: command.QueryRows + (*ExecuteRequest)(nil), // 9: command.ExecuteRequest + (*ExecuteResult)(nil), // 10: command.ExecuteResult + (*ExecuteQueryRequest)(nil), // 11: command.ExecuteQueryRequest + (*ExecuteQueryResponse)(nil), // 12: command.ExecuteQueryResponse + (*BackupRequest)(nil), // 13: command.BackupRequest + (*LoadRequest)(nil), // 14: command.LoadRequest + (*LoadChunkRequest)(nil), // 15: command.LoadChunkRequest + (*JoinRequest)(nil), // 16: command.JoinRequest + (*NotifyRequest)(nil), // 17: command.NotifyRequest + (*RemoveNodeRequest)(nil), // 18: command.RemoveNodeRequest + (*Noop)(nil), // 19: command.Noop + (*Command)(nil), // 20: command.Command +} +var file_command_command_proto_depIdxs = []int32{ + 3, // 0: command.Statement.parameters:type_name -> command.Parameter + 4, // 1: command.Request.statements:type_name -> command.Statement + 5, // 2: command.QueryRequest.request:type_name -> command.Request + 0, // 3: command.QueryRequest.level:type_name -> command.QueryRequest.Level + 3, // 4: command.Values.parameters:type_name -> command.Parameter + 7, // 5: command.QueryRows.values:type_name -> command.Values + 5, // 6: command.ExecuteRequest.request:type_name -> command.Request + 5, // 7: command.ExecuteQueryRequest.request:type_name -> command.Request + 0, // 8: command.ExecuteQueryRequest.level:type_name -> command.QueryRequest.Level + 8, // 9: command.ExecuteQueryResponse.q:type_name -> command.QueryRows + 10, // 10: command.ExecuteQueryResponse.e:type_name -> command.ExecuteResult + 1, // 11: command.BackupRequest.format:type_name -> command.BackupRequest.Format + 2, // 12: command.Command.type:type_name -> command.Command.Type + 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_command_command_proto_init() } +func file_command_command_proto_init() { + if File_command_command_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_command_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Parameter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Statement); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Values); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRows); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecuteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecuteResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecuteQueryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecuteQueryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BackupRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoadChunkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JoinRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveNodeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Noop); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_command_command_proto_msgTypes[17].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_command_command_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Parameter_I)(nil), + (*Parameter_D)(nil), + (*Parameter_B)(nil), + (*Parameter_Y)(nil), + (*Parameter_S)(nil), + } + file_command_command_proto_msgTypes[9].OneofWrappers = []interface{}{ + (*ExecuteQueryResponse_Q)(nil), + (*ExecuteQueryResponse_E)(nil), + (*ExecuteQueryResponse_Error)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_command_command_proto_rawDesc, + NumEnums: 3, + NumMessages: 18, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_command_command_proto_goTypes, + DependencyIndexes: file_command_command_proto_depIdxs, + EnumInfos: file_command_command_proto_enumTypes, + MessageInfos: file_command_command_proto_msgTypes, + }.Build() + File_command_command_proto = out.File + file_command_command_proto_rawDesc = nil + file_command_command_proto_goTypes = nil + file_command_command_proto_depIdxs = nil +}