From f0dfb8665994ac7cc54fe820d5c64af3bb99ebea Mon Sep 17 00:00:00 2001 From: taobo Date: Sun, 1 Sep 2024 20:21:04 +0800 Subject: [PATCH 1/5] feat: support for batch querying metadata information of procedures --- c++/greptime/v1/meta/procedure.grpc.pb.cc | 42 + c++/greptime/v1/meta/procedure.grpc.pb.h | 168 +- c++/greptime/v1/meta/procedure.pb.cc | 1439 +++++- c++/greptime/v1/meta/procedure.pb.h | 1258 ++++- go/greptime/v1/meta/procedure.pb.go | 444 +- go/greptime/v1/meta/procedure_grpc.pb.go | 38 + .../main/java/greptime/v1/meta/Procedure.java | 4096 +++++++++++++++-- proto/greptime/v1/meta/procedure.proto | 22 + 8 files changed, 6662 insertions(+), 845 deletions(-) diff --git a/c++/greptime/v1/meta/procedure.grpc.pb.cc b/c++/greptime/v1/meta/procedure.grpc.pb.cc index 03d81fe4..7863f7e0 100644 --- a/c++/greptime/v1/meta/procedure.grpc.pb.cc +++ b/c++/greptime/v1/meta/procedure.grpc.pb.cc @@ -27,6 +27,7 @@ static const char* ProcedureService_method_names[] = { "/greptime.v1.meta.ProcedureService/query", "/greptime.v1.meta.ProcedureService/ddl", "/greptime.v1.meta.ProcedureService/migrate", + "/greptime.v1.meta.ProcedureService/details", }; std::unique_ptr< ProcedureService::Stub> ProcedureService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -39,6 +40,7 @@ ProcedureService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& c : channel_(channel), rpcmethod_query_(ProcedureService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_ddl_(ProcedureService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_migrate_(ProcedureService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_details_(ProcedureService_method_names[3], 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) { @@ -110,6 +112,29 @@ ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>* return result; } +::grpc::Status ProcedureService::Stub::details(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::greptime::v1::meta::ProcedureDetailResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::ProcedureDetailRequest, ::greptime::v1::meta::ProcedureDetailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_details_, context, request, response); +} + +void ProcedureService::Stub::async::details(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest* request, ::greptime::v1::meta::ProcedureDetailResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::ProcedureDetailRequest, ::greptime::v1::meta::ProcedureDetailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_details_, context, request, response, std::move(f)); +} + +void ProcedureService::Stub::async::details(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest* request, ::greptime::v1::meta::ProcedureDetailResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_details_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureDetailResponse>* ProcedureService::Stub::PrepareAsyncdetailsRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::ProcedureDetailResponse, ::greptime::v1::meta::ProcedureDetailRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_details_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureDetailResponse>* ProcedureService::Stub::AsyncdetailsRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncdetailsRaw(context, request, cq); + result->StartCall(); + return result; +} + ProcedureService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ProcedureService_method_names[0], @@ -141,6 +166,16 @@ ProcedureService::Service::Service() { ::greptime::v1::meta::MigrateRegionResponse* resp) { return service->migrate(ctx, req, resp); }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ProcedureService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ProcedureService::Service, ::greptime::v1::meta::ProcedureDetailRequest, ::greptime::v1::meta::ProcedureDetailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ProcedureService::Service* service, + ::grpc::ServerContext* ctx, + const ::greptime::v1::meta::ProcedureDetailRequest* req, + ::greptime::v1::meta::ProcedureDetailResponse* resp) { + return service->details(ctx, req, resp); + }, this))); } ProcedureService::Service::~Service() { @@ -167,6 +202,13 @@ ::grpc::Status ProcedureService::Service::migrate(::grpc::ServerContext* context return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status ProcedureService::Service::details(::grpc::ServerContext* context, const ::greptime::v1::meta::ProcedureDetailRequest* request, ::greptime::v1::meta::ProcedureDetailResponse* 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 79318854..8bf7d277 100644 --- a/c++/greptime/v1/meta/procedure.grpc.pb.h +++ b/c++/greptime/v1/meta/procedure.grpc.pb.h @@ -66,6 +66,14 @@ class ProcedureService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>> PrepareAsyncmigrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>>(PrepareAsyncmigrateRaw(context, request, cq)); } + // Query all submitted procedures details + virtual ::grpc::Status details(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::greptime::v1::meta::ProcedureDetailResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureDetailResponse>> Asyncdetails(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureDetailResponse>>(AsyncdetailsRaw(context, request, cq)); + } + 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)); + } class async_interface { public: virtual ~async_interface() {} @@ -78,6 +86,9 @@ class ProcedureService final { // Submits a region migration task virtual void migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, std::function) = 0; virtual void migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // 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; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } @@ -89,6 +100,8 @@ class ProcedureService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>* PrepareAsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>* AsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) = 0; 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; }; class Stub final : public StubInterface { public: @@ -114,6 +127,13 @@ class ProcedureService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>> PrepareAsyncmigrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>>(PrepareAsyncmigrateRaw(context, request, cq)); } + ::grpc::Status details(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::greptime::v1::meta::ProcedureDetailResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureDetailResponse>> Asyncdetails(::grpc::ClientContext* context, const ::greptime::v1::meta::ProcedureDetailRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureDetailResponse>>(AsyncdetailsRaw(context, request, cq)); + } + 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)); + } class async final : public StubInterface::async_interface { public: @@ -123,6 +143,8 @@ class ProcedureService final { void ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, std::function) override; 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; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -140,9 +162,12 @@ class ProcedureService final { ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>* PrepareAsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>* AsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) override; ::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; const ::grpc::internal::RpcMethod rpcmethod_query_; const ::grpc::internal::RpcMethod rpcmethod_ddl_; const ::grpc::internal::RpcMethod rpcmethod_migrate_; + const ::grpc::internal::RpcMethod rpcmethod_details_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -156,6 +181,8 @@ class ProcedureService final { virtual ::grpc::Status ddl(::grpc::ServerContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response); // Submits a region migration task 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); }; template class WithAsyncMethod_query : public BaseClass { @@ -217,7 +244,27 @@ class ProcedureService final { ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_query > > AsyncService; + template + class WithAsyncMethod_details : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_details() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_details() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status details(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::ProcedureDetailRequest* /*request*/, ::greptime::v1::meta::ProcedureDetailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestdetails(::grpc::ServerContext* context, ::greptime::v1::meta::ProcedureDetailRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::ProcedureDetailResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_query > > > AsyncService; template class WithCallbackMethod_query : public BaseClass { private: @@ -299,7 +346,34 @@ class ProcedureService final { virtual ::grpc::ServerUnaryReactor* migrate( ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_query > > CallbackService; + template + class WithCallbackMethod_details : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_details() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::ProcedureDetailRequest, ::greptime::v1::meta::ProcedureDetailResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::greptime::v1::meta::ProcedureDetailRequest* request, ::greptime::v1::meta::ProcedureDetailResponse* response) { return this->details(context, request, response); }));} + void SetMessageAllocatorFor_details( + ::grpc::MessageAllocator< ::greptime::v1::meta::ProcedureDetailRequest, ::greptime::v1::meta::ProcedureDetailResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::ProcedureDetailRequest, ::greptime::v1::meta::ProcedureDetailResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_details() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status details(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::ProcedureDetailRequest* /*request*/, ::greptime::v1::meta::ProcedureDetailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* details( + ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::ProcedureDetailRequest* /*request*/, ::greptime::v1::meta::ProcedureDetailResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_query > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_query : public BaseClass { @@ -353,6 +427,23 @@ class ProcedureService final { } }; template + class WithGenericMethod_details : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_details() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_details() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status details(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::ProcedureDetailRequest* /*request*/, ::greptime::v1::meta::ProcedureDetailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_query : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -413,6 +504,26 @@ class ProcedureService final { } }; template + class WithRawMethod_details : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_details() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_details() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status details(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::ProcedureDetailRequest* /*request*/, ::greptime::v1::meta::ProcedureDetailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestdetails(::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(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawCallbackMethod_query : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -479,6 +590,28 @@ class ProcedureService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_details : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_details() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->details(context, request, response); })); + } + ~WithRawCallbackMethod_details() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status details(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::ProcedureDetailRequest* /*request*/, ::greptime::v1::meta::ProcedureDetailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* details( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithStreamedUnaryMethod_query : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -559,9 +692,36 @@ class ProcedureService final { // replace default version of method with streamed unary virtual ::grpc::Status Streamedmigrate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::MigrateRegionRequest,::greptime::v1::meta::MigrateRegionResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_query > > StreamedUnaryService; + template + class WithStreamedUnaryMethod_details : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_details() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::greptime::v1::meta::ProcedureDetailRequest, ::greptime::v1::meta::ProcedureDetailResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::greptime::v1::meta::ProcedureDetailRequest, ::greptime::v1::meta::ProcedureDetailResponse>* streamer) { + return this->Streameddetails(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_details() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status details(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::ProcedureDetailRequest* /*request*/, ::greptime::v1::meta::ProcedureDetailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // 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; 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 886fb031..6ce2fe6f 100644 --- a/c++/greptime/v1/meta/procedure.pb.cc +++ b/c++/greptime/v1/meta/procedure.pb.cc @@ -23,6 +23,24 @@ namespace _pbi = _pb::internal; namespace greptime { namespace v1 { namespace meta { +PROTOBUF_CONSTEXPR ProcedureMeta::ProcedureMeta( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.error_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.id_)*/nullptr + , /*decltype(_impl_.start_time_ms_)*/uint64_t{0u} + , /*decltype(_impl_.end_time_ms_)*/uint64_t{0u} + , /*decltype(_impl_.status_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ProcedureMetaDefaultTypeInternal { + PROTOBUF_CONSTEXPR ProcedureMetaDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ProcedureMetaDefaultTypeInternal() {} + union { + ProcedureMeta _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcedureMetaDefaultTypeInternal _ProcedureMeta_default_instance_; PROTOBUF_CONSTEXPR QueryProcedureRequest::QueryProcedureRequest( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.header_)*/nullptr @@ -52,14 +70,54 @@ struct ProcedureStateResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcedureStateResponseDefaultTypeInternal _ProcedureStateResponse_default_instance_; +PROTOBUF_CONSTEXPR ProcedureDetailRequest::ProcedureDetailRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.pids_)*/{} + , /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ProcedureDetailRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ProcedureDetailRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ProcedureDetailRequestDefaultTypeInternal() {} + union { + ProcedureDetailRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcedureDetailRequestDefaultTypeInternal _ProcedureDetailRequest_default_instance_; +PROTOBUF_CONSTEXPR ProcedureDetailResponse::ProcedureDetailResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.procedures_)*/{} + , /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ProcedureDetailResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ProcedureDetailResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ProcedureDetailResponseDefaultTypeInternal() {} + union { + ProcedureDetailResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcedureDetailResponseDefaultTypeInternal _ProcedureDetailResponse_default_instance_; } // namespace meta } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[2]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[5]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fprocedure_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fprocedure_2eproto = nullptr; const uint32_t TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _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::ProcedureMeta, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.status_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.start_time_ms_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.end_time_ms_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.error_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::QueryProcedureRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -77,40 +135,75 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto::offsets[] P PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureStateResponse, _impl_.header_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureStateResponse, _impl_.status_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureStateResponse, _impl_.error_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureDetailRequest, _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::ProcedureDetailRequest, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureDetailRequest, _impl_.pids_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureDetailResponse, _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::ProcedureDetailResponse, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureDetailResponse, _impl_.procedures_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::greptime::v1::meta::QueryProcedureRequest)}, - { 8, -1, -1, sizeof(::greptime::v1::meta::ProcedureStateResponse)}, + { 0, -1, -1, sizeof(::greptime::v1::meta::ProcedureMeta)}, + { 12, -1, -1, sizeof(::greptime::v1::meta::QueryProcedureRequest)}, + { 20, -1, -1, sizeof(::greptime::v1::meta::ProcedureStateResponse)}, + { 29, -1, -1, sizeof(::greptime::v1::meta::ProcedureDetailRequest)}, + { 37, -1, -1, sizeof(::greptime::v1::meta::ProcedureDetailResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { + &::greptime::v1::meta::_ProcedureMeta_default_instance_._instance, &::greptime::v1::meta::_QueryProcedureRequest_default_instance_._instance, &::greptime::v1::meta::_ProcedureStateResponse_default_instance_._instance, + &::greptime::v1::meta::_ProcedureDetailRequest_default_instance_._instance, + &::greptime::v1::meta::_ProcedureDetailResponse_default_instance_._instance, }; const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n greptime/v1/meta/procedure.proto\022\020grep" "time.v1.meta\032\035greptime/v1/meta/common.pr" "oto\032\032greptime/v1/meta/ddl.proto\032\035greptim" - "e/v1/meta/region.proto\"t\n\025QueryProcedure" - "Request\022/\n\006header\030\001 \001(\0132\037.greptime.v1.me" - "ta.RequestHeader\022*\n\003pid\030\002 \001(\0132\035.greptime" - ".v1.meta.ProcedureId\"\214\001\n\026ProcedureStateR" - "esponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.me" - "ta.ResponseHeader\0221\n\006status\030\002 \001(\0162!.grep" - "time.v1.meta.ProcedureStatus\022\r\n\005error\030\003 " - "\001(\t*h\n\017ProcedureStatus\022\013\n\007Running\020\000\022\010\n\004D" - "one\020\001\022\014\n\010Retrying\020\002\022\n\n\006Failed\020\003\022\023\n\017Prepa" - "reRollback\020\004\022\017\n\013RollingBack\020\0052\226\002\n\020Proced" - "ureService\022Z\n\005query\022\'.greptime.v1.meta.Q" - "ueryProcedureRequest\032(.greptime.v1.meta." - "ProcedureStateResponse\022J\n\003ddl\022 .greptime" - ".v1.meta.DdlTaskRequest\032!.greptime.v1.me" - "ta.DdlTaskResponse\022Z\n\007migrate\022&.greptime" - ".v1.meta.MigrateRegionRequest\032\'.greptime" - ".v1.meta.MigrateRegionResponseB_impl_.id_; +} +void ProcedureMeta::clear_id() { + if (GetArenaForAllocation() == nullptr && _impl_.id_ != nullptr) { + delete _impl_.id_; + } + _impl_.id_ = nullptr; +} +ProcedureMeta::ProcedureMeta(::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.ProcedureMeta) +} +ProcedureMeta::ProcedureMeta(const ProcedureMeta& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ProcedureMeta* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.error_){} + , decltype(_impl_.id_){nullptr} + , decltype(_impl_.start_time_ms_){} + , decltype(_impl_.end_time_ms_){} + , decltype(_impl_.status_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.error_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.error_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_error().empty()) { + _this->_impl_.error_.Set(from._internal_error(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_id()) { + _this->_impl_.id_ = new ::greptime::v1::meta::ProcedureId(*from._impl_.id_); + } + ::memcpy(&_impl_.start_time_ms_, &from._impl_.start_time_ms_, + static_cast(reinterpret_cast(&_impl_.status_) - + reinterpret_cast(&_impl_.start_time_ms_)) + sizeof(_impl_.status_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.ProcedureMeta) +} + +inline void ProcedureMeta::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.error_){} + , decltype(_impl_.id_){nullptr} + , decltype(_impl_.start_time_ms_){uint64_t{0u}} + , decltype(_impl_.end_time_ms_){uint64_t{0u}} + , decltype(_impl_.status_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.error_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.error_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ProcedureMeta::~ProcedureMeta() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.ProcedureMeta) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ProcedureMeta::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.error_.Destroy(); + if (this != internal_default_instance()) delete _impl_.id_; +} + +void ProcedureMeta::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ProcedureMeta::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.ProcedureMeta) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.error_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.id_ != nullptr) { + delete _impl_.id_; + } + _impl_.id_ = nullptr; + ::memset(&_impl_.start_time_ms_, 0, static_cast( + reinterpret_cast(&_impl_.status_) - + reinterpret_cast(&_impl_.start_time_ms_)) + sizeof(_impl_.status_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ProcedureMeta::_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.ProcedureId id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_id(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.ProcedureMeta.name")); + } else + goto handle_unusual; + continue; + // .greptime.v1.meta.ProcedureStatus status = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_status(static_cast<::greptime::v1::meta::ProcedureStatus>(val)); + } else + goto handle_unusual; + continue; + // uint64 start_time_ms = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.start_time_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 end_time_ms = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.end_time_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string error = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_error(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.ProcedureMeta.error")); + } 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* ProcedureMeta::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.ProcedureMeta) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.meta.ProcedureId id = 1; + if (this->_internal_has_id()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::id(this), + _Internal::id(this).GetCachedSize(), target, stream); + } + + // string name = 2; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.meta.ProcedureMeta.name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_name(), target); + } + + // .greptime.v1.meta.ProcedureStatus status = 3; + if (this->_internal_status() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this->_internal_status(), target); + } + + // uint64 start_time_ms = 4; + if (this->_internal_start_time_ms() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_start_time_ms(), target); + } + + // uint64 end_time_ms = 5; + if (this->_internal_end_time_ms() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_end_time_ms(), target); + } + + // string error = 6; + if (!this->_internal_error().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_error().data(), static_cast(this->_internal_error().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.meta.ProcedureMeta.error"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_error(), 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.ProcedureMeta) + return target; +} + +size_t ProcedureMeta::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.ProcedureMeta) + 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 name = 2; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string error = 6; + if (!this->_internal_error().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_error()); + } + + // .greptime.v1.meta.ProcedureId id = 1; + if (this->_internal_has_id()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.id_); + } + + // uint64 start_time_ms = 4; + if (this->_internal_start_time_ms() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start_time_ms()); + } + + // uint64 end_time_ms = 5; + if (this->_internal_end_time_ms() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_end_time_ms()); + } + + // .greptime.v1.meta.ProcedureStatus status = 3; + if (this->_internal_status() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcedureMeta::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ProcedureMeta::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcedureMeta::GetClassData() const { return &_class_data_; } + + +void ProcedureMeta::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.ProcedureMeta) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } + if (from._internal_has_id()) { + _this->_internal_mutable_id()->::greptime::v1::meta::ProcedureId::MergeFrom( + from._internal_id()); + } + if (from._internal_start_time_ms() != 0) { + _this->_internal_set_start_time_ms(from._internal_start_time_ms()); + } + if (from._internal_end_time_ms() != 0) { + _this->_internal_set_end_time_ms(from._internal_end_time_ms()); + } + if (from._internal_status() != 0) { + _this->_internal_set_status(from._internal_status()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ProcedureMeta::CopyFrom(const ProcedureMeta& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.ProcedureMeta) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcedureMeta::IsInitialized() const { + return true; +} + +void ProcedureMeta::InternalSwap(ProcedureMeta* 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_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.error_, lhs_arena, + &other->_impl_.error_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ProcedureMeta, _impl_.status_) + + sizeof(ProcedureMeta::_impl_.status_) + - PROTOBUF_FIELD_OFFSET(ProcedureMeta, _impl_.id_)>( + reinterpret_cast(&_impl_.id_), + reinterpret_cast(&other->_impl_.id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ProcedureMeta::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[0]); +} + +// =================================================================== + +class QueryProcedureRequest::_Internal { + public: + static const ::greptime::v1::meta::RequestHeader& header(const QueryProcedureRequest* msg); + static const ::greptime::v1::meta::ProcedureId& pid(const QueryProcedureRequest* msg); +}; + +const ::greptime::v1::meta::RequestHeader& +QueryProcedureRequest::_Internal::header(const QueryProcedureRequest* msg) { + return *msg->_impl_.header_; +} +const ::greptime::v1::meta::ProcedureId& +QueryProcedureRequest::_Internal::pid(const QueryProcedureRequest* msg) { + return *msg->_impl_.pid_; +} +void QueryProcedureRequest::clear_header() { + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; +} +void QueryProcedureRequest::clear_pid() { + if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) { + delete _impl_.pid_; + } + _impl_.pid_ = nullptr; +} +QueryProcedureRequest::QueryProcedureRequest(::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.QueryProcedureRequest) +} +QueryProcedureRequest::QueryProcedureRequest(const QueryProcedureRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + QueryProcedureRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.pid_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_header()) { + _this->_impl_.header_ = new ::greptime::v1::meta::RequestHeader(*from._impl_.header_); + } + if (from._internal_has_pid()) { + _this->_impl_.pid_ = new ::greptime::v1::meta::ProcedureId(*from._impl_.pid_); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.QueryProcedureRequest) +} + +inline void QueryProcedureRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.pid_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +QueryProcedureRequest::~QueryProcedureRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.QueryProcedureRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void QueryProcedureRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.header_; + if (this != internal_default_instance()) delete _impl_.pid_; +} + +void QueryProcedureRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void QueryProcedureRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.QueryProcedureRequest) + 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_.pid_ != nullptr) { + delete _impl_.pid_; + } + _impl_.pid_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* QueryProcedureRequest::_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; + // .greptime.v1.meta.ProcedureId pid = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_pid(), 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* QueryProcedureRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.QueryProcedureRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.meta.RequestHeader header = 1; + if (this->_internal_has_header()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::header(this), + _Internal::header(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.meta.ProcedureId pid = 2; + if (this->_internal_has_pid()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::pid(this), + _Internal::pid(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.QueryProcedureRequest) + return target; +} + +size_t QueryProcedureRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.QueryProcedureRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .greptime.v1.meta.RequestHeader header = 1; + if (this->_internal_has_header()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.header_); + } + + // .greptime.v1.meta.ProcedureId pid = 2; + if (this->_internal_has_pid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.pid_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData QueryProcedureRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + QueryProcedureRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*QueryProcedureRequest::GetClassData() const { return &_class_data_; } + + +void QueryProcedureRequest::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.QueryProcedureRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_header()) { + _this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom( + from._internal_header()); + } + if (from._internal_has_pid()) { + _this->_internal_mutable_pid()->::greptime::v1::meta::ProcedureId::MergeFrom( + from._internal_pid()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void QueryProcedureRequest::CopyFrom(const QueryProcedureRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.QueryProcedureRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QueryProcedureRequest::IsInitialized() const { + return true; +} + +void QueryProcedureRequest::InternalSwap(QueryProcedureRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(QueryProcedureRequest, _impl_.pid_) + + sizeof(QueryProcedureRequest::_impl_.pid_) + - PROTOBUF_FIELD_OFFSET(QueryProcedureRequest, _impl_.header_)>( + reinterpret_cast(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata QueryProcedureRequest::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[1]); +} + +// =================================================================== + +class ProcedureStateResponse::_Internal { + public: + static const ::greptime::v1::meta::ResponseHeader& header(const ProcedureStateResponse* msg); +}; + +const ::greptime::v1::meta::ResponseHeader& +ProcedureStateResponse::_Internal::header(const ProcedureStateResponse* msg) { + return *msg->_impl_.header_; +} +void ProcedureStateResponse::clear_header() { + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; +} +ProcedureStateResponse::ProcedureStateResponse(::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.ProcedureStateResponse) +} +ProcedureStateResponse::ProcedureStateResponse(const ProcedureStateResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ProcedureStateResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.error_){} + , decltype(_impl_.header_){nullptr} + , decltype(_impl_.status_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.error_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.error_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_error().empty()) { + _this->_impl_.error_.Set(from._internal_error(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_header()) { + _this->_impl_.header_ = new ::greptime::v1::meta::ResponseHeader(*from._impl_.header_); + } + _this->_impl_.status_ = from._impl_.status_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.ProcedureStateResponse) +} + +inline void ProcedureStateResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.error_){} + , decltype(_impl_.header_){nullptr} + , decltype(_impl_.status_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.error_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.error_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ProcedureStateResponse::~ProcedureStateResponse() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.ProcedureStateResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ProcedureStateResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.error_.Destroy(); + if (this != internal_default_instance()) delete _impl_.header_; +} + +void ProcedureStateResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ProcedureStateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.ProcedureStateResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.error_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; + _impl_.status_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ProcedureStateResponse::_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.ProcedureStatus status = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_status(static_cast<::greptime::v1::meta::ProcedureStatus>(val)); + } else + goto handle_unusual; + continue; + // string error = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_error(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.ProcedureStateResponse.error")); + } 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* ProcedureStateResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.ProcedureStateResponse) + 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.ProcedureStatus status = 2; + if (this->_internal_status() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_status(), target); + } + + // string error = 3; + if (!this->_internal_error().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_error().data(), static_cast(this->_internal_error().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.meta.ProcedureStateResponse.error"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_error(), 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.ProcedureStateResponse) + return target; +} + +size_t ProcedureStateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.ProcedureStateResponse) + 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 error = 3; + if (!this->_internal_error().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_error()); + } + + // .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.ProcedureStatus status = 2; + if (this->_internal_status() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcedureStateResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ProcedureStateResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcedureStateResponse::GetClassData() const { return &_class_data_; } + + +void ProcedureStateResponse::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.ProcedureStateResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } + if (from._internal_has_header()) { + _this->_internal_mutable_header()->::greptime::v1::meta::ResponseHeader::MergeFrom( + from._internal_header()); + } + if (from._internal_status() != 0) { + _this->_internal_set_status(from._internal_status()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ProcedureStateResponse::CopyFrom(const ProcedureStateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.ProcedureStateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); } -bool ProcedureStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } + +bool ProcedureStateResponse::IsInitialized() const { + return true; +} + +void ProcedureStateResponse::InternalSwap(ProcedureStateResponse* 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_.error_, lhs_arena, + &other->_impl_.error_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ProcedureStateResponse, _impl_.status_) + + sizeof(ProcedureStateResponse::_impl_.status_) + - PROTOBUF_FIELD_OFFSET(ProcedureStateResponse, _impl_.header_)>( + reinterpret_cast(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); } +::PROTOBUF_NAMESPACE_ID::Metadata ProcedureStateResponse::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[2]); +} // =================================================================== -class QueryProcedureRequest::_Internal { +class ProcedureDetailRequest::_Internal { public: - static const ::greptime::v1::meta::RequestHeader& header(const QueryProcedureRequest* msg); - static const ::greptime::v1::meta::ProcedureId& pid(const QueryProcedureRequest* msg); + static const ::greptime::v1::meta::RequestHeader& header(const ProcedureDetailRequest* msg); }; const ::greptime::v1::meta::RequestHeader& -QueryProcedureRequest::_Internal::header(const QueryProcedureRequest* msg) { +ProcedureDetailRequest::_Internal::header(const ProcedureDetailRequest* msg) { return *msg->_impl_.header_; } -const ::greptime::v1::meta::ProcedureId& -QueryProcedureRequest::_Internal::pid(const QueryProcedureRequest* msg) { - return *msg->_impl_.pid_; -} -void QueryProcedureRequest::clear_header() { +void ProcedureDetailRequest::clear_header() { if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; } _impl_.header_ = nullptr; } -void QueryProcedureRequest::clear_pid() { - if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) { - delete _impl_.pid_; - } - _impl_.pid_ = nullptr; +void ProcedureDetailRequest::clear_pids() { + _impl_.pids_.Clear(); } -QueryProcedureRequest::QueryProcedureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ProcedureDetailRequest::ProcedureDetailRequest(::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.QueryProcedureRequest) + // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.ProcedureDetailRequest) } -QueryProcedureRequest::QueryProcedureRequest(const QueryProcedureRequest& from) +ProcedureDetailRequest::ProcedureDetailRequest(const ProcedureDetailRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - QueryProcedureRequest* const _this = this; (void)_this; + ProcedureDetailRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.header_){nullptr} - , decltype(_impl_.pid_){nullptr} + decltype(_impl_.pids_){from._impl_.pids_} + , decltype(_impl_.header_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_header()) { _this->_impl_.header_ = new ::greptime::v1::meta::RequestHeader(*from._impl_.header_); } - if (from._internal_has_pid()) { - _this->_impl_.pid_ = new ::greptime::v1::meta::ProcedureId(*from._impl_.pid_); - } - // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.QueryProcedureRequest) + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.ProcedureDetailRequest) } -inline void QueryProcedureRequest::SharedCtor( +inline void ProcedureDetailRequest::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.header_){nullptr} - , decltype(_impl_.pid_){nullptr} + decltype(_impl_.pids_){arena} + , decltype(_impl_.header_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; } -QueryProcedureRequest::~QueryProcedureRequest() { - // @@protoc_insertion_point(destructor:greptime.v1.meta.QueryProcedureRequest) +ProcedureDetailRequest::~ProcedureDetailRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.ProcedureDetailRequest) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -226,34 +1231,31 @@ QueryProcedureRequest::~QueryProcedureRequest() { SharedDtor(); } -inline void QueryProcedureRequest::SharedDtor() { +inline void ProcedureDetailRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.pids_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.header_; - if (this != internal_default_instance()) delete _impl_.pid_; } -void QueryProcedureRequest::SetCachedSize(int size) const { +void ProcedureDetailRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void QueryProcedureRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.QueryProcedureRequest) +void ProcedureDetailRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.ProcedureDetailRequest) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.pids_.Clear(); if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; } _impl_.header_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) { - delete _impl_.pid_; - } - _impl_.pid_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* QueryProcedureRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ProcedureDetailRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -267,11 +1269,16 @@ const char* QueryProcedureRequest::_InternalParse(const char* ptr, ::_pbi::Parse } else goto handle_unusual; continue; - // .greptime.v1.meta.ProcedureId pid = 2; + // repeated .greptime.v1.meta.ProcedureId pids = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_pid(), ptr); - CHK_(ptr); + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_pids(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); } else goto handle_unusual; continue; @@ -298,9 +1305,9 @@ const char* QueryProcedureRequest::_InternalParse(const char* ptr, ::_pbi::Parse #undef CHK_ } -uint8_t* QueryProcedureRequest::_InternalSerialize( +uint8_t* ProcedureDetailRequest::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.QueryProcedureRequest) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.ProcedureDetailRequest) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -311,29 +1318,37 @@ uint8_t* QueryProcedureRequest::_InternalSerialize( _Internal::header(this).GetCachedSize(), target, stream); } - // .greptime.v1.meta.ProcedureId pid = 2; - if (this->_internal_has_pid()) { + // repeated .greptime.v1.meta.ProcedureId pids = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_pids_size()); i < n; i++) { + const auto& repfield = this->_internal_pids(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::pid(this), - _Internal::pid(this).GetCachedSize(), target, stream); + InternalWriteMessage(2, repfield, repfield.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.QueryProcedureRequest) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.ProcedureDetailRequest) return target; } -size_t QueryProcedureRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.QueryProcedureRequest) +size_t ProcedureDetailRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.ProcedureDetailRequest) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .greptime.v1.meta.ProcedureId pids = 2; + total_size += 1UL * this->_internal_pids_size(); + for (const auto& msg : this->_impl_.pids_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + // .greptime.v1.meta.RequestHeader header = 1; if (this->_internal_has_header()) { total_size += 1 + @@ -341,136 +1356,107 @@ size_t QueryProcedureRequest::ByteSizeLong() const { *_impl_.header_); } - // .greptime.v1.meta.ProcedureId pid = 2; - if (this->_internal_has_pid()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.pid_); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData QueryProcedureRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcedureDetailRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - QueryProcedureRequest::MergeImpl + ProcedureDetailRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*QueryProcedureRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcedureDetailRequest::GetClassData() const { return &_class_data_; } -void QueryProcedureRequest::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.QueryProcedureRequest) +void ProcedureDetailRequest::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.ProcedureDetailRequest) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_impl_.pids_.MergeFrom(from._impl_.pids_); if (from._internal_has_header()) { _this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom( from._internal_header()); } - if (from._internal_has_pid()) { - _this->_internal_mutable_pid()->::greptime::v1::meta::ProcedureId::MergeFrom( - from._internal_pid()); - } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void QueryProcedureRequest::CopyFrom(const QueryProcedureRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.QueryProcedureRequest) +void ProcedureDetailRequest::CopyFrom(const ProcedureDetailRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.ProcedureDetailRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool QueryProcedureRequest::IsInitialized() const { +bool ProcedureDetailRequest::IsInitialized() const { return true; } -void QueryProcedureRequest::InternalSwap(QueryProcedureRequest* other) { +void ProcedureDetailRequest::InternalSwap(ProcedureDetailRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(QueryProcedureRequest, _impl_.pid_) - + sizeof(QueryProcedureRequest::_impl_.pid_) - - PROTOBUF_FIELD_OFFSET(QueryProcedureRequest, _impl_.header_)>( - reinterpret_cast(&_impl_.header_), - reinterpret_cast(&other->_impl_.header_)); + _impl_.pids_.InternalSwap(&other->_impl_.pids_); + swap(_impl_.header_, other->_impl_.header_); } -::PROTOBUF_NAMESPACE_ID::Metadata QueryProcedureRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ProcedureDetailRequest::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[0]); + file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[3]); } // =================================================================== -class ProcedureStateResponse::_Internal { +class ProcedureDetailResponse::_Internal { public: - static const ::greptime::v1::meta::ResponseHeader& header(const ProcedureStateResponse* msg); + static const ::greptime::v1::meta::ResponseHeader& header(const ProcedureDetailResponse* msg); }; const ::greptime::v1::meta::ResponseHeader& -ProcedureStateResponse::_Internal::header(const ProcedureStateResponse* msg) { +ProcedureDetailResponse::_Internal::header(const ProcedureDetailResponse* msg) { return *msg->_impl_.header_; } -void ProcedureStateResponse::clear_header() { +void ProcedureDetailResponse::clear_header() { if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; } _impl_.header_ = nullptr; } -ProcedureStateResponse::ProcedureStateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ProcedureDetailResponse::ProcedureDetailResponse(::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.ProcedureStateResponse) + // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.ProcedureDetailResponse) } -ProcedureStateResponse::ProcedureStateResponse(const ProcedureStateResponse& from) +ProcedureDetailResponse::ProcedureDetailResponse(const ProcedureDetailResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - ProcedureStateResponse* const _this = this; (void)_this; + ProcedureDetailResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.error_){} + decltype(_impl_.procedures_){from._impl_.procedures_} , decltype(_impl_.header_){nullptr} - , decltype(_impl_.status_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.error_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.error_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_error().empty()) { - _this->_impl_.error_.Set(from._internal_error(), - _this->GetArenaForAllocation()); - } if (from._internal_has_header()) { _this->_impl_.header_ = new ::greptime::v1::meta::ResponseHeader(*from._impl_.header_); } - _this->_impl_.status_ = from._impl_.status_; - // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.ProcedureStateResponse) + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.ProcedureDetailResponse) } -inline void ProcedureStateResponse::SharedCtor( +inline void ProcedureDetailResponse::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.error_){} + decltype(_impl_.procedures_){arena} , decltype(_impl_.header_){nullptr} - , decltype(_impl_.status_){0} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.error_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.error_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -ProcedureStateResponse::~ProcedureStateResponse() { - // @@protoc_insertion_point(destructor:greptime.v1.meta.ProcedureStateResponse) +ProcedureDetailResponse::~ProcedureDetailResponse() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.ProcedureDetailResponse) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -478,32 +1464,31 @@ ProcedureStateResponse::~ProcedureStateResponse() { SharedDtor(); } -inline void ProcedureStateResponse::SharedDtor() { +inline void ProcedureDetailResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.error_.Destroy(); + _impl_.procedures_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.header_; } -void ProcedureStateResponse::SetCachedSize(int size) const { +void ProcedureDetailResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void ProcedureStateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.ProcedureStateResponse) +void ProcedureDetailResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.ProcedureDetailResponse) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.error_.ClearToEmpty(); + _impl_.procedures_.Clear(); if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; } _impl_.header_ = nullptr; - _impl_.status_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ProcedureStateResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ProcedureDetailResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -517,22 +1502,16 @@ const char* ProcedureStateResponse::_InternalParse(const char* ptr, ::_pbi::Pars } else goto handle_unusual; continue; - // .greptime.v1.meta.ProcedureStatus status = 2; + // repeated .greptime.v1.meta.ProcedureMeta procedures = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_status(static_cast<::greptime::v1::meta::ProcedureStatus>(val)); - } else - goto handle_unusual; - continue; - // string error = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_error(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.ProcedureStateResponse.error")); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_procedures(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); } else goto handle_unusual; continue; @@ -559,9 +1538,9 @@ const char* ProcedureStateResponse::_InternalParse(const char* ptr, ::_pbi::Pars #undef CHK_ } -uint8_t* ProcedureStateResponse::_InternalSerialize( +uint8_t* ProcedureDetailResponse::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.ProcedureStateResponse) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.ProcedureDetailResponse) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -572,44 +1551,35 @@ uint8_t* ProcedureStateResponse::_InternalSerialize( _Internal::header(this).GetCachedSize(), target, stream); } - // .greptime.v1.meta.ProcedureStatus status = 2; - if (this->_internal_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_status(), target); - } - - // string error = 3; - if (!this->_internal_error().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_error().data(), static_cast(this->_internal_error().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.meta.ProcedureStateResponse.error"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_error(), target); + // repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_procedures_size()); i < n; i++) { + const auto& repfield = this->_internal_procedures(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.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.ProcedureStateResponse) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.ProcedureDetailResponse) return target; } -size_t ProcedureStateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.ProcedureStateResponse) +size_t ProcedureDetailResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.ProcedureDetailResponse) 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 error = 3; - if (!this->_internal_error().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_error()); + // repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + total_size += 1UL * this->_internal_procedures_size(); + for (const auto& msg : this->_impl_.procedures_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // .greptime.v1.meta.ResponseHeader header = 1; @@ -619,75 +1589,54 @@ size_t ProcedureStateResponse::ByteSizeLong() const { *_impl_.header_); } - // .greptime.v1.meta.ProcedureStatus status = 2; - if (this->_internal_status() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcedureStateResponse::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcedureDetailResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ProcedureStateResponse::MergeImpl + ProcedureDetailResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcedureStateResponse::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcedureDetailResponse::GetClassData() const { return &_class_data_; } -void ProcedureStateResponse::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.ProcedureStateResponse) +void ProcedureDetailResponse::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.ProcedureDetailResponse) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } + _this->_impl_.procedures_.MergeFrom(from._impl_.procedures_); if (from._internal_has_header()) { _this->_internal_mutable_header()->::greptime::v1::meta::ResponseHeader::MergeFrom( from._internal_header()); } - if (from._internal_status() != 0) { - _this->_internal_set_status(from._internal_status()); - } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ProcedureStateResponse::CopyFrom(const ProcedureStateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.ProcedureStateResponse) +void ProcedureDetailResponse::CopyFrom(const ProcedureDetailResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.ProcedureDetailResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool ProcedureStateResponse::IsInitialized() const { +bool ProcedureDetailResponse::IsInitialized() const { return true; } -void ProcedureStateResponse::InternalSwap(ProcedureStateResponse* other) { +void ProcedureDetailResponse::InternalSwap(ProcedureDetailResponse* 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_.error_, lhs_arena, - &other->_impl_.error_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ProcedureStateResponse, _impl_.status_) - + sizeof(ProcedureStateResponse::_impl_.status_) - - PROTOBUF_FIELD_OFFSET(ProcedureStateResponse, _impl_.header_)>( - reinterpret_cast(&_impl_.header_), - reinterpret_cast(&other->_impl_.header_)); + _impl_.procedures_.InternalSwap(&other->_impl_.procedures_); + swap(_impl_.header_, other->_impl_.header_); } -::PROTOBUF_NAMESPACE_ID::Metadata ProcedureStateResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ProcedureDetailResponse::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[1]); + file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[4]); } // @@protoc_insertion_point(namespace_scope) @@ -695,6 +1644,10 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ProcedureStateResponse::GetMetadata() const { } // namespace v1 } // namespace greptime PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::ProcedureMeta* +Arena::CreateMaybeMessage< ::greptime::v1::meta::ProcedureMeta >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::ProcedureMeta >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::meta::QueryProcedureRequest* Arena::CreateMaybeMessage< ::greptime::v1::meta::QueryProcedureRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::QueryProcedureRequest >(arena); @@ -703,6 +1656,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::ProcedureStateResponse* Arena::CreateMaybeMessage< ::greptime::v1::meta::ProcedureStateResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::ProcedureStateResponse >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::ProcedureDetailRequest* +Arena::CreateMaybeMessage< ::greptime::v1::meta::ProcedureDetailRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::ProcedureDetailRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::ProcedureDetailResponse* +Arena::CreateMaybeMessage< ::greptime::v1::meta::ProcedureDetailResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::ProcedureDetailResponse >(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 5b4fc860..86a72f96 100644 --- a/c++/greptime/v1/meta/procedure.pb.h +++ b/c++/greptime/v1/meta/procedure.pb.h @@ -51,6 +51,15 @@ extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table namespace greptime { namespace v1 { namespace meta { +class ProcedureDetailRequest; +struct ProcedureDetailRequestDefaultTypeInternal; +extern ProcedureDetailRequestDefaultTypeInternal _ProcedureDetailRequest_default_instance_; +class ProcedureDetailResponse; +struct ProcedureDetailResponseDefaultTypeInternal; +extern ProcedureDetailResponseDefaultTypeInternal _ProcedureDetailResponse_default_instance_; +class ProcedureMeta; +struct ProcedureMetaDefaultTypeInternal; +extern ProcedureMetaDefaultTypeInternal _ProcedureMeta_default_instance_; class ProcedureStateResponse; struct ProcedureStateResponseDefaultTypeInternal; extern ProcedureStateResponseDefaultTypeInternal _ProcedureStateResponse_default_instance_; @@ -61,6 +70,9 @@ extern QueryProcedureRequestDefaultTypeInternal _QueryProcedureRequest_default_i } // namespace v1 } // namespace greptime PROTOBUF_NAMESPACE_OPEN +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*); template<> ::greptime::v1::meta::ProcedureStateResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::ProcedureStateResponse>(Arena*); template<> ::greptime::v1::meta::QueryProcedureRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::QueryProcedureRequest>(Arena*); PROTOBUF_NAMESPACE_CLOSE @@ -99,6 +111,228 @@ inline bool ProcedureStatus_Parse( } // =================================================================== +class ProcedureMeta final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.ProcedureMeta) */ { + public: + inline ProcedureMeta() : ProcedureMeta(nullptr) {} + ~ProcedureMeta() override; + explicit PROTOBUF_CONSTEXPR ProcedureMeta(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ProcedureMeta(const ProcedureMeta& from); + ProcedureMeta(ProcedureMeta&& from) noexcept + : ProcedureMeta() { + *this = ::std::move(from); + } + + inline ProcedureMeta& operator=(const ProcedureMeta& from) { + CopyFrom(from); + return *this; + } + inline ProcedureMeta& operator=(ProcedureMeta&& 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 ProcedureMeta& default_instance() { + return *internal_default_instance(); + } + static inline const ProcedureMeta* internal_default_instance() { + return reinterpret_cast( + &_ProcedureMeta_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(ProcedureMeta& a, ProcedureMeta& b) { + a.Swap(&b); + } + inline void Swap(ProcedureMeta* 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(ProcedureMeta* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ProcedureMeta* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ProcedureMeta& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ProcedureMeta& from) { + ProcedureMeta::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(ProcedureMeta* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.ProcedureMeta"; + } + protected: + explicit ProcedureMeta(::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 { + kNameFieldNumber = 2, + kErrorFieldNumber = 6, + kIdFieldNumber = 1, + kStartTimeMsFieldNumber = 4, + kEndTimeMsFieldNumber = 5, + kStatusFieldNumber = 3, + }; + // string name = 2; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string error = 6; + void clear_error(); + const std::string& error() const; + template + void set_error(ArgT0&& arg0, ArgT... args); + std::string* mutable_error(); + PROTOBUF_NODISCARD std::string* release_error(); + void set_allocated_error(std::string* error); + private: + const std::string& _internal_error() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_error(const std::string& value); + std::string* _internal_mutable_error(); + public: + + // .greptime.v1.meta.ProcedureId id = 1; + bool has_id() const; + private: + bool _internal_has_id() const; + public: + void clear_id(); + const ::greptime::v1::meta::ProcedureId& id() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::ProcedureId* release_id(); + ::greptime::v1::meta::ProcedureId* mutable_id(); + void set_allocated_id(::greptime::v1::meta::ProcedureId* id); + private: + const ::greptime::v1::meta::ProcedureId& _internal_id() const; + ::greptime::v1::meta::ProcedureId* _internal_mutable_id(); + public: + void unsafe_arena_set_allocated_id( + ::greptime::v1::meta::ProcedureId* id); + ::greptime::v1::meta::ProcedureId* unsafe_arena_release_id(); + + // uint64 start_time_ms = 4; + void clear_start_time_ms(); + uint64_t start_time_ms() const; + void set_start_time_ms(uint64_t value); + private: + uint64_t _internal_start_time_ms() const; + void _internal_set_start_time_ms(uint64_t value); + public: + + // uint64 end_time_ms = 5; + void clear_end_time_ms(); + uint64_t end_time_ms() const; + void set_end_time_ms(uint64_t value); + private: + uint64_t _internal_end_time_ms() const; + void _internal_set_end_time_ms(uint64_t value); + public: + + // .greptime.v1.meta.ProcedureStatus status = 3; + void clear_status(); + ::greptime::v1::meta::ProcedureStatus status() const; + void set_status(::greptime::v1::meta::ProcedureStatus value); + private: + ::greptime::v1::meta::ProcedureStatus _internal_status() const; + void _internal_set_status(::greptime::v1::meta::ProcedureStatus value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureMeta) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_; + ::greptime::v1::meta::ProcedureId* id_; + uint64_t start_time_ms_; + uint64_t end_time_ms_; + int status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto; +}; +// ------------------------------------------------------------------- + class QueryProcedureRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.QueryProcedureRequest) */ { public: @@ -147,7 +381,7 @@ class QueryProcedureRequest final : &_QueryProcedureRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 1; friend void swap(QueryProcedureRequest& a, QueryProcedureRequest& b) { a.Swap(&b); @@ -324,7 +558,7 @@ class ProcedureStateResponse final : &_ProcedureStateResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 2; friend void swap(ProcedureStateResponse& a, ProcedureStateResponse& b) { a.Swap(&b); @@ -458,93 +692,696 @@ class ProcedureStateResponse final : union { Impl_ _impl_; }; friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto; }; -// =================================================================== +// ------------------------------------------------------------------- +class ProcedureDetailRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.ProcedureDetailRequest) */ { + public: + inline ProcedureDetailRequest() : ProcedureDetailRequest(nullptr) {} + ~ProcedureDetailRequest() override; + explicit PROTOBUF_CONSTEXPR ProcedureDetailRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); -// =================================================================== + ProcedureDetailRequest(const ProcedureDetailRequest& from); + ProcedureDetailRequest(ProcedureDetailRequest&& from) noexcept + : ProcedureDetailRequest() { + *this = ::std::move(from); + } -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// QueryProcedureRequest + inline ProcedureDetailRequest& operator=(const ProcedureDetailRequest& from) { + CopyFrom(from); + return *this; + } + inline ProcedureDetailRequest& operator=(ProcedureDetailRequest&& 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; + } -// .greptime.v1.meta.RequestHeader header = 1; -inline bool QueryProcedureRequest::_internal_has_header() const { - return this != internal_default_instance() && _impl_.header_ != nullptr; -} -inline bool QueryProcedureRequest::has_header() const { - return _internal_has_header(); -} -inline const ::greptime::v1::meta::RequestHeader& QueryProcedureRequest::_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& QueryProcedureRequest::header() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.QueryProcedureRequest.header) - return _internal_header(); -} -inline void QueryProcedureRequest::unsafe_arena_set_allocated_header( - ::greptime::v1::meta::RequestHeader* header) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); } - _impl_.header_ = header; - if (header) { - - } else { - + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.QueryProcedureRequest.header) -} -inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::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); + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::unsafe_arena_release_header() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.QueryProcedureRequest.header) - - ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; - _impl_.header_ = nullptr; - return temp; -} -inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::_internal_mutable_header() { - - if (_impl_.header_ == nullptr) { - auto* p = CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(GetArenaForAllocation()); - _impl_.header_ = p; + static const ProcedureDetailRequest& default_instance() { + return *internal_default_instance(); } - return _impl_.header_; -} -inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::mutable_header() { - ::greptime::v1::meta::RequestHeader* _msg = _internal_mutable_header(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.QueryProcedureRequest.header) - return _msg; -} -inline void QueryProcedureRequest::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_); + static inline const ProcedureDetailRequest* internal_default_instance() { + return reinterpret_cast( + &_ProcedureDetailRequest_default_instance_); } - 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); + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(ProcedureDetailRequest& a, ProcedureDetailRequest& b) { + a.Swap(&b); + } + inline void Swap(ProcedureDetailRequest* 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(ProcedureDetailRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ProcedureDetailRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ProcedureDetailRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ProcedureDetailRequest& from) { + ProcedureDetailRequest::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(ProcedureDetailRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.ProcedureDetailRequest"; + } + protected: + explicit ProcedureDetailRequest(::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 { + kPidsFieldNumber = 2, + kHeaderFieldNumber = 1, + }; + // repeated .greptime.v1.meta.ProcedureId pids = 2; + int pids_size() const; + private: + int _internal_pids_size() const; + public: + void clear_pids(); + ::greptime::v1::meta::ProcedureId* mutable_pids(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureId >* + mutable_pids(); + private: + const ::greptime::v1::meta::ProcedureId& _internal_pids(int index) const; + ::greptime::v1::meta::ProcedureId* _internal_add_pids(); + public: + const ::greptime::v1::meta::ProcedureId& pids(int index) const; + ::greptime::v1::meta::ProcedureId* add_pids(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureId >& + pids() const; + + // .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(); + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureDetailRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureId > pids_; + ::greptime::v1::meta::RequestHeader* header_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto; +}; +// ------------------------------------------------------------------- + +class ProcedureDetailResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.ProcedureDetailResponse) */ { + public: + inline ProcedureDetailResponse() : ProcedureDetailResponse(nullptr) {} + ~ProcedureDetailResponse() override; + explicit PROTOBUF_CONSTEXPR ProcedureDetailResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ProcedureDetailResponse(const ProcedureDetailResponse& from); + ProcedureDetailResponse(ProcedureDetailResponse&& from) noexcept + : ProcedureDetailResponse() { + *this = ::std::move(from); + } + + inline ProcedureDetailResponse& operator=(const ProcedureDetailResponse& from) { + CopyFrom(from); + return *this; + } + inline ProcedureDetailResponse& operator=(ProcedureDetailResponse&& 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 ProcedureDetailResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ProcedureDetailResponse* internal_default_instance() { + return reinterpret_cast( + &_ProcedureDetailResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(ProcedureDetailResponse& a, ProcedureDetailResponse& b) { + a.Swap(&b); + } + inline void Swap(ProcedureDetailResponse* 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(ProcedureDetailResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ProcedureDetailResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ProcedureDetailResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ProcedureDetailResponse& from) { + ProcedureDetailResponse::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(ProcedureDetailResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.ProcedureDetailResponse"; + } + protected: + explicit ProcedureDetailResponse(::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 { + kProceduresFieldNumber = 2, + kHeaderFieldNumber = 1, + }; + // repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + int procedures_size() const; + private: + int _internal_procedures_size() const; + public: + void clear_procedures(); + ::greptime::v1::meta::ProcedureMeta* mutable_procedures(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureMeta >* + mutable_procedures(); + private: + const ::greptime::v1::meta::ProcedureMeta& _internal_procedures(int index) const; + ::greptime::v1::meta::ProcedureMeta* _internal_add_procedures(); + public: + const ::greptime::v1::meta::ProcedureMeta& procedures(int index) const; + ::greptime::v1::meta::ProcedureMeta* add_procedures(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureMeta >& + procedures() const; + + // .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(); + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureDetailResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureMeta > procedures_; + ::greptime::v1::meta::ResponseHeader* header_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ProcedureMeta + +// .greptime.v1.meta.ProcedureId id = 1; +inline bool ProcedureMeta::_internal_has_id() const { + return this != internal_default_instance() && _impl_.id_ != nullptr; +} +inline bool ProcedureMeta::has_id() const { + return _internal_has_id(); +} +inline const ::greptime::v1::meta::ProcedureId& ProcedureMeta::_internal_id() const { + const ::greptime::v1::meta::ProcedureId* p = _impl_.id_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_ProcedureId_default_instance_); +} +inline const ::greptime::v1::meta::ProcedureId& ProcedureMeta::id() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.id) + return _internal_id(); +} +inline void ProcedureMeta::unsafe_arena_set_allocated_id( + ::greptime::v1::meta::ProcedureId* id) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.id_); + } + _impl_.id_ = id; + if (id) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.ProcedureMeta.id) +} +inline ::greptime::v1::meta::ProcedureId* ProcedureMeta::release_id() { + + ::greptime::v1::meta::ProcedureId* temp = _impl_.id_; + _impl_.id_ = 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::ProcedureId* ProcedureMeta::unsafe_arena_release_id() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureMeta.id) + + ::greptime::v1::meta::ProcedureId* temp = _impl_.id_; + _impl_.id_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::ProcedureId* ProcedureMeta::_internal_mutable_id() { + + if (_impl_.id_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::ProcedureId>(GetArenaForAllocation()); + _impl_.id_ = p; + } + return _impl_.id_; +} +inline ::greptime::v1::meta::ProcedureId* ProcedureMeta::mutable_id() { + ::greptime::v1::meta::ProcedureId* _msg = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureMeta.id) + return _msg; +} +inline void ProcedureMeta::set_allocated_id(::greptime::v1::meta::ProcedureId* id) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.id_); + } + if (id) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(id)); + if (message_arena != submessage_arena) { + id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + _impl_.id_ = id; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureMeta.id) +} + +// string name = 2; +inline void ProcedureMeta::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& ProcedureMeta::name() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ProcedureMeta::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.name) +} +inline std::string* ProcedureMeta::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureMeta.name) + return _s; +} +inline const std::string& ProcedureMeta::_internal_name() const { + return _impl_.name_.Get(); +} +inline void ProcedureMeta::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ProcedureMeta::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ProcedureMeta::release_name() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureMeta.name) + return _impl_.name_.Release(); +} +inline void ProcedureMeta::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureMeta.name) +} + +// .greptime.v1.meta.ProcedureStatus status = 3; +inline void ProcedureMeta::clear_status() { + _impl_.status_ = 0; +} +inline ::greptime::v1::meta::ProcedureStatus ProcedureMeta::_internal_status() const { + return static_cast< ::greptime::v1::meta::ProcedureStatus >(_impl_.status_); +} +inline ::greptime::v1::meta::ProcedureStatus ProcedureMeta::status() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.status) + return _internal_status(); +} +inline void ProcedureMeta::_internal_set_status(::greptime::v1::meta::ProcedureStatus value) { + + _impl_.status_ = value; +} +inline void ProcedureMeta::set_status(::greptime::v1::meta::ProcedureStatus value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.status) +} + +// uint64 start_time_ms = 4; +inline void ProcedureMeta::clear_start_time_ms() { + _impl_.start_time_ms_ = uint64_t{0u}; +} +inline uint64_t ProcedureMeta::_internal_start_time_ms() const { + return _impl_.start_time_ms_; +} +inline uint64_t ProcedureMeta::start_time_ms() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.start_time_ms) + return _internal_start_time_ms(); +} +inline void ProcedureMeta::_internal_set_start_time_ms(uint64_t value) { + + _impl_.start_time_ms_ = value; +} +inline void ProcedureMeta::set_start_time_ms(uint64_t value) { + _internal_set_start_time_ms(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.start_time_ms) +} + +// uint64 end_time_ms = 5; +inline void ProcedureMeta::clear_end_time_ms() { + _impl_.end_time_ms_ = uint64_t{0u}; +} +inline uint64_t ProcedureMeta::_internal_end_time_ms() const { + return _impl_.end_time_ms_; +} +inline uint64_t ProcedureMeta::end_time_ms() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.end_time_ms) + return _internal_end_time_ms(); +} +inline void ProcedureMeta::_internal_set_end_time_ms(uint64_t value) { + + _impl_.end_time_ms_ = value; +} +inline void ProcedureMeta::set_end_time_ms(uint64_t value) { + _internal_set_end_time_ms(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.end_time_ms) +} + +// string error = 6; +inline void ProcedureMeta::clear_error() { + _impl_.error_.ClearToEmpty(); +} +inline const std::string& ProcedureMeta::error() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.error) + return _internal_error(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ProcedureMeta::set_error(ArgT0&& arg0, ArgT... args) { + + _impl_.error_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.error) +} +inline std::string* ProcedureMeta::mutable_error() { + std::string* _s = _internal_mutable_error(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureMeta.error) + return _s; +} +inline const std::string& ProcedureMeta::_internal_error() const { + return _impl_.error_.Get(); +} +inline void ProcedureMeta::_internal_set_error(const std::string& value) { + + _impl_.error_.Set(value, GetArenaForAllocation()); +} +inline std::string* ProcedureMeta::_internal_mutable_error() { + + return _impl_.error_.Mutable(GetArenaForAllocation()); +} +inline std::string* ProcedureMeta::release_error() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureMeta.error) + return _impl_.error_.Release(); +} +inline void ProcedureMeta::set_allocated_error(std::string* error) { + if (error != nullptr) { + + } else { + + } + _impl_.error_.SetAllocated(error, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.error_.IsDefault()) { + _impl_.error_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureMeta.error) +} + +// ------------------------------------------------------------------- + +// QueryProcedureRequest + +// .greptime.v1.meta.RequestHeader header = 1; +inline bool QueryProcedureRequest::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool QueryProcedureRequest::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::meta::RequestHeader& QueryProcedureRequest::_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& QueryProcedureRequest::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.QueryProcedureRequest.header) + return _internal_header(); +} +inline void QueryProcedureRequest::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.QueryProcedureRequest.header) +} +inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::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* QueryProcedureRequest::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.QueryProcedureRequest.header) + + ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::_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* QueryProcedureRequest::mutable_header() { + ::greptime::v1::meta::RequestHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.QueryProcedureRequest.header) + return _msg; +} +inline void QueryProcedureRequest::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 { @@ -798,11 +1635,272 @@ inline void ProcedureStateResponse::set_allocated_error(std::string* error) { // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureStateResponse.error) } +// ------------------------------------------------------------------- + +// ProcedureDetailRequest + +// .greptime.v1.meta.RequestHeader header = 1; +inline bool ProcedureDetailRequest::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool ProcedureDetailRequest::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::meta::RequestHeader& ProcedureDetailRequest::_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& ProcedureDetailRequest::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureDetailRequest.header) + return _internal_header(); +} +inline void ProcedureDetailRequest::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.ProcedureDetailRequest.header) +} +inline ::greptime::v1::meta::RequestHeader* ProcedureDetailRequest::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* ProcedureDetailRequest::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureDetailRequest.header) + + ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::RequestHeader* ProcedureDetailRequest::_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* ProcedureDetailRequest::mutable_header() { + ::greptime::v1::meta::RequestHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureDetailRequest.header) + return _msg; +} +inline void ProcedureDetailRequest::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.ProcedureDetailRequest.header) +} + +// repeated .greptime.v1.meta.ProcedureId pids = 2; +inline int ProcedureDetailRequest::_internal_pids_size() const { + return _impl_.pids_.size(); +} +inline int ProcedureDetailRequest::pids_size() const { + return _internal_pids_size(); +} +inline ::greptime::v1::meta::ProcedureId* ProcedureDetailRequest::mutable_pids(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureDetailRequest.pids) + return _impl_.pids_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureId >* +ProcedureDetailRequest::mutable_pids() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.meta.ProcedureDetailRequest.pids) + return &_impl_.pids_; +} +inline const ::greptime::v1::meta::ProcedureId& ProcedureDetailRequest::_internal_pids(int index) const { + return _impl_.pids_.Get(index); +} +inline const ::greptime::v1::meta::ProcedureId& ProcedureDetailRequest::pids(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureDetailRequest.pids) + return _internal_pids(index); +} +inline ::greptime::v1::meta::ProcedureId* ProcedureDetailRequest::_internal_add_pids() { + return _impl_.pids_.Add(); +} +inline ::greptime::v1::meta::ProcedureId* ProcedureDetailRequest::add_pids() { + ::greptime::v1::meta::ProcedureId* _add = _internal_add_pids(); + // @@protoc_insertion_point(field_add:greptime.v1.meta.ProcedureDetailRequest.pids) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureId >& +ProcedureDetailRequest::pids() const { + // @@protoc_insertion_point(field_list:greptime.v1.meta.ProcedureDetailRequest.pids) + return _impl_.pids_; +} + +// ------------------------------------------------------------------- + +// ProcedureDetailResponse + +// .greptime.v1.meta.ResponseHeader header = 1; +inline bool ProcedureDetailResponse::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool ProcedureDetailResponse::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::meta::ResponseHeader& ProcedureDetailResponse::_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& ProcedureDetailResponse::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureDetailResponse.header) + return _internal_header(); +} +inline void ProcedureDetailResponse::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.ProcedureDetailResponse.header) +} +inline ::greptime::v1::meta::ResponseHeader* ProcedureDetailResponse::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* ProcedureDetailResponse::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureDetailResponse.header) + + ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::ResponseHeader* ProcedureDetailResponse::_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* ProcedureDetailResponse::mutable_header() { + ::greptime::v1::meta::ResponseHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureDetailResponse.header) + return _msg; +} +inline void ProcedureDetailResponse::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.ProcedureDetailResponse.header) +} + +// repeated .greptime.v1.meta.ProcedureMeta procedures = 2; +inline int ProcedureDetailResponse::_internal_procedures_size() const { + return _impl_.procedures_.size(); +} +inline int ProcedureDetailResponse::procedures_size() const { + return _internal_procedures_size(); +} +inline void ProcedureDetailResponse::clear_procedures() { + _impl_.procedures_.Clear(); +} +inline ::greptime::v1::meta::ProcedureMeta* ProcedureDetailResponse::mutable_procedures(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureDetailResponse.procedures) + return _impl_.procedures_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureMeta >* +ProcedureDetailResponse::mutable_procedures() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.meta.ProcedureDetailResponse.procedures) + return &_impl_.procedures_; +} +inline const ::greptime::v1::meta::ProcedureMeta& ProcedureDetailResponse::_internal_procedures(int index) const { + return _impl_.procedures_.Get(index); +} +inline const ::greptime::v1::meta::ProcedureMeta& ProcedureDetailResponse::procedures(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureDetailResponse.procedures) + return _internal_procedures(index); +} +inline ::greptime::v1::meta::ProcedureMeta* ProcedureDetailResponse::_internal_add_procedures() { + return _impl_.procedures_.Add(); +} +inline ::greptime::v1::meta::ProcedureMeta* ProcedureDetailResponse::add_procedures() { + ::greptime::v1::meta::ProcedureMeta* _add = _internal_add_procedures(); + // @@protoc_insertion_point(field_add:greptime.v1.meta.ProcedureDetailResponse.procedures) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureMeta >& +ProcedureDetailResponse::procedures() const { + // @@protoc_insertion_point(field_list:greptime.v1.meta.ProcedureDetailResponse.procedures) + return _impl_.procedures_; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/meta/procedure.pb.go b/go/greptime/v1/meta/procedure.pb.go index cf0d454d..71459edf 100644 --- a/go/greptime/v1/meta/procedure.pb.go +++ b/go/greptime/v1/meta/procedure.pb.go @@ -82,6 +82,93 @@ func (ProcedureStatus) EnumDescriptor() ([]byte, []int) { return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{0} } +type ProcedureMeta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *ProcedureId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Status ProcedureStatus `protobuf:"varint,3,opt,name=status,proto3,enum=greptime.v1.meta.ProcedureStatus" json:"status,omitempty"` + StartTimeMs uint64 `protobuf:"varint,4,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"` + EndTimeMs uint64 `protobuf:"varint,5,opt,name=end_time_ms,json=endTimeMs,proto3" json:"end_time_ms,omitempty"` + Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *ProcedureMeta) Reset() { + *x = ProcedureMeta{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcedureMeta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProcedureMeta) ProtoMessage() {} + +func (x *ProcedureMeta) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProcedureMeta.ProtoReflect.Descriptor instead. +func (*ProcedureMeta) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{0} +} + +func (x *ProcedureMeta) GetId() *ProcedureId { + if x != nil { + return x.Id + } + return nil +} + +func (x *ProcedureMeta) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ProcedureMeta) GetStatus() ProcedureStatus { + if x != nil { + return x.Status + } + return ProcedureStatus_Running +} + +func (x *ProcedureMeta) GetStartTimeMs() uint64 { + if x != nil { + return x.StartTimeMs + } + return 0 +} + +func (x *ProcedureMeta) GetEndTimeMs() uint64 { + if x != nil { + return x.EndTimeMs + } + return 0 +} + +func (x *ProcedureMeta) GetError() string { + if x != nil { + return x.Error + } + return "" +} + type QueryProcedureRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -94,7 +181,7 @@ type QueryProcedureRequest struct { func (x *QueryProcedureRequest) Reset() { *x = QueryProcedureRequest{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_procedure_proto_msgTypes[0] + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -107,7 +194,7 @@ func (x *QueryProcedureRequest) String() string { func (*QueryProcedureRequest) ProtoMessage() {} func (x *QueryProcedureRequest) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_procedure_proto_msgTypes[0] + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -120,7 +207,7 @@ func (x *QueryProcedureRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryProcedureRequest.ProtoReflect.Descriptor instead. func (*QueryProcedureRequest) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{0} + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{1} } func (x *QueryProcedureRequest) GetHeader() *RequestHeader { @@ -150,7 +237,7 @@ type ProcedureStateResponse struct { func (x *ProcedureStateResponse) Reset() { *x = ProcedureStateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_procedure_proto_msgTypes[1] + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -163,7 +250,7 @@ func (x *ProcedureStateResponse) String() string { func (*ProcedureStateResponse) ProtoMessage() {} func (x *ProcedureStateResponse) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_procedure_proto_msgTypes[1] + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -176,7 +263,7 @@ func (x *ProcedureStateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ProcedureStateResponse.ProtoReflect.Descriptor instead. func (*ProcedureStateResponse) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{1} + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{2} } func (x *ProcedureStateResponse) GetHeader() *ResponseHeader { @@ -200,6 +287,116 @@ func (x *ProcedureStateResponse) GetError() string { return "" } +type ProcedureDetailRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Pids []*ProcedureId `protobuf:"bytes,2,rep,name=pids,proto3" json:"pids,omitempty"` +} + +func (x *ProcedureDetailRequest) Reset() { + *x = ProcedureDetailRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcedureDetailRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProcedureDetailRequest) ProtoMessage() {} + +func (x *ProcedureDetailRequest) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProcedureDetailRequest.ProtoReflect.Descriptor instead. +func (*ProcedureDetailRequest) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{3} +} + +func (x *ProcedureDetailRequest) GetHeader() *RequestHeader { + if x != nil { + return x.Header + } + return nil +} + +func (x *ProcedureDetailRequest) GetPids() []*ProcedureId { + if x != nil { + return x.Pids + } + return nil +} + +type ProcedureDetailResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Procedures []*ProcedureMeta `protobuf:"bytes,2,rep,name=procedures,proto3" json:"procedures,omitempty"` +} + +func (x *ProcedureDetailResponse) Reset() { + *x = ProcedureDetailResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcedureDetailResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProcedureDetailResponse) ProtoMessage() {} + +func (x *ProcedureDetailResponse) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProcedureDetailResponse.ProtoReflect.Descriptor instead. +func (*ProcedureDetailResponse) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{4} +} + +func (x *ProcedureDetailResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header + } + return nil +} + +func (x *ProcedureDetailResponse) GetProcedures() []*ProcedureMeta { + if x != nil { + return x.Procedures + } + return nil +} + var File_greptime_v1_meta_procedure_proto protoreflect.FileDescriptor var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{ @@ -211,55 +408,93 @@ var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x64, 0x64, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, - 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81, - 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, - 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, 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, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, - 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 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, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2a, 0x68, 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, 0x32, 0x96, 0x02, 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, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe7, + 0x01, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x4d, 0x65, 0x74, 0x61, + 0x12, 0x2d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 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, - 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, + 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x21, 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, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, + 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, + 0x4d, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, + 0x4d, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x81, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 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, 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, 0x22, 0xa3, 0x01, 0x0a, + 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x21, 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, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x22, 0x84, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 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, 0x31, 0x0a, 0x04, 0x70, 0x69, 0x64, 0x73, 0x18, 0x02, + 0x20, 0x03, 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, 0x04, 0x70, 0x69, 0x64, 0x73, 0x22, 0x94, 0x01, 0x0a, 0x17, 0x50, 0x72, + 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 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, + 0x3f, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1f, 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, + 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, + 0x2a, 0x68, 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, 0x32, 0xf6, 0x02, 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, 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, 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, + 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, 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 ( @@ -275,35 +510,46 @@ func file_greptime_v1_meta_procedure_proto_rawDescGZIP() []byte { } var file_greptime_v1_meta_procedure_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_greptime_v1_meta_procedure_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_greptime_v1_meta_procedure_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_greptime_v1_meta_procedure_proto_goTypes = []interface{}{ - (ProcedureStatus)(0), // 0: greptime.v1.meta.ProcedureStatus - (*QueryProcedureRequest)(nil), // 1: greptime.v1.meta.QueryProcedureRequest - (*ProcedureStateResponse)(nil), // 2: greptime.v1.meta.ProcedureStateResponse - (*RequestHeader)(nil), // 3: greptime.v1.meta.RequestHeader - (*ProcedureId)(nil), // 4: greptime.v1.meta.ProcedureId - (*ResponseHeader)(nil), // 5: greptime.v1.meta.ResponseHeader - (*DdlTaskRequest)(nil), // 6: greptime.v1.meta.DdlTaskRequest - (*MigrateRegionRequest)(nil), // 7: greptime.v1.meta.MigrateRegionRequest - (*DdlTaskResponse)(nil), // 8: greptime.v1.meta.DdlTaskResponse - (*MigrateRegionResponse)(nil), // 9: greptime.v1.meta.MigrateRegionResponse + (ProcedureStatus)(0), // 0: greptime.v1.meta.ProcedureStatus + (*ProcedureMeta)(nil), // 1: greptime.v1.meta.ProcedureMeta + (*QueryProcedureRequest)(nil), // 2: greptime.v1.meta.QueryProcedureRequest + (*ProcedureStateResponse)(nil), // 3: greptime.v1.meta.ProcedureStateResponse + (*ProcedureDetailRequest)(nil), // 4: greptime.v1.meta.ProcedureDetailRequest + (*ProcedureDetailResponse)(nil), // 5: greptime.v1.meta.ProcedureDetailResponse + (*ProcedureId)(nil), // 6: greptime.v1.meta.ProcedureId + (*RequestHeader)(nil), // 7: greptime.v1.meta.RequestHeader + (*ResponseHeader)(nil), // 8: greptime.v1.meta.ResponseHeader + (*DdlTaskRequest)(nil), // 9: greptime.v1.meta.DdlTaskRequest + (*MigrateRegionRequest)(nil), // 10: greptime.v1.meta.MigrateRegionRequest + (*DdlTaskResponse)(nil), // 11: greptime.v1.meta.DdlTaskResponse + (*MigrateRegionResponse)(nil), // 12: greptime.v1.meta.MigrateRegionResponse } var file_greptime_v1_meta_procedure_proto_depIdxs = []int32{ - 3, // 0: greptime.v1.meta.QueryProcedureRequest.header:type_name -> greptime.v1.meta.RequestHeader - 4, // 1: greptime.v1.meta.QueryProcedureRequest.pid:type_name -> greptime.v1.meta.ProcedureId - 5, // 2: greptime.v1.meta.ProcedureStateResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 0, // 3: greptime.v1.meta.ProcedureStateResponse.status:type_name -> greptime.v1.meta.ProcedureStatus - 1, // 4: greptime.v1.meta.ProcedureService.query:input_type -> greptime.v1.meta.QueryProcedureRequest - 6, // 5: greptime.v1.meta.ProcedureService.ddl:input_type -> greptime.v1.meta.DdlTaskRequest - 7, // 6: greptime.v1.meta.ProcedureService.migrate:input_type -> greptime.v1.meta.MigrateRegionRequest - 2, // 7: greptime.v1.meta.ProcedureService.query:output_type -> greptime.v1.meta.ProcedureStateResponse - 8, // 8: greptime.v1.meta.ProcedureService.ddl:output_type -> greptime.v1.meta.DdlTaskResponse - 9, // 9: greptime.v1.meta.ProcedureService.migrate:output_type -> greptime.v1.meta.MigrateRegionResponse - 7, // [7:10] is the sub-list for method output_type - 4, // [4:7] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 6, // 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 + 7, // 2: greptime.v1.meta.QueryProcedureRequest.header:type_name -> greptime.v1.meta.RequestHeader + 6, // 3: greptime.v1.meta.QueryProcedureRequest.pid:type_name -> greptime.v1.meta.ProcedureId + 8, // 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 + 7, // 6: greptime.v1.meta.ProcedureDetailRequest.header:type_name -> greptime.v1.meta.RequestHeader + 6, // 7: greptime.v1.meta.ProcedureDetailRequest.pids:type_name -> greptime.v1.meta.ProcedureId + 8, // 8: greptime.v1.meta.ProcedureDetailResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 1, // 9: greptime.v1.meta.ProcedureDetailResponse.procedures:type_name -> greptime.v1.meta.ProcedureMeta + 2, // 10: greptime.v1.meta.ProcedureService.query:input_type -> greptime.v1.meta.QueryProcedureRequest + 9, // 11: greptime.v1.meta.ProcedureService.ddl:input_type -> greptime.v1.meta.DdlTaskRequest + 10, // 12: greptime.v1.meta.ProcedureService.migrate:input_type -> greptime.v1.meta.MigrateRegionRequest + 4, // 13: greptime.v1.meta.ProcedureService.details:input_type -> greptime.v1.meta.ProcedureDetailRequest + 3, // 14: greptime.v1.meta.ProcedureService.query:output_type -> greptime.v1.meta.ProcedureStateResponse + 11, // 15: greptime.v1.meta.ProcedureService.ddl:output_type -> greptime.v1.meta.DdlTaskResponse + 12, // 16: greptime.v1.meta.ProcedureService.migrate:output_type -> greptime.v1.meta.MigrateRegionResponse + 5, // 17: greptime.v1.meta.ProcedureService.details:output_type -> greptime.v1.meta.ProcedureDetailResponse + 14, // [14:18] is the sub-list for method output_type + 10, // [10:14] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } func init() { file_greptime_v1_meta_procedure_proto_init() } @@ -316,7 +562,7 @@ func file_greptime_v1_meta_procedure_proto_init() { file_greptime_v1_meta_region_proto_init() if !protoimpl.UnsafeEnabled { file_greptime_v1_meta_procedure_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProcedureRequest); i { + switch v := v.(*ProcedureMeta); i { case 0: return &v.state case 1: @@ -328,6 +574,18 @@ func file_greptime_v1_meta_procedure_proto_init() { } } file_greptime_v1_meta_procedure_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProcedureRequest); 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[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ProcedureStateResponse); i { case 0: return &v.state @@ -339,6 +597,30 @@ func file_greptime_v1_meta_procedure_proto_init() { return nil } } + file_greptime_v1_meta_procedure_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcedureDetailRequest); 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[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcedureDetailResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -346,7 +628,7 @@ func file_greptime_v1_meta_procedure_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_meta_procedure_proto_rawDesc, NumEnums: 1, - NumMessages: 2, + NumMessages: 5, 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 12ede6a2..b61eb1b8 100644 --- a/go/greptime/v1/meta/procedure_grpc.pb.go +++ b/go/greptime/v1/meta/procedure_grpc.pb.go @@ -28,6 +28,8 @@ type ProcedureServiceClient interface { Ddl(ctx context.Context, in *DdlTaskRequest, opts ...grpc.CallOption) (*DdlTaskResponse, error) // Submits a region migration task 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) } type procedureServiceClient struct { @@ -65,6 +67,15 @@ func (c *procedureServiceClient) Migrate(ctx context.Context, in *MigrateRegionR return out, nil } +func (c *procedureServiceClient) Details(ctx context.Context, in *ProcedureDetailRequest, opts ...grpc.CallOption) (*ProcedureDetailResponse, error) { + out := new(ProcedureDetailResponse) + err := c.cc.Invoke(ctx, "/greptime.v1.meta.ProcedureService/details", 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 @@ -75,6 +86,8 @@ type ProcedureServiceServer interface { Ddl(context.Context, *DdlTaskRequest) (*DdlTaskResponse, error) // Submits a region migration task Migrate(context.Context, *MigrateRegionRequest) (*MigrateRegionResponse, error) + // Query all submitted procedures details + Details(context.Context, *ProcedureDetailRequest) (*ProcedureDetailResponse, error) mustEmbedUnimplementedProcedureServiceServer() } @@ -91,6 +104,9 @@ func (UnimplementedProcedureServiceServer) Ddl(context.Context, *DdlTaskRequest) func (UnimplementedProcedureServiceServer) Migrate(context.Context, *MigrateRegionRequest) (*MigrateRegionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Migrate not implemented") } +func (UnimplementedProcedureServiceServer) Details(context.Context, *ProcedureDetailRequest) (*ProcedureDetailResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Details not implemented") +} func (UnimplementedProcedureServiceServer) mustEmbedUnimplementedProcedureServiceServer() {} // UnsafeProcedureServiceServer may be embedded to opt out of forward compatibility for this service. @@ -158,6 +174,24 @@ func _ProcedureService_Migrate_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _ProcedureService_Details_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProcedureDetailRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProcedureServiceServer).Details(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/greptime.v1.meta.ProcedureService/details", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProcedureServiceServer).Details(ctx, req.(*ProcedureDetailRequest)) + } + 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) @@ -177,6 +211,10 @@ var ProcedureService_ServiceDesc = grpc.ServiceDesc{ MethodName: "migrate", Handler: _ProcedureService_Migrate_Handler, }, + { + MethodName: "details", + Handler: _ProcedureService_Details_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 44011010..f9fa8b35 100644 --- a/java/src/main/java/greptime/v1/meta/Procedure.java +++ b/java/src/main/java/greptime/v1/meta/Procedure.java @@ -158,6 +158,1178 @@ private ProcedureStatus(int value) { // @@protoc_insertion_point(enum_scope:greptime.v1.meta.ProcedureStatus) } + public interface ProcedureMetaOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.ProcedureMeta) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.meta.ProcedureId id = 1; + * @return Whether the id field is set. + */ + boolean hasId(); + /** + * .greptime.v1.meta.ProcedureId id = 1; + * @return The id. + */ + greptime.v1.meta.Common.ProcedureId getId(); + /** + * .greptime.v1.meta.ProcedureId id = 1; + */ + greptime.v1.meta.Common.ProcedureIdOrBuilder getIdOrBuilder(); + + /** + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .greptime.v1.meta.ProcedureStatus status = 3; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .greptime.v1.meta.ProcedureStatus status = 3; + * @return The status. + */ + greptime.v1.meta.Procedure.ProcedureStatus getStatus(); + + /** + * uint64 start_time_ms = 4; + * @return The startTimeMs. + */ + long getStartTimeMs(); + + /** + * uint64 end_time_ms = 5; + * @return The endTimeMs. + */ + long getEndTimeMs(); + + /** + * string error = 6; + * @return The error. + */ + java.lang.String getError(); + /** + * string error = 6; + * @return The bytes for error. + */ + com.google.protobuf.ByteString + getErrorBytes(); + } + /** + * Protobuf type {@code greptime.v1.meta.ProcedureMeta} + */ + public static final class ProcedureMeta extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.ProcedureMeta) + ProcedureMetaOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcedureMeta.newBuilder() to construct. + private ProcedureMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProcedureMeta() { + name_ = ""; + status_ = 0; + error_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ProcedureMeta(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProcedureMeta( + 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.ProcedureId.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(greptime.v1.meta.Common.ProcedureId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 32: { + + startTimeMs_ = input.readUInt64(); + break; + } + case 40: { + + endTimeMs_ = input.readUInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + error_ = s; + 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_ProcedureMeta_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureMeta_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.ProcedureMeta.class, greptime.v1.meta.Procedure.ProcedureMeta.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private greptime.v1.meta.Common.ProcedureId id_; + /** + * .greptime.v1.meta.ProcedureId id = 1; + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return id_ != null; + } + /** + * .greptime.v1.meta.ProcedureId id = 1; + * @return The id. + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureId getId() { + return id_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : id_; + } + /** + * .greptime.v1.meta.ProcedureId id = 1; + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureIdOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 3; + private int status_; + /** + * .greptime.v1.meta.ProcedureStatus status = 3; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 3; + * @return The status. + */ + @java.lang.Override public greptime.v1.meta.Procedure.ProcedureStatus getStatus() { + @SuppressWarnings("deprecation") + greptime.v1.meta.Procedure.ProcedureStatus result = greptime.v1.meta.Procedure.ProcedureStatus.valueOf(status_); + return result == null ? greptime.v1.meta.Procedure.ProcedureStatus.UNRECOGNIZED : result; + } + + public static final int START_TIME_MS_FIELD_NUMBER = 4; + private long startTimeMs_; + /** + * uint64 start_time_ms = 4; + * @return The startTimeMs. + */ + @java.lang.Override + public long getStartTimeMs() { + return startTimeMs_; + } + + public static final int END_TIME_MS_FIELD_NUMBER = 5; + private long endTimeMs_; + /** + * uint64 end_time_ms = 5; + * @return The endTimeMs. + */ + @java.lang.Override + public long getEndTimeMs() { + return endTimeMs_; + } + + public static final int ERROR_FIELD_NUMBER = 6; + private volatile java.lang.Object error_; + /** + * string error = 6; + * @return The error. + */ + @java.lang.Override + public java.lang.String getError() { + java.lang.Object ref = error_; + 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(); + error_ = s; + return s; + } + } + /** + * string error = 6; + * @return The bytes for error. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (id_ != null) { + output.writeMessage(1, getId()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (status_ != greptime.v1.meta.Procedure.ProcedureStatus.Running.getNumber()) { + output.writeEnum(3, status_); + } + if (startTimeMs_ != 0L) { + output.writeUInt64(4, startTimeMs_); + } + if (endTimeMs_ != 0L) { + output.writeUInt64(5, endTimeMs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, error_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (status_ != greptime.v1.meta.Procedure.ProcedureStatus.Running.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, status_); + } + if (startTimeMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, startTimeMs_); + } + if (endTimeMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, endTimeMs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, error_); + } + 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.ProcedureMeta)) { + return super.equals(obj); + } + greptime.v1.meta.Procedure.ProcedureMeta other = (greptime.v1.meta.Procedure.ProcedureMeta) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getName() + .equals(other.getName())) return false; + if (status_ != other.status_) return false; + if (getStartTimeMs() + != other.getStartTimeMs()) return false; + if (getEndTimeMs() + != other.getEndTimeMs()) return false; + if (!getError() + .equals(other.getError())) 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 (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + START_TIME_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStartTimeMs()); + hash = (37 * hash) + END_TIME_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEndTimeMs()); + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Procedure.ProcedureMeta parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.ProcedureMeta 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.ProcedureMeta parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.ProcedureMeta 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.ProcedureMeta parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.ProcedureMeta parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.ProcedureMeta parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.ProcedureMeta 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.ProcedureMeta parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.ProcedureMeta 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.ProcedureMeta parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.ProcedureMeta 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.ProcedureMeta 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.ProcedureMeta} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.ProcedureMeta) + greptime.v1.meta.Procedure.ProcedureMetaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureMeta_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureMeta_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.ProcedureMeta.class, greptime.v1.meta.Procedure.ProcedureMeta.Builder.class); + } + + // Construct using greptime.v1.meta.Procedure.ProcedureMeta.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 (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + name_ = ""; + + status_ = 0; + + startTimeMs_ = 0L; + + endTimeMs_ = 0L; + + error_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureMeta_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureMeta getDefaultInstanceForType() { + return greptime.v1.meta.Procedure.ProcedureMeta.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureMeta build() { + greptime.v1.meta.Procedure.ProcedureMeta result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureMeta buildPartial() { + greptime.v1.meta.Procedure.ProcedureMeta result = new greptime.v1.meta.Procedure.ProcedureMeta(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.name_ = name_; + result.status_ = status_; + result.startTimeMs_ = startTimeMs_; + result.endTimeMs_ = endTimeMs_; + result.error_ = error_; + 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.ProcedureMeta) { + return mergeFrom((greptime.v1.meta.Procedure.ProcedureMeta)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Procedure.ProcedureMeta other) { + if (other == greptime.v1.meta.Procedure.ProcedureMeta.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.getStartTimeMs() != 0L) { + setStartTimeMs(other.getStartTimeMs()); + } + if (other.getEndTimeMs() != 0L) { + setEndTimeMs(other.getEndTimeMs()); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + onChanged(); + } + 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.ProcedureMeta parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Procedure.ProcedureMeta) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private greptime.v1.meta.Common.ProcedureId id_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> idBuilder_; + /** + * .greptime.v1.meta.ProcedureId id = 1; + * @return Whether the id field is set. + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .greptime.v1.meta.ProcedureId id = 1; + * @return The id. + */ + public greptime.v1.meta.Common.ProcedureId getId() { + if (idBuilder_ == null) { + return id_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.ProcedureId id = 1; + */ + public Builder setId(greptime.v1.meta.Common.ProcedureId value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId id = 1; + */ + public Builder setId( + greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId id = 1; + */ + public Builder mergeId(greptime.v1.meta.Common.ProcedureId value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + greptime.v1.meta.Common.ProcedureId.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId id = 1; + */ + public greptime.v1.meta.Common.ProcedureId.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.ProcedureId id = 1; + */ + public greptime.v1.meta.Common.ProcedureIdOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : id_; + } + } + /** + * .greptime.v1.meta.ProcedureId id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * .greptime.v1.meta.ProcedureStatus status = 3; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 3; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 3; + * @return The status. + */ + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureStatus getStatus() { + @SuppressWarnings("deprecation") + greptime.v1.meta.Procedure.ProcedureStatus result = greptime.v1.meta.Procedure.ProcedureStatus.valueOf(status_); + return result == null ? greptime.v1.meta.Procedure.ProcedureStatus.UNRECOGNIZED : result; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 3; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(greptime.v1.meta.Procedure.ProcedureStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 3; + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private long startTimeMs_ ; + /** + * uint64 start_time_ms = 4; + * @return The startTimeMs. + */ + @java.lang.Override + public long getStartTimeMs() { + return startTimeMs_; + } + /** + * uint64 start_time_ms = 4; + * @param value The startTimeMs to set. + * @return This builder for chaining. + */ + public Builder setStartTimeMs(long value) { + + startTimeMs_ = value; + onChanged(); + return this; + } + /** + * uint64 start_time_ms = 4; + * @return This builder for chaining. + */ + public Builder clearStartTimeMs() { + + startTimeMs_ = 0L; + onChanged(); + return this; + } + + private long endTimeMs_ ; + /** + * uint64 end_time_ms = 5; + * @return The endTimeMs. + */ + @java.lang.Override + public long getEndTimeMs() { + return endTimeMs_; + } + /** + * uint64 end_time_ms = 5; + * @param value The endTimeMs to set. + * @return This builder for chaining. + */ + public Builder setEndTimeMs(long value) { + + endTimeMs_ = value; + onChanged(); + return this; + } + /** + * uint64 end_time_ms = 5; + * @return This builder for chaining. + */ + public Builder clearEndTimeMs() { + + endTimeMs_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object error_ = ""; + /** + * string error = 6; + * @return The error. + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error = 6; + * @return The bytes for error. + */ + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error = 6; + * @param value The error to set. + * @return This builder for chaining. + */ + public Builder setError( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + error_ = value; + onChanged(); + return this; + } + /** + * string error = 6; + * @return This builder for chaining. + */ + public Builder clearError() { + + error_ = getDefaultInstance().getError(); + onChanged(); + return this; + } + /** + * string error = 6; + * @param value The bytes for error to set. + * @return This builder for chaining. + */ + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + error_ = value; + 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.ProcedureMeta) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureMeta) + private static final greptime.v1.meta.Procedure.ProcedureMeta DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.ProcedureMeta(); + } + + public static greptime.v1.meta.Procedure.ProcedureMeta getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProcedureMeta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProcedureMeta(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.ProcedureMeta getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface QueryProcedureRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.meta.QueryProcedureRequest) com.google.protobuf.MessageOrBuilder { @@ -178,40 +1350,1756 @@ public interface QueryProcedureRequestOrBuilder extends greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder(); /** - * .greptime.v1.meta.ProcedureId pid = 2; - * @return Whether the pid field is set. + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + boolean hasPid(); + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + greptime.v1.meta.Common.ProcedureId getPid(); + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.meta.QueryProcedureRequest} + */ + public static final class QueryProcedureRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.QueryProcedureRequest) + QueryProcedureRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryProcedureRequest.newBuilder() to construct. + private QueryProcedureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QueryProcedureRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QueryProcedureRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QueryProcedureRequest( + 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: { + greptime.v1.meta.Common.ProcedureId.Builder subBuilder = null; + if (pid_ != null) { + subBuilder = pid_.toBuilder(); + } + pid_ = input.readMessage(greptime.v1.meta.Common.ProcedureId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pid_); + pid_ = 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_QueryProcedureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.QueryProcedureRequest.class, greptime.v1.meta.Procedure.QueryProcedureRequest.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 PID_FIELD_NUMBER = 2; + private greptime.v1.meta.Common.ProcedureId pid_; + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + @java.lang.Override + public boolean hasPid() { + return pid_ != null; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureId getPid() { + return pid_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder() { + return getPid(); + } + + 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 (pid_ != null) { + output.writeMessage(2, getPid()); + } + 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 (pid_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPid()); + } + 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.QueryProcedureRequest)) { + return super.equals(obj); + } + greptime.v1.meta.Procedure.QueryProcedureRequest other = (greptime.v1.meta.Procedure.QueryProcedureRequest) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (hasPid() != other.hasPid()) return false; + if (hasPid()) { + if (!getPid() + .equals(other.getPid())) 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 (hasPid()) { + hash = (37 * hash) + PID_FIELD_NUMBER; + hash = (53 * hash) + getPid().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest 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.QueryProcedureRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest 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.QueryProcedureRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest 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.QueryProcedureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest 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.QueryProcedureRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest 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.QueryProcedureRequest 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.QueryProcedureRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.QueryProcedureRequest) + greptime.v1.meta.Procedure.QueryProcedureRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.QueryProcedureRequest.class, greptime.v1.meta.Procedure.QueryProcedureRequest.Builder.class); + } + + // Construct using greptime.v1.meta.Procedure.QueryProcedureRequest.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 (pidBuilder_ == null) { + pid_ = null; + } else { + pid_ = null; + pidBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.QueryProcedureRequest getDefaultInstanceForType() { + return greptime.v1.meta.Procedure.QueryProcedureRequest.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Procedure.QueryProcedureRequest build() { + greptime.v1.meta.Procedure.QueryProcedureRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.QueryProcedureRequest buildPartial() { + greptime.v1.meta.Procedure.QueryProcedureRequest result = new greptime.v1.meta.Procedure.QueryProcedureRequest(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (pidBuilder_ == null) { + result.pid_ = pid_; + } else { + result.pid_ = pidBuilder_.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.QueryProcedureRequest) { + return mergeFrom((greptime.v1.meta.Procedure.QueryProcedureRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Procedure.QueryProcedureRequest other) { + if (other == greptime.v1.meta.Procedure.QueryProcedureRequest.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.hasPid()) { + mergePid(other.getPid()); + } + 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.QueryProcedureRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Procedure.QueryProcedureRequest) 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 greptime.v1.meta.Common.ProcedureId pid_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> pidBuilder_; + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + public boolean hasPid() { + return pidBuilder_ != null || pid_ != null; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + public greptime.v1.meta.Common.ProcedureId getPid() { + if (pidBuilder_ == null) { + return pid_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } else { + return pidBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder setPid(greptime.v1.meta.Common.ProcedureId value) { + if (pidBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pid_ = value; + onChanged(); + } else { + pidBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder setPid( + greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { + if (pidBuilder_ == null) { + pid_ = builderForValue.build(); + onChanged(); + } else { + pidBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder mergePid(greptime.v1.meta.Common.ProcedureId value) { + if (pidBuilder_ == null) { + if (pid_ != null) { + pid_ = + greptime.v1.meta.Common.ProcedureId.newBuilder(pid_).mergeFrom(value).buildPartial(); + } else { + pid_ = value; + } + onChanged(); + } else { + pidBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder clearPid() { + if (pidBuilder_ == null) { + pid_ = null; + onChanged(); + } else { + pid_ = null; + pidBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public greptime.v1.meta.Common.ProcedureId.Builder getPidBuilder() { + + onChanged(); + return getPidFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder() { + if (pidBuilder_ != null) { + return pidBuilder_.getMessageOrBuilder(); + } else { + return pid_ == null ? + greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> + getPidFieldBuilder() { + if (pidBuilder_ == null) { + pidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder>( + getPid(), + getParentForChildren(), + isClean()); + pid_ = null; + } + return pidBuilder_; + } + @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.QueryProcedureRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.QueryProcedureRequest) + private static final greptime.v1.meta.Procedure.QueryProcedureRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.QueryProcedureRequest(); + } + + public static greptime.v1.meta.Procedure.QueryProcedureRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryProcedureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryProcedureRequest(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.QueryProcedureRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProcedureStateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.ProcedureStateResponse) + 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.ProcedureStatus status = 2; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The status. + */ + greptime.v1.meta.Procedure.ProcedureStatus getStatus(); + + /** + * string error = 3; + * @return The error. + */ + java.lang.String getError(); + /** + * string error = 3; + * @return The bytes for error. + */ + com.google.protobuf.ByteString + getErrorBytes(); + } + /** + * Protobuf type {@code greptime.v1.meta.ProcedureStateResponse} + */ + public static final class ProcedureStateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.ProcedureStateResponse) + ProcedureStateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcedureStateResponse.newBuilder() to construct. + private ProcedureStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProcedureStateResponse() { + status_ = 0; + error_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ProcedureStateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProcedureStateResponse( + 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 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + error_ = s; + 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_ProcedureStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.ProcedureStateResponse.class, greptime.v1.meta.Procedure.ProcedureStateResponse.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 STATUS_FIELD_NUMBER = 2; + private int status_; + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The status. + */ + @java.lang.Override public greptime.v1.meta.Procedure.ProcedureStatus getStatus() { + @SuppressWarnings("deprecation") + greptime.v1.meta.Procedure.ProcedureStatus result = greptime.v1.meta.Procedure.ProcedureStatus.valueOf(status_); + return result == null ? greptime.v1.meta.Procedure.ProcedureStatus.UNRECOGNIZED : result; + } + + public static final int ERROR_FIELD_NUMBER = 3; + private volatile java.lang.Object error_; + /** + * string error = 3; + * @return The error. + */ + @java.lang.Override + public java.lang.String getError() { + java.lang.Object ref = error_; + 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(); + error_ = s; + return s; + } + } + /** + * string error = 3; + * @return The bytes for error. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (status_ != greptime.v1.meta.Procedure.ProcedureStatus.Running.getNumber()) { + output.writeEnum(2, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_); + } + 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 (status_ != greptime.v1.meta.Procedure.ProcedureStatus.Running.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_); + } + 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.ProcedureStateResponse)) { + return super.equals(obj); + } + greptime.v1.meta.Procedure.ProcedureStateResponse other = (greptime.v1.meta.Procedure.ProcedureStateResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (status_ != other.status_) return false; + if (!getError() + .equals(other.getError())) 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) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse 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.ProcedureStateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse 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.ProcedureStateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse 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.ProcedureStateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse 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.ProcedureStateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse 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.ProcedureStateResponse 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.ProcedureStateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.ProcedureStateResponse) + greptime.v1.meta.Procedure.ProcedureStateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.ProcedureStateResponse.class, greptime.v1.meta.Procedure.ProcedureStateResponse.Builder.class); + } + + // Construct using greptime.v1.meta.Procedure.ProcedureStateResponse.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; + } + status_ = 0; + + error_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureStateResponse getDefaultInstanceForType() { + return greptime.v1.meta.Procedure.ProcedureStateResponse.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureStateResponse build() { + greptime.v1.meta.Procedure.ProcedureStateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureStateResponse buildPartial() { + greptime.v1.meta.Procedure.ProcedureStateResponse result = new greptime.v1.meta.Procedure.ProcedureStateResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.status_ = status_; + result.error_ = error_; + 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.ProcedureStateResponse) { + return mergeFrom((greptime.v1.meta.Procedure.ProcedureStateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Procedure.ProcedureStateResponse other) { + if (other == greptime.v1.meta.Procedure.ProcedureStateResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + onChanged(); + } + 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.ProcedureStateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Procedure.ProcedureStateResponse) 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 int status_ = 0; + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The status. + */ + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureStatus getStatus() { + @SuppressWarnings("deprecation") + greptime.v1.meta.Procedure.ProcedureStatus result = greptime.v1.meta.Procedure.ProcedureStatus.valueOf(status_); + return result == null ? greptime.v1.meta.Procedure.ProcedureStatus.UNRECOGNIZED : result; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(greptime.v1.meta.Procedure.ProcedureStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object error_ = ""; + /** + * string error = 3; + * @return The error. + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error = 3; + * @return The bytes for error. + */ + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error = 3; + * @param value The error to set. + * @return This builder for chaining. + */ + public Builder setError( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + error_ = value; + onChanged(); + return this; + } + /** + * string error = 3; + * @return This builder for chaining. + */ + public Builder clearError() { + + error_ = getDefaultInstance().getError(); + onChanged(); + return this; + } + /** + * string error = 3; + * @param value The bytes for error to set. + * @return This builder for chaining. + */ + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + error_ = value; + 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.ProcedureStateResponse) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureStateResponse) + private static final greptime.v1.meta.Procedure.ProcedureStateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.ProcedureStateResponse(); + } + + public static greptime.v1.meta.Procedure.ProcedureStateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProcedureStateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProcedureStateResponse(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.ProcedureStateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProcedureDetailRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.ProcedureDetailRequest) + 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 .greptime.v1.meta.ProcedureId pids = 2; */ - boolean hasPid(); + java.util.List + getPidsList(); /** - * .greptime.v1.meta.ProcedureId pid = 2; - * @return The pid. + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ - greptime.v1.meta.Common.ProcedureId getPid(); + greptime.v1.meta.Common.ProcedureId getPids(int index); /** - * .greptime.v1.meta.ProcedureId pid = 2; + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ - greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder(); + int getPidsCount(); + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + java.util.List + getPidsOrBuilderList(); + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + greptime.v1.meta.Common.ProcedureIdOrBuilder getPidsOrBuilder( + int index); } /** - * Protobuf type {@code greptime.v1.meta.QueryProcedureRequest} + * Protobuf type {@code greptime.v1.meta.ProcedureDetailRequest} */ - public static final class QueryProcedureRequest extends + public static final class ProcedureDetailRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.meta.QueryProcedureRequest) - QueryProcedureRequestOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.meta.ProcedureDetailRequest) + ProcedureDetailRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use QueryProcedureRequest.newBuilder() to construct. - private QueryProcedureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ProcedureDetailRequest.newBuilder() to construct. + private ProcedureDetailRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryProcedureRequest() { + private ProcedureDetailRequest() { + pids_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new QueryProcedureRequest(); + return new ProcedureDetailRequest(); } @java.lang.Override @@ -219,7 +3107,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private QueryProcedureRequest( + private ProcedureDetailRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -227,6 +3115,7 @@ private QueryProcedureRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -251,16 +3140,12 @@ private QueryProcedureRequest( break; } case 18: { - greptime.v1.meta.Common.ProcedureId.Builder subBuilder = null; - if (pid_ != null) { - subBuilder = pid_.toBuilder(); - } - pid_ = input.readMessage(greptime.v1.meta.Common.ProcedureId.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pid_); - pid_ = subBuilder.buildPartial(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + pids_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - + pids_.add( + input.readMessage(greptime.v1.meta.Common.ProcedureId.parser(), extensionRegistry)); break; } default: { @@ -280,21 +3165,24 @@ private QueryProcedureRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + pids_ = java.util.Collections.unmodifiableList(pids_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureDetailRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_fieldAccessorTable + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureDetailRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - greptime.v1.meta.Procedure.QueryProcedureRequest.class, greptime.v1.meta.Procedure.QueryProcedureRequest.Builder.class); + greptime.v1.meta.Procedure.ProcedureDetailRequest.class, greptime.v1.meta.Procedure.ProcedureDetailRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; @@ -323,30 +3211,44 @@ public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } - public static final int PID_FIELD_NUMBER = 2; - private greptime.v1.meta.Common.ProcedureId pid_; + public static final int PIDS_FIELD_NUMBER = 2; + private java.util.List pids_; /** - * .greptime.v1.meta.ProcedureId pid = 2; - * @return Whether the pid field is set. + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ @java.lang.Override - public boolean hasPid() { - return pid_ != null; + public java.util.List getPidsList() { + return pids_; } /** - * .greptime.v1.meta.ProcedureId pid = 2; - * @return The pid. + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ @java.lang.Override - public greptime.v1.meta.Common.ProcedureId getPid() { - return pid_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + public java.util.List + getPidsOrBuilderList() { + return pids_; } /** - * .greptime.v1.meta.ProcedureId pid = 2; + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ @java.lang.Override - public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder() { - return getPid(); + public int getPidsCount() { + return pids_.size(); + } + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureId getPids(int index) { + return pids_.get(index); + } + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidsOrBuilder( + int index) { + return pids_.get(index); } private byte memoizedIsInitialized = -1; @@ -366,8 +3268,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (header_ != null) { output.writeMessage(1, getHeader()); } - if (pid_ != null) { - output.writeMessage(2, getPid()); + for (int i = 0; i < pids_.size(); i++) { + output.writeMessage(2, pids_.get(i)); } unknownFields.writeTo(output); } @@ -382,9 +3284,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } - if (pid_ != null) { + for (int i = 0; i < pids_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPid()); + .computeMessageSize(2, pids_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -396,21 +3298,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof greptime.v1.meta.Procedure.QueryProcedureRequest)) { + if (!(obj instanceof greptime.v1.meta.Procedure.ProcedureDetailRequest)) { return super.equals(obj); } - greptime.v1.meta.Procedure.QueryProcedureRequest other = (greptime.v1.meta.Procedure.QueryProcedureRequest) obj; + greptime.v1.meta.Procedure.ProcedureDetailRequest other = (greptime.v1.meta.Procedure.ProcedureDetailRequest) obj; if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { if (!getHeader() .equals(other.getHeader())) return false; } - if (hasPid() != other.hasPid()) return false; - if (hasPid()) { - if (!getPid() - .equals(other.getPid())) return false; - } + if (!getPidsList() + .equals(other.getPidsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -426,78 +3325,78 @@ public int hashCode() { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } - if (hasPid()) { - hash = (37 * hash) + PID_FIELD_NUMBER; - hash = (53 * hash) + getPid().hashCode(); + if (getPidsCount() > 0) { + hash = (37 * hash) + PIDS_FIELD_NUMBER; + hash = (53 * hash) + getPidsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailRequest 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.QueryProcedureRequest parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailRequest 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.QueryProcedureRequest parseFrom(byte[] data) + public static greptime.v1.meta.Procedure.ProcedureDetailRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom(java.io.InputStream input) + public static greptime.v1.meta.Procedure.ProcedureDetailRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailRequest 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.QueryProcedureRequest parseDelimitedFrom(java.io.InputStream input) + public static greptime.v1.meta.Procedure.ProcedureDetailRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static greptime.v1.meta.Procedure.QueryProcedureRequest parseDelimitedFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailRequest 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.QueryProcedureRequest parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -510,7 +3409,7 @@ public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(greptime.v1.meta.Procedure.QueryProcedureRequest prototype) { + public static Builder newBuilder(greptime.v1.meta.Procedure.ProcedureDetailRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -526,26 +3425,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.meta.QueryProcedureRequest} + * Protobuf type {@code greptime.v1.meta.ProcedureDetailRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.meta.QueryProcedureRequest) - greptime.v1.meta.Procedure.QueryProcedureRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.ProcedureDetailRequest) + greptime.v1.meta.Procedure.ProcedureDetailRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureDetailRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_fieldAccessorTable + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureDetailRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - greptime.v1.meta.Procedure.QueryProcedureRequest.class, greptime.v1.meta.Procedure.QueryProcedureRequest.Builder.class); + greptime.v1.meta.Procedure.ProcedureDetailRequest.class, greptime.v1.meta.Procedure.ProcedureDetailRequest.Builder.class); } - // Construct using greptime.v1.meta.Procedure.QueryProcedureRequest.newBuilder() + // Construct using greptime.v1.meta.Procedure.ProcedureDetailRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -558,6 +3457,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getPidsFieldBuilder(); } } @java.lang.Override @@ -569,11 +3469,11 @@ public Builder clear() { header_ = null; headerBuilder_ = null; } - if (pidBuilder_ == null) { - pid_ = null; + if (pidsBuilder_ == null) { + pids_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); } else { - pid_ = null; - pidBuilder_ = null; + pidsBuilder_.clear(); } return this; } @@ -581,17 +3481,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureDetailRequest_descriptor; } @java.lang.Override - public greptime.v1.meta.Procedure.QueryProcedureRequest getDefaultInstanceForType() { - return greptime.v1.meta.Procedure.QueryProcedureRequest.getDefaultInstance(); + public greptime.v1.meta.Procedure.ProcedureDetailRequest getDefaultInstanceForType() { + return greptime.v1.meta.Procedure.ProcedureDetailRequest.getDefaultInstance(); } @java.lang.Override - public greptime.v1.meta.Procedure.QueryProcedureRequest build() { - greptime.v1.meta.Procedure.QueryProcedureRequest result = buildPartial(); + public greptime.v1.meta.Procedure.ProcedureDetailRequest build() { + greptime.v1.meta.Procedure.ProcedureDetailRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -599,17 +3499,22 @@ public greptime.v1.meta.Procedure.QueryProcedureRequest build() { } @java.lang.Override - public greptime.v1.meta.Procedure.QueryProcedureRequest buildPartial() { - greptime.v1.meta.Procedure.QueryProcedureRequest result = new greptime.v1.meta.Procedure.QueryProcedureRequest(this); + public greptime.v1.meta.Procedure.ProcedureDetailRequest buildPartial() { + greptime.v1.meta.Procedure.ProcedureDetailRequest result = new greptime.v1.meta.Procedure.ProcedureDetailRequest(this); + int from_bitField0_ = bitField0_; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); - } - if (pidBuilder_ == null) { - result.pid_ = pid_; + } + if (pidsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + pids_ = java.util.Collections.unmodifiableList(pids_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pids_ = pids_; } else { - result.pid_ = pidBuilder_.build(); + result.pids_ = pidsBuilder_.build(); } onBuilt(); return result; @@ -649,21 +3554,44 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof greptime.v1.meta.Procedure.QueryProcedureRequest) { - return mergeFrom((greptime.v1.meta.Procedure.QueryProcedureRequest)other); + if (other instanceof greptime.v1.meta.Procedure.ProcedureDetailRequest) { + return mergeFrom((greptime.v1.meta.Procedure.ProcedureDetailRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(greptime.v1.meta.Procedure.QueryProcedureRequest other) { - if (other == greptime.v1.meta.Procedure.QueryProcedureRequest.getDefaultInstance()) return this; + public Builder mergeFrom(greptime.v1.meta.Procedure.ProcedureDetailRequest other) { + if (other == greptime.v1.meta.Procedure.ProcedureDetailRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } - if (other.hasPid()) { - mergePid(other.getPid()); + if (pidsBuilder_ == null) { + if (!other.pids_.isEmpty()) { + if (pids_.isEmpty()) { + pids_ = other.pids_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePidsIsMutable(); + pids_.addAll(other.pids_); + } + onChanged(); + } + } else { + if (!other.pids_.isEmpty()) { + if (pidsBuilder_.isEmpty()) { + pidsBuilder_.dispose(); + pidsBuilder_ = null; + pids_ = other.pids_; + bitField0_ = (bitField0_ & ~0x00000001); + pidsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPidsFieldBuilder() : null; + } else { + pidsBuilder_.addAllMessages(other.pids_); + } + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -680,11 +3608,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - greptime.v1.meta.Procedure.QueryProcedureRequest parsedMessage = null; + greptime.v1.meta.Procedure.ProcedureDetailRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (greptime.v1.meta.Procedure.QueryProcedureRequest) e.getUnfinishedMessage(); + parsedMessage = (greptime.v1.meta.Procedure.ProcedureDetailRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -693,6 +3621,7 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private greptime.v1.meta.Common.RequestHeader header_; private com.google.protobuf.SingleFieldBuilderV3< @@ -813,123 +3742,244 @@ public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { return headerBuilder_; } - private greptime.v1.meta.Common.ProcedureId pid_; - private com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> pidBuilder_; + private java.util.List pids_ = + java.util.Collections.emptyList(); + private void ensurePidsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pids_ = new java.util.ArrayList(pids_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> pidsBuilder_; + /** - * .greptime.v1.meta.ProcedureId pid = 2; - * @return Whether the pid field is set. + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ - public boolean hasPid() { - return pidBuilder_ != null || pid_ != null; + public java.util.List getPidsList() { + if (pidsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pids_); + } else { + return pidsBuilder_.getMessageList(); + } } /** - * .greptime.v1.meta.ProcedureId pid = 2; - * @return The pid. + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ - public greptime.v1.meta.Common.ProcedureId getPid() { - if (pidBuilder_ == null) { - return pid_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + public int getPidsCount() { + if (pidsBuilder_ == null) { + return pids_.size(); } else { - return pidBuilder_.getMessage(); + return pidsBuilder_.getCount(); } } /** - * .greptime.v1.meta.ProcedureId pid = 2; + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ - public Builder setPid(greptime.v1.meta.Common.ProcedureId value) { - if (pidBuilder_ == null) { + public greptime.v1.meta.Common.ProcedureId getPids(int index) { + if (pidsBuilder_ == null) { + return pids_.get(index); + } else { + return pidsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + public Builder setPids( + int index, greptime.v1.meta.Common.ProcedureId value) { + if (pidsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - pid_ = value; + ensurePidsIsMutable(); + pids_.set(index, value); onChanged(); } else { - pidBuilder_.setMessage(value); + pidsBuilder_.setMessage(index, value); } - return this; } /** - * .greptime.v1.meta.ProcedureId pid = 2; + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ - public Builder setPid( - greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { - if (pidBuilder_ == null) { - pid_ = builderForValue.build(); + public Builder setPids( + int index, greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { + if (pidsBuilder_ == null) { + ensurePidsIsMutable(); + pids_.set(index, builderForValue.build()); onChanged(); } else { - pidBuilder_.setMessage(builderForValue.build()); + pidsBuilder_.setMessage(index, builderForValue.build()); } - return this; } /** - * .greptime.v1.meta.ProcedureId pid = 2; + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ - public Builder mergePid(greptime.v1.meta.Common.ProcedureId value) { - if (pidBuilder_ == null) { - if (pid_ != null) { - pid_ = - greptime.v1.meta.Common.ProcedureId.newBuilder(pid_).mergeFrom(value).buildPartial(); - } else { - pid_ = value; + public Builder addPids(greptime.v1.meta.Common.ProcedureId value) { + if (pidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensurePidsIsMutable(); + pids_.add(value); onChanged(); } else { - pidBuilder_.mergeFrom(value); + pidsBuilder_.addMessage(value); } - return this; } /** - * .greptime.v1.meta.ProcedureId pid = 2; + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ - public Builder clearPid() { - if (pidBuilder_ == null) { - pid_ = null; + public Builder addPids( + int index, greptime.v1.meta.Common.ProcedureId value) { + if (pidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePidsIsMutable(); + pids_.add(index, value); onChanged(); } else { - pid_ = null; - pidBuilder_ = null; + pidsBuilder_.addMessage(index, value); } - return this; } /** - * .greptime.v1.meta.ProcedureId pid = 2; + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ - public greptime.v1.meta.Common.ProcedureId.Builder getPidBuilder() { - - onChanged(); - return getPidFieldBuilder().getBuilder(); + public Builder addPids( + greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { + if (pidsBuilder_ == null) { + ensurePidsIsMutable(); + pids_.add(builderForValue.build()); + onChanged(); + } else { + pidsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** - * .greptime.v1.meta.ProcedureId pid = 2; + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ - public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder() { - if (pidBuilder_ != null) { - return pidBuilder_.getMessageOrBuilder(); + public Builder addPids( + int index, greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { + if (pidsBuilder_ == null) { + ensurePidsIsMutable(); + pids_.add(index, builderForValue.build()); + onChanged(); } else { - return pid_ == null ? - greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + pidsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** - * .greptime.v1.meta.ProcedureId pid = 2; + * repeated .greptime.v1.meta.ProcedureId pids = 2; */ - private com.google.protobuf.SingleFieldBuilderV3< + public Builder addAllPids( + java.lang.Iterable values) { + if (pidsBuilder_ == null) { + ensurePidsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pids_); + onChanged(); + } else { + pidsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + public Builder clearPids() { + if (pidsBuilder_ == null) { + pids_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + pidsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + public Builder removePids(int index) { + if (pidsBuilder_ == null) { + ensurePidsIsMutable(); + pids_.remove(index); + onChanged(); + } else { + pidsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + public greptime.v1.meta.Common.ProcedureId.Builder getPidsBuilder( + int index) { + return getPidsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidsOrBuilder( + int index) { + if (pidsBuilder_ == null) { + return pids_.get(index); } else { + return pidsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + public java.util.List + getPidsOrBuilderList() { + if (pidsBuilder_ != null) { + return pidsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pids_); + } + } + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + public greptime.v1.meta.Common.ProcedureId.Builder addPidsBuilder() { + return getPidsFieldBuilder().addBuilder( + greptime.v1.meta.Common.ProcedureId.getDefaultInstance()); + } + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + public greptime.v1.meta.Common.ProcedureId.Builder addPidsBuilder( + int index) { + return getPidsFieldBuilder().addBuilder( + index, greptime.v1.meta.Common.ProcedureId.getDefaultInstance()); + } + /** + * repeated .greptime.v1.meta.ProcedureId pids = 2; + */ + public java.util.List + getPidsBuilderList() { + return getPidsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> - getPidFieldBuilder() { - if (pidBuilder_ == null) { - pidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getPidsFieldBuilder() { + if (pidsBuilder_ == null) { + pidsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder>( - getPid(), + pids_, + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - pid_ = null; + pids_ = null; } - return pidBuilder_; + return pidsBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -944,48 +3994,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.meta.QueryProcedureRequest) + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.ProcedureDetailRequest) } - // @@protoc_insertion_point(class_scope:greptime.v1.meta.QueryProcedureRequest) - private static final greptime.v1.meta.Procedure.QueryProcedureRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureDetailRequest) + private static final greptime.v1.meta.Procedure.ProcedureDetailRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.QueryProcedureRequest(); + DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.ProcedureDetailRequest(); } - public static greptime.v1.meta.Procedure.QueryProcedureRequest getDefaultInstance() { + public static greptime.v1.meta.Procedure.ProcedureDetailRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public QueryProcedureRequest parsePartialFrom( + public ProcedureDetailRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryProcedureRequest(input, extensionRegistry); + return new ProcedureDetailRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public greptime.v1.meta.Procedure.QueryProcedureRequest getDefaultInstanceForType() { + public greptime.v1.meta.Procedure.ProcedureDetailRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ProcedureStateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.meta.ProcedureStateResponse) + public interface ProcedureDetailResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.ProcedureDetailResponse) com.google.protobuf.MessageOrBuilder { /** @@ -1004,50 +4054,50 @@ public interface ProcedureStateResponseOrBuilder extends greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** - * .greptime.v1.meta.ProcedureStatus status = 2; - * @return The enum numeric value on the wire for status. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - int getStatusValue(); + java.util.List + getProceduresList(); /** - * .greptime.v1.meta.ProcedureStatus status = 2; - * @return The status. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - greptime.v1.meta.Procedure.ProcedureStatus getStatus(); - + greptime.v1.meta.Procedure.ProcedureMeta getProcedures(int index); /** - * string error = 3; - * @return The error. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - java.lang.String getError(); + int getProceduresCount(); /** - * string error = 3; - * @return The bytes for error. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - com.google.protobuf.ByteString - getErrorBytes(); + java.util.List + getProceduresOrBuilderList(); + /** + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + */ + greptime.v1.meta.Procedure.ProcedureMetaOrBuilder getProceduresOrBuilder( + int index); } /** - * Protobuf type {@code greptime.v1.meta.ProcedureStateResponse} + * Protobuf type {@code greptime.v1.meta.ProcedureDetailResponse} */ - public static final class ProcedureStateResponse extends + public static final class ProcedureDetailResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.meta.ProcedureStateResponse) - ProcedureStateResponseOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.meta.ProcedureDetailResponse) + ProcedureDetailResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use ProcedureStateResponse.newBuilder() to construct. - private ProcedureStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ProcedureDetailResponse.newBuilder() to construct. + private ProcedureDetailResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProcedureStateResponse() { - status_ = 0; - error_ = ""; + private ProcedureDetailResponse() { + procedures_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ProcedureStateResponse(); + return new ProcedureDetailResponse(); } @java.lang.Override @@ -1055,7 +4105,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ProcedureStateResponse( + private ProcedureDetailResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1063,6 +4113,7 @@ private ProcedureStateResponse( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -1086,16 +4137,13 @@ private ProcedureStateResponse( break; } - case 16: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - error_ = s; + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + procedures_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + procedures_.add( + input.readMessage(greptime.v1.meta.Procedure.ProcedureMeta.parser(), extensionRegistry)); break; } default: { @@ -1115,21 +4163,24 @@ private ProcedureStateResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + procedures_ = java.util.Collections.unmodifiableList(procedures_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureDetailResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_fieldAccessorTable + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureDetailResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - greptime.v1.meta.Procedure.ProcedureStateResponse.class, greptime.v1.meta.Procedure.ProcedureStateResponse.Builder.class); + greptime.v1.meta.Procedure.ProcedureDetailResponse.class, greptime.v1.meta.Procedure.ProcedureDetailResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; @@ -1158,61 +4209,44 @@ public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } - public static final int STATUS_FIELD_NUMBER = 2; - private int status_; + public static final int PROCEDURES_FIELD_NUMBER = 2; + private java.util.List procedures_; /** - * .greptime.v1.meta.ProcedureStatus status = 2; - * @return The enum numeric value on the wire for status. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - @java.lang.Override public int getStatusValue() { - return status_; + @java.lang.Override + public java.util.List getProceduresList() { + return procedures_; } /** - * .greptime.v1.meta.ProcedureStatus status = 2; - * @return The status. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - @java.lang.Override public greptime.v1.meta.Procedure.ProcedureStatus getStatus() { - @SuppressWarnings("deprecation") - greptime.v1.meta.Procedure.ProcedureStatus result = greptime.v1.meta.Procedure.ProcedureStatus.valueOf(status_); - return result == null ? greptime.v1.meta.Procedure.ProcedureStatus.UNRECOGNIZED : result; + @java.lang.Override + public java.util.List + getProceduresOrBuilderList() { + return procedures_; } - - public static final int ERROR_FIELD_NUMBER = 3; - private volatile java.lang.Object error_; /** - * string error = 3; - * @return The error. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ @java.lang.Override - public java.lang.String getError() { - java.lang.Object ref = error_; - 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(); - error_ = s; - return s; - } + public int getProceduresCount() { + return procedures_.size(); } /** - * string error = 3; - * @return The bytes for error. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public greptime.v1.meta.Procedure.ProcedureMeta getProcedures(int index) { + return procedures_.get(index); + } + /** + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + */ + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureMetaOrBuilder getProceduresOrBuilder( + int index) { + return procedures_.get(index); } private byte memoizedIsInitialized = -1; @@ -1232,11 +4266,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (header_ != null) { output.writeMessage(1, getHeader()); } - if (status_ != greptime.v1.meta.Procedure.ProcedureStatus.Running.getNumber()) { - output.writeEnum(2, status_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_); + for (int i = 0; i < procedures_.size(); i++) { + output.writeMessage(2, procedures_.get(i)); } unknownFields.writeTo(output); } @@ -1251,12 +4282,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } - if (status_ != greptime.v1.meta.Procedure.ProcedureStatus.Running.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, status_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_); + for (int i = 0; i < procedures_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, procedures_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1268,19 +4296,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof greptime.v1.meta.Procedure.ProcedureStateResponse)) { + if (!(obj instanceof greptime.v1.meta.Procedure.ProcedureDetailResponse)) { return super.equals(obj); } - greptime.v1.meta.Procedure.ProcedureStateResponse other = (greptime.v1.meta.Procedure.ProcedureStateResponse) obj; + greptime.v1.meta.Procedure.ProcedureDetailResponse other = (greptime.v1.meta.Procedure.ProcedureDetailResponse) obj; if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { if (!getHeader() .equals(other.getHeader())) return false; } - if (status_ != other.status_) return false; - if (!getError() - .equals(other.getError())) return false; + if (!getProceduresList() + .equals(other.getProceduresList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1296,78 +4323,78 @@ public int hashCode() { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); + if (getProceduresCount() > 0) { + hash = (37 * hash) + PROCEDURES_FIELD_NUMBER; + hash = (53 * hash) + getProceduresList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailResponse 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.ProcedureStateResponse parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailResponse 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.ProcedureStateResponse parseFrom(byte[] data) + public static greptime.v1.meta.Procedure.ProcedureDetailResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom(java.io.InputStream input) + public static greptime.v1.meta.Procedure.ProcedureDetailResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailResponse 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.ProcedureStateResponse parseDelimitedFrom(java.io.InputStream input) + public static greptime.v1.meta.Procedure.ProcedureDetailResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static greptime.v1.meta.Procedure.ProcedureStateResponse parseDelimitedFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailResponse 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.ProcedureStateResponse parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + public static greptime.v1.meta.Procedure.ProcedureDetailResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1380,7 +4407,7 @@ public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(greptime.v1.meta.Procedure.ProcedureStateResponse prototype) { + public static Builder newBuilder(greptime.v1.meta.Procedure.ProcedureDetailResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1396,26 +4423,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.meta.ProcedureStateResponse} + * Protobuf type {@code greptime.v1.meta.ProcedureDetailResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.meta.ProcedureStateResponse) - greptime.v1.meta.Procedure.ProcedureStateResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.ProcedureDetailResponse) + greptime.v1.meta.Procedure.ProcedureDetailResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureDetailResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_fieldAccessorTable + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureDetailResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - greptime.v1.meta.Procedure.ProcedureStateResponse.class, greptime.v1.meta.Procedure.ProcedureStateResponse.Builder.class); + greptime.v1.meta.Procedure.ProcedureDetailResponse.class, greptime.v1.meta.Procedure.ProcedureDetailResponse.Builder.class); } - // Construct using greptime.v1.meta.Procedure.ProcedureStateResponse.newBuilder() + // Construct using greptime.v1.meta.Procedure.ProcedureDetailResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1428,6 +4455,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getProceduresFieldBuilder(); } } @java.lang.Override @@ -1439,27 +4467,29 @@ public Builder clear() { header_ = null; headerBuilder_ = null; } - status_ = 0; - - error_ = ""; - + if (proceduresBuilder_ == null) { + procedures_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + proceduresBuilder_.clear(); + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureDetailResponse_descriptor; } @java.lang.Override - public greptime.v1.meta.Procedure.ProcedureStateResponse getDefaultInstanceForType() { - return greptime.v1.meta.Procedure.ProcedureStateResponse.getDefaultInstance(); + public greptime.v1.meta.Procedure.ProcedureDetailResponse getDefaultInstanceForType() { + return greptime.v1.meta.Procedure.ProcedureDetailResponse.getDefaultInstance(); } @java.lang.Override - public greptime.v1.meta.Procedure.ProcedureStateResponse build() { - greptime.v1.meta.Procedure.ProcedureStateResponse result = buildPartial(); + public greptime.v1.meta.Procedure.ProcedureDetailResponse build() { + greptime.v1.meta.Procedure.ProcedureDetailResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1467,15 +4497,23 @@ public greptime.v1.meta.Procedure.ProcedureStateResponse build() { } @java.lang.Override - public greptime.v1.meta.Procedure.ProcedureStateResponse buildPartial() { - greptime.v1.meta.Procedure.ProcedureStateResponse result = new greptime.v1.meta.Procedure.ProcedureStateResponse(this); + public greptime.v1.meta.Procedure.ProcedureDetailResponse buildPartial() { + greptime.v1.meta.Procedure.ProcedureDetailResponse result = new greptime.v1.meta.Procedure.ProcedureDetailResponse(this); + int from_bitField0_ = bitField0_; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } - result.status_ = status_; - result.error_ = error_; + if (proceduresBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + procedures_ = java.util.Collections.unmodifiableList(procedures_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.procedures_ = procedures_; + } else { + result.procedures_ = proceduresBuilder_.build(); + } onBuilt(); return result; } @@ -1514,25 +4552,44 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof greptime.v1.meta.Procedure.ProcedureStateResponse) { - return mergeFrom((greptime.v1.meta.Procedure.ProcedureStateResponse)other); + if (other instanceof greptime.v1.meta.Procedure.ProcedureDetailResponse) { + return mergeFrom((greptime.v1.meta.Procedure.ProcedureDetailResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(greptime.v1.meta.Procedure.ProcedureStateResponse other) { - if (other == greptime.v1.meta.Procedure.ProcedureStateResponse.getDefaultInstance()) return this; + public Builder mergeFrom(greptime.v1.meta.Procedure.ProcedureDetailResponse other) { + if (other == greptime.v1.meta.Procedure.ProcedureDetailResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getError().isEmpty()) { - error_ = other.error_; - onChanged(); + if (proceduresBuilder_ == null) { + if (!other.procedures_.isEmpty()) { + if (procedures_.isEmpty()) { + procedures_ = other.procedures_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProceduresIsMutable(); + procedures_.addAll(other.procedures_); + } + onChanged(); + } + } else { + if (!other.procedures_.isEmpty()) { + if (proceduresBuilder_.isEmpty()) { + proceduresBuilder_.dispose(); + proceduresBuilder_ = null; + procedures_ = other.procedures_; + bitField0_ = (bitField0_ & ~0x00000001); + proceduresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProceduresFieldBuilder() : null; + } else { + proceduresBuilder_.addAllMessages(other.procedures_); + } + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1549,11 +4606,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - greptime.v1.meta.Procedure.ProcedureStateResponse parsedMessage = null; + greptime.v1.meta.Procedure.ProcedureDetailResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (greptime.v1.meta.Procedure.ProcedureStateResponse) e.getUnfinishedMessage(); + parsedMessage = (greptime.v1.meta.Procedure.ProcedureDetailResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1562,6 +4619,7 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private greptime.v1.meta.Common.ResponseHeader header_; private com.google.protobuf.SingleFieldBuilderV3< @@ -1682,135 +4740,245 @@ public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { return headerBuilder_; } - private int status_ = 0; + private java.util.List procedures_ = + java.util.Collections.emptyList(); + private void ensureProceduresIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + procedures_ = new java.util.ArrayList(procedures_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + greptime.v1.meta.Procedure.ProcedureMeta, greptime.v1.meta.Procedure.ProcedureMeta.Builder, greptime.v1.meta.Procedure.ProcedureMetaOrBuilder> proceduresBuilder_; + /** - * .greptime.v1.meta.ProcedureStatus status = 2; - * @return The enum numeric value on the wire for status. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - @java.lang.Override public int getStatusValue() { - return status_; + public java.util.List getProceduresList() { + if (proceduresBuilder_ == null) { + return java.util.Collections.unmodifiableList(procedures_); + } else { + return proceduresBuilder_.getMessageList(); + } } /** - * .greptime.v1.meta.ProcedureStatus status = 2; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); + public int getProceduresCount() { + if (proceduresBuilder_ == null) { + return procedures_.size(); + } else { + return proceduresBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + */ + public greptime.v1.meta.Procedure.ProcedureMeta getProcedures(int index) { + if (proceduresBuilder_ == null) { + return procedures_.get(index); + } else { + return proceduresBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + */ + public Builder setProcedures( + int index, greptime.v1.meta.Procedure.ProcedureMeta value) { + if (proceduresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProceduresIsMutable(); + procedures_.set(index, value); + onChanged(); + } else { + proceduresBuilder_.setMessage(index, value); + } return this; } /** - * .greptime.v1.meta.ProcedureStatus status = 2; - * @return The status. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - @java.lang.Override - public greptime.v1.meta.Procedure.ProcedureStatus getStatus() { - @SuppressWarnings("deprecation") - greptime.v1.meta.Procedure.ProcedureStatus result = greptime.v1.meta.Procedure.ProcedureStatus.valueOf(status_); - return result == null ? greptime.v1.meta.Procedure.ProcedureStatus.UNRECOGNIZED : result; + public Builder setProcedures( + int index, greptime.v1.meta.Procedure.ProcedureMeta.Builder builderForValue) { + if (proceduresBuilder_ == null) { + ensureProceduresIsMutable(); + procedures_.set(index, builderForValue.build()); + onChanged(); + } else { + proceduresBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** - * .greptime.v1.meta.ProcedureStatus status = 2; - * @param value The status to set. - * @return This builder for chaining. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - public Builder setStatus(greptime.v1.meta.Procedure.ProcedureStatus value) { - if (value == null) { - throw new NullPointerException(); + public Builder addProcedures(greptime.v1.meta.Procedure.ProcedureMeta value) { + if (proceduresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProceduresIsMutable(); + procedures_.add(value); + onChanged(); + } else { + proceduresBuilder_.addMessage(value); } - - status_ = value.getNumber(); - onChanged(); return this; } /** - * .greptime.v1.meta.ProcedureStatus status = 2; - * @return This builder for chaining. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); + public Builder addProcedures( + int index, greptime.v1.meta.Procedure.ProcedureMeta value) { + if (proceduresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProceduresIsMutable(); + procedures_.add(index, value); + onChanged(); + } else { + proceduresBuilder_.addMessage(index, value); + } return this; } - - private java.lang.Object error_ = ""; /** - * string error = 3; - * @return The error. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; + public Builder addProcedures( + greptime.v1.meta.Procedure.ProcedureMeta.Builder builderForValue) { + if (proceduresBuilder_ == null) { + ensureProceduresIsMutable(); + procedures_.add(builderForValue.build()); + onChanged(); } else { - return (java.lang.String) ref; + proceduresBuilder_.addMessage(builderForValue.build()); } + return this; } /** - * string error = 3; - * @return The bytes for error. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - error_ = b; - return b; + public Builder addProcedures( + int index, greptime.v1.meta.Procedure.ProcedureMeta.Builder builderForValue) { + if (proceduresBuilder_ == null) { + ensureProceduresIsMutable(); + procedures_.add(index, builderForValue.build()); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + proceduresBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** - * string error = 3; - * @param value The error to set. - * @return This builder for chaining. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - public Builder setError( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - error_ = value; - onChanged(); + public Builder addAllProcedures( + java.lang.Iterable values) { + if (proceduresBuilder_ == null) { + ensureProceduresIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, procedures_); + onChanged(); + } else { + proceduresBuilder_.addAllMessages(values); + } return this; } /** - * string error = 3; - * @return This builder for chaining. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - public Builder clearError() { - - error_ = getDefaultInstance().getError(); - onChanged(); + public Builder clearProcedures() { + if (proceduresBuilder_ == null) { + procedures_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + proceduresBuilder_.clear(); + } return this; } /** - * string error = 3; - * @param value The bytes for error to set. - * @return This builder for chaining. + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - error_ = value; - onChanged(); + public Builder removeProcedures(int index) { + if (proceduresBuilder_ == null) { + ensureProceduresIsMutable(); + procedures_.remove(index); + onChanged(); + } else { + proceduresBuilder_.remove(index); + } return this; } + /** + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + */ + public greptime.v1.meta.Procedure.ProcedureMeta.Builder getProceduresBuilder( + int index) { + return getProceduresFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + */ + public greptime.v1.meta.Procedure.ProcedureMetaOrBuilder getProceduresOrBuilder( + int index) { + if (proceduresBuilder_ == null) { + return procedures_.get(index); } else { + return proceduresBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + */ + public java.util.List + getProceduresOrBuilderList() { + if (proceduresBuilder_ != null) { + return proceduresBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(procedures_); + } + } + /** + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + */ + public greptime.v1.meta.Procedure.ProcedureMeta.Builder addProceduresBuilder() { + return getProceduresFieldBuilder().addBuilder( + greptime.v1.meta.Procedure.ProcedureMeta.getDefaultInstance()); + } + /** + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + */ + public greptime.v1.meta.Procedure.ProcedureMeta.Builder addProceduresBuilder( + int index) { + return getProceduresFieldBuilder().addBuilder( + index, greptime.v1.meta.Procedure.ProcedureMeta.getDefaultInstance()); + } + /** + * repeated .greptime.v1.meta.ProcedureMeta procedures = 2; + */ + public java.util.List + getProceduresBuilderList() { + return getProceduresFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + greptime.v1.meta.Procedure.ProcedureMeta, greptime.v1.meta.Procedure.ProcedureMeta.Builder, greptime.v1.meta.Procedure.ProcedureMetaOrBuilder> + getProceduresFieldBuilder() { + if (proceduresBuilder_ == null) { + proceduresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + greptime.v1.meta.Procedure.ProcedureMeta, greptime.v1.meta.Procedure.ProcedureMeta.Builder, greptime.v1.meta.Procedure.ProcedureMetaOrBuilder>( + procedures_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + procedures_ = null; + } + return proceduresBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1824,46 +4992,51 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.meta.ProcedureStateResponse) + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.ProcedureDetailResponse) } - // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureStateResponse) - private static final greptime.v1.meta.Procedure.ProcedureStateResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureDetailResponse) + private static final greptime.v1.meta.Procedure.ProcedureDetailResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.ProcedureStateResponse(); + DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.ProcedureDetailResponse(); } - public static greptime.v1.meta.Procedure.ProcedureStateResponse getDefaultInstance() { + public static greptime.v1.meta.Procedure.ProcedureDetailResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ProcedureStateResponse parsePartialFrom( + public ProcedureDetailResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ProcedureStateResponse(input, extensionRegistry); + return new ProcedureDetailResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public greptime.v1.meta.Procedure.ProcedureStateResponse getDefaultInstanceForType() { + public greptime.v1.meta.Procedure.ProcedureDetailResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_ProcedureMeta_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_ProcedureMeta_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; private static final @@ -1874,6 +5047,16 @@ public greptime.v1.meta.Procedure.ProcedureStateResponse getDefaultInstanceForTy private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_meta_ProcedureStateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_ProcedureDetailRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_ProcedureDetailRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_ProcedureDetailResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_ProcedureDetailResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -1886,25 +5069,38 @@ public greptime.v1.meta.Procedure.ProcedureStateResponse getDefaultInstanceForTy "\n greptime/v1/meta/procedure.proto\022\020grep" + "time.v1.meta\032\035greptime/v1/meta/common.pr" + "oto\032\032greptime/v1/meta/ddl.proto\032\035greptim" + - "e/v1/meta/region.proto\"t\n\025QueryProcedure" + - "Request\022/\n\006header\030\001 \001(\0132\037.greptime.v1.me" + - "ta.RequestHeader\022*\n\003pid\030\002 \001(\0132\035.greptime" + - ".v1.meta.ProcedureId\"\214\001\n\026ProcedureStateR" + - "esponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.me" + - "ta.ResponseHeader\0221\n\006status\030\002 \001(\0162!.grep" + - "time.v1.meta.ProcedureStatus\022\r\n\005error\030\003 " + - "\001(\t*h\n\017ProcedureStatus\022\013\n\007Running\020\000\022\010\n\004D" + - "one\020\001\022\014\n\010Retrying\020\002\022\n\n\006Failed\020\003\022\023\n\017Prepa" + - "reRollback\020\004\022\017\n\013RollingBack\020\0052\226\002\n\020Proced" + - "ureService\022Z\n\005query\022\'.greptime.v1.meta.Q" + - "ueryProcedureRequest\032(.greptime.v1.meta." + - "ProcedureStateResponse\022J\n\003ddl\022 .greptime" + - ".v1.meta.DdlTaskRequest\032!.greptime.v1.me" + - "ta.DdlTaskResponse\022Z\n\007migrate\022&.greptime" + - ".v1.meta.MigrateRegionRequest\032\'.greptime" + - ".v1.meta.MigrateRegionResponseB Date: Mon, 2 Sep 2024 21:56:20 +0800 Subject: [PATCH 2/5] optimize code --- c++/greptime/v1/meta/procedure.pb.cc | 88 +--- c++/greptime/v1/meta/procedure.pb.h | 57 --- go/greptime/v1/meta/procedure.pb.go | 138 +++--- .../main/java/greptime/v1/meta/Procedure.java | 416 +----------------- proto/greptime/v1/meta/procedure.proto | 1 - src/v1/meta.rs | 1 + 6 files changed, 108 insertions(+), 593 deletions(-) diff --git a/c++/greptime/v1/meta/procedure.pb.cc b/c++/greptime/v1/meta/procedure.pb.cc index 6ce2fe6f..b985f6b2 100644 --- a/c++/greptime/v1/meta/procedure.pb.cc +++ b/c++/greptime/v1/meta/procedure.pb.cc @@ -72,8 +72,7 @@ struct ProcedureStateResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcedureStateResponseDefaultTypeInternal _ProcedureStateResponse_default_instance_; PROTOBUF_CONSTEXPR ProcedureDetailRequest::ProcedureDetailRequest( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.pids_)*/{} - , /*decltype(_impl_.header_)*/nullptr + /*decltype(_impl_.header_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} struct ProcedureDetailRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ProcedureDetailRequestDefaultTypeInternal() @@ -142,7 +141,6 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto::offsets[] P ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureDetailRequest, _impl_.header_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureDetailRequest, _impl_.pids_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureDetailResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -157,7 +155,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 12, -1, -1, sizeof(::greptime::v1::meta::QueryProcedureRequest)}, { 20, -1, -1, sizeof(::greptime::v1::meta::ProcedureStateResponse)}, { 29, -1, -1, sizeof(::greptime::v1::meta::ProcedureDetailRequest)}, - { 37, -1, -1, sizeof(::greptime::v1::meta::ProcedureDetailResponse)}, + { 36, -1, -1, sizeof(::greptime::v1::meta::ProcedureDetailResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -183,27 +181,26 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto[] "ureId\"\214\001\n\026ProcedureStateResponse\0220\n\006head" "er\030\001 \001(\0132 .greptime.v1.meta.ResponseHead" "er\0221\n\006status\030\002 \001(\0162!.greptime.v1.meta.Pr" - "ocedureStatus\022\r\n\005error\030\003 \001(\t\"v\n\026Procedur" + "ocedureStatus\022\r\n\005error\030\003 \001(\t\"I\n\026Procedur" "eDetailRequest\022/\n\006header\030\001 \001(\0132\037.greptim" - "e.v1.meta.RequestHeader\022+\n\004pids\030\002 \003(\0132\035." - "greptime.v1.meta.ProcedureId\"\200\001\n\027Procedu" - "reDetailResponse\0220\n\006header\030\001 \001(\0132 .grept" - "ime.v1.meta.ResponseHeader\0223\n\nprocedures" - "\030\002 \003(\0132\037.greptime.v1.meta.ProcedureMeta*" - "h\n\017ProcedureStatus\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\017PrepareRo" - "llback\020\004\022\017\n\013RollingBack\020\0052\366\002\n\020ProcedureS" - "ervice\022Z\n\005query\022\'.greptime.v1.meta.Query" - "ProcedureRequest\032(.greptime.v1.meta.Proc" - "edureStateResponse\022J\n\003ddl\022 .greptime.v1." - "meta.DdlTaskRequest\032!.greptime.v1.meta.D" - "dlTaskResponse\022Z\n\007migrate\022&.greptime.v1." - "meta.MigrateRegionRequest\032\'.greptime.v1." - "meta.MigrateRegionResponse\022^\n\007details\022(." - "greptime.v1.meta.ProcedureDetailRequest\032" - ").greptime.v1.meta.ProcedureDetailRespon" - "seB(from._internal_metadata_); @@ -1216,8 +1209,7 @@ inline void ProcedureDetailRequest::SharedCtor( (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.pids_){arena} - , decltype(_impl_.header_){nullptr} + decltype(_impl_.header_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; } @@ -1233,7 +1225,6 @@ ProcedureDetailRequest::~ProcedureDetailRequest() { inline void ProcedureDetailRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.pids_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.header_; } @@ -1247,7 +1238,6 @@ void ProcedureDetailRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.pids_.Clear(); if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; } @@ -1269,19 +1259,6 @@ const char* ProcedureDetailRequest::_InternalParse(const char* ptr, ::_pbi::Pars } else goto handle_unusual; continue; - // repeated .greptime.v1.meta.ProcedureId pids = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_pids(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; - continue; default: goto handle_unusual; } // switch @@ -1318,14 +1295,6 @@ uint8_t* ProcedureDetailRequest::_InternalSerialize( _Internal::header(this).GetCachedSize(), target, stream); } - // repeated .greptime.v1.meta.ProcedureId pids = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_pids_size()); i < n; i++) { - const auto& repfield = this->_internal_pids(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.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); @@ -1342,13 +1311,6 @@ size_t ProcedureDetailRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .greptime.v1.meta.ProcedureId pids = 2; - total_size += 1UL * this->_internal_pids_size(); - for (const auto& msg : this->_impl_.pids_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - // .greptime.v1.meta.RequestHeader header = 1; if (this->_internal_has_header()) { total_size += 1 + @@ -1374,7 +1336,6 @@ void ProcedureDetailRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.pids_.MergeFrom(from._impl_.pids_); if (from._internal_has_header()) { _this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom( from._internal_header()); @@ -1396,7 +1357,6 @@ bool ProcedureDetailRequest::IsInitialized() const { void ProcedureDetailRequest::InternalSwap(ProcedureDetailRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.pids_.InternalSwap(&other->_impl_.pids_); swap(_impl_.header_, other->_impl_.header_); } diff --git a/c++/greptime/v1/meta/procedure.pb.h b/c++/greptime/v1/meta/procedure.pb.h index 86a72f96..7750969f 100644 --- a/c++/greptime/v1/meta/procedure.pb.h +++ b/c++/greptime/v1/meta/procedure.pb.h @@ -815,27 +815,8 @@ class ProcedureDetailRequest final : // accessors ------------------------------------------------------- enum : int { - kPidsFieldNumber = 2, kHeaderFieldNumber = 1, }; - // repeated .greptime.v1.meta.ProcedureId pids = 2; - int pids_size() const; - private: - int _internal_pids_size() const; - public: - void clear_pids(); - ::greptime::v1::meta::ProcedureId* mutable_pids(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureId >* - mutable_pids(); - private: - const ::greptime::v1::meta::ProcedureId& _internal_pids(int index) const; - ::greptime::v1::meta::ProcedureId* _internal_add_pids(); - public: - const ::greptime::v1::meta::ProcedureId& pids(int index) const; - ::greptime::v1::meta::ProcedureId* add_pids(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureId >& - pids() const; - // .greptime.v1.meta.RequestHeader header = 1; bool has_header() const; private: @@ -862,7 +843,6 @@ class ProcedureDetailRequest final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureId > pids_; ::greptime::v1::meta::RequestHeader* header_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; @@ -1724,43 +1704,6 @@ inline void ProcedureDetailRequest::set_allocated_header(::greptime::v1::meta::R // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureDetailRequest.header) } -// repeated .greptime.v1.meta.ProcedureId pids = 2; -inline int ProcedureDetailRequest::_internal_pids_size() const { - return _impl_.pids_.size(); -} -inline int ProcedureDetailRequest::pids_size() const { - return _internal_pids_size(); -} -inline ::greptime::v1::meta::ProcedureId* ProcedureDetailRequest::mutable_pids(int index) { - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureDetailRequest.pids) - return _impl_.pids_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureId >* -ProcedureDetailRequest::mutable_pids() { - // @@protoc_insertion_point(field_mutable_list:greptime.v1.meta.ProcedureDetailRequest.pids) - return &_impl_.pids_; -} -inline const ::greptime::v1::meta::ProcedureId& ProcedureDetailRequest::_internal_pids(int index) const { - return _impl_.pids_.Get(index); -} -inline const ::greptime::v1::meta::ProcedureId& ProcedureDetailRequest::pids(int index) const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureDetailRequest.pids) - return _internal_pids(index); -} -inline ::greptime::v1::meta::ProcedureId* ProcedureDetailRequest::_internal_add_pids() { - return _impl_.pids_.Add(); -} -inline ::greptime::v1::meta::ProcedureId* ProcedureDetailRequest::add_pids() { - ::greptime::v1::meta::ProcedureId* _add = _internal_add_pids(); - // @@protoc_insertion_point(field_add:greptime.v1.meta.ProcedureDetailRequest.pids) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::ProcedureId >& -ProcedureDetailRequest::pids() const { - // @@protoc_insertion_point(field_list:greptime.v1.meta.ProcedureDetailRequest.pids) - return _impl_.pids_; -} - // ------------------------------------------------------------------- // ProcedureDetailResponse diff --git a/go/greptime/v1/meta/procedure.pb.go b/go/greptime/v1/meta/procedure.pb.go index 71459edf..b82ece03 100644 --- a/go/greptime/v1/meta/procedure.pb.go +++ b/go/greptime/v1/meta/procedure.pb.go @@ -293,7 +293,6 @@ type ProcedureDetailRequest struct { unknownFields protoimpl.UnknownFields Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Pids []*ProcedureId `protobuf:"bytes,2,rep,name=pids,proto3" json:"pids,omitempty"` } func (x *ProcedureDetailRequest) Reset() { @@ -335,13 +334,6 @@ func (x *ProcedureDetailRequest) GetHeader() *RequestHeader { return nil } -func (x *ProcedureDetailRequest) GetPids() []*ProcedureId { - if x != nil { - return x.Pids - } - return nil -} - type ProcedureDetailResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -442,59 +434,56 @@ var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{ 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x22, 0x84, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 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, + 0x6f, 0x72, 0x22, 0x51, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 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, 0x22, 0x94, 0x01, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, + 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 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, 0x3f, 0x0a, 0x0a, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1f, 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, 0x4d, 0x65, 0x74, 0x61, + 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x2a, 0x68, 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, 0x32, 0xf6, 0x02, 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, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x04, 0x70, 0x69, 0x64, 0x73, 0x18, 0x02, - 0x20, 0x03, 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, 0x04, 0x70, 0x69, 0x64, 0x73, 0x22, 0x94, 0x01, 0x0a, 0x17, 0x50, 0x72, - 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 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, - 0x3f, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1f, 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, - 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, - 0x2a, 0x68, 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, 0x32, 0xf6, 0x02, 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, 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, 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, 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, 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, + 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, 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, 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 ( @@ -534,22 +523,21 @@ var file_greptime_v1_meta_procedure_proto_depIdxs = []int32{ 8, // 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 7, // 6: greptime.v1.meta.ProcedureDetailRequest.header:type_name -> greptime.v1.meta.RequestHeader - 6, // 7: greptime.v1.meta.ProcedureDetailRequest.pids:type_name -> greptime.v1.meta.ProcedureId - 8, // 8: greptime.v1.meta.ProcedureDetailResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 1, // 9: greptime.v1.meta.ProcedureDetailResponse.procedures:type_name -> greptime.v1.meta.ProcedureMeta - 2, // 10: greptime.v1.meta.ProcedureService.query:input_type -> greptime.v1.meta.QueryProcedureRequest - 9, // 11: greptime.v1.meta.ProcedureService.ddl:input_type -> greptime.v1.meta.DdlTaskRequest - 10, // 12: greptime.v1.meta.ProcedureService.migrate:input_type -> greptime.v1.meta.MigrateRegionRequest - 4, // 13: greptime.v1.meta.ProcedureService.details:input_type -> greptime.v1.meta.ProcedureDetailRequest - 3, // 14: greptime.v1.meta.ProcedureService.query:output_type -> greptime.v1.meta.ProcedureStateResponse - 11, // 15: greptime.v1.meta.ProcedureService.ddl:output_type -> greptime.v1.meta.DdlTaskResponse - 12, // 16: greptime.v1.meta.ProcedureService.migrate:output_type -> greptime.v1.meta.MigrateRegionResponse - 5, // 17: greptime.v1.meta.ProcedureService.details:output_type -> greptime.v1.meta.ProcedureDetailResponse - 14, // [14:18] is the sub-list for method output_type - 10, // [10:14] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name + 8, // 7: greptime.v1.meta.ProcedureDetailResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 1, // 8: greptime.v1.meta.ProcedureDetailResponse.procedures:type_name -> greptime.v1.meta.ProcedureMeta + 2, // 9: greptime.v1.meta.ProcedureService.query:input_type -> greptime.v1.meta.QueryProcedureRequest + 9, // 10: greptime.v1.meta.ProcedureService.ddl:input_type -> greptime.v1.meta.DdlTaskRequest + 10, // 11: greptime.v1.meta.ProcedureService.migrate:input_type -> greptime.v1.meta.MigrateRegionRequest + 4, // 12: greptime.v1.meta.ProcedureService.details:input_type -> greptime.v1.meta.ProcedureDetailRequest + 3, // 13: greptime.v1.meta.ProcedureService.query:output_type -> greptime.v1.meta.ProcedureStateResponse + 11, // 14: greptime.v1.meta.ProcedureService.ddl:output_type -> greptime.v1.meta.DdlTaskResponse + 12, // 15: greptime.v1.meta.ProcedureService.migrate:output_type -> greptime.v1.meta.MigrateRegionResponse + 5, // 16: greptime.v1.meta.ProcedureService.details:output_type -> greptime.v1.meta.ProcedureDetailResponse + 13, // [13:17] is the sub-list for method output_type + 9, // [9:13] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name } func init() { file_greptime_v1_meta_procedure_proto_init() } diff --git a/java/src/main/java/greptime/v1/meta/Procedure.java b/java/src/main/java/greptime/v1/meta/Procedure.java index f9fa8b35..e80c6059 100644 --- a/java/src/main/java/greptime/v1/meta/Procedure.java +++ b/java/src/main/java/greptime/v1/meta/Procedure.java @@ -3054,30 +3054,6 @@ public interface ProcedureDetailRequestOrBuilder extends * .greptime.v1.meta.RequestHeader header = 1; */ greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder(); - - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - java.util.List - getPidsList(); - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - greptime.v1.meta.Common.ProcedureId getPids(int index); - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - int getPidsCount(); - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - java.util.List - getPidsOrBuilderList(); - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - greptime.v1.meta.Common.ProcedureIdOrBuilder getPidsOrBuilder( - int index); } /** * Protobuf type {@code greptime.v1.meta.ProcedureDetailRequest} @@ -3092,7 +3068,6 @@ private ProcedureDetailRequest(com.google.protobuf.GeneratedMessageV3.Builder super(builder); } private ProcedureDetailRequest() { - pids_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -3115,7 +3090,6 @@ private ProcedureDetailRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -3139,15 +3113,6 @@ private ProcedureDetailRequest( break; } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pids_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - pids_.add( - input.readMessage(greptime.v1.meta.Common.ProcedureId.parser(), extensionRegistry)); - break; - } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -3165,9 +3130,6 @@ private ProcedureDetailRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pids_ = java.util.Collections.unmodifiableList(pids_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -3211,46 +3173,6 @@ public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } - public static final int PIDS_FIELD_NUMBER = 2; - private java.util.List pids_; - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - @java.lang.Override - public java.util.List getPidsList() { - return pids_; - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - @java.lang.Override - public java.util.List - getPidsOrBuilderList() { - return pids_; - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - @java.lang.Override - public int getPidsCount() { - return pids_.size(); - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - @java.lang.Override - public greptime.v1.meta.Common.ProcedureId getPids(int index) { - return pids_.get(index); - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - @java.lang.Override - public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidsOrBuilder( - int index) { - return pids_.get(index); - } - private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -3268,9 +3190,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (header_ != null) { output.writeMessage(1, getHeader()); } - for (int i = 0; i < pids_.size(); i++) { - output.writeMessage(2, pids_.get(i)); - } unknownFields.writeTo(output); } @@ -3284,10 +3203,6 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } - for (int i = 0; i < pids_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, pids_.get(i)); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3308,8 +3223,6 @@ public boolean equals(final java.lang.Object obj) { if (!getHeader() .equals(other.getHeader())) return false; } - if (!getPidsList() - .equals(other.getPidsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3325,10 +3238,6 @@ public int hashCode() { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } - if (getPidsCount() > 0) { - hash = (37 * hash) + PIDS_FIELD_NUMBER; - hash = (53 * hash) + getPidsList().hashCode(); - } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3457,7 +3366,6 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getPidsFieldBuilder(); } } @java.lang.Override @@ -3469,12 +3377,6 @@ public Builder clear() { header_ = null; headerBuilder_ = null; } - if (pidsBuilder_ == null) { - pids_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - pidsBuilder_.clear(); - } return this; } @@ -3501,21 +3403,11 @@ public greptime.v1.meta.Procedure.ProcedureDetailRequest build() { @java.lang.Override public greptime.v1.meta.Procedure.ProcedureDetailRequest buildPartial() { greptime.v1.meta.Procedure.ProcedureDetailRequest result = new greptime.v1.meta.Procedure.ProcedureDetailRequest(this); - int from_bitField0_ = bitField0_; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } - if (pidsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - pids_ = java.util.Collections.unmodifiableList(pids_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pids_ = pids_; - } else { - result.pids_ = pidsBuilder_.build(); - } onBuilt(); return result; } @@ -3567,32 +3459,6 @@ public Builder mergeFrom(greptime.v1.meta.Procedure.ProcedureDetailRequest other if (other.hasHeader()) { mergeHeader(other.getHeader()); } - if (pidsBuilder_ == null) { - if (!other.pids_.isEmpty()) { - if (pids_.isEmpty()) { - pids_ = other.pids_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePidsIsMutable(); - pids_.addAll(other.pids_); - } - onChanged(); - } - } else { - if (!other.pids_.isEmpty()) { - if (pidsBuilder_.isEmpty()) { - pidsBuilder_.dispose(); - pidsBuilder_ = null; - pids_ = other.pids_; - bitField0_ = (bitField0_ & ~0x00000001); - pidsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPidsFieldBuilder() : null; - } else { - pidsBuilder_.addAllMessages(other.pids_); - } - } - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3621,7 +3487,6 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private greptime.v1.meta.Common.RequestHeader header_; private com.google.protobuf.SingleFieldBuilderV3< @@ -3741,246 +3606,6 @@ public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { } return headerBuilder_; } - - private java.util.List pids_ = - java.util.Collections.emptyList(); - private void ensurePidsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pids_ = new java.util.ArrayList(pids_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> pidsBuilder_; - - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public java.util.List getPidsList() { - if (pidsBuilder_ == null) { - return java.util.Collections.unmodifiableList(pids_); - } else { - return pidsBuilder_.getMessageList(); - } - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public int getPidsCount() { - if (pidsBuilder_ == null) { - return pids_.size(); - } else { - return pidsBuilder_.getCount(); - } - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public greptime.v1.meta.Common.ProcedureId getPids(int index) { - if (pidsBuilder_ == null) { - return pids_.get(index); - } else { - return pidsBuilder_.getMessage(index); - } - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public Builder setPids( - int index, greptime.v1.meta.Common.ProcedureId value) { - if (pidsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePidsIsMutable(); - pids_.set(index, value); - onChanged(); - } else { - pidsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public Builder setPids( - int index, greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { - if (pidsBuilder_ == null) { - ensurePidsIsMutable(); - pids_.set(index, builderForValue.build()); - onChanged(); - } else { - pidsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public Builder addPids(greptime.v1.meta.Common.ProcedureId value) { - if (pidsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePidsIsMutable(); - pids_.add(value); - onChanged(); - } else { - pidsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public Builder addPids( - int index, greptime.v1.meta.Common.ProcedureId value) { - if (pidsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePidsIsMutable(); - pids_.add(index, value); - onChanged(); - } else { - pidsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public Builder addPids( - greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { - if (pidsBuilder_ == null) { - ensurePidsIsMutable(); - pids_.add(builderForValue.build()); - onChanged(); - } else { - pidsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public Builder addPids( - int index, greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { - if (pidsBuilder_ == null) { - ensurePidsIsMutable(); - pids_.add(index, builderForValue.build()); - onChanged(); - } else { - pidsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public Builder addAllPids( - java.lang.Iterable values) { - if (pidsBuilder_ == null) { - ensurePidsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pids_); - onChanged(); - } else { - pidsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public Builder clearPids() { - if (pidsBuilder_ == null) { - pids_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - pidsBuilder_.clear(); - } - return this; - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public Builder removePids(int index) { - if (pidsBuilder_ == null) { - ensurePidsIsMutable(); - pids_.remove(index); - onChanged(); - } else { - pidsBuilder_.remove(index); - } - return this; - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public greptime.v1.meta.Common.ProcedureId.Builder getPidsBuilder( - int index) { - return getPidsFieldBuilder().getBuilder(index); - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidsOrBuilder( - int index) { - if (pidsBuilder_ == null) { - return pids_.get(index); } else { - return pidsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public java.util.List - getPidsOrBuilderList() { - if (pidsBuilder_ != null) { - return pidsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pids_); - } - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public greptime.v1.meta.Common.ProcedureId.Builder addPidsBuilder() { - return getPidsFieldBuilder().addBuilder( - greptime.v1.meta.Common.ProcedureId.getDefaultInstance()); - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public greptime.v1.meta.Common.ProcedureId.Builder addPidsBuilder( - int index) { - return getPidsFieldBuilder().addBuilder( - index, greptime.v1.meta.Common.ProcedureId.getDefaultInstance()); - } - /** - * repeated .greptime.v1.meta.ProcedureId pids = 2; - */ - public java.util.List - getPidsBuilderList() { - return getPidsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> - getPidsFieldBuilder() { - if (pidsBuilder_ == null) { - pidsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder>( - pids_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - pids_ = null; - } - return pidsBuilder_; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5080,27 +4705,26 @@ public greptime.v1.meta.Procedure.ProcedureDetailResponse getDefaultInstanceForT "ureId\"\214\001\n\026ProcedureStateResponse\0220\n\006head" + "er\030\001 \001(\0132 .greptime.v1.meta.ResponseHead" + "er\0221\n\006status\030\002 \001(\0162!.greptime.v1.meta.Pr" + - "ocedureStatus\022\r\n\005error\030\003 \001(\t\"v\n\026Procedur" + + "ocedureStatus\022\r\n\005error\030\003 \001(\t\"I\n\026Procedur" + "eDetailRequest\022/\n\006header\030\001 \001(\0132\037.greptim" + - "e.v1.meta.RequestHeader\022+\n\004pids\030\002 \003(\0132\035." + - "greptime.v1.meta.ProcedureId\"\200\001\n\027Procedu" + - "reDetailResponse\0220\n\006header\030\001 \001(\0132 .grept" + - "ime.v1.meta.ResponseHeader\0223\n\nprocedures" + - "\030\002 \003(\0132\037.greptime.v1.meta.ProcedureMeta*" + - "h\n\017ProcedureStatus\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\017PrepareRo" + - "llback\020\004\022\017\n\013RollingBack\020\0052\366\002\n\020ProcedureS" + - "ervice\022Z\n\005query\022\'.greptime.v1.meta.Query" + - "ProcedureRequest\032(.greptime.v1.meta.Proc" + - "edureStateResponse\022J\n\003ddl\022 .greptime.v1." + - "meta.DdlTaskRequest\032!.greptime.v1.meta.D" + - "dlTaskResponse\022Z\n\007migrate\022&.greptime.v1." + - "meta.MigrateRegionRequest\032\'.greptime.v1." + - "meta.MigrateRegionResponse\022^\n\007details\022(." + - "greptime.v1.meta.ProcedureDetailRequest\032" + - ").greptime.v1.meta.ProcedureDetailRespon" + - "seB Date: Mon, 2 Sep 2024 22:51:45 +0800 Subject: [PATCH 3/5] optimize code --- c++/greptime/v1/meta/procedure.pb.cc | 116 ++++++------ c++/greptime/v1/meta/procedure.pb.h | 78 ++++---- go/greptime/v1/meta/procedure.pb.go | 162 ++++++++--------- .../main/java/greptime/v1/meta/Procedure.java | 170 +++++++++--------- proto/greptime/v1/meta/procedure.proto | 2 +- 5 files changed, 264 insertions(+), 264 deletions(-) diff --git a/c++/greptime/v1/meta/procedure.pb.cc b/c++/greptime/v1/meta/procedure.pb.cc index b985f6b2..9d7867b8 100644 --- a/c++/greptime/v1/meta/procedure.pb.cc +++ b/c++/greptime/v1/meta/procedure.pb.cc @@ -25,7 +25,7 @@ namespace v1 { namespace meta { PROTOBUF_CONSTEXPR ProcedureMeta::ProcedureMeta( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + /*decltype(_impl_.type_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.error_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.id_)*/nullptr , /*decltype(_impl_.start_time_ms_)*/uint64_t{0u} @@ -112,7 +112,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto::offsets[] P ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.type_name_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.status_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.start_time_ms_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.end_time_ms_), @@ -170,37 +170,37 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto[] "\n greptime/v1/meta/procedure.proto\022\020grep" "time.v1.meta\032\035greptime/v1/meta/common.pr" "oto\032\032greptime/v1/meta/ddl.proto\032\035greptim" - "e/v1/meta/region.proto\"\266\001\n\rProcedureMeta" + "e/v1/meta/region.proto\"\273\001\n\rProcedureMeta" "\022)\n\002id\030\001 \001(\0132\035.greptime.v1.meta.Procedur" - "eId\022\014\n\004name\030\002 \001(\t\0221\n\006status\030\003 \001(\0162!.grep" - "time.v1.meta.ProcedureStatus\022\025\n\rstart_ti" - "me_ms\030\004 \001(\004\022\023\n\013end_time_ms\030\005 \001(\004\022\r\n\005erro" - "r\030\006 \001(\t\"t\n\025QueryProcedureRequest\022/\n\006head" - "er\030\001 \001(\0132\037.greptime.v1.meta.RequestHeade" - "r\022*\n\003pid\030\002 \001(\0132\035.greptime.v1.meta.Proced" - "ureId\"\214\001\n\026ProcedureStateResponse\0220\n\006head" - "er\030\001 \001(\0132 .greptime.v1.meta.ResponseHead" - "er\0221\n\006status\030\002 \001(\0162!.greptime.v1.meta.Pr" - "ocedureStatus\022\r\n\005error\030\003 \001(\t\"I\n\026Procedur" - "eDetailRequest\022/\n\006header\030\001 \001(\0132\037.greptim" - "e.v1.meta.RequestHeader\"\200\001\n\027ProcedureDet" - "ailResponse\0220\n\006header\030\001 \001(\0132 .greptime.v" - "1.meta.ResponseHeader\0223\n\nprocedures\030\002 \003(" - "\0132\037.greptime.v1.meta.ProcedureMeta*h\n\017Pr" - "ocedureStatus\022\013\n\007Running\020\000\022\010\n\004Done\020\001\022\014\n\010" - "Retrying\020\002\022\n\n\006Failed\020\003\022\023\n\017PrepareRollbac" - "k\020\004\022\017\n\013RollingBack\020\0052\366\002\n\020ProcedureServic" - "e\022Z\n\005query\022\'.greptime.v1.meta.QueryProce" - "dureRequest\032(.greptime.v1.meta.Procedure" - "StateResponse\022J\n\003ddl\022 .greptime.v1.meta." - "DdlTaskRequest\032!.greptime.v1.meta.DdlTas" - "kResponse\022Z\n\007migrate\022&.greptime.v1.meta." - "MigrateRegionRequest\032\'.greptime.v1.meta." - "MigrateRegionResponse\022^\n\007details\022(.grept" - "ime.v1.meta.ProcedureDetailRequest\032).gre" - "ptime.v1.meta.ProcedureDetailResponseB(from._internal_metadata_); - _impl_.name_.InitDefault(); + _impl_.type_name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.type_name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), + if (!from._internal_type_name().empty()) { + _this->_impl_.type_name_.Set(from._internal_type_name(), _this->GetArenaForAllocation()); } _impl_.error_.InitDefault(); @@ -310,7 +310,7 @@ inline void ProcedureMeta::SharedCtor( (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.name_){} + decltype(_impl_.type_name_){} , decltype(_impl_.error_){} , decltype(_impl_.id_){nullptr} , decltype(_impl_.start_time_ms_){uint64_t{0u}} @@ -318,9 +318,9 @@ inline void ProcedureMeta::SharedCtor( , decltype(_impl_.status_){0} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.name_.InitDefault(); + _impl_.type_name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.type_name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.error_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING @@ -339,7 +339,7 @@ ProcedureMeta::~ProcedureMeta() { inline void ProcedureMeta::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); + _impl_.type_name_.Destroy(); _impl_.error_.Destroy(); if (this != internal_default_instance()) delete _impl_.id_; } @@ -354,7 +354,7 @@ void ProcedureMeta::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); + _impl_.type_name_.ClearToEmpty(); _impl_.error_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && _impl_.id_ != nullptr) { delete _impl_.id_; @@ -380,13 +380,13 @@ const char* ProcedureMeta::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // string name = 2; + // string type_name = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_name(); + auto str = _internal_mutable_type_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.ProcedureMeta.name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.ProcedureMeta.type_name")); } else goto handle_unusual; continue; @@ -461,14 +461,14 @@ uint8_t* ProcedureMeta::_InternalSerialize( _Internal::id(this).GetCachedSize(), target, stream); } - // string name = 2; - if (!this->_internal_name().empty()) { + // string type_name = 2; + if (!this->_internal_type_name().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), + this->_internal_type_name().data(), static_cast(this->_internal_type_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.meta.ProcedureMeta.name"); + "greptime.v1.meta.ProcedureMeta.type_name"); target = stream->WriteStringMaybeAliased( - 2, this->_internal_name(), target); + 2, this->_internal_type_name(), target); } // .greptime.v1.meta.ProcedureStatus status = 3; @@ -516,11 +516,11 @@ size_t ProcedureMeta::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string name = 2; - if (!this->_internal_name().empty()) { + // string type_name = 2; + if (!this->_internal_type_name().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); + this->_internal_type_name()); } // string error = 6; @@ -571,8 +571,8 @@ void ProcedureMeta::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :: uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + if (!from._internal_type_name().empty()) { + _this->_internal_set_type_name(from._internal_type_name()); } if (!from._internal_error().empty()) { _this->_internal_set_error(from._internal_error()); @@ -610,8 +610,8 @@ void ProcedureMeta::InternalSwap(ProcedureMeta* other) { auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena + &_impl_.type_name_, lhs_arena, + &other->_impl_.type_name_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.error_, lhs_arena, diff --git a/c++/greptime/v1/meta/procedure.pb.h b/c++/greptime/v1/meta/procedure.pb.h index 7750969f..58552918 100644 --- a/c++/greptime/v1/meta/procedure.pb.h +++ b/c++/greptime/v1/meta/procedure.pb.h @@ -232,25 +232,25 @@ class ProcedureMeta final : // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 2, + kTypeNameFieldNumber = 2, kErrorFieldNumber = 6, kIdFieldNumber = 1, kStartTimeMsFieldNumber = 4, kEndTimeMsFieldNumber = 5, kStatusFieldNumber = 3, }; - // string name = 2; - void clear_name(); - const std::string& name() const; + // string type_name = 2; + void clear_type_name(); + const std::string& type_name() const; template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_type_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_type_name(); + PROTOBUF_NODISCARD std::string* release_type_name(); + void set_allocated_type_name(std::string* type_name); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); + const std::string& _internal_type_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_name(const std::string& value); + std::string* _internal_mutable_type_name(); public: // string error = 6; @@ -320,7 +320,7 @@ class ProcedureMeta final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_; ::greptime::v1::meta::ProcedureId* id_; uint64_t start_time_ms_; @@ -1122,54 +1122,54 @@ inline void ProcedureMeta::set_allocated_id(::greptime::v1::meta::ProcedureId* i // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureMeta.id) } -// string name = 2; -inline void ProcedureMeta::clear_name() { - _impl_.name_.ClearToEmpty(); +// string type_name = 2; +inline void ProcedureMeta::clear_type_name() { + _impl_.type_name_.ClearToEmpty(); } -inline const std::string& ProcedureMeta::name() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.name) - return _internal_name(); +inline const std::string& ProcedureMeta::type_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.type_name) + return _internal_type_name(); } template inline PROTOBUF_ALWAYS_INLINE -void ProcedureMeta::set_name(ArgT0&& arg0, ArgT... args) { +void ProcedureMeta::set_type_name(ArgT0&& arg0, ArgT... args) { - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.name) + _impl_.type_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.type_name) } -inline std::string* ProcedureMeta::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureMeta.name) +inline std::string* ProcedureMeta::mutable_type_name() { + std::string* _s = _internal_mutable_type_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureMeta.type_name) return _s; } -inline const std::string& ProcedureMeta::_internal_name() const { - return _impl_.name_.Get(); +inline const std::string& ProcedureMeta::_internal_type_name() const { + return _impl_.type_name_.Get(); } -inline void ProcedureMeta::_internal_set_name(const std::string& value) { +inline void ProcedureMeta::_internal_set_type_name(const std::string& value) { - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.type_name_.Set(value, GetArenaForAllocation()); } -inline std::string* ProcedureMeta::_internal_mutable_name() { +inline std::string* ProcedureMeta::_internal_mutable_type_name() { - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.type_name_.Mutable(GetArenaForAllocation()); } -inline std::string* ProcedureMeta::release_name() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureMeta.name) - return _impl_.name_.Release(); +inline std::string* ProcedureMeta::release_type_name() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureMeta.type_name) + return _impl_.type_name_.Release(); } -inline void ProcedureMeta::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void ProcedureMeta::set_allocated_type_name(std::string* type_name) { + if (type_name != nullptr) { } else { } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); + _impl_.type_name_.SetAllocated(type_name, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + if (_impl_.type_name_.IsDefault()) { + _impl_.type_name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureMeta.name) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureMeta.type_name) } // .greptime.v1.meta.ProcedureStatus status = 3; diff --git a/go/greptime/v1/meta/procedure.pb.go b/go/greptime/v1/meta/procedure.pb.go index b82ece03..248a9090 100644 --- a/go/greptime/v1/meta/procedure.pb.go +++ b/go/greptime/v1/meta/procedure.pb.go @@ -88,7 +88,7 @@ type ProcedureMeta struct { unknownFields protoimpl.UnknownFields Id *ProcedureId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + TypeName string `protobuf:"bytes,2,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` Status ProcedureStatus `protobuf:"varint,3,opt,name=status,proto3,enum=greptime.v1.meta.ProcedureStatus" json:"status,omitempty"` StartTimeMs uint64 `protobuf:"varint,4,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"` EndTimeMs uint64 `protobuf:"varint,5,opt,name=end_time_ms,json=endTimeMs,proto3" json:"end_time_ms,omitempty"` @@ -134,9 +134,9 @@ func (x *ProcedureMeta) GetId() *ProcedureId { return nil } -func (x *ProcedureMeta) GetName() string { +func (x *ProcedureMeta) GetTypeName() string { if x != nil { - return x.Name + return x.TypeName } return "" } @@ -400,90 +400,90 @@ var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x64, 0x64, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, - 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe7, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf0, 0x01, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 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, 0x02, 0x69, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x21, 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, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, - 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, - 0x4d, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, - 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, - 0x4d, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x81, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 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, 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, 0x22, 0xa3, 0x01, 0x0a, - 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x21, 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, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x22, 0x51, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 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, + 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 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, 0x22, 0x94, 0x01, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, - 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 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, 0x3f, 0x0a, 0x0a, 0x70, - 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1f, 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, 0x4d, 0x65, 0x74, 0x61, - 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x2a, 0x68, 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, 0x32, 0xf6, 0x02, 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, 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, + 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x65, + 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x09, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x22, 0x81, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, + 0x64, 0x75, 0x72, 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, 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, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, + 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 0x39, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 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, 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, + 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x51, 0x0a, 0x16, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 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, 0x22, 0x94, + 0x01, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 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, 0x3f, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 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, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x64, 0x75, 0x72, 0x65, 0x73, 0x2a, 0x68, 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, 0x32, + 0xf6, 0x02, 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, 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, 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 ( diff --git a/java/src/main/java/greptime/v1/meta/Procedure.java b/java/src/main/java/greptime/v1/meta/Procedure.java index e80c6059..3de6ab3c 100644 --- a/java/src/main/java/greptime/v1/meta/Procedure.java +++ b/java/src/main/java/greptime/v1/meta/Procedure.java @@ -178,16 +178,16 @@ public interface ProcedureMetaOrBuilder extends greptime.v1.meta.Common.ProcedureIdOrBuilder getIdOrBuilder(); /** - * string name = 2; - * @return The name. + * string type_name = 2; + * @return The typeName. */ - java.lang.String getName(); + java.lang.String getTypeName(); /** - * string name = 2; - * @return The bytes for name. + * string type_name = 2; + * @return The bytes for typeName. */ com.google.protobuf.ByteString - getNameBytes(); + getTypeNameBytes(); /** * .greptime.v1.meta.ProcedureStatus status = 3; @@ -237,7 +237,7 @@ private ProcedureMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } private ProcedureMeta() { - name_ = ""; + typeName_ = ""; status_ = 0; error_ = ""; } @@ -288,7 +288,7 @@ private ProcedureMeta( case 18: { java.lang.String s = input.readStringRequireUtf8(); - name_ = s; + typeName_ = s; break; } case 24: { @@ -373,38 +373,38 @@ public greptime.v1.meta.Common.ProcedureIdOrBuilder getIdOrBuilder() { return getId(); } - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; + public static final int TYPE_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object typeName_; /** - * string name = 2; - * @return The name. + * string type_name = 2; + * @return The typeName. */ @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getTypeName() { + java.lang.Object ref = typeName_; 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(); - name_ = s; + typeName_ = s; return s; } } /** - * string name = 2; - * @return The bytes for name. + * string type_name = 2; + * @return The bytes for typeName. */ @java.lang.Override public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; + getTypeNameBytes() { + java.lang.Object ref = typeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - name_ = b; + typeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -507,8 +507,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (id_ != null) { output.writeMessage(1, getId()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, typeName_); } if (status_ != greptime.v1.meta.Procedure.ProcedureStatus.Running.getNumber()) { output.writeEnum(3, status_); @@ -535,8 +535,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, typeName_); } if (status_ != greptime.v1.meta.Procedure.ProcedureStatus.Running.getNumber()) { size += com.google.protobuf.CodedOutputStream @@ -573,8 +573,8 @@ public boolean equals(final java.lang.Object obj) { if (!getId() .equals(other.getId())) return false; } - if (!getName() - .equals(other.getName())) return false; + if (!getTypeName() + .equals(other.getTypeName())) return false; if (status_ != other.status_) return false; if (getStartTimeMs() != other.getStartTimeMs()) return false; @@ -597,8 +597,8 @@ public int hashCode() { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTypeName().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (37 * hash) + START_TIME_MS_FIELD_NUMBER; @@ -748,7 +748,7 @@ public Builder clear() { id_ = null; idBuilder_ = null; } - name_ = ""; + typeName_ = ""; status_ = 0; @@ -789,7 +789,7 @@ public greptime.v1.meta.Procedure.ProcedureMeta buildPartial() { } else { result.id_ = idBuilder_.build(); } - result.name_ = name_; + result.typeName_ = typeName_; result.status_ = status_; result.startTimeMs_ = startTimeMs_; result.endTimeMs_ = endTimeMs_; @@ -845,8 +845,8 @@ public Builder mergeFrom(greptime.v1.meta.Procedure.ProcedureMeta other) { if (other.hasId()) { mergeId(other.getId()); } - if (!other.getName().isEmpty()) { - name_ = other.name_; + if (!other.getTypeName().isEmpty()) { + typeName_ = other.typeName_; onChanged(); } if (other.status_ != 0) { @@ -1010,78 +1010,78 @@ public greptime.v1.meta.Common.ProcedureIdOrBuilder getIdOrBuilder() { return idBuilder_; } - private java.lang.Object name_ = ""; + private java.lang.Object typeName_ = ""; /** - * string name = 2; - * @return The name. + * string type_name = 2; + * @return The typeName. */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getTypeName() { + java.lang.Object ref = typeName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - name_ = s; + typeName_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string name = 2; - * @return The bytes for name. + * string type_name = 2; + * @return The bytes for typeName. */ public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; + getTypeNameBytes() { + java.lang.Object ref = typeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - name_ = b; + typeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string name = 2; - * @param value The name to set. + * string type_name = 2; + * @param value The typeName to set. * @return This builder for chaining. */ - public Builder setName( + public Builder setTypeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + typeName_ = value; onChanged(); return this; } /** - * string name = 2; + * string type_name = 2; * @return This builder for chaining. */ - public Builder clearName() { + public Builder clearTypeName() { - name_ = getDefaultInstance().getName(); + typeName_ = getDefaultInstance().getTypeName(); onChanged(); return this; } /** - * string name = 2; - * @param value The bytes for name to set. + * string type_name = 2; + * @param value The bytes for typeName to set. * @return This builder for chaining. */ - public Builder setNameBytes( + public Builder setTypeNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + typeName_ = value; onChanged(); return this; } @@ -4694,37 +4694,37 @@ public greptime.v1.meta.Procedure.ProcedureDetailResponse getDefaultInstanceForT "\n greptime/v1/meta/procedure.proto\022\020grep" + "time.v1.meta\032\035greptime/v1/meta/common.pr" + "oto\032\032greptime/v1/meta/ddl.proto\032\035greptim" + - "e/v1/meta/region.proto\"\266\001\n\rProcedureMeta" + + "e/v1/meta/region.proto\"\273\001\n\rProcedureMeta" + "\022)\n\002id\030\001 \001(\0132\035.greptime.v1.meta.Procedur" + - "eId\022\014\n\004name\030\002 \001(\t\0221\n\006status\030\003 \001(\0162!.grep" + - "time.v1.meta.ProcedureStatus\022\025\n\rstart_ti" + - "me_ms\030\004 \001(\004\022\023\n\013end_time_ms\030\005 \001(\004\022\r\n\005erro" + - "r\030\006 \001(\t\"t\n\025QueryProcedureRequest\022/\n\006head" + - "er\030\001 \001(\0132\037.greptime.v1.meta.RequestHeade" + - "r\022*\n\003pid\030\002 \001(\0132\035.greptime.v1.meta.Proced" + - "ureId\"\214\001\n\026ProcedureStateResponse\0220\n\006head" + - "er\030\001 \001(\0132 .greptime.v1.meta.ResponseHead" + - "er\0221\n\006status\030\002 \001(\0162!.greptime.v1.meta.Pr" + - "ocedureStatus\022\r\n\005error\030\003 \001(\t\"I\n\026Procedur" + - "eDetailRequest\022/\n\006header\030\001 \001(\0132\037.greptim" + - "e.v1.meta.RequestHeader\"\200\001\n\027ProcedureDet" + - "ailResponse\0220\n\006header\030\001 \001(\0132 .greptime.v" + - "1.meta.ResponseHeader\0223\n\nprocedures\030\002 \003(" + - "\0132\037.greptime.v1.meta.ProcedureMeta*h\n\017Pr" + - "ocedureStatus\022\013\n\007Running\020\000\022\010\n\004Done\020\001\022\014\n\010" + - "Retrying\020\002\022\n\n\006Failed\020\003\022\023\n\017PrepareRollbac" + - "k\020\004\022\017\n\013RollingBack\020\0052\366\002\n\020ProcedureServic" + - "e\022Z\n\005query\022\'.greptime.v1.meta.QueryProce" + - "dureRequest\032(.greptime.v1.meta.Procedure" + - "StateResponse\022J\n\003ddl\022 .greptime.v1.meta." + - "DdlTaskRequest\032!.greptime.v1.meta.DdlTas" + - "kResponse\022Z\n\007migrate\022&.greptime.v1.meta." + - "MigrateRegionRequest\032\'.greptime.v1.meta." + - "MigrateRegionResponse\022^\n\007details\022(.grept" + - "ime.v1.meta.ProcedureDetailRequest\032).gre" + - "ptime.v1.meta.ProcedureDetailResponseB Date: Wed, 4 Sep 2024 20:31:53 +0800 Subject: [PATCH 4/5] add new field lock_keys --- c++/greptime/v1/meta/procedure.pb.cc | 122 ++++--- c++/greptime/v1/meta/procedure.pb.h | 107 ++++++- go/greptime/v1/meta/procedure.pb.go | 152 +++++---- .../main/java/greptime/v1/meta/Procedure.java | 303 +++++++++++++++--- proto/greptime/v1/meta/procedure.proto | 3 +- 5 files changed, 531 insertions(+), 156 deletions(-) diff --git a/c++/greptime/v1/meta/procedure.pb.cc b/c++/greptime/v1/meta/procedure.pb.cc index 9d7867b8..4749653c 100644 --- a/c++/greptime/v1/meta/procedure.pb.cc +++ b/c++/greptime/v1/meta/procedure.pb.cc @@ -25,7 +25,8 @@ namespace v1 { namespace meta { PROTOBUF_CONSTEXPR ProcedureMeta::ProcedureMeta( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.type_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + /*decltype(_impl_.lock_keys_)*/{} + , /*decltype(_impl_.type_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.error_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.id_)*/nullptr , /*decltype(_impl_.start_time_ms_)*/uint64_t{0u} @@ -116,6 +117,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto::offsets[] P PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.status_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.start_time_ms_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.end_time_ms_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.lock_keys_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureMeta, _impl_.error_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::QueryProcedureRequest, _internal_metadata_), @@ -152,10 +154,10 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto::offsets[] P }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::meta::ProcedureMeta)}, - { 12, -1, -1, sizeof(::greptime::v1::meta::QueryProcedureRequest)}, - { 20, -1, -1, sizeof(::greptime::v1::meta::ProcedureStateResponse)}, - { 29, -1, -1, sizeof(::greptime::v1::meta::ProcedureDetailRequest)}, - { 36, -1, -1, sizeof(::greptime::v1::meta::ProcedureDetailResponse)}, + { 13, -1, -1, sizeof(::greptime::v1::meta::QueryProcedureRequest)}, + { 21, -1, -1, sizeof(::greptime::v1::meta::ProcedureStateResponse)}, + { 30, -1, -1, sizeof(::greptime::v1::meta::ProcedureDetailRequest)}, + { 37, -1, -1, sizeof(::greptime::v1::meta::ProcedureDetailResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -170,37 +172,38 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto[] "\n greptime/v1/meta/procedure.proto\022\020grep" "time.v1.meta\032\035greptime/v1/meta/common.pr" "oto\032\032greptime/v1/meta/ddl.proto\032\035greptim" - "e/v1/meta/region.proto\"\273\001\n\rProcedureMeta" + "e/v1/meta/region.proto\"\316\001\n\rProcedureMeta" "\022)\n\002id\030\001 \001(\0132\035.greptime.v1.meta.Procedur" "eId\022\021\n\ttype_name\030\002 \001(\t\0221\n\006status\030\003 \001(\0162!" ".greptime.v1.meta.ProcedureStatus\022\025\n\rsta" - "rt_time_ms\030\004 \001(\004\022\023\n\013end_time_ms\030\005 \001(\004\022\r\n" - "\005error\030\006 \001(\t\"t\n\025QueryProcedureRequest\022/\n" - "\006header\030\001 \001(\0132\037.greptime.v1.meta.Request" - "Header\022*\n\003pid\030\002 \001(\0132\035.greptime.v1.meta.P" - "rocedureId\"\214\001\n\026ProcedureStateResponse\0220\n" - "\006header\030\001 \001(\0132 .greptime.v1.meta.Respons" - "eHeader\0221\n\006status\030\002 \001(\0162!.greptime.v1.me" - "ta.ProcedureStatus\022\r\n\005error\030\003 \001(\t\"I\n\026Pro" - "cedureDetailRequest\022/\n\006header\030\001 \001(\0132\037.gr" - "eptime.v1.meta.RequestHeader\"\200\001\n\027Procedu" - "reDetailResponse\0220\n\006header\030\001 \001(\0132 .grept" - "ime.v1.meta.ResponseHeader\0223\n\nprocedures" - "\030\002 \003(\0132\037.greptime.v1.meta.ProcedureMeta*" - "h\n\017ProcedureStatus\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\017PrepareRo" - "llback\020\004\022\017\n\013RollingBack\020\0052\366\002\n\020ProcedureS" - "ervice\022Z\n\005query\022\'.greptime.v1.meta.Query" - "ProcedureRequest\032(.greptime.v1.meta.Proc" - "edureStateResponse\022J\n\003ddl\022 .greptime.v1." - "meta.DdlTaskRequest\032!.greptime.v1.meta.D" - "dlTaskResponse\022Z\n\007migrate\022&.greptime.v1." - "meta.MigrateRegionRequest\032\'.greptime.v1." - "meta.MigrateRegionResponse\022^\n\007details\022(." - "greptime.v1.meta.ProcedureDetailRequest\032" - ").greptime.v1.meta.ProcedureDetailRespon" - "seB(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_lock_keys(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.ProcedureMeta.lock_keys")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // string error = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { auto str = _internal_mutable_error(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); @@ -490,14 +512,24 @@ uint8_t* ProcedureMeta::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_end_time_ms(), target); } - // string error = 6; + // repeated string lock_keys = 6; + for (int i = 0, n = this->_internal_lock_keys_size(); i < n; i++) { + const auto& s = this->_internal_lock_keys(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.meta.ProcedureMeta.lock_keys"); + target = stream->WriteString(6, s, target); + } + + // string error = 7; if (!this->_internal_error().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_error().data(), static_cast(this->_internal_error().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "greptime.v1.meta.ProcedureMeta.error"); target = stream->WriteStringMaybeAliased( - 6, this->_internal_error(), target); + 7, this->_internal_error(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -516,6 +548,14 @@ size_t ProcedureMeta::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated string lock_keys = 6; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.lock_keys_.size()); + for (int i = 0, n = _impl_.lock_keys_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.lock_keys_.Get(i)); + } + // string type_name = 2; if (!this->_internal_type_name().empty()) { total_size += 1 + @@ -523,7 +563,7 @@ size_t ProcedureMeta::ByteSizeLong() const { this->_internal_type_name()); } - // string error = 6; + // string error = 7; if (!this->_internal_error().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( @@ -571,6 +611,7 @@ void ProcedureMeta::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :: uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_impl_.lock_keys_.MergeFrom(from._impl_.lock_keys_); if (!from._internal_type_name().empty()) { _this->_internal_set_type_name(from._internal_type_name()); } @@ -609,6 +650,7 @@ void ProcedureMeta::InternalSwap(ProcedureMeta* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.lock_keys_.InternalSwap(&other->_impl_.lock_keys_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.type_name_, lhs_arena, &other->_impl_.type_name_, rhs_arena diff --git a/c++/greptime/v1/meta/procedure.pb.h b/c++/greptime/v1/meta/procedure.pb.h index 58552918..ebfb7e89 100644 --- a/c++/greptime/v1/meta/procedure.pb.h +++ b/c++/greptime/v1/meta/procedure.pb.h @@ -232,13 +232,38 @@ class ProcedureMeta final : // accessors ------------------------------------------------------- enum : int { + kLockKeysFieldNumber = 6, kTypeNameFieldNumber = 2, - kErrorFieldNumber = 6, + kErrorFieldNumber = 7, kIdFieldNumber = 1, kStartTimeMsFieldNumber = 4, kEndTimeMsFieldNumber = 5, kStatusFieldNumber = 3, }; + // repeated string lock_keys = 6; + int lock_keys_size() const; + private: + int _internal_lock_keys_size() const; + public: + void clear_lock_keys(); + const std::string& lock_keys(int index) const; + std::string* mutable_lock_keys(int index); + void set_lock_keys(int index, const std::string& value); + void set_lock_keys(int index, std::string&& value); + void set_lock_keys(int index, const char* value); + void set_lock_keys(int index, const char* value, size_t size); + std::string* add_lock_keys(); + void add_lock_keys(const std::string& value); + void add_lock_keys(std::string&& value); + void add_lock_keys(const char* value); + void add_lock_keys(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& lock_keys() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_lock_keys(); + private: + const std::string& _internal_lock_keys(int index) const; + std::string* _internal_add_lock_keys(); + public: + // string type_name = 2; void clear_type_name(); const std::string& type_name() const; @@ -253,7 +278,7 @@ class ProcedureMeta final : std::string* _internal_mutable_type_name(); public: - // string error = 6; + // string error = 7; void clear_error(); const std::string& error() const; template @@ -320,6 +345,7 @@ class ProcedureMeta final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField lock_keys_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_; ::greptime::v1::meta::ProcedureId* id_; @@ -1232,7 +1258,82 @@ inline void ProcedureMeta::set_end_time_ms(uint64_t value) { // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.end_time_ms) } -// string error = 6; +// repeated string lock_keys = 6; +inline int ProcedureMeta::_internal_lock_keys_size() const { + return _impl_.lock_keys_.size(); +} +inline int ProcedureMeta::lock_keys_size() const { + return _internal_lock_keys_size(); +} +inline void ProcedureMeta::clear_lock_keys() { + _impl_.lock_keys_.Clear(); +} +inline std::string* ProcedureMeta::add_lock_keys() { + std::string* _s = _internal_add_lock_keys(); + // @@protoc_insertion_point(field_add_mutable:greptime.v1.meta.ProcedureMeta.lock_keys) + return _s; +} +inline const std::string& ProcedureMeta::_internal_lock_keys(int index) const { + return _impl_.lock_keys_.Get(index); +} +inline const std::string& ProcedureMeta::lock_keys(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.lock_keys) + return _internal_lock_keys(index); +} +inline std::string* ProcedureMeta::mutable_lock_keys(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureMeta.lock_keys) + return _impl_.lock_keys_.Mutable(index); +} +inline void ProcedureMeta::set_lock_keys(int index, const std::string& value) { + _impl_.lock_keys_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.lock_keys) +} +inline void ProcedureMeta::set_lock_keys(int index, std::string&& value) { + _impl_.lock_keys_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.lock_keys) +} +inline void ProcedureMeta::set_lock_keys(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.lock_keys_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:greptime.v1.meta.ProcedureMeta.lock_keys) +} +inline void ProcedureMeta::set_lock_keys(int index, const char* value, size_t size) { + _impl_.lock_keys_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:greptime.v1.meta.ProcedureMeta.lock_keys) +} +inline std::string* ProcedureMeta::_internal_add_lock_keys() { + return _impl_.lock_keys_.Add(); +} +inline void ProcedureMeta::add_lock_keys(const std::string& value) { + _impl_.lock_keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add:greptime.v1.meta.ProcedureMeta.lock_keys) +} +inline void ProcedureMeta::add_lock_keys(std::string&& value) { + _impl_.lock_keys_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:greptime.v1.meta.ProcedureMeta.lock_keys) +} +inline void ProcedureMeta::add_lock_keys(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.lock_keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:greptime.v1.meta.ProcedureMeta.lock_keys) +} +inline void ProcedureMeta::add_lock_keys(const char* value, size_t size) { + _impl_.lock_keys_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:greptime.v1.meta.ProcedureMeta.lock_keys) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ProcedureMeta::lock_keys() const { + // @@protoc_insertion_point(field_list:greptime.v1.meta.ProcedureMeta.lock_keys) + return _impl_.lock_keys_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ProcedureMeta::mutable_lock_keys() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.meta.ProcedureMeta.lock_keys) + return &_impl_.lock_keys_; +} + +// string error = 7; inline void ProcedureMeta::clear_error() { _impl_.error_.ClearToEmpty(); } diff --git a/go/greptime/v1/meta/procedure.pb.go b/go/greptime/v1/meta/procedure.pb.go index 248a9090..672688a1 100644 --- a/go/greptime/v1/meta/procedure.pb.go +++ b/go/greptime/v1/meta/procedure.pb.go @@ -92,7 +92,8 @@ type ProcedureMeta struct { Status ProcedureStatus `protobuf:"varint,3,opt,name=status,proto3,enum=greptime.v1.meta.ProcedureStatus" json:"status,omitempty"` StartTimeMs uint64 `protobuf:"varint,4,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"` EndTimeMs uint64 `protobuf:"varint,5,opt,name=end_time_ms,json=endTimeMs,proto3" json:"end_time_ms,omitempty"` - Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` + LockKeys []string `protobuf:"bytes,6,rep,name=lock_keys,json=lockKeys,proto3" json:"lock_keys,omitempty"` + Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"` } func (x *ProcedureMeta) Reset() { @@ -162,6 +163,13 @@ func (x *ProcedureMeta) GetEndTimeMs() uint64 { return 0 } +func (x *ProcedureMeta) GetLockKeys() []string { + if x != nil { + return x.LockKeys + } + return nil +} + func (x *ProcedureMeta) GetError() string { if x != nil { return x.Error @@ -400,8 +408,8 @@ var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x64, 0x64, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, - 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf0, - 0x01, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x4d, 0x65, 0x74, 0x61, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8d, + 0x02, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 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, 0x02, 0x69, 0x64, 0x12, @@ -414,76 +422,78 @@ var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{ 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x09, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x22, 0x81, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, - 0x64, 0x75, 0x72, 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, 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, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, - 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 0x39, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 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, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x51, 0x0a, 0x16, 0x50, - 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 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, 0x22, 0x94, - 0x01, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 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, 0x3f, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 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, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, - 0x64, 0x75, 0x72, 0x65, 0x73, 0x2a, 0x68, 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, 0x32, - 0xf6, 0x02, 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, + 0x52, 0x09, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6c, + 0x6f, 0x63, 0x6b, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, + 0x6c, 0x6f, 0x63, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x81, + 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, + 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, 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, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, + 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 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, + 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, + 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 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, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x51, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, + 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 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, 0x22, 0x94, 0x01, 0x0a, 0x17, + 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 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, 0x3f, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 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, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, + 0x65, 0x73, 0x2a, 0x68, 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, 0x32, 0xf6, 0x02, 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, 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, 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, + 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, 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, 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 ( diff --git a/java/src/main/java/greptime/v1/meta/Procedure.java b/java/src/main/java/greptime/v1/meta/Procedure.java index 3de6ab3c..ea34668e 100644 --- a/java/src/main/java/greptime/v1/meta/Procedure.java +++ b/java/src/main/java/greptime/v1/meta/Procedure.java @@ -213,12 +213,37 @@ public interface ProcedureMetaOrBuilder extends long getEndTimeMs(); /** - * string error = 6; + * repeated string lock_keys = 6; + * @return A list containing the lockKeys. + */ + java.util.List + getLockKeysList(); + /** + * repeated string lock_keys = 6; + * @return The count of lockKeys. + */ + int getLockKeysCount(); + /** + * repeated string lock_keys = 6; + * @param index The index of the element to return. + * @return The lockKeys at the given index. + */ + java.lang.String getLockKeys(int index); + /** + * repeated string lock_keys = 6; + * @param index The index of the value to return. + * @return The bytes of the lockKeys at the given index. + */ + com.google.protobuf.ByteString + getLockKeysBytes(int index); + + /** + * string error = 7; * @return The error. */ java.lang.String getError(); /** - * string error = 6; + * string error = 7; * @return The bytes for error. */ com.google.protobuf.ByteString @@ -239,6 +264,7 @@ private ProcedureMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) private ProcedureMeta() { typeName_ = ""; status_ = 0; + lockKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; error_ = ""; } @@ -262,6 +288,7 @@ private ProcedureMeta( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -309,6 +336,15 @@ private ProcedureMeta( } case 50: { java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + lockKeys_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + lockKeys_.add(s); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; @@ -330,6 +366,9 @@ private ProcedureMeta( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + lockKeys_ = lockKeys_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -452,10 +491,45 @@ public long getEndTimeMs() { return endTimeMs_; } - public static final int ERROR_FIELD_NUMBER = 6; + public static final int LOCK_KEYS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList lockKeys_; + /** + * repeated string lock_keys = 6; + * @return A list containing the lockKeys. + */ + public com.google.protobuf.ProtocolStringList + getLockKeysList() { + return lockKeys_; + } + /** + * repeated string lock_keys = 6; + * @return The count of lockKeys. + */ + public int getLockKeysCount() { + return lockKeys_.size(); + } + /** + * repeated string lock_keys = 6; + * @param index The index of the element to return. + * @return The lockKeys at the given index. + */ + public java.lang.String getLockKeys(int index) { + return lockKeys_.get(index); + } + /** + * repeated string lock_keys = 6; + * @param index The index of the value to return. + * @return The bytes of the lockKeys at the given index. + */ + public com.google.protobuf.ByteString + getLockKeysBytes(int index) { + return lockKeys_.getByteString(index); + } + + public static final int ERROR_FIELD_NUMBER = 7; private volatile java.lang.Object error_; /** - * string error = 6; + * string error = 7; * @return The error. */ @java.lang.Override @@ -472,7 +546,7 @@ public java.lang.String getError() { } } /** - * string error = 6; + * string error = 7; * @return The bytes for error. */ @java.lang.Override @@ -519,8 +593,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (endTimeMs_ != 0L) { output.writeUInt64(5, endTimeMs_); } + for (int i = 0; i < lockKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, lockKeys_.getRaw(i)); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, error_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, error_); } unknownFields.writeTo(output); } @@ -550,8 +627,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, endTimeMs_); } + { + int dataSize = 0; + for (int i = 0; i < lockKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(lockKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getLockKeysList().size(); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, error_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, error_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -580,6 +665,8 @@ public boolean equals(final java.lang.Object obj) { != other.getStartTimeMs()) return false; if (getEndTimeMs() != other.getEndTimeMs()) return false; + if (!getLockKeysList() + .equals(other.getLockKeysList())) return false; if (!getError() .equals(other.getError())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -607,6 +694,10 @@ public int hashCode() { hash = (37 * hash) + END_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndTimeMs()); + if (getLockKeysCount() > 0) { + hash = (37 * hash) + LOCK_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getLockKeysList().hashCode(); + } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -756,6 +847,8 @@ public Builder clear() { endTimeMs_ = 0L; + lockKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); error_ = ""; return this; @@ -784,6 +877,7 @@ public greptime.v1.meta.Procedure.ProcedureMeta build() { @java.lang.Override public greptime.v1.meta.Procedure.ProcedureMeta buildPartial() { greptime.v1.meta.Procedure.ProcedureMeta result = new greptime.v1.meta.Procedure.ProcedureMeta(this); + int from_bitField0_ = bitField0_; if (idBuilder_ == null) { result.id_ = id_; } else { @@ -793,6 +887,11 @@ public greptime.v1.meta.Procedure.ProcedureMeta buildPartial() { result.status_ = status_; result.startTimeMs_ = startTimeMs_; result.endTimeMs_ = endTimeMs_; + if (((bitField0_ & 0x00000001) != 0)) { + lockKeys_ = lockKeys_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.lockKeys_ = lockKeys_; result.error_ = error_; onBuilt(); return result; @@ -858,6 +957,16 @@ public Builder mergeFrom(greptime.v1.meta.Procedure.ProcedureMeta other) { if (other.getEndTimeMs() != 0L) { setEndTimeMs(other.getEndTimeMs()); } + if (!other.lockKeys_.isEmpty()) { + if (lockKeys_.isEmpty()) { + lockKeys_ = other.lockKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLockKeysIsMutable(); + lockKeys_.addAll(other.lockKeys_); + } + onChanged(); + } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); @@ -890,6 +999,7 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private greptime.v1.meta.Common.ProcedureId id_; private com.google.protobuf.SingleFieldBuilderV3< @@ -1202,9 +1312,119 @@ public Builder clearEndTimeMs() { return this; } + private com.google.protobuf.LazyStringList lockKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLockKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + lockKeys_ = new com.google.protobuf.LazyStringArrayList(lockKeys_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string lock_keys = 6; + * @return A list containing the lockKeys. + */ + public com.google.protobuf.ProtocolStringList + getLockKeysList() { + return lockKeys_.getUnmodifiableView(); + } + /** + * repeated string lock_keys = 6; + * @return The count of lockKeys. + */ + public int getLockKeysCount() { + return lockKeys_.size(); + } + /** + * repeated string lock_keys = 6; + * @param index The index of the element to return. + * @return The lockKeys at the given index. + */ + public java.lang.String getLockKeys(int index) { + return lockKeys_.get(index); + } + /** + * repeated string lock_keys = 6; + * @param index The index of the value to return. + * @return The bytes of the lockKeys at the given index. + */ + public com.google.protobuf.ByteString + getLockKeysBytes(int index) { + return lockKeys_.getByteString(index); + } + /** + * repeated string lock_keys = 6; + * @param index The index to set the value at. + * @param value The lockKeys to set. + * @return This builder for chaining. + */ + public Builder setLockKeys( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLockKeysIsMutable(); + lockKeys_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string lock_keys = 6; + * @param value The lockKeys to add. + * @return This builder for chaining. + */ + public Builder addLockKeys( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLockKeysIsMutable(); + lockKeys_.add(value); + onChanged(); + return this; + } + /** + * repeated string lock_keys = 6; + * @param values The lockKeys to add. + * @return This builder for chaining. + */ + public Builder addAllLockKeys( + java.lang.Iterable values) { + ensureLockKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, lockKeys_); + onChanged(); + return this; + } + /** + * repeated string lock_keys = 6; + * @return This builder for chaining. + */ + public Builder clearLockKeys() { + lockKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string lock_keys = 6; + * @param value The bytes of the lockKeys to add. + * @return This builder for chaining. + */ + public Builder addLockKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLockKeysIsMutable(); + lockKeys_.add(value); + onChanged(); + return this; + } + private java.lang.Object error_ = ""; /** - * string error = 6; + * string error = 7; * @return The error. */ public java.lang.String getError() { @@ -1220,7 +1440,7 @@ public java.lang.String getError() { } } /** - * string error = 6; + * string error = 7; * @return The bytes for error. */ public com.google.protobuf.ByteString @@ -1237,7 +1457,7 @@ public java.lang.String getError() { } } /** - * string error = 6; + * string error = 7; * @param value The error to set. * @return This builder for chaining. */ @@ -1252,7 +1472,7 @@ public Builder setError( return this; } /** - * string error = 6; + * string error = 7; * @return This builder for chaining. */ public Builder clearError() { @@ -1262,7 +1482,7 @@ public Builder clearError() { return this; } /** - * string error = 6; + * string error = 7; * @param value The bytes for error to set. * @return This builder for chaining. */ @@ -4694,37 +4914,38 @@ public greptime.v1.meta.Procedure.ProcedureDetailResponse getDefaultInstanceForT "\n greptime/v1/meta/procedure.proto\022\020grep" + "time.v1.meta\032\035greptime/v1/meta/common.pr" + "oto\032\032greptime/v1/meta/ddl.proto\032\035greptim" + - "e/v1/meta/region.proto\"\273\001\n\rProcedureMeta" + + "e/v1/meta/region.proto\"\316\001\n\rProcedureMeta" + "\022)\n\002id\030\001 \001(\0132\035.greptime.v1.meta.Procedur" + "eId\022\021\n\ttype_name\030\002 \001(\t\0221\n\006status\030\003 \001(\0162!" + ".greptime.v1.meta.ProcedureStatus\022\025\n\rsta" + - "rt_time_ms\030\004 \001(\004\022\023\n\013end_time_ms\030\005 \001(\004\022\r\n" + - "\005error\030\006 \001(\t\"t\n\025QueryProcedureRequest\022/\n" + - "\006header\030\001 \001(\0132\037.greptime.v1.meta.Request" + - "Header\022*\n\003pid\030\002 \001(\0132\035.greptime.v1.meta.P" + - "rocedureId\"\214\001\n\026ProcedureStateResponse\0220\n" + - "\006header\030\001 \001(\0132 .greptime.v1.meta.Respons" + - "eHeader\0221\n\006status\030\002 \001(\0162!.greptime.v1.me" + - "ta.ProcedureStatus\022\r\n\005error\030\003 \001(\t\"I\n\026Pro" + - "cedureDetailRequest\022/\n\006header\030\001 \001(\0132\037.gr" + - "eptime.v1.meta.RequestHeader\"\200\001\n\027Procedu" + - "reDetailResponse\0220\n\006header\030\001 \001(\0132 .grept" + - "ime.v1.meta.ResponseHeader\0223\n\nprocedures" + - "\030\002 \003(\0132\037.greptime.v1.meta.ProcedureMeta*" + - "h\n\017ProcedureStatus\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\017PrepareRo" + - "llback\020\004\022\017\n\013RollingBack\020\0052\366\002\n\020ProcedureS" + - "ervice\022Z\n\005query\022\'.greptime.v1.meta.Query" + - "ProcedureRequest\032(.greptime.v1.meta.Proc" + - "edureStateResponse\022J\n\003ddl\022 .greptime.v1." + - "meta.DdlTaskRequest\032!.greptime.v1.meta.D" + - "dlTaskResponse\022Z\n\007migrate\022&.greptime.v1." + - "meta.MigrateRegionRequest\032\'.greptime.v1." + - "meta.MigrateRegionResponse\022^\n\007details\022(." + - "greptime.v1.meta.ProcedureDetailRequest\032" + - ").greptime.v1.meta.ProcedureDetailRespon" + - "seB Date: Thu, 5 Sep 2024 16:22:44 +0800 Subject: [PATCH 5/5] fix: update time type --- c++/greptime/v1/meta/procedure.pb.cc | 30 ++++++------ c++/greptime/v1/meta/procedure.pb.h | 48 +++++++++---------- go/greptime/v1/meta/procedure.pb.go | 12 ++--- .../main/java/greptime/v1/meta/Procedure.java | 34 ++++++------- proto/greptime/v1/meta/procedure.proto | 4 +- 5 files changed, 64 insertions(+), 64 deletions(-) diff --git a/c++/greptime/v1/meta/procedure.pb.cc b/c++/greptime/v1/meta/procedure.pb.cc index 4749653c..b7d5d6d4 100644 --- a/c++/greptime/v1/meta/procedure.pb.cc +++ b/c++/greptime/v1/meta/procedure.pb.cc @@ -29,8 +29,8 @@ PROTOBUF_CONSTEXPR ProcedureMeta::ProcedureMeta( , /*decltype(_impl_.type_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.error_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.id_)*/nullptr - , /*decltype(_impl_.start_time_ms_)*/uint64_t{0u} - , /*decltype(_impl_.end_time_ms_)*/uint64_t{0u} + , /*decltype(_impl_.start_time_ms_)*/int64_t{0} + , /*decltype(_impl_.end_time_ms_)*/int64_t{0} , /*decltype(_impl_.status_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} struct ProcedureMetaDefaultTypeInternal { @@ -176,7 +176,7 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto[] "\022)\n\002id\030\001 \001(\0132\035.greptime.v1.meta.Procedur" "eId\022\021\n\ttype_name\030\002 \001(\t\0221\n\006status\030\003 \001(\0162!" ".greptime.v1.meta.ProcedureStatus\022\025\n\rsta" - "rt_time_ms\030\004 \001(\004\022\023\n\013end_time_ms\030\005 \001(\004\022\021\n" + "rt_time_ms\030\004 \001(\003\022\023\n\013end_time_ms\030\005 \001(\003\022\021\n" "\tlock_keys\030\006 \003(\t\022\r\n\005error\030\007 \001(\t\"t\n\025Query" "ProcedureRequest\022/\n\006header\030\001 \001(\0132\037.grept" "ime.v1.meta.RequestHeader\022*\n\003pid\030\002 \001(\0132\035" @@ -318,8 +318,8 @@ inline void ProcedureMeta::SharedCtor( , decltype(_impl_.type_name_){} , decltype(_impl_.error_){} , decltype(_impl_.id_){nullptr} - , decltype(_impl_.start_time_ms_){uint64_t{0u}} - , decltype(_impl_.end_time_ms_){uint64_t{0u}} + , decltype(_impl_.start_time_ms_){int64_t{0}} + , decltype(_impl_.end_time_ms_){int64_t{0}} , decltype(_impl_.status_){0} , /*decltype(_impl_._cached_size_)*/{} }; @@ -406,7 +406,7 @@ const char* ProcedureMeta::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // uint64 start_time_ms = 4; + // int64 start_time_ms = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { _impl_.start_time_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); @@ -414,7 +414,7 @@ const char* ProcedureMeta::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // uint64 end_time_ms = 5; + // int64 end_time_ms = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { _impl_.end_time_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); @@ -500,16 +500,16 @@ uint8_t* ProcedureMeta::_InternalSerialize( 3, this->_internal_status(), target); } - // uint64 start_time_ms = 4; + // int64 start_time_ms = 4; if (this->_internal_start_time_ms() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_start_time_ms(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(4, this->_internal_start_time_ms(), target); } - // uint64 end_time_ms = 5; + // int64 end_time_ms = 5; if (this->_internal_end_time_ms() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_end_time_ms(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_end_time_ms(), target); } // repeated string lock_keys = 6; @@ -577,14 +577,14 @@ size_t ProcedureMeta::ByteSizeLong() const { *_impl_.id_); } - // uint64 start_time_ms = 4; + // int64 start_time_ms = 4; if (this->_internal_start_time_ms() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start_time_ms()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_start_time_ms()); } - // uint64 end_time_ms = 5; + // int64 end_time_ms = 5; if (this->_internal_end_time_ms() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_end_time_ms()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_end_time_ms()); } // .greptime.v1.meta.ProcedureStatus status = 3; diff --git a/c++/greptime/v1/meta/procedure.pb.h b/c++/greptime/v1/meta/procedure.pb.h index ebfb7e89..a093633d 100644 --- a/c++/greptime/v1/meta/procedure.pb.h +++ b/c++/greptime/v1/meta/procedure.pb.h @@ -310,22 +310,22 @@ class ProcedureMeta final : ::greptime::v1::meta::ProcedureId* id); ::greptime::v1::meta::ProcedureId* unsafe_arena_release_id(); - // uint64 start_time_ms = 4; + // int64 start_time_ms = 4; void clear_start_time_ms(); - uint64_t start_time_ms() const; - void set_start_time_ms(uint64_t value); + int64_t start_time_ms() const; + void set_start_time_ms(int64_t value); private: - uint64_t _internal_start_time_ms() const; - void _internal_set_start_time_ms(uint64_t value); + int64_t _internal_start_time_ms() const; + void _internal_set_start_time_ms(int64_t value); public: - // uint64 end_time_ms = 5; + // int64 end_time_ms = 5; void clear_end_time_ms(); - uint64_t end_time_ms() const; - void set_end_time_ms(uint64_t value); + int64_t end_time_ms() const; + void set_end_time_ms(int64_t value); private: - uint64_t _internal_end_time_ms() const; - void _internal_set_end_time_ms(uint64_t value); + int64_t _internal_end_time_ms() const; + void _internal_set_end_time_ms(int64_t value); public: // .greptime.v1.meta.ProcedureStatus status = 3; @@ -349,8 +349,8 @@ class ProcedureMeta final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_; ::greptime::v1::meta::ProcedureId* id_; - uint64_t start_time_ms_; - uint64_t end_time_ms_; + int64_t start_time_ms_; + int64_t end_time_ms_; int status_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; @@ -1218,42 +1218,42 @@ inline void ProcedureMeta::set_status(::greptime::v1::meta::ProcedureStatus valu // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.status) } -// uint64 start_time_ms = 4; +// int64 start_time_ms = 4; inline void ProcedureMeta::clear_start_time_ms() { - _impl_.start_time_ms_ = uint64_t{0u}; + _impl_.start_time_ms_ = int64_t{0}; } -inline uint64_t ProcedureMeta::_internal_start_time_ms() const { +inline int64_t ProcedureMeta::_internal_start_time_ms() const { return _impl_.start_time_ms_; } -inline uint64_t ProcedureMeta::start_time_ms() const { +inline int64_t ProcedureMeta::start_time_ms() const { // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.start_time_ms) return _internal_start_time_ms(); } -inline void ProcedureMeta::_internal_set_start_time_ms(uint64_t value) { +inline void ProcedureMeta::_internal_set_start_time_ms(int64_t value) { _impl_.start_time_ms_ = value; } -inline void ProcedureMeta::set_start_time_ms(uint64_t value) { +inline void ProcedureMeta::set_start_time_ms(int64_t value) { _internal_set_start_time_ms(value); // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.start_time_ms) } -// uint64 end_time_ms = 5; +// int64 end_time_ms = 5; inline void ProcedureMeta::clear_end_time_ms() { - _impl_.end_time_ms_ = uint64_t{0u}; + _impl_.end_time_ms_ = int64_t{0}; } -inline uint64_t ProcedureMeta::_internal_end_time_ms() const { +inline int64_t ProcedureMeta::_internal_end_time_ms() const { return _impl_.end_time_ms_; } -inline uint64_t ProcedureMeta::end_time_ms() const { +inline int64_t ProcedureMeta::end_time_ms() const { // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureMeta.end_time_ms) return _internal_end_time_ms(); } -inline void ProcedureMeta::_internal_set_end_time_ms(uint64_t value) { +inline void ProcedureMeta::_internal_set_end_time_ms(int64_t value) { _impl_.end_time_ms_ = value; } -inline void ProcedureMeta::set_end_time_ms(uint64_t value) { +inline void ProcedureMeta::set_end_time_ms(int64_t value) { _internal_set_end_time_ms(value); // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureMeta.end_time_ms) } diff --git a/go/greptime/v1/meta/procedure.pb.go b/go/greptime/v1/meta/procedure.pb.go index 672688a1..7abfa48f 100644 --- a/go/greptime/v1/meta/procedure.pb.go +++ b/go/greptime/v1/meta/procedure.pb.go @@ -90,8 +90,8 @@ type ProcedureMeta struct { Id *ProcedureId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` TypeName string `protobuf:"bytes,2,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` Status ProcedureStatus `protobuf:"varint,3,opt,name=status,proto3,enum=greptime.v1.meta.ProcedureStatus" json:"status,omitempty"` - StartTimeMs uint64 `protobuf:"varint,4,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"` - EndTimeMs uint64 `protobuf:"varint,5,opt,name=end_time_ms,json=endTimeMs,proto3" json:"end_time_ms,omitempty"` + StartTimeMs int64 `protobuf:"varint,4,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"` + EndTimeMs int64 `protobuf:"varint,5,opt,name=end_time_ms,json=endTimeMs,proto3" json:"end_time_ms,omitempty"` LockKeys []string `protobuf:"bytes,6,rep,name=lock_keys,json=lockKeys,proto3" json:"lock_keys,omitempty"` Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"` } @@ -149,14 +149,14 @@ func (x *ProcedureMeta) GetStatus() ProcedureStatus { return ProcedureStatus_Running } -func (x *ProcedureMeta) GetStartTimeMs() uint64 { +func (x *ProcedureMeta) GetStartTimeMs() int64 { if x != nil { return x.StartTimeMs } return 0 } -func (x *ProcedureMeta) GetEndTimeMs() uint64 { +func (x *ProcedureMeta) GetEndTimeMs() int64 { if x != nil { return x.EndTimeMs } @@ -419,9 +419,9 @@ var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{ 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, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x65, - 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, + 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, diff --git a/java/src/main/java/greptime/v1/meta/Procedure.java b/java/src/main/java/greptime/v1/meta/Procedure.java index ea34668e..ac1ae83a 100644 --- a/java/src/main/java/greptime/v1/meta/Procedure.java +++ b/java/src/main/java/greptime/v1/meta/Procedure.java @@ -201,13 +201,13 @@ public interface ProcedureMetaOrBuilder extends greptime.v1.meta.Procedure.ProcedureStatus getStatus(); /** - * uint64 start_time_ms = 4; + * int64 start_time_ms = 4; * @return The startTimeMs. */ long getStartTimeMs(); /** - * uint64 end_time_ms = 5; + * int64 end_time_ms = 5; * @return The endTimeMs. */ long getEndTimeMs(); @@ -326,12 +326,12 @@ private ProcedureMeta( } case 32: { - startTimeMs_ = input.readUInt64(); + startTimeMs_ = input.readInt64(); break; } case 40: { - endTimeMs_ = input.readUInt64(); + endTimeMs_ = input.readInt64(); break; } case 50: { @@ -472,7 +472,7 @@ public java.lang.String getTypeName() { public static final int START_TIME_MS_FIELD_NUMBER = 4; private long startTimeMs_; /** - * uint64 start_time_ms = 4; + * int64 start_time_ms = 4; * @return The startTimeMs. */ @java.lang.Override @@ -483,7 +483,7 @@ public long getStartTimeMs() { public static final int END_TIME_MS_FIELD_NUMBER = 5; private long endTimeMs_; /** - * uint64 end_time_ms = 5; + * int64 end_time_ms = 5; * @return The endTimeMs. */ @java.lang.Override @@ -588,10 +588,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeEnum(3, status_); } if (startTimeMs_ != 0L) { - output.writeUInt64(4, startTimeMs_); + output.writeInt64(4, startTimeMs_); } if (endTimeMs_ != 0L) { - output.writeUInt64(5, endTimeMs_); + output.writeInt64(5, endTimeMs_); } for (int i = 0; i < lockKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, lockKeys_.getRaw(i)); @@ -621,11 +621,11 @@ public int getSerializedSize() { } if (startTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, startTimeMs_); + .computeInt64Size(4, startTimeMs_); } if (endTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, endTimeMs_); + .computeInt64Size(5, endTimeMs_); } { int dataSize = 0; @@ -1252,7 +1252,7 @@ public Builder clearStatus() { private long startTimeMs_ ; /** - * uint64 start_time_ms = 4; + * int64 start_time_ms = 4; * @return The startTimeMs. */ @java.lang.Override @@ -1260,7 +1260,7 @@ public long getStartTimeMs() { return startTimeMs_; } /** - * uint64 start_time_ms = 4; + * int64 start_time_ms = 4; * @param value The startTimeMs to set. * @return This builder for chaining. */ @@ -1271,7 +1271,7 @@ public Builder setStartTimeMs(long value) { return this; } /** - * uint64 start_time_ms = 4; + * int64 start_time_ms = 4; * @return This builder for chaining. */ public Builder clearStartTimeMs() { @@ -1283,7 +1283,7 @@ public Builder clearStartTimeMs() { private long endTimeMs_ ; /** - * uint64 end_time_ms = 5; + * int64 end_time_ms = 5; * @return The endTimeMs. */ @java.lang.Override @@ -1291,7 +1291,7 @@ public long getEndTimeMs() { return endTimeMs_; } /** - * uint64 end_time_ms = 5; + * int64 end_time_ms = 5; * @param value The endTimeMs to set. * @return This builder for chaining. */ @@ -1302,7 +1302,7 @@ public Builder setEndTimeMs(long value) { return this; } /** - * uint64 end_time_ms = 5; + * int64 end_time_ms = 5; * @return This builder for chaining. */ public Builder clearEndTimeMs() { @@ -4918,7 +4918,7 @@ public greptime.v1.meta.Procedure.ProcedureDetailResponse getDefaultInstanceForT "\022)\n\002id\030\001 \001(\0132\035.greptime.v1.meta.Procedur" + "eId\022\021\n\ttype_name\030\002 \001(\t\0221\n\006status\030\003 \001(\0162!" + ".greptime.v1.meta.ProcedureStatus\022\025\n\rsta" + - "rt_time_ms\030\004 \001(\004\022\023\n\013end_time_ms\030\005 \001(\004\022\021\n" + + "rt_time_ms\030\004 \001(\003\022\023\n\013end_time_ms\030\005 \001(\003\022\021\n" + "\tlock_keys\030\006 \003(\t\022\r\n\005error\030\007 \001(\t\"t\n\025Query" + "ProcedureRequest\022/\n\006header\030\001 \001(\0132\037.grept" + "ime.v1.meta.RequestHeader\022*\n\003pid\030\002 \001(\0132\035" + diff --git a/proto/greptime/v1/meta/procedure.proto b/proto/greptime/v1/meta/procedure.proto index 4f62da55..7b53d88f 100644 --- a/proto/greptime/v1/meta/procedure.proto +++ b/proto/greptime/v1/meta/procedure.proto @@ -25,8 +25,8 @@ message ProcedureMeta { ProcedureId id = 1; string type_name = 2; ProcedureStatus status = 3; - uint64 start_time_ms = 4; - uint64 end_time_ms = 5; + int64 start_time_ms = 4; + int64 end_time_ms = 5; repeated string lock_keys = 6; string error = 7; }