refactor: remove unused grpc methods (#67)

This commit is contained in:
LFC
2023-07-17 11:55:01 +08:00
committed by GitHub
parent 9b23f284e9
commit 6e89daefca
9 changed files with 198 additions and 4881 deletions
+1 -85
View File
@@ -24,9 +24,7 @@ namespace v1 {
namespace meta {
static const char* Router_method_names[] = {
"/greptime.v1.meta.Router/Create",
"/greptime.v1.meta.Router/Route",
"/greptime.v1.meta.Router/Delete",
};
std::unique_ptr< Router::Stub> Router::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
@@ -36,34 +34,9 @@ std::unique_ptr< Router::Stub> Router::NewStub(const std::shared_ptr< ::grpc::Ch
}
Router::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
: channel_(channel), rpcmethod_Create_(Router_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
, rpcmethod_Route_(Router_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
, rpcmethod_Delete_(Router_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
: channel_(channel), rpcmethod_Route_(Router_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
{}
::grpc::Status Router::Stub::Create(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::greptime::v1::meta::RouteResponse* response) {
return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::CreateRequest, ::greptime::v1::meta::RouteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Create_, context, request, response);
}
void Router::Stub::async::Create(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest* request, ::greptime::v1::meta::RouteResponse* response, std::function<void(::grpc::Status)> f) {
::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::CreateRequest, ::greptime::v1::meta::RouteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Create_, context, request, response, std::move(f));
}
void Router::Stub::async::Create(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest* request, ::greptime::v1::meta::RouteResponse* response, ::grpc::ClientUnaryReactor* reactor) {
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Create_, context, request, response, reactor);
}
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>* Router::Stub::PrepareAsyncCreateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::grpc::CompletionQueue* cq) {
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::RouteResponse, ::greptime::v1::meta::CreateRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Create_, context, request);
}
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>* Router::Stub::AsyncCreateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::grpc::CompletionQueue* cq) {
auto* result =
this->PrepareAsyncCreateRaw(context, request, cq);
result->StartCall();
return result;
}
::grpc::Status Router::Stub::Route(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest& request, ::greptime::v1::meta::RouteResponse* response) {
return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::RouteRequest, ::greptime::v1::meta::RouteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Route_, context, request, response);
}
@@ -87,43 +60,10 @@ void Router::Stub::async::Route(::grpc::ClientContext* context, const ::greptime
return result;
}
::grpc::Status Router::Stub::Delete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::greptime::v1::meta::RouteResponse* response) {
return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::DeleteRequest, ::greptime::v1::meta::RouteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Delete_, context, request, response);
}
void Router::Stub::async::Delete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest* request, ::greptime::v1::meta::RouteResponse* response, std::function<void(::grpc::Status)> f) {
::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::DeleteRequest, ::greptime::v1::meta::RouteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Delete_, context, request, response, std::move(f));
}
void Router::Stub::async::Delete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest* request, ::greptime::v1::meta::RouteResponse* response, ::grpc::ClientUnaryReactor* reactor) {
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Delete_, context, request, response, reactor);
}
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>* Router::Stub::PrepareAsyncDeleteRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::grpc::CompletionQueue* cq) {
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::RouteResponse, ::greptime::v1::meta::DeleteRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Delete_, context, request);
}
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>* Router::Stub::AsyncDeleteRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::grpc::CompletionQueue* cq) {
auto* result =
this->PrepareAsyncDeleteRaw(context, request, cq);
result->StartCall();
return result;
}
Router::Service::Service() {
AddMethod(new ::grpc::internal::RpcServiceMethod(
Router_method_names[0],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< Router::Service, ::greptime::v1::meta::CreateRequest, ::greptime::v1::meta::RouteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
[](Router::Service* service,
::grpc::ServerContext* ctx,
const ::greptime::v1::meta::CreateRequest* req,
::greptime::v1::meta::RouteResponse* resp) {
return service->Create(ctx, req, resp);
}, this)));
AddMethod(new ::grpc::internal::RpcServiceMethod(
Router_method_names[1],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< Router::Service, ::greptime::v1::meta::RouteRequest, ::greptime::v1::meta::RouteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
[](Router::Service* service,
::grpc::ServerContext* ctx,
@@ -131,28 +71,11 @@ Router::Service::Service() {
::greptime::v1::meta::RouteResponse* resp) {
return service->Route(ctx, req, resp);
}, this)));
AddMethod(new ::grpc::internal::RpcServiceMethod(
Router_method_names[2],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< Router::Service, ::greptime::v1::meta::DeleteRequest, ::greptime::v1::meta::RouteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
[](Router::Service* service,
::grpc::ServerContext* ctx,
const ::greptime::v1::meta::DeleteRequest* req,
::greptime::v1::meta::RouteResponse* resp) {
return service->Delete(ctx, req, resp);
}, this)));
}
Router::Service::~Service() {
}
::grpc::Status Router::Service::Create(::grpc::ServerContext* context, const ::greptime::v1::meta::CreateRequest* request, ::greptime::v1::meta::RouteResponse* response) {
(void) context;
(void) request;
(void) response;
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
::grpc::Status Router::Service::Route(::grpc::ServerContext* context, const ::greptime::v1::meta::RouteRequest* request, ::greptime::v1::meta::RouteResponse* response) {
(void) context;
(void) request;
@@ -160,13 +83,6 @@ Router::Service::~Service() {
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
::grpc::Status Router::Service::Delete(::grpc::ServerContext* context, const ::greptime::v1::meta::DeleteRequest* request, ::greptime::v1::meta::RouteResponse* response) {
(void) context;
(void) request;
(void) response;
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
} // namespace greptime
} // namespace v1
+13 -327
View File
@@ -52,13 +52,6 @@ class Router final {
class StubInterface {
public:
virtual ~StubInterface() {}
virtual ::grpc::Status Create(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::greptime::v1::meta::RouteResponse* response) = 0;
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>> AsyncCreate(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>>(AsyncCreateRaw(context, request, cq));
}
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>> PrepareAsyncCreate(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>>(PrepareAsyncCreateRaw(context, request, cq));
}
// Fetch routing information for tables. The smallest unit is the complete
// routing information(all regions) of a table.
//
@@ -85,18 +78,9 @@ class Router final {
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>> PrepareAsyncRoute(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>>(PrepareAsyncRouteRaw(context, request, cq));
}
virtual ::grpc::Status Delete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::greptime::v1::meta::RouteResponse* response) = 0;
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>> AsyncDelete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>>(AsyncDeleteRaw(context, request, cq));
}
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>> PrepareAsyncDelete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>>(PrepareAsyncDeleteRaw(context, request, cq));
}
class async_interface {
public:
virtual ~async_interface() {}
virtual void Create(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest* request, ::greptime::v1::meta::RouteResponse* response, std::function<void(::grpc::Status)>) = 0;
virtual void Create(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest* request, ::greptime::v1::meta::RouteResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
// Fetch routing information for tables. The smallest unit is the complete
// routing information(all regions) of a table.
//
@@ -118,30 +102,17 @@ class Router final {
//
virtual void Route(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest* request, ::greptime::v1::meta::RouteResponse* response, std::function<void(::grpc::Status)>) = 0;
virtual void Route(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest* request, ::greptime::v1::meta::RouteResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
virtual void Delete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest* request, ::greptime::v1::meta::RouteResponse* response, std::function<void(::grpc::Status)>) = 0;
virtual void Delete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest* request, ::greptime::v1::meta::RouteResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
};
typedef class async_interface experimental_async_interface;
virtual class async_interface* async() { return nullptr; }
class async_interface* experimental_async() { return async(); }
private:
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>* AsyncCreateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::grpc::CompletionQueue* cq) = 0;
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>* PrepareAsyncCreateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::grpc::CompletionQueue* cq) = 0;
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>* AsyncRouteRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest& request, ::grpc::CompletionQueue* cq) = 0;
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>* PrepareAsyncRouteRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest& request, ::grpc::CompletionQueue* cq) = 0;
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>* AsyncDeleteRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::grpc::CompletionQueue* cq) = 0;
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::RouteResponse>* PrepareAsyncDeleteRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::grpc::CompletionQueue* cq) = 0;
};
class Stub final : public StubInterface {
public:
Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
::grpc::Status Create(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::greptime::v1::meta::RouteResponse* response) override;
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>> AsyncCreate(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>>(AsyncCreateRaw(context, request, cq));
}
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>> PrepareAsyncCreate(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>>(PrepareAsyncCreateRaw(context, request, cq));
}
::grpc::Status Route(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest& request, ::greptime::v1::meta::RouteResponse* response) override;
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>> AsyncRoute(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>>(AsyncRouteRaw(context, request, cq));
@@ -149,22 +120,11 @@ class Router final {
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>> PrepareAsyncRoute(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>>(PrepareAsyncRouteRaw(context, request, cq));
}
::grpc::Status Delete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::greptime::v1::meta::RouteResponse* response) override;
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>> AsyncDelete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>>(AsyncDeleteRaw(context, request, cq));
}
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>> PrepareAsyncDelete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::grpc::CompletionQueue* cq) {
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>>(PrepareAsyncDeleteRaw(context, request, cq));
}
class async final :
public StubInterface::async_interface {
public:
void Create(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest* request, ::greptime::v1::meta::RouteResponse* response, std::function<void(::grpc::Status)>) override;
void Create(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest* request, ::greptime::v1::meta::RouteResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
void Route(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest* request, ::greptime::v1::meta::RouteResponse* response, std::function<void(::grpc::Status)>) override;
void Route(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest* request, ::greptime::v1::meta::RouteResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
void Delete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest* request, ::greptime::v1::meta::RouteResponse* response, std::function<void(::grpc::Status)>) override;
void Delete(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest* request, ::greptime::v1::meta::RouteResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
private:
friend class Stub;
explicit async(Stub* stub): stub_(stub) { }
@@ -176,15 +136,9 @@ class Router final {
private:
std::shared_ptr< ::grpc::ChannelInterface> channel_;
class async async_stub_{this};
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>* AsyncCreateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::grpc::CompletionQueue* cq) override;
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>* PrepareAsyncCreateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::CreateRequest& request, ::grpc::CompletionQueue* cq) override;
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>* AsyncRouteRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest& request, ::grpc::CompletionQueue* cq) override;
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>* PrepareAsyncRouteRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::RouteRequest& request, ::grpc::CompletionQueue* cq) override;
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>* AsyncDeleteRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::grpc::CompletionQueue* cq) override;
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::RouteResponse>* PrepareAsyncDeleteRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRequest& request, ::grpc::CompletionQueue* cq) override;
const ::grpc::internal::RpcMethod rpcmethod_Create_;
const ::grpc::internal::RpcMethod rpcmethod_Route_;
const ::grpc::internal::RpcMethod rpcmethod_Delete_;
};
static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
@@ -192,7 +146,6 @@ class Router final {
public:
Service();
virtual ~Service();
virtual ::grpc::Status Create(::grpc::ServerContext* context, const ::greptime::v1::meta::CreateRequest* request, ::greptime::v1::meta::RouteResponse* response);
// Fetch routing information for tables. The smallest unit is the complete
// routing information(all regions) of a table.
//
@@ -213,27 +166,6 @@ class Router final {
// ```
//
virtual ::grpc::Status Route(::grpc::ServerContext* context, const ::greptime::v1::meta::RouteRequest* request, ::greptime::v1::meta::RouteResponse* response);
virtual ::grpc::Status Delete(::grpc::ServerContext* context, const ::greptime::v1::meta::DeleteRequest* request, ::greptime::v1::meta::RouteResponse* response);
};
template <class BaseClass>
class WithAsyncMethod_Create : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithAsyncMethod_Create() {
::grpc::Service::MarkMethodAsync(0);
}
~WithAsyncMethod_Create() override {
BaseClassMustBeDerivedFromService(this);
}
// disable synchronous version of this method
::grpc::Status Create(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::CreateRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) override {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
void RequestCreate(::grpc::ServerContext* context, ::greptime::v1::meta::CreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::RouteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
}
};
template <class BaseClass>
class WithAsyncMethod_Route : public BaseClass {
@@ -241,7 +173,7 @@ class Router final {
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithAsyncMethod_Route() {
::grpc::Service::MarkMethodAsync(1);
::grpc::Service::MarkMethodAsync(0);
}
~WithAsyncMethod_Route() override {
BaseClassMustBeDerivedFromService(this);
@@ -252,70 +184,23 @@ class Router final {
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
void RequestRoute(::grpc::ServerContext* context, ::greptime::v1::meta::RouteRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::RouteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
}
};
template <class BaseClass>
class WithAsyncMethod_Delete : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithAsyncMethod_Delete() {
::grpc::Service::MarkMethodAsync(2);
}
~WithAsyncMethod_Delete() override {
BaseClassMustBeDerivedFromService(this);
}
// disable synchronous version of this method
::grpc::Status Delete(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DeleteRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) override {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
void RequestDelete(::grpc::ServerContext* context, ::greptime::v1::meta::DeleteRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::RouteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
}
};
typedef WithAsyncMethod_Create<WithAsyncMethod_Route<WithAsyncMethod_Delete<Service > > > AsyncService;
template <class BaseClass>
class WithCallbackMethod_Create : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithCallbackMethod_Create() {
::grpc::Service::MarkMethodCallback(0,
new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::CreateRequest, ::greptime::v1::meta::RouteResponse>(
[this](
::grpc::CallbackServerContext* context, const ::greptime::v1::meta::CreateRequest* request, ::greptime::v1::meta::RouteResponse* response) { return this->Create(context, request, response); }));}
void SetMessageAllocatorFor_Create(
::grpc::MessageAllocator< ::greptime::v1::meta::CreateRequest, ::greptime::v1::meta::RouteResponse>* allocator) {
::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::CreateRequest, ::greptime::v1::meta::RouteResponse>*>(handler)
->SetMessageAllocator(allocator);
}
~WithCallbackMethod_Create() override {
BaseClassMustBeDerivedFromService(this);
}
// disable synchronous version of this method
::grpc::Status Create(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::CreateRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) override {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
virtual ::grpc::ServerUnaryReactor* Create(
::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::CreateRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) { return nullptr; }
};
typedef WithAsyncMethod_Route<Service > AsyncService;
template <class BaseClass>
class WithCallbackMethod_Route : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithCallbackMethod_Route() {
::grpc::Service::MarkMethodCallback(1,
::grpc::Service::MarkMethodCallback(0,
new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::RouteRequest, ::greptime::v1::meta::RouteResponse>(
[this](
::grpc::CallbackServerContext* context, const ::greptime::v1::meta::RouteRequest* request, ::greptime::v1::meta::RouteResponse* response) { return this->Route(context, request, response); }));}
void SetMessageAllocatorFor_Route(
::grpc::MessageAllocator< ::greptime::v1::meta::RouteRequest, ::greptime::v1::meta::RouteResponse>* allocator) {
::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1);
::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::RouteRequest, ::greptime::v1::meta::RouteResponse>*>(handler)
->SetMessageAllocator(allocator);
}
@@ -330,59 +215,15 @@ class Router final {
virtual ::grpc::ServerUnaryReactor* Route(
::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::RouteRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) { return nullptr; }
};
template <class BaseClass>
class WithCallbackMethod_Delete : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithCallbackMethod_Delete() {
::grpc::Service::MarkMethodCallback(2,
new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::DeleteRequest, ::greptime::v1::meta::RouteResponse>(
[this](
::grpc::CallbackServerContext* context, const ::greptime::v1::meta::DeleteRequest* request, ::greptime::v1::meta::RouteResponse* response) { return this->Delete(context, request, response); }));}
void SetMessageAllocatorFor_Delete(
::grpc::MessageAllocator< ::greptime::v1::meta::DeleteRequest, ::greptime::v1::meta::RouteResponse>* allocator) {
::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2);
static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::DeleteRequest, ::greptime::v1::meta::RouteResponse>*>(handler)
->SetMessageAllocator(allocator);
}
~WithCallbackMethod_Delete() override {
BaseClassMustBeDerivedFromService(this);
}
// disable synchronous version of this method
::grpc::Status Delete(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DeleteRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) override {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
virtual ::grpc::ServerUnaryReactor* Delete(
::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::DeleteRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) { return nullptr; }
};
typedef WithCallbackMethod_Create<WithCallbackMethod_Route<WithCallbackMethod_Delete<Service > > > CallbackService;
typedef WithCallbackMethod_Route<Service > CallbackService;
typedef CallbackService ExperimentalCallbackService;
template <class BaseClass>
class WithGenericMethod_Create : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithGenericMethod_Create() {
::grpc::Service::MarkMethodGeneric(0);
}
~WithGenericMethod_Create() override {
BaseClassMustBeDerivedFromService(this);
}
// disable synchronous version of this method
::grpc::Status Create(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::CreateRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) override {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
};
template <class BaseClass>
class WithGenericMethod_Route : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithGenericMethod_Route() {
::grpc::Service::MarkMethodGeneric(1);
::grpc::Service::MarkMethodGeneric(0);
}
~WithGenericMethod_Route() override {
BaseClassMustBeDerivedFromService(this);
@@ -394,49 +235,12 @@ class Router final {
}
};
template <class BaseClass>
class WithGenericMethod_Delete : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithGenericMethod_Delete() {
::grpc::Service::MarkMethodGeneric(2);
}
~WithGenericMethod_Delete() override {
BaseClassMustBeDerivedFromService(this);
}
// disable synchronous version of this method
::grpc::Status Delete(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DeleteRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) override {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
};
template <class BaseClass>
class WithRawMethod_Create : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithRawMethod_Create() {
::grpc::Service::MarkMethodRaw(0);
}
~WithRawMethod_Create() override {
BaseClassMustBeDerivedFromService(this);
}
// disable synchronous version of this method
::grpc::Status Create(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::CreateRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) override {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
void RequestCreate(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
}
};
template <class BaseClass>
class WithRawMethod_Route : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithRawMethod_Route() {
::grpc::Service::MarkMethodRaw(1);
::grpc::Service::MarkMethodRaw(0);
}
~WithRawMethod_Route() override {
BaseClassMustBeDerivedFromService(this);
@@ -447,58 +251,16 @@ class Router final {
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
void RequestRoute(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
}
};
template <class BaseClass>
class WithRawMethod_Delete : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithRawMethod_Delete() {
::grpc::Service::MarkMethodRaw(2);
}
~WithRawMethod_Delete() override {
BaseClassMustBeDerivedFromService(this);
}
// disable synchronous version of this method
::grpc::Status Delete(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DeleteRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) override {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
void RequestDelete(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
}
};
template <class BaseClass>
class WithRawCallbackMethod_Create : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithRawCallbackMethod_Create() {
::grpc::Service::MarkMethodRawCallback(0,
new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
[this](
::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Create(context, request, response); }));
}
~WithRawCallbackMethod_Create() override {
BaseClassMustBeDerivedFromService(this);
}
// disable synchronous version of this method
::grpc::Status Create(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::CreateRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) override {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
virtual ::grpc::ServerUnaryReactor* Create(
::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
};
template <class BaseClass>
class WithRawCallbackMethod_Route : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithRawCallbackMethod_Route() {
::grpc::Service::MarkMethodRawCallback(1,
::grpc::Service::MarkMethodRawCallback(0,
new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
[this](
::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Route(context, request, response); }));
@@ -515,61 +277,12 @@ class Router final {
::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
};
template <class BaseClass>
class WithRawCallbackMethod_Delete : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithRawCallbackMethod_Delete() {
::grpc::Service::MarkMethodRawCallback(2,
new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
[this](
::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Delete(context, request, response); }));
}
~WithRawCallbackMethod_Delete() override {
BaseClassMustBeDerivedFromService(this);
}
// disable synchronous version of this method
::grpc::Status Delete(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DeleteRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) override {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
virtual ::grpc::ServerUnaryReactor* Delete(
::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
};
template <class BaseClass>
class WithStreamedUnaryMethod_Create : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithStreamedUnaryMethod_Create() {
::grpc::Service::MarkMethodStreamed(0,
new ::grpc::internal::StreamedUnaryHandler<
::greptime::v1::meta::CreateRequest, ::greptime::v1::meta::RouteResponse>(
[this](::grpc::ServerContext* context,
::grpc::ServerUnaryStreamer<
::greptime::v1::meta::CreateRequest, ::greptime::v1::meta::RouteResponse>* streamer) {
return this->StreamedCreate(context,
streamer);
}));
}
~WithStreamedUnaryMethod_Create() override {
BaseClassMustBeDerivedFromService(this);
}
// disable regular version of this method
::grpc::Status Create(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::CreateRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) override {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
// replace default version of method with streamed unary
virtual ::grpc::Status StreamedCreate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::CreateRequest,::greptime::v1::meta::RouteResponse>* server_unary_streamer) = 0;
};
template <class BaseClass>
class WithStreamedUnaryMethod_Route : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithStreamedUnaryMethod_Route() {
::grpc::Service::MarkMethodStreamed(1,
::grpc::Service::MarkMethodStreamed(0,
new ::grpc::internal::StreamedUnaryHandler<
::greptime::v1::meta::RouteRequest, ::greptime::v1::meta::RouteResponse>(
[this](::grpc::ServerContext* context,
@@ -590,36 +303,9 @@ class Router final {
// replace default version of method with streamed unary
virtual ::grpc::Status StreamedRoute(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::RouteRequest,::greptime::v1::meta::RouteResponse>* server_unary_streamer) = 0;
};
template <class BaseClass>
class WithStreamedUnaryMethod_Delete : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
public:
WithStreamedUnaryMethod_Delete() {
::grpc::Service::MarkMethodStreamed(2,
new ::grpc::internal::StreamedUnaryHandler<
::greptime::v1::meta::DeleteRequest, ::greptime::v1::meta::RouteResponse>(
[this](::grpc::ServerContext* context,
::grpc::ServerUnaryStreamer<
::greptime::v1::meta::DeleteRequest, ::greptime::v1::meta::RouteResponse>* streamer) {
return this->StreamedDelete(context,
streamer);
}));
}
~WithStreamedUnaryMethod_Delete() override {
BaseClassMustBeDerivedFromService(this);
}
// disable regular version of this method
::grpc::Status Delete(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DeleteRequest* /*request*/, ::greptime::v1::meta::RouteResponse* /*response*/) override {
abort();
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
// replace default version of method with streamed unary
virtual ::grpc::Status StreamedDelete(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::DeleteRequest,::greptime::v1::meta::RouteResponse>* server_unary_streamer) = 0;
};
typedef WithStreamedUnaryMethod_Create<WithStreamedUnaryMethod_Route<WithStreamedUnaryMethod_Delete<Service > > > StreamedUnaryService;
typedef WithStreamedUnaryMethod_Route<Service > StreamedUnaryService;
typedef Service SplitStreamedService;
typedef WithStreamedUnaryMethod_Create<WithStreamedUnaryMethod_Route<WithStreamedUnaryMethod_Delete<Service > > > StreamedService;
typedef WithStreamedUnaryMethod_Route<Service > StreamedService;
};
} // namespace meta
+50 -754
View File
@@ -23,22 +23,6 @@ namespace _pbi = _pb::internal;
namespace greptime {
namespace v1 {
namespace meta {
PROTOBUF_CONSTEXPR CreateRequest::CreateRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.partitions_)*/{}
, /*decltype(_impl_.table_info_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.header_)*/nullptr
, /*decltype(_impl_.table_name_)*/nullptr
, /*decltype(_impl_._cached_size_)*/{}} {}
struct CreateRequestDefaultTypeInternal {
PROTOBUF_CONSTEXPR CreateRequestDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~CreateRequestDefaultTypeInternal() {}
union {
CreateRequest _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRequestDefaultTypeInternal _CreateRequest_default_instance_;
PROTOBUF_CONSTEXPR RouteRequest::RouteRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.table_names_)*/{}
@@ -54,21 +38,6 @@ struct RouteRequestDefaultTypeInternal {
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RouteRequestDefaultTypeInternal _RouteRequest_default_instance_;
PROTOBUF_CONSTEXPR DeleteRequest::DeleteRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.header_)*/nullptr
, /*decltype(_impl_.table_name_)*/nullptr
, /*decltype(_impl_.table_id_)*/nullptr
, /*decltype(_impl_._cached_size_)*/{}} {}
struct DeleteRequestDefaultTypeInternal {
PROTOBUF_CONSTEXPR DeleteRequestDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~DeleteRequestDefaultTypeInternal() {}
union {
DeleteRequest _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRequestDefaultTypeInternal _DeleteRequest_default_instance_;
PROTOBUF_CONSTEXPR RouteResponse::RouteResponse(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.peers_)*/{}
@@ -187,21 +156,11 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
} // namespace meta
} // namespace v1
} // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[11];
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[9];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fmeta_2froute_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2froute_2eproto = nullptr;
const uint32_t TableStruct_greptime_2fv1_2fmeta_2froute_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::CreateRequest, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::CreateRequest, _impl_.header_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::CreateRequest, _impl_.table_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::CreateRequest, _impl_.partitions_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::CreateRequest, _impl_.table_info_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RouteRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -212,15 +171,6 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2froute_2eproto::offsets[] PROTO
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RouteRequest, _impl_.table_names_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RouteRequest, _impl_.table_ids_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DeleteRequest, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DeleteRequest, _impl_.header_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DeleteRequest, _impl_.table_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DeleteRequest, _impl_.table_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RouteResponse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
@@ -293,23 +243,19 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2froute_2eproto::offsets[] PROTO
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TableRouteValue, _impl_.table_route_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::greptime::v1::meta::CreateRequest)},
{ 10, -1, -1, sizeof(::greptime::v1::meta::RouteRequest)},
{ 19, -1, -1, sizeof(::greptime::v1::meta::DeleteRequest)},
{ 28, -1, -1, sizeof(::greptime::v1::meta::RouteResponse)},
{ 37, -1, -1, sizeof(::greptime::v1::meta::TableRoute)},
{ 45, -1, -1, sizeof(::greptime::v1::meta::RegionRoute)},
{ 54, -1, -1, sizeof(::greptime::v1::meta::Table)},
{ 63, 71, -1, sizeof(::greptime::v1::meta::Region_AttrsEntry_DoNotUse)},
{ 73, -1, -1, sizeof(::greptime::v1::meta::Region)},
{ 83, -1, -1, sizeof(::greptime::v1::meta::Partition)},
{ 91, -1, -1, sizeof(::greptime::v1::meta::TableRouteValue)},
{ 0, -1, -1, sizeof(::greptime::v1::meta::RouteRequest)},
{ 9, -1, -1, sizeof(::greptime::v1::meta::RouteResponse)},
{ 18, -1, -1, sizeof(::greptime::v1::meta::TableRoute)},
{ 26, -1, -1, sizeof(::greptime::v1::meta::RegionRoute)},
{ 35, -1, -1, sizeof(::greptime::v1::meta::Table)},
{ 44, 52, -1, sizeof(::greptime::v1::meta::Region_AttrsEntry_DoNotUse)},
{ 54, -1, -1, sizeof(::greptime::v1::meta::Region)},
{ 64, -1, -1, sizeof(::greptime::v1::meta::Partition)},
{ 72, -1, -1, sizeof(::greptime::v1::meta::TableRouteValue)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::meta::_CreateRequest_default_instance_._instance,
&::greptime::v1::meta::_RouteRequest_default_instance_._instance,
&::greptime::v1::meta::_DeleteRequest_default_instance_._instance,
&::greptime::v1::meta::_RouteResponse_default_instance_._instance,
&::greptime::v1::meta::_TableRoute_default_instance_._instance,
&::greptime::v1::meta::_RegionRoute_default_instance_._instance,
@@ -323,56 +269,44 @@ static const ::_pb::Message* const file_default_instances[] = {
const char descriptor_table_protodef_greptime_2fv1_2fmeta_2froute_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\034greptime/v1/meta/route.proto\022\020greptime"
".v1.meta\032\035greptime/v1/meta/common.proto\""
"\266\001\n\rCreateRequest\022/\n\006header\030\001 \001(\0132\037.grep"
"time.v1.meta.RequestHeader\022/\n\ntable_name"
"\030\002 \001(\0132\033.greptime.v1.meta.TableName\022/\n\np"
"artitions\030\003 \003(\0132\033.greptime.v1.meta.Parti"
"tion\022\022\n\ntable_info\030\004 \001(\014\"\237\001\n\014RouteReques"
"t\022/\n\006header\030\001 \001(\0132\037.greptime.v1.meta.Req"
"uestHeader\0220\n\013table_names\030\002 \003(\0132\033.grepti"
"me.v1.meta.TableName\022,\n\ttable_ids\030\003 \003(\0132"
"\031.greptime.v1.meta.TableId\"\236\001\n\rDeleteReq"
"uest\022/\n\006header\030\001 \001(\0132\037.greptime.v1.meta."
"RequestHeader\022/\n\ntable_name\030\002 \001(\0132\033.grep"
"time.v1.meta.TableName\022+\n\010table_id\030\003 \001(\013"
"2\031.greptime.v1.meta.TableId\"\234\001\n\rRouteRes"
"ponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.meta"
".ResponseHeader\022%\n\005peers\030\002 \003(\0132\026.greptim"
"e.v1.meta.Peer\0222\n\014table_routes\030\003 \003(\0132\034.g"
"reptime.v1.meta.TableRoute\"j\n\nTableRoute"
"\022&\n\005table\030\001 \001(\0132\027.greptime.v1.meta.Table"
"\0224\n\rregion_routes\030\002 \003(\0132\035.greptime.v1.me"
"ta.RegionRoute\"q\n\013RegionRoute\022(\n\006region\030"
"\001 \001(\0132\030.greptime.v1.meta.Region\022\031\n\021leade"
"r_peer_index\030\002 \001(\004\022\035\n\025follower_peer_inde"
"xes\030\003 \003(\004\"Z\n\005Table\022\n\n\002id\030\001 \001(\004\022/\n\ntable_"
"name\030\002 \001(\0132\033.greptime.v1.meta.TableName\022"
"\024\n\014table_schema\030\003 \001(\014\"\264\001\n\006Region\022\n\n\002id\030\001"
" \001(\004\022\014\n\004name\030\002 \001(\t\022.\n\tpartition\030\003 \001(\0132\033."
"greptime.v1.meta.Partition\0222\n\005attrs\030d \003("
"\0132#.greptime.v1.meta.Region.AttrsEntry\032,"
"\n\nAttrsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
":\0028\001\"4\n\tPartition\022\023\n\013column_list\030\001 \003(\014\022\022"
"\n\nvalue_list\030\002 \003(\014\"k\n\017TableRouteValue\022%\n"
"\005peers\030\001 \003(\0132\026.greptime.v1.meta.Peer\0221\n\013"
"table_route\030\002 \001(\0132\034.greptime.v1.meta.Tab"
"leRoute2\360\001\n\006Router\022L\n\006Create\022\037.greptime."
"v1.meta.CreateRequest\032\037.greptime.v1.meta"
".RouteResponse\"\000\022J\n\005Route\022\036.greptime.v1."
"meta.RouteRequest\032\037.greptime.v1.meta.Rou"
"teResponse\"\000\022L\n\006Delete\022\037.greptime.v1.met"
"a.DeleteRequest\032\037.greptime.v1.meta.Route"
"Response\"\000B<Z:github.com/GreptimeTeam/gr"
"eptime-proto/go/greptime/v1/metab\006proto3"
"\237\001\n\014RouteRequest\022/\n\006header\030\001 \001(\0132\037.grept"
"ime.v1.meta.RequestHeader\0220\n\013table_names"
"\030\002 \003(\0132\033.greptime.v1.meta.TableName\022,\n\tt"
"able_ids\030\003 \003(\0132\031.greptime.v1.meta.TableI"
"d\"\234\001\n\rRouteResponse\0220\n\006header\030\001 \001(\0132 .gr"
"eptime.v1.meta.ResponseHeader\022%\n\005peers\030\002"
" \003(\0132\026.greptime.v1.meta.Peer\0222\n\014table_ro"
"utes\030\003 \003(\0132\034.greptime.v1.meta.TableRoute"
"\"j\n\nTableRoute\022&\n\005table\030\001 \001(\0132\027.greptime"
".v1.meta.Table\0224\n\rregion_routes\030\002 \003(\0132\035."
"greptime.v1.meta.RegionRoute\"q\n\013RegionRo"
"ute\022(\n\006region\030\001 \001(\0132\030.greptime.v1.meta.R"
"egion\022\031\n\021leader_peer_index\030\002 \001(\004\022\035\n\025foll"
"ower_peer_indexes\030\003 \003(\004\"Z\n\005Table\022\n\n\002id\030\001"
" \001(\004\022/\n\ntable_name\030\002 \001(\0132\033.greptime.v1.m"
"eta.TableName\022\024\n\014table_schema\030\003 \001(\014\"\264\001\n\006"
"Region\022\n\n\002id\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022.\n\tpart"
"ition\030\003 \001(\0132\033.greptime.v1.meta.Partition"
"\0222\n\005attrs\030d \003(\0132#.greptime.v1.meta.Regio"
"n.AttrsEntry\032,\n\nAttrsEntry\022\013\n\003key\030\001 \001(\t\022"
"\r\n\005value\030\002 \001(\t:\0028\001\"4\n\tPartition\022\023\n\013colum"
"n_list\030\001 \003(\014\022\022\n\nvalue_list\030\002 \003(\014\"k\n\017Tabl"
"eRouteValue\022%\n\005peers\030\001 \003(\0132\026.greptime.v1"
".meta.Peer\0221\n\013table_route\030\002 \001(\0132\034.grepti"
"me.v1.meta.TableRoute2T\n\006Router\022J\n\005Route"
"\022\036.greptime.v1.meta.RouteRequest\032\037.grept"
"ime.v1.meta.RouteResponse\"\000B<Z:github.co"
"m/GreptimeTeam/greptime-proto/go/greptim"
"e/v1/metab\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto = {
false, false, 1720, descriptor_table_protodef_greptime_2fv1_2fmeta_2froute_2eproto,
false, false, 1217, descriptor_table_protodef_greptime_2fv1_2fmeta_2froute_2eproto,
"greptime/v1/meta/route.proto",
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_deps, 1, 11,
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_deps, 1, 9,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2froute_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2froute_2eproto,
file_level_service_descriptors_greptime_2fv1_2fmeta_2froute_2eproto,
@@ -389,338 +323,6 @@ namespace meta {
// ===================================================================
class CreateRequest::_Internal {
public:
static const ::greptime::v1::meta::RequestHeader& header(const CreateRequest* msg);
static const ::greptime::v1::meta::TableName& table_name(const CreateRequest* msg);
};
const ::greptime::v1::meta::RequestHeader&
CreateRequest::_Internal::header(const CreateRequest* msg) {
return *msg->_impl_.header_;
}
const ::greptime::v1::meta::TableName&
CreateRequest::_Internal::table_name(const CreateRequest* msg) {
return *msg->_impl_.table_name_;
}
void CreateRequest::clear_header() {
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
delete _impl_.header_;
}
_impl_.header_ = nullptr;
}
void CreateRequest::clear_table_name() {
if (GetArenaForAllocation() == nullptr && _impl_.table_name_ != nullptr) {
delete _impl_.table_name_;
}
_impl_.table_name_ = nullptr;
}
CreateRequest::CreateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.CreateRequest)
}
CreateRequest::CreateRequest(const CreateRequest& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
CreateRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.partitions_){from._impl_.partitions_}
, decltype(_impl_.table_info_){}
, decltype(_impl_.header_){nullptr}
, decltype(_impl_.table_name_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.table_info_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.table_info_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_table_info().empty()) {
_this->_impl_.table_info_.Set(from._internal_table_info(),
_this->GetArenaForAllocation());
}
if (from._internal_has_header()) {
_this->_impl_.header_ = new ::greptime::v1::meta::RequestHeader(*from._impl_.header_);
}
if (from._internal_has_table_name()) {
_this->_impl_.table_name_ = new ::greptime::v1::meta::TableName(*from._impl_.table_name_);
}
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.CreateRequest)
}
inline void CreateRequest::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.partitions_){arena}
, decltype(_impl_.table_info_){}
, decltype(_impl_.header_){nullptr}
, decltype(_impl_.table_name_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.table_info_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.table_info_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
CreateRequest::~CreateRequest() {
// @@protoc_insertion_point(destructor:greptime.v1.meta.CreateRequest)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void CreateRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.partitions_.~RepeatedPtrField();
_impl_.table_info_.Destroy();
if (this != internal_default_instance()) delete _impl_.header_;
if (this != internal_default_instance()) delete _impl_.table_name_;
}
void CreateRequest::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void CreateRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.CreateRequest)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.partitions_.Clear();
_impl_.table_info_.ClearToEmpty();
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
delete _impl_.header_;
}
_impl_.header_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.table_name_ != nullptr) {
delete _impl_.table_name_;
}
_impl_.table_name_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* CreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// .greptime.v1.meta.RequestHeader header = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr = ctx->ParseMessage(_internal_mutable_header(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// .greptime.v1.meta.TableName table_name = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_table_name(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// repeated .greptime.v1.meta.Partition partitions = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_partitions(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
} else
goto handle_unusual;
continue;
// bytes table_info = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
auto str = _internal_mutable_table_info();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* CreateRequest::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.CreateRequest)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// .greptime.v1.meta.RequestHeader header = 1;
if (this->_internal_has_header()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, _Internal::header(this),
_Internal::header(this).GetCachedSize(), target, stream);
}
// .greptime.v1.meta.TableName table_name = 2;
if (this->_internal_has_table_name()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(2, _Internal::table_name(this),
_Internal::table_name(this).GetCachedSize(), target, stream);
}
// repeated .greptime.v1.meta.Partition partitions = 3;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_partitions_size()); i < n; i++) {
const auto& repfield = this->_internal_partitions(i);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
}
// bytes table_info = 4;
if (!this->_internal_table_info().empty()) {
target = stream->WriteBytesMaybeAliased(
4, this->_internal_table_info(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.CreateRequest)
return target;
}
size_t CreateRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.CreateRequest)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .greptime.v1.meta.Partition partitions = 3;
total_size += 1UL * this->_internal_partitions_size();
for (const auto& msg : this->_impl_.partitions_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
// bytes table_info = 4;
if (!this->_internal_table_info().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
this->_internal_table_info());
}
// .greptime.v1.meta.RequestHeader header = 1;
if (this->_internal_has_header()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.header_);
}
// .greptime.v1.meta.TableName table_name = 2;
if (this->_internal_has_table_name()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.table_name_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateRequest::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
CreateRequest::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateRequest::GetClassData() const { return &_class_data_; }
void CreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<CreateRequest*>(&to_msg);
auto& from = static_cast<const CreateRequest&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.CreateRequest)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_impl_.partitions_.MergeFrom(from._impl_.partitions_);
if (!from._internal_table_info().empty()) {
_this->_internal_set_table_info(from._internal_table_info());
}
if (from._internal_has_header()) {
_this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom(
from._internal_header());
}
if (from._internal_has_table_name()) {
_this->_internal_mutable_table_name()->::greptime::v1::meta::TableName::MergeFrom(
from._internal_table_name());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void CreateRequest::CopyFrom(const CreateRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.CreateRequest)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CreateRequest::IsInitialized() const {
return true;
}
void CreateRequest::InternalSwap(CreateRequest* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.partitions_.InternalSwap(&other->_impl_.partitions_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.table_info_, lhs_arena,
&other->_impl_.table_info_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(CreateRequest, _impl_.table_name_)
+ sizeof(CreateRequest::_impl_.table_name_)
- PROTOBUF_FIELD_OFFSET(CreateRequest, _impl_.header_)>(
reinterpret_cast<char*>(&_impl_.header_),
reinterpret_cast<char*>(&other->_impl_.header_));
}
::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[0]);
}
// ===================================================================
class RouteRequest::_Internal {
public:
static const ::greptime::v1::meta::RequestHeader& header(const RouteRequest* msg);
@@ -989,305 +591,7 @@ void RouteRequest::InternalSwap(RouteRequest* other) {
::PROTOBUF_NAMESPACE_ID::Metadata RouteRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[1]);
}
// ===================================================================
class DeleteRequest::_Internal {
public:
static const ::greptime::v1::meta::RequestHeader& header(const DeleteRequest* msg);
static const ::greptime::v1::meta::TableName& table_name(const DeleteRequest* msg);
static const ::greptime::v1::meta::TableId& table_id(const DeleteRequest* msg);
};
const ::greptime::v1::meta::RequestHeader&
DeleteRequest::_Internal::header(const DeleteRequest* msg) {
return *msg->_impl_.header_;
}
const ::greptime::v1::meta::TableName&
DeleteRequest::_Internal::table_name(const DeleteRequest* msg) {
return *msg->_impl_.table_name_;
}
const ::greptime::v1::meta::TableId&
DeleteRequest::_Internal::table_id(const DeleteRequest* msg) {
return *msg->_impl_.table_id_;
}
void DeleteRequest::clear_header() {
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
delete _impl_.header_;
}
_impl_.header_ = nullptr;
}
void DeleteRequest::clear_table_name() {
if (GetArenaForAllocation() == nullptr && _impl_.table_name_ != nullptr) {
delete _impl_.table_name_;
}
_impl_.table_name_ = nullptr;
}
void DeleteRequest::clear_table_id() {
if (GetArenaForAllocation() == nullptr && _impl_.table_id_ != nullptr) {
delete _impl_.table_id_;
}
_impl_.table_id_ = nullptr;
}
DeleteRequest::DeleteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.DeleteRequest)
}
DeleteRequest::DeleteRequest(const DeleteRequest& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
DeleteRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.header_){nullptr}
, decltype(_impl_.table_name_){nullptr}
, decltype(_impl_.table_id_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
if (from._internal_has_header()) {
_this->_impl_.header_ = new ::greptime::v1::meta::RequestHeader(*from._impl_.header_);
}
if (from._internal_has_table_name()) {
_this->_impl_.table_name_ = new ::greptime::v1::meta::TableName(*from._impl_.table_name_);
}
if (from._internal_has_table_id()) {
_this->_impl_.table_id_ = new ::greptime::v1::meta::TableId(*from._impl_.table_id_);
}
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.DeleteRequest)
}
inline void DeleteRequest::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.header_){nullptr}
, decltype(_impl_.table_name_){nullptr}
, decltype(_impl_.table_id_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}
};
}
DeleteRequest::~DeleteRequest() {
// @@protoc_insertion_point(destructor:greptime.v1.meta.DeleteRequest)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void DeleteRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.header_;
if (this != internal_default_instance()) delete _impl_.table_name_;
if (this != internal_default_instance()) delete _impl_.table_id_;
}
void DeleteRequest::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void DeleteRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.DeleteRequest)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
delete _impl_.header_;
}
_impl_.header_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.table_name_ != nullptr) {
delete _impl_.table_name_;
}
_impl_.table_name_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.table_id_ != nullptr) {
delete _impl_.table_id_;
}
_impl_.table_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* DeleteRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// .greptime.v1.meta.RequestHeader header = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr = ctx->ParseMessage(_internal_mutable_header(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// .greptime.v1.meta.TableName table_name = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_table_name(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// .greptime.v1.meta.TableId table_id = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_table_id(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* DeleteRequest::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.DeleteRequest)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// .greptime.v1.meta.RequestHeader header = 1;
if (this->_internal_has_header()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, _Internal::header(this),
_Internal::header(this).GetCachedSize(), target, stream);
}
// .greptime.v1.meta.TableName table_name = 2;
if (this->_internal_has_table_name()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(2, _Internal::table_name(this),
_Internal::table_name(this).GetCachedSize(), target, stream);
}
// .greptime.v1.meta.TableId table_id = 3;
if (this->_internal_has_table_id()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::table_id(this),
_Internal::table_id(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.DeleteRequest)
return target;
}
size_t DeleteRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.DeleteRequest)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// .greptime.v1.meta.RequestHeader header = 1;
if (this->_internal_has_header()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.header_);
}
// .greptime.v1.meta.TableName table_name = 2;
if (this->_internal_has_table_name()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.table_name_);
}
// .greptime.v1.meta.TableId table_id = 3;
if (this->_internal_has_table_id()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.table_id_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRequest::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
DeleteRequest::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRequest::GetClassData() const { return &_class_data_; }
void DeleteRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<DeleteRequest*>(&to_msg);
auto& from = static_cast<const DeleteRequest&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.DeleteRequest)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_has_header()) {
_this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom(
from._internal_header());
}
if (from._internal_has_table_name()) {
_this->_internal_mutable_table_name()->::greptime::v1::meta::TableName::MergeFrom(
from._internal_table_name());
}
if (from._internal_has_table_id()) {
_this->_internal_mutable_table_id()->::greptime::v1::meta::TableId::MergeFrom(
from._internal_table_id());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void DeleteRequest::CopyFrom(const DeleteRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.DeleteRequest)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DeleteRequest::IsInitialized() const {
return true;
}
void DeleteRequest::InternalSwap(DeleteRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(DeleteRequest, _impl_.table_id_)
+ sizeof(DeleteRequest::_impl_.table_id_)
- PROTOBUF_FIELD_OFFSET(DeleteRequest, _impl_.header_)>(
reinterpret_cast<char*>(&_impl_.header_),
reinterpret_cast<char*>(&other->_impl_.header_));
}
::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[2]);
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[0]);
}
// ===================================================================
@@ -1557,7 +861,7 @@ void RouteResponse::InternalSwap(RouteResponse* other) {
::PROTOBUF_NAMESPACE_ID::Metadata RouteResponse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[3]);
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[1]);
}
// ===================================================================
@@ -1784,7 +1088,7 @@ void TableRoute::InternalSwap(TableRoute* other) {
::PROTOBUF_NAMESPACE_ID::Metadata TableRoute::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[4]);
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[2]);
}
// ===================================================================
@@ -2050,7 +1354,7 @@ void RegionRoute::InternalSwap(RegionRoute* other) {
::PROTOBUF_NAMESPACE_ID::Metadata RegionRoute::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[5]);
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[3]);
}
// ===================================================================
@@ -2327,7 +1631,7 @@ void Table::InternalSwap(Table* other) {
::PROTOBUF_NAMESPACE_ID::Metadata Table::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[6]);
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[4]);
}
// ===================================================================
@@ -2341,7 +1645,7 @@ void Region_AttrsEntry_DoNotUse::MergeFrom(const Region_AttrsEntry_DoNotUse& oth
::PROTOBUF_NAMESPACE_ID::Metadata Region_AttrsEntry_DoNotUse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[7]);
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[5]);
}
// ===================================================================
@@ -2685,7 +1989,7 @@ void Region::InternalSwap(Region* other) {
::PROTOBUF_NAMESPACE_ID::Metadata Region::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[8]);
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[6]);
}
// ===================================================================
@@ -2904,7 +2208,7 @@ void Partition::InternalSwap(Partition* other) {
::PROTOBUF_NAMESPACE_ID::Metadata Partition::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[9]);
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[7]);
}
// ===================================================================
@@ -3134,7 +2438,7 @@ void TableRouteValue::InternalSwap(TableRouteValue* other) {
::PROTOBUF_NAMESPACE_ID::Metadata TableRouteValue::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[10]);
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto[8]);
}
// @@protoc_insertion_point(namespace_scope)
@@ -3142,18 +2446,10 @@ void TableRouteValue::InternalSwap(TableRouteValue* other) {
} // namespace v1
} // namespace greptime
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::CreateRequest*
Arena::CreateMaybeMessage< ::greptime::v1::meta::CreateRequest >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::CreateRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::RouteRequest*
Arena::CreateMaybeMessage< ::greptime::v1::meta::RouteRequest >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::RouteRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DeleteRequest*
Arena::CreateMaybeMessage< ::greptime::v1::meta::DeleteRequest >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::DeleteRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::RouteResponse*
Arena::CreateMaybeMessage< ::greptime::v1::meta::RouteResponse >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::RouteResponse >(arena);
File diff suppressed because it is too large Load Diff
+89 -295
View File
@@ -34,77 +34,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type CreateRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
TableName *TableName `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
Partitions []*Partition `protobuf:"bytes,3,rep,name=partitions,proto3" json:"partitions,omitempty"`
TableInfo []byte `protobuf:"bytes,4,opt,name=table_info,json=tableInfo,proto3" json:"table_info,omitempty"`
}
func (x *CreateRequest) Reset() {
*x = CreateRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_route_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateRequest) ProtoMessage() {}
func (x *CreateRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_route_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 CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{0}
}
func (x *CreateRequest) GetHeader() *RequestHeader {
if x != nil {
return x.Header
}
return nil
}
func (x *CreateRequest) GetTableName() *TableName {
if x != nil {
return x.TableName
}
return nil
}
func (x *CreateRequest) GetPartitions() []*Partition {
if x != nil {
return x.Partitions
}
return nil
}
func (x *CreateRequest) GetTableInfo() []byte {
if x != nil {
return x.TableInfo
}
return nil
}
type RouteRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -118,7 +47,7 @@ type RouteRequest struct {
func (x *RouteRequest) Reset() {
*x = RouteRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_route_proto_msgTypes[1]
mi := &file_greptime_v1_meta_route_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -131,7 +60,7 @@ func (x *RouteRequest) String() string {
func (*RouteRequest) ProtoMessage() {}
func (x *RouteRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_route_proto_msgTypes[1]
mi := &file_greptime_v1_meta_route_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -144,7 +73,7 @@ func (x *RouteRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RouteRequest.ProtoReflect.Descriptor instead.
func (*RouteRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{1}
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{0}
}
func (x *RouteRequest) GetHeader() *RequestHeader {
@@ -168,69 +97,6 @@ func (x *RouteRequest) GetTableIds() []*TableId {
return nil
}
type DeleteRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
TableName *TableName `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
TableId *TableId `protobuf:"bytes,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
}
func (x *DeleteRequest) Reset() {
*x = DeleteRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_route_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteRequest) ProtoMessage() {}
func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_route_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 DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{2}
}
func (x *DeleteRequest) GetHeader() *RequestHeader {
if x != nil {
return x.Header
}
return nil
}
func (x *DeleteRequest) GetTableName() *TableName {
if x != nil {
return x.TableName
}
return nil
}
func (x *DeleteRequest) GetTableId() *TableId {
if x != nil {
return x.TableId
}
return nil
}
type RouteResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -244,7 +110,7 @@ type RouteResponse struct {
func (x *RouteResponse) Reset() {
*x = RouteResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_route_proto_msgTypes[3]
mi := &file_greptime_v1_meta_route_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -257,7 +123,7 @@ func (x *RouteResponse) String() string {
func (*RouteResponse) ProtoMessage() {}
func (x *RouteResponse) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_route_proto_msgTypes[3]
mi := &file_greptime_v1_meta_route_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -270,7 +136,7 @@ func (x *RouteResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use RouteResponse.ProtoReflect.Descriptor instead.
func (*RouteResponse) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{3}
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{1}
}
func (x *RouteResponse) GetHeader() *ResponseHeader {
@@ -306,7 +172,7 @@ type TableRoute struct {
func (x *TableRoute) Reset() {
*x = TableRoute{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_route_proto_msgTypes[4]
mi := &file_greptime_v1_meta_route_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -319,7 +185,7 @@ func (x *TableRoute) String() string {
func (*TableRoute) ProtoMessage() {}
func (x *TableRoute) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_route_proto_msgTypes[4]
mi := &file_greptime_v1_meta_route_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -332,7 +198,7 @@ func (x *TableRoute) ProtoReflect() protoreflect.Message {
// Deprecated: Use TableRoute.ProtoReflect.Descriptor instead.
func (*TableRoute) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{4}
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{2}
}
func (x *TableRoute) GetTable() *Table {
@@ -364,7 +230,7 @@ type RegionRoute struct {
func (x *RegionRoute) Reset() {
*x = RegionRoute{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_route_proto_msgTypes[5]
mi := &file_greptime_v1_meta_route_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -377,7 +243,7 @@ func (x *RegionRoute) String() string {
func (*RegionRoute) ProtoMessage() {}
func (x *RegionRoute) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_route_proto_msgTypes[5]
mi := &file_greptime_v1_meta_route_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -390,7 +256,7 @@ func (x *RegionRoute) ProtoReflect() protoreflect.Message {
// Deprecated: Use RegionRoute.ProtoReflect.Descriptor instead.
func (*RegionRoute) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{5}
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{3}
}
func (x *RegionRoute) GetRegion() *Region {
@@ -427,7 +293,7 @@ type Table struct {
func (x *Table) Reset() {
*x = Table{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_route_proto_msgTypes[6]
mi := &file_greptime_v1_meta_route_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -440,7 +306,7 @@ func (x *Table) String() string {
func (*Table) ProtoMessage() {}
func (x *Table) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_route_proto_msgTypes[6]
mi := &file_greptime_v1_meta_route_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -453,7 +319,7 @@ func (x *Table) ProtoReflect() protoreflect.Message {
// Deprecated: Use Table.ProtoReflect.Descriptor instead.
func (*Table) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{6}
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{4}
}
func (x *Table) GetId() uint64 {
@@ -492,7 +358,7 @@ type Region struct {
func (x *Region) Reset() {
*x = Region{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_route_proto_msgTypes[7]
mi := &file_greptime_v1_meta_route_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -505,7 +371,7 @@ func (x *Region) String() string {
func (*Region) ProtoMessage() {}
func (x *Region) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_route_proto_msgTypes[7]
mi := &file_greptime_v1_meta_route_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -518,7 +384,7 @@ func (x *Region) ProtoReflect() protoreflect.Message {
// Deprecated: Use Region.ProtoReflect.Descriptor instead.
func (*Region) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{7}
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{5}
}
func (x *Region) GetId() uint64 {
@@ -562,7 +428,7 @@ type Partition struct {
func (x *Partition) Reset() {
*x = Partition{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_route_proto_msgTypes[8]
mi := &file_greptime_v1_meta_route_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -575,7 +441,7 @@ func (x *Partition) String() string {
func (*Partition) ProtoMessage() {}
func (x *Partition) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_route_proto_msgTypes[8]
mi := &file_greptime_v1_meta_route_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -588,7 +454,7 @@ func (x *Partition) ProtoReflect() protoreflect.Message {
// Deprecated: Use Partition.ProtoReflect.Descriptor instead.
func (*Partition) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{8}
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{6}
}
func (x *Partition) GetColumnList() [][]byte {
@@ -618,7 +484,7 @@ type TableRouteValue struct {
func (x *TableRouteValue) Reset() {
*x = TableRouteValue{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_route_proto_msgTypes[9]
mi := &file_greptime_v1_meta_route_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -631,7 +497,7 @@ func (x *TableRouteValue) String() string {
func (*TableRouteValue) ProtoMessage() {}
func (x *TableRouteValue) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_route_proto_msgTypes[9]
mi := &file_greptime_v1_meta_route_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -644,7 +510,7 @@ func (x *TableRouteValue) ProtoReflect() protoreflect.Message {
// Deprecated: Use TableRouteValue.ProtoReflect.Descriptor instead.
func (*TableRouteValue) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{9}
return file_greptime_v1_meta_route_proto_rawDescGZIP(), []int{7}
}
func (x *TableRouteValue) GetPeers() []*Peer {
@@ -669,44 +535,18 @@ var file_greptime_v1_meta_route_proto_rawDesc = []byte{
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65,
0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0xe0, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64,
0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x0a, 0x74, 0x61,
0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
0xbd, 0x01, 0x0a, 0x0c, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65,
0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x62,
0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x74, 0x61, 0x62,
0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x61,
0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x66,
0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e,
0x66, 0x6f, 0x22, 0xbd, 0x01, 0x0a, 0x0c, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65,
0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3c, 0x0a, 0x0b,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0a,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61,
0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49,
0x64, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48,
0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3a, 0x0a,
0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x09,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x74, 0x61, 0x62,
0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54,
0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22,
0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x62,
0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61,
0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x22,
0xb8, 0x01, 0x0a, 0x0d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
@@ -771,26 +611,16 @@ var file_greptime_v1_meta_route_proto_rawDesc = []byte{
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74,
0x65, 0x32, 0xf0, 0x01, 0x0a, 0x06, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x12, 0x4c, 0x0a, 0x06,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x05, 0x52, 0x6f,
0x75, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x12, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65,
0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x65, 0x32, 0x54, 0x0a, 0x06, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x05, 0x52,
0x6f, 0x75, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65,
0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31,
0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -805,57 +635,45 @@ func file_greptime_v1_meta_route_proto_rawDescGZIP() []byte {
return file_greptime_v1_meta_route_proto_rawDescData
}
var file_greptime_v1_meta_route_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_greptime_v1_meta_route_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_greptime_v1_meta_route_proto_goTypes = []interface{}{
(*CreateRequest)(nil), // 0: greptime.v1.meta.CreateRequest
(*RouteRequest)(nil), // 1: greptime.v1.meta.RouteRequest
(*DeleteRequest)(nil), // 2: greptime.v1.meta.DeleteRequest
(*RouteResponse)(nil), // 3: greptime.v1.meta.RouteResponse
(*TableRoute)(nil), // 4: greptime.v1.meta.TableRoute
(*RegionRoute)(nil), // 5: greptime.v1.meta.RegionRoute
(*Table)(nil), // 6: greptime.v1.meta.Table
(*Region)(nil), // 7: greptime.v1.meta.Region
(*Partition)(nil), // 8: greptime.v1.meta.Partition
(*TableRouteValue)(nil), // 9: greptime.v1.meta.TableRouteValue
nil, // 10: greptime.v1.meta.Region.AttrsEntry
(*RequestHeader)(nil), // 11: greptime.v1.meta.RequestHeader
(*TableName)(nil), // 12: greptime.v1.meta.TableName
(*TableId)(nil), // 13: greptime.v1.meta.TableId
(*ResponseHeader)(nil), // 14: greptime.v1.meta.ResponseHeader
(*Peer)(nil), // 15: greptime.v1.meta.Peer
(*RouteRequest)(nil), // 0: greptime.v1.meta.RouteRequest
(*RouteResponse)(nil), // 1: greptime.v1.meta.RouteResponse
(*TableRoute)(nil), // 2: greptime.v1.meta.TableRoute
(*RegionRoute)(nil), // 3: greptime.v1.meta.RegionRoute
(*Table)(nil), // 4: greptime.v1.meta.Table
(*Region)(nil), // 5: greptime.v1.meta.Region
(*Partition)(nil), // 6: greptime.v1.meta.Partition
(*TableRouteValue)(nil), // 7: greptime.v1.meta.TableRouteValue
nil, // 8: greptime.v1.meta.Region.AttrsEntry
(*RequestHeader)(nil), // 9: greptime.v1.meta.RequestHeader
(*TableName)(nil), // 10: greptime.v1.meta.TableName
(*TableId)(nil), // 11: greptime.v1.meta.TableId
(*ResponseHeader)(nil), // 12: greptime.v1.meta.ResponseHeader
(*Peer)(nil), // 13: greptime.v1.meta.Peer
}
var file_greptime_v1_meta_route_proto_depIdxs = []int32{
11, // 0: greptime.v1.meta.CreateRequest.header:type_name -> greptime.v1.meta.RequestHeader
12, // 1: greptime.v1.meta.CreateRequest.table_name:type_name -> greptime.v1.meta.TableName
8, // 2: greptime.v1.meta.CreateRequest.partitions:type_name -> greptime.v1.meta.Partition
11, // 3: greptime.v1.meta.RouteRequest.header:type_name -> greptime.v1.meta.RequestHeader
12, // 4: greptime.v1.meta.RouteRequest.table_names:type_name -> greptime.v1.meta.TableName
13, // 5: greptime.v1.meta.RouteRequest.table_ids:type_name -> greptime.v1.meta.TableId
11, // 6: greptime.v1.meta.DeleteRequest.header:type_name -> greptime.v1.meta.RequestHeader
12, // 7: greptime.v1.meta.DeleteRequest.table_name:type_name -> greptime.v1.meta.TableName
13, // 8: greptime.v1.meta.DeleteRequest.table_id:type_name -> greptime.v1.meta.TableId
14, // 9: greptime.v1.meta.RouteResponse.header:type_name -> greptime.v1.meta.ResponseHeader
15, // 10: greptime.v1.meta.RouteResponse.peers:type_name -> greptime.v1.meta.Peer
4, // 11: greptime.v1.meta.RouteResponse.table_routes:type_name -> greptime.v1.meta.TableRoute
6, // 12: greptime.v1.meta.TableRoute.table:type_name -> greptime.v1.meta.Table
5, // 13: greptime.v1.meta.TableRoute.region_routes:type_name -> greptime.v1.meta.RegionRoute
7, // 14: greptime.v1.meta.RegionRoute.region:type_name -> greptime.v1.meta.Region
12, // 15: greptime.v1.meta.Table.table_name:type_name -> greptime.v1.meta.TableName
8, // 16: greptime.v1.meta.Region.partition:type_name -> greptime.v1.meta.Partition
10, // 17: greptime.v1.meta.Region.attrs:type_name -> greptime.v1.meta.Region.AttrsEntry
15, // 18: greptime.v1.meta.TableRouteValue.peers:type_name -> greptime.v1.meta.Peer
4, // 19: greptime.v1.meta.TableRouteValue.table_route:type_name -> greptime.v1.meta.TableRoute
0, // 20: greptime.v1.meta.Router.Create:input_type -> greptime.v1.meta.CreateRequest
1, // 21: greptime.v1.meta.Router.Route:input_type -> greptime.v1.meta.RouteRequest
2, // 22: greptime.v1.meta.Router.Delete:input_type -> greptime.v1.meta.DeleteRequest
3, // 23: greptime.v1.meta.Router.Create:output_type -> greptime.v1.meta.RouteResponse
3, // 24: greptime.v1.meta.Router.Route:output_type -> greptime.v1.meta.RouteResponse
3, // 25: greptime.v1.meta.Router.Delete:output_type -> greptime.v1.meta.RouteResponse
23, // [23:26] is the sub-list for method output_type
20, // [20:23] is the sub-list for method input_type
20, // [20:20] is the sub-list for extension type_name
20, // [20:20] is the sub-list for extension extendee
0, // [0:20] is the sub-list for field type_name
9, // 0: greptime.v1.meta.RouteRequest.header:type_name -> greptime.v1.meta.RequestHeader
10, // 1: greptime.v1.meta.RouteRequest.table_names:type_name -> greptime.v1.meta.TableName
11, // 2: greptime.v1.meta.RouteRequest.table_ids:type_name -> greptime.v1.meta.TableId
12, // 3: greptime.v1.meta.RouteResponse.header:type_name -> greptime.v1.meta.ResponseHeader
13, // 4: greptime.v1.meta.RouteResponse.peers:type_name -> greptime.v1.meta.Peer
2, // 5: greptime.v1.meta.RouteResponse.table_routes:type_name -> greptime.v1.meta.TableRoute
4, // 6: greptime.v1.meta.TableRoute.table:type_name -> greptime.v1.meta.Table
3, // 7: greptime.v1.meta.TableRoute.region_routes:type_name -> greptime.v1.meta.RegionRoute
5, // 8: greptime.v1.meta.RegionRoute.region:type_name -> greptime.v1.meta.Region
10, // 9: greptime.v1.meta.Table.table_name:type_name -> greptime.v1.meta.TableName
6, // 10: greptime.v1.meta.Region.partition:type_name -> greptime.v1.meta.Partition
8, // 11: greptime.v1.meta.Region.attrs:type_name -> greptime.v1.meta.Region.AttrsEntry
13, // 12: greptime.v1.meta.TableRouteValue.peers:type_name -> greptime.v1.meta.Peer
2, // 13: greptime.v1.meta.TableRouteValue.table_route:type_name -> greptime.v1.meta.TableRoute
0, // 14: greptime.v1.meta.Router.Route:input_type -> greptime.v1.meta.RouteRequest
1, // 15: greptime.v1.meta.Router.Route:output_type -> greptime.v1.meta.RouteResponse
15, // [15:16] is the sub-list for method output_type
14, // [14:15] 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_greptime_v1_meta_route_proto_init() }
@@ -866,18 +684,6 @@ func file_greptime_v1_meta_route_proto_init() {
file_greptime_v1_meta_common_proto_init()
if !protoimpl.UnsafeEnabled {
file_greptime_v1_meta_route_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_meta_route_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RouteRequest); i {
case 0:
return &v.state
@@ -889,19 +695,7 @@ func file_greptime_v1_meta_route_proto_init() {
return nil
}
}
file_greptime_v1_meta_route_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_meta_route_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_greptime_v1_meta_route_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RouteResponse); i {
case 0:
return &v.state
@@ -913,7 +707,7 @@ func file_greptime_v1_meta_route_proto_init() {
return nil
}
}
file_greptime_v1_meta_route_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_greptime_v1_meta_route_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TableRoute); i {
case 0:
return &v.state
@@ -925,7 +719,7 @@ func file_greptime_v1_meta_route_proto_init() {
return nil
}
}
file_greptime_v1_meta_route_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_greptime_v1_meta_route_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegionRoute); i {
case 0:
return &v.state
@@ -937,7 +731,7 @@ func file_greptime_v1_meta_route_proto_init() {
return nil
}
}
file_greptime_v1_meta_route_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_greptime_v1_meta_route_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Table); i {
case 0:
return &v.state
@@ -949,7 +743,7 @@ func file_greptime_v1_meta_route_proto_init() {
return nil
}
}
file_greptime_v1_meta_route_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_greptime_v1_meta_route_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Region); i {
case 0:
return &v.state
@@ -961,7 +755,7 @@ func file_greptime_v1_meta_route_proto_init() {
return nil
}
}
file_greptime_v1_meta_route_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_greptime_v1_meta_route_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Partition); i {
case 0:
return &v.state
@@ -973,7 +767,7 @@ func file_greptime_v1_meta_route_proto_init() {
return nil
}
}
file_greptime_v1_meta_route_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_greptime_v1_meta_route_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TableRouteValue); i {
case 0:
return &v.state
@@ -992,7 +786,7 @@ func file_greptime_v1_meta_route_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_meta_route_proto_rawDesc,
NumEnums: 0,
NumMessages: 11,
NumMessages: 9,
NumExtensions: 0,
NumServices: 1,
},
-72
View File
@@ -22,7 +22,6 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type RouterClient interface {
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*RouteResponse, error)
// Fetch routing information for tables. The smallest unit is the complete
// routing information(all regions) of a table.
//
@@ -46,7 +45,6 @@ type RouterClient interface {
//
// ```
Route(ctx context.Context, in *RouteRequest, opts ...grpc.CallOption) (*RouteResponse, error)
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*RouteResponse, error)
}
type routerClient struct {
@@ -57,15 +55,6 @@ func NewRouterClient(cc grpc.ClientConnInterface) RouterClient {
return &routerClient{cc}
}
func (c *routerClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*RouteResponse, error) {
out := new(RouteResponse)
err := c.cc.Invoke(ctx, "/greptime.v1.meta.Router/Create", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *routerClient) Route(ctx context.Context, in *RouteRequest, opts ...grpc.CallOption) (*RouteResponse, error) {
out := new(RouteResponse)
err := c.cc.Invoke(ctx, "/greptime.v1.meta.Router/Route", in, out, opts...)
@@ -75,20 +64,10 @@ func (c *routerClient) Route(ctx context.Context, in *RouteRequest, opts ...grpc
return out, nil
}
func (c *routerClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*RouteResponse, error) {
out := new(RouteResponse)
err := c.cc.Invoke(ctx, "/greptime.v1.meta.Router/Delete", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RouterServer is the server API for Router service.
// All implementations must embed UnimplementedRouterServer
// for forward compatibility
type RouterServer interface {
Create(context.Context, *CreateRequest) (*RouteResponse, error)
// Fetch routing information for tables. The smallest unit is the complete
// routing information(all regions) of a table.
//
@@ -112,7 +91,6 @@ type RouterServer interface {
//
// ```
Route(context.Context, *RouteRequest) (*RouteResponse, error)
Delete(context.Context, *DeleteRequest) (*RouteResponse, error)
mustEmbedUnimplementedRouterServer()
}
@@ -120,15 +98,9 @@ type RouterServer interface {
type UnimplementedRouterServer struct {
}
func (UnimplementedRouterServer) Create(context.Context, *CreateRequest) (*RouteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
func (UnimplementedRouterServer) Route(context.Context, *RouteRequest) (*RouteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Route not implemented")
}
func (UnimplementedRouterServer) Delete(context.Context, *DeleteRequest) (*RouteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
}
func (UnimplementedRouterServer) mustEmbedUnimplementedRouterServer() {}
// UnsafeRouterServer may be embedded to opt out of forward compatibility for this service.
@@ -142,24 +114,6 @@ func RegisterRouterServer(s grpc.ServiceRegistrar, srv RouterServer) {
s.RegisterService(&Router_ServiceDesc, srv)
}
func _Router_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RouterServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/greptime.v1.meta.Router/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RouterServer).Create(ctx, req.(*CreateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Router_Route_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RouteRequest)
if err := dec(in); err != nil {
@@ -178,24 +132,6 @@ func _Router_Route_Handler(srv interface{}, ctx context.Context, dec func(interf
return interceptor(ctx, in, info, handler)
}
func _Router_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RouterServer).Delete(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/greptime.v1.meta.Router/Delete",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RouterServer).Delete(ctx, req.(*DeleteRequest))
}
return interceptor(ctx, in, info, handler)
}
// Router_ServiceDesc is the grpc.ServiceDesc for Router service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@@ -203,18 +139,10 @@ var Router_ServiceDesc = grpc.ServiceDesc{
ServiceName: "greptime.v1.meta.Router",
HandlerType: (*RouterServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Create",
Handler: _Router_Create_Handler,
},
{
MethodName: "Route",
Handler: _Router_Route_Handler,
},
{
MethodName: "Delete",
Handler: _Router_Delete_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "greptime/v1/meta/route.proto",
File diff suppressed because it is too large Load Diff
-18
View File
@@ -21,8 +21,6 @@ option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta"
import "greptime/v1/meta/common.proto";
service Router {
rpc Create(CreateRequest) returns (RouteResponse) {}
// Fetch routing information for tables. The smallest unit is the complete
// routing information(all regions) of a table.
//
@@ -43,16 +41,6 @@ service Router {
// ```
//
rpc Route(RouteRequest) returns (RouteResponse) {}
rpc Delete(DeleteRequest) returns (RouteResponse) {}
}
message CreateRequest {
RequestHeader header = 1;
TableName table_name = 2;
repeated Partition partitions = 3;
bytes table_info = 4;
}
message RouteRequest {
@@ -61,12 +49,6 @@ message RouteRequest {
repeated TableId table_ids = 3;
}
message DeleteRequest {
RequestHeader header = 1;
TableName table_name = 2;
TableId table_id = 3;
}
message RouteResponse {
ResponseHeader header = 1;
-2
View File
@@ -156,9 +156,7 @@ macro_rules! gen_set_header {
gen_set_header!(HeartbeatRequest);
gen_set_header!(RouteRequest);
gen_set_header!(CreateRequest);
gen_set_header!(RangeRequest);
gen_set_header!(DeleteRequest);
gen_set_header!(PutRequest);
gen_set_header!(BatchGetRequest);
gen_set_header!(BatchPutRequest);