From 092ba1d01e2da676dca66cca7eebb55009da8ef8 Mon Sep 17 00:00:00 2001 From: discord9 <55937128+discord9@users.noreply.github.com> Date: Fri, 6 Mar 2026 15:07:34 +0800 Subject: [PATCH] feat: admin gc (#308) * feat: add gc admin rpc * chore: make all Signed-off-by: discord9 * per review Signed-off-by: discord9 * chore: per review Signed-off-by: discord9 --------- Signed-off-by: discord9 --- c++/greptime/v1/meta/procedure.grpc.pb.cc | 84 + c++/greptime/v1/meta/procedure.grpc.pb.h | 328 +- c++/greptime/v1/meta/procedure.pb.cc | 1700 +++++- c++/greptime/v1/meta/procedure.pb.h | 1934 +++++++ go/greptime/v1/meta/procedure.pb.go | 644 ++- go/greptime/v1/meta/procedure_grpc.pb.go | 76 + .../main/java/greptime/v1/meta/Procedure.java | 4963 ++++++++++++++++- proto/greptime/v1/meta/procedure.proto | 47 + 8 files changed, 9653 insertions(+), 123 deletions(-) diff --git a/c++/greptime/v1/meta/procedure.grpc.pb.cc b/c++/greptime/v1/meta/procedure.grpc.pb.cc index 4c8beb7..5a54875 100644 --- a/c++/greptime/v1/meta/procedure.grpc.pb.cc +++ b/c++/greptime/v1/meta/procedure.grpc.pb.cc @@ -29,6 +29,8 @@ static const char* ProcedureService_method_names[] = { "/greptime.v1.meta.ProcedureService/reconcile", "/greptime.v1.meta.ProcedureService/migrate", "/greptime.v1.meta.ProcedureService/details", + "/greptime.v1.meta.ProcedureService/gc_regions", + "/greptime.v1.meta.ProcedureService/gc_table", }; std::unique_ptr< ProcedureService::Stub> ProcedureService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -43,6 +45,8 @@ ProcedureService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& c , rpcmethod_reconcile_(ProcedureService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_migrate_(ProcedureService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_details_(ProcedureService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_gc_regions_(ProcedureService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_gc_table_(ProcedureService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status ProcedureService::Stub::query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::greptime::v1::meta::ProcedureStateResponse* response) { @@ -160,6 +164,52 @@ void ProcedureService::Stub::async::details(::grpc::ClientContext* context, cons return result; } +::grpc::Status ProcedureService::Stub::gc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::greptime::v1::meta::GcRegionsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::GcRegionsRequest, ::greptime::v1::meta::GcRegionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_gc_regions_, context, request, response); +} + +void ProcedureService::Stub::async::gc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest* request, ::greptime::v1::meta::GcRegionsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::GcRegionsRequest, ::greptime::v1::meta::GcRegionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_gc_regions_, context, request, response, std::move(f)); +} + +void ProcedureService::Stub::async::gc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest* request, ::greptime::v1::meta::GcRegionsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_gc_regions_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcRegionsResponse>* ProcedureService::Stub::PrepareAsyncgc_regionsRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::GcRegionsResponse, ::greptime::v1::meta::GcRegionsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_gc_regions_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcRegionsResponse>* ProcedureService::Stub::Asyncgc_regionsRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncgc_regionsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ProcedureService::Stub::gc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::greptime::v1::meta::GcTableResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::GcTableRequest, ::greptime::v1::meta::GcTableResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_gc_table_, context, request, response); +} + +void ProcedureService::Stub::async::gc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest* request, ::greptime::v1::meta::GcTableResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::GcTableRequest, ::greptime::v1::meta::GcTableResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_gc_table_, context, request, response, std::move(f)); +} + +void ProcedureService::Stub::async::gc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest* request, ::greptime::v1::meta::GcTableResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_gc_table_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcTableResponse>* ProcedureService::Stub::PrepareAsyncgc_tableRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::GcTableResponse, ::greptime::v1::meta::GcTableRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_gc_table_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcTableResponse>* ProcedureService::Stub::Asyncgc_tableRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncgc_tableRaw(context, request, cq); + result->StartCall(); + return result; +} + ProcedureService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ProcedureService_method_names[0], @@ -211,6 +261,26 @@ ProcedureService::Service::Service() { ::greptime::v1::meta::ProcedureDetailResponse* resp) { return service->details(ctx, req, resp); }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ProcedureService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ProcedureService::Service, ::greptime::v1::meta::GcRegionsRequest, ::greptime::v1::meta::GcRegionsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ProcedureService::Service* service, + ::grpc::ServerContext* ctx, + const ::greptime::v1::meta::GcRegionsRequest* req, + ::greptime::v1::meta::GcRegionsResponse* resp) { + return service->gc_regions(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ProcedureService_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ProcedureService::Service, ::greptime::v1::meta::GcTableRequest, ::greptime::v1::meta::GcTableResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ProcedureService::Service* service, + ::grpc::ServerContext* ctx, + const ::greptime::v1::meta::GcTableRequest* req, + ::greptime::v1::meta::GcTableResponse* resp) { + return service->gc_table(ctx, req, resp); + }, this))); } ProcedureService::Service::~Service() { @@ -251,6 +321,20 @@ ProcedureService::Service::~Service() { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status ProcedureService::Service::gc_regions(::grpc::ServerContext* context, const ::greptime::v1::meta::GcRegionsRequest* request, ::greptime::v1::meta::GcRegionsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ProcedureService::Service::gc_table(::grpc::ServerContext* context, const ::greptime::v1::meta::GcTableRequest* request, ::greptime::v1::meta::GcTableResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace greptime } // namespace v1 diff --git a/c++/greptime/v1/meta/procedure.grpc.pb.h b/c++/greptime/v1/meta/procedure.grpc.pb.h index 0bee70f..f36d47c 100644 --- a/c++/greptime/v1/meta/procedure.grpc.pb.h +++ b/c++/greptime/v1/meta/procedure.grpc.pb.h @@ -82,6 +82,22 @@ class ProcedureService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureDetailResponse>> PrepareAsyncdetails(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureDetailResponse>>(PrepareAsyncdetailsRaw(context, request, cq)); } + // Manually trigger GC for a specific list of regions + virtual ::grpc::Status gc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::greptime::v1::meta::GcRegionsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::GcRegionsResponse>> Asyncgc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::GcRegionsResponse>>(Asyncgc_regionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::GcRegionsResponse>> PrepareAsyncgc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::GcRegionsResponse>>(PrepareAsyncgc_regionsRaw(context, request, cq)); + } + // Manually trigger GC for a table (all its regions) + virtual ::grpc::Status gc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::greptime::v1::meta::GcTableResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::GcTableResponse>> Asyncgc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::GcTableResponse>>(Asyncgc_tableRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::GcTableResponse>> PrepareAsyncgc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::GcTableResponse>>(PrepareAsyncgc_tableRaw(context, request, cq)); + } class async_interface { public: virtual ~async_interface() {} @@ -100,6 +116,12 @@ class ProcedureService final { // Query all submitted procedures details virtual void details(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest* request, ::greptime::v1::meta::ProcedureDetailResponse* response, std::function) = 0; virtual void details(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest* request, ::greptime::v1::meta::ProcedureDetailResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Manually trigger GC for a specific list of regions + virtual void gc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest* request, ::greptime::v1::meta::GcRegionsResponse* response, std::function) = 0; + virtual void gc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest* request, ::greptime::v1::meta::GcRegionsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Manually trigger GC for a table (all its regions) + virtual void gc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest* request, ::greptime::v1::meta::GcTableResponse* response, std::function) = 0; + virtual void gc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest* request, ::greptime::v1::meta::GcTableResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } @@ -115,6 +137,10 @@ class ProcedureService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>* PrepareAsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureDetailResponse>* AsyncdetailsRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureDetailResponse>* PrepareAsyncdetailsRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::GcRegionsResponse>* Asyncgc_regionsRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::GcRegionsResponse>* PrepareAsyncgc_regionsRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::GcTableResponse>* Asyncgc_tableRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::GcTableResponse>* PrepareAsyncgc_tableRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -154,6 +180,20 @@ class ProcedureService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureDetailResponse>> PrepareAsyncdetails(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureDetailResponse>>(PrepareAsyncdetailsRaw(context, request, cq)); } + ::grpc::Status gc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::greptime::v1::meta::GcRegionsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcRegionsResponse>> Asyncgc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcRegionsResponse>>(Asyncgc_regionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcRegionsResponse>> PrepareAsyncgc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcRegionsResponse>>(PrepareAsyncgc_regionsRaw(context, request, cq)); + } + ::grpc::Status gc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::greptime::v1::meta::GcTableResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcTableResponse>> Asyncgc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcTableResponse>>(Asyncgc_tableRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcTableResponse>> PrepareAsyncgc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcTableResponse>>(PrepareAsyncgc_tableRaw(context, request, cq)); + } class async final : public StubInterface::async_interface { public: @@ -167,6 +207,10 @@ class ProcedureService final { void migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void details(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest* request, ::greptime::v1::meta::ProcedureDetailResponse* response, std::function) override; void details(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest* request, ::greptime::v1::meta::ProcedureDetailResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void gc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest* request, ::greptime::v1::meta::GcRegionsResponse* response, std::function) override; + void gc_regions(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest* request, ::greptime::v1::meta::GcRegionsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void gc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest* request, ::greptime::v1::meta::GcTableResponse* response, std::function) override; + void gc_table(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest* request, ::greptime::v1::meta::GcTableResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -188,11 +232,17 @@ class ProcedureService final { ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>* PrepareAsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureDetailResponse>* AsyncdetailsRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureDetailResponse>* PrepareAsyncdetailsRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcRegionsResponse>* Asyncgc_regionsRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcRegionsResponse>* PrepareAsyncgc_regionsRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::GcRegionsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcTableResponse>* Asyncgc_tableRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::GcTableResponse>* PrepareAsyncgc_tableRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::GcTableRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_query_; const ::grpc::internal::RpcMethod rpcmethod_ddl_; const ::grpc::internal::RpcMethod rpcmethod_reconcile_; const ::grpc::internal::RpcMethod rpcmethod_migrate_; const ::grpc::internal::RpcMethod rpcmethod_details_; + const ::grpc::internal::RpcMethod rpcmethod_gc_regions_; + const ::grpc::internal::RpcMethod rpcmethod_gc_table_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -210,6 +260,10 @@ class ProcedureService final { virtual ::grpc::Status migrate(::grpc::ServerContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response); // Query all submitted procedures details virtual ::grpc::Status details(::grpc::ServerContext* context, const ::greptime::v1::meta::ProcedureDetailRequest* request, ::greptime::v1::meta::ProcedureDetailResponse* response); + // Manually trigger GC for a specific list of regions + virtual ::grpc::Status gc_regions(::grpc::ServerContext* context, const ::greptime::v1::meta::GcRegionsRequest* request, ::greptime::v1::meta::GcRegionsResponse* response); + // Manually trigger GC for a table (all its regions) + virtual ::grpc::Status gc_table(::grpc::ServerContext* context, const ::greptime::v1::meta::GcTableRequest* request, ::greptime::v1::meta::GcTableResponse* response); }; template class WithAsyncMethod_query : public BaseClass { @@ -311,7 +365,47 @@ class ProcedureService final { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_query > > > > AsyncService; + template + class WithAsyncMethod_gc_regions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_gc_regions() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_gc_regions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status gc_regions(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::GcRegionsRequest* /*request*/, ::greptime::v1::meta::GcRegionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestgc_regions(::grpc::ServerContext* context, ::greptime::v1::meta::GcRegionsRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::GcRegionsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_gc_table : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_gc_table() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_gc_table() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status gc_table(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::GcTableRequest* /*request*/, ::greptime::v1::meta::GcTableResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestgc_table(::grpc::ServerContext* context, ::greptime::v1::meta::GcTableRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::GcTableResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_query > > > > > > AsyncService; template class WithCallbackMethod_query : public BaseClass { private: @@ -447,7 +541,61 @@ class ProcedureService final { virtual ::grpc::ServerUnaryReactor* details( ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::ProcedureDetailRequest* /*request*/, ::greptime::v1::meta::ProcedureDetailResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_query > > > > CallbackService; + template + class WithCallbackMethod_gc_regions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_gc_regions() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::GcRegionsRequest, ::greptime::v1::meta::GcRegionsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::greptime::v1::meta::GcRegionsRequest* request, ::greptime::v1::meta::GcRegionsResponse* response) { return this->gc_regions(context, request, response); }));} + void SetMessageAllocatorFor_gc_regions( + ::grpc::MessageAllocator< ::greptime::v1::meta::GcRegionsRequest, ::greptime::v1::meta::GcRegionsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::GcRegionsRequest, ::greptime::v1::meta::GcRegionsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_gc_regions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status gc_regions(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::GcRegionsRequest* /*request*/, ::greptime::v1::meta::GcRegionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* gc_regions( + ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::GcRegionsRequest* /*request*/, ::greptime::v1::meta::GcRegionsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_gc_table : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_gc_table() { + ::grpc::Service::MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::GcTableRequest, ::greptime::v1::meta::GcTableResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::greptime::v1::meta::GcTableRequest* request, ::greptime::v1::meta::GcTableResponse* response) { return this->gc_table(context, request, response); }));} + void SetMessageAllocatorFor_gc_table( + ::grpc::MessageAllocator< ::greptime::v1::meta::GcTableRequest, ::greptime::v1::meta::GcTableResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::GcTableRequest, ::greptime::v1::meta::GcTableResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_gc_table() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status gc_table(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::GcTableRequest* /*request*/, ::greptime::v1::meta::GcTableResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* gc_table( + ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::GcTableRequest* /*request*/, ::greptime::v1::meta::GcTableResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_query > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_query : public BaseClass { @@ -535,6 +683,40 @@ class ProcedureService final { } }; template + class WithGenericMethod_gc_regions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_gc_regions() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_gc_regions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status gc_regions(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::GcRegionsRequest* /*request*/, ::greptime::v1::meta::GcRegionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_gc_table : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_gc_table() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_gc_table() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status gc_table(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::GcTableRequest* /*request*/, ::greptime::v1::meta::GcTableResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_query : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -635,6 +817,46 @@ class ProcedureService final { } }; template + class WithRawMethod_gc_regions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_gc_regions() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_gc_regions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status gc_regions(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::GcRegionsRequest* /*request*/, ::greptime::v1::meta::GcRegionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestgc_regions(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_gc_table : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_gc_table() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_gc_table() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status gc_table(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::GcTableRequest* /*request*/, ::greptime::v1::meta::GcTableResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestgc_table(::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(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawCallbackMethod_query : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -745,6 +967,50 @@ class ProcedureService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_gc_regions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_gc_regions() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->gc_regions(context, request, response); })); + } + ~WithRawCallbackMethod_gc_regions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status gc_regions(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::GcRegionsRequest* /*request*/, ::greptime::v1::meta::GcRegionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* gc_regions( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_gc_table : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_gc_table() { + ::grpc::Service::MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->gc_table(context, request, response); })); + } + ~WithRawCallbackMethod_gc_table() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status gc_table(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::GcTableRequest* /*request*/, ::greptime::v1::meta::GcTableResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* gc_table( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithStreamedUnaryMethod_query : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -879,9 +1145,63 @@ class ProcedureService final { // replace default version of method with streamed unary virtual ::grpc::Status Streameddetails(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::ProcedureDetailRequest,::greptime::v1::meta::ProcedureDetailResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_query > > > > StreamedUnaryService; + template + class WithStreamedUnaryMethod_gc_regions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_gc_regions() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::greptime::v1::meta::GcRegionsRequest, ::greptime::v1::meta::GcRegionsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::greptime::v1::meta::GcRegionsRequest, ::greptime::v1::meta::GcRegionsResponse>* streamer) { + return this->Streamedgc_regions(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_gc_regions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status gc_regions(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::GcRegionsRequest* /*request*/, ::greptime::v1::meta::GcRegionsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status Streamedgc_regions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::GcRegionsRequest,::greptime::v1::meta::GcRegionsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_gc_table : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_gc_table() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< + ::greptime::v1::meta::GcTableRequest, ::greptime::v1::meta::GcTableResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::greptime::v1::meta::GcTableRequest, ::greptime::v1::meta::GcTableResponse>* streamer) { + return this->Streamedgc_table(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_gc_table() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status gc_table(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::GcTableRequest* /*request*/, ::greptime::v1::meta::GcTableResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status Streamedgc_table(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::GcTableRequest,::greptime::v1::meta::GcTableResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_query > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_query > > > > StreamedService; + typedef WithStreamedUnaryMethod_query > > > > > > StreamedService; }; } // namespace meta diff --git a/c++/greptime/v1/meta/procedure.pb.cc b/c++/greptime/v1/meta/procedure.pb.cc index 303b6fd..5b5ae03 100644 --- a/c++/greptime/v1/meta/procedure.pb.cc +++ b/c++/greptime/v1/meta/procedure.pb.cc @@ -174,10 +174,90 @@ struct ReconcileResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReconcileResponseDefaultTypeInternal _ReconcileResponse_default_instance_; +PROTOBUF_CONSTEXPR GcRegionsRequest::GcRegionsRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.region_ids_)*/{} + , /*decltype(_impl_._region_ids_cached_byte_size_)*/{0} + , /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_.full_file_listing_)*/false + , /*decltype(_impl_.timeout_secs_)*/0u + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GcRegionsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GcRegionsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GcRegionsRequestDefaultTypeInternal() {} + union { + GcRegionsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GcRegionsRequestDefaultTypeInternal _GcRegionsRequest_default_instance_; +PROTOBUF_CONSTEXPR GcStats::GcStats( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.need_retry_regions_)*/{} + , /*decltype(_impl_._need_retry_regions_cached_byte_size_)*/{0} + , /*decltype(_impl_.processed_regions_)*/uint64_t{0u} + , /*decltype(_impl_.deleted_files_)*/uint64_t{0u} + , /*decltype(_impl_.deleted_indexes_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GcStatsDefaultTypeInternal { + PROTOBUF_CONSTEXPR GcStatsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GcStatsDefaultTypeInternal() {} + union { + GcStats _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GcStatsDefaultTypeInternal _GcStats_default_instance_; +PROTOBUF_CONSTEXPR GcRegionsResponse::GcRegionsResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_.stats_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GcRegionsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GcRegionsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GcRegionsResponseDefaultTypeInternal() {} + union { + GcRegionsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GcRegionsResponseDefaultTypeInternal _GcRegionsResponse_default_instance_; +PROTOBUF_CONSTEXPR GcTableRequest::GcTableRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_.full_file_listing_)*/false + , /*decltype(_impl_.timeout_secs_)*/0u + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GcTableRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GcTableRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GcTableRequestDefaultTypeInternal() {} + union { + GcTableRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GcTableRequestDefaultTypeInternal _GcTableRequest_default_instance_; +PROTOBUF_CONSTEXPR GcTableResponse::GcTableResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_.stats_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct GcTableResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GcTableResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GcTableResponseDefaultTypeInternal() {} + union { + GcTableResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GcTableResponseDefaultTypeInternal _GcTableResponse_default_instance_; } // namespace meta } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[10]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[15]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fprocedure_2eproto[2]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fprocedure_2eproto = nullptr; @@ -275,6 +355,54 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto::offsets[] P ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ReconcileResponse, _impl_.header_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ReconcileResponse, _impl_.pid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcRegionsRequest, _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::GcRegionsRequest, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcRegionsRequest, _impl_.region_ids_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcRegionsRequest, _impl_.full_file_listing_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcRegionsRequest, _impl_.timeout_secs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcStats, _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::GcStats, _impl_.processed_regions_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcStats, _impl_.need_retry_regions_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcStats, _impl_.deleted_files_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcStats, _impl_.deleted_indexes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcRegionsResponse, _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::GcRegionsResponse, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcRegionsResponse, _impl_.stats_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcTableRequest, _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::GcTableRequest, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcTableRequest, _impl_.catalog_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcTableRequest, _impl_.schema_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcTableRequest, _impl_.table_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcTableRequest, _impl_.full_file_listing_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcTableRequest, _impl_.timeout_secs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcTableResponse, _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::GcTableResponse, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GcTableResponse, _impl_.stats_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::meta::ProcedureMeta)}, @@ -287,6 +415,11 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 65, -1, -1, sizeof(::greptime::v1::meta::ReconcileCatalog)}, { 74, -1, -1, sizeof(::greptime::v1::meta::ReconcileRequest)}, { 85, -1, -1, sizeof(::greptime::v1::meta::ReconcileResponse)}, + { 93, -1, -1, sizeof(::greptime::v1::meta::GcRegionsRequest)}, + { 103, -1, -1, sizeof(::greptime::v1::meta::GcStats)}, + { 113, -1, -1, sizeof(::greptime::v1::meta::GcRegionsResponse)}, + { 121, -1, -1, sizeof(::greptime::v1::meta::GcTableRequest)}, + { 133, -1, -1, sizeof(::greptime::v1::meta::GcTableResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -300,6 +433,11 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::meta::_ReconcileCatalog_default_instance_._instance, &::greptime::v1::meta::_ReconcileRequest_default_instance_._instance, &::greptime::v1::meta::_ReconcileResponse_default_instance_._instance, + &::greptime::v1::meta::_GcRegionsRequest_default_instance_._instance, + &::greptime::v1::meta::_GcStats_default_instance_._instance, + &::greptime::v1::meta::_GcRegionsResponse_default_instance_._instance, + &::greptime::v1::meta::_GcTableRequest_default_instance_._instance, + &::greptime::v1::meta::_GcTableResponse_default_instance_._instance, }; const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -343,25 +481,46 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto[] "econcileCatalogH\000B\010\n\006target\"q\n\021Reconcile" "Response\0220\n\006header\030\001 \001(\0132 .greptime.v1.m" "eta.ResponseHeader\022*\n\003pid\030\002 \001(\0132\035.grepti" - "me.v1.meta.ProcedureId*v\n\017ProcedureStatu" - "s\022\013\n\007Running\020\000\022\010\n\004Done\020\001\022\014\n\010Retrying\020\002\022\n" - "\n\006Failed\020\003\022\023\n\017PrepareRollback\020\004\022\017\n\013Rolli" - "ngBack\020\005\022\014\n\010Poisoned\020\006*E\n\017ResolveStrateg" - "y\022\r\n\tUseLatest\020\000\022\016\n\nUseMetasrv\020\001\022\023\n\017Abor" - "tOnConflict\020\0022\314\003\n\020ProcedureService\022Z\n\005qu" - "ery\022\'.greptime.v1.meta.QueryProcedureReq" - "uest\032(.greptime.v1.meta.ProcedureStateRe" - "sponse\022J\n\003ddl\022 .greptime.v1.meta.DdlTask" - "Request\032!.greptime.v1.meta.DdlTaskRespon" - "se\022T\n\treconcile\022\".greptime.v1.meta.Recon" - "cileRequest\032#.greptime.v1.meta.Reconcile" - "Response\022Z\n\007migrate\022&.greptime.v1.meta.M" - "igrateRegionRequest\032\'.greptime.v1.meta.M" - "igrateRegionResponse\022^\n\007details\022(.grepti" - "me.v1.meta.ProcedureDetailRequest\032).grep" - "time.v1.meta.ProcedureDetailResponseB_impl_.header_; +} +void GcRegionsRequest::clear_header() { + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; +} +GcRegionsRequest::GcRegionsRequest(::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.GcRegionsRequest) +} +GcRegionsRequest::GcRegionsRequest(const GcRegionsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GcRegionsRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.region_ids_){from._impl_.region_ids_} + , /*decltype(_impl_._region_ids_cached_byte_size_)*/{0} + , decltype(_impl_.header_){nullptr} + , decltype(_impl_.full_file_listing_){} + , decltype(_impl_.timeout_secs_){} + , /*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_); + } + ::memcpy(&_impl_.full_file_listing_, &from._impl_.full_file_listing_, + static_cast(reinterpret_cast(&_impl_.timeout_secs_) - + reinterpret_cast(&_impl_.full_file_listing_)) + sizeof(_impl_.timeout_secs_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.GcRegionsRequest) +} + +inline void GcRegionsRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.region_ids_){arena} + , /*decltype(_impl_._region_ids_cached_byte_size_)*/{0} + , decltype(_impl_.header_){nullptr} + , decltype(_impl_.full_file_listing_){false} + , decltype(_impl_.timeout_secs_){0u} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GcRegionsRequest::~GcRegionsRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.GcRegionsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GcRegionsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.region_ids_.~RepeatedField(); + if (this != internal_default_instance()) delete _impl_.header_; +} + +void GcRegionsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GcRegionsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.GcRegionsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.region_ids_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; + ::memset(&_impl_.full_file_listing_, 0, static_cast( + reinterpret_cast(&_impl_.timeout_secs_) - + reinterpret_cast(&_impl_.full_file_listing_)) + sizeof(_impl_.timeout_secs_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GcRegionsRequest::_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(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_header(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated uint64 region_ids = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_internal_mutable_region_ids(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 16) { + _internal_add_region_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool full_file_listing = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.full_file_listing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 timeout_secs = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.timeout_secs_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* GcRegionsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.GcRegionsRequest) + 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); + } + + // repeated uint64 region_ids = 2; + { + int byte_size = _impl_._region_ids_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteUInt64Packed( + 2, _internal_region_ids(), byte_size, target); + } + } + + // bool full_file_listing = 3; + if (this->_internal_full_file_listing() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_full_file_listing(), target); + } + + // uint32 timeout_secs = 4; + if (this->_internal_timeout_secs() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_timeout_secs(), 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.GcRegionsRequest) + return target; +} + +size_t GcRegionsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.GcRegionsRequest) + 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 uint64 region_ids = 2; + { + size_t data_size = ::_pbi::WireFormatLite:: + UInt64Size(this->_impl_.region_ids_); + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._region_ids_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // .greptime.v1.meta.RequestHeader header = 1; + if (this->_internal_has_header()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.header_); + } + + // bool full_file_listing = 3; + if (this->_internal_full_file_listing() != 0) { + total_size += 1 + 1; + } + + // uint32 timeout_secs = 4; + if (this->_internal_timeout_secs() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timeout_secs()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GcRegionsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GcRegionsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GcRegionsRequest::GetClassData() const { return &_class_data_; } + + +void GcRegionsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.GcRegionsRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.region_ids_.MergeFrom(from._impl_.region_ids_); + if (from._internal_has_header()) { + _this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom( + from._internal_header()); + } + if (from._internal_full_file_listing() != 0) { + _this->_internal_set_full_file_listing(from._internal_full_file_listing()); + } + if (from._internal_timeout_secs() != 0) { + _this->_internal_set_timeout_secs(from._internal_timeout_secs()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GcRegionsRequest::CopyFrom(const GcRegionsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.GcRegionsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GcRegionsRequest::IsInitialized() const { + return true; +} + +void GcRegionsRequest::InternalSwap(GcRegionsRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.region_ids_.InternalSwap(&other->_impl_.region_ids_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GcRegionsRequest, _impl_.timeout_secs_) + + sizeof(GcRegionsRequest::_impl_.timeout_secs_) + - PROTOBUF_FIELD_OFFSET(GcRegionsRequest, _impl_.header_)>( + reinterpret_cast(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GcRegionsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[10]); +} + +// =================================================================== + +class GcStats::_Internal { + public: +}; + +GcStats::GcStats(::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.GcStats) +} +GcStats::GcStats(const GcStats& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GcStats* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.need_retry_regions_){from._impl_.need_retry_regions_} + , /*decltype(_impl_._need_retry_regions_cached_byte_size_)*/{0} + , decltype(_impl_.processed_regions_){} + , decltype(_impl_.deleted_files_){} + , decltype(_impl_.deleted_indexes_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.processed_regions_, &from._impl_.processed_regions_, + static_cast(reinterpret_cast(&_impl_.deleted_indexes_) - + reinterpret_cast(&_impl_.processed_regions_)) + sizeof(_impl_.deleted_indexes_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.GcStats) +} + +inline void GcStats::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.need_retry_regions_){arena} + , /*decltype(_impl_._need_retry_regions_cached_byte_size_)*/{0} + , decltype(_impl_.processed_regions_){uint64_t{0u}} + , decltype(_impl_.deleted_files_){uint64_t{0u}} + , decltype(_impl_.deleted_indexes_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GcStats::~GcStats() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.GcStats) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GcStats::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.need_retry_regions_.~RepeatedField(); +} + +void GcStats::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GcStats::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.GcStats) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.need_retry_regions_.Clear(); + ::memset(&_impl_.processed_regions_, 0, static_cast( + reinterpret_cast(&_impl_.deleted_indexes_) - + reinterpret_cast(&_impl_.processed_regions_)) + sizeof(_impl_.deleted_indexes_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GcStats::_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) { + // uint64 processed_regions = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.processed_regions_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated uint64 need_retry_regions = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_internal_mutable_need_retry_regions(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 16) { + _internal_add_need_retry_regions(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 deleted_files = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.deleted_files_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 deleted_indexes = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.deleted_indexes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* GcStats::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.GcStats) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 processed_regions = 1; + if (this->_internal_processed_regions() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_processed_regions(), target); + } + + // repeated uint64 need_retry_regions = 2; + { + int byte_size = _impl_._need_retry_regions_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteUInt64Packed( + 2, _internal_need_retry_regions(), byte_size, target); + } + } + + // uint64 deleted_files = 3; + if (this->_internal_deleted_files() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_deleted_files(), target); + } + + // uint64 deleted_indexes = 4; + if (this->_internal_deleted_indexes() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_deleted_indexes(), 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.GcStats) + return target; +} + +size_t GcStats::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.GcStats) + 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 uint64 need_retry_regions = 2; + { + size_t data_size = ::_pbi::WireFormatLite:: + UInt64Size(this->_impl_.need_retry_regions_); + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._need_retry_regions_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // uint64 processed_regions = 1; + if (this->_internal_processed_regions() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_processed_regions()); + } + + // uint64 deleted_files = 3; + if (this->_internal_deleted_files() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_deleted_files()); + } + + // uint64 deleted_indexes = 4; + if (this->_internal_deleted_indexes() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_deleted_indexes()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GcStats::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GcStats::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GcStats::GetClassData() const { return &_class_data_; } + + +void GcStats::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.GcStats) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.need_retry_regions_.MergeFrom(from._impl_.need_retry_regions_); + if (from._internal_processed_regions() != 0) { + _this->_internal_set_processed_regions(from._internal_processed_regions()); + } + if (from._internal_deleted_files() != 0) { + _this->_internal_set_deleted_files(from._internal_deleted_files()); + } + if (from._internal_deleted_indexes() != 0) { + _this->_internal_set_deleted_indexes(from._internal_deleted_indexes()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GcStats::CopyFrom(const GcStats& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.GcStats) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GcStats::IsInitialized() const { + return true; +} + +void GcStats::InternalSwap(GcStats* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.need_retry_regions_.InternalSwap(&other->_impl_.need_retry_regions_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GcStats, _impl_.deleted_indexes_) + + sizeof(GcStats::_impl_.deleted_indexes_) + - PROTOBUF_FIELD_OFFSET(GcStats, _impl_.processed_regions_)>( + reinterpret_cast(&_impl_.processed_regions_), + reinterpret_cast(&other->_impl_.processed_regions_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GcStats::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[11]); +} + +// =================================================================== + +class GcRegionsResponse::_Internal { + public: + static const ::greptime::v1::meta::ResponseHeader& header(const GcRegionsResponse* msg); + static const ::greptime::v1::meta::GcStats& stats(const GcRegionsResponse* msg); +}; + +const ::greptime::v1::meta::ResponseHeader& +GcRegionsResponse::_Internal::header(const GcRegionsResponse* msg) { + return *msg->_impl_.header_; +} +const ::greptime::v1::meta::GcStats& +GcRegionsResponse::_Internal::stats(const GcRegionsResponse* msg) { + return *msg->_impl_.stats_; +} +void GcRegionsResponse::clear_header() { + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; +} +GcRegionsResponse::GcRegionsResponse(::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.GcRegionsResponse) +} +GcRegionsResponse::GcRegionsResponse(const GcRegionsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GcRegionsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.stats_){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::ResponseHeader(*from._impl_.header_); + } + if (from._internal_has_stats()) { + _this->_impl_.stats_ = new ::greptime::v1::meta::GcStats(*from._impl_.stats_); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.GcRegionsResponse) +} + +inline void GcRegionsResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.stats_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GcRegionsResponse::~GcRegionsResponse() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.GcRegionsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GcRegionsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.header_; + if (this != internal_default_instance()) delete _impl_.stats_; +} + +void GcRegionsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GcRegionsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.GcRegionsResponse) + 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_.stats_ != nullptr) { + delete _impl_.stats_; + } + _impl_.stats_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GcRegionsResponse::_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.ResponseHeader header = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_header(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.meta.GcStats stats = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_stats(), 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* GcRegionsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.GcRegionsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.meta.ResponseHeader 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.GcStats stats = 2; + if (this->_internal_has_stats()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::stats(this), + _Internal::stats(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.GcRegionsResponse) + return target; +} + +size_t GcRegionsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.GcRegionsResponse) + 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.ResponseHeader header = 1; + if (this->_internal_has_header()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.header_); + } + + // .greptime.v1.meta.GcStats stats = 2; + if (this->_internal_has_stats()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.stats_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GcRegionsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GcRegionsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GcRegionsResponse::GetClassData() const { return &_class_data_; } + + +void GcRegionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.GcRegionsResponse) + 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::ResponseHeader::MergeFrom( + from._internal_header()); + } + if (from._internal_has_stats()) { + _this->_internal_mutable_stats()->::greptime::v1::meta::GcStats::MergeFrom( + from._internal_stats()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GcRegionsResponse::CopyFrom(const GcRegionsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.GcRegionsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GcRegionsResponse::IsInitialized() const { + return true; +} + +void GcRegionsResponse::InternalSwap(GcRegionsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GcRegionsResponse, _impl_.stats_) + + sizeof(GcRegionsResponse::_impl_.stats_) + - PROTOBUF_FIELD_OFFSET(GcRegionsResponse, _impl_.header_)>( + reinterpret_cast(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GcRegionsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[12]); +} + +// =================================================================== + +class GcTableRequest::_Internal { + public: + static const ::greptime::v1::meta::RequestHeader& header(const GcTableRequest* msg); +}; + +const ::greptime::v1::meta::RequestHeader& +GcTableRequest::_Internal::header(const GcTableRequest* msg) { + return *msg->_impl_.header_; +} +void GcTableRequest::clear_header() { + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; +} +GcTableRequest::GcTableRequest(::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.GcTableRequest) +} +GcTableRequest::GcTableRequest(const GcTableRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GcTableRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.table_name_){} + , decltype(_impl_.header_){nullptr} + , decltype(_impl_.full_file_listing_){} + , decltype(_impl_.timeout_secs_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_catalog_name().empty()) { + _this->_impl_.catalog_name_.Set(from._internal_catalog_name(), + _this->GetArenaForAllocation()); + } + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_schema_name().empty()) { + _this->_impl_.schema_name_.Set(from._internal_schema_name(), + _this->GetArenaForAllocation()); + } + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_table_name().empty()) { + _this->_impl_.table_name_.Set(from._internal_table_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_header()) { + _this->_impl_.header_ = new ::greptime::v1::meta::RequestHeader(*from._impl_.header_); + } + ::memcpy(&_impl_.full_file_listing_, &from._impl_.full_file_listing_, + static_cast(reinterpret_cast(&_impl_.timeout_secs_) - + reinterpret_cast(&_impl_.full_file_listing_)) + sizeof(_impl_.timeout_secs_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.GcTableRequest) +} + +inline void GcTableRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.table_name_){} + , decltype(_impl_.header_){nullptr} + , decltype(_impl_.full_file_listing_){false} + , decltype(_impl_.timeout_secs_){0u} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +GcTableRequest::~GcTableRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.GcTableRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GcTableRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.catalog_name_.Destroy(); + _impl_.schema_name_.Destroy(); + _impl_.table_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.header_; +} + +void GcTableRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GcTableRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.GcTableRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.catalog_name_.ClearToEmpty(); + _impl_.schema_name_.ClearToEmpty(); + _impl_.table_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; + ::memset(&_impl_.full_file_listing_, 0, static_cast( + reinterpret_cast(&_impl_.timeout_secs_) - + reinterpret_cast(&_impl_.full_file_listing_)) + sizeof(_impl_.timeout_secs_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GcTableRequest::_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(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_header(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string catalog_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_catalog_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.GcTableRequest.catalog_name")); + } else + goto handle_unusual; + continue; + // string schema_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_schema_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.GcTableRequest.schema_name")); + } else + goto handle_unusual; + continue; + // string table_name = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_table_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.GcTableRequest.table_name")); + } else + goto handle_unusual; + continue; + // bool full_file_listing = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.full_file_listing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 timeout_secs = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.timeout_secs_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* GcTableRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.GcTableRequest) + 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); + } + + // string catalog_name = 2; + if (!this->_internal_catalog_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_catalog_name().data(), static_cast(this->_internal_catalog_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.meta.GcTableRequest.catalog_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_catalog_name(), target); + } + + // string schema_name = 3; + if (!this->_internal_schema_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_schema_name().data(), static_cast(this->_internal_schema_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.meta.GcTableRequest.schema_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_schema_name(), target); + } + + // string table_name = 4; + if (!this->_internal_table_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table_name().data(), static_cast(this->_internal_table_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.meta.GcTableRequest.table_name"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_table_name(), target); + } + + // bool full_file_listing = 5; + if (this->_internal_full_file_listing() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_full_file_listing(), target); + } + + // uint32 timeout_secs = 6; + if (this->_internal_timeout_secs() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_timeout_secs(), 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.GcTableRequest) + return target; +} + +size_t GcTableRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.GcTableRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string catalog_name = 2; + if (!this->_internal_catalog_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_catalog_name()); + } + + // string schema_name = 3; + if (!this->_internal_schema_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_schema_name()); + } + + // string table_name = 4; + if (!this->_internal_table_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table_name()); + } + + // .greptime.v1.meta.RequestHeader header = 1; + if (this->_internal_has_header()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.header_); + } + + // bool full_file_listing = 5; + if (this->_internal_full_file_listing() != 0) { + total_size += 1 + 1; + } + + // uint32 timeout_secs = 6; + if (this->_internal_timeout_secs() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timeout_secs()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GcTableRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GcTableRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GcTableRequest::GetClassData() const { return &_class_data_; } + + +void GcTableRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.GcTableRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_catalog_name().empty()) { + _this->_internal_set_catalog_name(from._internal_catalog_name()); + } + if (!from._internal_schema_name().empty()) { + _this->_internal_set_schema_name(from._internal_schema_name()); + } + if (!from._internal_table_name().empty()) { + _this->_internal_set_table_name(from._internal_table_name()); + } + if (from._internal_has_header()) { + _this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom( + from._internal_header()); + } + if (from._internal_full_file_listing() != 0) { + _this->_internal_set_full_file_listing(from._internal_full_file_listing()); + } + if (from._internal_timeout_secs() != 0) { + _this->_internal_set_timeout_secs(from._internal_timeout_secs()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GcTableRequest::CopyFrom(const GcTableRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.GcTableRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GcTableRequest::IsInitialized() const { + return true; +} + +void GcTableRequest::InternalSwap(GcTableRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.catalog_name_, lhs_arena, + &other->_impl_.catalog_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.schema_name_, lhs_arena, + &other->_impl_.schema_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.table_name_, lhs_arena, + &other->_impl_.table_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GcTableRequest, _impl_.timeout_secs_) + + sizeof(GcTableRequest::_impl_.timeout_secs_) + - PROTOBUF_FIELD_OFFSET(GcTableRequest, _impl_.header_)>( + reinterpret_cast(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GcTableRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[13]); +} + +// =================================================================== + +class GcTableResponse::_Internal { + public: + static const ::greptime::v1::meta::ResponseHeader& header(const GcTableResponse* msg); + static const ::greptime::v1::meta::GcStats& stats(const GcTableResponse* msg); +}; + +const ::greptime::v1::meta::ResponseHeader& +GcTableResponse::_Internal::header(const GcTableResponse* msg) { + return *msg->_impl_.header_; +} +const ::greptime::v1::meta::GcStats& +GcTableResponse::_Internal::stats(const GcTableResponse* msg) { + return *msg->_impl_.stats_; +} +void GcTableResponse::clear_header() { + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; +} +GcTableResponse::GcTableResponse(::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.GcTableResponse) +} +GcTableResponse::GcTableResponse(const GcTableResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + GcTableResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.stats_){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::ResponseHeader(*from._impl_.header_); + } + if (from._internal_has_stats()) { + _this->_impl_.stats_ = new ::greptime::v1::meta::GcStats(*from._impl_.stats_); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.GcTableResponse) +} + +inline void GcTableResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.stats_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +GcTableResponse::~GcTableResponse() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.GcTableResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GcTableResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.header_; + if (this != internal_default_instance()) delete _impl_.stats_; +} + +void GcTableResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void GcTableResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.GcTableResponse) + 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_.stats_ != nullptr) { + delete _impl_.stats_; + } + _impl_.stats_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GcTableResponse::_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.ResponseHeader header = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_header(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.meta.GcStats stats = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_stats(), 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* GcTableResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.GcTableResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.meta.ResponseHeader 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.GcStats stats = 2; + if (this->_internal_has_stats()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::stats(this), + _Internal::stats(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.GcTableResponse) + return target; +} + +size_t GcTableResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.GcTableResponse) + 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.ResponseHeader header = 1; + if (this->_internal_has_header()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.header_); + } + + // .greptime.v1.meta.GcStats stats = 2; + if (this->_internal_has_stats()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.stats_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GcTableResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + GcTableResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GcTableResponse::GetClassData() const { return &_class_data_; } + + +void GcTableResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.GcTableResponse) + 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::ResponseHeader::MergeFrom( + from._internal_header()); + } + if (from._internal_has_stats()) { + _this->_internal_mutable_stats()->::greptime::v1::meta::GcStats::MergeFrom( + from._internal_stats()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GcTableResponse::CopyFrom(const GcTableResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.GcTableResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GcTableResponse::IsInitialized() const { + return true; +} + +void GcTableResponse::InternalSwap(GcTableResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GcTableResponse, _impl_.stats_) + + sizeof(GcTableResponse::_impl_.stats_) + - PROTOBUF_FIELD_OFFSET(GcTableResponse, _impl_.header_)>( + reinterpret_cast(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GcTableResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[14]); +} + // @@protoc_insertion_point(namespace_scope) } // namespace meta } // namespace v1 @@ -3437,6 +5073,26 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::ReconcileResponse* Arena::CreateMaybeMessage< ::greptime::v1::meta::ReconcileResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::ReconcileResponse >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::GcRegionsRequest* +Arena::CreateMaybeMessage< ::greptime::v1::meta::GcRegionsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::GcRegionsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::GcStats* +Arena::CreateMaybeMessage< ::greptime::v1::meta::GcStats >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::GcStats >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::GcRegionsResponse* +Arena::CreateMaybeMessage< ::greptime::v1::meta::GcRegionsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::GcRegionsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::GcTableRequest* +Arena::CreateMaybeMessage< ::greptime::v1::meta::GcTableRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::GcTableRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::GcTableResponse* +Arena::CreateMaybeMessage< ::greptime::v1::meta::GcTableResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::GcTableResponse >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/c++/greptime/v1/meta/procedure.pb.h b/c++/greptime/v1/meta/procedure.pb.h index d6d2d80..08cd9c5 100644 --- a/c++/greptime/v1/meta/procedure.pb.h +++ b/c++/greptime/v1/meta/procedure.pb.h @@ -51,6 +51,21 @@ extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table namespace greptime { namespace v1 { namespace meta { +class GcRegionsRequest; +struct GcRegionsRequestDefaultTypeInternal; +extern GcRegionsRequestDefaultTypeInternal _GcRegionsRequest_default_instance_; +class GcRegionsResponse; +struct GcRegionsResponseDefaultTypeInternal; +extern GcRegionsResponseDefaultTypeInternal _GcRegionsResponse_default_instance_; +class GcStats; +struct GcStatsDefaultTypeInternal; +extern GcStatsDefaultTypeInternal _GcStats_default_instance_; +class GcTableRequest; +struct GcTableRequestDefaultTypeInternal; +extern GcTableRequestDefaultTypeInternal _GcTableRequest_default_instance_; +class GcTableResponse; +struct GcTableResponseDefaultTypeInternal; +extern GcTableResponseDefaultTypeInternal _GcTableResponse_default_instance_; class ProcedureDetailRequest; struct ProcedureDetailRequestDefaultTypeInternal; extern ProcedureDetailRequestDefaultTypeInternal _ProcedureDetailRequest_default_instance_; @@ -85,6 +100,11 @@ extern ReconcileTableDefaultTypeInternal _ReconcileTable_default_instance_; } // namespace v1 } // namespace greptime PROTOBUF_NAMESPACE_OPEN +template<> ::greptime::v1::meta::GcRegionsRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::GcRegionsRequest>(Arena*); +template<> ::greptime::v1::meta::GcRegionsResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::GcRegionsResponse>(Arena*); +template<> ::greptime::v1::meta::GcStats* Arena::CreateMaybeMessage<::greptime::v1::meta::GcStats>(Arena*); +template<> ::greptime::v1::meta::GcTableRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::GcTableRequest>(Arena*); +template<> ::greptime::v1::meta::GcTableResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::GcTableResponse>(Arena*); template<> ::greptime::v1::meta::ProcedureDetailRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::ProcedureDetailRequest>(Arena*); template<> ::greptime::v1::meta::ProcedureDetailResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::ProcedureDetailResponse>(Arena*); template<> ::greptime::v1::meta::ProcedureMeta* Arena::CreateMaybeMessage<::greptime::v1::meta::ProcedureMeta>(Arena*); @@ -2076,6 +2096,986 @@ class ReconcileResponse final : union { Impl_ _impl_; }; friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto; }; +// ------------------------------------------------------------------- + +class GcRegionsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.GcRegionsRequest) */ { + public: + inline GcRegionsRequest() : GcRegionsRequest(nullptr) {} + ~GcRegionsRequest() override; + explicit PROTOBUF_CONSTEXPR GcRegionsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GcRegionsRequest(const GcRegionsRequest& from); + GcRegionsRequest(GcRegionsRequest&& from) noexcept + : GcRegionsRequest() { + *this = ::std::move(from); + } + + inline GcRegionsRequest& operator=(const GcRegionsRequest& from) { + CopyFrom(from); + return *this; + } + inline GcRegionsRequest& operator=(GcRegionsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GcRegionsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GcRegionsRequest* internal_default_instance() { + return reinterpret_cast( + &_GcRegionsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(GcRegionsRequest& a, GcRegionsRequest& b) { + a.Swap(&b); + } + inline void Swap(GcRegionsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GcRegionsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GcRegionsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GcRegionsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GcRegionsRequest& from) { + GcRegionsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GcRegionsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.GcRegionsRequest"; + } + protected: + explicit GcRegionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kRegionIdsFieldNumber = 2, + kHeaderFieldNumber = 1, + kFullFileListingFieldNumber = 3, + kTimeoutSecsFieldNumber = 4, + }; + // repeated uint64 region_ids = 2; + int region_ids_size() const; + private: + int _internal_region_ids_size() const; + public: + void clear_region_ids(); + private: + uint64_t _internal_region_ids(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& + _internal_region_ids() const; + void _internal_add_region_ids(uint64_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* + _internal_mutable_region_ids(); + public: + uint64_t region_ids(int index) const; + void set_region_ids(int index, uint64_t value); + void add_region_ids(uint64_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& + region_ids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* + mutable_region_ids(); + + // .greptime.v1.meta.RequestHeader header = 1; + bool has_header() const; + private: + bool _internal_has_header() const; + public: + void clear_header(); + const ::greptime::v1::meta::RequestHeader& header() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::RequestHeader* release_header(); + ::greptime::v1::meta::RequestHeader* mutable_header(); + void set_allocated_header(::greptime::v1::meta::RequestHeader* header); + private: + const ::greptime::v1::meta::RequestHeader& _internal_header() const; + ::greptime::v1::meta::RequestHeader* _internal_mutable_header(); + public: + void unsafe_arena_set_allocated_header( + ::greptime::v1::meta::RequestHeader* header); + ::greptime::v1::meta::RequestHeader* unsafe_arena_release_header(); + + // bool full_file_listing = 3; + void clear_full_file_listing(); + bool full_file_listing() const; + void set_full_file_listing(bool value); + private: + bool _internal_full_file_listing() const; + void _internal_set_full_file_listing(bool value); + public: + + // uint32 timeout_secs = 4; + void clear_timeout_secs(); + uint32_t timeout_secs() const; + void set_timeout_secs(uint32_t value); + private: + uint32_t _internal_timeout_secs() const; + void _internal_set_timeout_secs(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.GcRegionsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > region_ids_; + mutable std::atomic _region_ids_cached_byte_size_; + ::greptime::v1::meta::RequestHeader* header_; + bool full_file_listing_; + uint32_t timeout_secs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto; +}; +// ------------------------------------------------------------------- + +class GcStats final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.GcStats) */ { + public: + inline GcStats() : GcStats(nullptr) {} + ~GcStats() override; + explicit PROTOBUF_CONSTEXPR GcStats(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GcStats(const GcStats& from); + GcStats(GcStats&& from) noexcept + : GcStats() { + *this = ::std::move(from); + } + + inline GcStats& operator=(const GcStats& from) { + CopyFrom(from); + return *this; + } + inline GcStats& operator=(GcStats&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GcStats& default_instance() { + return *internal_default_instance(); + } + static inline const GcStats* internal_default_instance() { + return reinterpret_cast( + &_GcStats_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(GcStats& a, GcStats& b) { + a.Swap(&b); + } + inline void Swap(GcStats* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GcStats* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GcStats* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GcStats& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GcStats& from) { + GcStats::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GcStats* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.GcStats"; + } + protected: + explicit GcStats(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNeedRetryRegionsFieldNumber = 2, + kProcessedRegionsFieldNumber = 1, + kDeletedFilesFieldNumber = 3, + kDeletedIndexesFieldNumber = 4, + }; + // repeated uint64 need_retry_regions = 2; + int need_retry_regions_size() const; + private: + int _internal_need_retry_regions_size() const; + public: + void clear_need_retry_regions(); + private: + uint64_t _internal_need_retry_regions(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& + _internal_need_retry_regions() const; + void _internal_add_need_retry_regions(uint64_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* + _internal_mutable_need_retry_regions(); + public: + uint64_t need_retry_regions(int index) const; + void set_need_retry_regions(int index, uint64_t value); + void add_need_retry_regions(uint64_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& + need_retry_regions() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* + mutable_need_retry_regions(); + + // uint64 processed_regions = 1; + void clear_processed_regions(); + uint64_t processed_regions() const; + void set_processed_regions(uint64_t value); + private: + uint64_t _internal_processed_regions() const; + void _internal_set_processed_regions(uint64_t value); + public: + + // uint64 deleted_files = 3; + void clear_deleted_files(); + uint64_t deleted_files() const; + void set_deleted_files(uint64_t value); + private: + uint64_t _internal_deleted_files() const; + void _internal_set_deleted_files(uint64_t value); + public: + + // uint64 deleted_indexes = 4; + void clear_deleted_indexes(); + uint64_t deleted_indexes() const; + void set_deleted_indexes(uint64_t value); + private: + uint64_t _internal_deleted_indexes() const; + void _internal_set_deleted_indexes(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.GcStats) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > need_retry_regions_; + mutable std::atomic _need_retry_regions_cached_byte_size_; + uint64_t processed_regions_; + uint64_t deleted_files_; + uint64_t deleted_indexes_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto; +}; +// ------------------------------------------------------------------- + +class GcRegionsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.GcRegionsResponse) */ { + public: + inline GcRegionsResponse() : GcRegionsResponse(nullptr) {} + ~GcRegionsResponse() override; + explicit PROTOBUF_CONSTEXPR GcRegionsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GcRegionsResponse(const GcRegionsResponse& from); + GcRegionsResponse(GcRegionsResponse&& from) noexcept + : GcRegionsResponse() { + *this = ::std::move(from); + } + + inline GcRegionsResponse& operator=(const GcRegionsResponse& from) { + CopyFrom(from); + return *this; + } + inline GcRegionsResponse& operator=(GcRegionsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GcRegionsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GcRegionsResponse* internal_default_instance() { + return reinterpret_cast( + &_GcRegionsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(GcRegionsResponse& a, GcRegionsResponse& b) { + a.Swap(&b); + } + inline void Swap(GcRegionsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GcRegionsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GcRegionsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GcRegionsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GcRegionsResponse& from) { + GcRegionsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GcRegionsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.GcRegionsResponse"; + } + protected: + explicit GcRegionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHeaderFieldNumber = 1, + kStatsFieldNumber = 2, + }; + // .greptime.v1.meta.ResponseHeader header = 1; + bool has_header() const; + private: + bool _internal_has_header() const; + public: + void clear_header(); + const ::greptime::v1::meta::ResponseHeader& header() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::ResponseHeader* release_header(); + ::greptime::v1::meta::ResponseHeader* mutable_header(); + void set_allocated_header(::greptime::v1::meta::ResponseHeader* header); + private: + const ::greptime::v1::meta::ResponseHeader& _internal_header() const; + ::greptime::v1::meta::ResponseHeader* _internal_mutable_header(); + public: + void unsafe_arena_set_allocated_header( + ::greptime::v1::meta::ResponseHeader* header); + ::greptime::v1::meta::ResponseHeader* unsafe_arena_release_header(); + + // .greptime.v1.meta.GcStats stats = 2; + bool has_stats() const; + private: + bool _internal_has_stats() const; + public: + void clear_stats(); + const ::greptime::v1::meta::GcStats& stats() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::GcStats* release_stats(); + ::greptime::v1::meta::GcStats* mutable_stats(); + void set_allocated_stats(::greptime::v1::meta::GcStats* stats); + private: + const ::greptime::v1::meta::GcStats& _internal_stats() const; + ::greptime::v1::meta::GcStats* _internal_mutable_stats(); + public: + void unsafe_arena_set_allocated_stats( + ::greptime::v1::meta::GcStats* stats); + ::greptime::v1::meta::GcStats* unsafe_arena_release_stats(); + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.GcRegionsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::greptime::v1::meta::ResponseHeader* header_; + ::greptime::v1::meta::GcStats* stats_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto; +}; +// ------------------------------------------------------------------- + +class GcTableRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.GcTableRequest) */ { + public: + inline GcTableRequest() : GcTableRequest(nullptr) {} + ~GcTableRequest() override; + explicit PROTOBUF_CONSTEXPR GcTableRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GcTableRequest(const GcTableRequest& from); + GcTableRequest(GcTableRequest&& from) noexcept + : GcTableRequest() { + *this = ::std::move(from); + } + + inline GcTableRequest& operator=(const GcTableRequest& from) { + CopyFrom(from); + return *this; + } + inline GcTableRequest& operator=(GcTableRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GcTableRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GcTableRequest* internal_default_instance() { + return reinterpret_cast( + &_GcTableRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(GcTableRequest& a, GcTableRequest& b) { + a.Swap(&b); + } + inline void Swap(GcTableRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GcTableRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GcTableRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GcTableRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GcTableRequest& from) { + GcTableRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GcTableRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.GcTableRequest"; + } + protected: + explicit GcTableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCatalogNameFieldNumber = 2, + kSchemaNameFieldNumber = 3, + kTableNameFieldNumber = 4, + kHeaderFieldNumber = 1, + kFullFileListingFieldNumber = 5, + kTimeoutSecsFieldNumber = 6, + }; + // string catalog_name = 2; + void clear_catalog_name(); + const std::string& catalog_name() const; + template + void set_catalog_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_catalog_name(); + PROTOBUF_NODISCARD std::string* release_catalog_name(); + void set_allocated_catalog_name(std::string* catalog_name); + private: + const std::string& _internal_catalog_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog_name(const std::string& value); + std::string* _internal_mutable_catalog_name(); + public: + + // string schema_name = 3; + void clear_schema_name(); + const std::string& schema_name() const; + template + void set_schema_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_schema_name(); + PROTOBUF_NODISCARD std::string* release_schema_name(); + void set_allocated_schema_name(std::string* schema_name); + private: + const std::string& _internal_schema_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema_name(const std::string& value); + std::string* _internal_mutable_schema_name(); + public: + + // string table_name = 4; + void clear_table_name(); + const std::string& table_name() const; + template + void set_table_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_table_name(); + PROTOBUF_NODISCARD std::string* release_table_name(); + void set_allocated_table_name(std::string* table_name); + private: + const std::string& _internal_table_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_name(const std::string& value); + std::string* _internal_mutable_table_name(); + public: + + // .greptime.v1.meta.RequestHeader header = 1; + bool has_header() const; + private: + bool _internal_has_header() const; + public: + void clear_header(); + const ::greptime::v1::meta::RequestHeader& header() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::RequestHeader* release_header(); + ::greptime::v1::meta::RequestHeader* mutable_header(); + void set_allocated_header(::greptime::v1::meta::RequestHeader* header); + private: + const ::greptime::v1::meta::RequestHeader& _internal_header() const; + ::greptime::v1::meta::RequestHeader* _internal_mutable_header(); + public: + void unsafe_arena_set_allocated_header( + ::greptime::v1::meta::RequestHeader* header); + ::greptime::v1::meta::RequestHeader* unsafe_arena_release_header(); + + // bool full_file_listing = 5; + void clear_full_file_listing(); + bool full_file_listing() const; + void set_full_file_listing(bool value); + private: + bool _internal_full_file_listing() const; + void _internal_set_full_file_listing(bool value); + public: + + // uint32 timeout_secs = 6; + void clear_timeout_secs(); + uint32_t timeout_secs() const; + void set_timeout_secs(uint32_t value); + private: + uint32_t _internal_timeout_secs() const; + void _internal_set_timeout_secs(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.GcTableRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; + ::greptime::v1::meta::RequestHeader* header_; + bool full_file_listing_; + uint32_t timeout_secs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto; +}; +// ------------------------------------------------------------------- + +class GcTableResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.GcTableResponse) */ { + public: + inline GcTableResponse() : GcTableResponse(nullptr) {} + ~GcTableResponse() override; + explicit PROTOBUF_CONSTEXPR GcTableResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GcTableResponse(const GcTableResponse& from); + GcTableResponse(GcTableResponse&& from) noexcept + : GcTableResponse() { + *this = ::std::move(from); + } + + inline GcTableResponse& operator=(const GcTableResponse& from) { + CopyFrom(from); + return *this; + } + inline GcTableResponse& operator=(GcTableResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GcTableResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GcTableResponse* internal_default_instance() { + return reinterpret_cast( + &_GcTableResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(GcTableResponse& a, GcTableResponse& b) { + a.Swap(&b); + } + inline void Swap(GcTableResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GcTableResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GcTableResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GcTableResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const GcTableResponse& from) { + GcTableResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GcTableResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.GcTableResponse"; + } + protected: + explicit GcTableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHeaderFieldNumber = 1, + kStatsFieldNumber = 2, + }; + // .greptime.v1.meta.ResponseHeader header = 1; + bool has_header() const; + private: + bool _internal_has_header() const; + public: + void clear_header(); + const ::greptime::v1::meta::ResponseHeader& header() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::ResponseHeader* release_header(); + ::greptime::v1::meta::ResponseHeader* mutable_header(); + void set_allocated_header(::greptime::v1::meta::ResponseHeader* header); + private: + const ::greptime::v1::meta::ResponseHeader& _internal_header() const; + ::greptime::v1::meta::ResponseHeader* _internal_mutable_header(); + public: + void unsafe_arena_set_allocated_header( + ::greptime::v1::meta::ResponseHeader* header); + ::greptime::v1::meta::ResponseHeader* unsafe_arena_release_header(); + + // .greptime.v1.meta.GcStats stats = 2; + bool has_stats() const; + private: + bool _internal_has_stats() const; + public: + void clear_stats(); + const ::greptime::v1::meta::GcStats& stats() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::GcStats* release_stats(); + ::greptime::v1::meta::GcStats* mutable_stats(); + void set_allocated_stats(::greptime::v1::meta::GcStats* stats); + private: + const ::greptime::v1::meta::GcStats& _internal_stats() const; + ::greptime::v1::meta::GcStats* _internal_mutable_stats(); + public: + void unsafe_arena_set_allocated_stats( + ::greptime::v1::meta::GcStats* stats); + ::greptime::v1::meta::GcStats* unsafe_arena_release_stats(); + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.GcTableResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::greptime::v1::meta::ResponseHeader* header_; + ::greptime::v1::meta::GcStats* stats_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto; +}; // =================================================================== @@ -3864,6 +4864,930 @@ inline void ReconcileResponse::set_allocated_pid(::greptime::v1::meta::Procedure // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ReconcileResponse.pid) } +// ------------------------------------------------------------------- + +// GcRegionsRequest + +// .greptime.v1.meta.RequestHeader header = 1; +inline bool GcRegionsRequest::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool GcRegionsRequest::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::meta::RequestHeader& GcRegionsRequest::_internal_header() const { + const ::greptime::v1::meta::RequestHeader* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_RequestHeader_default_instance_); +} +inline const ::greptime::v1::meta::RequestHeader& GcRegionsRequest::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcRegionsRequest.header) + return _internal_header(); +} +inline void GcRegionsRequest::unsafe_arena_set_allocated_header( + ::greptime::v1::meta::RequestHeader* header) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + _impl_.header_ = header; + if (header) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.GcRegionsRequest.header) +} +inline ::greptime::v1::meta::RequestHeader* GcRegionsRequest::release_header() { + + ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::RequestHeader* GcRegionsRequest::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.GcRegionsRequest.header) + + ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::RequestHeader* GcRegionsRequest::_internal_mutable_header() { + + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(GetArenaForAllocation()); + _impl_.header_ = p; + } + return _impl_.header_; +} +inline ::greptime::v1::meta::RequestHeader* GcRegionsRequest::mutable_header() { + ::greptime::v1::meta::RequestHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.GcRegionsRequest.header) + return _msg; +} +inline void GcRegionsRequest::set_allocated_header(::greptime::v1::meta::RequestHeader* header) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + if (header) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)); + if (message_arena != submessage_arena) { + header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, header, submessage_arena); + } + + } else { + + } + _impl_.header_ = header; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.GcRegionsRequest.header) +} + +// repeated uint64 region_ids = 2; +inline int GcRegionsRequest::_internal_region_ids_size() const { + return _impl_.region_ids_.size(); +} +inline int GcRegionsRequest::region_ids_size() const { + return _internal_region_ids_size(); +} +inline void GcRegionsRequest::clear_region_ids() { + _impl_.region_ids_.Clear(); +} +inline uint64_t GcRegionsRequest::_internal_region_ids(int index) const { + return _impl_.region_ids_.Get(index); +} +inline uint64_t GcRegionsRequest::region_ids(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcRegionsRequest.region_ids) + return _internal_region_ids(index); +} +inline void GcRegionsRequest::set_region_ids(int index, uint64_t value) { + _impl_.region_ids_.Set(index, value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.GcRegionsRequest.region_ids) +} +inline void GcRegionsRequest::_internal_add_region_ids(uint64_t value) { + _impl_.region_ids_.Add(value); +} +inline void GcRegionsRequest::add_region_ids(uint64_t value) { + _internal_add_region_ids(value); + // @@protoc_insertion_point(field_add:greptime.v1.meta.GcRegionsRequest.region_ids) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& +GcRegionsRequest::_internal_region_ids() const { + return _impl_.region_ids_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& +GcRegionsRequest::region_ids() const { + // @@protoc_insertion_point(field_list:greptime.v1.meta.GcRegionsRequest.region_ids) + return _internal_region_ids(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* +GcRegionsRequest::_internal_mutable_region_ids() { + return &_impl_.region_ids_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* +GcRegionsRequest::mutable_region_ids() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.meta.GcRegionsRequest.region_ids) + return _internal_mutable_region_ids(); +} + +// bool full_file_listing = 3; +inline void GcRegionsRequest::clear_full_file_listing() { + _impl_.full_file_listing_ = false; +} +inline bool GcRegionsRequest::_internal_full_file_listing() const { + return _impl_.full_file_listing_; +} +inline bool GcRegionsRequest::full_file_listing() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcRegionsRequest.full_file_listing) + return _internal_full_file_listing(); +} +inline void GcRegionsRequest::_internal_set_full_file_listing(bool value) { + + _impl_.full_file_listing_ = value; +} +inline void GcRegionsRequest::set_full_file_listing(bool value) { + _internal_set_full_file_listing(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.GcRegionsRequest.full_file_listing) +} + +// uint32 timeout_secs = 4; +inline void GcRegionsRequest::clear_timeout_secs() { + _impl_.timeout_secs_ = 0u; +} +inline uint32_t GcRegionsRequest::_internal_timeout_secs() const { + return _impl_.timeout_secs_; +} +inline uint32_t GcRegionsRequest::timeout_secs() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcRegionsRequest.timeout_secs) + return _internal_timeout_secs(); +} +inline void GcRegionsRequest::_internal_set_timeout_secs(uint32_t value) { + + _impl_.timeout_secs_ = value; +} +inline void GcRegionsRequest::set_timeout_secs(uint32_t value) { + _internal_set_timeout_secs(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.GcRegionsRequest.timeout_secs) +} + +// ------------------------------------------------------------------- + +// GcStats + +// uint64 processed_regions = 1; +inline void GcStats::clear_processed_regions() { + _impl_.processed_regions_ = uint64_t{0u}; +} +inline uint64_t GcStats::_internal_processed_regions() const { + return _impl_.processed_regions_; +} +inline uint64_t GcStats::processed_regions() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcStats.processed_regions) + return _internal_processed_regions(); +} +inline void GcStats::_internal_set_processed_regions(uint64_t value) { + + _impl_.processed_regions_ = value; +} +inline void GcStats::set_processed_regions(uint64_t value) { + _internal_set_processed_regions(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.GcStats.processed_regions) +} + +// repeated uint64 need_retry_regions = 2; +inline int GcStats::_internal_need_retry_regions_size() const { + return _impl_.need_retry_regions_.size(); +} +inline int GcStats::need_retry_regions_size() const { + return _internal_need_retry_regions_size(); +} +inline void GcStats::clear_need_retry_regions() { + _impl_.need_retry_regions_.Clear(); +} +inline uint64_t GcStats::_internal_need_retry_regions(int index) const { + return _impl_.need_retry_regions_.Get(index); +} +inline uint64_t GcStats::need_retry_regions(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcStats.need_retry_regions) + return _internal_need_retry_regions(index); +} +inline void GcStats::set_need_retry_regions(int index, uint64_t value) { + _impl_.need_retry_regions_.Set(index, value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.GcStats.need_retry_regions) +} +inline void GcStats::_internal_add_need_retry_regions(uint64_t value) { + _impl_.need_retry_regions_.Add(value); +} +inline void GcStats::add_need_retry_regions(uint64_t value) { + _internal_add_need_retry_regions(value); + // @@protoc_insertion_point(field_add:greptime.v1.meta.GcStats.need_retry_regions) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& +GcStats::_internal_need_retry_regions() const { + return _impl_.need_retry_regions_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& +GcStats::need_retry_regions() const { + // @@protoc_insertion_point(field_list:greptime.v1.meta.GcStats.need_retry_regions) + return _internal_need_retry_regions(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* +GcStats::_internal_mutable_need_retry_regions() { + return &_impl_.need_retry_regions_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* +GcStats::mutable_need_retry_regions() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.meta.GcStats.need_retry_regions) + return _internal_mutable_need_retry_regions(); +} + +// uint64 deleted_files = 3; +inline void GcStats::clear_deleted_files() { + _impl_.deleted_files_ = uint64_t{0u}; +} +inline uint64_t GcStats::_internal_deleted_files() const { + return _impl_.deleted_files_; +} +inline uint64_t GcStats::deleted_files() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcStats.deleted_files) + return _internal_deleted_files(); +} +inline void GcStats::_internal_set_deleted_files(uint64_t value) { + + _impl_.deleted_files_ = value; +} +inline void GcStats::set_deleted_files(uint64_t value) { + _internal_set_deleted_files(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.GcStats.deleted_files) +} + +// uint64 deleted_indexes = 4; +inline void GcStats::clear_deleted_indexes() { + _impl_.deleted_indexes_ = uint64_t{0u}; +} +inline uint64_t GcStats::_internal_deleted_indexes() const { + return _impl_.deleted_indexes_; +} +inline uint64_t GcStats::deleted_indexes() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcStats.deleted_indexes) + return _internal_deleted_indexes(); +} +inline void GcStats::_internal_set_deleted_indexes(uint64_t value) { + + _impl_.deleted_indexes_ = value; +} +inline void GcStats::set_deleted_indexes(uint64_t value) { + _internal_set_deleted_indexes(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.GcStats.deleted_indexes) +} + +// ------------------------------------------------------------------- + +// GcRegionsResponse + +// .greptime.v1.meta.ResponseHeader header = 1; +inline bool GcRegionsResponse::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool GcRegionsResponse::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::meta::ResponseHeader& GcRegionsResponse::_internal_header() const { + const ::greptime::v1::meta::ResponseHeader* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_ResponseHeader_default_instance_); +} +inline const ::greptime::v1::meta::ResponseHeader& GcRegionsResponse::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcRegionsResponse.header) + return _internal_header(); +} +inline void GcRegionsResponse::unsafe_arena_set_allocated_header( + ::greptime::v1::meta::ResponseHeader* header) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + _impl_.header_ = header; + if (header) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.GcRegionsResponse.header) +} +inline ::greptime::v1::meta::ResponseHeader* GcRegionsResponse::release_header() { + + ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::ResponseHeader* GcRegionsResponse::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.GcRegionsResponse.header) + + ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::ResponseHeader* GcRegionsResponse::_internal_mutable_header() { + + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(GetArenaForAllocation()); + _impl_.header_ = p; + } + return _impl_.header_; +} +inline ::greptime::v1::meta::ResponseHeader* GcRegionsResponse::mutable_header() { + ::greptime::v1::meta::ResponseHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.GcRegionsResponse.header) + return _msg; +} +inline void GcRegionsResponse::set_allocated_header(::greptime::v1::meta::ResponseHeader* header) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + if (header) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)); + if (message_arena != submessage_arena) { + header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, header, submessage_arena); + } + + } else { + + } + _impl_.header_ = header; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.GcRegionsResponse.header) +} + +// .greptime.v1.meta.GcStats stats = 2; +inline bool GcRegionsResponse::_internal_has_stats() const { + return this != internal_default_instance() && _impl_.stats_ != nullptr; +} +inline bool GcRegionsResponse::has_stats() const { + return _internal_has_stats(); +} +inline void GcRegionsResponse::clear_stats() { + if (GetArenaForAllocation() == nullptr && _impl_.stats_ != nullptr) { + delete _impl_.stats_; + } + _impl_.stats_ = nullptr; +} +inline const ::greptime::v1::meta::GcStats& GcRegionsResponse::_internal_stats() const { + const ::greptime::v1::meta::GcStats* p = _impl_.stats_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_GcStats_default_instance_); +} +inline const ::greptime::v1::meta::GcStats& GcRegionsResponse::stats() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcRegionsResponse.stats) + return _internal_stats(); +} +inline void GcRegionsResponse::unsafe_arena_set_allocated_stats( + ::greptime::v1::meta::GcStats* stats) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.stats_); + } + _impl_.stats_ = stats; + if (stats) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.GcRegionsResponse.stats) +} +inline ::greptime::v1::meta::GcStats* GcRegionsResponse::release_stats() { + + ::greptime::v1::meta::GcStats* temp = _impl_.stats_; + _impl_.stats_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::GcStats* GcRegionsResponse::unsafe_arena_release_stats() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.GcRegionsResponse.stats) + + ::greptime::v1::meta::GcStats* temp = _impl_.stats_; + _impl_.stats_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::GcStats* GcRegionsResponse::_internal_mutable_stats() { + + if (_impl_.stats_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::GcStats>(GetArenaForAllocation()); + _impl_.stats_ = p; + } + return _impl_.stats_; +} +inline ::greptime::v1::meta::GcStats* GcRegionsResponse::mutable_stats() { + ::greptime::v1::meta::GcStats* _msg = _internal_mutable_stats(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.GcRegionsResponse.stats) + return _msg; +} +inline void GcRegionsResponse::set_allocated_stats(::greptime::v1::meta::GcStats* stats) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.stats_; + } + if (stats) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(stats); + if (message_arena != submessage_arena) { + stats = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, stats, submessage_arena); + } + + } else { + + } + _impl_.stats_ = stats; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.GcRegionsResponse.stats) +} + +// ------------------------------------------------------------------- + +// GcTableRequest + +// .greptime.v1.meta.RequestHeader header = 1; +inline bool GcTableRequest::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool GcTableRequest::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::meta::RequestHeader& GcTableRequest::_internal_header() const { + const ::greptime::v1::meta::RequestHeader* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_RequestHeader_default_instance_); +} +inline const ::greptime::v1::meta::RequestHeader& GcTableRequest::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcTableRequest.header) + return _internal_header(); +} +inline void GcTableRequest::unsafe_arena_set_allocated_header( + ::greptime::v1::meta::RequestHeader* header) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + _impl_.header_ = header; + if (header) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.GcTableRequest.header) +} +inline ::greptime::v1::meta::RequestHeader* GcTableRequest::release_header() { + + ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::RequestHeader* GcTableRequest::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.GcTableRequest.header) + + ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::RequestHeader* GcTableRequest::_internal_mutable_header() { + + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(GetArenaForAllocation()); + _impl_.header_ = p; + } + return _impl_.header_; +} +inline ::greptime::v1::meta::RequestHeader* GcTableRequest::mutable_header() { + ::greptime::v1::meta::RequestHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.GcTableRequest.header) + return _msg; +} +inline void GcTableRequest::set_allocated_header(::greptime::v1::meta::RequestHeader* header) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + if (header) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)); + if (message_arena != submessage_arena) { + header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, header, submessage_arena); + } + + } else { + + } + _impl_.header_ = header; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.GcTableRequest.header) +} + +// string catalog_name = 2; +inline void GcTableRequest::clear_catalog_name() { + _impl_.catalog_name_.ClearToEmpty(); +} +inline const std::string& GcTableRequest::catalog_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcTableRequest.catalog_name) + return _internal_catalog_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GcTableRequest::set_catalog_name(ArgT0&& arg0, ArgT... args) { + + _impl_.catalog_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.meta.GcTableRequest.catalog_name) +} +inline std::string* GcTableRequest::mutable_catalog_name() { + std::string* _s = _internal_mutable_catalog_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.GcTableRequest.catalog_name) + return _s; +} +inline const std::string& GcTableRequest::_internal_catalog_name() const { + return _impl_.catalog_name_.Get(); +} +inline void GcTableRequest::_internal_set_catalog_name(const std::string& value) { + + _impl_.catalog_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GcTableRequest::_internal_mutable_catalog_name() { + + return _impl_.catalog_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GcTableRequest::release_catalog_name() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.GcTableRequest.catalog_name) + return _impl_.catalog_name_.Release(); +} +inline void GcTableRequest::set_allocated_catalog_name(std::string* catalog_name) { + if (catalog_name != nullptr) { + + } else { + + } + _impl_.catalog_name_.SetAllocated(catalog_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.catalog_name_.IsDefault()) { + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.GcTableRequest.catalog_name) +} + +// string schema_name = 3; +inline void GcTableRequest::clear_schema_name() { + _impl_.schema_name_.ClearToEmpty(); +} +inline const std::string& GcTableRequest::schema_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcTableRequest.schema_name) + return _internal_schema_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GcTableRequest::set_schema_name(ArgT0&& arg0, ArgT... args) { + + _impl_.schema_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.meta.GcTableRequest.schema_name) +} +inline std::string* GcTableRequest::mutable_schema_name() { + std::string* _s = _internal_mutable_schema_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.GcTableRequest.schema_name) + return _s; +} +inline const std::string& GcTableRequest::_internal_schema_name() const { + return _impl_.schema_name_.Get(); +} +inline void GcTableRequest::_internal_set_schema_name(const std::string& value) { + + _impl_.schema_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GcTableRequest::_internal_mutable_schema_name() { + + return _impl_.schema_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GcTableRequest::release_schema_name() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.GcTableRequest.schema_name) + return _impl_.schema_name_.Release(); +} +inline void GcTableRequest::set_allocated_schema_name(std::string* schema_name) { + if (schema_name != nullptr) { + + } else { + + } + _impl_.schema_name_.SetAllocated(schema_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.schema_name_.IsDefault()) { + _impl_.schema_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.GcTableRequest.schema_name) +} + +// string table_name = 4; +inline void GcTableRequest::clear_table_name() { + _impl_.table_name_.ClearToEmpty(); +} +inline const std::string& GcTableRequest::table_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcTableRequest.table_name) + return _internal_table_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GcTableRequest::set_table_name(ArgT0&& arg0, ArgT... args) { + + _impl_.table_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.meta.GcTableRequest.table_name) +} +inline std::string* GcTableRequest::mutable_table_name() { + std::string* _s = _internal_mutable_table_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.GcTableRequest.table_name) + return _s; +} +inline const std::string& GcTableRequest::_internal_table_name() const { + return _impl_.table_name_.Get(); +} +inline void GcTableRequest::_internal_set_table_name(const std::string& value) { + + _impl_.table_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GcTableRequest::_internal_mutable_table_name() { + + return _impl_.table_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GcTableRequest::release_table_name() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.GcTableRequest.table_name) + return _impl_.table_name_.Release(); +} +inline void GcTableRequest::set_allocated_table_name(std::string* table_name) { + if (table_name != nullptr) { + + } else { + + } + _impl_.table_name_.SetAllocated(table_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.table_name_.IsDefault()) { + _impl_.table_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.GcTableRequest.table_name) +} + +// bool full_file_listing = 5; +inline void GcTableRequest::clear_full_file_listing() { + _impl_.full_file_listing_ = false; +} +inline bool GcTableRequest::_internal_full_file_listing() const { + return _impl_.full_file_listing_; +} +inline bool GcTableRequest::full_file_listing() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcTableRequest.full_file_listing) + return _internal_full_file_listing(); +} +inline void GcTableRequest::_internal_set_full_file_listing(bool value) { + + _impl_.full_file_listing_ = value; +} +inline void GcTableRequest::set_full_file_listing(bool value) { + _internal_set_full_file_listing(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.GcTableRequest.full_file_listing) +} + +// uint32 timeout_secs = 6; +inline void GcTableRequest::clear_timeout_secs() { + _impl_.timeout_secs_ = 0u; +} +inline uint32_t GcTableRequest::_internal_timeout_secs() const { + return _impl_.timeout_secs_; +} +inline uint32_t GcTableRequest::timeout_secs() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcTableRequest.timeout_secs) + return _internal_timeout_secs(); +} +inline void GcTableRequest::_internal_set_timeout_secs(uint32_t value) { + + _impl_.timeout_secs_ = value; +} +inline void GcTableRequest::set_timeout_secs(uint32_t value) { + _internal_set_timeout_secs(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.GcTableRequest.timeout_secs) +} + +// ------------------------------------------------------------------- + +// GcTableResponse + +// .greptime.v1.meta.ResponseHeader header = 1; +inline bool GcTableResponse::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool GcTableResponse::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::meta::ResponseHeader& GcTableResponse::_internal_header() const { + const ::greptime::v1::meta::ResponseHeader* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_ResponseHeader_default_instance_); +} +inline const ::greptime::v1::meta::ResponseHeader& GcTableResponse::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcTableResponse.header) + return _internal_header(); +} +inline void GcTableResponse::unsafe_arena_set_allocated_header( + ::greptime::v1::meta::ResponseHeader* header) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + _impl_.header_ = header; + if (header) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.GcTableResponse.header) +} +inline ::greptime::v1::meta::ResponseHeader* GcTableResponse::release_header() { + + ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::ResponseHeader* GcTableResponse::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.GcTableResponse.header) + + ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::ResponseHeader* GcTableResponse::_internal_mutable_header() { + + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(GetArenaForAllocation()); + _impl_.header_ = p; + } + return _impl_.header_; +} +inline ::greptime::v1::meta::ResponseHeader* GcTableResponse::mutable_header() { + ::greptime::v1::meta::ResponseHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.GcTableResponse.header) + return _msg; +} +inline void GcTableResponse::set_allocated_header(::greptime::v1::meta::ResponseHeader* header) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + if (header) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)); + if (message_arena != submessage_arena) { + header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, header, submessage_arena); + } + + } else { + + } + _impl_.header_ = header; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.GcTableResponse.header) +} + +// .greptime.v1.meta.GcStats stats = 2; +inline bool GcTableResponse::_internal_has_stats() const { + return this != internal_default_instance() && _impl_.stats_ != nullptr; +} +inline bool GcTableResponse::has_stats() const { + return _internal_has_stats(); +} +inline void GcTableResponse::clear_stats() { + if (GetArenaForAllocation() == nullptr && _impl_.stats_ != nullptr) { + delete _impl_.stats_; + } + _impl_.stats_ = nullptr; +} +inline const ::greptime::v1::meta::GcStats& GcTableResponse::_internal_stats() const { + const ::greptime::v1::meta::GcStats* p = _impl_.stats_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_GcStats_default_instance_); +} +inline const ::greptime::v1::meta::GcStats& GcTableResponse::stats() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.GcTableResponse.stats) + return _internal_stats(); +} +inline void GcTableResponse::unsafe_arena_set_allocated_stats( + ::greptime::v1::meta::GcStats* stats) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.stats_); + } + _impl_.stats_ = stats; + if (stats) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.GcTableResponse.stats) +} +inline ::greptime::v1::meta::GcStats* GcTableResponse::release_stats() { + + ::greptime::v1::meta::GcStats* temp = _impl_.stats_; + _impl_.stats_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::GcStats* GcTableResponse::unsafe_arena_release_stats() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.GcTableResponse.stats) + + ::greptime::v1::meta::GcStats* temp = _impl_.stats_; + _impl_.stats_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::GcStats* GcTableResponse::_internal_mutable_stats() { + + if (_impl_.stats_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::GcStats>(GetArenaForAllocation()); + _impl_.stats_ = p; + } + return _impl_.stats_; +} +inline ::greptime::v1::meta::GcStats* GcTableResponse::mutable_stats() { + ::greptime::v1::meta::GcStats* _msg = _internal_mutable_stats(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.GcTableResponse.stats) + return _msg; +} +inline void GcTableResponse::set_allocated_stats(::greptime::v1::meta::GcStats* stats) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.stats_; + } + if (stats) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(stats); + if (message_arena != submessage_arena) { + stats = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, stats, submessage_arena); + } + + } else { + + } + _impl_.stats_ = stats; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.GcTableResponse.stats) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -3885,6 +5809,16 @@ inline void ReconcileResponse::set_allocated_pid(::greptime::v1::meta::Procedure // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/meta/procedure.pb.go b/go/greptime/v1/meta/procedure.pb.go index 0b242d1..85fb1a7 100644 --- a/go/greptime/v1/meta/procedure.pb.go +++ b/go/greptime/v1/meta/procedure.pb.go @@ -812,6 +812,353 @@ func (x *ReconcileResponse) GetPid() *ProcedureId { return nil } +type GcRegionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + RegionIds []uint64 `protobuf:"varint,2,rep,packed,name=region_ids,json=regionIds,proto3" json:"region_ids,omitempty"` + // Whether to perform a full file listing on datanodes when GC'ing the regions. + FullFileListing bool `protobuf:"varint,3,opt,name=full_file_listing,json=fullFileListing,proto3" json:"full_file_listing,omitempty"` + // Timeout in seconds for the entire GC procedure. + TimeoutSecs uint32 `protobuf:"varint,4,opt,name=timeout_secs,json=timeoutSecs,proto3" json:"timeout_secs,omitempty"` +} + +func (x *GcRegionsRequest) Reset() { + *x = GcRegionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GcRegionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GcRegionsRequest) ProtoMessage() {} + +func (x *GcRegionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GcRegionsRequest.ProtoReflect.Descriptor instead. +func (*GcRegionsRequest) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{10} +} + +func (x *GcRegionsRequest) GetHeader() *RequestHeader { + if x != nil { + return x.Header + } + return nil +} + +func (x *GcRegionsRequest) GetRegionIds() []uint64 { + if x != nil { + return x.RegionIds + } + return nil +} + +func (x *GcRegionsRequest) GetFullFileListing() bool { + if x != nil { + return x.FullFileListing + } + return false +} + +func (x *GcRegionsRequest) GetTimeoutSecs() uint32 { + if x != nil { + return x.TimeoutSecs + } + return 0 +} + +type GcStats struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Number of regions requested for GC (accepted by the server side). + ProcessedRegions uint64 `protobuf:"varint,1,opt,name=processed_regions,json=processedRegions,proto3" json:"processed_regions,omitempty"` + // Regions that need retry in the next GC round. + NeedRetryRegions []uint64 `protobuf:"varint,2,rep,packed,name=need_retry_regions,json=needRetryRegions,proto3" json:"need_retry_regions,omitempty"` + // Number of deleted SST files. + DeletedFiles uint64 `protobuf:"varint,3,opt,name=deleted_files,json=deletedFiles,proto3" json:"deleted_files,omitempty"` + // Number of deleted index files. + DeletedIndexes uint64 `protobuf:"varint,4,opt,name=deleted_indexes,json=deletedIndexes,proto3" json:"deleted_indexes,omitempty"` +} + +func (x *GcStats) Reset() { + *x = GcStats{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GcStats) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GcStats) ProtoMessage() {} + +func (x *GcStats) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GcStats.ProtoReflect.Descriptor instead. +func (*GcStats) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{11} +} + +func (x *GcStats) GetProcessedRegions() uint64 { + if x != nil { + return x.ProcessedRegions + } + return 0 +} + +func (x *GcStats) GetNeedRetryRegions() []uint64 { + if x != nil { + return x.NeedRetryRegions + } + return nil +} + +func (x *GcStats) GetDeletedFiles() uint64 { + if x != nil { + return x.DeletedFiles + } + return 0 +} + +func (x *GcStats) GetDeletedIndexes() uint64 { + if x != nil { + return x.DeletedIndexes + } + return 0 +} + +type GcRegionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Stats *GcStats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` +} + +func (x *GcRegionsResponse) Reset() { + *x = GcRegionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GcRegionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GcRegionsResponse) ProtoMessage() {} + +func (x *GcRegionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GcRegionsResponse.ProtoReflect.Descriptor instead. +func (*GcRegionsResponse) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{12} +} + +func (x *GcRegionsResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header + } + return nil +} + +func (x *GcRegionsResponse) GetStats() *GcStats { + if x != nil { + return x.Stats + } + return nil +} + +type GcTableRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + CatalogName string `protobuf:"bytes,2,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"` + SchemaName string `protobuf:"bytes,3,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` + TableName string `protobuf:"bytes,4,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + // Whether to perform a full file listing on datanodes when GC'ing the regions. + FullFileListing bool `protobuf:"varint,5,opt,name=full_file_listing,json=fullFileListing,proto3" json:"full_file_listing,omitempty"` + // Timeout in seconds for the entire GC procedure. + TimeoutSecs uint32 `protobuf:"varint,6,opt,name=timeout_secs,json=timeoutSecs,proto3" json:"timeout_secs,omitempty"` +} + +func (x *GcTableRequest) Reset() { + *x = GcTableRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GcTableRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GcTableRequest) ProtoMessage() {} + +func (x *GcTableRequest) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GcTableRequest.ProtoReflect.Descriptor instead. +func (*GcTableRequest) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{13} +} + +func (x *GcTableRequest) GetHeader() *RequestHeader { + if x != nil { + return x.Header + } + return nil +} + +func (x *GcTableRequest) GetCatalogName() string { + if x != nil { + return x.CatalogName + } + return "" +} + +func (x *GcTableRequest) GetSchemaName() string { + if x != nil { + return x.SchemaName + } + return "" +} + +func (x *GcTableRequest) GetTableName() string { + if x != nil { + return x.TableName + } + return "" +} + +func (x *GcTableRequest) GetFullFileListing() bool { + if x != nil { + return x.FullFileListing + } + return false +} + +func (x *GcTableRequest) GetTimeoutSecs() uint32 { + if x != nil { + return x.TimeoutSecs + } + return 0 +} + +type GcTableResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Stats *GcStats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` +} + +func (x *GcTableResponse) Reset() { + *x = GcTableResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GcTableResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GcTableResponse) ProtoMessage() {} + +func (x *GcTableResponse) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GcTableResponse.ProtoReflect.Descriptor instead. +func (*GcTableResponse) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{14} +} + +func (x *GcTableResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header + } + return nil +} + +func (x *GcTableResponse) GetStats() *GcStats { + if x != nil { + return x.Stats + } + return nil +} + var File_greptime_v1_meta_procedure_proto protoreflect.FileDescriptor var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{ @@ -938,52 +1285,118 @@ var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{ 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, - 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70, 0x69, 0x64, 0x2a, 0x76, 0x0a, 0x0f, 0x50, 0x72, - 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, - 0x07, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x6f, - 0x6e, 0x65, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x74, 0x72, 0x79, 0x69, 0x6e, 0x67, - 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x03, 0x12, 0x13, - 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, - 0x6b, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x6f, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x42, 0x61, - 0x63, 0x6b, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x6f, 0x69, 0x73, 0x6f, 0x6e, 0x65, 0x64, - 0x10, 0x06, 0x2a, 0x45, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x74, 0x72, - 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x4c, 0x61, 0x74, 0x65, - 0x73, 0x74, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x73, - 0x72, 0x76, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x4f, 0x6e, 0x43, - 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x10, 0x02, 0x32, 0xcc, 0x03, 0x0a, 0x10, 0x50, 0x72, - 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5a, - 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x28, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, - 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x03, 0x64, 0x64, - 0x6c, 0x12, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x63, - 0x69, 0x6c, 0x65, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6e, - 0x63, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x07, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, - 0x74, 0x61, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, + 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70, 0x69, 0x64, 0x22, 0xb9, 0x01, 0x0a, 0x10, 0x47, + 0x63, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 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, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x66, 0x75, 0x6c, 0x6c, 0x5f, + 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0f, 0x66, 0x75, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, + 0x69, 0x6e, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, + 0x65, 0x63, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x6f, + 0x75, 0x74, 0x53, 0x65, 0x63, 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x07, 0x47, 0x63, 0x53, 0x74, 0x61, + 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x2c, 0x0a, 0x12, 0x6e, 0x65, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x04, 0x52, 0x10, 0x6e, 0x65, 0x65, + 0x64, 0x52, 0x65, 0x74, 0x72, 0x79, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x0a, + 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x46, 0x69, 0x6c, + 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x64, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x22, 0x7e, 0x0a, 0x11, 0x47, + 0x63, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 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, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x63, 0x53, + 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0xfb, 0x01, 0x0a, 0x0e, + 0x47, 0x63, 0x54, 0x61, 0x62, 0x6c, 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, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, + 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x66, 0x75, + 0x6c, 0x6c, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x66, 0x75, 0x6c, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x4c, + 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, + 0x74, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x74, 0x69, + 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x73, 0x22, 0x7c, 0x0a, 0x0f, 0x47, 0x63, 0x54, + 0x61, 0x62, 0x6c, 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, 0x6d, 0x65, 0x74, 0x61, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x63, 0x53, 0x74, 0x61, 0x74, 0x73, + 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2a, 0x76, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, + 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x75, + 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x6f, 0x6e, 0x65, 0x10, + 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x74, 0x72, 0x79, 0x69, 0x6e, 0x67, 0x10, 0x02, 0x12, + 0x0a, 0x0a, 0x06, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x50, + 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x10, 0x04, + 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x6f, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x63, 0x6b, 0x10, + 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x6f, 0x69, 0x73, 0x6f, 0x6e, 0x65, 0x64, 0x10, 0x06, 0x2a, + 0x45, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x67, 0x79, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x10, + 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x10, + 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x4f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, + 0x6c, 0x69, 0x63, 0x74, 0x10, 0x02, 0x32, 0xf4, 0x04, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x63, 0x65, + 0x64, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5a, 0x0a, 0x05, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x12, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, + 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, - 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 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, + 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x03, 0x64, 0x64, 0x6c, 0x12, 0x20, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, + 0x61, 0x2e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x65, + 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x07, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, + 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x12, 0x28, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, + 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0a, 0x67, 0x63, 0x5f, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x63, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x63, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x08, + 0x67, 0x63, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x63, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x63, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 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 ( @@ -999,7 +1412,7 @@ func file_greptime_v1_meta_procedure_proto_rawDescGZIP() []byte { } var file_greptime_v1_meta_procedure_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_greptime_v1_meta_procedure_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_greptime_v1_meta_procedure_proto_msgTypes = make([]protoimpl.MessageInfo, 15) var file_greptime_v1_meta_procedure_proto_goTypes = []interface{}{ (ProcedureStatus)(0), // 0: greptime.v1.meta.ProcedureStatus (ResolveStrategy)(0), // 1: greptime.v1.meta.ResolveStrategy @@ -1013,48 +1426,63 @@ var file_greptime_v1_meta_procedure_proto_goTypes = []interface{}{ (*ReconcileCatalog)(nil), // 9: greptime.v1.meta.ReconcileCatalog (*ReconcileRequest)(nil), // 10: greptime.v1.meta.ReconcileRequest (*ReconcileResponse)(nil), // 11: greptime.v1.meta.ReconcileResponse - (*ProcedureId)(nil), // 12: greptime.v1.meta.ProcedureId - (*RequestHeader)(nil), // 13: greptime.v1.meta.RequestHeader - (*ResponseHeader)(nil), // 14: greptime.v1.meta.ResponseHeader - (*DdlTaskRequest)(nil), // 15: greptime.v1.meta.DdlTaskRequest - (*MigrateRegionRequest)(nil), // 16: greptime.v1.meta.MigrateRegionRequest - (*DdlTaskResponse)(nil), // 17: greptime.v1.meta.DdlTaskResponse - (*MigrateRegionResponse)(nil), // 18: greptime.v1.meta.MigrateRegionResponse + (*GcRegionsRequest)(nil), // 12: greptime.v1.meta.GcRegionsRequest + (*GcStats)(nil), // 13: greptime.v1.meta.GcStats + (*GcRegionsResponse)(nil), // 14: greptime.v1.meta.GcRegionsResponse + (*GcTableRequest)(nil), // 15: greptime.v1.meta.GcTableRequest + (*GcTableResponse)(nil), // 16: greptime.v1.meta.GcTableResponse + (*ProcedureId)(nil), // 17: greptime.v1.meta.ProcedureId + (*RequestHeader)(nil), // 18: greptime.v1.meta.RequestHeader + (*ResponseHeader)(nil), // 19: greptime.v1.meta.ResponseHeader + (*DdlTaskRequest)(nil), // 20: greptime.v1.meta.DdlTaskRequest + (*MigrateRegionRequest)(nil), // 21: greptime.v1.meta.MigrateRegionRequest + (*DdlTaskResponse)(nil), // 22: greptime.v1.meta.DdlTaskResponse + (*MigrateRegionResponse)(nil), // 23: greptime.v1.meta.MigrateRegionResponse } var file_greptime_v1_meta_procedure_proto_depIdxs = []int32{ - 12, // 0: greptime.v1.meta.ProcedureMeta.id:type_name -> greptime.v1.meta.ProcedureId + 17, // 0: greptime.v1.meta.ProcedureMeta.id:type_name -> greptime.v1.meta.ProcedureId 0, // 1: greptime.v1.meta.ProcedureMeta.status:type_name -> greptime.v1.meta.ProcedureStatus - 13, // 2: greptime.v1.meta.QueryProcedureRequest.header:type_name -> greptime.v1.meta.RequestHeader - 12, // 3: greptime.v1.meta.QueryProcedureRequest.pid:type_name -> greptime.v1.meta.ProcedureId - 14, // 4: greptime.v1.meta.ProcedureStateResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 18, // 2: greptime.v1.meta.QueryProcedureRequest.header:type_name -> greptime.v1.meta.RequestHeader + 17, // 3: greptime.v1.meta.QueryProcedureRequest.pid:type_name -> greptime.v1.meta.ProcedureId + 19, // 4: greptime.v1.meta.ProcedureStateResponse.header:type_name -> greptime.v1.meta.ResponseHeader 0, // 5: greptime.v1.meta.ProcedureStateResponse.status:type_name -> greptime.v1.meta.ProcedureStatus - 13, // 6: greptime.v1.meta.ProcedureDetailRequest.header:type_name -> greptime.v1.meta.RequestHeader - 14, // 7: greptime.v1.meta.ProcedureDetailResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 18, // 6: greptime.v1.meta.ProcedureDetailRequest.header:type_name -> greptime.v1.meta.RequestHeader + 19, // 7: greptime.v1.meta.ProcedureDetailResponse.header:type_name -> greptime.v1.meta.ResponseHeader 2, // 8: greptime.v1.meta.ProcedureDetailResponse.procedures:type_name -> greptime.v1.meta.ProcedureMeta 1, // 9: greptime.v1.meta.ReconcileTable.resolve_strategy:type_name -> greptime.v1.meta.ResolveStrategy 1, // 10: greptime.v1.meta.ReconcileDatabase.resolve_strategy:type_name -> greptime.v1.meta.ResolveStrategy 1, // 11: greptime.v1.meta.ReconcileCatalog.resolve_strategy:type_name -> greptime.v1.meta.ResolveStrategy - 13, // 12: greptime.v1.meta.ReconcileRequest.header:type_name -> greptime.v1.meta.RequestHeader + 18, // 12: greptime.v1.meta.ReconcileRequest.header:type_name -> greptime.v1.meta.RequestHeader 7, // 13: greptime.v1.meta.ReconcileRequest.reconcile_table:type_name -> greptime.v1.meta.ReconcileTable 8, // 14: greptime.v1.meta.ReconcileRequest.reconcile_database:type_name -> greptime.v1.meta.ReconcileDatabase 9, // 15: greptime.v1.meta.ReconcileRequest.reconcile_catalog:type_name -> greptime.v1.meta.ReconcileCatalog - 14, // 16: greptime.v1.meta.ReconcileResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 12, // 17: greptime.v1.meta.ReconcileResponse.pid:type_name -> greptime.v1.meta.ProcedureId - 3, // 18: greptime.v1.meta.ProcedureService.query:input_type -> greptime.v1.meta.QueryProcedureRequest - 15, // 19: greptime.v1.meta.ProcedureService.ddl:input_type -> greptime.v1.meta.DdlTaskRequest - 10, // 20: greptime.v1.meta.ProcedureService.reconcile:input_type -> greptime.v1.meta.ReconcileRequest - 16, // 21: greptime.v1.meta.ProcedureService.migrate:input_type -> greptime.v1.meta.MigrateRegionRequest - 5, // 22: greptime.v1.meta.ProcedureService.details:input_type -> greptime.v1.meta.ProcedureDetailRequest - 4, // 23: greptime.v1.meta.ProcedureService.query:output_type -> greptime.v1.meta.ProcedureStateResponse - 17, // 24: greptime.v1.meta.ProcedureService.ddl:output_type -> greptime.v1.meta.DdlTaskResponse - 11, // 25: greptime.v1.meta.ProcedureService.reconcile:output_type -> greptime.v1.meta.ReconcileResponse - 18, // 26: greptime.v1.meta.ProcedureService.migrate:output_type -> greptime.v1.meta.MigrateRegionResponse - 6, // 27: greptime.v1.meta.ProcedureService.details:output_type -> greptime.v1.meta.ProcedureDetailResponse - 23, // [23:28] is the sub-list for method output_type - 18, // [18:23] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name + 19, // 16: greptime.v1.meta.ReconcileResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 17, // 17: greptime.v1.meta.ReconcileResponse.pid:type_name -> greptime.v1.meta.ProcedureId + 18, // 18: greptime.v1.meta.GcRegionsRequest.header:type_name -> greptime.v1.meta.RequestHeader + 19, // 19: greptime.v1.meta.GcRegionsResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 13, // 20: greptime.v1.meta.GcRegionsResponse.stats:type_name -> greptime.v1.meta.GcStats + 18, // 21: greptime.v1.meta.GcTableRequest.header:type_name -> greptime.v1.meta.RequestHeader + 19, // 22: greptime.v1.meta.GcTableResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 13, // 23: greptime.v1.meta.GcTableResponse.stats:type_name -> greptime.v1.meta.GcStats + 3, // 24: greptime.v1.meta.ProcedureService.query:input_type -> greptime.v1.meta.QueryProcedureRequest + 20, // 25: greptime.v1.meta.ProcedureService.ddl:input_type -> greptime.v1.meta.DdlTaskRequest + 10, // 26: greptime.v1.meta.ProcedureService.reconcile:input_type -> greptime.v1.meta.ReconcileRequest + 21, // 27: greptime.v1.meta.ProcedureService.migrate:input_type -> greptime.v1.meta.MigrateRegionRequest + 5, // 28: greptime.v1.meta.ProcedureService.details:input_type -> greptime.v1.meta.ProcedureDetailRequest + 12, // 29: greptime.v1.meta.ProcedureService.gc_regions:input_type -> greptime.v1.meta.GcRegionsRequest + 15, // 30: greptime.v1.meta.ProcedureService.gc_table:input_type -> greptime.v1.meta.GcTableRequest + 4, // 31: greptime.v1.meta.ProcedureService.query:output_type -> greptime.v1.meta.ProcedureStateResponse + 22, // 32: greptime.v1.meta.ProcedureService.ddl:output_type -> greptime.v1.meta.DdlTaskResponse + 11, // 33: greptime.v1.meta.ProcedureService.reconcile:output_type -> greptime.v1.meta.ReconcileResponse + 23, // 34: greptime.v1.meta.ProcedureService.migrate:output_type -> greptime.v1.meta.MigrateRegionResponse + 6, // 35: greptime.v1.meta.ProcedureService.details:output_type -> greptime.v1.meta.ProcedureDetailResponse + 14, // 36: greptime.v1.meta.ProcedureService.gc_regions:output_type -> greptime.v1.meta.GcRegionsResponse + 16, // 37: greptime.v1.meta.ProcedureService.gc_table:output_type -> greptime.v1.meta.GcTableResponse + 31, // [31:38] is the sub-list for method output_type + 24, // [24:31] is the sub-list for method input_type + 24, // [24:24] is the sub-list for extension type_name + 24, // [24:24] is the sub-list for extension extendee + 0, // [0:24] is the sub-list for field type_name } func init() { file_greptime_v1_meta_procedure_proto_init() } @@ -1186,6 +1614,66 @@ func file_greptime_v1_meta_procedure_proto_init() { return nil } } + file_greptime_v1_meta_procedure_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GcRegionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_meta_procedure_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GcStats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_meta_procedure_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GcRegionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_meta_procedure_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GcTableRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_meta_procedure_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GcTableResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_greptime_v1_meta_procedure_proto_msgTypes[8].OneofWrappers = []interface{}{ (*ReconcileRequest_ReconcileTable)(nil), @@ -1198,7 +1686,7 @@ func file_greptime_v1_meta_procedure_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_meta_procedure_proto_rawDesc, NumEnums: 2, - NumMessages: 10, + NumMessages: 15, NumExtensions: 0, NumServices: 1, }, diff --git a/go/greptime/v1/meta/procedure_grpc.pb.go b/go/greptime/v1/meta/procedure_grpc.pb.go index f5eee9b..9cd3de2 100644 --- a/go/greptime/v1/meta/procedure_grpc.pb.go +++ b/go/greptime/v1/meta/procedure_grpc.pb.go @@ -32,6 +32,10 @@ type ProcedureServiceClient interface { Migrate(ctx context.Context, in *MigrateRegionRequest, opts ...grpc.CallOption) (*MigrateRegionResponse, error) // Query all submitted procedures details Details(ctx context.Context, in *ProcedureDetailRequest, opts ...grpc.CallOption) (*ProcedureDetailResponse, error) + // Manually trigger GC for a specific list of regions + GcRegions(ctx context.Context, in *GcRegionsRequest, opts ...grpc.CallOption) (*GcRegionsResponse, error) + // Manually trigger GC for a table (all its regions) + GcTable(ctx context.Context, in *GcTableRequest, opts ...grpc.CallOption) (*GcTableResponse, error) } type procedureServiceClient struct { @@ -87,6 +91,24 @@ func (c *procedureServiceClient) Details(ctx context.Context, in *ProcedureDetai return out, nil } +func (c *procedureServiceClient) GcRegions(ctx context.Context, in *GcRegionsRequest, opts ...grpc.CallOption) (*GcRegionsResponse, error) { + out := new(GcRegionsResponse) + err := c.cc.Invoke(ctx, "/greptime.v1.meta.ProcedureService/gc_regions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *procedureServiceClient) GcTable(ctx context.Context, in *GcTableRequest, opts ...grpc.CallOption) (*GcTableResponse, error) { + out := new(GcTableResponse) + err := c.cc.Invoke(ctx, "/greptime.v1.meta.ProcedureService/gc_table", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // ProcedureServiceServer is the server API for ProcedureService service. // All implementations must embed UnimplementedProcedureServiceServer // for forward compatibility @@ -101,6 +123,10 @@ type ProcedureServiceServer interface { Migrate(context.Context, *MigrateRegionRequest) (*MigrateRegionResponse, error) // Query all submitted procedures details Details(context.Context, *ProcedureDetailRequest) (*ProcedureDetailResponse, error) + // Manually trigger GC for a specific list of regions + GcRegions(context.Context, *GcRegionsRequest) (*GcRegionsResponse, error) + // Manually trigger GC for a table (all its regions) + GcTable(context.Context, *GcTableRequest) (*GcTableResponse, error) mustEmbedUnimplementedProcedureServiceServer() } @@ -123,6 +149,12 @@ func (UnimplementedProcedureServiceServer) Migrate(context.Context, *MigrateRegi func (UnimplementedProcedureServiceServer) Details(context.Context, *ProcedureDetailRequest) (*ProcedureDetailResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Details not implemented") } +func (UnimplementedProcedureServiceServer) GcRegions(context.Context, *GcRegionsRequest) (*GcRegionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GcRegions not implemented") +} +func (UnimplementedProcedureServiceServer) GcTable(context.Context, *GcTableRequest) (*GcTableResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GcTable not implemented") +} func (UnimplementedProcedureServiceServer) mustEmbedUnimplementedProcedureServiceServer() {} // UnsafeProcedureServiceServer may be embedded to opt out of forward compatibility for this service. @@ -226,6 +258,42 @@ func _ProcedureService_Details_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _ProcedureService_GcRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GcRegionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProcedureServiceServer).GcRegions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/greptime.v1.meta.ProcedureService/gc_regions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProcedureServiceServer).GcRegions(ctx, req.(*GcRegionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProcedureService_GcTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GcTableRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProcedureServiceServer).GcTable(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/greptime.v1.meta.ProcedureService/gc_table", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProcedureServiceServer).GcTable(ctx, req.(*GcTableRequest)) + } + return interceptor(ctx, in, info, handler) +} + // ProcedureService_ServiceDesc is the grpc.ServiceDesc for ProcedureService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -253,6 +321,14 @@ var ProcedureService_ServiceDesc = grpc.ServiceDesc{ MethodName: "details", Handler: _ProcedureService_Details_Handler, }, + { + MethodName: "gc_regions", + Handler: _ProcedureService_GcRegions_Handler, + }, + { + MethodName: "gc_table", + Handler: _ProcedureService_GcTable_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "greptime/v1/meta/procedure.proto", diff --git a/java/src/main/java/greptime/v1/meta/Procedure.java b/java/src/main/java/greptime/v1/meta/Procedure.java index 2557295..4166959 100644 --- a/java/src/main/java/greptime/v1/meta/Procedure.java +++ b/java/src/main/java/greptime/v1/meta/Procedure.java @@ -9834,6 +9834,4855 @@ public final class Procedure { } + public interface GcRegionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.GcRegionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + greptime.v1.meta.Common.RequestHeader getHeader(); + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder(); + + /** + * repeated uint64 region_ids = 2; + * @return A list containing the regionIds. + */ + java.util.List getRegionIdsList(); + /** + * repeated uint64 region_ids = 2; + * @return The count of regionIds. + */ + int getRegionIdsCount(); + /** + * repeated uint64 region_ids = 2; + * @param index The index of the element to return. + * @return The regionIds at the given index. + */ + long getRegionIds(int index); + + /** + *
+     * Whether to perform a full file listing on datanodes when GC'ing the regions.
+     * 
+ * + * bool full_file_listing = 3; + * @return The fullFileListing. + */ + boolean getFullFileListing(); + + /** + *
+     * Timeout in seconds for the entire GC procedure.
+     * 
+ * + * uint32 timeout_secs = 4; + * @return The timeoutSecs. + */ + int getTimeoutSecs(); + } + /** + * Protobuf type {@code greptime.v1.meta.GcRegionsRequest} + */ + public static final class GcRegionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.GcRegionsRequest) + GcRegionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcRegionsRequest.newBuilder() to construct. + private GcRegionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GcRegionsRequest() { + regionIds_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcRegionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GcRegionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + greptime.v1.meta.Common.RequestHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(greptime.v1.meta.Common.RequestHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + regionIds_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + regionIds_.addLong(input.readUInt64()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + regionIds_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + regionIds_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + case 24: { + + fullFileListing_ = input.readBool(); + break; + } + case 32: { + + timeoutSecs_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + regionIds_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcRegionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcRegionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.GcRegionsRequest.class, greptime.v1.meta.Procedure.GcRegionsRequest.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private greptime.v1.meta.Common.RequestHeader header_; + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + @java.lang.Override + public greptime.v1.meta.Common.RequestHeader getHeader() { + return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + @java.lang.Override + public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int REGION_IDS_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.LongList regionIds_; + /** + * repeated uint64 region_ids = 2; + * @return A list containing the regionIds. + */ + @java.lang.Override + public java.util.List + getRegionIdsList() { + return regionIds_; + } + /** + * repeated uint64 region_ids = 2; + * @return The count of regionIds. + */ + public int getRegionIdsCount() { + return regionIds_.size(); + } + /** + * repeated uint64 region_ids = 2; + * @param index The index of the element to return. + * @return The regionIds at the given index. + */ + public long getRegionIds(int index) { + return regionIds_.getLong(index); + } + private int regionIdsMemoizedSerializedSize = -1; + + public static final int FULL_FILE_LISTING_FIELD_NUMBER = 3; + private boolean fullFileListing_; + /** + *
+     * Whether to perform a full file listing on datanodes when GC'ing the regions.
+     * 
+ * + * bool full_file_listing = 3; + * @return The fullFileListing. + */ + @java.lang.Override + public boolean getFullFileListing() { + return fullFileListing_; + } + + public static final int TIMEOUT_SECS_FIELD_NUMBER = 4; + private int timeoutSecs_; + /** + *
+     * Timeout in seconds for the entire GC procedure.
+     * 
+ * + * uint32 timeout_secs = 4; + * @return The timeoutSecs. + */ + @java.lang.Override + public int getTimeoutSecs() { + return timeoutSecs_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (getRegionIdsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(regionIdsMemoizedSerializedSize); + } + for (int i = 0; i < regionIds_.size(); i++) { + output.writeUInt64NoTag(regionIds_.getLong(i)); + } + if (fullFileListing_ != false) { + output.writeBool(3, fullFileListing_); + } + if (timeoutSecs_ != 0) { + output.writeUInt32(4, timeoutSecs_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + { + int dataSize = 0; + for (int i = 0; i < regionIds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt64SizeNoTag(regionIds_.getLong(i)); + } + size += dataSize; + if (!getRegionIdsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + regionIdsMemoizedSerializedSize = dataSize; + } + if (fullFileListing_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, fullFileListing_); + } + if (timeoutSecs_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, timeoutSecs_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.Procedure.GcRegionsRequest)) { + return super.equals(obj); + } + greptime.v1.meta.Procedure.GcRegionsRequest other = (greptime.v1.meta.Procedure.GcRegionsRequest) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getRegionIdsList() + .equals(other.getRegionIdsList())) return false; + if (getFullFileListing() + != other.getFullFileListing()) return false; + if (getTimeoutSecs() + != other.getTimeoutSecs()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (getRegionIdsCount() > 0) { + hash = (37 * hash) + REGION_IDS_FIELD_NUMBER; + hash = (53 * hash) + getRegionIdsList().hashCode(); + } + hash = (37 * hash) + FULL_FILE_LISTING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFullFileListing()); + hash = (37 * hash) + TIMEOUT_SECS_FIELD_NUMBER; + hash = (53 * hash) + getTimeoutSecs(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Procedure.GcRegionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcRegionsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcRegionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcRegionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcRegionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcRegionsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcRegionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcRegionsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcRegionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcRegionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcRegionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcRegionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.Procedure.GcRegionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.GcRegionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.GcRegionsRequest) + greptime.v1.meta.Procedure.GcRegionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcRegionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcRegionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.GcRegionsRequest.class, greptime.v1.meta.Procedure.GcRegionsRequest.Builder.class); + } + + // Construct using greptime.v1.meta.Procedure.GcRegionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + regionIds_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + fullFileListing_ = false; + + timeoutSecs_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcRegionsRequest_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcRegionsRequest getDefaultInstanceForType() { + return greptime.v1.meta.Procedure.GcRegionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcRegionsRequest build() { + greptime.v1.meta.Procedure.GcRegionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcRegionsRequest buildPartial() { + greptime.v1.meta.Procedure.GcRegionsRequest result = new greptime.v1.meta.Procedure.GcRegionsRequest(this); + int from_bitField0_ = bitField0_; + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + regionIds_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.regionIds_ = regionIds_; + result.fullFileListing_ = fullFileListing_; + result.timeoutSecs_ = timeoutSecs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.Procedure.GcRegionsRequest) { + return mergeFrom((greptime.v1.meta.Procedure.GcRegionsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Procedure.GcRegionsRequest other) { + if (other == greptime.v1.meta.Procedure.GcRegionsRequest.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (!other.regionIds_.isEmpty()) { + if (regionIds_.isEmpty()) { + regionIds_ = other.regionIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRegionIdsIsMutable(); + regionIds_.addAll(other.regionIds_); + } + onChanged(); + } + if (other.getFullFileListing() != false) { + setFullFileListing(other.getFullFileListing()); + } + if (other.getTimeoutSecs() != 0) { + setTimeoutSecs(other.getTimeoutSecs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.Procedure.GcRegionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Procedure.GcRegionsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private greptime.v1.meta.Common.RequestHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + public greptime.v1.meta.Common.RequestHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder setHeader(greptime.v1.meta.Common.RequestHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder setHeader( + greptime.v1.meta.Common.RequestHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder mergeHeader(greptime.v1.meta.Common.RequestHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + greptime.v1.meta.Common.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public greptime.v1.meta.Common.RequestHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private com.google.protobuf.Internal.LongList regionIds_ = emptyLongList(); + private void ensureRegionIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + regionIds_ = mutableCopy(regionIds_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated uint64 region_ids = 2; + * @return A list containing the regionIds. + */ + public java.util.List + getRegionIdsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(regionIds_) : regionIds_; + } + /** + * repeated uint64 region_ids = 2; + * @return The count of regionIds. + */ + public int getRegionIdsCount() { + return regionIds_.size(); + } + /** + * repeated uint64 region_ids = 2; + * @param index The index of the element to return. + * @return The regionIds at the given index. + */ + public long getRegionIds(int index) { + return regionIds_.getLong(index); + } + /** + * repeated uint64 region_ids = 2; + * @param index The index to set the value at. + * @param value The regionIds to set. + * @return This builder for chaining. + */ + public Builder setRegionIds( + int index, long value) { + ensureRegionIdsIsMutable(); + regionIds_.setLong(index, value); + onChanged(); + return this; + } + /** + * repeated uint64 region_ids = 2; + * @param value The regionIds to add. + * @return This builder for chaining. + */ + public Builder addRegionIds(long value) { + ensureRegionIdsIsMutable(); + regionIds_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 region_ids = 2; + * @param values The regionIds to add. + * @return This builder for chaining. + */ + public Builder addAllRegionIds( + java.lang.Iterable values) { + ensureRegionIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, regionIds_); + onChanged(); + return this; + } + /** + * repeated uint64 region_ids = 2; + * @return This builder for chaining. + */ + public Builder clearRegionIds() { + regionIds_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private boolean fullFileListing_ ; + /** + *
+       * Whether to perform a full file listing on datanodes when GC'ing the regions.
+       * 
+ * + * bool full_file_listing = 3; + * @return The fullFileListing. + */ + @java.lang.Override + public boolean getFullFileListing() { + return fullFileListing_; + } + /** + *
+       * Whether to perform a full file listing on datanodes when GC'ing the regions.
+       * 
+ * + * bool full_file_listing = 3; + * @param value The fullFileListing to set. + * @return This builder for chaining. + */ + public Builder setFullFileListing(boolean value) { + + fullFileListing_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether to perform a full file listing on datanodes when GC'ing the regions.
+       * 
+ * + * bool full_file_listing = 3; + * @return This builder for chaining. + */ + public Builder clearFullFileListing() { + + fullFileListing_ = false; + onChanged(); + return this; + } + + private int timeoutSecs_ ; + /** + *
+       * Timeout in seconds for the entire GC procedure.
+       * 
+ * + * uint32 timeout_secs = 4; + * @return The timeoutSecs. + */ + @java.lang.Override + public int getTimeoutSecs() { + return timeoutSecs_; + } + /** + *
+       * Timeout in seconds for the entire GC procedure.
+       * 
+ * + * uint32 timeout_secs = 4; + * @param value The timeoutSecs to set. + * @return This builder for chaining. + */ + public Builder setTimeoutSecs(int value) { + + timeoutSecs_ = value; + onChanged(); + return this; + } + /** + *
+       * Timeout in seconds for the entire GC procedure.
+       * 
+ * + * uint32 timeout_secs = 4; + * @return This builder for chaining. + */ + public Builder clearTimeoutSecs() { + + timeoutSecs_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.GcRegionsRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.GcRegionsRequest) + private static final greptime.v1.meta.Procedure.GcRegionsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.GcRegionsRequest(); + } + + public static greptime.v1.meta.Procedure.GcRegionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcRegionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcRegionsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcRegionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GcStatsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.GcStats) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of regions requested for GC (accepted by the server side).
+     * 
+ * + * uint64 processed_regions = 1; + * @return The processedRegions. + */ + long getProcessedRegions(); + + /** + *
+     * Regions that need retry in the next GC round.
+     * 
+ * + * repeated uint64 need_retry_regions = 2; + * @return A list containing the needRetryRegions. + */ + java.util.List getNeedRetryRegionsList(); + /** + *
+     * Regions that need retry in the next GC round.
+     * 
+ * + * repeated uint64 need_retry_regions = 2; + * @return The count of needRetryRegions. + */ + int getNeedRetryRegionsCount(); + /** + *
+     * Regions that need retry in the next GC round.
+     * 
+ * + * repeated uint64 need_retry_regions = 2; + * @param index The index of the element to return. + * @return The needRetryRegions at the given index. + */ + long getNeedRetryRegions(int index); + + /** + *
+     * Number of deleted SST files.
+     * 
+ * + * uint64 deleted_files = 3; + * @return The deletedFiles. + */ + long getDeletedFiles(); + + /** + *
+     * Number of deleted index files.
+     * 
+ * + * uint64 deleted_indexes = 4; + * @return The deletedIndexes. + */ + long getDeletedIndexes(); + } + /** + * Protobuf type {@code greptime.v1.meta.GcStats} + */ + public static final class GcStats extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.GcStats) + GcStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcStats.newBuilder() to construct. + private GcStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GcStats() { + needRetryRegions_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcStats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GcStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + processedRegions_ = input.readUInt64(); + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + needRetryRegions_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + needRetryRegions_.addLong(input.readUInt64()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + needRetryRegions_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + needRetryRegions_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } + case 24: { + + deletedFiles_ = input.readUInt64(); + break; + } + case 32: { + + deletedIndexes_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + needRetryRegions_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.GcStats.class, greptime.v1.meta.Procedure.GcStats.Builder.class); + } + + public static final int PROCESSED_REGIONS_FIELD_NUMBER = 1; + private long processedRegions_; + /** + *
+     * Number of regions requested for GC (accepted by the server side).
+     * 
+ * + * uint64 processed_regions = 1; + * @return The processedRegions. + */ + @java.lang.Override + public long getProcessedRegions() { + return processedRegions_; + } + + public static final int NEED_RETRY_REGIONS_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.LongList needRetryRegions_; + /** + *
+     * Regions that need retry in the next GC round.
+     * 
+ * + * repeated uint64 need_retry_regions = 2; + * @return A list containing the needRetryRegions. + */ + @java.lang.Override + public java.util.List + getNeedRetryRegionsList() { + return needRetryRegions_; + } + /** + *
+     * Regions that need retry in the next GC round.
+     * 
+ * + * repeated uint64 need_retry_regions = 2; + * @return The count of needRetryRegions. + */ + public int getNeedRetryRegionsCount() { + return needRetryRegions_.size(); + } + /** + *
+     * Regions that need retry in the next GC round.
+     * 
+ * + * repeated uint64 need_retry_regions = 2; + * @param index The index of the element to return. + * @return The needRetryRegions at the given index. + */ + public long getNeedRetryRegions(int index) { + return needRetryRegions_.getLong(index); + } + private int needRetryRegionsMemoizedSerializedSize = -1; + + public static final int DELETED_FILES_FIELD_NUMBER = 3; + private long deletedFiles_; + /** + *
+     * Number of deleted SST files.
+     * 
+ * + * uint64 deleted_files = 3; + * @return The deletedFiles. + */ + @java.lang.Override + public long getDeletedFiles() { + return deletedFiles_; + } + + public static final int DELETED_INDEXES_FIELD_NUMBER = 4; + private long deletedIndexes_; + /** + *
+     * Number of deleted index files.
+     * 
+ * + * uint64 deleted_indexes = 4; + * @return The deletedIndexes. + */ + @java.lang.Override + public long getDeletedIndexes() { + return deletedIndexes_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (processedRegions_ != 0L) { + output.writeUInt64(1, processedRegions_); + } + if (getNeedRetryRegionsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(needRetryRegionsMemoizedSerializedSize); + } + for (int i = 0; i < needRetryRegions_.size(); i++) { + output.writeUInt64NoTag(needRetryRegions_.getLong(i)); + } + if (deletedFiles_ != 0L) { + output.writeUInt64(3, deletedFiles_); + } + if (deletedIndexes_ != 0L) { + output.writeUInt64(4, deletedIndexes_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (processedRegions_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, processedRegions_); + } + { + int dataSize = 0; + for (int i = 0; i < needRetryRegions_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt64SizeNoTag(needRetryRegions_.getLong(i)); + } + size += dataSize; + if (!getNeedRetryRegionsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + needRetryRegionsMemoizedSerializedSize = dataSize; + } + if (deletedFiles_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, deletedFiles_); + } + if (deletedIndexes_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, deletedIndexes_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.Procedure.GcStats)) { + return super.equals(obj); + } + greptime.v1.meta.Procedure.GcStats other = (greptime.v1.meta.Procedure.GcStats) obj; + + if (getProcessedRegions() + != other.getProcessedRegions()) return false; + if (!getNeedRetryRegionsList() + .equals(other.getNeedRetryRegionsList())) return false; + if (getDeletedFiles() + != other.getDeletedFiles()) return false; + if (getDeletedIndexes() + != other.getDeletedIndexes()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROCESSED_REGIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getProcessedRegions()); + if (getNeedRetryRegionsCount() > 0) { + hash = (37 * hash) + NEED_RETRY_REGIONS_FIELD_NUMBER; + hash = (53 * hash) + getNeedRetryRegionsList().hashCode(); + } + hash = (37 * hash) + DELETED_FILES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeletedFiles()); + hash = (37 * hash) + DELETED_INDEXES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeletedIndexes()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Procedure.GcStats parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcStats parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcStats parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcStats parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcStats parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcStats parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.Procedure.GcStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.GcStats} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.GcStats) + greptime.v1.meta.Procedure.GcStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.GcStats.class, greptime.v1.meta.Procedure.GcStats.Builder.class); + } + + // Construct using greptime.v1.meta.Procedure.GcStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + processedRegions_ = 0L; + + needRetryRegions_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + deletedFiles_ = 0L; + + deletedIndexes_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcStats_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcStats getDefaultInstanceForType() { + return greptime.v1.meta.Procedure.GcStats.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcStats build() { + greptime.v1.meta.Procedure.GcStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcStats buildPartial() { + greptime.v1.meta.Procedure.GcStats result = new greptime.v1.meta.Procedure.GcStats(this); + int from_bitField0_ = bitField0_; + result.processedRegions_ = processedRegions_; + if (((bitField0_ & 0x00000001) != 0)) { + needRetryRegions_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.needRetryRegions_ = needRetryRegions_; + result.deletedFiles_ = deletedFiles_; + result.deletedIndexes_ = deletedIndexes_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.Procedure.GcStats) { + return mergeFrom((greptime.v1.meta.Procedure.GcStats)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Procedure.GcStats other) { + if (other == greptime.v1.meta.Procedure.GcStats.getDefaultInstance()) return this; + if (other.getProcessedRegions() != 0L) { + setProcessedRegions(other.getProcessedRegions()); + } + if (!other.needRetryRegions_.isEmpty()) { + if (needRetryRegions_.isEmpty()) { + needRetryRegions_ = other.needRetryRegions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNeedRetryRegionsIsMutable(); + needRetryRegions_.addAll(other.needRetryRegions_); + } + onChanged(); + } + if (other.getDeletedFiles() != 0L) { + setDeletedFiles(other.getDeletedFiles()); + } + if (other.getDeletedIndexes() != 0L) { + setDeletedIndexes(other.getDeletedIndexes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.Procedure.GcStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Procedure.GcStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long processedRegions_ ; + /** + *
+       * Number of regions requested for GC (accepted by the server side).
+       * 
+ * + * uint64 processed_regions = 1; + * @return The processedRegions. + */ + @java.lang.Override + public long getProcessedRegions() { + return processedRegions_; + } + /** + *
+       * Number of regions requested for GC (accepted by the server side).
+       * 
+ * + * uint64 processed_regions = 1; + * @param value The processedRegions to set. + * @return This builder for chaining. + */ + public Builder setProcessedRegions(long value) { + + processedRegions_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of regions requested for GC (accepted by the server side).
+       * 
+ * + * uint64 processed_regions = 1; + * @return This builder for chaining. + */ + public Builder clearProcessedRegions() { + + processedRegions_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList needRetryRegions_ = emptyLongList(); + private void ensureNeedRetryRegionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + needRetryRegions_ = mutableCopy(needRetryRegions_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Regions that need retry in the next GC round.
+       * 
+ * + * repeated uint64 need_retry_regions = 2; + * @return A list containing the needRetryRegions. + */ + public java.util.List + getNeedRetryRegionsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(needRetryRegions_) : needRetryRegions_; + } + /** + *
+       * Regions that need retry in the next GC round.
+       * 
+ * + * repeated uint64 need_retry_regions = 2; + * @return The count of needRetryRegions. + */ + public int getNeedRetryRegionsCount() { + return needRetryRegions_.size(); + } + /** + *
+       * Regions that need retry in the next GC round.
+       * 
+ * + * repeated uint64 need_retry_regions = 2; + * @param index The index of the element to return. + * @return The needRetryRegions at the given index. + */ + public long getNeedRetryRegions(int index) { + return needRetryRegions_.getLong(index); + } + /** + *
+       * Regions that need retry in the next GC round.
+       * 
+ * + * repeated uint64 need_retry_regions = 2; + * @param index The index to set the value at. + * @param value The needRetryRegions to set. + * @return This builder for chaining. + */ + public Builder setNeedRetryRegions( + int index, long value) { + ensureNeedRetryRegionsIsMutable(); + needRetryRegions_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+       * Regions that need retry in the next GC round.
+       * 
+ * + * repeated uint64 need_retry_regions = 2; + * @param value The needRetryRegions to add. + * @return This builder for chaining. + */ + public Builder addNeedRetryRegions(long value) { + ensureNeedRetryRegionsIsMutable(); + needRetryRegions_.addLong(value); + onChanged(); + return this; + } + /** + *
+       * Regions that need retry in the next GC round.
+       * 
+ * + * repeated uint64 need_retry_regions = 2; + * @param values The needRetryRegions to add. + * @return This builder for chaining. + */ + public Builder addAllNeedRetryRegions( + java.lang.Iterable values) { + ensureNeedRetryRegionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, needRetryRegions_); + onChanged(); + return this; + } + /** + *
+       * Regions that need retry in the next GC round.
+       * 
+ * + * repeated uint64 need_retry_regions = 2; + * @return This builder for chaining. + */ + public Builder clearNeedRetryRegions() { + needRetryRegions_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private long deletedFiles_ ; + /** + *
+       * Number of deleted SST files.
+       * 
+ * + * uint64 deleted_files = 3; + * @return The deletedFiles. + */ + @java.lang.Override + public long getDeletedFiles() { + return deletedFiles_; + } + /** + *
+       * Number of deleted SST files.
+       * 
+ * + * uint64 deleted_files = 3; + * @param value The deletedFiles to set. + * @return This builder for chaining. + */ + public Builder setDeletedFiles(long value) { + + deletedFiles_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of deleted SST files.
+       * 
+ * + * uint64 deleted_files = 3; + * @return This builder for chaining. + */ + public Builder clearDeletedFiles() { + + deletedFiles_ = 0L; + onChanged(); + return this; + } + + private long deletedIndexes_ ; + /** + *
+       * Number of deleted index files.
+       * 
+ * + * uint64 deleted_indexes = 4; + * @return The deletedIndexes. + */ + @java.lang.Override + public long getDeletedIndexes() { + return deletedIndexes_; + } + /** + *
+       * Number of deleted index files.
+       * 
+ * + * uint64 deleted_indexes = 4; + * @param value The deletedIndexes to set. + * @return This builder for chaining. + */ + public Builder setDeletedIndexes(long value) { + + deletedIndexes_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of deleted index files.
+       * 
+ * + * uint64 deleted_indexes = 4; + * @return This builder for chaining. + */ + public Builder clearDeletedIndexes() { + + deletedIndexes_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.GcStats) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.GcStats) + private static final greptime.v1.meta.Procedure.GcStats DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.GcStats(); + } + + public static greptime.v1.meta.Procedure.GcStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GcRegionsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.GcRegionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + greptime.v1.meta.Common.ResponseHeader getHeader(); + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + * .greptime.v1.meta.GcStats stats = 2; + * @return Whether the stats field is set. + */ + boolean hasStats(); + /** + * .greptime.v1.meta.GcStats stats = 2; + * @return The stats. + */ + greptime.v1.meta.Procedure.GcStats getStats(); + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + greptime.v1.meta.Procedure.GcStatsOrBuilder getStatsOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.meta.GcRegionsResponse} + */ + public static final class GcRegionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.GcRegionsResponse) + GcRegionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcRegionsResponse.newBuilder() to construct. + private GcRegionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GcRegionsResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcRegionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GcRegionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + greptime.v1.meta.Common.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(greptime.v1.meta.Common.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + greptime.v1.meta.Procedure.GcStats.Builder subBuilder = null; + if (stats_ != null) { + subBuilder = stats_.toBuilder(); + } + stats_ = input.readMessage(greptime.v1.meta.Procedure.GcStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stats_); + stats_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcRegionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcRegionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.GcRegionsResponse.class, greptime.v1.meta.Procedure.GcRegionsResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private greptime.v1.meta.Common.ResponseHeader header_; + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public greptime.v1.meta.Common.ResponseHeader getHeader() { + return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + @java.lang.Override + public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int STATS_FIELD_NUMBER = 2; + private greptime.v1.meta.Procedure.GcStats stats_; + /** + * .greptime.v1.meta.GcStats stats = 2; + * @return Whether the stats field is set. + */ + @java.lang.Override + public boolean hasStats() { + return stats_ != null; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + * @return The stats. + */ + @java.lang.Override + public greptime.v1.meta.Procedure.GcStats getStats() { + return stats_ == null ? greptime.v1.meta.Procedure.GcStats.getDefaultInstance() : stats_; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + @java.lang.Override + public greptime.v1.meta.Procedure.GcStatsOrBuilder getStatsOrBuilder() { + return getStats(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (stats_ != null) { + output.writeMessage(2, getStats()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (stats_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStats()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.Procedure.GcRegionsResponse)) { + return super.equals(obj); + } + greptime.v1.meta.Procedure.GcRegionsResponse other = (greptime.v1.meta.Procedure.GcRegionsResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (hasStats() != other.hasStats()) return false; + if (hasStats()) { + if (!getStats() + .equals(other.getStats())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (hasStats()) { + hash = (37 * hash) + STATS_FIELD_NUMBER; + hash = (53 * hash) + getStats().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Procedure.GcRegionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcRegionsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcRegionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcRegionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcRegionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcRegionsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcRegionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcRegionsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcRegionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcRegionsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcRegionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcRegionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.Procedure.GcRegionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.GcRegionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.GcRegionsResponse) + greptime.v1.meta.Procedure.GcRegionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcRegionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcRegionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.GcRegionsResponse.class, greptime.v1.meta.Procedure.GcRegionsResponse.Builder.class); + } + + // Construct using greptime.v1.meta.Procedure.GcRegionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (statsBuilder_ == null) { + stats_ = null; + } else { + stats_ = null; + statsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcRegionsResponse_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcRegionsResponse getDefaultInstanceForType() { + return greptime.v1.meta.Procedure.GcRegionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcRegionsResponse build() { + greptime.v1.meta.Procedure.GcRegionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcRegionsResponse buildPartial() { + greptime.v1.meta.Procedure.GcRegionsResponse result = new greptime.v1.meta.Procedure.GcRegionsResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (statsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = statsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.Procedure.GcRegionsResponse) { + return mergeFrom((greptime.v1.meta.Procedure.GcRegionsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Procedure.GcRegionsResponse other) { + if (other == greptime.v1.meta.Procedure.GcRegionsResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.hasStats()) { + mergeStats(other.getStats()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.Procedure.GcRegionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Procedure.GcRegionsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private greptime.v1.meta.Common.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + public greptime.v1.meta.Common.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder setHeader(greptime.v1.meta.Common.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder setHeader( + greptime.v1.meta.Common.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder mergeHeader(greptime.v1.meta.Common.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + greptime.v1.meta.Common.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public greptime.v1.meta.Common.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private greptime.v1.meta.Procedure.GcStats stats_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Procedure.GcStats, greptime.v1.meta.Procedure.GcStats.Builder, greptime.v1.meta.Procedure.GcStatsOrBuilder> statsBuilder_; + /** + * .greptime.v1.meta.GcStats stats = 2; + * @return Whether the stats field is set. + */ + public boolean hasStats() { + return statsBuilder_ != null || stats_ != null; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + * @return The stats. + */ + public greptime.v1.meta.Procedure.GcStats getStats() { + if (statsBuilder_ == null) { + return stats_ == null ? greptime.v1.meta.Procedure.GcStats.getDefaultInstance() : stats_; + } else { + return statsBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + public Builder setStats(greptime.v1.meta.Procedure.GcStats value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + statsBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + public Builder setStats( + greptime.v1.meta.Procedure.GcStats.Builder builderForValue) { + if (statsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + statsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + public Builder mergeStats(greptime.v1.meta.Procedure.GcStats value) { + if (statsBuilder_ == null) { + if (stats_ != null) { + stats_ = + greptime.v1.meta.Procedure.GcStats.newBuilder(stats_).mergeFrom(value).buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + statsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + public Builder clearStats() { + if (statsBuilder_ == null) { + stats_ = null; + onChanged(); + } else { + stats_ = null; + statsBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + public greptime.v1.meta.Procedure.GcStats.Builder getStatsBuilder() { + + onChanged(); + return getStatsFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + public greptime.v1.meta.Procedure.GcStatsOrBuilder getStatsOrBuilder() { + if (statsBuilder_ != null) { + return statsBuilder_.getMessageOrBuilder(); + } else { + return stats_ == null ? + greptime.v1.meta.Procedure.GcStats.getDefaultInstance() : stats_; + } + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Procedure.GcStats, greptime.v1.meta.Procedure.GcStats.Builder, greptime.v1.meta.Procedure.GcStatsOrBuilder> + getStatsFieldBuilder() { + if (statsBuilder_ == null) { + statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Procedure.GcStats, greptime.v1.meta.Procedure.GcStats.Builder, greptime.v1.meta.Procedure.GcStatsOrBuilder>( + getStats(), + getParentForChildren(), + isClean()); + stats_ = null; + } + return statsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.GcRegionsResponse) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.GcRegionsResponse) + private static final greptime.v1.meta.Procedure.GcRegionsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.GcRegionsResponse(); + } + + public static greptime.v1.meta.Procedure.GcRegionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcRegionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcRegionsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcRegionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GcTableRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.GcTableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + greptime.v1.meta.Common.RequestHeader getHeader(); + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder(); + + /** + * string catalog_name = 2; + * @return The catalogName. + */ + java.lang.String getCatalogName(); + /** + * string catalog_name = 2; + * @return The bytes for catalogName. + */ + com.google.protobuf.ByteString + getCatalogNameBytes(); + + /** + * string schema_name = 3; + * @return The schemaName. + */ + java.lang.String getSchemaName(); + /** + * string schema_name = 3; + * @return The bytes for schemaName. + */ + com.google.protobuf.ByteString + getSchemaNameBytes(); + + /** + * string table_name = 4; + * @return The tableName. + */ + java.lang.String getTableName(); + /** + * string table_name = 4; + * @return The bytes for tableName. + */ + com.google.protobuf.ByteString + getTableNameBytes(); + + /** + *
+     * Whether to perform a full file listing on datanodes when GC'ing the regions.
+     * 
+ * + * bool full_file_listing = 5; + * @return The fullFileListing. + */ + boolean getFullFileListing(); + + /** + *
+     * Timeout in seconds for the entire GC procedure.
+     * 
+ * + * uint32 timeout_secs = 6; + * @return The timeoutSecs. + */ + int getTimeoutSecs(); + } + /** + * Protobuf type {@code greptime.v1.meta.GcTableRequest} + */ + public static final class GcTableRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.GcTableRequest) + GcTableRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcTableRequest.newBuilder() to construct. + private GcTableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GcTableRequest() { + catalogName_ = ""; + schemaName_ = ""; + tableName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcTableRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GcTableRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + greptime.v1.meta.Common.RequestHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(greptime.v1.meta.Common.RequestHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + catalogName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + schemaName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + tableName_ = s; + break; + } + case 40: { + + fullFileListing_ = input.readBool(); + break; + } + case 48: { + + timeoutSecs_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.GcTableRequest.class, greptime.v1.meta.Procedure.GcTableRequest.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private greptime.v1.meta.Common.RequestHeader header_; + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + @java.lang.Override + public greptime.v1.meta.Common.RequestHeader getHeader() { + return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + @java.lang.Override + public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int CATALOG_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object catalogName_; + /** + * string catalog_name = 2; + * @return The catalogName. + */ + @java.lang.Override + public java.lang.String getCatalogName() { + java.lang.Object ref = catalogName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogName_ = s; + return s; + } + } + /** + * string catalog_name = 2; + * @return The bytes for catalogName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCatalogNameBytes() { + java.lang.Object ref = catalogName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalogName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object schemaName_; + /** + * string schema_name = 3; + * @return The schemaName. + */ + @java.lang.Override + public java.lang.String getSchemaName() { + java.lang.Object ref = schemaName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaName_ = s; + return s; + } + } + /** + * string schema_name = 3; + * @return The bytes for schemaName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schemaName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object tableName_; + /** + * string table_name = 4; + * @return The tableName. + */ + @java.lang.Override + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } + } + /** + * string table_name = 4; + * @return The bytes for tableName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FULL_FILE_LISTING_FIELD_NUMBER = 5; + private boolean fullFileListing_; + /** + *
+     * Whether to perform a full file listing on datanodes when GC'ing the regions.
+     * 
+ * + * bool full_file_listing = 5; + * @return The fullFileListing. + */ + @java.lang.Override + public boolean getFullFileListing() { + return fullFileListing_; + } + + public static final int TIMEOUT_SECS_FIELD_NUMBER = 6; + private int timeoutSecs_; + /** + *
+     * Timeout in seconds for the entire GC procedure.
+     * 
+ * + * uint32 timeout_secs = 6; + * @return The timeoutSecs. + */ + @java.lang.Override + public int getTimeoutSecs() { + return timeoutSecs_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, catalogName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tableName_); + } + if (fullFileListing_ != false) { + output.writeBool(5, fullFileListing_); + } + if (timeoutSecs_ != 0) { + output.writeUInt32(6, timeoutSecs_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, catalogName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tableName_); + } + if (fullFileListing_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, fullFileListing_); + } + if (timeoutSecs_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, timeoutSecs_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.Procedure.GcTableRequest)) { + return super.equals(obj); + } + greptime.v1.meta.Procedure.GcTableRequest other = (greptime.v1.meta.Procedure.GcTableRequest) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getCatalogName() + .equals(other.getCatalogName())) return false; + if (!getSchemaName() + .equals(other.getSchemaName())) return false; + if (!getTableName() + .equals(other.getTableName())) return false; + if (getFullFileListing() + != other.getFullFileListing()) return false; + if (getTimeoutSecs() + != other.getTimeoutSecs()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCatalogName().hashCode(); + hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSchemaName().hashCode(); + hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTableName().hashCode(); + hash = (37 * hash) + FULL_FILE_LISTING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFullFileListing()); + hash = (37 * hash) + TIMEOUT_SECS_FIELD_NUMBER; + hash = (53 * hash) + getTimeoutSecs(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Procedure.GcTableRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcTableRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcTableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcTableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcTableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcTableRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcTableRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcTableRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcTableRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcTableRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcTableRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcTableRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.Procedure.GcTableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.GcTableRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.GcTableRequest) + greptime.v1.meta.Procedure.GcTableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.GcTableRequest.class, greptime.v1.meta.Procedure.GcTableRequest.Builder.class); + } + + // Construct using greptime.v1.meta.Procedure.GcTableRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + catalogName_ = ""; + + schemaName_ = ""; + + tableName_ = ""; + + fullFileListing_ = false; + + timeoutSecs_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcTableRequest_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcTableRequest getDefaultInstanceForType() { + return greptime.v1.meta.Procedure.GcTableRequest.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcTableRequest build() { + greptime.v1.meta.Procedure.GcTableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcTableRequest buildPartial() { + greptime.v1.meta.Procedure.GcTableRequest result = new greptime.v1.meta.Procedure.GcTableRequest(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.catalogName_ = catalogName_; + result.schemaName_ = schemaName_; + result.tableName_ = tableName_; + result.fullFileListing_ = fullFileListing_; + result.timeoutSecs_ = timeoutSecs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.Procedure.GcTableRequest) { + return mergeFrom((greptime.v1.meta.Procedure.GcTableRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Procedure.GcTableRequest other) { + if (other == greptime.v1.meta.Procedure.GcTableRequest.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (!other.getCatalogName().isEmpty()) { + catalogName_ = other.catalogName_; + onChanged(); + } + if (!other.getSchemaName().isEmpty()) { + schemaName_ = other.schemaName_; + onChanged(); + } + if (!other.getTableName().isEmpty()) { + tableName_ = other.tableName_; + onChanged(); + } + if (other.getFullFileListing() != false) { + setFullFileListing(other.getFullFileListing()); + } + if (other.getTimeoutSecs() != 0) { + setTimeoutSecs(other.getTimeoutSecs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.Procedure.GcTableRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Procedure.GcTableRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private greptime.v1.meta.Common.RequestHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + public greptime.v1.meta.Common.RequestHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder setHeader(greptime.v1.meta.Common.RequestHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder setHeader( + greptime.v1.meta.Common.RequestHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder mergeHeader(greptime.v1.meta.Common.RequestHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + greptime.v1.meta.Common.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public greptime.v1.meta.Common.RequestHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private java.lang.Object catalogName_ = ""; + /** + * string catalog_name = 2; + * @return The catalogName. + */ + public java.lang.String getCatalogName() { + java.lang.Object ref = catalogName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string catalog_name = 2; + * @return The bytes for catalogName. + */ + public com.google.protobuf.ByteString + getCatalogNameBytes() { + java.lang.Object ref = catalogName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalogName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string catalog_name = 2; + * @param value The catalogName to set. + * @return This builder for chaining. + */ + public Builder setCatalogName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + catalogName_ = value; + onChanged(); + return this; + } + /** + * string catalog_name = 2; + * @return This builder for chaining. + */ + public Builder clearCatalogName() { + + catalogName_ = getDefaultInstance().getCatalogName(); + onChanged(); + return this; + } + /** + * string catalog_name = 2; + * @param value The bytes for catalogName to set. + * @return This builder for chaining. + */ + public Builder setCatalogNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + catalogName_ = value; + onChanged(); + return this; + } + + private java.lang.Object schemaName_ = ""; + /** + * string schema_name = 3; + * @return The schemaName. + */ + public java.lang.String getSchemaName() { + java.lang.Object ref = schemaName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string schema_name = 3; + * @return The bytes for schemaName. + */ + public com.google.protobuf.ByteString + getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schemaName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string schema_name = 3; + * @param value The schemaName to set. + * @return This builder for chaining. + */ + public Builder setSchemaName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schemaName_ = value; + onChanged(); + return this; + } + /** + * string schema_name = 3; + * @return This builder for chaining. + */ + public Builder clearSchemaName() { + + schemaName_ = getDefaultInstance().getSchemaName(); + onChanged(); + return this; + } + /** + * string schema_name = 3; + * @param value The bytes for schemaName to set. + * @return This builder for chaining. + */ + public Builder setSchemaNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schemaName_ = value; + onChanged(); + return this; + } + + private java.lang.Object tableName_ = ""; + /** + * string table_name = 4; + * @return The tableName. + */ + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string table_name = 4; + * @return The bytes for tableName. + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string table_name = 4; + * @param value The tableName to set. + * @return This builder for chaining. + */ + public Builder setTableName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tableName_ = value; + onChanged(); + return this; + } + /** + * string table_name = 4; + * @return This builder for chaining. + */ + public Builder clearTableName() { + + tableName_ = getDefaultInstance().getTableName(); + onChanged(); + return this; + } + /** + * string table_name = 4; + * @param value The bytes for tableName to set. + * @return This builder for chaining. + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tableName_ = value; + onChanged(); + return this; + } + + private boolean fullFileListing_ ; + /** + *
+       * Whether to perform a full file listing on datanodes when GC'ing the regions.
+       * 
+ * + * bool full_file_listing = 5; + * @return The fullFileListing. + */ + @java.lang.Override + public boolean getFullFileListing() { + return fullFileListing_; + } + /** + *
+       * Whether to perform a full file listing on datanodes when GC'ing the regions.
+       * 
+ * + * bool full_file_listing = 5; + * @param value The fullFileListing to set. + * @return This builder for chaining. + */ + public Builder setFullFileListing(boolean value) { + + fullFileListing_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether to perform a full file listing on datanodes when GC'ing the regions.
+       * 
+ * + * bool full_file_listing = 5; + * @return This builder for chaining. + */ + public Builder clearFullFileListing() { + + fullFileListing_ = false; + onChanged(); + return this; + } + + private int timeoutSecs_ ; + /** + *
+       * Timeout in seconds for the entire GC procedure.
+       * 
+ * + * uint32 timeout_secs = 6; + * @return The timeoutSecs. + */ + @java.lang.Override + public int getTimeoutSecs() { + return timeoutSecs_; + } + /** + *
+       * Timeout in seconds for the entire GC procedure.
+       * 
+ * + * uint32 timeout_secs = 6; + * @param value The timeoutSecs to set. + * @return This builder for chaining. + */ + public Builder setTimeoutSecs(int value) { + + timeoutSecs_ = value; + onChanged(); + return this; + } + /** + *
+       * Timeout in seconds for the entire GC procedure.
+       * 
+ * + * uint32 timeout_secs = 6; + * @return This builder for chaining. + */ + public Builder clearTimeoutSecs() { + + timeoutSecs_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.GcTableRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.GcTableRequest) + private static final greptime.v1.meta.Procedure.GcTableRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.GcTableRequest(); + } + + public static greptime.v1.meta.Procedure.GcTableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcTableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcTableRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcTableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GcTableResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.GcTableResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + greptime.v1.meta.Common.ResponseHeader getHeader(); + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + * .greptime.v1.meta.GcStats stats = 2; + * @return Whether the stats field is set. + */ + boolean hasStats(); + /** + * .greptime.v1.meta.GcStats stats = 2; + * @return The stats. + */ + greptime.v1.meta.Procedure.GcStats getStats(); + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + greptime.v1.meta.Procedure.GcStatsOrBuilder getStatsOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.meta.GcTableResponse} + */ + public static final class GcTableResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.GcTableResponse) + GcTableResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcTableResponse.newBuilder() to construct. + private GcTableResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GcTableResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcTableResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GcTableResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + greptime.v1.meta.Common.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(greptime.v1.meta.Common.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + greptime.v1.meta.Procedure.GcStats.Builder subBuilder = null; + if (stats_ != null) { + subBuilder = stats_.toBuilder(); + } + stats_ = input.readMessage(greptime.v1.meta.Procedure.GcStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stats_); + stats_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcTableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcTableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.GcTableResponse.class, greptime.v1.meta.Procedure.GcTableResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private greptime.v1.meta.Common.ResponseHeader header_; + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public greptime.v1.meta.Common.ResponseHeader getHeader() { + return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + @java.lang.Override + public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int STATS_FIELD_NUMBER = 2; + private greptime.v1.meta.Procedure.GcStats stats_; + /** + * .greptime.v1.meta.GcStats stats = 2; + * @return Whether the stats field is set. + */ + @java.lang.Override + public boolean hasStats() { + return stats_ != null; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + * @return The stats. + */ + @java.lang.Override + public greptime.v1.meta.Procedure.GcStats getStats() { + return stats_ == null ? greptime.v1.meta.Procedure.GcStats.getDefaultInstance() : stats_; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + @java.lang.Override + public greptime.v1.meta.Procedure.GcStatsOrBuilder getStatsOrBuilder() { + return getStats(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (stats_ != null) { + output.writeMessage(2, getStats()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (stats_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStats()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.Procedure.GcTableResponse)) { + return super.equals(obj); + } + greptime.v1.meta.Procedure.GcTableResponse other = (greptime.v1.meta.Procedure.GcTableResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (hasStats() != other.hasStats()) return false; + if (hasStats()) { + if (!getStats() + .equals(other.getStats())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (hasStats()) { + hash = (37 * hash) + STATS_FIELD_NUMBER; + hash = (53 * hash) + getStats().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Procedure.GcTableResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcTableResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcTableResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcTableResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcTableResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.GcTableResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcTableResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcTableResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcTableResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcTableResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.GcTableResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.GcTableResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.Procedure.GcTableResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.GcTableResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.GcTableResponse) + greptime.v1.meta.Procedure.GcTableResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcTableResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcTableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.GcTableResponse.class, greptime.v1.meta.Procedure.GcTableResponse.Builder.class); + } + + // Construct using greptime.v1.meta.Procedure.GcTableResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (statsBuilder_ == null) { + stats_ = null; + } else { + stats_ = null; + statsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_GcTableResponse_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcTableResponse getDefaultInstanceForType() { + return greptime.v1.meta.Procedure.GcTableResponse.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcTableResponse build() { + greptime.v1.meta.Procedure.GcTableResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcTableResponse buildPartial() { + greptime.v1.meta.Procedure.GcTableResponse result = new greptime.v1.meta.Procedure.GcTableResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (statsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = statsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.Procedure.GcTableResponse) { + return mergeFrom((greptime.v1.meta.Procedure.GcTableResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Procedure.GcTableResponse other) { + if (other == greptime.v1.meta.Procedure.GcTableResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.hasStats()) { + mergeStats(other.getStats()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.Procedure.GcTableResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Procedure.GcTableResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private greptime.v1.meta.Common.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + public greptime.v1.meta.Common.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder setHeader(greptime.v1.meta.Common.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder setHeader( + greptime.v1.meta.Common.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder mergeHeader(greptime.v1.meta.Common.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + greptime.v1.meta.Common.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public greptime.v1.meta.Common.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private greptime.v1.meta.Procedure.GcStats stats_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Procedure.GcStats, greptime.v1.meta.Procedure.GcStats.Builder, greptime.v1.meta.Procedure.GcStatsOrBuilder> statsBuilder_; + /** + * .greptime.v1.meta.GcStats stats = 2; + * @return Whether the stats field is set. + */ + public boolean hasStats() { + return statsBuilder_ != null || stats_ != null; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + * @return The stats. + */ + public greptime.v1.meta.Procedure.GcStats getStats() { + if (statsBuilder_ == null) { + return stats_ == null ? greptime.v1.meta.Procedure.GcStats.getDefaultInstance() : stats_; + } else { + return statsBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + public Builder setStats(greptime.v1.meta.Procedure.GcStats value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + statsBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + public Builder setStats( + greptime.v1.meta.Procedure.GcStats.Builder builderForValue) { + if (statsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + statsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + public Builder mergeStats(greptime.v1.meta.Procedure.GcStats value) { + if (statsBuilder_ == null) { + if (stats_ != null) { + stats_ = + greptime.v1.meta.Procedure.GcStats.newBuilder(stats_).mergeFrom(value).buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + statsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + public Builder clearStats() { + if (statsBuilder_ == null) { + stats_ = null; + onChanged(); + } else { + stats_ = null; + statsBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + public greptime.v1.meta.Procedure.GcStats.Builder getStatsBuilder() { + + onChanged(); + return getStatsFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + public greptime.v1.meta.Procedure.GcStatsOrBuilder getStatsOrBuilder() { + if (statsBuilder_ != null) { + return statsBuilder_.getMessageOrBuilder(); + } else { + return stats_ == null ? + greptime.v1.meta.Procedure.GcStats.getDefaultInstance() : stats_; + } + } + /** + * .greptime.v1.meta.GcStats stats = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Procedure.GcStats, greptime.v1.meta.Procedure.GcStats.Builder, greptime.v1.meta.Procedure.GcStatsOrBuilder> + getStatsFieldBuilder() { + if (statsBuilder_ == null) { + statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Procedure.GcStats, greptime.v1.meta.Procedure.GcStats.Builder, greptime.v1.meta.Procedure.GcStatsOrBuilder>( + getStats(), + getParentForChildren(), + isClean()); + stats_ = null; + } + return statsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.GcTableResponse) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.GcTableResponse) + private static final greptime.v1.meta.Procedure.GcTableResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.GcTableResponse(); + } + + public static greptime.v1.meta.Procedure.GcTableResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcTableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcTableResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.GcTableResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_meta_ProcedureMeta_descriptor; private static final @@ -9884,6 +14733,31 @@ public final class Procedure { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_meta_ReconcileResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_GcRegionsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_GcRegionsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_GcStats_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_GcStats_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_GcRegionsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_GcRegionsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_GcTableRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_GcTableRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_GcTableResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_GcTableResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -9933,25 +14807,46 @@ public final class Procedure { "econcileCatalogH\000B\010\n\006target\"q\n\021Reconcile" + "Response\0220\n\006header\030\001 \001(\0132 .greptime.v1.m" + "eta.ResponseHeader\022*\n\003pid\030\002 \001(\0132\035.grepti" + - "me.v1.meta.ProcedureId*v\n\017ProcedureStatu" + - "s\022\013\n\007Running\020\000\022\010\n\004Done\020\001\022\014\n\010Retrying\020\002\022\n" + - "\n\006Failed\020\003\022\023\n\017PrepareRollback\020\004\022\017\n\013Rolli" + - "ngBack\020\005\022\014\n\010Poisoned\020\006*E\n\017ResolveStrateg" + - "y\022\r\n\tUseLatest\020\000\022\016\n\nUseMetasrv\020\001\022\023\n\017Abor" + - "tOnConflict\020\0022\314\003\n\020ProcedureService\022Z\n\005qu" + - "ery\022\'.greptime.v1.meta.QueryProcedureReq" + - "uest\032(.greptime.v1.meta.ProcedureStateRe" + - "sponse\022J\n\003ddl\022 .greptime.v1.meta.DdlTask" + - "Request\032!.greptime.v1.meta.DdlTaskRespon" + - "se\022T\n\treconcile\022\".greptime.v1.meta.Recon" + - "cileRequest\032#.greptime.v1.meta.Reconcile" + - "Response\022Z\n\007migrate\022&.greptime.v1.meta.M" + - "igrateRegionRequest\032\'.greptime.v1.meta.M" + - "igrateRegionResponse\022^\n\007details\022(.grepti" + - "me.v1.meta.ProcedureDetailRequest\032).grep" + - "time.v1.meta.ProcedureDetailResponseB