diff --git a/build.rs b/build.rs index 0fb7dc6e..eae7d9a6 100644 --- a/build.rs +++ b/build.rs @@ -38,6 +38,7 @@ fn main() { "proto/greptime/v1/meta/store.proto", "proto/greptime/v1/meta/lock.proto", "proto/greptime/v1/meta/cluster.proto", + "proto/greptime/v1/region/server.proto", "proto/prometheus/remote/remote.proto", "proto/substrait_extension/promql_plan.proto", ], diff --git a/c++/greptime/v1/region/server.grpc.pb.cc b/c++/greptime/v1/region/server.grpc.pb.cc new file mode 100644 index 00000000..a92c48d7 --- /dev/null +++ b/c++/greptime/v1/region/server.grpc.pb.cc @@ -0,0 +1,90 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: greptime/v1/region/server.proto + +#include "greptime/v1/region/server.pb.h" +#include "greptime/v1/region/server.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace greptime { +namespace v1 { +namespace region { + +static const char* RegionServer_method_names[] = { + "/greptime.v1.region.RegionServer/Handle", +}; + +std::unique_ptr< RegionServer::Stub> RegionServer::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< RegionServer::Stub> stub(new RegionServer::Stub(channel, options)); + return stub; +} + +RegionServer::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Handle_(RegionServer_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status RegionServer::Stub::Handle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::greptime::v1::region::RegionResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::region::RegionRequest, ::greptime::v1::region::RegionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Handle_, context, request, response); +} + +void RegionServer::Stub::async::Handle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest* request, ::greptime::v1::region::RegionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::greptime::v1::region::RegionRequest, ::greptime::v1::region::RegionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Handle_, context, request, response, std::move(f)); +} + +void RegionServer::Stub::async::Handle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest* request, ::greptime::v1::region::RegionResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Handle_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::region::RegionResponse>* RegionServer::Stub::PrepareAsyncHandleRaw(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::region::RegionResponse, ::greptime::v1::region::RegionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Handle_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::region::RegionResponse>* RegionServer::Stub::AsyncHandleRaw(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncHandleRaw(context, request, cq); + result->StartCall(); + return result; +} + +RegionServer::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + RegionServer_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RegionServer::Service, ::greptime::v1::region::RegionRequest, ::greptime::v1::region::RegionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RegionServer::Service* service, + ::grpc::ServerContext* ctx, + const ::greptime::v1::region::RegionRequest* req, + ::greptime::v1::region::RegionResponse* resp) { + return service->Handle(ctx, req, resp); + }, this))); +} + +RegionServer::Service::~Service() { +} + +::grpc::Status RegionServer::Service::Handle(::grpc::ServerContext* context, const ::greptime::v1::region::RegionRequest* request, ::greptime::v1::region::RegionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace greptime +} // namespace v1 +} // namespace region + diff --git a/c++/greptime/v1/region/server.grpc.pb.h b/c++/greptime/v1/region/server.grpc.pb.h new file mode 100644 index 00000000..5c035755 --- /dev/null +++ b/c++/greptime/v1/region/server.grpc.pb.h @@ -0,0 +1,262 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: greptime/v1/region/server.proto +// Original file comments: +// Copyright 2023 Greptime Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_greptime_2fv1_2fregion_2fserver_2eproto__INCLUDED +#define GRPC_greptime_2fv1_2fregion_2fserver_2eproto__INCLUDED + +#include "greptime/v1/region/server.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace greptime { +namespace v1 { +namespace region { + +class RegionServer final { + public: + static constexpr char const* service_full_name() { + return "greptime.v1.region.RegionServer"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status Handle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::greptime::v1::region::RegionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::region::RegionResponse>> AsyncHandle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::region::RegionResponse>>(AsyncHandleRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::region::RegionResponse>> PrepareAsyncHandle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::region::RegionResponse>>(PrepareAsyncHandleRaw(context, request, cq)); + } + // TODO: add stream API + class async_interface { + public: + virtual ~async_interface() {} + virtual void Handle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest* request, ::greptime::v1::region::RegionResponse* response, std::function) = 0; + virtual void Handle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest* request, ::greptime::v1::region::RegionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // TODO: add stream API + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::region::RegionResponse>* AsyncHandleRaw(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::region::RegionResponse>* PrepareAsyncHandleRaw(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status Handle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::greptime::v1::region::RegionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::region::RegionResponse>> AsyncHandle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::region::RegionResponse>>(AsyncHandleRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::region::RegionResponse>> PrepareAsyncHandle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::region::RegionResponse>>(PrepareAsyncHandleRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Handle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest* request, ::greptime::v1::region::RegionResponse* response, std::function) override; + void Handle(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest* request, ::greptime::v1::region::RegionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::region::RegionResponse>* AsyncHandleRaw(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::region::RegionResponse>* PrepareAsyncHandleRaw(::grpc::ClientContext* context, const ::greptime::v1::region::RegionRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Handle_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status Handle(::grpc::ServerContext* context, const ::greptime::v1::region::RegionRequest* request, ::greptime::v1::region::RegionResponse* response); + // TODO: add stream API + }; + template + class WithAsyncMethod_Handle : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Handle() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Handle() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Handle(::grpc::ServerContext* /*context*/, const ::greptime::v1::region::RegionRequest* /*request*/, ::greptime::v1::region::RegionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestHandle(::grpc::ServerContext* context, ::greptime::v1::region::RegionRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::region::RegionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Handle AsyncService; + template + class WithCallbackMethod_Handle : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Handle() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::region::RegionRequest, ::greptime::v1::region::RegionResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::greptime::v1::region::RegionRequest* request, ::greptime::v1::region::RegionResponse* response) { return this->Handle(context, request, response); }));} + void SetMessageAllocatorFor_Handle( + ::grpc::MessageAllocator< ::greptime::v1::region::RegionRequest, ::greptime::v1::region::RegionResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::region::RegionRequest, ::greptime::v1::region::RegionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Handle() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Handle(::grpc::ServerContext* /*context*/, const ::greptime::v1::region::RegionRequest* /*request*/, ::greptime::v1::region::RegionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Handle( + ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::region::RegionRequest* /*request*/, ::greptime::v1::region::RegionResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Handle CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Handle : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Handle() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Handle() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Handle(::grpc::ServerContext* /*context*/, const ::greptime::v1::region::RegionRequest* /*request*/, ::greptime::v1::region::RegionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Handle : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Handle() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Handle() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Handle(::grpc::ServerContext* /*context*/, const ::greptime::v1::region::RegionRequest* /*request*/, ::greptime::v1::region::RegionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestHandle(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Handle : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Handle() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Handle(context, request, response); })); + } + ~WithRawCallbackMethod_Handle() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Handle(::grpc::ServerContext* /*context*/, const ::greptime::v1::region::RegionRequest* /*request*/, ::greptime::v1::region::RegionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Handle( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Handle : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Handle() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::greptime::v1::region::RegionRequest, ::greptime::v1::region::RegionResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::greptime::v1::region::RegionRequest, ::greptime::v1::region::RegionResponse>* streamer) { + return this->StreamedHandle(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Handle() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Handle(::grpc::ServerContext* /*context*/, const ::greptime::v1::region::RegionRequest* /*request*/, ::greptime::v1::region::RegionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedHandle(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::region::RegionRequest,::greptime::v1::region::RegionResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Handle StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_Handle StreamedService; +}; + +} // namespace region +} // namespace v1 +} // namespace greptime + + +#endif // GRPC_greptime_2fv1_2fregion_2fserver_2eproto__INCLUDED diff --git a/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc new file mode 100644 index 00000000..6aec7323 --- /dev/null +++ b/c++/greptime/v1/region/server.pb.cc @@ -0,0 +1,4719 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/region/server.proto + +#include "greptime/v1/region/server.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace greptime { +namespace v1 { +namespace region { +PROTOBUF_CONSTEXPR RegionRequest::RegionRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_.request_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct RegionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RegionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RegionRequestDefaultTypeInternal() {} + union { + RegionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegionRequestDefaultTypeInternal _RegionRequest_default_instance_; +PROTOBUF_CONSTEXPR RegionResponse::RegionResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_.affacted_rows_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RegionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RegionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RegionResponseDefaultTypeInternal() {} + union { + RegionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegionResponseDefaultTypeInternal _RegionResponse_default_instance_; +PROTOBUF_CONSTEXPR InsertRequests::InsertRequests( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.requests_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct InsertRequestsDefaultTypeInternal { + PROTOBUF_CONSTEXPR InsertRequestsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~InsertRequestsDefaultTypeInternal() {} + union { + InsertRequests _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InsertRequestsDefaultTypeInternal _InsertRequests_default_instance_; +PROTOBUF_CONSTEXPR DeleteRequests::DeleteRequests( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.requests_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DeleteRequestsDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRequestsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRequestsDefaultTypeInternal() {} + union { + DeleteRequests _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRequestsDefaultTypeInternal _DeleteRequests_default_instance_; +PROTOBUF_CONSTEXPR InsertRequest::InsertRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.rows_)*/{} + , /*decltype(_impl_.region_id_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct InsertRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR InsertRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~InsertRequestDefaultTypeInternal() {} + union { + InsertRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InsertRequestDefaultTypeInternal _InsertRequest_default_instance_; +PROTOBUF_CONSTEXPR DeleteRequest::DeleteRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.rows_)*/{} + , /*decltype(_impl_.region_id_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DeleteRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteRequestDefaultTypeInternal() {} + union { + DeleteRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRequestDefaultTypeInternal _DeleteRequest_default_instance_; +PROTOBUF_CONSTEXPR QueryRequest::QueryRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.plan_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.region_id_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct QueryRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR QueryRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~QueryRequestDefaultTypeInternal() {} + union { + QueryRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QueryRequestDefaultTypeInternal _QueryRequest_default_instance_; +PROTOBUF_CONSTEXPR CreateRequest_OptionsEntry_DoNotUse::CreateRequest_OptionsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct CreateRequest_OptionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateRequest_OptionsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateRequest_OptionsEntry_DoNotUseDefaultTypeInternal() {} + union { + CreateRequest_OptionsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRequest_OptionsEntry_DoNotUseDefaultTypeInternal _CreateRequest_OptionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR CreateRequest::CreateRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.column_defs_)*/{} + , /*decltype(_impl_.primary_key_)*/{} + , /*decltype(_impl_._primary_key_cached_byte_size_)*/{0} + , /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.engine_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.region_dir_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.region_id_)*/uint64_t{0u} + , /*decltype(_impl_.create_if_not_exists_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CreateRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateRequestDefaultTypeInternal() {} + union { + CreateRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRequestDefaultTypeInternal _CreateRequest_default_instance_; +PROTOBUF_CONSTEXPR DropRequest::DropRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.region_id_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DropRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DropRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DropRequestDefaultTypeInternal() {} + union { + DropRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropRequestDefaultTypeInternal _DropRequest_default_instance_; +PROTOBUF_CONSTEXPR OpenRequest_OptionsEntry_DoNotUse::OpenRequest_OptionsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct OpenRequest_OptionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR OpenRequest_OptionsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OpenRequest_OptionsEntry_DoNotUseDefaultTypeInternal() {} + union { + OpenRequest_OptionsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpenRequest_OptionsEntry_DoNotUseDefaultTypeInternal _OpenRequest_OptionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR OpenRequest::OpenRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.engine_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.region_dir_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.region_id_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct OpenRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR OpenRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OpenRequestDefaultTypeInternal() {} + union { + OpenRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpenRequestDefaultTypeInternal _OpenRequest_default_instance_; +PROTOBUF_CONSTEXPR CloseRequest::CloseRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.region_id_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CloseRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CloseRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CloseRequestDefaultTypeInternal() {} + union { + CloseRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CloseRequestDefaultTypeInternal _CloseRequest_default_instance_; +PROTOBUF_CONSTEXPR AlterRequest::AlterRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.region_id_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AlterRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AlterRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AlterRequestDefaultTypeInternal() {} + union { + AlterRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AlterRequestDefaultTypeInternal _AlterRequest_default_instance_; +PROTOBUF_CONSTEXPR FlushRequest::FlushRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.region_id_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FlushRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR FlushRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FlushRequestDefaultTypeInternal() {} + union { + FlushRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlushRequestDefaultTypeInternal _FlushRequest_default_instance_; +PROTOBUF_CONSTEXPR CompactRequest::CompactRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.region_id_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CompactRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CompactRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CompactRequestDefaultTypeInternal() {} + union { + CompactRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CompactRequestDefaultTypeInternal _CompactRequest_default_instance_; +PROTOBUF_CONSTEXPR ColumnDef::ColumnDef( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.default_constraint_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.column_id_)*/0u + , /*decltype(_impl_.datatype_)*/0 + , /*decltype(_impl_.is_nullable_)*/false + , /*decltype(_impl_.semantic_type_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ColumnDefDefaultTypeInternal { + PROTOBUF_CONSTEXPR ColumnDefDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ColumnDefDefaultTypeInternal() {} + union { + ColumnDef _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnDefDefaultTypeInternal _ColumnDef_default_instance_; +} // namespace region +} // namespace v1 +} // namespace greptime +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[17]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr; + +const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequest, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequest, _impl_.header_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequest, _impl_.request_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionResponse, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionResponse, _impl_.affacted_rows_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::InsertRequests, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::InsertRequests, _impl_.requests_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequests, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequests, _impl_.requests_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::InsertRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::InsertRequest, _impl_.region_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::InsertRequest, _impl_.rows_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _impl_.region_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _impl_.rows_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryRequest, _impl_.region_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryRequest, _impl_.plan_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.region_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.engine_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.column_defs_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.primary_key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.create_if_not_exists_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.region_dir_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.options_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DropRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DropRequest, _impl_.region_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.region_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.engine_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.region_dir_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.options_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CloseRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CloseRequest, _impl_.region_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.region_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::FlushRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::FlushRequest, _impl_.region_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CompactRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CompactRequest, _impl_.region_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ColumnDef, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ColumnDef, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ColumnDef, _impl_.column_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ColumnDef, _impl_.datatype_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ColumnDef, _impl_.is_nullable_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ColumnDef, _impl_.default_constraint_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ColumnDef, _impl_.semantic_type_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::greptime::v1::region::RegionRequest)}, + { 17, -1, -1, sizeof(::greptime::v1::region::RegionResponse)}, + { 25, -1, -1, sizeof(::greptime::v1::region::InsertRequests)}, + { 32, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)}, + { 39, -1, -1, sizeof(::greptime::v1::region::InsertRequest)}, + { 47, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)}, + { 55, -1, -1, sizeof(::greptime::v1::region::QueryRequest)}, + { 63, 71, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)}, + { 73, -1, -1, sizeof(::greptime::v1::region::CreateRequest)}, + { 86, -1, -1, sizeof(::greptime::v1::region::DropRequest)}, + { 93, 101, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)}, + { 103, -1, -1, sizeof(::greptime::v1::region::OpenRequest)}, + { 113, -1, -1, sizeof(::greptime::v1::region::CloseRequest)}, + { 120, -1, -1, sizeof(::greptime::v1::region::AlterRequest)}, + { 127, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, + { 134, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, + { 141, -1, -1, sizeof(::greptime::v1::region::ColumnDef)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::greptime::v1::region::_RegionRequest_default_instance_._instance, + &::greptime::v1::region::_RegionResponse_default_instance_._instance, + &::greptime::v1::region::_InsertRequests_default_instance_._instance, + &::greptime::v1::region::_DeleteRequests_default_instance_._instance, + &::greptime::v1::region::_InsertRequest_default_instance_._instance, + &::greptime::v1::region::_DeleteRequest_default_instance_._instance, + &::greptime::v1::region::_QueryRequest_default_instance_._instance, + &::greptime::v1::region::_CreateRequest_OptionsEntry_DoNotUse_default_instance_._instance, + &::greptime::v1::region::_CreateRequest_default_instance_._instance, + &::greptime::v1::region::_DropRequest_default_instance_._instance, + &::greptime::v1::region::_OpenRequest_OptionsEntry_DoNotUse_default_instance_._instance, + &::greptime::v1::region::_OpenRequest_default_instance_._instance, + &::greptime::v1::region::_CloseRequest_default_instance_._instance, + &::greptime::v1::region::_AlterRequest_default_instance_._instance, + &::greptime::v1::region::_FlushRequest_default_instance_._instance, + &::greptime::v1::region::_CompactRequest_default_instance_._instance, + &::greptime::v1::region::_ColumnDef_default_instance_._instance, +}; + +const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\037greptime/v1/region/server.proto\022\022grept" + "ime.v1.region\032\030greptime/v1/common.proto\032" + "\025greptime/v1/row.proto\"\233\004\n\rRegionRequest" + "\022*\n\006header\030\001 \001(\0132\032.greptime.v1.RequestHe" + "ader\0225\n\007inserts\030\003 \001(\0132\".greptime.v1.regi" + "on.InsertRequestsH\000\0225\n\007deletes\030\004 \001(\0132\".g" + "reptime.v1.region.DeleteRequestsH\000\0223\n\006cr" + "eate\030\005 \001(\0132!.greptime.v1.region.CreateRe" + "questH\000\022/\n\004drop\030\006 \001(\0132\037.greptime.v1.regi" + "on.DropRequestH\000\022/\n\004open\030\007 \001(\0132\037.greptim" + "e.v1.region.OpenRequestH\000\0221\n\005close\030\010 \001(\013" + "2 .greptime.v1.region.CloseRequestH\000\0221\n\005" + "alter\030\t \001(\0132 .greptime.v1.region.AlterRe" + "questH\000\0221\n\005flush\030\n \001(\0132 .greptime.v1.reg" + "ion.FlushRequestH\000\0225\n\007compact\030\013 \001(\0132\".gr" + "eptime.v1.region.CompactRequestH\000B\t\n\007req" + "uest\"T\n\016RegionResponse\022+\n\006header\030\001 \001(\0132\033" + ".greptime.v1.ResponseHeader\022\025\n\raffacted_" + "rows\030\002 \001(\004\"E\n\016InsertRequests\0223\n\010requests" + "\030\001 \003(\0132!.greptime.v1.region.InsertReques" + "t\"E\n\016DeleteRequests\0223\n\010requests\030\001 \003(\0132!." + "greptime.v1.region.DeleteRequest\"B\n\rInse" + "rtRequest\022\021\n\tregion_id\030\001 \001(\004\022\036\n\004rows\030\002 \003" + "(\0132\020.greptime.v1.Row\"B\n\rDeleteRequest\022\021\n" + "\tregion_id\030\001 \001(\004\022\036\n\004rows\030\002 \003(\0132\020.greptim" + "e.v1.Row\"/\n\014QueryRequest\022\021\n\tregion_id\030\001 " + "\001(\004\022\014\n\004plan\030\002 \001(\014\"\236\002\n\rCreateRequest\022\021\n\tr" + "egion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\0222\n\013column" + "_defs\030\003 \003(\0132\035.greptime.v1.region.ColumnD" + "ef\022\023\n\013primary_key\030\004 \003(\r\022\034\n\024create_if_not" + "_exists\030\005 \001(\010\022\022\n\nregion_dir\030\006 \001(\t\022\?\n\007opt" + "ions\030\007 \003(\0132..greptime.v1.region.CreateRe" + "quest.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013DropReques" + "t\022\021\n\tregion_id\030\001 \001(\004\"\263\001\n\013OpenRequest\022\021\n\t" + "region_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\022\n\nregio" + "n_dir\030\003 \001(\t\022=\n\007options\030\004 \003(\0132,.greptime." + "v1.region.OpenRequest.OptionsEntry\032.\n\014Op" + "tionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + "8\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001(\004\"!\n" + "\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\"!\n\014Flus" + "hRequest\022\021\n\tregion_id\030\001 \001(\004\"#\n\016CompactRe" + "quest\022\021\n\tregion_id\030\001 \001(\004\"\276\001\n\tColumnDef\022\014" + "\n\004name\030\001 \001(\t\022\021\n\tcolumn_id\030\002 \001(\r\022-\n\010datat" + "ype\030\003 \001(\0162\033.greptime.v1.ColumnDataType\022\023" + "\n\013is_nullable\030\004 \001(\010\022\032\n\022default_constrain" + "t\030\005 \001(\014\0220\n\rsemantic_type\030\006 \001(\0162\031.greptim" + "e.v1.SemanticType2_\n\014RegionServer\022O\n\006Han" + "dle\022!.greptime.v1.region.RegionRequest\032\"" + ".greptime.v1.region.RegionResponseB]\n\025io" + ".greptime.v1.regionB\006ServerZ_impl_.header_; +} +const ::greptime::v1::region::InsertRequests& +RegionRequest::_Internal::inserts(const RegionRequest* msg) { + return *msg->_impl_.request_.inserts_; +} +const ::greptime::v1::region::DeleteRequests& +RegionRequest::_Internal::deletes(const RegionRequest* msg) { + return *msg->_impl_.request_.deletes_; +} +const ::greptime::v1::region::CreateRequest& +RegionRequest::_Internal::create(const RegionRequest* msg) { + return *msg->_impl_.request_.create_; +} +const ::greptime::v1::region::DropRequest& +RegionRequest::_Internal::drop(const RegionRequest* msg) { + return *msg->_impl_.request_.drop_; +} +const ::greptime::v1::region::OpenRequest& +RegionRequest::_Internal::open(const RegionRequest* msg) { + return *msg->_impl_.request_.open_; +} +const ::greptime::v1::region::CloseRequest& +RegionRequest::_Internal::close(const RegionRequest* msg) { + return *msg->_impl_.request_.close_; +} +const ::greptime::v1::region::AlterRequest& +RegionRequest::_Internal::alter(const RegionRequest* msg) { + return *msg->_impl_.request_.alter_; +} +const ::greptime::v1::region::FlushRequest& +RegionRequest::_Internal::flush(const RegionRequest* msg) { + return *msg->_impl_.request_.flush_; +} +const ::greptime::v1::region::CompactRequest& +RegionRequest::_Internal::compact(const RegionRequest* msg) { + return *msg->_impl_.request_.compact_; +} +void RegionRequest::clear_header() { + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; +} +void RegionRequest::set_allocated_inserts(::greptime::v1::region::InsertRequests* inserts) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (inserts) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(inserts); + if (message_arena != submessage_arena) { + inserts = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, inserts, submessage_arena); + } + set_has_inserts(); + _impl_.request_.inserts_ = inserts; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.RegionRequest.inserts) +} +void RegionRequest::set_allocated_deletes(::greptime::v1::region::DeleteRequests* deletes) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (deletes) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(deletes); + if (message_arena != submessage_arena) { + deletes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, deletes, submessage_arena); + } + set_has_deletes(); + _impl_.request_.deletes_ = deletes; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.RegionRequest.deletes) +} +void RegionRequest::set_allocated_create(::greptime::v1::region::CreateRequest* create) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (create) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(create); + if (message_arena != submessage_arena) { + create = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, create, submessage_arena); + } + set_has_create(); + _impl_.request_.create_ = create; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.RegionRequest.create) +} +void RegionRequest::set_allocated_drop(::greptime::v1::region::DropRequest* drop) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (drop) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(drop); + if (message_arena != submessage_arena) { + drop = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, drop, submessage_arena); + } + set_has_drop(); + _impl_.request_.drop_ = drop; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.RegionRequest.drop) +} +void RegionRequest::set_allocated_open(::greptime::v1::region::OpenRequest* open) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (open) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(open); + if (message_arena != submessage_arena) { + open = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, open, submessage_arena); + } + set_has_open(); + _impl_.request_.open_ = open; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.RegionRequest.open) +} +void RegionRequest::set_allocated_close(::greptime::v1::region::CloseRequest* close) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (close) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(close); + if (message_arena != submessage_arena) { + close = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, close, submessage_arena); + } + set_has_close(); + _impl_.request_.close_ = close; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.RegionRequest.close) +} +void RegionRequest::set_allocated_alter(::greptime::v1::region::AlterRequest* alter) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (alter) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(alter); + if (message_arena != submessage_arena) { + alter = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, alter, submessage_arena); + } + set_has_alter(); + _impl_.request_.alter_ = alter; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.RegionRequest.alter) +} +void RegionRequest::set_allocated_flush(::greptime::v1::region::FlushRequest* flush) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (flush) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(flush); + if (message_arena != submessage_arena) { + flush = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, flush, submessage_arena); + } + set_has_flush(); + _impl_.request_.flush_ = flush; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.RegionRequest.flush) +} +void RegionRequest::set_allocated_compact(::greptime::v1::region::CompactRequest* compact) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_request(); + if (compact) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(compact); + if (message_arena != submessage_arena) { + compact = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, compact, submessage_arena); + } + set_has_compact(); + _impl_.request_.compact_ = compact; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.RegionRequest.compact) +} +RegionRequest::RegionRequest(::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.region.RegionRequest) +} +RegionRequest::RegionRequest(const RegionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RegionRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.request_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_header()) { + _this->_impl_.header_ = new ::greptime::v1::RequestHeader(*from._impl_.header_); + } + clear_has_request(); + switch (from.request_case()) { + case kInserts: { + _this->_internal_mutable_inserts()->::greptime::v1::region::InsertRequests::MergeFrom( + from._internal_inserts()); + break; + } + case kDeletes: { + _this->_internal_mutable_deletes()->::greptime::v1::region::DeleteRequests::MergeFrom( + from._internal_deletes()); + break; + } + case kCreate: { + _this->_internal_mutable_create()->::greptime::v1::region::CreateRequest::MergeFrom( + from._internal_create()); + break; + } + case kDrop: { + _this->_internal_mutable_drop()->::greptime::v1::region::DropRequest::MergeFrom( + from._internal_drop()); + break; + } + case kOpen: { + _this->_internal_mutable_open()->::greptime::v1::region::OpenRequest::MergeFrom( + from._internal_open()); + break; + } + case kClose: { + _this->_internal_mutable_close()->::greptime::v1::region::CloseRequest::MergeFrom( + from._internal_close()); + break; + } + case kAlter: { + _this->_internal_mutable_alter()->::greptime::v1::region::AlterRequest::MergeFrom( + from._internal_alter()); + break; + } + case kFlush: { + _this->_internal_mutable_flush()->::greptime::v1::region::FlushRequest::MergeFrom( + from._internal_flush()); + break; + } + case kCompact: { + _this->_internal_mutable_compact()->::greptime::v1::region::CompactRequest::MergeFrom( + from._internal_compact()); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.RegionRequest) +} + +inline void RegionRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.request_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_request(); +} + +RegionRequest::~RegionRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.region.RegionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RegionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.header_; + if (has_request()) { + clear_request(); + } +} + +void RegionRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RegionRequest::clear_request() { +// @@protoc_insertion_point(one_of_clear_start:greptime.v1.region.RegionRequest) + switch (request_case()) { + case kInserts: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.inserts_; + } + break; + } + case kDeletes: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.deletes_; + } + break; + } + case kCreate: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.create_; + } + break; + } + case kDrop: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.drop_; + } + break; + } + case kOpen: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.open_; + } + break; + } + case kClose: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.close_; + } + break; + } + case kAlter: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.alter_; + } + break; + } + case kFlush: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.flush_; + } + break; + } + case kCompact: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.compact_; + } + break; + } + case REQUEST_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = REQUEST_NOT_SET; +} + + +void RegionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.RegionRequest) + 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; + clear_request(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RegionRequest::_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.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.region.InsertRequests inserts = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_inserts(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.region.DeleteRequests deletes = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_deletes(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.region.CreateRequest create = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_create(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.region.DropRequest drop = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_drop(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.region.OpenRequest open = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_open(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.region.CloseRequest close = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_close(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.region.AlterRequest alter = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_alter(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.region.FlushRequest flush = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_flush(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.region.CompactRequest compact = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_compact(), 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* RegionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.RegionRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.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.region.InsertRequests inserts = 3; + if (_internal_has_inserts()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::inserts(this), + _Internal::inserts(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.region.DeleteRequests deletes = 4; + if (_internal_has_deletes()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::deletes(this), + _Internal::deletes(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.region.CreateRequest create = 5; + if (_internal_has_create()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::create(this), + _Internal::create(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.region.DropRequest drop = 6; + if (_internal_has_drop()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::drop(this), + _Internal::drop(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.region.OpenRequest open = 7; + if (_internal_has_open()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::open(this), + _Internal::open(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.region.CloseRequest close = 8; + if (_internal_has_close()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::close(this), + _Internal::close(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.region.AlterRequest alter = 9; + if (_internal_has_alter()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::alter(this), + _Internal::alter(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.region.FlushRequest flush = 10; + if (_internal_has_flush()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(10, _Internal::flush(this), + _Internal::flush(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.region.CompactRequest compact = 11; + if (_internal_has_compact()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::compact(this), + _Internal::compact(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.region.RegionRequest) + return target; +} + +size_t RegionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.RegionRequest) + 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.RequestHeader header = 1; + if (this->_internal_has_header()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.header_); + } + + switch (request_case()) { + // .greptime.v1.region.InsertRequests inserts = 3; + case kInserts: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.request_.inserts_); + break; + } + // .greptime.v1.region.DeleteRequests deletes = 4; + case kDeletes: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.request_.deletes_); + break; + } + // .greptime.v1.region.CreateRequest create = 5; + case kCreate: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.request_.create_); + break; + } + // .greptime.v1.region.DropRequest drop = 6; + case kDrop: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.request_.drop_); + break; + } + // .greptime.v1.region.OpenRequest open = 7; + case kOpen: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.request_.open_); + break; + } + // .greptime.v1.region.CloseRequest close = 8; + case kClose: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.request_.close_); + break; + } + // .greptime.v1.region.AlterRequest alter = 9; + case kAlter: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.request_.alter_); + break; + } + // .greptime.v1.region.FlushRequest flush = 10; + case kFlush: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.request_.flush_); + break; + } + // .greptime.v1.region.CompactRequest compact = 11; + case kCompact: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.request_.compact_); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RegionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RegionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RegionRequest::GetClassData() const { return &_class_data_; } + + +void RegionRequest::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.region.RegionRequest) + 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::RequestHeader::MergeFrom( + from._internal_header()); + } + switch (from.request_case()) { + case kInserts: { + _this->_internal_mutable_inserts()->::greptime::v1::region::InsertRequests::MergeFrom( + from._internal_inserts()); + break; + } + case kDeletes: { + _this->_internal_mutable_deletes()->::greptime::v1::region::DeleteRequests::MergeFrom( + from._internal_deletes()); + break; + } + case kCreate: { + _this->_internal_mutable_create()->::greptime::v1::region::CreateRequest::MergeFrom( + from._internal_create()); + break; + } + case kDrop: { + _this->_internal_mutable_drop()->::greptime::v1::region::DropRequest::MergeFrom( + from._internal_drop()); + break; + } + case kOpen: { + _this->_internal_mutable_open()->::greptime::v1::region::OpenRequest::MergeFrom( + from._internal_open()); + break; + } + case kClose: { + _this->_internal_mutable_close()->::greptime::v1::region::CloseRequest::MergeFrom( + from._internal_close()); + break; + } + case kAlter: { + _this->_internal_mutable_alter()->::greptime::v1::region::AlterRequest::MergeFrom( + from._internal_alter()); + break; + } + case kFlush: { + _this->_internal_mutable_flush()->::greptime::v1::region::FlushRequest::MergeFrom( + from._internal_flush()); + break; + } + case kCompact: { + _this->_internal_mutable_compact()->::greptime::v1::region::CompactRequest::MergeFrom( + from._internal_compact()); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RegionRequest::CopyFrom(const RegionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.RegionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionRequest::IsInitialized() const { + return true; +} + +void RegionRequest::InternalSwap(RegionRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.header_, other->_impl_.header_); + swap(_impl_.request_, other->_impl_.request_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RegionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[0]); +} + +// =================================================================== + +class RegionResponse::_Internal { + public: + static const ::greptime::v1::ResponseHeader& header(const RegionResponse* msg); +}; + +const ::greptime::v1::ResponseHeader& +RegionResponse::_Internal::header(const RegionResponse* msg) { + return *msg->_impl_.header_; +} +void RegionResponse::clear_header() { + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; +} +RegionResponse::RegionResponse(::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.region.RegionResponse) +} +RegionResponse::RegionResponse(const RegionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RegionResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.affacted_rows_){} + , /*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::ResponseHeader(*from._impl_.header_); + } + _this->_impl_.affacted_rows_ = from._impl_.affacted_rows_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.RegionResponse) +} + +inline void RegionResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.affacted_rows_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +RegionResponse::~RegionResponse() { + // @@protoc_insertion_point(destructor:greptime.v1.region.RegionResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RegionResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.header_; +} + +void RegionResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RegionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.RegionResponse) + 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; + _impl_.affacted_rows_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RegionResponse::_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.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; + // uint64 affacted_rows = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.affacted_rows_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* RegionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.RegionResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.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); + } + + // uint64 affacted_rows = 2; + if (this->_internal_affacted_rows() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_affacted_rows(), 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.region.RegionResponse) + return target; +} + +size_t RegionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.RegionResponse) + 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.ResponseHeader header = 1; + if (this->_internal_has_header()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.header_); + } + + // uint64 affacted_rows = 2; + if (this->_internal_affacted_rows() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_affacted_rows()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RegionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RegionResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RegionResponse::GetClassData() const { return &_class_data_; } + + +void RegionResponse::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.region.RegionResponse) + 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::ResponseHeader::MergeFrom( + from._internal_header()); + } + if (from._internal_affacted_rows() != 0) { + _this->_internal_set_affacted_rows(from._internal_affacted_rows()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RegionResponse::CopyFrom(const RegionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.RegionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionResponse::IsInitialized() const { + return true; +} + +void RegionResponse::InternalSwap(RegionResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RegionResponse, _impl_.affacted_rows_) + + sizeof(RegionResponse::_impl_.affacted_rows_) + - PROTOBUF_FIELD_OFFSET(RegionResponse, _impl_.header_)>( + reinterpret_cast(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RegionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[1]); +} + +// =================================================================== + +class InsertRequests::_Internal { + public: +}; + +InsertRequests::InsertRequests(::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.region.InsertRequests) +} +InsertRequests::InsertRequests(const InsertRequests& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + InsertRequests* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.requests_){from._impl_.requests_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.InsertRequests) +} + +inline void InsertRequests::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.requests_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +InsertRequests::~InsertRequests() { + // @@protoc_insertion_point(destructor:greptime.v1.region.InsertRequests) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void InsertRequests::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.requests_.~RepeatedPtrField(); +} + +void InsertRequests::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void InsertRequests::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.InsertRequests) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.requests_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* InsertRequests::_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) { + // repeated .greptime.v1.region.InsertRequest requests = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_requests(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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* InsertRequests::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.InsertRequests) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .greptime.v1.region.InsertRequest requests = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_requests_size()); i < n; i++) { + const auto& repfield = this->_internal_requests(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, 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.region.InsertRequests) + return target; +} + +size_t InsertRequests::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.InsertRequests) + 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.region.InsertRequest requests = 1; + total_size += 1UL * this->_internal_requests_size(); + for (const auto& msg : this->_impl_.requests_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InsertRequests::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + InsertRequests::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InsertRequests::GetClassData() const { return &_class_data_; } + + +void InsertRequests::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.region.InsertRequests) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.requests_.MergeFrom(from._impl_.requests_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void InsertRequests::CopyFrom(const InsertRequests& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.InsertRequests) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InsertRequests::IsInitialized() const { + return true; +} + +void InsertRequests::InternalSwap(InsertRequests* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.requests_.InternalSwap(&other->_impl_.requests_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata InsertRequests::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[2]); +} + +// =================================================================== + +class DeleteRequests::_Internal { + public: +}; + +DeleteRequests::DeleteRequests(::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.region.DeleteRequests) +} +DeleteRequests::DeleteRequests(const DeleteRequests& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeleteRequests* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.requests_){from._impl_.requests_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.DeleteRequests) +} + +inline void DeleteRequests::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.requests_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DeleteRequests::~DeleteRequests() { + // @@protoc_insertion_point(destructor:greptime.v1.region.DeleteRequests) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DeleteRequests::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.requests_.~RepeatedPtrField(); +} + +void DeleteRequests::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DeleteRequests::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.DeleteRequests) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.requests_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteRequests::_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) { + // repeated .greptime.v1.region.DeleteRequest requests = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_requests(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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* DeleteRequests::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.DeleteRequests) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .greptime.v1.region.DeleteRequest requests = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_requests_size()); i < n; i++) { + const auto& repfield = this->_internal_requests(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, 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.region.DeleteRequests) + return target; +} + +size_t DeleteRequests::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.DeleteRequests) + 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.region.DeleteRequest requests = 1; + total_size += 1UL * this->_internal_requests_size(); + for (const auto& msg : this->_impl_.requests_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRequests::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DeleteRequests::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRequests::GetClassData() const { return &_class_data_; } + + +void DeleteRequests::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.region.DeleteRequests) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.requests_.MergeFrom(from._impl_.requests_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeleteRequests::CopyFrom(const DeleteRequests& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.DeleteRequests) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteRequests::IsInitialized() const { + return true; +} + +void DeleteRequests::InternalSwap(DeleteRequests* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.requests_.InternalSwap(&other->_impl_.requests_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequests::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[3]); +} + +// =================================================================== + +class InsertRequest::_Internal { + public: +}; + +void InsertRequest::clear_rows() { + _impl_.rows_.Clear(); +} +InsertRequest::InsertRequest(::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.region.InsertRequest) +} +InsertRequest::InsertRequest(const InsertRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + InsertRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.rows_){from._impl_.rows_} + , decltype(_impl_.region_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.region_id_ = from._impl_.region_id_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.InsertRequest) +} + +inline void InsertRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.rows_){arena} + , decltype(_impl_.region_id_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +InsertRequest::~InsertRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.region.InsertRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void InsertRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.rows_.~RepeatedPtrField(); +} + +void InsertRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void InsertRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.InsertRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.rows_.Clear(); + _impl_.region_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* InsertRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 region_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .greptime.v1.Row rows = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_rows(), 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 + 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* InsertRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.InsertRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), target); + } + + // repeated .greptime.v1.Row rows = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_rows_size()); i < n; i++) { + const auto& repfield = this->_internal_rows(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.region.InsertRequest) + return target; +} + +size_t InsertRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.InsertRequest) + 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.Row rows = 2; + total_size += 1UL * this->_internal_rows_size(); + for (const auto& msg : this->_impl_.rows_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InsertRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + InsertRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InsertRequest::GetClassData() const { return &_class_data_; } + + +void InsertRequest::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.region.InsertRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.rows_.MergeFrom(from._impl_.rows_); + if (from._internal_region_id() != 0) { + _this->_internal_set_region_id(from._internal_region_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void InsertRequest::CopyFrom(const InsertRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.InsertRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InsertRequest::IsInitialized() const { + return true; +} + +void InsertRequest::InternalSwap(InsertRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.rows_.InternalSwap(&other->_impl_.rows_); + swap(_impl_.region_id_, other->_impl_.region_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata InsertRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[4]); +} + +// =================================================================== + +class DeleteRequest::_Internal { + public: +}; + +void DeleteRequest::clear_rows() { + _impl_.rows_.Clear(); +} +DeleteRequest::DeleteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.region.DeleteRequest) +} +DeleteRequest::DeleteRequest(const DeleteRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeleteRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.rows_){from._impl_.rows_} + , decltype(_impl_.region_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.region_id_ = from._impl_.region_id_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.DeleteRequest) +} + +inline void DeleteRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.rows_){arena} + , decltype(_impl_.region_id_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DeleteRequest::~DeleteRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.region.DeleteRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DeleteRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.rows_.~RepeatedPtrField(); +} + +void DeleteRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DeleteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.DeleteRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.rows_.Clear(); + _impl_.region_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 region_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .greptime.v1.Row rows = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_rows(), 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 + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DeleteRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.DeleteRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), target); + } + + // repeated .greptime.v1.Row rows = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_rows_size()); i < n; i++) { + const auto& repfield = this->_internal_rows(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.region.DeleteRequest) + return target; +} + +size_t DeleteRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.DeleteRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .greptime.v1.Row rows = 2; + total_size += 1UL * this->_internal_rows_size(); + for (const auto& msg : this->_impl_.rows_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DeleteRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteRequest::GetClassData() const { return &_class_data_; } + + +void DeleteRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.region.DeleteRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.rows_.MergeFrom(from._impl_.rows_); + if (from._internal_region_id() != 0) { + _this->_internal_set_region_id(from._internal_region_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeleteRequest::CopyFrom(const DeleteRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.DeleteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteRequest::IsInitialized() const { + return true; +} + +void DeleteRequest::InternalSwap(DeleteRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.rows_.InternalSwap(&other->_impl_.rows_); + swap(_impl_.region_id_, other->_impl_.region_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[5]); +} + +// =================================================================== + +class QueryRequest::_Internal { + public: +}; + +QueryRequest::QueryRequest(::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.region.QueryRequest) +} +QueryRequest::QueryRequest(const QueryRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + QueryRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.plan_){} + , decltype(_impl_.region_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.plan_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.plan_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_plan().empty()) { + _this->_impl_.plan_.Set(from._internal_plan(), + _this->GetArenaForAllocation()); + } + _this->_impl_.region_id_ = from._impl_.region_id_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.QueryRequest) +} + +inline void QueryRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.plan_){} + , decltype(_impl_.region_id_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.plan_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.plan_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +QueryRequest::~QueryRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.region.QueryRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void QueryRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.plan_.Destroy(); +} + +void QueryRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void QueryRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.QueryRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.plan_.ClearToEmpty(); + _impl_.region_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* QueryRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 region_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes plan = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_plan(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* QueryRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.QueryRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), target); + } + + // bytes plan = 2; + if (!this->_internal_plan().empty()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_plan(), 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.region.QueryRequest) + return target; +} + +size_t QueryRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.QueryRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes plan = 2; + if (!this->_internal_plan().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_plan()); + } + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData QueryRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + QueryRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*QueryRequest::GetClassData() const { return &_class_data_; } + + +void QueryRequest::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.region.QueryRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_plan().empty()) { + _this->_internal_set_plan(from._internal_plan()); + } + if (from._internal_region_id() != 0) { + _this->_internal_set_region_id(from._internal_region_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void QueryRequest::CopyFrom(const QueryRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.QueryRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QueryRequest::IsInitialized() const { + return true; +} + +void QueryRequest::InternalSwap(QueryRequest* 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_.plan_, lhs_arena, + &other->_impl_.plan_, rhs_arena + ); + swap(_impl_.region_id_, other->_impl_.region_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata QueryRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[6]); +} + +// =================================================================== + +CreateRequest_OptionsEntry_DoNotUse::CreateRequest_OptionsEntry_DoNotUse() {} +CreateRequest_OptionsEntry_DoNotUse::CreateRequest_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void CreateRequest_OptionsEntry_DoNotUse::MergeFrom(const CreateRequest_OptionsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest_OptionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[7]); +} + +// =================================================================== + +class CreateRequest::_Internal { + public: +}; + +CreateRequest::CreateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &CreateRequest::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:greptime.v1.region.CreateRequest) +} +CreateRequest::CreateRequest(const CreateRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CreateRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.column_defs_){from._impl_.column_defs_} + , decltype(_impl_.primary_key_){from._impl_.primary_key_} + , /*decltype(_impl_._primary_key_cached_byte_size_)*/{0} + , /*decltype(_impl_.options_)*/{} + , decltype(_impl_.engine_){} + , decltype(_impl_.region_dir_){} + , decltype(_impl_.region_id_){} + , decltype(_impl_.create_if_not_exists_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.options_.MergeFrom(from._impl_.options_); + _impl_.engine_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.engine_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_engine().empty()) { + _this->_impl_.engine_.Set(from._internal_engine(), + _this->GetArenaForAllocation()); + } + _impl_.region_dir_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.region_dir_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_region_dir().empty()) { + _this->_impl_.region_dir_.Set(from._internal_region_dir(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.region_id_, &from._impl_.region_id_, + static_cast(reinterpret_cast(&_impl_.create_if_not_exists_) - + reinterpret_cast(&_impl_.region_id_)) + sizeof(_impl_.create_if_not_exists_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.CreateRequest) +} + +inline void CreateRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.column_defs_){arena} + , decltype(_impl_.primary_key_){arena} + , /*decltype(_impl_._primary_key_cached_byte_size_)*/{0} + , /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.engine_){} + , decltype(_impl_.region_dir_){} + , decltype(_impl_.region_id_){uint64_t{0u}} + , decltype(_impl_.create_if_not_exists_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.engine_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.engine_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.region_dir_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.region_dir_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CreateRequest::~CreateRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.region.CreateRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void CreateRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.column_defs_.~RepeatedPtrField(); + _impl_.primary_key_.~RepeatedField(); + _impl_.options_.Destruct(); + _impl_.options_.~MapField(); + _impl_.engine_.Destroy(); + _impl_.region_dir_.Destroy(); +} + +void CreateRequest::ArenaDtor(void* object) { + CreateRequest* _this = reinterpret_cast< CreateRequest* >(object); + _this->_impl_.options_.Destruct(); +} +void CreateRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.CreateRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.column_defs_.Clear(); + _impl_.primary_key_.Clear(); + _impl_.options_.Clear(); + _impl_.engine_.ClearToEmpty(); + _impl_.region_dir_.ClearToEmpty(); + ::memset(&_impl_.region_id_, 0, static_cast( + reinterpret_cast(&_impl_.create_if_not_exists_) - + reinterpret_cast(&_impl_.region_id_)) + sizeof(_impl_.create_if_not_exists_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 region_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string engine = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_engine(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.CreateRequest.engine")); + } else + goto handle_unusual; + continue; + // repeated .greptime.v1.region.ColumnDef column_defs = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_column_defs(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // repeated uint32 primary_key = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_primary_key(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 32) { + _internal_add_primary_key(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool create_if_not_exists = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.create_if_not_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string region_dir = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_region_dir(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.CreateRequest.region_dir")); + } else + goto handle_unusual; + continue; + // map options = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.options_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* CreateRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.CreateRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), target); + } + + // string engine = 2; + if (!this->_internal_engine().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_engine().data(), static_cast(this->_internal_engine().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.region.CreateRequest.engine"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_engine(), target); + } + + // repeated .greptime.v1.region.ColumnDef column_defs = 3; + for (unsigned i = 0, + n = static_cast(this->_internal_column_defs_size()); i < n; i++) { + const auto& repfield = this->_internal_column_defs(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated uint32 primary_key = 4; + { + int byte_size = _impl_._primary_key_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteUInt32Packed( + 4, _internal_primary_key(), byte_size, target); + } + } + + // bool create_if_not_exists = 5; + if (this->_internal_create_if_not_exists() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_create_if_not_exists(), target); + } + + // string region_dir = 6; + if (!this->_internal_region_dir().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_region_dir().data(), static_cast(this->_internal_region_dir().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.region.CreateRequest.region_dir"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_region_dir(), target); + } + + // map options = 7; + if (!this->_internal_options().empty()) { + using MapType = ::_pb::Map; + using WireHelper = CreateRequest_OptionsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_options(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.region.CreateRequest.OptionsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.region.CreateRequest.OptionsEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + 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.region.CreateRequest) + return target; +} + +size_t CreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.CreateRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .greptime.v1.region.ColumnDef column_defs = 3; + total_size += 1UL * this->_internal_column_defs_size(); + for (const auto& msg : this->_impl_.column_defs_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated uint32 primary_key = 4; + { + size_t data_size = ::_pbi::WireFormatLite:: + UInt32Size(this->_impl_.primary_key_); + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._primary_key_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // map options = 7; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_options().begin(); + it != this->_internal_options().end(); ++it) { + total_size += CreateRequest_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string engine = 2; + if (!this->_internal_engine().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_engine()); + } + + // string region_dir = 6; + if (!this->_internal_region_dir().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_region_dir()); + } + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); + } + + // bool create_if_not_exists = 5; + if (this->_internal_create_if_not_exists() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CreateRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateRequest::GetClassData() const { return &_class_data_; } + + +void CreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.region.CreateRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.column_defs_.MergeFrom(from._impl_.column_defs_); + _this->_impl_.primary_key_.MergeFrom(from._impl_.primary_key_); + _this->_impl_.options_.MergeFrom(from._impl_.options_); + if (!from._internal_engine().empty()) { + _this->_internal_set_engine(from._internal_engine()); + } + if (!from._internal_region_dir().empty()) { + _this->_internal_set_region_dir(from._internal_region_dir()); + } + if (from._internal_region_id() != 0) { + _this->_internal_set_region_id(from._internal_region_id()); + } + if (from._internal_create_if_not_exists() != 0) { + _this->_internal_set_create_if_not_exists(from._internal_create_if_not_exists()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateRequest::CopyFrom(const CreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.CreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateRequest::IsInitialized() const { + return true; +} + +void CreateRequest::InternalSwap(CreateRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.column_defs_.InternalSwap(&other->_impl_.column_defs_); + _impl_.primary_key_.InternalSwap(&other->_impl_.primary_key_); + _impl_.options_.InternalSwap(&other->_impl_.options_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.engine_, lhs_arena, + &other->_impl_.engine_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.region_dir_, lhs_arena, + &other->_impl_.region_dir_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CreateRequest, _impl_.create_if_not_exists_) + + sizeof(CreateRequest::_impl_.create_if_not_exists_) + - PROTOBUF_FIELD_OFFSET(CreateRequest, _impl_.region_id_)>( + reinterpret_cast(&_impl_.region_id_), + reinterpret_cast(&other->_impl_.region_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[8]); +} + +// =================================================================== + +class DropRequest::_Internal { + public: +}; + +DropRequest::DropRequest(::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.region.DropRequest) +} +DropRequest::DropRequest(const DropRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DropRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.region_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.region_id_ = from._impl_.region_id_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.DropRequest) +} + +inline void DropRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.region_id_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DropRequest::~DropRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.region.DropRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DropRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void DropRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DropRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.DropRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.region_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DropRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 region_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DropRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.DropRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), 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.region.DropRequest) + return target; +} + +size_t DropRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.DropRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DropRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropRequest::GetClassData() const { return &_class_data_; } + + +void DropRequest::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.region.DropRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_region_id() != 0) { + _this->_internal_set_region_id(from._internal_region_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DropRequest::CopyFrom(const DropRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.DropRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DropRequest::IsInitialized() const { + return true; +} + +void DropRequest::InternalSwap(DropRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.region_id_, other->_impl_.region_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DropRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[9]); +} + +// =================================================================== + +OpenRequest_OptionsEntry_DoNotUse::OpenRequest_OptionsEntry_DoNotUse() {} +OpenRequest_OptionsEntry_DoNotUse::OpenRequest_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void OpenRequest_OptionsEntry_DoNotUse::MergeFrom(const OpenRequest_OptionsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata OpenRequest_OptionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[10]); +} + +// =================================================================== + +class OpenRequest::_Internal { + public: +}; + +OpenRequest::OpenRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &OpenRequest::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:greptime.v1.region.OpenRequest) +} +OpenRequest::OpenRequest(const OpenRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + OpenRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.options_)*/{} + , decltype(_impl_.engine_){} + , decltype(_impl_.region_dir_){} + , decltype(_impl_.region_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.options_.MergeFrom(from._impl_.options_); + _impl_.engine_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.engine_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_engine().empty()) { + _this->_impl_.engine_.Set(from._internal_engine(), + _this->GetArenaForAllocation()); + } + _impl_.region_dir_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.region_dir_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_region_dir().empty()) { + _this->_impl_.region_dir_.Set(from._internal_region_dir(), + _this->GetArenaForAllocation()); + } + _this->_impl_.region_id_ = from._impl_.region_id_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.OpenRequest) +} + +inline void OpenRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.engine_){} + , decltype(_impl_.region_dir_){} + , decltype(_impl_.region_id_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.engine_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.engine_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.region_dir_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.region_dir_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +OpenRequest::~OpenRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.region.OpenRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void OpenRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.options_.Destruct(); + _impl_.options_.~MapField(); + _impl_.engine_.Destroy(); + _impl_.region_dir_.Destroy(); +} + +void OpenRequest::ArenaDtor(void* object) { + OpenRequest* _this = reinterpret_cast< OpenRequest* >(object); + _this->_impl_.options_.Destruct(); +} +void OpenRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void OpenRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.OpenRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.options_.Clear(); + _impl_.engine_.ClearToEmpty(); + _impl_.region_dir_.ClearToEmpty(); + _impl_.region_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* OpenRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 region_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string engine = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_engine(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.OpenRequest.engine")); + } else + goto handle_unusual; + continue; + // string region_dir = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_region_dir(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.OpenRequest.region_dir")); + } else + goto handle_unusual; + continue; + // map options = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.options_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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* OpenRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.OpenRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), target); + } + + // string engine = 2; + if (!this->_internal_engine().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_engine().data(), static_cast(this->_internal_engine().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.region.OpenRequest.engine"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_engine(), target); + } + + // string region_dir = 3; + if (!this->_internal_region_dir().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_region_dir().data(), static_cast(this->_internal_region_dir().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.region.OpenRequest.region_dir"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_region_dir(), target); + } + + // map options = 4; + if (!this->_internal_options().empty()) { + using MapType = ::_pb::Map; + using WireHelper = OpenRequest_OptionsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_options(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.region.OpenRequest.OptionsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.region.OpenRequest.OptionsEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + 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.region.OpenRequest) + return target; +} + +size_t OpenRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.OpenRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map options = 4; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_options().begin(); + it != this->_internal_options().end(); ++it) { + total_size += OpenRequest_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string engine = 2; + if (!this->_internal_engine().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_engine()); + } + + // string region_dir = 3; + if (!this->_internal_region_dir().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_region_dir()); + } + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpenRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + OpenRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpenRequest::GetClassData() const { return &_class_data_; } + + +void OpenRequest::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.region.OpenRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.options_.MergeFrom(from._impl_.options_); + if (!from._internal_engine().empty()) { + _this->_internal_set_engine(from._internal_engine()); + } + if (!from._internal_region_dir().empty()) { + _this->_internal_set_region_dir(from._internal_region_dir()); + } + if (from._internal_region_id() != 0) { + _this->_internal_set_region_id(from._internal_region_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void OpenRequest::CopyFrom(const OpenRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.OpenRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OpenRequest::IsInitialized() const { + return true; +} + +void OpenRequest::InternalSwap(OpenRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.options_.InternalSwap(&other->_impl_.options_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.engine_, lhs_arena, + &other->_impl_.engine_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.region_dir_, lhs_arena, + &other->_impl_.region_dir_, rhs_arena + ); + swap(_impl_.region_id_, other->_impl_.region_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata OpenRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[11]); +} + +// =================================================================== + +class CloseRequest::_Internal { + public: +}; + +CloseRequest::CloseRequest(::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.region.CloseRequest) +} +CloseRequest::CloseRequest(const CloseRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CloseRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.region_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.region_id_ = from._impl_.region_id_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.CloseRequest) +} + +inline void CloseRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.region_id_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +CloseRequest::~CloseRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.region.CloseRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CloseRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void CloseRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CloseRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.CloseRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.region_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CloseRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 region_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* CloseRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.CloseRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), 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.region.CloseRequest) + return target; +} + +size_t CloseRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.CloseRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CloseRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CloseRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CloseRequest::GetClassData() const { return &_class_data_; } + + +void CloseRequest::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.region.CloseRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_region_id() != 0) { + _this->_internal_set_region_id(from._internal_region_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CloseRequest::CopyFrom(const CloseRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.CloseRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CloseRequest::IsInitialized() const { + return true; +} + +void CloseRequest::InternalSwap(CloseRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.region_id_, other->_impl_.region_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CloseRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[12]); +} + +// =================================================================== + +class AlterRequest::_Internal { + public: +}; + +AlterRequest::AlterRequest(::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.region.AlterRequest) +} +AlterRequest::AlterRequest(const AlterRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AlterRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.region_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.region_id_ = from._impl_.region_id_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.AlterRequest) +} + +inline void AlterRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.region_id_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +AlterRequest::~AlterRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.region.AlterRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AlterRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void AlterRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AlterRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.AlterRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.region_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 region_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* AlterRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.AlterRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), 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.region.AlterRequest) + return target; +} + +size_t AlterRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.AlterRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AlterRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AlterRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AlterRequest::GetClassData() const { return &_class_data_; } + + +void AlterRequest::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.region.AlterRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_region_id() != 0) { + _this->_internal_set_region_id(from._internal_region_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AlterRequest::CopyFrom(const AlterRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.AlterRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AlterRequest::IsInitialized() const { + return true; +} + +void AlterRequest::InternalSwap(AlterRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.region_id_, other->_impl_.region_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AlterRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[13]); +} + +// =================================================================== + +class FlushRequest::_Internal { + public: +}; + +FlushRequest::FlushRequest(::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.region.FlushRequest) +} +FlushRequest::FlushRequest(const FlushRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + FlushRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.region_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.region_id_ = from._impl_.region_id_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.FlushRequest) +} + +inline void FlushRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.region_id_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +FlushRequest::~FlushRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.region.FlushRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FlushRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void FlushRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void FlushRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.FlushRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.region_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlushRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 region_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* FlushRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.FlushRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), 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.region.FlushRequest) + return target; +} + +size_t FlushRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.FlushRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlushRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FlushRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlushRequest::GetClassData() const { return &_class_data_; } + + +void FlushRequest::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.region.FlushRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_region_id() != 0) { + _this->_internal_set_region_id(from._internal_region_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FlushRequest::CopyFrom(const FlushRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.FlushRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FlushRequest::IsInitialized() const { + return true; +} + +void FlushRequest::InternalSwap(FlushRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.region_id_, other->_impl_.region_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FlushRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[14]); +} + +// =================================================================== + +class CompactRequest::_Internal { + public: +}; + +CompactRequest::CompactRequest(::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.region.CompactRequest) +} +CompactRequest::CompactRequest(const CompactRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CompactRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.region_id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.region_id_ = from._impl_.region_id_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.CompactRequest) +} + +inline void CompactRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.region_id_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +CompactRequest::~CompactRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.region.CompactRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CompactRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void CompactRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CompactRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.CompactRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.region_id_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CompactRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 region_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* CompactRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.CompactRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), 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.region.CompactRequest) + return target; +} + +size_t CompactRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.CompactRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint64 region_id = 1; + if (this->_internal_region_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CompactRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CompactRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CompactRequest::GetClassData() const { return &_class_data_; } + + +void CompactRequest::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.region.CompactRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_region_id() != 0) { + _this->_internal_set_region_id(from._internal_region_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CompactRequest::CopyFrom(const CompactRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.CompactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CompactRequest::IsInitialized() const { + return true; +} + +void CompactRequest::InternalSwap(CompactRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.region_id_, other->_impl_.region_id_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CompactRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[15]); +} + +// =================================================================== + +class ColumnDef::_Internal { + public: +}; + +ColumnDef::ColumnDef(::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.region.ColumnDef) +} +ColumnDef::ColumnDef(const ColumnDef& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ColumnDef* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.default_constraint_){} + , decltype(_impl_.column_id_){} + , decltype(_impl_.datatype_){} + , decltype(_impl_.is_nullable_){} + , decltype(_impl_.semantic_type_){} + , /*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_.default_constraint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.default_constraint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_default_constraint().empty()) { + _this->_impl_.default_constraint_.Set(from._internal_default_constraint(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.column_id_, &from._impl_.column_id_, + static_cast(reinterpret_cast(&_impl_.semantic_type_) - + reinterpret_cast(&_impl_.column_id_)) + sizeof(_impl_.semantic_type_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.ColumnDef) +} + +inline void ColumnDef::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.default_constraint_){} + , decltype(_impl_.column_id_){0u} + , decltype(_impl_.datatype_){0} + , decltype(_impl_.is_nullable_){false} + , decltype(_impl_.semantic_type_){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_.default_constraint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.default_constraint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ColumnDef::~ColumnDef() { + // @@protoc_insertion_point(destructor:greptime.v1.region.ColumnDef) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ColumnDef::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.default_constraint_.Destroy(); +} + +void ColumnDef::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ColumnDef::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.ColumnDef) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.default_constraint_.ClearToEmpty(); + ::memset(&_impl_.column_id_, 0, static_cast( + reinterpret_cast(&_impl_.semantic_type_) - + reinterpret_cast(&_impl_.column_id_)) + sizeof(_impl_.semantic_type_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ColumnDef::_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) { + // string name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.ColumnDef.name")); + } else + goto handle_unusual; + continue; + // uint32 column_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.column_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.ColumnDataType datatype = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_datatype(static_cast<::greptime::v1::ColumnDataType>(val)); + } else + goto handle_unusual; + continue; + // bool is_nullable = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.is_nullable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes default_constraint = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_default_constraint(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.SemanticType semantic_type = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_semantic_type(static_cast<::greptime::v1::SemanticType>(val)); + } 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* ColumnDef::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.ColumnDef) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + 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.region.ColumnDef.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // uint32 column_id = 2; + if (this->_internal_column_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_column_id(), target); + } + + // .greptime.v1.ColumnDataType datatype = 3; + if (this->_internal_datatype() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this->_internal_datatype(), target); + } + + // bool is_nullable = 4; + if (this->_internal_is_nullable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_is_nullable(), target); + } + + // bytes default_constraint = 5; + if (!this->_internal_default_constraint().empty()) { + target = stream->WriteBytesMaybeAliased( + 5, this->_internal_default_constraint(), target); + } + + // .greptime.v1.SemanticType semantic_type = 6; + if (this->_internal_semantic_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 6, this->_internal_semantic_type(), 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.region.ColumnDef) + return target; +} + +size_t ColumnDef::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.ColumnDef) + 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 = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // bytes default_constraint = 5; + if (!this->_internal_default_constraint().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_default_constraint()); + } + + // uint32 column_id = 2; + if (this->_internal_column_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_column_id()); + } + + // .greptime.v1.ColumnDataType datatype = 3; + if (this->_internal_datatype() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_datatype()); + } + + // bool is_nullable = 4; + if (this->_internal_is_nullable() != 0) { + total_size += 1 + 1; + } + + // .greptime.v1.SemanticType semantic_type = 6; + if (this->_internal_semantic_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_semantic_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ColumnDef::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ColumnDef::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ColumnDef::GetClassData() const { return &_class_data_; } + + +void ColumnDef::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.region.ColumnDef) + 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_default_constraint().empty()) { + _this->_internal_set_default_constraint(from._internal_default_constraint()); + } + if (from._internal_column_id() != 0) { + _this->_internal_set_column_id(from._internal_column_id()); + } + if (from._internal_datatype() != 0) { + _this->_internal_set_datatype(from._internal_datatype()); + } + if (from._internal_is_nullable() != 0) { + _this->_internal_set_is_nullable(from._internal_is_nullable()); + } + if (from._internal_semantic_type() != 0) { + _this->_internal_set_semantic_type(from._internal_semantic_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ColumnDef::CopyFrom(const ColumnDef& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.ColumnDef) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ColumnDef::IsInitialized() const { + return true; +} + +void ColumnDef::InternalSwap(ColumnDef* 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_.default_constraint_, lhs_arena, + &other->_impl_.default_constraint_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.semantic_type_) + + sizeof(ColumnDef::_impl_.semantic_type_) + - PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.column_id_)>( + reinterpret_cast(&_impl_.column_id_), + reinterpret_cast(&other->_impl_.column_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[16]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace region +} // namespace v1 +} // namespace greptime +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::greptime::v1::region::RegionRequest* +Arena::CreateMaybeMessage< ::greptime::v1::region::RegionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::RegionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::RegionResponse* +Arena::CreateMaybeMessage< ::greptime::v1::region::RegionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::RegionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::InsertRequests* +Arena::CreateMaybeMessage< ::greptime::v1::region::InsertRequests >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::InsertRequests >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::DeleteRequests* +Arena::CreateMaybeMessage< ::greptime::v1::region::DeleteRequests >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::DeleteRequests >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::InsertRequest* +Arena::CreateMaybeMessage< ::greptime::v1::region::InsertRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::InsertRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::DeleteRequest* +Arena::CreateMaybeMessage< ::greptime::v1::region::DeleteRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::DeleteRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::QueryRequest* +Arena::CreateMaybeMessage< ::greptime::v1::region::QueryRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::QueryRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::CreateRequest* +Arena::CreateMaybeMessage< ::greptime::v1::region::CreateRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::CreateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::DropRequest* +Arena::CreateMaybeMessage< ::greptime::v1::region::DropRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::DropRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::OpenRequest* +Arena::CreateMaybeMessage< ::greptime::v1::region::OpenRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::OpenRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::CloseRequest* +Arena::CreateMaybeMessage< ::greptime::v1::region::CloseRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::CloseRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::AlterRequest* +Arena::CreateMaybeMessage< ::greptime::v1::region::AlterRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::AlterRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::FlushRequest* +Arena::CreateMaybeMessage< ::greptime::v1::region::FlushRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::FlushRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::CompactRequest* +Arena::CreateMaybeMessage< ::greptime::v1::region::CompactRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::CompactRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::ColumnDef* +Arena::CreateMaybeMessage< ::greptime::v1::region::ColumnDef >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::ColumnDef >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h new file mode 100644 index 00000000..c5c848c8 --- /dev/null +++ b/c++/greptime/v1/region/server.pb.h @@ -0,0 +1,4891 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/region/server.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fregion_2fserver_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fregion_2fserver_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3021006 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include "greptime/v1/common.pb.h" +#include "greptime/v1/row.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fregion_2fserver_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_greptime_2fv1_2fregion_2fserver_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto; +namespace greptime { +namespace v1 { +namespace region { +class AlterRequest; +struct AlterRequestDefaultTypeInternal; +extern AlterRequestDefaultTypeInternal _AlterRequest_default_instance_; +class CloseRequest; +struct CloseRequestDefaultTypeInternal; +extern CloseRequestDefaultTypeInternal _CloseRequest_default_instance_; +class ColumnDef; +struct ColumnDefDefaultTypeInternal; +extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_; +class CompactRequest; +struct CompactRequestDefaultTypeInternal; +extern CompactRequestDefaultTypeInternal _CompactRequest_default_instance_; +class CreateRequest; +struct CreateRequestDefaultTypeInternal; +extern CreateRequestDefaultTypeInternal _CreateRequest_default_instance_; +class CreateRequest_OptionsEntry_DoNotUse; +struct CreateRequest_OptionsEntry_DoNotUseDefaultTypeInternal; +extern CreateRequest_OptionsEntry_DoNotUseDefaultTypeInternal _CreateRequest_OptionsEntry_DoNotUse_default_instance_; +class DeleteRequest; +struct DeleteRequestDefaultTypeInternal; +extern DeleteRequestDefaultTypeInternal _DeleteRequest_default_instance_; +class DeleteRequests; +struct DeleteRequestsDefaultTypeInternal; +extern DeleteRequestsDefaultTypeInternal _DeleteRequests_default_instance_; +class DropRequest; +struct DropRequestDefaultTypeInternal; +extern DropRequestDefaultTypeInternal _DropRequest_default_instance_; +class FlushRequest; +struct FlushRequestDefaultTypeInternal; +extern FlushRequestDefaultTypeInternal _FlushRequest_default_instance_; +class InsertRequest; +struct InsertRequestDefaultTypeInternal; +extern InsertRequestDefaultTypeInternal _InsertRequest_default_instance_; +class InsertRequests; +struct InsertRequestsDefaultTypeInternal; +extern InsertRequestsDefaultTypeInternal _InsertRequests_default_instance_; +class OpenRequest; +struct OpenRequestDefaultTypeInternal; +extern OpenRequestDefaultTypeInternal _OpenRequest_default_instance_; +class OpenRequest_OptionsEntry_DoNotUse; +struct OpenRequest_OptionsEntry_DoNotUseDefaultTypeInternal; +extern OpenRequest_OptionsEntry_DoNotUseDefaultTypeInternal _OpenRequest_OptionsEntry_DoNotUse_default_instance_; +class QueryRequest; +struct QueryRequestDefaultTypeInternal; +extern QueryRequestDefaultTypeInternal _QueryRequest_default_instance_; +class RegionRequest; +struct RegionRequestDefaultTypeInternal; +extern RegionRequestDefaultTypeInternal _RegionRequest_default_instance_; +class RegionResponse; +struct RegionResponseDefaultTypeInternal; +extern RegionResponseDefaultTypeInternal _RegionResponse_default_instance_; +} // namespace region +} // namespace v1 +} // namespace greptime +PROTOBUF_NAMESPACE_OPEN +template<> ::greptime::v1::region::AlterRequest* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequest>(Arena*); +template<> ::greptime::v1::region::CloseRequest* Arena::CreateMaybeMessage<::greptime::v1::region::CloseRequest>(Arena*); +template<> ::greptime::v1::region::ColumnDef* Arena::CreateMaybeMessage<::greptime::v1::region::ColumnDef>(Arena*); +template<> ::greptime::v1::region::CompactRequest* Arena::CreateMaybeMessage<::greptime::v1::region::CompactRequest>(Arena*); +template<> ::greptime::v1::region::CreateRequest* Arena::CreateMaybeMessage<::greptime::v1::region::CreateRequest>(Arena*); +template<> ::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse>(Arena*); +template<> ::greptime::v1::region::DeleteRequest* Arena::CreateMaybeMessage<::greptime::v1::region::DeleteRequest>(Arena*); +template<> ::greptime::v1::region::DeleteRequests* Arena::CreateMaybeMessage<::greptime::v1::region::DeleteRequests>(Arena*); +template<> ::greptime::v1::region::DropRequest* Arena::CreateMaybeMessage<::greptime::v1::region::DropRequest>(Arena*); +template<> ::greptime::v1::region::FlushRequest* Arena::CreateMaybeMessage<::greptime::v1::region::FlushRequest>(Arena*); +template<> ::greptime::v1::region::InsertRequest* Arena::CreateMaybeMessage<::greptime::v1::region::InsertRequest>(Arena*); +template<> ::greptime::v1::region::InsertRequests* Arena::CreateMaybeMessage<::greptime::v1::region::InsertRequests>(Arena*); +template<> ::greptime::v1::region::OpenRequest* Arena::CreateMaybeMessage<::greptime::v1::region::OpenRequest>(Arena*); +template<> ::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse>(Arena*); +template<> ::greptime::v1::region::QueryRequest* Arena::CreateMaybeMessage<::greptime::v1::region::QueryRequest>(Arena*); +template<> ::greptime::v1::region::RegionRequest* Arena::CreateMaybeMessage<::greptime::v1::region::RegionRequest>(Arena*); +template<> ::greptime::v1::region::RegionResponse* Arena::CreateMaybeMessage<::greptime::v1::region::RegionResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace greptime { +namespace v1 { +namespace region { + +// =================================================================== + +class RegionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.RegionRequest) */ { + public: + inline RegionRequest() : RegionRequest(nullptr) {} + ~RegionRequest() override; + explicit PROTOBUF_CONSTEXPR RegionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RegionRequest(const RegionRequest& from); + RegionRequest(RegionRequest&& from) noexcept + : RegionRequest() { + *this = ::std::move(from); + } + + inline RegionRequest& operator=(const RegionRequest& from) { + CopyFrom(from); + return *this; + } + inline RegionRequest& operator=(RegionRequest&& 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 RegionRequest& default_instance() { + return *internal_default_instance(); + } + enum RequestCase { + kInserts = 3, + kDeletes = 4, + kCreate = 5, + kDrop = 6, + kOpen = 7, + kClose = 8, + kAlter = 9, + kFlush = 10, + kCompact = 11, + REQUEST_NOT_SET = 0, + }; + + static inline const RegionRequest* internal_default_instance() { + return reinterpret_cast( + &_RegionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(RegionRequest& a, RegionRequest& b) { + a.Swap(&b); + } + inline void Swap(RegionRequest* 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(RegionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RegionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RegionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RegionRequest& from) { + RegionRequest::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(RegionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.RegionRequest"; + } + protected: + explicit RegionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHeaderFieldNumber = 1, + kInsertsFieldNumber = 3, + kDeletesFieldNumber = 4, + kCreateFieldNumber = 5, + kDropFieldNumber = 6, + kOpenFieldNumber = 7, + kCloseFieldNumber = 8, + kAlterFieldNumber = 9, + kFlushFieldNumber = 10, + kCompactFieldNumber = 11, + }; + // .greptime.v1.RequestHeader header = 1; + bool has_header() const; + private: + bool _internal_has_header() const; + public: + void clear_header(); + const ::greptime::v1::RequestHeader& header() const; + PROTOBUF_NODISCARD ::greptime::v1::RequestHeader* release_header(); + ::greptime::v1::RequestHeader* mutable_header(); + void set_allocated_header(::greptime::v1::RequestHeader* header); + private: + const ::greptime::v1::RequestHeader& _internal_header() const; + ::greptime::v1::RequestHeader* _internal_mutable_header(); + public: + void unsafe_arena_set_allocated_header( + ::greptime::v1::RequestHeader* header); + ::greptime::v1::RequestHeader* unsafe_arena_release_header(); + + // .greptime.v1.region.InsertRequests inserts = 3; + bool has_inserts() const; + private: + bool _internal_has_inserts() const; + public: + void clear_inserts(); + const ::greptime::v1::region::InsertRequests& inserts() const; + PROTOBUF_NODISCARD ::greptime::v1::region::InsertRequests* release_inserts(); + ::greptime::v1::region::InsertRequests* mutable_inserts(); + void set_allocated_inserts(::greptime::v1::region::InsertRequests* inserts); + private: + const ::greptime::v1::region::InsertRequests& _internal_inserts() const; + ::greptime::v1::region::InsertRequests* _internal_mutable_inserts(); + public: + void unsafe_arena_set_allocated_inserts( + ::greptime::v1::region::InsertRequests* inserts); + ::greptime::v1::region::InsertRequests* unsafe_arena_release_inserts(); + + // .greptime.v1.region.DeleteRequests deletes = 4; + bool has_deletes() const; + private: + bool _internal_has_deletes() const; + public: + void clear_deletes(); + const ::greptime::v1::region::DeleteRequests& deletes() const; + PROTOBUF_NODISCARD ::greptime::v1::region::DeleteRequests* release_deletes(); + ::greptime::v1::region::DeleteRequests* mutable_deletes(); + void set_allocated_deletes(::greptime::v1::region::DeleteRequests* deletes); + private: + const ::greptime::v1::region::DeleteRequests& _internal_deletes() const; + ::greptime::v1::region::DeleteRequests* _internal_mutable_deletes(); + public: + void unsafe_arena_set_allocated_deletes( + ::greptime::v1::region::DeleteRequests* deletes); + ::greptime::v1::region::DeleteRequests* unsafe_arena_release_deletes(); + + // .greptime.v1.region.CreateRequest create = 5; + bool has_create() const; + private: + bool _internal_has_create() const; + public: + void clear_create(); + const ::greptime::v1::region::CreateRequest& create() const; + PROTOBUF_NODISCARD ::greptime::v1::region::CreateRequest* release_create(); + ::greptime::v1::region::CreateRequest* mutable_create(); + void set_allocated_create(::greptime::v1::region::CreateRequest* create); + private: + const ::greptime::v1::region::CreateRequest& _internal_create() const; + ::greptime::v1::region::CreateRequest* _internal_mutable_create(); + public: + void unsafe_arena_set_allocated_create( + ::greptime::v1::region::CreateRequest* create); + ::greptime::v1::region::CreateRequest* unsafe_arena_release_create(); + + // .greptime.v1.region.DropRequest drop = 6; + bool has_drop() const; + private: + bool _internal_has_drop() const; + public: + void clear_drop(); + const ::greptime::v1::region::DropRequest& drop() const; + PROTOBUF_NODISCARD ::greptime::v1::region::DropRequest* release_drop(); + ::greptime::v1::region::DropRequest* mutable_drop(); + void set_allocated_drop(::greptime::v1::region::DropRequest* drop); + private: + const ::greptime::v1::region::DropRequest& _internal_drop() const; + ::greptime::v1::region::DropRequest* _internal_mutable_drop(); + public: + void unsafe_arena_set_allocated_drop( + ::greptime::v1::region::DropRequest* drop); + ::greptime::v1::region::DropRequest* unsafe_arena_release_drop(); + + // .greptime.v1.region.OpenRequest open = 7; + bool has_open() const; + private: + bool _internal_has_open() const; + public: + void clear_open(); + const ::greptime::v1::region::OpenRequest& open() const; + PROTOBUF_NODISCARD ::greptime::v1::region::OpenRequest* release_open(); + ::greptime::v1::region::OpenRequest* mutable_open(); + void set_allocated_open(::greptime::v1::region::OpenRequest* open); + private: + const ::greptime::v1::region::OpenRequest& _internal_open() const; + ::greptime::v1::region::OpenRequest* _internal_mutable_open(); + public: + void unsafe_arena_set_allocated_open( + ::greptime::v1::region::OpenRequest* open); + ::greptime::v1::region::OpenRequest* unsafe_arena_release_open(); + + // .greptime.v1.region.CloseRequest close = 8; + bool has_close() const; + private: + bool _internal_has_close() const; + public: + void clear_close(); + const ::greptime::v1::region::CloseRequest& close() const; + PROTOBUF_NODISCARD ::greptime::v1::region::CloseRequest* release_close(); + ::greptime::v1::region::CloseRequest* mutable_close(); + void set_allocated_close(::greptime::v1::region::CloseRequest* close); + private: + const ::greptime::v1::region::CloseRequest& _internal_close() const; + ::greptime::v1::region::CloseRequest* _internal_mutable_close(); + public: + void unsafe_arena_set_allocated_close( + ::greptime::v1::region::CloseRequest* close); + ::greptime::v1::region::CloseRequest* unsafe_arena_release_close(); + + // .greptime.v1.region.AlterRequest alter = 9; + bool has_alter() const; + private: + bool _internal_has_alter() const; + public: + void clear_alter(); + const ::greptime::v1::region::AlterRequest& alter() const; + PROTOBUF_NODISCARD ::greptime::v1::region::AlterRequest* release_alter(); + ::greptime::v1::region::AlterRequest* mutable_alter(); + void set_allocated_alter(::greptime::v1::region::AlterRequest* alter); + private: + const ::greptime::v1::region::AlterRequest& _internal_alter() const; + ::greptime::v1::region::AlterRequest* _internal_mutable_alter(); + public: + void unsafe_arena_set_allocated_alter( + ::greptime::v1::region::AlterRequest* alter); + ::greptime::v1::region::AlterRequest* unsafe_arena_release_alter(); + + // .greptime.v1.region.FlushRequest flush = 10; + bool has_flush() const; + private: + bool _internal_has_flush() const; + public: + void clear_flush(); + const ::greptime::v1::region::FlushRequest& flush() const; + PROTOBUF_NODISCARD ::greptime::v1::region::FlushRequest* release_flush(); + ::greptime::v1::region::FlushRequest* mutable_flush(); + void set_allocated_flush(::greptime::v1::region::FlushRequest* flush); + private: + const ::greptime::v1::region::FlushRequest& _internal_flush() const; + ::greptime::v1::region::FlushRequest* _internal_mutable_flush(); + public: + void unsafe_arena_set_allocated_flush( + ::greptime::v1::region::FlushRequest* flush); + ::greptime::v1::region::FlushRequest* unsafe_arena_release_flush(); + + // .greptime.v1.region.CompactRequest compact = 11; + bool has_compact() const; + private: + bool _internal_has_compact() const; + public: + void clear_compact(); + const ::greptime::v1::region::CompactRequest& compact() const; + PROTOBUF_NODISCARD ::greptime::v1::region::CompactRequest* release_compact(); + ::greptime::v1::region::CompactRequest* mutable_compact(); + void set_allocated_compact(::greptime::v1::region::CompactRequest* compact); + private: + const ::greptime::v1::region::CompactRequest& _internal_compact() const; + ::greptime::v1::region::CompactRequest* _internal_mutable_compact(); + public: + void unsafe_arena_set_allocated_compact( + ::greptime::v1::region::CompactRequest* compact); + ::greptime::v1::region::CompactRequest* unsafe_arena_release_compact(); + + void clear_request(); + RequestCase request_case() const; + // @@protoc_insertion_point(class_scope:greptime.v1.region.RegionRequest) + private: + class _Internal; + void set_has_inserts(); + void set_has_deletes(); + void set_has_create(); + void set_has_drop(); + void set_has_open(); + void set_has_close(); + void set_has_alter(); + void set_has_flush(); + void set_has_compact(); + + inline bool has_request() const; + inline void clear_has_request(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::greptime::v1::RequestHeader* header_; + union RequestUnion { + constexpr RequestUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::greptime::v1::region::InsertRequests* inserts_; + ::greptime::v1::region::DeleteRequests* deletes_; + ::greptime::v1::region::CreateRequest* create_; + ::greptime::v1::region::DropRequest* drop_; + ::greptime::v1::region::OpenRequest* open_; + ::greptime::v1::region::CloseRequest* close_; + ::greptime::v1::region::AlterRequest* alter_; + ::greptime::v1::region::FlushRequest* flush_; + ::greptime::v1::region::CompactRequest* compact_; + } request_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class RegionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.RegionResponse) */ { + public: + inline RegionResponse() : RegionResponse(nullptr) {} + ~RegionResponse() override; + explicit PROTOBUF_CONSTEXPR RegionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RegionResponse(const RegionResponse& from); + RegionResponse(RegionResponse&& from) noexcept + : RegionResponse() { + *this = ::std::move(from); + } + + inline RegionResponse& operator=(const RegionResponse& from) { + CopyFrom(from); + return *this; + } + inline RegionResponse& operator=(RegionResponse&& 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 RegionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const RegionResponse* internal_default_instance() { + return reinterpret_cast( + &_RegionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(RegionResponse& a, RegionResponse& b) { + a.Swap(&b); + } + inline void Swap(RegionResponse* 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(RegionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RegionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RegionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RegionResponse& from) { + RegionResponse::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(RegionResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.RegionResponse"; + } + protected: + explicit RegionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHeaderFieldNumber = 1, + kAffactedRowsFieldNumber = 2, + }; + // .greptime.v1.ResponseHeader header = 1; + bool has_header() const; + private: + bool _internal_has_header() const; + public: + void clear_header(); + const ::greptime::v1::ResponseHeader& header() const; + PROTOBUF_NODISCARD ::greptime::v1::ResponseHeader* release_header(); + ::greptime::v1::ResponseHeader* mutable_header(); + void set_allocated_header(::greptime::v1::ResponseHeader* header); + private: + const ::greptime::v1::ResponseHeader& _internal_header() const; + ::greptime::v1::ResponseHeader* _internal_mutable_header(); + public: + void unsafe_arena_set_allocated_header( + ::greptime::v1::ResponseHeader* header); + ::greptime::v1::ResponseHeader* unsafe_arena_release_header(); + + // uint64 affacted_rows = 2; + void clear_affacted_rows(); + uint64_t affacted_rows() const; + void set_affacted_rows(uint64_t value); + private: + uint64_t _internal_affacted_rows() const; + void _internal_set_affacted_rows(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.RegionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::greptime::v1::ResponseHeader* header_; + uint64_t affacted_rows_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class InsertRequests final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.InsertRequests) */ { + public: + inline InsertRequests() : InsertRequests(nullptr) {} + ~InsertRequests() override; + explicit PROTOBUF_CONSTEXPR InsertRequests(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + InsertRequests(const InsertRequests& from); + InsertRequests(InsertRequests&& from) noexcept + : InsertRequests() { + *this = ::std::move(from); + } + + inline InsertRequests& operator=(const InsertRequests& from) { + CopyFrom(from); + return *this; + } + inline InsertRequests& operator=(InsertRequests&& 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 InsertRequests& default_instance() { + return *internal_default_instance(); + } + static inline const InsertRequests* internal_default_instance() { + return reinterpret_cast( + &_InsertRequests_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(InsertRequests& a, InsertRequests& b) { + a.Swap(&b); + } + inline void Swap(InsertRequests* 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(InsertRequests* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + InsertRequests* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const InsertRequests& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const InsertRequests& from) { + InsertRequests::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(InsertRequests* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.InsertRequests"; + } + protected: + explicit InsertRequests(::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 { + kRequestsFieldNumber = 1, + }; + // repeated .greptime.v1.region.InsertRequest requests = 1; + int requests_size() const; + private: + int _internal_requests_size() const; + public: + void clear_requests(); + ::greptime::v1::region::InsertRequest* mutable_requests(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::InsertRequest >* + mutable_requests(); + private: + const ::greptime::v1::region::InsertRequest& _internal_requests(int index) const; + ::greptime::v1::region::InsertRequest* _internal_add_requests(); + public: + const ::greptime::v1::region::InsertRequest& requests(int index) const; + ::greptime::v1::region::InsertRequest* add_requests(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::InsertRequest >& + requests() const; + + // @@protoc_insertion_point(class_scope:greptime.v1.region.InsertRequests) + 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::region::InsertRequest > requests_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteRequests final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.DeleteRequests) */ { + public: + inline DeleteRequests() : DeleteRequests(nullptr) {} + ~DeleteRequests() override; + explicit PROTOBUF_CONSTEXPR DeleteRequests(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteRequests(const DeleteRequests& from); + DeleteRequests(DeleteRequests&& from) noexcept + : DeleteRequests() { + *this = ::std::move(from); + } + + inline DeleteRequests& operator=(const DeleteRequests& from) { + CopyFrom(from); + return *this; + } + inline DeleteRequests& operator=(DeleteRequests&& 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 DeleteRequests& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteRequests* internal_default_instance() { + return reinterpret_cast( + &_DeleteRequests_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(DeleteRequests& a, DeleteRequests& b) { + a.Swap(&b); + } + inline void Swap(DeleteRequests* 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(DeleteRequests* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteRequests* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteRequests& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DeleteRequests& from) { + DeleteRequests::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(DeleteRequests* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.DeleteRequests"; + } + protected: + explicit DeleteRequests(::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 { + kRequestsFieldNumber = 1, + }; + // repeated .greptime.v1.region.DeleteRequest requests = 1; + int requests_size() const; + private: + int _internal_requests_size() const; + public: + void clear_requests(); + ::greptime::v1::region::DeleteRequest* mutable_requests(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::DeleteRequest >* + mutable_requests(); + private: + const ::greptime::v1::region::DeleteRequest& _internal_requests(int index) const; + ::greptime::v1::region::DeleteRequest* _internal_add_requests(); + public: + const ::greptime::v1::region::DeleteRequest& requests(int index) const; + ::greptime::v1::region::DeleteRequest* add_requests(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::DeleteRequest >& + requests() const; + + // @@protoc_insertion_point(class_scope:greptime.v1.region.DeleteRequests) + 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::region::DeleteRequest > requests_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class InsertRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.InsertRequest) */ { + public: + inline InsertRequest() : InsertRequest(nullptr) {} + ~InsertRequest() override; + explicit PROTOBUF_CONSTEXPR InsertRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + InsertRequest(const InsertRequest& from); + InsertRequest(InsertRequest&& from) noexcept + : InsertRequest() { + *this = ::std::move(from); + } + + inline InsertRequest& operator=(const InsertRequest& from) { + CopyFrom(from); + return *this; + } + inline InsertRequest& operator=(InsertRequest&& 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 InsertRequest& default_instance() { + return *internal_default_instance(); + } + static inline const InsertRequest* internal_default_instance() { + return reinterpret_cast( + &_InsertRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(InsertRequest& a, InsertRequest& b) { + a.Swap(&b); + } + inline void Swap(InsertRequest* 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(InsertRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + InsertRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const InsertRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const InsertRequest& from) { + InsertRequest::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(InsertRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.InsertRequest"; + } + protected: + explicit InsertRequest(::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 { + kRowsFieldNumber = 2, + kRegionIdFieldNumber = 1, + }; + // repeated .greptime.v1.Row rows = 2; + int rows_size() const; + private: + int _internal_rows_size() const; + public: + void clear_rows(); + ::greptime::v1::Row* mutable_rows(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row >* + mutable_rows(); + private: + const ::greptime::v1::Row& _internal_rows(int index) const; + ::greptime::v1::Row* _internal_add_rows(); + public: + const ::greptime::v1::Row& rows(int index) const; + ::greptime::v1::Row* add_rows(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row >& + rows() const; + + // uint64 region_id = 1; + void clear_region_id(); + uint64_t region_id() const; + void set_region_id(uint64_t value); + private: + uint64_t _internal_region_id() const; + void _internal_set_region_id(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.InsertRequest) + 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::Row > rows_; + uint64_t region_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.DeleteRequest) */ { + public: + inline DeleteRequest() : DeleteRequest(nullptr) {} + ~DeleteRequest() override; + explicit PROTOBUF_CONSTEXPR DeleteRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteRequest(const DeleteRequest& from); + DeleteRequest(DeleteRequest&& from) noexcept + : DeleteRequest() { + *this = ::std::move(from); + } + + inline DeleteRequest& operator=(const DeleteRequest& from) { + CopyFrom(from); + return *this; + } + inline DeleteRequest& operator=(DeleteRequest&& 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 DeleteRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(DeleteRequest& a, DeleteRequest& b) { + a.Swap(&b); + } + inline void Swap(DeleteRequest* 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(DeleteRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DeleteRequest& from) { + DeleteRequest::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(DeleteRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.DeleteRequest"; + } + protected: + explicit DeleteRequest(::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 { + kRowsFieldNumber = 2, + kRegionIdFieldNumber = 1, + }; + // repeated .greptime.v1.Row rows = 2; + int rows_size() const; + private: + int _internal_rows_size() const; + public: + void clear_rows(); + ::greptime::v1::Row* mutable_rows(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row >* + mutable_rows(); + private: + const ::greptime::v1::Row& _internal_rows(int index) const; + ::greptime::v1::Row* _internal_add_rows(); + public: + const ::greptime::v1::Row& rows(int index) const; + ::greptime::v1::Row* add_rows(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row >& + rows() const; + + // uint64 region_id = 1; + void clear_region_id(); + uint64_t region_id() const; + void set_region_id(uint64_t value); + private: + uint64_t _internal_region_id() const; + void _internal_set_region_id(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.DeleteRequest) + 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::Row > rows_; + uint64_t region_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class QueryRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.QueryRequest) */ { + public: + inline QueryRequest() : QueryRequest(nullptr) {} + ~QueryRequest() override; + explicit PROTOBUF_CONSTEXPR QueryRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + QueryRequest(const QueryRequest& from); + QueryRequest(QueryRequest&& from) noexcept + : QueryRequest() { + *this = ::std::move(from); + } + + inline QueryRequest& operator=(const QueryRequest& from) { + CopyFrom(from); + return *this; + } + inline QueryRequest& operator=(QueryRequest&& 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 QueryRequest& default_instance() { + return *internal_default_instance(); + } + static inline const QueryRequest* internal_default_instance() { + return reinterpret_cast( + &_QueryRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(QueryRequest& a, QueryRequest& b) { + a.Swap(&b); + } + inline void Swap(QueryRequest* 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(QueryRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + QueryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const QueryRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const QueryRequest& from) { + QueryRequest::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(QueryRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.QueryRequest"; + } + protected: + explicit QueryRequest(::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 { + kPlanFieldNumber = 2, + kRegionIdFieldNumber = 1, + }; + // bytes plan = 2; + void clear_plan(); + const std::string& plan() const; + template + void set_plan(ArgT0&& arg0, ArgT... args); + std::string* mutable_plan(); + PROTOBUF_NODISCARD std::string* release_plan(); + void set_allocated_plan(std::string* plan); + private: + const std::string& _internal_plan() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_plan(const std::string& value); + std::string* _internal_mutable_plan(); + public: + + // uint64 region_id = 1; + void clear_region_id(); + uint64_t region_id() const; + void set_region_id(uint64_t value); + private: + uint64_t _internal_region_id() const; + void _internal_set_region_id(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.QueryRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr plan_; + uint64_t region_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateRequest_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + CreateRequest_OptionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR CreateRequest_OptionsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit CreateRequest_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const CreateRequest_OptionsEntry_DoNotUse& other); + static const CreateRequest_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_CreateRequest_OptionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.region.CreateRequest.OptionsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.region.CreateRequest.OptionsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; + +// ------------------------------------------------------------------- + +class CreateRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.CreateRequest) */ { + public: + inline CreateRequest() : CreateRequest(nullptr) {} + ~CreateRequest() override; + explicit PROTOBUF_CONSTEXPR CreateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateRequest(const CreateRequest& from); + CreateRequest(CreateRequest&& from) noexcept + : CreateRequest() { + *this = ::std::move(from); + } + + inline CreateRequest& operator=(const CreateRequest& from) { + CopyFrom(from); + return *this; + } + inline CreateRequest& operator=(CreateRequest&& 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 CreateRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CreateRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(CreateRequest& a, CreateRequest& b) { + a.Swap(&b); + } + inline void Swap(CreateRequest* 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(CreateRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CreateRequest& from) { + CreateRequest::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(CreateRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.CreateRequest"; + } + protected: + explicit CreateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + 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 { + kColumnDefsFieldNumber = 3, + kPrimaryKeyFieldNumber = 4, + kOptionsFieldNumber = 7, + kEngineFieldNumber = 2, + kRegionDirFieldNumber = 6, + kRegionIdFieldNumber = 1, + kCreateIfNotExistsFieldNumber = 5, + }; + // repeated .greptime.v1.region.ColumnDef column_defs = 3; + int column_defs_size() const; + private: + int _internal_column_defs_size() const; + public: + void clear_column_defs(); + ::greptime::v1::region::ColumnDef* mutable_column_defs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::ColumnDef >* + mutable_column_defs(); + private: + const ::greptime::v1::region::ColumnDef& _internal_column_defs(int index) const; + ::greptime::v1::region::ColumnDef* _internal_add_column_defs(); + public: + const ::greptime::v1::region::ColumnDef& column_defs(int index) const; + ::greptime::v1::region::ColumnDef* add_column_defs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::ColumnDef >& + column_defs() const; + + // repeated uint32 primary_key = 4; + int primary_key_size() const; + private: + int _internal_primary_key_size() const; + public: + void clear_primary_key(); + private: + uint32_t _internal_primary_key(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& + _internal_primary_key() const; + void _internal_add_primary_key(uint32_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* + _internal_mutable_primary_key(); + public: + uint32_t primary_key(int index) const; + void set_primary_key(int index, uint32_t value); + void add_primary_key(uint32_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& + primary_key() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* + mutable_primary_key(); + + // map options = 7; + int options_size() const; + private: + int _internal_options_size() const; + public: + void clear_options(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_options() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_options(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + options() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_options(); + + // string engine = 2; + void clear_engine(); + const std::string& engine() const; + template + void set_engine(ArgT0&& arg0, ArgT... args); + std::string* mutable_engine(); + PROTOBUF_NODISCARD std::string* release_engine(); + void set_allocated_engine(std::string* engine); + private: + const std::string& _internal_engine() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_engine(const std::string& value); + std::string* _internal_mutable_engine(); + public: + + // string region_dir = 6; + void clear_region_dir(); + const std::string& region_dir() const; + template + void set_region_dir(ArgT0&& arg0, ArgT... args); + std::string* mutable_region_dir(); + PROTOBUF_NODISCARD std::string* release_region_dir(); + void set_allocated_region_dir(std::string* region_dir); + private: + const std::string& _internal_region_dir() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_region_dir(const std::string& value); + std::string* _internal_mutable_region_dir(); + public: + + // uint64 region_id = 1; + void clear_region_id(); + uint64_t region_id() const; + void set_region_id(uint64_t value); + private: + uint64_t _internal_region_id() const; + void _internal_set_region_id(uint64_t value); + public: + + // bool create_if_not_exists = 5; + void clear_create_if_not_exists(); + bool create_if_not_exists() const; + void set_create_if_not_exists(bool value); + private: + bool _internal_create_if_not_exists() const; + void _internal_set_create_if_not_exists(bool value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.CreateRequest) + 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::region::ColumnDef > column_defs_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > primary_key_; + mutable std::atomic _primary_key_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + CreateRequest_OptionsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr engine_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr region_dir_; + uint64_t region_id_; + bool create_if_not_exists_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class DropRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.DropRequest) */ { + public: + inline DropRequest() : DropRequest(nullptr) {} + ~DropRequest() override; + explicit PROTOBUF_CONSTEXPR DropRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DropRequest(const DropRequest& from); + DropRequest(DropRequest&& from) noexcept + : DropRequest() { + *this = ::std::move(from); + } + + inline DropRequest& operator=(const DropRequest& from) { + CopyFrom(from); + return *this; + } + inline DropRequest& operator=(DropRequest&& 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 DropRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DropRequest* internal_default_instance() { + return reinterpret_cast( + &_DropRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(DropRequest& a, DropRequest& b) { + a.Swap(&b); + } + inline void Swap(DropRequest* 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(DropRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DropRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DropRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DropRequest& from) { + DropRequest::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(DropRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.DropRequest"; + } + protected: + explicit DropRequest(::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 { + kRegionIdFieldNumber = 1, + }; + // uint64 region_id = 1; + void clear_region_id(); + uint64_t region_id() const; + void set_region_id(uint64_t value); + private: + uint64_t _internal_region_id() const; + void _internal_set_region_id(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.DropRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint64_t region_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class OpenRequest_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + OpenRequest_OptionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR OpenRequest_OptionsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit OpenRequest_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const OpenRequest_OptionsEntry_DoNotUse& other); + static const OpenRequest_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_OpenRequest_OptionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.region.OpenRequest.OptionsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.region.OpenRequest.OptionsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; + +// ------------------------------------------------------------------- + +class OpenRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.OpenRequest) */ { + public: + inline OpenRequest() : OpenRequest(nullptr) {} + ~OpenRequest() override; + explicit PROTOBUF_CONSTEXPR OpenRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + OpenRequest(const OpenRequest& from); + OpenRequest(OpenRequest&& from) noexcept + : OpenRequest() { + *this = ::std::move(from); + } + + inline OpenRequest& operator=(const OpenRequest& from) { + CopyFrom(from); + return *this; + } + inline OpenRequest& operator=(OpenRequest&& 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 OpenRequest& default_instance() { + return *internal_default_instance(); + } + static inline const OpenRequest* internal_default_instance() { + return reinterpret_cast( + &_OpenRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(OpenRequest& a, OpenRequest& b) { + a.Swap(&b); + } + inline void Swap(OpenRequest* 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(OpenRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + OpenRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const OpenRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const OpenRequest& from) { + OpenRequest::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(OpenRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.OpenRequest"; + } + protected: + explicit OpenRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + 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 { + kOptionsFieldNumber = 4, + kEngineFieldNumber = 2, + kRegionDirFieldNumber = 3, + kRegionIdFieldNumber = 1, + }; + // map options = 4; + int options_size() const; + private: + int _internal_options_size() const; + public: + void clear_options(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_options() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_options(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + options() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_options(); + + // string engine = 2; + void clear_engine(); + const std::string& engine() const; + template + void set_engine(ArgT0&& arg0, ArgT... args); + std::string* mutable_engine(); + PROTOBUF_NODISCARD std::string* release_engine(); + void set_allocated_engine(std::string* engine); + private: + const std::string& _internal_engine() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_engine(const std::string& value); + std::string* _internal_mutable_engine(); + public: + + // string region_dir = 3; + void clear_region_dir(); + const std::string& region_dir() const; + template + void set_region_dir(ArgT0&& arg0, ArgT... args); + std::string* mutable_region_dir(); + PROTOBUF_NODISCARD std::string* release_region_dir(); + void set_allocated_region_dir(std::string* region_dir); + private: + const std::string& _internal_region_dir() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_region_dir(const std::string& value); + std::string* _internal_mutable_region_dir(); + public: + + // uint64 region_id = 1; + void clear_region_id(); + uint64_t region_id() const; + void set_region_id(uint64_t value); + private: + uint64_t _internal_region_id() const; + void _internal_set_region_id(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.OpenRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + OpenRequest_OptionsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr engine_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr region_dir_; + uint64_t region_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class CloseRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.CloseRequest) */ { + public: + inline CloseRequest() : CloseRequest(nullptr) {} + ~CloseRequest() override; + explicit PROTOBUF_CONSTEXPR CloseRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CloseRequest(const CloseRequest& from); + CloseRequest(CloseRequest&& from) noexcept + : CloseRequest() { + *this = ::std::move(from); + } + + inline CloseRequest& operator=(const CloseRequest& from) { + CopyFrom(from); + return *this; + } + inline CloseRequest& operator=(CloseRequest&& 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 CloseRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CloseRequest* internal_default_instance() { + return reinterpret_cast( + &_CloseRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(CloseRequest& a, CloseRequest& b) { + a.Swap(&b); + } + inline void Swap(CloseRequest* 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(CloseRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CloseRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CloseRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CloseRequest& from) { + CloseRequest::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(CloseRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.CloseRequest"; + } + protected: + explicit CloseRequest(::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 { + kRegionIdFieldNumber = 1, + }; + // uint64 region_id = 1; + void clear_region_id(); + uint64_t region_id() const; + void set_region_id(uint64_t value); + private: + uint64_t _internal_region_id() const; + void _internal_set_region_id(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.CloseRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint64_t region_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class AlterRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.AlterRequest) */ { + public: + inline AlterRequest() : AlterRequest(nullptr) {} + ~AlterRequest() override; + explicit PROTOBUF_CONSTEXPR AlterRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AlterRequest(const AlterRequest& from); + AlterRequest(AlterRequest&& from) noexcept + : AlterRequest() { + *this = ::std::move(from); + } + + inline AlterRequest& operator=(const AlterRequest& from) { + CopyFrom(from); + return *this; + } + inline AlterRequest& operator=(AlterRequest&& 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 AlterRequest& default_instance() { + return *internal_default_instance(); + } + static inline const AlterRequest* internal_default_instance() { + return reinterpret_cast( + &_AlterRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(AlterRequest& a, AlterRequest& b) { + a.Swap(&b); + } + inline void Swap(AlterRequest* 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(AlterRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AlterRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AlterRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AlterRequest& from) { + AlterRequest::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(AlterRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.AlterRequest"; + } + protected: + explicit AlterRequest(::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 { + kRegionIdFieldNumber = 1, + }; + // uint64 region_id = 1; + void clear_region_id(); + uint64_t region_id() const; + void set_region_id(uint64_t value); + private: + uint64_t _internal_region_id() const; + void _internal_set_region_id(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint64_t region_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class FlushRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.FlushRequest) */ { + public: + inline FlushRequest() : FlushRequest(nullptr) {} + ~FlushRequest() override; + explicit PROTOBUF_CONSTEXPR FlushRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FlushRequest(const FlushRequest& from); + FlushRequest(FlushRequest&& from) noexcept + : FlushRequest() { + *this = ::std::move(from); + } + + inline FlushRequest& operator=(const FlushRequest& from) { + CopyFrom(from); + return *this; + } + inline FlushRequest& operator=(FlushRequest&& 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 FlushRequest& default_instance() { + return *internal_default_instance(); + } + static inline const FlushRequest* internal_default_instance() { + return reinterpret_cast( + &_FlushRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(FlushRequest& a, FlushRequest& b) { + a.Swap(&b); + } + inline void Swap(FlushRequest* 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(FlushRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FlushRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FlushRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const FlushRequest& from) { + FlushRequest::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(FlushRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.FlushRequest"; + } + protected: + explicit FlushRequest(::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 { + kRegionIdFieldNumber = 1, + }; + // uint64 region_id = 1; + void clear_region_id(); + uint64_t region_id() const; + void set_region_id(uint64_t value); + private: + uint64_t _internal_region_id() const; + void _internal_set_region_id(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.FlushRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint64_t region_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class CompactRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.CompactRequest) */ { + public: + inline CompactRequest() : CompactRequest(nullptr) {} + ~CompactRequest() override; + explicit PROTOBUF_CONSTEXPR CompactRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CompactRequest(const CompactRequest& from); + CompactRequest(CompactRequest&& from) noexcept + : CompactRequest() { + *this = ::std::move(from); + } + + inline CompactRequest& operator=(const CompactRequest& from) { + CopyFrom(from); + return *this; + } + inline CompactRequest& operator=(CompactRequest&& 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 CompactRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CompactRequest* internal_default_instance() { + return reinterpret_cast( + &_CompactRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(CompactRequest& a, CompactRequest& b) { + a.Swap(&b); + } + inline void Swap(CompactRequest* 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(CompactRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CompactRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CompactRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CompactRequest& from) { + CompactRequest::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(CompactRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.CompactRequest"; + } + protected: + explicit CompactRequest(::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 { + kRegionIdFieldNumber = 1, + }; + // uint64 region_id = 1; + void clear_region_id(); + uint64_t region_id() const; + void set_region_id(uint64_t value); + private: + uint64_t _internal_region_id() const; + void _internal_set_region_id(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.CompactRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint64_t region_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class ColumnDef final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.ColumnDef) */ { + public: + inline ColumnDef() : ColumnDef(nullptr) {} + ~ColumnDef() override; + explicit PROTOBUF_CONSTEXPR ColumnDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ColumnDef(const ColumnDef& from); + ColumnDef(ColumnDef&& from) noexcept + : ColumnDef() { + *this = ::std::move(from); + } + + inline ColumnDef& operator=(const ColumnDef& from) { + CopyFrom(from); + return *this; + } + inline ColumnDef& operator=(ColumnDef&& 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 ColumnDef& default_instance() { + return *internal_default_instance(); + } + static inline const ColumnDef* internal_default_instance() { + return reinterpret_cast( + &_ColumnDef_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(ColumnDef& a, ColumnDef& b) { + a.Swap(&b); + } + inline void Swap(ColumnDef* 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(ColumnDef* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ColumnDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ColumnDef& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ColumnDef& from) { + ColumnDef::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(ColumnDef* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.ColumnDef"; + } + protected: + explicit ColumnDef(::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 = 1, + kDefaultConstraintFieldNumber = 5, + kColumnIdFieldNumber = 2, + kDatatypeFieldNumber = 3, + kIsNullableFieldNumber = 4, + kSemanticTypeFieldNumber = 6, + }; + // string name = 1; + 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: + + // bytes default_constraint = 5; + void clear_default_constraint(); + const std::string& default_constraint() const; + template + void set_default_constraint(ArgT0&& arg0, ArgT... args); + std::string* mutable_default_constraint(); + PROTOBUF_NODISCARD std::string* release_default_constraint(); + void set_allocated_default_constraint(std::string* default_constraint); + private: + const std::string& _internal_default_constraint() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_constraint(const std::string& value); + std::string* _internal_mutable_default_constraint(); + public: + + // uint32 column_id = 2; + void clear_column_id(); + uint32_t column_id() const; + void set_column_id(uint32_t value); + private: + uint32_t _internal_column_id() const; + void _internal_set_column_id(uint32_t value); + public: + + // .greptime.v1.ColumnDataType datatype = 3; + void clear_datatype(); + ::greptime::v1::ColumnDataType datatype() const; + void set_datatype(::greptime::v1::ColumnDataType value); + private: + ::greptime::v1::ColumnDataType _internal_datatype() const; + void _internal_set_datatype(::greptime::v1::ColumnDataType value); + public: + + // bool is_nullable = 4; + void clear_is_nullable(); + bool is_nullable() const; + void set_is_nullable(bool value); + private: + bool _internal_is_nullable() const; + void _internal_set_is_nullable(bool value); + public: + + // .greptime.v1.SemanticType semantic_type = 6; + void clear_semantic_type(); + ::greptime::v1::SemanticType semantic_type() const; + void set_semantic_type(::greptime::v1::SemanticType value); + private: + ::greptime::v1::SemanticType _internal_semantic_type() const; + void _internal_set_semantic_type(::greptime::v1::SemanticType value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.ColumnDef) + 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 default_constraint_; + uint32_t column_id_; + int datatype_; + bool is_nullable_; + int semantic_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// RegionRequest + +// .greptime.v1.RequestHeader header = 1; +inline bool RegionRequest::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool RegionRequest::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::RequestHeader& RegionRequest::_internal_header() const { + const ::greptime::v1::RequestHeader* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_RequestHeader_default_instance_); +} +inline const ::greptime::v1::RequestHeader& RegionRequest::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequest.header) + return _internal_header(); +} +inline void RegionRequest::unsafe_arena_set_allocated_header( + ::greptime::v1::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.region.RegionRequest.header) +} +inline ::greptime::v1::RequestHeader* RegionRequest::release_header() { + + ::greptime::v1::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::RequestHeader* RegionRequest::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.region.RegionRequest.header) + + ::greptime::v1::RequestHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::RequestHeader* RegionRequest::_internal_mutable_header() { + + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::RequestHeader>(GetArenaForAllocation()); + _impl_.header_ = p; + } + return _impl_.header_; +} +inline ::greptime::v1::RequestHeader* RegionRequest::mutable_header() { + ::greptime::v1::RequestHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionRequest.header) + return _msg; +} +inline void RegionRequest::set_allocated_header(::greptime::v1::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.region.RegionRequest.header) +} + +// .greptime.v1.region.InsertRequests inserts = 3; +inline bool RegionRequest::_internal_has_inserts() const { + return request_case() == kInserts; +} +inline bool RegionRequest::has_inserts() const { + return _internal_has_inserts(); +} +inline void RegionRequest::set_has_inserts() { + _impl_._oneof_case_[0] = kInserts; +} +inline void RegionRequest::clear_inserts() { + if (_internal_has_inserts()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.inserts_; + } + clear_has_request(); + } +} +inline ::greptime::v1::region::InsertRequests* RegionRequest::release_inserts() { + // @@protoc_insertion_point(field_release:greptime.v1.region.RegionRequest.inserts) + if (_internal_has_inserts()) { + clear_has_request(); + ::greptime::v1::region::InsertRequests* temp = _impl_.request_.inserts_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.request_.inserts_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::region::InsertRequests& RegionRequest::_internal_inserts() const { + return _internal_has_inserts() + ? *_impl_.request_.inserts_ + : reinterpret_cast< ::greptime::v1::region::InsertRequests&>(::greptime::v1::region::_InsertRequests_default_instance_); +} +inline const ::greptime::v1::region::InsertRequests& RegionRequest::inserts() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequest.inserts) + return _internal_inserts(); +} +inline ::greptime::v1::region::InsertRequests* RegionRequest::unsafe_arena_release_inserts() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.RegionRequest.inserts) + if (_internal_has_inserts()) { + clear_has_request(); + ::greptime::v1::region::InsertRequests* temp = _impl_.request_.inserts_; + _impl_.request_.inserts_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RegionRequest::unsafe_arena_set_allocated_inserts(::greptime::v1::region::InsertRequests* inserts) { + clear_request(); + if (inserts) { + set_has_inserts(); + _impl_.request_.inserts_ = inserts; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.RegionRequest.inserts) +} +inline ::greptime::v1::region::InsertRequests* RegionRequest::_internal_mutable_inserts() { + if (!_internal_has_inserts()) { + clear_request(); + set_has_inserts(); + _impl_.request_.inserts_ = CreateMaybeMessage< ::greptime::v1::region::InsertRequests >(GetArenaForAllocation()); + } + return _impl_.request_.inserts_; +} +inline ::greptime::v1::region::InsertRequests* RegionRequest::mutable_inserts() { + ::greptime::v1::region::InsertRequests* _msg = _internal_mutable_inserts(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionRequest.inserts) + return _msg; +} + +// .greptime.v1.region.DeleteRequests deletes = 4; +inline bool RegionRequest::_internal_has_deletes() const { + return request_case() == kDeletes; +} +inline bool RegionRequest::has_deletes() const { + return _internal_has_deletes(); +} +inline void RegionRequest::set_has_deletes() { + _impl_._oneof_case_[0] = kDeletes; +} +inline void RegionRequest::clear_deletes() { + if (_internal_has_deletes()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.deletes_; + } + clear_has_request(); + } +} +inline ::greptime::v1::region::DeleteRequests* RegionRequest::release_deletes() { + // @@protoc_insertion_point(field_release:greptime.v1.region.RegionRequest.deletes) + if (_internal_has_deletes()) { + clear_has_request(); + ::greptime::v1::region::DeleteRequests* temp = _impl_.request_.deletes_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.request_.deletes_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::region::DeleteRequests& RegionRequest::_internal_deletes() const { + return _internal_has_deletes() + ? *_impl_.request_.deletes_ + : reinterpret_cast< ::greptime::v1::region::DeleteRequests&>(::greptime::v1::region::_DeleteRequests_default_instance_); +} +inline const ::greptime::v1::region::DeleteRequests& RegionRequest::deletes() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequest.deletes) + return _internal_deletes(); +} +inline ::greptime::v1::region::DeleteRequests* RegionRequest::unsafe_arena_release_deletes() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.RegionRequest.deletes) + if (_internal_has_deletes()) { + clear_has_request(); + ::greptime::v1::region::DeleteRequests* temp = _impl_.request_.deletes_; + _impl_.request_.deletes_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RegionRequest::unsafe_arena_set_allocated_deletes(::greptime::v1::region::DeleteRequests* deletes) { + clear_request(); + if (deletes) { + set_has_deletes(); + _impl_.request_.deletes_ = deletes; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.RegionRequest.deletes) +} +inline ::greptime::v1::region::DeleteRequests* RegionRequest::_internal_mutable_deletes() { + if (!_internal_has_deletes()) { + clear_request(); + set_has_deletes(); + _impl_.request_.deletes_ = CreateMaybeMessage< ::greptime::v1::region::DeleteRequests >(GetArenaForAllocation()); + } + return _impl_.request_.deletes_; +} +inline ::greptime::v1::region::DeleteRequests* RegionRequest::mutable_deletes() { + ::greptime::v1::region::DeleteRequests* _msg = _internal_mutable_deletes(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionRequest.deletes) + return _msg; +} + +// .greptime.v1.region.CreateRequest create = 5; +inline bool RegionRequest::_internal_has_create() const { + return request_case() == kCreate; +} +inline bool RegionRequest::has_create() const { + return _internal_has_create(); +} +inline void RegionRequest::set_has_create() { + _impl_._oneof_case_[0] = kCreate; +} +inline void RegionRequest::clear_create() { + if (_internal_has_create()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.create_; + } + clear_has_request(); + } +} +inline ::greptime::v1::region::CreateRequest* RegionRequest::release_create() { + // @@protoc_insertion_point(field_release:greptime.v1.region.RegionRequest.create) + if (_internal_has_create()) { + clear_has_request(); + ::greptime::v1::region::CreateRequest* temp = _impl_.request_.create_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.request_.create_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::region::CreateRequest& RegionRequest::_internal_create() const { + return _internal_has_create() + ? *_impl_.request_.create_ + : reinterpret_cast< ::greptime::v1::region::CreateRequest&>(::greptime::v1::region::_CreateRequest_default_instance_); +} +inline const ::greptime::v1::region::CreateRequest& RegionRequest::create() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequest.create) + return _internal_create(); +} +inline ::greptime::v1::region::CreateRequest* RegionRequest::unsafe_arena_release_create() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.RegionRequest.create) + if (_internal_has_create()) { + clear_has_request(); + ::greptime::v1::region::CreateRequest* temp = _impl_.request_.create_; + _impl_.request_.create_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RegionRequest::unsafe_arena_set_allocated_create(::greptime::v1::region::CreateRequest* create) { + clear_request(); + if (create) { + set_has_create(); + _impl_.request_.create_ = create; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.RegionRequest.create) +} +inline ::greptime::v1::region::CreateRequest* RegionRequest::_internal_mutable_create() { + if (!_internal_has_create()) { + clear_request(); + set_has_create(); + _impl_.request_.create_ = CreateMaybeMessage< ::greptime::v1::region::CreateRequest >(GetArenaForAllocation()); + } + return _impl_.request_.create_; +} +inline ::greptime::v1::region::CreateRequest* RegionRequest::mutable_create() { + ::greptime::v1::region::CreateRequest* _msg = _internal_mutable_create(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionRequest.create) + return _msg; +} + +// .greptime.v1.region.DropRequest drop = 6; +inline bool RegionRequest::_internal_has_drop() const { + return request_case() == kDrop; +} +inline bool RegionRequest::has_drop() const { + return _internal_has_drop(); +} +inline void RegionRequest::set_has_drop() { + _impl_._oneof_case_[0] = kDrop; +} +inline void RegionRequest::clear_drop() { + if (_internal_has_drop()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.drop_; + } + clear_has_request(); + } +} +inline ::greptime::v1::region::DropRequest* RegionRequest::release_drop() { + // @@protoc_insertion_point(field_release:greptime.v1.region.RegionRequest.drop) + if (_internal_has_drop()) { + clear_has_request(); + ::greptime::v1::region::DropRequest* temp = _impl_.request_.drop_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.request_.drop_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::region::DropRequest& RegionRequest::_internal_drop() const { + return _internal_has_drop() + ? *_impl_.request_.drop_ + : reinterpret_cast< ::greptime::v1::region::DropRequest&>(::greptime::v1::region::_DropRequest_default_instance_); +} +inline const ::greptime::v1::region::DropRequest& RegionRequest::drop() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequest.drop) + return _internal_drop(); +} +inline ::greptime::v1::region::DropRequest* RegionRequest::unsafe_arena_release_drop() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.RegionRequest.drop) + if (_internal_has_drop()) { + clear_has_request(); + ::greptime::v1::region::DropRequest* temp = _impl_.request_.drop_; + _impl_.request_.drop_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RegionRequest::unsafe_arena_set_allocated_drop(::greptime::v1::region::DropRequest* drop) { + clear_request(); + if (drop) { + set_has_drop(); + _impl_.request_.drop_ = drop; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.RegionRequest.drop) +} +inline ::greptime::v1::region::DropRequest* RegionRequest::_internal_mutable_drop() { + if (!_internal_has_drop()) { + clear_request(); + set_has_drop(); + _impl_.request_.drop_ = CreateMaybeMessage< ::greptime::v1::region::DropRequest >(GetArenaForAllocation()); + } + return _impl_.request_.drop_; +} +inline ::greptime::v1::region::DropRequest* RegionRequest::mutable_drop() { + ::greptime::v1::region::DropRequest* _msg = _internal_mutable_drop(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionRequest.drop) + return _msg; +} + +// .greptime.v1.region.OpenRequest open = 7; +inline bool RegionRequest::_internal_has_open() const { + return request_case() == kOpen; +} +inline bool RegionRequest::has_open() const { + return _internal_has_open(); +} +inline void RegionRequest::set_has_open() { + _impl_._oneof_case_[0] = kOpen; +} +inline void RegionRequest::clear_open() { + if (_internal_has_open()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.open_; + } + clear_has_request(); + } +} +inline ::greptime::v1::region::OpenRequest* RegionRequest::release_open() { + // @@protoc_insertion_point(field_release:greptime.v1.region.RegionRequest.open) + if (_internal_has_open()) { + clear_has_request(); + ::greptime::v1::region::OpenRequest* temp = _impl_.request_.open_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.request_.open_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::region::OpenRequest& RegionRequest::_internal_open() const { + return _internal_has_open() + ? *_impl_.request_.open_ + : reinterpret_cast< ::greptime::v1::region::OpenRequest&>(::greptime::v1::region::_OpenRequest_default_instance_); +} +inline const ::greptime::v1::region::OpenRequest& RegionRequest::open() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequest.open) + return _internal_open(); +} +inline ::greptime::v1::region::OpenRequest* RegionRequest::unsafe_arena_release_open() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.RegionRequest.open) + if (_internal_has_open()) { + clear_has_request(); + ::greptime::v1::region::OpenRequest* temp = _impl_.request_.open_; + _impl_.request_.open_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RegionRequest::unsafe_arena_set_allocated_open(::greptime::v1::region::OpenRequest* open) { + clear_request(); + if (open) { + set_has_open(); + _impl_.request_.open_ = open; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.RegionRequest.open) +} +inline ::greptime::v1::region::OpenRequest* RegionRequest::_internal_mutable_open() { + if (!_internal_has_open()) { + clear_request(); + set_has_open(); + _impl_.request_.open_ = CreateMaybeMessage< ::greptime::v1::region::OpenRequest >(GetArenaForAllocation()); + } + return _impl_.request_.open_; +} +inline ::greptime::v1::region::OpenRequest* RegionRequest::mutable_open() { + ::greptime::v1::region::OpenRequest* _msg = _internal_mutable_open(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionRequest.open) + return _msg; +} + +// .greptime.v1.region.CloseRequest close = 8; +inline bool RegionRequest::_internal_has_close() const { + return request_case() == kClose; +} +inline bool RegionRequest::has_close() const { + return _internal_has_close(); +} +inline void RegionRequest::set_has_close() { + _impl_._oneof_case_[0] = kClose; +} +inline void RegionRequest::clear_close() { + if (_internal_has_close()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.close_; + } + clear_has_request(); + } +} +inline ::greptime::v1::region::CloseRequest* RegionRequest::release_close() { + // @@protoc_insertion_point(field_release:greptime.v1.region.RegionRequest.close) + if (_internal_has_close()) { + clear_has_request(); + ::greptime::v1::region::CloseRequest* temp = _impl_.request_.close_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.request_.close_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::region::CloseRequest& RegionRequest::_internal_close() const { + return _internal_has_close() + ? *_impl_.request_.close_ + : reinterpret_cast< ::greptime::v1::region::CloseRequest&>(::greptime::v1::region::_CloseRequest_default_instance_); +} +inline const ::greptime::v1::region::CloseRequest& RegionRequest::close() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequest.close) + return _internal_close(); +} +inline ::greptime::v1::region::CloseRequest* RegionRequest::unsafe_arena_release_close() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.RegionRequest.close) + if (_internal_has_close()) { + clear_has_request(); + ::greptime::v1::region::CloseRequest* temp = _impl_.request_.close_; + _impl_.request_.close_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RegionRequest::unsafe_arena_set_allocated_close(::greptime::v1::region::CloseRequest* close) { + clear_request(); + if (close) { + set_has_close(); + _impl_.request_.close_ = close; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.RegionRequest.close) +} +inline ::greptime::v1::region::CloseRequest* RegionRequest::_internal_mutable_close() { + if (!_internal_has_close()) { + clear_request(); + set_has_close(); + _impl_.request_.close_ = CreateMaybeMessage< ::greptime::v1::region::CloseRequest >(GetArenaForAllocation()); + } + return _impl_.request_.close_; +} +inline ::greptime::v1::region::CloseRequest* RegionRequest::mutable_close() { + ::greptime::v1::region::CloseRequest* _msg = _internal_mutable_close(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionRequest.close) + return _msg; +} + +// .greptime.v1.region.AlterRequest alter = 9; +inline bool RegionRequest::_internal_has_alter() const { + return request_case() == kAlter; +} +inline bool RegionRequest::has_alter() const { + return _internal_has_alter(); +} +inline void RegionRequest::set_has_alter() { + _impl_._oneof_case_[0] = kAlter; +} +inline void RegionRequest::clear_alter() { + if (_internal_has_alter()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.alter_; + } + clear_has_request(); + } +} +inline ::greptime::v1::region::AlterRequest* RegionRequest::release_alter() { + // @@protoc_insertion_point(field_release:greptime.v1.region.RegionRequest.alter) + if (_internal_has_alter()) { + clear_has_request(); + ::greptime::v1::region::AlterRequest* temp = _impl_.request_.alter_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.request_.alter_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::region::AlterRequest& RegionRequest::_internal_alter() const { + return _internal_has_alter() + ? *_impl_.request_.alter_ + : reinterpret_cast< ::greptime::v1::region::AlterRequest&>(::greptime::v1::region::_AlterRequest_default_instance_); +} +inline const ::greptime::v1::region::AlterRequest& RegionRequest::alter() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequest.alter) + return _internal_alter(); +} +inline ::greptime::v1::region::AlterRequest* RegionRequest::unsafe_arena_release_alter() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.RegionRequest.alter) + if (_internal_has_alter()) { + clear_has_request(); + ::greptime::v1::region::AlterRequest* temp = _impl_.request_.alter_; + _impl_.request_.alter_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RegionRequest::unsafe_arena_set_allocated_alter(::greptime::v1::region::AlterRequest* alter) { + clear_request(); + if (alter) { + set_has_alter(); + _impl_.request_.alter_ = alter; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.RegionRequest.alter) +} +inline ::greptime::v1::region::AlterRequest* RegionRequest::_internal_mutable_alter() { + if (!_internal_has_alter()) { + clear_request(); + set_has_alter(); + _impl_.request_.alter_ = CreateMaybeMessage< ::greptime::v1::region::AlterRequest >(GetArenaForAllocation()); + } + return _impl_.request_.alter_; +} +inline ::greptime::v1::region::AlterRequest* RegionRequest::mutable_alter() { + ::greptime::v1::region::AlterRequest* _msg = _internal_mutable_alter(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionRequest.alter) + return _msg; +} + +// .greptime.v1.region.FlushRequest flush = 10; +inline bool RegionRequest::_internal_has_flush() const { + return request_case() == kFlush; +} +inline bool RegionRequest::has_flush() const { + return _internal_has_flush(); +} +inline void RegionRequest::set_has_flush() { + _impl_._oneof_case_[0] = kFlush; +} +inline void RegionRequest::clear_flush() { + if (_internal_has_flush()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.flush_; + } + clear_has_request(); + } +} +inline ::greptime::v1::region::FlushRequest* RegionRequest::release_flush() { + // @@protoc_insertion_point(field_release:greptime.v1.region.RegionRequest.flush) + if (_internal_has_flush()) { + clear_has_request(); + ::greptime::v1::region::FlushRequest* temp = _impl_.request_.flush_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.request_.flush_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::region::FlushRequest& RegionRequest::_internal_flush() const { + return _internal_has_flush() + ? *_impl_.request_.flush_ + : reinterpret_cast< ::greptime::v1::region::FlushRequest&>(::greptime::v1::region::_FlushRequest_default_instance_); +} +inline const ::greptime::v1::region::FlushRequest& RegionRequest::flush() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequest.flush) + return _internal_flush(); +} +inline ::greptime::v1::region::FlushRequest* RegionRequest::unsafe_arena_release_flush() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.RegionRequest.flush) + if (_internal_has_flush()) { + clear_has_request(); + ::greptime::v1::region::FlushRequest* temp = _impl_.request_.flush_; + _impl_.request_.flush_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RegionRequest::unsafe_arena_set_allocated_flush(::greptime::v1::region::FlushRequest* flush) { + clear_request(); + if (flush) { + set_has_flush(); + _impl_.request_.flush_ = flush; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.RegionRequest.flush) +} +inline ::greptime::v1::region::FlushRequest* RegionRequest::_internal_mutable_flush() { + if (!_internal_has_flush()) { + clear_request(); + set_has_flush(); + _impl_.request_.flush_ = CreateMaybeMessage< ::greptime::v1::region::FlushRequest >(GetArenaForAllocation()); + } + return _impl_.request_.flush_; +} +inline ::greptime::v1::region::FlushRequest* RegionRequest::mutable_flush() { + ::greptime::v1::region::FlushRequest* _msg = _internal_mutable_flush(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionRequest.flush) + return _msg; +} + +// .greptime.v1.region.CompactRequest compact = 11; +inline bool RegionRequest::_internal_has_compact() const { + return request_case() == kCompact; +} +inline bool RegionRequest::has_compact() const { + return _internal_has_compact(); +} +inline void RegionRequest::set_has_compact() { + _impl_._oneof_case_[0] = kCompact; +} +inline void RegionRequest::clear_compact() { + if (_internal_has_compact()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.request_.compact_; + } + clear_has_request(); + } +} +inline ::greptime::v1::region::CompactRequest* RegionRequest::release_compact() { + // @@protoc_insertion_point(field_release:greptime.v1.region.RegionRequest.compact) + if (_internal_has_compact()) { + clear_has_request(); + ::greptime::v1::region::CompactRequest* temp = _impl_.request_.compact_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.request_.compact_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::region::CompactRequest& RegionRequest::_internal_compact() const { + return _internal_has_compact() + ? *_impl_.request_.compact_ + : reinterpret_cast< ::greptime::v1::region::CompactRequest&>(::greptime::v1::region::_CompactRequest_default_instance_); +} +inline const ::greptime::v1::region::CompactRequest& RegionRequest::compact() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequest.compact) + return _internal_compact(); +} +inline ::greptime::v1::region::CompactRequest* RegionRequest::unsafe_arena_release_compact() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.RegionRequest.compact) + if (_internal_has_compact()) { + clear_has_request(); + ::greptime::v1::region::CompactRequest* temp = _impl_.request_.compact_; + _impl_.request_.compact_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void RegionRequest::unsafe_arena_set_allocated_compact(::greptime::v1::region::CompactRequest* compact) { + clear_request(); + if (compact) { + set_has_compact(); + _impl_.request_.compact_ = compact; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.RegionRequest.compact) +} +inline ::greptime::v1::region::CompactRequest* RegionRequest::_internal_mutable_compact() { + if (!_internal_has_compact()) { + clear_request(); + set_has_compact(); + _impl_.request_.compact_ = CreateMaybeMessage< ::greptime::v1::region::CompactRequest >(GetArenaForAllocation()); + } + return _impl_.request_.compact_; +} +inline ::greptime::v1::region::CompactRequest* RegionRequest::mutable_compact() { + ::greptime::v1::region::CompactRequest* _msg = _internal_mutable_compact(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionRequest.compact) + return _msg; +} + +inline bool RegionRequest::has_request() const { + return request_case() != REQUEST_NOT_SET; +} +inline void RegionRequest::clear_has_request() { + _impl_._oneof_case_[0] = REQUEST_NOT_SET; +} +inline RegionRequest::RequestCase RegionRequest::request_case() const { + return RegionRequest::RequestCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// RegionResponse + +// .greptime.v1.ResponseHeader header = 1; +inline bool RegionResponse::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool RegionResponse::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::ResponseHeader& RegionResponse::_internal_header() const { + const ::greptime::v1::ResponseHeader* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_ResponseHeader_default_instance_); +} +inline const ::greptime::v1::ResponseHeader& RegionResponse::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.RegionResponse.header) + return _internal_header(); +} +inline void RegionResponse::unsafe_arena_set_allocated_header( + ::greptime::v1::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.region.RegionResponse.header) +} +inline ::greptime::v1::ResponseHeader* RegionResponse::release_header() { + + ::greptime::v1::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::ResponseHeader* RegionResponse::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.region.RegionResponse.header) + + ::greptime::v1::ResponseHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::ResponseHeader* RegionResponse::_internal_mutable_header() { + + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::ResponseHeader>(GetArenaForAllocation()); + _impl_.header_ = p; + } + return _impl_.header_; +} +inline ::greptime::v1::ResponseHeader* RegionResponse::mutable_header() { + ::greptime::v1::ResponseHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionResponse.header) + return _msg; +} +inline void RegionResponse::set_allocated_header(::greptime::v1::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.region.RegionResponse.header) +} + +// uint64 affacted_rows = 2; +inline void RegionResponse::clear_affacted_rows() { + _impl_.affacted_rows_ = uint64_t{0u}; +} +inline uint64_t RegionResponse::_internal_affacted_rows() const { + return _impl_.affacted_rows_; +} +inline uint64_t RegionResponse::affacted_rows() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.RegionResponse.affacted_rows) + return _internal_affacted_rows(); +} +inline void RegionResponse::_internal_set_affacted_rows(uint64_t value) { + + _impl_.affacted_rows_ = value; +} +inline void RegionResponse::set_affacted_rows(uint64_t value) { + _internal_set_affacted_rows(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.RegionResponse.affacted_rows) +} + +// ------------------------------------------------------------------- + +// InsertRequests + +// repeated .greptime.v1.region.InsertRequest requests = 1; +inline int InsertRequests::_internal_requests_size() const { + return _impl_.requests_.size(); +} +inline int InsertRequests::requests_size() const { + return _internal_requests_size(); +} +inline void InsertRequests::clear_requests() { + _impl_.requests_.Clear(); +} +inline ::greptime::v1::region::InsertRequest* InsertRequests::mutable_requests(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.region.InsertRequests.requests) + return _impl_.requests_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::InsertRequest >* +InsertRequests::mutable_requests() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.region.InsertRequests.requests) + return &_impl_.requests_; +} +inline const ::greptime::v1::region::InsertRequest& InsertRequests::_internal_requests(int index) const { + return _impl_.requests_.Get(index); +} +inline const ::greptime::v1::region::InsertRequest& InsertRequests::requests(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.region.InsertRequests.requests) + return _internal_requests(index); +} +inline ::greptime::v1::region::InsertRequest* InsertRequests::_internal_add_requests() { + return _impl_.requests_.Add(); +} +inline ::greptime::v1::region::InsertRequest* InsertRequests::add_requests() { + ::greptime::v1::region::InsertRequest* _add = _internal_add_requests(); + // @@protoc_insertion_point(field_add:greptime.v1.region.InsertRequests.requests) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::InsertRequest >& +InsertRequests::requests() const { + // @@protoc_insertion_point(field_list:greptime.v1.region.InsertRequests.requests) + return _impl_.requests_; +} + +// ------------------------------------------------------------------- + +// DeleteRequests + +// repeated .greptime.v1.region.DeleteRequest requests = 1; +inline int DeleteRequests::_internal_requests_size() const { + return _impl_.requests_.size(); +} +inline int DeleteRequests::requests_size() const { + return _internal_requests_size(); +} +inline void DeleteRequests::clear_requests() { + _impl_.requests_.Clear(); +} +inline ::greptime::v1::region::DeleteRequest* DeleteRequests::mutable_requests(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.region.DeleteRequests.requests) + return _impl_.requests_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::DeleteRequest >* +DeleteRequests::mutable_requests() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.region.DeleteRequests.requests) + return &_impl_.requests_; +} +inline const ::greptime::v1::region::DeleteRequest& DeleteRequests::_internal_requests(int index) const { + return _impl_.requests_.Get(index); +} +inline const ::greptime::v1::region::DeleteRequest& DeleteRequests::requests(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.region.DeleteRequests.requests) + return _internal_requests(index); +} +inline ::greptime::v1::region::DeleteRequest* DeleteRequests::_internal_add_requests() { + return _impl_.requests_.Add(); +} +inline ::greptime::v1::region::DeleteRequest* DeleteRequests::add_requests() { + ::greptime::v1::region::DeleteRequest* _add = _internal_add_requests(); + // @@protoc_insertion_point(field_add:greptime.v1.region.DeleteRequests.requests) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::DeleteRequest >& +DeleteRequests::requests() const { + // @@protoc_insertion_point(field_list:greptime.v1.region.DeleteRequests.requests) + return _impl_.requests_; +} + +// ------------------------------------------------------------------- + +// InsertRequest + +// uint64 region_id = 1; +inline void InsertRequest::clear_region_id() { + _impl_.region_id_ = uint64_t{0u}; +} +inline uint64_t InsertRequest::_internal_region_id() const { + return _impl_.region_id_; +} +inline uint64_t InsertRequest::region_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.InsertRequest.region_id) + return _internal_region_id(); +} +inline void InsertRequest::_internal_set_region_id(uint64_t value) { + + _impl_.region_id_ = value; +} +inline void InsertRequest::set_region_id(uint64_t value) { + _internal_set_region_id(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.InsertRequest.region_id) +} + +// repeated .greptime.v1.Row rows = 2; +inline int InsertRequest::_internal_rows_size() const { + return _impl_.rows_.size(); +} +inline int InsertRequest::rows_size() const { + return _internal_rows_size(); +} +inline ::greptime::v1::Row* InsertRequest::mutable_rows(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.region.InsertRequest.rows) + return _impl_.rows_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row >* +InsertRequest::mutable_rows() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.region.InsertRequest.rows) + return &_impl_.rows_; +} +inline const ::greptime::v1::Row& InsertRequest::_internal_rows(int index) const { + return _impl_.rows_.Get(index); +} +inline const ::greptime::v1::Row& InsertRequest::rows(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.region.InsertRequest.rows) + return _internal_rows(index); +} +inline ::greptime::v1::Row* InsertRequest::_internal_add_rows() { + return _impl_.rows_.Add(); +} +inline ::greptime::v1::Row* InsertRequest::add_rows() { + ::greptime::v1::Row* _add = _internal_add_rows(); + // @@protoc_insertion_point(field_add:greptime.v1.region.InsertRequest.rows) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row >& +InsertRequest::rows() const { + // @@protoc_insertion_point(field_list:greptime.v1.region.InsertRequest.rows) + return _impl_.rows_; +} + +// ------------------------------------------------------------------- + +// DeleteRequest + +// uint64 region_id = 1; +inline void DeleteRequest::clear_region_id() { + _impl_.region_id_ = uint64_t{0u}; +} +inline uint64_t DeleteRequest::_internal_region_id() const { + return _impl_.region_id_; +} +inline uint64_t DeleteRequest::region_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.DeleteRequest.region_id) + return _internal_region_id(); +} +inline void DeleteRequest::_internal_set_region_id(uint64_t value) { + + _impl_.region_id_ = value; +} +inline void DeleteRequest::set_region_id(uint64_t value) { + _internal_set_region_id(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.DeleteRequest.region_id) +} + +// repeated .greptime.v1.Row rows = 2; +inline int DeleteRequest::_internal_rows_size() const { + return _impl_.rows_.size(); +} +inline int DeleteRequest::rows_size() const { + return _internal_rows_size(); +} +inline ::greptime::v1::Row* DeleteRequest::mutable_rows(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.region.DeleteRequest.rows) + return _impl_.rows_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row >* +DeleteRequest::mutable_rows() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.region.DeleteRequest.rows) + return &_impl_.rows_; +} +inline const ::greptime::v1::Row& DeleteRequest::_internal_rows(int index) const { + return _impl_.rows_.Get(index); +} +inline const ::greptime::v1::Row& DeleteRequest::rows(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.region.DeleteRequest.rows) + return _internal_rows(index); +} +inline ::greptime::v1::Row* DeleteRequest::_internal_add_rows() { + return _impl_.rows_.Add(); +} +inline ::greptime::v1::Row* DeleteRequest::add_rows() { + ::greptime::v1::Row* _add = _internal_add_rows(); + // @@protoc_insertion_point(field_add:greptime.v1.region.DeleteRequest.rows) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Row >& +DeleteRequest::rows() const { + // @@protoc_insertion_point(field_list:greptime.v1.region.DeleteRequest.rows) + return _impl_.rows_; +} + +// ------------------------------------------------------------------- + +// QueryRequest + +// uint64 region_id = 1; +inline void QueryRequest::clear_region_id() { + _impl_.region_id_ = uint64_t{0u}; +} +inline uint64_t QueryRequest::_internal_region_id() const { + return _impl_.region_id_; +} +inline uint64_t QueryRequest::region_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.QueryRequest.region_id) + return _internal_region_id(); +} +inline void QueryRequest::_internal_set_region_id(uint64_t value) { + + _impl_.region_id_ = value; +} +inline void QueryRequest::set_region_id(uint64_t value) { + _internal_set_region_id(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.QueryRequest.region_id) +} + +// bytes plan = 2; +inline void QueryRequest::clear_plan() { + _impl_.plan_.ClearToEmpty(); +} +inline const std::string& QueryRequest::plan() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.QueryRequest.plan) + return _internal_plan(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void QueryRequest::set_plan(ArgT0&& arg0, ArgT... args) { + + _impl_.plan_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.region.QueryRequest.plan) +} +inline std::string* QueryRequest::mutable_plan() { + std::string* _s = _internal_mutable_plan(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.QueryRequest.plan) + return _s; +} +inline const std::string& QueryRequest::_internal_plan() const { + return _impl_.plan_.Get(); +} +inline void QueryRequest::_internal_set_plan(const std::string& value) { + + _impl_.plan_.Set(value, GetArenaForAllocation()); +} +inline std::string* QueryRequest::_internal_mutable_plan() { + + return _impl_.plan_.Mutable(GetArenaForAllocation()); +} +inline std::string* QueryRequest::release_plan() { + // @@protoc_insertion_point(field_release:greptime.v1.region.QueryRequest.plan) + return _impl_.plan_.Release(); +} +inline void QueryRequest::set_allocated_plan(std::string* plan) { + if (plan != nullptr) { + + } else { + + } + _impl_.plan_.SetAllocated(plan, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.plan_.IsDefault()) { + _impl_.plan_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.QueryRequest.plan) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// CreateRequest + +// uint64 region_id = 1; +inline void CreateRequest::clear_region_id() { + _impl_.region_id_ = uint64_t{0u}; +} +inline uint64_t CreateRequest::_internal_region_id() const { + return _impl_.region_id_; +} +inline uint64_t CreateRequest::region_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.region_id) + return _internal_region_id(); +} +inline void CreateRequest::_internal_set_region_id(uint64_t value) { + + _impl_.region_id_ = value; +} +inline void CreateRequest::set_region_id(uint64_t value) { + _internal_set_region_id(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.region_id) +} + +// string engine = 2; +inline void CreateRequest::clear_engine() { + _impl_.engine_.ClearToEmpty(); +} +inline const std::string& CreateRequest::engine() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.engine) + return _internal_engine(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateRequest::set_engine(ArgT0&& arg0, ArgT... args) { + + _impl_.engine_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.engine) +} +inline std::string* CreateRequest::mutable_engine() { + std::string* _s = _internal_mutable_engine(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.CreateRequest.engine) + return _s; +} +inline const std::string& CreateRequest::_internal_engine() const { + return _impl_.engine_.Get(); +} +inline void CreateRequest::_internal_set_engine(const std::string& value) { + + _impl_.engine_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateRequest::_internal_mutable_engine() { + + return _impl_.engine_.Mutable(GetArenaForAllocation()); +} +inline std::string* CreateRequest::release_engine() { + // @@protoc_insertion_point(field_release:greptime.v1.region.CreateRequest.engine) + return _impl_.engine_.Release(); +} +inline void CreateRequest::set_allocated_engine(std::string* engine) { + if (engine != nullptr) { + + } else { + + } + _impl_.engine_.SetAllocated(engine, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.engine_.IsDefault()) { + _impl_.engine_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.CreateRequest.engine) +} + +// repeated .greptime.v1.region.ColumnDef column_defs = 3; +inline int CreateRequest::_internal_column_defs_size() const { + return _impl_.column_defs_.size(); +} +inline int CreateRequest::column_defs_size() const { + return _internal_column_defs_size(); +} +inline void CreateRequest::clear_column_defs() { + _impl_.column_defs_.Clear(); +} +inline ::greptime::v1::region::ColumnDef* CreateRequest::mutable_column_defs(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.region.CreateRequest.column_defs) + return _impl_.column_defs_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::ColumnDef >* +CreateRequest::mutable_column_defs() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.region.CreateRequest.column_defs) + return &_impl_.column_defs_; +} +inline const ::greptime::v1::region::ColumnDef& CreateRequest::_internal_column_defs(int index) const { + return _impl_.column_defs_.Get(index); +} +inline const ::greptime::v1::region::ColumnDef& CreateRequest::column_defs(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.column_defs) + return _internal_column_defs(index); +} +inline ::greptime::v1::region::ColumnDef* CreateRequest::_internal_add_column_defs() { + return _impl_.column_defs_.Add(); +} +inline ::greptime::v1::region::ColumnDef* CreateRequest::add_column_defs() { + ::greptime::v1::region::ColumnDef* _add = _internal_add_column_defs(); + // @@protoc_insertion_point(field_add:greptime.v1.region.CreateRequest.column_defs) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::ColumnDef >& +CreateRequest::column_defs() const { + // @@protoc_insertion_point(field_list:greptime.v1.region.CreateRequest.column_defs) + return _impl_.column_defs_; +} + +// repeated uint32 primary_key = 4; +inline int CreateRequest::_internal_primary_key_size() const { + return _impl_.primary_key_.size(); +} +inline int CreateRequest::primary_key_size() const { + return _internal_primary_key_size(); +} +inline void CreateRequest::clear_primary_key() { + _impl_.primary_key_.Clear(); +} +inline uint32_t CreateRequest::_internal_primary_key(int index) const { + return _impl_.primary_key_.Get(index); +} +inline uint32_t CreateRequest::primary_key(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.primary_key) + return _internal_primary_key(index); +} +inline void CreateRequest::set_primary_key(int index, uint32_t value) { + _impl_.primary_key_.Set(index, value); + // @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.primary_key) +} +inline void CreateRequest::_internal_add_primary_key(uint32_t value) { + _impl_.primary_key_.Add(value); +} +inline void CreateRequest::add_primary_key(uint32_t value) { + _internal_add_primary_key(value); + // @@protoc_insertion_point(field_add:greptime.v1.region.CreateRequest.primary_key) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& +CreateRequest::_internal_primary_key() const { + return _impl_.primary_key_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >& +CreateRequest::primary_key() const { + // @@protoc_insertion_point(field_list:greptime.v1.region.CreateRequest.primary_key) + return _internal_primary_key(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* +CreateRequest::_internal_mutable_primary_key() { + return &_impl_.primary_key_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >* +CreateRequest::mutable_primary_key() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.region.CreateRequest.primary_key) + return _internal_mutable_primary_key(); +} + +// bool create_if_not_exists = 5; +inline void CreateRequest::clear_create_if_not_exists() { + _impl_.create_if_not_exists_ = false; +} +inline bool CreateRequest::_internal_create_if_not_exists() const { + return _impl_.create_if_not_exists_; +} +inline bool CreateRequest::create_if_not_exists() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.create_if_not_exists) + return _internal_create_if_not_exists(); +} +inline void CreateRequest::_internal_set_create_if_not_exists(bool value) { + + _impl_.create_if_not_exists_ = value; +} +inline void CreateRequest::set_create_if_not_exists(bool value) { + _internal_set_create_if_not_exists(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.create_if_not_exists) +} + +// string region_dir = 6; +inline void CreateRequest::clear_region_dir() { + _impl_.region_dir_.ClearToEmpty(); +} +inline const std::string& CreateRequest::region_dir() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.region_dir) + return _internal_region_dir(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateRequest::set_region_dir(ArgT0&& arg0, ArgT... args) { + + _impl_.region_dir_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.region_dir) +} +inline std::string* CreateRequest::mutable_region_dir() { + std::string* _s = _internal_mutable_region_dir(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.CreateRequest.region_dir) + return _s; +} +inline const std::string& CreateRequest::_internal_region_dir() const { + return _impl_.region_dir_.Get(); +} +inline void CreateRequest::_internal_set_region_dir(const std::string& value) { + + _impl_.region_dir_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateRequest::_internal_mutable_region_dir() { + + return _impl_.region_dir_.Mutable(GetArenaForAllocation()); +} +inline std::string* CreateRequest::release_region_dir() { + // @@protoc_insertion_point(field_release:greptime.v1.region.CreateRequest.region_dir) + return _impl_.region_dir_.Release(); +} +inline void CreateRequest::set_allocated_region_dir(std::string* region_dir) { + if (region_dir != nullptr) { + + } else { + + } + _impl_.region_dir_.SetAllocated(region_dir, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.region_dir_.IsDefault()) { + _impl_.region_dir_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.CreateRequest.region_dir) +} + +// map options = 7; +inline int CreateRequest::_internal_options_size() const { + return _impl_.options_.size(); +} +inline int CreateRequest::options_size() const { + return _internal_options_size(); +} +inline void CreateRequest::clear_options() { + _impl_.options_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +CreateRequest::_internal_options() const { + return _impl_.options_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +CreateRequest::options() const { + // @@protoc_insertion_point(field_map:greptime.v1.region.CreateRequest.options) + return _internal_options(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +CreateRequest::_internal_mutable_options() { + return _impl_.options_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +CreateRequest::mutable_options() { + // @@protoc_insertion_point(field_mutable_map:greptime.v1.region.CreateRequest.options) + return _internal_mutable_options(); +} + +// ------------------------------------------------------------------- + +// DropRequest + +// uint64 region_id = 1; +inline void DropRequest::clear_region_id() { + _impl_.region_id_ = uint64_t{0u}; +} +inline uint64_t DropRequest::_internal_region_id() const { + return _impl_.region_id_; +} +inline uint64_t DropRequest::region_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.DropRequest.region_id) + return _internal_region_id(); +} +inline void DropRequest::_internal_set_region_id(uint64_t value) { + + _impl_.region_id_ = value; +} +inline void DropRequest::set_region_id(uint64_t value) { + _internal_set_region_id(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.DropRequest.region_id) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// OpenRequest + +// uint64 region_id = 1; +inline void OpenRequest::clear_region_id() { + _impl_.region_id_ = uint64_t{0u}; +} +inline uint64_t OpenRequest::_internal_region_id() const { + return _impl_.region_id_; +} +inline uint64_t OpenRequest::region_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.OpenRequest.region_id) + return _internal_region_id(); +} +inline void OpenRequest::_internal_set_region_id(uint64_t value) { + + _impl_.region_id_ = value; +} +inline void OpenRequest::set_region_id(uint64_t value) { + _internal_set_region_id(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.OpenRequest.region_id) +} + +// string engine = 2; +inline void OpenRequest::clear_engine() { + _impl_.engine_.ClearToEmpty(); +} +inline const std::string& OpenRequest::engine() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.OpenRequest.engine) + return _internal_engine(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void OpenRequest::set_engine(ArgT0&& arg0, ArgT... args) { + + _impl_.engine_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.region.OpenRequest.engine) +} +inline std::string* OpenRequest::mutable_engine() { + std::string* _s = _internal_mutable_engine(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.OpenRequest.engine) + return _s; +} +inline const std::string& OpenRequest::_internal_engine() const { + return _impl_.engine_.Get(); +} +inline void OpenRequest::_internal_set_engine(const std::string& value) { + + _impl_.engine_.Set(value, GetArenaForAllocation()); +} +inline std::string* OpenRequest::_internal_mutable_engine() { + + return _impl_.engine_.Mutable(GetArenaForAllocation()); +} +inline std::string* OpenRequest::release_engine() { + // @@protoc_insertion_point(field_release:greptime.v1.region.OpenRequest.engine) + return _impl_.engine_.Release(); +} +inline void OpenRequest::set_allocated_engine(std::string* engine) { + if (engine != nullptr) { + + } else { + + } + _impl_.engine_.SetAllocated(engine, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.engine_.IsDefault()) { + _impl_.engine_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.engine) +} + +// string region_dir = 3; +inline void OpenRequest::clear_region_dir() { + _impl_.region_dir_.ClearToEmpty(); +} +inline const std::string& OpenRequest::region_dir() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.OpenRequest.region_dir) + return _internal_region_dir(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void OpenRequest::set_region_dir(ArgT0&& arg0, ArgT... args) { + + _impl_.region_dir_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.region.OpenRequest.region_dir) +} +inline std::string* OpenRequest::mutable_region_dir() { + std::string* _s = _internal_mutable_region_dir(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.OpenRequest.region_dir) + return _s; +} +inline const std::string& OpenRequest::_internal_region_dir() const { + return _impl_.region_dir_.Get(); +} +inline void OpenRequest::_internal_set_region_dir(const std::string& value) { + + _impl_.region_dir_.Set(value, GetArenaForAllocation()); +} +inline std::string* OpenRequest::_internal_mutable_region_dir() { + + return _impl_.region_dir_.Mutable(GetArenaForAllocation()); +} +inline std::string* OpenRequest::release_region_dir() { + // @@protoc_insertion_point(field_release:greptime.v1.region.OpenRequest.region_dir) + return _impl_.region_dir_.Release(); +} +inline void OpenRequest::set_allocated_region_dir(std::string* region_dir) { + if (region_dir != nullptr) { + + } else { + + } + _impl_.region_dir_.SetAllocated(region_dir, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.region_dir_.IsDefault()) { + _impl_.region_dir_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.region_dir) +} + +// map options = 4; +inline int OpenRequest::_internal_options_size() const { + return _impl_.options_.size(); +} +inline int OpenRequest::options_size() const { + return _internal_options_size(); +} +inline void OpenRequest::clear_options() { + _impl_.options_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +OpenRequest::_internal_options() const { + return _impl_.options_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +OpenRequest::options() const { + // @@protoc_insertion_point(field_map:greptime.v1.region.OpenRequest.options) + return _internal_options(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +OpenRequest::_internal_mutable_options() { + return _impl_.options_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +OpenRequest::mutable_options() { + // @@protoc_insertion_point(field_mutable_map:greptime.v1.region.OpenRequest.options) + return _internal_mutable_options(); +} + +// ------------------------------------------------------------------- + +// CloseRequest + +// uint64 region_id = 1; +inline void CloseRequest::clear_region_id() { + _impl_.region_id_ = uint64_t{0u}; +} +inline uint64_t CloseRequest::_internal_region_id() const { + return _impl_.region_id_; +} +inline uint64_t CloseRequest::region_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.CloseRequest.region_id) + return _internal_region_id(); +} +inline void CloseRequest::_internal_set_region_id(uint64_t value) { + + _impl_.region_id_ = value; +} +inline void CloseRequest::set_region_id(uint64_t value) { + _internal_set_region_id(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.CloseRequest.region_id) +} + +// ------------------------------------------------------------------- + +// AlterRequest + +// uint64 region_id = 1; +inline void AlterRequest::clear_region_id() { + _impl_.region_id_ = uint64_t{0u}; +} +inline uint64_t AlterRequest::_internal_region_id() const { + return _impl_.region_id_; +} +inline uint64_t AlterRequest::region_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.region_id) + return _internal_region_id(); +} +inline void AlterRequest::_internal_set_region_id(uint64_t value) { + + _impl_.region_id_ = value; +} +inline void AlterRequest::set_region_id(uint64_t value) { + _internal_set_region_id(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.AlterRequest.region_id) +} + +// ------------------------------------------------------------------- + +// FlushRequest + +// uint64 region_id = 1; +inline void FlushRequest::clear_region_id() { + _impl_.region_id_ = uint64_t{0u}; +} +inline uint64_t FlushRequest::_internal_region_id() const { + return _impl_.region_id_; +} +inline uint64_t FlushRequest::region_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.FlushRequest.region_id) + return _internal_region_id(); +} +inline void FlushRequest::_internal_set_region_id(uint64_t value) { + + _impl_.region_id_ = value; +} +inline void FlushRequest::set_region_id(uint64_t value) { + _internal_set_region_id(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.FlushRequest.region_id) +} + +// ------------------------------------------------------------------- + +// CompactRequest + +// uint64 region_id = 1; +inline void CompactRequest::clear_region_id() { + _impl_.region_id_ = uint64_t{0u}; +} +inline uint64_t CompactRequest::_internal_region_id() const { + return _impl_.region_id_; +} +inline uint64_t CompactRequest::region_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.CompactRequest.region_id) + return _internal_region_id(); +} +inline void CompactRequest::_internal_set_region_id(uint64_t value) { + + _impl_.region_id_ = value; +} +inline void CompactRequest::set_region_id(uint64_t value) { + _internal_set_region_id(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.CompactRequest.region_id) +} + +// ------------------------------------------------------------------- + +// ColumnDef + +// string name = 1; +inline void ColumnDef::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& ColumnDef::name() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.ColumnDef.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ColumnDef::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.region.ColumnDef.name) +} +inline std::string* ColumnDef::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.ColumnDef.name) + return _s; +} +inline const std::string& ColumnDef::_internal_name() const { + return _impl_.name_.Get(); +} +inline void ColumnDef::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ColumnDef::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ColumnDef::release_name() { + // @@protoc_insertion_point(field_release:greptime.v1.region.ColumnDef.name) + return _impl_.name_.Release(); +} +inline void ColumnDef::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.region.ColumnDef.name) +} + +// uint32 column_id = 2; +inline void ColumnDef::clear_column_id() { + _impl_.column_id_ = 0u; +} +inline uint32_t ColumnDef::_internal_column_id() const { + return _impl_.column_id_; +} +inline uint32_t ColumnDef::column_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.ColumnDef.column_id) + return _internal_column_id(); +} +inline void ColumnDef::_internal_set_column_id(uint32_t value) { + + _impl_.column_id_ = value; +} +inline void ColumnDef::set_column_id(uint32_t value) { + _internal_set_column_id(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.ColumnDef.column_id) +} + +// .greptime.v1.ColumnDataType datatype = 3; +inline void ColumnDef::clear_datatype() { + _impl_.datatype_ = 0; +} +inline ::greptime::v1::ColumnDataType ColumnDef::_internal_datatype() const { + return static_cast< ::greptime::v1::ColumnDataType >(_impl_.datatype_); +} +inline ::greptime::v1::ColumnDataType ColumnDef::datatype() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.ColumnDef.datatype) + return _internal_datatype(); +} +inline void ColumnDef::_internal_set_datatype(::greptime::v1::ColumnDataType value) { + + _impl_.datatype_ = value; +} +inline void ColumnDef::set_datatype(::greptime::v1::ColumnDataType value) { + _internal_set_datatype(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.ColumnDef.datatype) +} + +// bool is_nullable = 4; +inline void ColumnDef::clear_is_nullable() { + _impl_.is_nullable_ = false; +} +inline bool ColumnDef::_internal_is_nullable() const { + return _impl_.is_nullable_; +} +inline bool ColumnDef::is_nullable() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.ColumnDef.is_nullable) + return _internal_is_nullable(); +} +inline void ColumnDef::_internal_set_is_nullable(bool value) { + + _impl_.is_nullable_ = value; +} +inline void ColumnDef::set_is_nullable(bool value) { + _internal_set_is_nullable(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.ColumnDef.is_nullable) +} + +// bytes default_constraint = 5; +inline void ColumnDef::clear_default_constraint() { + _impl_.default_constraint_.ClearToEmpty(); +} +inline const std::string& ColumnDef::default_constraint() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.ColumnDef.default_constraint) + return _internal_default_constraint(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ColumnDef::set_default_constraint(ArgT0&& arg0, ArgT... args) { + + _impl_.default_constraint_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.region.ColumnDef.default_constraint) +} +inline std::string* ColumnDef::mutable_default_constraint() { + std::string* _s = _internal_mutable_default_constraint(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.ColumnDef.default_constraint) + return _s; +} +inline const std::string& ColumnDef::_internal_default_constraint() const { + return _impl_.default_constraint_.Get(); +} +inline void ColumnDef::_internal_set_default_constraint(const std::string& value) { + + _impl_.default_constraint_.Set(value, GetArenaForAllocation()); +} +inline std::string* ColumnDef::_internal_mutable_default_constraint() { + + return _impl_.default_constraint_.Mutable(GetArenaForAllocation()); +} +inline std::string* ColumnDef::release_default_constraint() { + // @@protoc_insertion_point(field_release:greptime.v1.region.ColumnDef.default_constraint) + return _impl_.default_constraint_.Release(); +} +inline void ColumnDef::set_allocated_default_constraint(std::string* default_constraint) { + if (default_constraint != nullptr) { + + } else { + + } + _impl_.default_constraint_.SetAllocated(default_constraint, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.default_constraint_.IsDefault()) { + _impl_.default_constraint_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.ColumnDef.default_constraint) +} + +// .greptime.v1.SemanticType semantic_type = 6; +inline void ColumnDef::clear_semantic_type() { + _impl_.semantic_type_ = 0; +} +inline ::greptime::v1::SemanticType ColumnDef::_internal_semantic_type() const { + return static_cast< ::greptime::v1::SemanticType >(_impl_.semantic_type_); +} +inline ::greptime::v1::SemanticType ColumnDef::semantic_type() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.ColumnDef.semantic_type) + return _internal_semantic_type(); +} +inline void ColumnDef::_internal_set_semantic_type(::greptime::v1::SemanticType value) { + + _impl_.semantic_type_ = value; +} +inline void ColumnDef::set_semantic_type(::greptime::v1::SemanticType value) { + _internal_set_semantic_type(value); + // @@protoc_insertion_point(field_set:greptime.v1.region.ColumnDef.semantic_type) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace region +} // namespace v1 +} // namespace greptime + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fregion_2fserver_2eproto diff --git a/go/greptime/v1/common.pb.go b/go/greptime/v1/common.pb.go index 8ffdc6d6..016d956b 100644 --- a/go/greptime/v1/common.pb.go +++ b/go/greptime/v1/common.pb.go @@ -674,6 +674,7 @@ func (x *FlightMetadata) GetAffectedRows() *AffectedRows { return nil } +// TODO: deprecate this, and use the `ColumnDef` in region_server.proto instead type ColumnDef struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/java/src/main/java/io/greptime/v1/Common.java b/java/src/main/java/io/greptime/v1/Common.java index 46b4ee30..90c09d74 100644 --- a/java/src/main/java/io/greptime/v1/Common.java +++ b/java/src/main/java/io/greptime/v1/Common.java @@ -6643,6 +6643,10 @@ public interface ColumnDefOrBuilder extends com.google.protobuf.ByteString getDefaultConstraint(); } /** + *
+   * TODO: deprecate this, and use the `ColumnDef` in region_server.proto instead
+   * 
+ * * Protobuf type {@code greptime.v1.ColumnDef} */ public static final class ColumnDef extends @@ -7013,6 +7017,10 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * TODO: deprecate this, and use the `ColumnDef` in region_server.proto instead
+     * 
+ * * Protobuf type {@code greptime.v1.ColumnDef} */ public static final class Builder extends diff --git a/java/src/main/java/io/greptime/v1/region/Server.java b/java/src/main/java/io/greptime/v1/region/Server.java new file mode 100644 index 00000000..b848bc67 --- /dev/null +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -0,0 +1,14439 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/region/server.proto + +package io.greptime.v1.region; + +public final class Server { + private Server() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface RegionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.RegionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.RequestHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.RequestHeader header = 1; + * @return The header. + */ + io.greptime.v1.Common.RequestHeader getHeader(); + /** + * .greptime.v1.RequestHeader header = 1; + */ + io.greptime.v1.Common.RequestHeaderOrBuilder getHeaderOrBuilder(); + + /** + * .greptime.v1.region.InsertRequests inserts = 3; + * @return Whether the inserts field is set. + */ + boolean hasInserts(); + /** + * .greptime.v1.region.InsertRequests inserts = 3; + * @return The inserts. + */ + io.greptime.v1.region.Server.InsertRequests getInserts(); + /** + * .greptime.v1.region.InsertRequests inserts = 3; + */ + io.greptime.v1.region.Server.InsertRequestsOrBuilder getInsertsOrBuilder(); + + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + * @return Whether the deletes field is set. + */ + boolean hasDeletes(); + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + * @return The deletes. + */ + io.greptime.v1.region.Server.DeleteRequests getDeletes(); + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + */ + io.greptime.v1.region.Server.DeleteRequestsOrBuilder getDeletesOrBuilder(); + + /** + * .greptime.v1.region.CreateRequest create = 5; + * @return Whether the create field is set. + */ + boolean hasCreate(); + /** + * .greptime.v1.region.CreateRequest create = 5; + * @return The create. + */ + io.greptime.v1.region.Server.CreateRequest getCreate(); + /** + * .greptime.v1.region.CreateRequest create = 5; + */ + io.greptime.v1.region.Server.CreateRequestOrBuilder getCreateOrBuilder(); + + /** + * .greptime.v1.region.DropRequest drop = 6; + * @return Whether the drop field is set. + */ + boolean hasDrop(); + /** + * .greptime.v1.region.DropRequest drop = 6; + * @return The drop. + */ + io.greptime.v1.region.Server.DropRequest getDrop(); + /** + * .greptime.v1.region.DropRequest drop = 6; + */ + io.greptime.v1.region.Server.DropRequestOrBuilder getDropOrBuilder(); + + /** + * .greptime.v1.region.OpenRequest open = 7; + * @return Whether the open field is set. + */ + boolean hasOpen(); + /** + * .greptime.v1.region.OpenRequest open = 7; + * @return The open. + */ + io.greptime.v1.region.Server.OpenRequest getOpen(); + /** + * .greptime.v1.region.OpenRequest open = 7; + */ + io.greptime.v1.region.Server.OpenRequestOrBuilder getOpenOrBuilder(); + + /** + * .greptime.v1.region.CloseRequest close = 8; + * @return Whether the close field is set. + */ + boolean hasClose(); + /** + * .greptime.v1.region.CloseRequest close = 8; + * @return The close. + */ + io.greptime.v1.region.Server.CloseRequest getClose(); + /** + * .greptime.v1.region.CloseRequest close = 8; + */ + io.greptime.v1.region.Server.CloseRequestOrBuilder getCloseOrBuilder(); + + /** + * .greptime.v1.region.AlterRequest alter = 9; + * @return Whether the alter field is set. + */ + boolean hasAlter(); + /** + * .greptime.v1.region.AlterRequest alter = 9; + * @return The alter. + */ + io.greptime.v1.region.Server.AlterRequest getAlter(); + /** + * .greptime.v1.region.AlterRequest alter = 9; + */ + io.greptime.v1.region.Server.AlterRequestOrBuilder getAlterOrBuilder(); + + /** + * .greptime.v1.region.FlushRequest flush = 10; + * @return Whether the flush field is set. + */ + boolean hasFlush(); + /** + * .greptime.v1.region.FlushRequest flush = 10; + * @return The flush. + */ + io.greptime.v1.region.Server.FlushRequest getFlush(); + /** + * .greptime.v1.region.FlushRequest flush = 10; + */ + io.greptime.v1.region.Server.FlushRequestOrBuilder getFlushOrBuilder(); + + /** + * .greptime.v1.region.CompactRequest compact = 11; + * @return Whether the compact field is set. + */ + boolean hasCompact(); + /** + * .greptime.v1.region.CompactRequest compact = 11; + * @return The compact. + */ + io.greptime.v1.region.Server.CompactRequest getCompact(); + /** + * .greptime.v1.region.CompactRequest compact = 11; + */ + io.greptime.v1.region.Server.CompactRequestOrBuilder getCompactOrBuilder(); + + public io.greptime.v1.region.Server.RegionRequest.RequestCase getRequestCase(); + } + /** + * Protobuf type {@code greptime.v1.region.RegionRequest} + */ + public static final class RegionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.RegionRequest) + RegionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RegionRequest.newBuilder() to construct. + private RegionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RegionRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RegionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RegionRequest( + 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: { + io.greptime.v1.Common.RequestHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(io.greptime.v1.Common.RequestHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + io.greptime.v1.region.Server.InsertRequests.Builder subBuilder = null; + if (requestCase_ == 3) { + subBuilder = ((io.greptime.v1.region.Server.InsertRequests) request_).toBuilder(); + } + request_ = + input.readMessage(io.greptime.v1.region.Server.InsertRequests.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.region.Server.InsertRequests) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 3; + break; + } + case 34: { + io.greptime.v1.region.Server.DeleteRequests.Builder subBuilder = null; + if (requestCase_ == 4) { + subBuilder = ((io.greptime.v1.region.Server.DeleteRequests) request_).toBuilder(); + } + request_ = + input.readMessage(io.greptime.v1.region.Server.DeleteRequests.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.region.Server.DeleteRequests) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 4; + break; + } + case 42: { + io.greptime.v1.region.Server.CreateRequest.Builder subBuilder = null; + if (requestCase_ == 5) { + subBuilder = ((io.greptime.v1.region.Server.CreateRequest) request_).toBuilder(); + } + request_ = + input.readMessage(io.greptime.v1.region.Server.CreateRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.region.Server.CreateRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 5; + break; + } + case 50: { + io.greptime.v1.region.Server.DropRequest.Builder subBuilder = null; + if (requestCase_ == 6) { + subBuilder = ((io.greptime.v1.region.Server.DropRequest) request_).toBuilder(); + } + request_ = + input.readMessage(io.greptime.v1.region.Server.DropRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.region.Server.DropRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 6; + break; + } + case 58: { + io.greptime.v1.region.Server.OpenRequest.Builder subBuilder = null; + if (requestCase_ == 7) { + subBuilder = ((io.greptime.v1.region.Server.OpenRequest) request_).toBuilder(); + } + request_ = + input.readMessage(io.greptime.v1.region.Server.OpenRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.region.Server.OpenRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 7; + break; + } + case 66: { + io.greptime.v1.region.Server.CloseRequest.Builder subBuilder = null; + if (requestCase_ == 8) { + subBuilder = ((io.greptime.v1.region.Server.CloseRequest) request_).toBuilder(); + } + request_ = + input.readMessage(io.greptime.v1.region.Server.CloseRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.region.Server.CloseRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 8; + break; + } + case 74: { + io.greptime.v1.region.Server.AlterRequest.Builder subBuilder = null; + if (requestCase_ == 9) { + subBuilder = ((io.greptime.v1.region.Server.AlterRequest) request_).toBuilder(); + } + request_ = + input.readMessage(io.greptime.v1.region.Server.AlterRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.region.Server.AlterRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 9; + break; + } + case 82: { + io.greptime.v1.region.Server.FlushRequest.Builder subBuilder = null; + if (requestCase_ == 10) { + subBuilder = ((io.greptime.v1.region.Server.FlushRequest) request_).toBuilder(); + } + request_ = + input.readMessage(io.greptime.v1.region.Server.FlushRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.region.Server.FlushRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 10; + break; + } + case 90: { + io.greptime.v1.region.Server.CompactRequest.Builder subBuilder = null; + if (requestCase_ == 11) { + subBuilder = ((io.greptime.v1.region.Server.CompactRequest) request_).toBuilder(); + } + request_ = + input.readMessage(io.greptime.v1.region.Server.CompactRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.region.Server.CompactRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 11; + 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 io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.RegionRequest.class, io.greptime.v1.region.Server.RegionRequest.Builder.class); + } + + private int requestCase_ = 0; + private java.lang.Object request_; + public enum RequestCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INSERTS(3), + DELETES(4), + CREATE(5), + DROP(6), + OPEN(7), + CLOSE(8), + ALTER(9), + FLUSH(10), + COMPACT(11), + REQUEST_NOT_SET(0); + private final int value; + private RequestCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RequestCase valueOf(int value) { + return forNumber(value); + } + + public static RequestCase forNumber(int value) { + switch (value) { + case 3: return INSERTS; + case 4: return DELETES; + case 5: return CREATE; + case 6: return DROP; + case 7: return OPEN; + case 8: return CLOSE; + case 9: return ALTER; + case 10: return FLUSH; + case 11: return COMPACT; + case 0: return REQUEST_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private io.greptime.v1.Common.RequestHeader header_; + /** + * .greptime.v1.RequestHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.RequestHeader header = 1; + * @return The header. + */ + @java.lang.Override + public io.greptime.v1.Common.RequestHeader getHeader() { + return header_ == null ? io.greptime.v1.Common.RequestHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.RequestHeader header = 1; + */ + @java.lang.Override + public io.greptime.v1.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int INSERTS_FIELD_NUMBER = 3; + /** + * .greptime.v1.region.InsertRequests inserts = 3; + * @return Whether the inserts field is set. + */ + @java.lang.Override + public boolean hasInserts() { + return requestCase_ == 3; + } + /** + * .greptime.v1.region.InsertRequests inserts = 3; + * @return The inserts. + */ + @java.lang.Override + public io.greptime.v1.region.Server.InsertRequests getInserts() { + if (requestCase_ == 3) { + return (io.greptime.v1.region.Server.InsertRequests) request_; + } + return io.greptime.v1.region.Server.InsertRequests.getDefaultInstance(); + } + /** + * .greptime.v1.region.InsertRequests inserts = 3; + */ + @java.lang.Override + public io.greptime.v1.region.Server.InsertRequestsOrBuilder getInsertsOrBuilder() { + if (requestCase_ == 3) { + return (io.greptime.v1.region.Server.InsertRequests) request_; + } + return io.greptime.v1.region.Server.InsertRequests.getDefaultInstance(); + } + + public static final int DELETES_FIELD_NUMBER = 4; + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + * @return Whether the deletes field is set. + */ + @java.lang.Override + public boolean hasDeletes() { + return requestCase_ == 4; + } + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + * @return The deletes. + */ + @java.lang.Override + public io.greptime.v1.region.Server.DeleteRequests getDeletes() { + if (requestCase_ == 4) { + return (io.greptime.v1.region.Server.DeleteRequests) request_; + } + return io.greptime.v1.region.Server.DeleteRequests.getDefaultInstance(); + } + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + */ + @java.lang.Override + public io.greptime.v1.region.Server.DeleteRequestsOrBuilder getDeletesOrBuilder() { + if (requestCase_ == 4) { + return (io.greptime.v1.region.Server.DeleteRequests) request_; + } + return io.greptime.v1.region.Server.DeleteRequests.getDefaultInstance(); + } + + public static final int CREATE_FIELD_NUMBER = 5; + /** + * .greptime.v1.region.CreateRequest create = 5; + * @return Whether the create field is set. + */ + @java.lang.Override + public boolean hasCreate() { + return requestCase_ == 5; + } + /** + * .greptime.v1.region.CreateRequest create = 5; + * @return The create. + */ + @java.lang.Override + public io.greptime.v1.region.Server.CreateRequest getCreate() { + if (requestCase_ == 5) { + return (io.greptime.v1.region.Server.CreateRequest) request_; + } + return io.greptime.v1.region.Server.CreateRequest.getDefaultInstance(); + } + /** + * .greptime.v1.region.CreateRequest create = 5; + */ + @java.lang.Override + public io.greptime.v1.region.Server.CreateRequestOrBuilder getCreateOrBuilder() { + if (requestCase_ == 5) { + return (io.greptime.v1.region.Server.CreateRequest) request_; + } + return io.greptime.v1.region.Server.CreateRequest.getDefaultInstance(); + } + + public static final int DROP_FIELD_NUMBER = 6; + /** + * .greptime.v1.region.DropRequest drop = 6; + * @return Whether the drop field is set. + */ + @java.lang.Override + public boolean hasDrop() { + return requestCase_ == 6; + } + /** + * .greptime.v1.region.DropRequest drop = 6; + * @return The drop. + */ + @java.lang.Override + public io.greptime.v1.region.Server.DropRequest getDrop() { + if (requestCase_ == 6) { + return (io.greptime.v1.region.Server.DropRequest) request_; + } + return io.greptime.v1.region.Server.DropRequest.getDefaultInstance(); + } + /** + * .greptime.v1.region.DropRequest drop = 6; + */ + @java.lang.Override + public io.greptime.v1.region.Server.DropRequestOrBuilder getDropOrBuilder() { + if (requestCase_ == 6) { + return (io.greptime.v1.region.Server.DropRequest) request_; + } + return io.greptime.v1.region.Server.DropRequest.getDefaultInstance(); + } + + public static final int OPEN_FIELD_NUMBER = 7; + /** + * .greptime.v1.region.OpenRequest open = 7; + * @return Whether the open field is set. + */ + @java.lang.Override + public boolean hasOpen() { + return requestCase_ == 7; + } + /** + * .greptime.v1.region.OpenRequest open = 7; + * @return The open. + */ + @java.lang.Override + public io.greptime.v1.region.Server.OpenRequest getOpen() { + if (requestCase_ == 7) { + return (io.greptime.v1.region.Server.OpenRequest) request_; + } + return io.greptime.v1.region.Server.OpenRequest.getDefaultInstance(); + } + /** + * .greptime.v1.region.OpenRequest open = 7; + */ + @java.lang.Override + public io.greptime.v1.region.Server.OpenRequestOrBuilder getOpenOrBuilder() { + if (requestCase_ == 7) { + return (io.greptime.v1.region.Server.OpenRequest) request_; + } + return io.greptime.v1.region.Server.OpenRequest.getDefaultInstance(); + } + + public static final int CLOSE_FIELD_NUMBER = 8; + /** + * .greptime.v1.region.CloseRequest close = 8; + * @return Whether the close field is set. + */ + @java.lang.Override + public boolean hasClose() { + return requestCase_ == 8; + } + /** + * .greptime.v1.region.CloseRequest close = 8; + * @return The close. + */ + @java.lang.Override + public io.greptime.v1.region.Server.CloseRequest getClose() { + if (requestCase_ == 8) { + return (io.greptime.v1.region.Server.CloseRequest) request_; + } + return io.greptime.v1.region.Server.CloseRequest.getDefaultInstance(); + } + /** + * .greptime.v1.region.CloseRequest close = 8; + */ + @java.lang.Override + public io.greptime.v1.region.Server.CloseRequestOrBuilder getCloseOrBuilder() { + if (requestCase_ == 8) { + return (io.greptime.v1.region.Server.CloseRequest) request_; + } + return io.greptime.v1.region.Server.CloseRequest.getDefaultInstance(); + } + + public static final int ALTER_FIELD_NUMBER = 9; + /** + * .greptime.v1.region.AlterRequest alter = 9; + * @return Whether the alter field is set. + */ + @java.lang.Override + public boolean hasAlter() { + return requestCase_ == 9; + } + /** + * .greptime.v1.region.AlterRequest alter = 9; + * @return The alter. + */ + @java.lang.Override + public io.greptime.v1.region.Server.AlterRequest getAlter() { + if (requestCase_ == 9) { + return (io.greptime.v1.region.Server.AlterRequest) request_; + } + return io.greptime.v1.region.Server.AlterRequest.getDefaultInstance(); + } + /** + * .greptime.v1.region.AlterRequest alter = 9; + */ + @java.lang.Override + public io.greptime.v1.region.Server.AlterRequestOrBuilder getAlterOrBuilder() { + if (requestCase_ == 9) { + return (io.greptime.v1.region.Server.AlterRequest) request_; + } + return io.greptime.v1.region.Server.AlterRequest.getDefaultInstance(); + } + + public static final int FLUSH_FIELD_NUMBER = 10; + /** + * .greptime.v1.region.FlushRequest flush = 10; + * @return Whether the flush field is set. + */ + @java.lang.Override + public boolean hasFlush() { + return requestCase_ == 10; + } + /** + * .greptime.v1.region.FlushRequest flush = 10; + * @return The flush. + */ + @java.lang.Override + public io.greptime.v1.region.Server.FlushRequest getFlush() { + if (requestCase_ == 10) { + return (io.greptime.v1.region.Server.FlushRequest) request_; + } + return io.greptime.v1.region.Server.FlushRequest.getDefaultInstance(); + } + /** + * .greptime.v1.region.FlushRequest flush = 10; + */ + @java.lang.Override + public io.greptime.v1.region.Server.FlushRequestOrBuilder getFlushOrBuilder() { + if (requestCase_ == 10) { + return (io.greptime.v1.region.Server.FlushRequest) request_; + } + return io.greptime.v1.region.Server.FlushRequest.getDefaultInstance(); + } + + public static final int COMPACT_FIELD_NUMBER = 11; + /** + * .greptime.v1.region.CompactRequest compact = 11; + * @return Whether the compact field is set. + */ + @java.lang.Override + public boolean hasCompact() { + return requestCase_ == 11; + } + /** + * .greptime.v1.region.CompactRequest compact = 11; + * @return The compact. + */ + @java.lang.Override + public io.greptime.v1.region.Server.CompactRequest getCompact() { + if (requestCase_ == 11) { + return (io.greptime.v1.region.Server.CompactRequest) request_; + } + return io.greptime.v1.region.Server.CompactRequest.getDefaultInstance(); + } + /** + * .greptime.v1.region.CompactRequest compact = 11; + */ + @java.lang.Override + public io.greptime.v1.region.Server.CompactRequestOrBuilder getCompactOrBuilder() { + if (requestCase_ == 11) { + return (io.greptime.v1.region.Server.CompactRequest) request_; + } + return io.greptime.v1.region.Server.CompactRequest.getDefaultInstance(); + } + + 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 (requestCase_ == 3) { + output.writeMessage(3, (io.greptime.v1.region.Server.InsertRequests) request_); + } + if (requestCase_ == 4) { + output.writeMessage(4, (io.greptime.v1.region.Server.DeleteRequests) request_); + } + if (requestCase_ == 5) { + output.writeMessage(5, (io.greptime.v1.region.Server.CreateRequest) request_); + } + if (requestCase_ == 6) { + output.writeMessage(6, (io.greptime.v1.region.Server.DropRequest) request_); + } + if (requestCase_ == 7) { + output.writeMessage(7, (io.greptime.v1.region.Server.OpenRequest) request_); + } + if (requestCase_ == 8) { + output.writeMessage(8, (io.greptime.v1.region.Server.CloseRequest) request_); + } + if (requestCase_ == 9) { + output.writeMessage(9, (io.greptime.v1.region.Server.AlterRequest) request_); + } + if (requestCase_ == 10) { + output.writeMessage(10, (io.greptime.v1.region.Server.FlushRequest) request_); + } + if (requestCase_ == 11) { + output.writeMessage(11, (io.greptime.v1.region.Server.CompactRequest) request_); + } + 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 (requestCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.greptime.v1.region.Server.InsertRequests) request_); + } + if (requestCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (io.greptime.v1.region.Server.DeleteRequests) request_); + } + if (requestCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (io.greptime.v1.region.Server.CreateRequest) request_); + } + if (requestCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (io.greptime.v1.region.Server.DropRequest) request_); + } + if (requestCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (io.greptime.v1.region.Server.OpenRequest) request_); + } + if (requestCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (io.greptime.v1.region.Server.CloseRequest) request_); + } + if (requestCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (io.greptime.v1.region.Server.AlterRequest) request_); + } + if (requestCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (io.greptime.v1.region.Server.FlushRequest) request_); + } + if (requestCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (io.greptime.v1.region.Server.CompactRequest) request_); + } + 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 io.greptime.v1.region.Server.RegionRequest)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.RegionRequest other = (io.greptime.v1.region.Server.RegionRequest) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getRequestCase().equals(other.getRequestCase())) return false; + switch (requestCase_) { + case 3: + if (!getInserts() + .equals(other.getInserts())) return false; + break; + case 4: + if (!getDeletes() + .equals(other.getDeletes())) return false; + break; + case 5: + if (!getCreate() + .equals(other.getCreate())) return false; + break; + case 6: + if (!getDrop() + .equals(other.getDrop())) return false; + break; + case 7: + if (!getOpen() + .equals(other.getOpen())) return false; + break; + case 8: + if (!getClose() + .equals(other.getClose())) return false; + break; + case 9: + if (!getAlter() + .equals(other.getAlter())) return false; + break; + case 10: + if (!getFlush() + .equals(other.getFlush())) return false; + break; + case 11: + if (!getCompact() + .equals(other.getCompact())) return false; + break; + case 0: + default: + } + 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(); + } + switch (requestCase_) { + case 3: + hash = (37 * hash) + INSERTS_FIELD_NUMBER; + hash = (53 * hash) + getInserts().hashCode(); + break; + case 4: + hash = (37 * hash) + DELETES_FIELD_NUMBER; + hash = (53 * hash) + getDeletes().hashCode(); + break; + case 5: + hash = (37 * hash) + CREATE_FIELD_NUMBER; + hash = (53 * hash) + getCreate().hashCode(); + break; + case 6: + hash = (37 * hash) + DROP_FIELD_NUMBER; + hash = (53 * hash) + getDrop().hashCode(); + break; + case 7: + hash = (37 * hash) + OPEN_FIELD_NUMBER; + hash = (53 * hash) + getOpen().hashCode(); + break; + case 8: + hash = (37 * hash) + CLOSE_FIELD_NUMBER; + hash = (53 * hash) + getClose().hashCode(); + break; + case 9: + hash = (37 * hash) + ALTER_FIELD_NUMBER; + hash = (53 * hash) + getAlter().hashCode(); + break; + case 10: + hash = (37 * hash) + FLUSH_FIELD_NUMBER; + hash = (53 * hash) + getFlush().hashCode(); + break; + case 11: + hash = (37 * hash) + COMPACT_FIELD_NUMBER; + hash = (53 * hash) + getCompact().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.RegionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.RegionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.RegionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.RegionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.RegionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.RegionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.RegionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.RegionRequest 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 io.greptime.v1.region.Server.RegionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.RegionRequest 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 io.greptime.v1.region.Server.RegionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.RegionRequest 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(io.greptime.v1.region.Server.RegionRequest 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.region.RegionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.RegionRequest) + io.greptime.v1.region.Server.RegionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.RegionRequest.class, io.greptime.v1.region.Server.RegionRequest.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.RegionRequest.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; + } + requestCase_ = 0; + request_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.RegionRequest getDefaultInstanceForType() { + return io.greptime.v1.region.Server.RegionRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.RegionRequest build() { + io.greptime.v1.region.Server.RegionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.RegionRequest buildPartial() { + io.greptime.v1.region.Server.RegionRequest result = new io.greptime.v1.region.Server.RegionRequest(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (requestCase_ == 3) { + if (insertsBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = insertsBuilder_.build(); + } + } + if (requestCase_ == 4) { + if (deletesBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = deletesBuilder_.build(); + } + } + if (requestCase_ == 5) { + if (createBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = createBuilder_.build(); + } + } + if (requestCase_ == 6) { + if (dropBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = dropBuilder_.build(); + } + } + if (requestCase_ == 7) { + if (openBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = openBuilder_.build(); + } + } + if (requestCase_ == 8) { + if (closeBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = closeBuilder_.build(); + } + } + if (requestCase_ == 9) { + if (alterBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = alterBuilder_.build(); + } + } + if (requestCase_ == 10) { + if (flushBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = flushBuilder_.build(); + } + } + if (requestCase_ == 11) { + if (compactBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = compactBuilder_.build(); + } + } + result.requestCase_ = requestCase_; + 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 io.greptime.v1.region.Server.RegionRequest) { + return mergeFrom((io.greptime.v1.region.Server.RegionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.RegionRequest other) { + if (other == io.greptime.v1.region.Server.RegionRequest.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + switch (other.getRequestCase()) { + case INSERTS: { + mergeInserts(other.getInserts()); + break; + } + case DELETES: { + mergeDeletes(other.getDeletes()); + break; + } + case CREATE: { + mergeCreate(other.getCreate()); + break; + } + case DROP: { + mergeDrop(other.getDrop()); + break; + } + case OPEN: { + mergeOpen(other.getOpen()); + break; + } + case CLOSE: { + mergeClose(other.getClose()); + break; + } + case ALTER: { + mergeAlter(other.getAlter()); + break; + } + case FLUSH: { + mergeFlush(other.getFlush()); + break; + } + case COMPACT: { + mergeCompact(other.getCompact()); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + 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 { + io.greptime.v1.region.Server.RegionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.RegionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int requestCase_ = 0; + private java.lang.Object request_; + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); + } + + public Builder clearRequest() { + requestCase_ = 0; + request_ = null; + onChanged(); + return this; + } + + + private io.greptime.v1.Common.RequestHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.RequestHeader, io.greptime.v1.Common.RequestHeader.Builder, io.greptime.v1.Common.RequestHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.RequestHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.RequestHeader header = 1; + * @return The header. + */ + public io.greptime.v1.Common.RequestHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? io.greptime.v1.Common.RequestHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.RequestHeader header = 1; + */ + public Builder setHeader(io.greptime.v1.Common.RequestHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.RequestHeader header = 1; + */ + public Builder setHeader( + io.greptime.v1.Common.RequestHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.RequestHeader header = 1; + */ + public Builder mergeHeader(io.greptime.v1.Common.RequestHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + io.greptime.v1.Common.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.RequestHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.RequestHeader header = 1; + */ + public io.greptime.v1.Common.RequestHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.RequestHeader header = 1; + */ + public io.greptime.v1.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + io.greptime.v1.Common.RequestHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.RequestHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.RequestHeader, io.greptime.v1.Common.RequestHeader.Builder, io.greptime.v1.Common.RequestHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.RequestHeader, io.greptime.v1.Common.RequestHeader.Builder, io.greptime.v1.Common.RequestHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.InsertRequests, io.greptime.v1.region.Server.InsertRequests.Builder, io.greptime.v1.region.Server.InsertRequestsOrBuilder> insertsBuilder_; + /** + * .greptime.v1.region.InsertRequests inserts = 3; + * @return Whether the inserts field is set. + */ + @java.lang.Override + public boolean hasInserts() { + return requestCase_ == 3; + } + /** + * .greptime.v1.region.InsertRequests inserts = 3; + * @return The inserts. + */ + @java.lang.Override + public io.greptime.v1.region.Server.InsertRequests getInserts() { + if (insertsBuilder_ == null) { + if (requestCase_ == 3) { + return (io.greptime.v1.region.Server.InsertRequests) request_; + } + return io.greptime.v1.region.Server.InsertRequests.getDefaultInstance(); + } else { + if (requestCase_ == 3) { + return insertsBuilder_.getMessage(); + } + return io.greptime.v1.region.Server.InsertRequests.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.InsertRequests inserts = 3; + */ + public Builder setInserts(io.greptime.v1.region.Server.InsertRequests value) { + if (insertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + insertsBuilder_.setMessage(value); + } + requestCase_ = 3; + return this; + } + /** + * .greptime.v1.region.InsertRequests inserts = 3; + */ + public Builder setInserts( + io.greptime.v1.region.Server.InsertRequests.Builder builderForValue) { + if (insertsBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + insertsBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 3; + return this; + } + /** + * .greptime.v1.region.InsertRequests inserts = 3; + */ + public Builder mergeInserts(io.greptime.v1.region.Server.InsertRequests value) { + if (insertsBuilder_ == null) { + if (requestCase_ == 3 && + request_ != io.greptime.v1.region.Server.InsertRequests.getDefaultInstance()) { + request_ = io.greptime.v1.region.Server.InsertRequests.newBuilder((io.greptime.v1.region.Server.InsertRequests) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 3) { + insertsBuilder_.mergeFrom(value); + } else { + insertsBuilder_.setMessage(value); + } + } + requestCase_ = 3; + return this; + } + /** + * .greptime.v1.region.InsertRequests inserts = 3; + */ + public Builder clearInserts() { + if (insertsBuilder_ == null) { + if (requestCase_ == 3) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 3) { + requestCase_ = 0; + request_ = null; + } + insertsBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.region.InsertRequests inserts = 3; + */ + public io.greptime.v1.region.Server.InsertRequests.Builder getInsertsBuilder() { + return getInsertsFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.region.InsertRequests inserts = 3; + */ + @java.lang.Override + public io.greptime.v1.region.Server.InsertRequestsOrBuilder getInsertsOrBuilder() { + if ((requestCase_ == 3) && (insertsBuilder_ != null)) { + return insertsBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 3) { + return (io.greptime.v1.region.Server.InsertRequests) request_; + } + return io.greptime.v1.region.Server.InsertRequests.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.InsertRequests inserts = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.InsertRequests, io.greptime.v1.region.Server.InsertRequests.Builder, io.greptime.v1.region.Server.InsertRequestsOrBuilder> + getInsertsFieldBuilder() { + if (insertsBuilder_ == null) { + if (!(requestCase_ == 3)) { + request_ = io.greptime.v1.region.Server.InsertRequests.getDefaultInstance(); + } + insertsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.InsertRequests, io.greptime.v1.region.Server.InsertRequests.Builder, io.greptime.v1.region.Server.InsertRequestsOrBuilder>( + (io.greptime.v1.region.Server.InsertRequests) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 3; + onChanged();; + return insertsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.DeleteRequests, io.greptime.v1.region.Server.DeleteRequests.Builder, io.greptime.v1.region.Server.DeleteRequestsOrBuilder> deletesBuilder_; + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + * @return Whether the deletes field is set. + */ + @java.lang.Override + public boolean hasDeletes() { + return requestCase_ == 4; + } + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + * @return The deletes. + */ + @java.lang.Override + public io.greptime.v1.region.Server.DeleteRequests getDeletes() { + if (deletesBuilder_ == null) { + if (requestCase_ == 4) { + return (io.greptime.v1.region.Server.DeleteRequests) request_; + } + return io.greptime.v1.region.Server.DeleteRequests.getDefaultInstance(); + } else { + if (requestCase_ == 4) { + return deletesBuilder_.getMessage(); + } + return io.greptime.v1.region.Server.DeleteRequests.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + */ + public Builder setDeletes(io.greptime.v1.region.Server.DeleteRequests value) { + if (deletesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + deletesBuilder_.setMessage(value); + } + requestCase_ = 4; + return this; + } + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + */ + public Builder setDeletes( + io.greptime.v1.region.Server.DeleteRequests.Builder builderForValue) { + if (deletesBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + deletesBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 4; + return this; + } + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + */ + public Builder mergeDeletes(io.greptime.v1.region.Server.DeleteRequests value) { + if (deletesBuilder_ == null) { + if (requestCase_ == 4 && + request_ != io.greptime.v1.region.Server.DeleteRequests.getDefaultInstance()) { + request_ = io.greptime.v1.region.Server.DeleteRequests.newBuilder((io.greptime.v1.region.Server.DeleteRequests) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 4) { + deletesBuilder_.mergeFrom(value); + } else { + deletesBuilder_.setMessage(value); + } + } + requestCase_ = 4; + return this; + } + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + */ + public Builder clearDeletes() { + if (deletesBuilder_ == null) { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + } + deletesBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + */ + public io.greptime.v1.region.Server.DeleteRequests.Builder getDeletesBuilder() { + return getDeletesFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + */ + @java.lang.Override + public io.greptime.v1.region.Server.DeleteRequestsOrBuilder getDeletesOrBuilder() { + if ((requestCase_ == 4) && (deletesBuilder_ != null)) { + return deletesBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 4) { + return (io.greptime.v1.region.Server.DeleteRequests) request_; + } + return io.greptime.v1.region.Server.DeleteRequests.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.DeleteRequests deletes = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.DeleteRequests, io.greptime.v1.region.Server.DeleteRequests.Builder, io.greptime.v1.region.Server.DeleteRequestsOrBuilder> + getDeletesFieldBuilder() { + if (deletesBuilder_ == null) { + if (!(requestCase_ == 4)) { + request_ = io.greptime.v1.region.Server.DeleteRequests.getDefaultInstance(); + } + deletesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.DeleteRequests, io.greptime.v1.region.Server.DeleteRequests.Builder, io.greptime.v1.region.Server.DeleteRequestsOrBuilder>( + (io.greptime.v1.region.Server.DeleteRequests) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 4; + onChanged();; + return deletesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.CreateRequest, io.greptime.v1.region.Server.CreateRequest.Builder, io.greptime.v1.region.Server.CreateRequestOrBuilder> createBuilder_; + /** + * .greptime.v1.region.CreateRequest create = 5; + * @return Whether the create field is set. + */ + @java.lang.Override + public boolean hasCreate() { + return requestCase_ == 5; + } + /** + * .greptime.v1.region.CreateRequest create = 5; + * @return The create. + */ + @java.lang.Override + public io.greptime.v1.region.Server.CreateRequest getCreate() { + if (createBuilder_ == null) { + if (requestCase_ == 5) { + return (io.greptime.v1.region.Server.CreateRequest) request_; + } + return io.greptime.v1.region.Server.CreateRequest.getDefaultInstance(); + } else { + if (requestCase_ == 5) { + return createBuilder_.getMessage(); + } + return io.greptime.v1.region.Server.CreateRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.CreateRequest create = 5; + */ + public Builder setCreate(io.greptime.v1.region.Server.CreateRequest value) { + if (createBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + createBuilder_.setMessage(value); + } + requestCase_ = 5; + return this; + } + /** + * .greptime.v1.region.CreateRequest create = 5; + */ + public Builder setCreate( + io.greptime.v1.region.Server.CreateRequest.Builder builderForValue) { + if (createBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + createBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 5; + return this; + } + /** + * .greptime.v1.region.CreateRequest create = 5; + */ + public Builder mergeCreate(io.greptime.v1.region.Server.CreateRequest value) { + if (createBuilder_ == null) { + if (requestCase_ == 5 && + request_ != io.greptime.v1.region.Server.CreateRequest.getDefaultInstance()) { + request_ = io.greptime.v1.region.Server.CreateRequest.newBuilder((io.greptime.v1.region.Server.CreateRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 5) { + createBuilder_.mergeFrom(value); + } else { + createBuilder_.setMessage(value); + } + } + requestCase_ = 5; + return this; + } + /** + * .greptime.v1.region.CreateRequest create = 5; + */ + public Builder clearCreate() { + if (createBuilder_ == null) { + if (requestCase_ == 5) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 5) { + requestCase_ = 0; + request_ = null; + } + createBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.region.CreateRequest create = 5; + */ + public io.greptime.v1.region.Server.CreateRequest.Builder getCreateBuilder() { + return getCreateFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.region.CreateRequest create = 5; + */ + @java.lang.Override + public io.greptime.v1.region.Server.CreateRequestOrBuilder getCreateOrBuilder() { + if ((requestCase_ == 5) && (createBuilder_ != null)) { + return createBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 5) { + return (io.greptime.v1.region.Server.CreateRequest) request_; + } + return io.greptime.v1.region.Server.CreateRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.CreateRequest create = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.CreateRequest, io.greptime.v1.region.Server.CreateRequest.Builder, io.greptime.v1.region.Server.CreateRequestOrBuilder> + getCreateFieldBuilder() { + if (createBuilder_ == null) { + if (!(requestCase_ == 5)) { + request_ = io.greptime.v1.region.Server.CreateRequest.getDefaultInstance(); + } + createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.CreateRequest, io.greptime.v1.region.Server.CreateRequest.Builder, io.greptime.v1.region.Server.CreateRequestOrBuilder>( + (io.greptime.v1.region.Server.CreateRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 5; + onChanged();; + return createBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.DropRequest, io.greptime.v1.region.Server.DropRequest.Builder, io.greptime.v1.region.Server.DropRequestOrBuilder> dropBuilder_; + /** + * .greptime.v1.region.DropRequest drop = 6; + * @return Whether the drop field is set. + */ + @java.lang.Override + public boolean hasDrop() { + return requestCase_ == 6; + } + /** + * .greptime.v1.region.DropRequest drop = 6; + * @return The drop. + */ + @java.lang.Override + public io.greptime.v1.region.Server.DropRequest getDrop() { + if (dropBuilder_ == null) { + if (requestCase_ == 6) { + return (io.greptime.v1.region.Server.DropRequest) request_; + } + return io.greptime.v1.region.Server.DropRequest.getDefaultInstance(); + } else { + if (requestCase_ == 6) { + return dropBuilder_.getMessage(); + } + return io.greptime.v1.region.Server.DropRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.DropRequest drop = 6; + */ + public Builder setDrop(io.greptime.v1.region.Server.DropRequest value) { + if (dropBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + dropBuilder_.setMessage(value); + } + requestCase_ = 6; + return this; + } + /** + * .greptime.v1.region.DropRequest drop = 6; + */ + public Builder setDrop( + io.greptime.v1.region.Server.DropRequest.Builder builderForValue) { + if (dropBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + dropBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 6; + return this; + } + /** + * .greptime.v1.region.DropRequest drop = 6; + */ + public Builder mergeDrop(io.greptime.v1.region.Server.DropRequest value) { + if (dropBuilder_ == null) { + if (requestCase_ == 6 && + request_ != io.greptime.v1.region.Server.DropRequest.getDefaultInstance()) { + request_ = io.greptime.v1.region.Server.DropRequest.newBuilder((io.greptime.v1.region.Server.DropRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 6) { + dropBuilder_.mergeFrom(value); + } else { + dropBuilder_.setMessage(value); + } + } + requestCase_ = 6; + return this; + } + /** + * .greptime.v1.region.DropRequest drop = 6; + */ + public Builder clearDrop() { + if (dropBuilder_ == null) { + if (requestCase_ == 6) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 6) { + requestCase_ = 0; + request_ = null; + } + dropBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.region.DropRequest drop = 6; + */ + public io.greptime.v1.region.Server.DropRequest.Builder getDropBuilder() { + return getDropFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.region.DropRequest drop = 6; + */ + @java.lang.Override + public io.greptime.v1.region.Server.DropRequestOrBuilder getDropOrBuilder() { + if ((requestCase_ == 6) && (dropBuilder_ != null)) { + return dropBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 6) { + return (io.greptime.v1.region.Server.DropRequest) request_; + } + return io.greptime.v1.region.Server.DropRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.DropRequest drop = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.DropRequest, io.greptime.v1.region.Server.DropRequest.Builder, io.greptime.v1.region.Server.DropRequestOrBuilder> + getDropFieldBuilder() { + if (dropBuilder_ == null) { + if (!(requestCase_ == 6)) { + request_ = io.greptime.v1.region.Server.DropRequest.getDefaultInstance(); + } + dropBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.DropRequest, io.greptime.v1.region.Server.DropRequest.Builder, io.greptime.v1.region.Server.DropRequestOrBuilder>( + (io.greptime.v1.region.Server.DropRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 6; + onChanged();; + return dropBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.OpenRequest, io.greptime.v1.region.Server.OpenRequest.Builder, io.greptime.v1.region.Server.OpenRequestOrBuilder> openBuilder_; + /** + * .greptime.v1.region.OpenRequest open = 7; + * @return Whether the open field is set. + */ + @java.lang.Override + public boolean hasOpen() { + return requestCase_ == 7; + } + /** + * .greptime.v1.region.OpenRequest open = 7; + * @return The open. + */ + @java.lang.Override + public io.greptime.v1.region.Server.OpenRequest getOpen() { + if (openBuilder_ == null) { + if (requestCase_ == 7) { + return (io.greptime.v1.region.Server.OpenRequest) request_; + } + return io.greptime.v1.region.Server.OpenRequest.getDefaultInstance(); + } else { + if (requestCase_ == 7) { + return openBuilder_.getMessage(); + } + return io.greptime.v1.region.Server.OpenRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.OpenRequest open = 7; + */ + public Builder setOpen(io.greptime.v1.region.Server.OpenRequest value) { + if (openBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + openBuilder_.setMessage(value); + } + requestCase_ = 7; + return this; + } + /** + * .greptime.v1.region.OpenRequest open = 7; + */ + public Builder setOpen( + io.greptime.v1.region.Server.OpenRequest.Builder builderForValue) { + if (openBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + openBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 7; + return this; + } + /** + * .greptime.v1.region.OpenRequest open = 7; + */ + public Builder mergeOpen(io.greptime.v1.region.Server.OpenRequest value) { + if (openBuilder_ == null) { + if (requestCase_ == 7 && + request_ != io.greptime.v1.region.Server.OpenRequest.getDefaultInstance()) { + request_ = io.greptime.v1.region.Server.OpenRequest.newBuilder((io.greptime.v1.region.Server.OpenRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 7) { + openBuilder_.mergeFrom(value); + } else { + openBuilder_.setMessage(value); + } + } + requestCase_ = 7; + return this; + } + /** + * .greptime.v1.region.OpenRequest open = 7; + */ + public Builder clearOpen() { + if (openBuilder_ == null) { + if (requestCase_ == 7) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 7) { + requestCase_ = 0; + request_ = null; + } + openBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.region.OpenRequest open = 7; + */ + public io.greptime.v1.region.Server.OpenRequest.Builder getOpenBuilder() { + return getOpenFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.region.OpenRequest open = 7; + */ + @java.lang.Override + public io.greptime.v1.region.Server.OpenRequestOrBuilder getOpenOrBuilder() { + if ((requestCase_ == 7) && (openBuilder_ != null)) { + return openBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 7) { + return (io.greptime.v1.region.Server.OpenRequest) request_; + } + return io.greptime.v1.region.Server.OpenRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.OpenRequest open = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.OpenRequest, io.greptime.v1.region.Server.OpenRequest.Builder, io.greptime.v1.region.Server.OpenRequestOrBuilder> + getOpenFieldBuilder() { + if (openBuilder_ == null) { + if (!(requestCase_ == 7)) { + request_ = io.greptime.v1.region.Server.OpenRequest.getDefaultInstance(); + } + openBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.OpenRequest, io.greptime.v1.region.Server.OpenRequest.Builder, io.greptime.v1.region.Server.OpenRequestOrBuilder>( + (io.greptime.v1.region.Server.OpenRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 7; + onChanged();; + return openBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.CloseRequest, io.greptime.v1.region.Server.CloseRequest.Builder, io.greptime.v1.region.Server.CloseRequestOrBuilder> closeBuilder_; + /** + * .greptime.v1.region.CloseRequest close = 8; + * @return Whether the close field is set. + */ + @java.lang.Override + public boolean hasClose() { + return requestCase_ == 8; + } + /** + * .greptime.v1.region.CloseRequest close = 8; + * @return The close. + */ + @java.lang.Override + public io.greptime.v1.region.Server.CloseRequest getClose() { + if (closeBuilder_ == null) { + if (requestCase_ == 8) { + return (io.greptime.v1.region.Server.CloseRequest) request_; + } + return io.greptime.v1.region.Server.CloseRequest.getDefaultInstance(); + } else { + if (requestCase_ == 8) { + return closeBuilder_.getMessage(); + } + return io.greptime.v1.region.Server.CloseRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.CloseRequest close = 8; + */ + public Builder setClose(io.greptime.v1.region.Server.CloseRequest value) { + if (closeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + closeBuilder_.setMessage(value); + } + requestCase_ = 8; + return this; + } + /** + * .greptime.v1.region.CloseRequest close = 8; + */ + public Builder setClose( + io.greptime.v1.region.Server.CloseRequest.Builder builderForValue) { + if (closeBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + closeBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 8; + return this; + } + /** + * .greptime.v1.region.CloseRequest close = 8; + */ + public Builder mergeClose(io.greptime.v1.region.Server.CloseRequest value) { + if (closeBuilder_ == null) { + if (requestCase_ == 8 && + request_ != io.greptime.v1.region.Server.CloseRequest.getDefaultInstance()) { + request_ = io.greptime.v1.region.Server.CloseRequest.newBuilder((io.greptime.v1.region.Server.CloseRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 8) { + closeBuilder_.mergeFrom(value); + } else { + closeBuilder_.setMessage(value); + } + } + requestCase_ = 8; + return this; + } + /** + * .greptime.v1.region.CloseRequest close = 8; + */ + public Builder clearClose() { + if (closeBuilder_ == null) { + if (requestCase_ == 8) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 8) { + requestCase_ = 0; + request_ = null; + } + closeBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.region.CloseRequest close = 8; + */ + public io.greptime.v1.region.Server.CloseRequest.Builder getCloseBuilder() { + return getCloseFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.region.CloseRequest close = 8; + */ + @java.lang.Override + public io.greptime.v1.region.Server.CloseRequestOrBuilder getCloseOrBuilder() { + if ((requestCase_ == 8) && (closeBuilder_ != null)) { + return closeBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 8) { + return (io.greptime.v1.region.Server.CloseRequest) request_; + } + return io.greptime.v1.region.Server.CloseRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.CloseRequest close = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.CloseRequest, io.greptime.v1.region.Server.CloseRequest.Builder, io.greptime.v1.region.Server.CloseRequestOrBuilder> + getCloseFieldBuilder() { + if (closeBuilder_ == null) { + if (!(requestCase_ == 8)) { + request_ = io.greptime.v1.region.Server.CloseRequest.getDefaultInstance(); + } + closeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.CloseRequest, io.greptime.v1.region.Server.CloseRequest.Builder, io.greptime.v1.region.Server.CloseRequestOrBuilder>( + (io.greptime.v1.region.Server.CloseRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 8; + onChanged();; + return closeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.AlterRequest, io.greptime.v1.region.Server.AlterRequest.Builder, io.greptime.v1.region.Server.AlterRequestOrBuilder> alterBuilder_; + /** + * .greptime.v1.region.AlterRequest alter = 9; + * @return Whether the alter field is set. + */ + @java.lang.Override + public boolean hasAlter() { + return requestCase_ == 9; + } + /** + * .greptime.v1.region.AlterRequest alter = 9; + * @return The alter. + */ + @java.lang.Override + public io.greptime.v1.region.Server.AlterRequest getAlter() { + if (alterBuilder_ == null) { + if (requestCase_ == 9) { + return (io.greptime.v1.region.Server.AlterRequest) request_; + } + return io.greptime.v1.region.Server.AlterRequest.getDefaultInstance(); + } else { + if (requestCase_ == 9) { + return alterBuilder_.getMessage(); + } + return io.greptime.v1.region.Server.AlterRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.AlterRequest alter = 9; + */ + public Builder setAlter(io.greptime.v1.region.Server.AlterRequest value) { + if (alterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + alterBuilder_.setMessage(value); + } + requestCase_ = 9; + return this; + } + /** + * .greptime.v1.region.AlterRequest alter = 9; + */ + public Builder setAlter( + io.greptime.v1.region.Server.AlterRequest.Builder builderForValue) { + if (alterBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + alterBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 9; + return this; + } + /** + * .greptime.v1.region.AlterRequest alter = 9; + */ + public Builder mergeAlter(io.greptime.v1.region.Server.AlterRequest value) { + if (alterBuilder_ == null) { + if (requestCase_ == 9 && + request_ != io.greptime.v1.region.Server.AlterRequest.getDefaultInstance()) { + request_ = io.greptime.v1.region.Server.AlterRequest.newBuilder((io.greptime.v1.region.Server.AlterRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 9) { + alterBuilder_.mergeFrom(value); + } else { + alterBuilder_.setMessage(value); + } + } + requestCase_ = 9; + return this; + } + /** + * .greptime.v1.region.AlterRequest alter = 9; + */ + public Builder clearAlter() { + if (alterBuilder_ == null) { + if (requestCase_ == 9) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 9) { + requestCase_ = 0; + request_ = null; + } + alterBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.region.AlterRequest alter = 9; + */ + public io.greptime.v1.region.Server.AlterRequest.Builder getAlterBuilder() { + return getAlterFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.region.AlterRequest alter = 9; + */ + @java.lang.Override + public io.greptime.v1.region.Server.AlterRequestOrBuilder getAlterOrBuilder() { + if ((requestCase_ == 9) && (alterBuilder_ != null)) { + return alterBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 9) { + return (io.greptime.v1.region.Server.AlterRequest) request_; + } + return io.greptime.v1.region.Server.AlterRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.AlterRequest alter = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.AlterRequest, io.greptime.v1.region.Server.AlterRequest.Builder, io.greptime.v1.region.Server.AlterRequestOrBuilder> + getAlterFieldBuilder() { + if (alterBuilder_ == null) { + if (!(requestCase_ == 9)) { + request_ = io.greptime.v1.region.Server.AlterRequest.getDefaultInstance(); + } + alterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.AlterRequest, io.greptime.v1.region.Server.AlterRequest.Builder, io.greptime.v1.region.Server.AlterRequestOrBuilder>( + (io.greptime.v1.region.Server.AlterRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 9; + onChanged();; + return alterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.FlushRequest, io.greptime.v1.region.Server.FlushRequest.Builder, io.greptime.v1.region.Server.FlushRequestOrBuilder> flushBuilder_; + /** + * .greptime.v1.region.FlushRequest flush = 10; + * @return Whether the flush field is set. + */ + @java.lang.Override + public boolean hasFlush() { + return requestCase_ == 10; + } + /** + * .greptime.v1.region.FlushRequest flush = 10; + * @return The flush. + */ + @java.lang.Override + public io.greptime.v1.region.Server.FlushRequest getFlush() { + if (flushBuilder_ == null) { + if (requestCase_ == 10) { + return (io.greptime.v1.region.Server.FlushRequest) request_; + } + return io.greptime.v1.region.Server.FlushRequest.getDefaultInstance(); + } else { + if (requestCase_ == 10) { + return flushBuilder_.getMessage(); + } + return io.greptime.v1.region.Server.FlushRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.FlushRequest flush = 10; + */ + public Builder setFlush(io.greptime.v1.region.Server.FlushRequest value) { + if (flushBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + flushBuilder_.setMessage(value); + } + requestCase_ = 10; + return this; + } + /** + * .greptime.v1.region.FlushRequest flush = 10; + */ + public Builder setFlush( + io.greptime.v1.region.Server.FlushRequest.Builder builderForValue) { + if (flushBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + flushBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 10; + return this; + } + /** + * .greptime.v1.region.FlushRequest flush = 10; + */ + public Builder mergeFlush(io.greptime.v1.region.Server.FlushRequest value) { + if (flushBuilder_ == null) { + if (requestCase_ == 10 && + request_ != io.greptime.v1.region.Server.FlushRequest.getDefaultInstance()) { + request_ = io.greptime.v1.region.Server.FlushRequest.newBuilder((io.greptime.v1.region.Server.FlushRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 10) { + flushBuilder_.mergeFrom(value); + } else { + flushBuilder_.setMessage(value); + } + } + requestCase_ = 10; + return this; + } + /** + * .greptime.v1.region.FlushRequest flush = 10; + */ + public Builder clearFlush() { + if (flushBuilder_ == null) { + if (requestCase_ == 10) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 10) { + requestCase_ = 0; + request_ = null; + } + flushBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.region.FlushRequest flush = 10; + */ + public io.greptime.v1.region.Server.FlushRequest.Builder getFlushBuilder() { + return getFlushFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.region.FlushRequest flush = 10; + */ + @java.lang.Override + public io.greptime.v1.region.Server.FlushRequestOrBuilder getFlushOrBuilder() { + if ((requestCase_ == 10) && (flushBuilder_ != null)) { + return flushBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 10) { + return (io.greptime.v1.region.Server.FlushRequest) request_; + } + return io.greptime.v1.region.Server.FlushRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.FlushRequest flush = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.FlushRequest, io.greptime.v1.region.Server.FlushRequest.Builder, io.greptime.v1.region.Server.FlushRequestOrBuilder> + getFlushFieldBuilder() { + if (flushBuilder_ == null) { + if (!(requestCase_ == 10)) { + request_ = io.greptime.v1.region.Server.FlushRequest.getDefaultInstance(); + } + flushBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.FlushRequest, io.greptime.v1.region.Server.FlushRequest.Builder, io.greptime.v1.region.Server.FlushRequestOrBuilder>( + (io.greptime.v1.region.Server.FlushRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 10; + onChanged();; + return flushBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.CompactRequest, io.greptime.v1.region.Server.CompactRequest.Builder, io.greptime.v1.region.Server.CompactRequestOrBuilder> compactBuilder_; + /** + * .greptime.v1.region.CompactRequest compact = 11; + * @return Whether the compact field is set. + */ + @java.lang.Override + public boolean hasCompact() { + return requestCase_ == 11; + } + /** + * .greptime.v1.region.CompactRequest compact = 11; + * @return The compact. + */ + @java.lang.Override + public io.greptime.v1.region.Server.CompactRequest getCompact() { + if (compactBuilder_ == null) { + if (requestCase_ == 11) { + return (io.greptime.v1.region.Server.CompactRequest) request_; + } + return io.greptime.v1.region.Server.CompactRequest.getDefaultInstance(); + } else { + if (requestCase_ == 11) { + return compactBuilder_.getMessage(); + } + return io.greptime.v1.region.Server.CompactRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.CompactRequest compact = 11; + */ + public Builder setCompact(io.greptime.v1.region.Server.CompactRequest value) { + if (compactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + compactBuilder_.setMessage(value); + } + requestCase_ = 11; + return this; + } + /** + * .greptime.v1.region.CompactRequest compact = 11; + */ + public Builder setCompact( + io.greptime.v1.region.Server.CompactRequest.Builder builderForValue) { + if (compactBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + compactBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 11; + return this; + } + /** + * .greptime.v1.region.CompactRequest compact = 11; + */ + public Builder mergeCompact(io.greptime.v1.region.Server.CompactRequest value) { + if (compactBuilder_ == null) { + if (requestCase_ == 11 && + request_ != io.greptime.v1.region.Server.CompactRequest.getDefaultInstance()) { + request_ = io.greptime.v1.region.Server.CompactRequest.newBuilder((io.greptime.v1.region.Server.CompactRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 11) { + compactBuilder_.mergeFrom(value); + } else { + compactBuilder_.setMessage(value); + } + } + requestCase_ = 11; + return this; + } + /** + * .greptime.v1.region.CompactRequest compact = 11; + */ + public Builder clearCompact() { + if (compactBuilder_ == null) { + if (requestCase_ == 11) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 11) { + requestCase_ = 0; + request_ = null; + } + compactBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.region.CompactRequest compact = 11; + */ + public io.greptime.v1.region.Server.CompactRequest.Builder getCompactBuilder() { + return getCompactFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.region.CompactRequest compact = 11; + */ + @java.lang.Override + public io.greptime.v1.region.Server.CompactRequestOrBuilder getCompactOrBuilder() { + if ((requestCase_ == 11) && (compactBuilder_ != null)) { + return compactBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 11) { + return (io.greptime.v1.region.Server.CompactRequest) request_; + } + return io.greptime.v1.region.Server.CompactRequest.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.CompactRequest compact = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.CompactRequest, io.greptime.v1.region.Server.CompactRequest.Builder, io.greptime.v1.region.Server.CompactRequestOrBuilder> + getCompactFieldBuilder() { + if (compactBuilder_ == null) { + if (!(requestCase_ == 11)) { + request_ = io.greptime.v1.region.Server.CompactRequest.getDefaultInstance(); + } + compactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.CompactRequest, io.greptime.v1.region.Server.CompactRequest.Builder, io.greptime.v1.region.Server.CompactRequestOrBuilder>( + (io.greptime.v1.region.Server.CompactRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 11; + onChanged();; + return compactBuilder_; + } + @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.region.RegionRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.RegionRequest) + private static final io.greptime.v1.region.Server.RegionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.RegionRequest(); + } + + public static io.greptime.v1.region.Server.RegionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RegionRequest(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 io.greptime.v1.region.Server.RegionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RegionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.RegionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.ResponseHeader header = 1; + * @return The header. + */ + io.greptime.v1.Common.ResponseHeader getHeader(); + /** + * .greptime.v1.ResponseHeader header = 1; + */ + io.greptime.v1.Common.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + * uint64 affacted_rows = 2; + * @return The affactedRows. + */ + long getAffactedRows(); + } + /** + * Protobuf type {@code greptime.v1.region.RegionResponse} + */ + public static final class RegionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.RegionResponse) + RegionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use RegionResponse.newBuilder() to construct. + private RegionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RegionResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RegionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RegionResponse( + 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: { + io.greptime.v1.Common.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(io.greptime.v1.Common.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + affactedRows_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.RegionResponse.class, io.greptime.v1.region.Server.RegionResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private io.greptime.v1.Common.ResponseHeader header_; + /** + * .greptime.v1.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public io.greptime.v1.Common.ResponseHeader getHeader() { + return header_ == null ? io.greptime.v1.Common.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.ResponseHeader header = 1; + */ + @java.lang.Override + public io.greptime.v1.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int AFFACTED_ROWS_FIELD_NUMBER = 2; + private long affactedRows_; + /** + * uint64 affacted_rows = 2; + * @return The affactedRows. + */ + @java.lang.Override + public long getAffactedRows() { + return affactedRows_; + } + + 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 (affactedRows_ != 0L) { + output.writeUInt64(2, affactedRows_); + } + 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 (affactedRows_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, affactedRows_); + } + 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 io.greptime.v1.region.Server.RegionResponse)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.RegionResponse other = (io.greptime.v1.region.Server.RegionResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (getAffactedRows() + != other.getAffactedRows()) 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) + AFFACTED_ROWS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAffactedRows()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.RegionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.RegionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.RegionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.RegionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.RegionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.RegionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.RegionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.RegionResponse 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 io.greptime.v1.region.Server.RegionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.RegionResponse 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 io.greptime.v1.region.Server.RegionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.RegionResponse 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(io.greptime.v1.region.Server.RegionResponse 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.region.RegionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.RegionResponse) + io.greptime.v1.region.Server.RegionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.RegionResponse.class, io.greptime.v1.region.Server.RegionResponse.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.RegionResponse.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; + } + affactedRows_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionResponse_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.RegionResponse getDefaultInstanceForType() { + return io.greptime.v1.region.Server.RegionResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.RegionResponse build() { + io.greptime.v1.region.Server.RegionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.RegionResponse buildPartial() { + io.greptime.v1.region.Server.RegionResponse result = new io.greptime.v1.region.Server.RegionResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.affactedRows_ = affactedRows_; + 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 io.greptime.v1.region.Server.RegionResponse) { + return mergeFrom((io.greptime.v1.region.Server.RegionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.RegionResponse other) { + if (other == io.greptime.v1.region.Server.RegionResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.getAffactedRows() != 0L) { + setAffactedRows(other.getAffactedRows()); + } + 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 { + io.greptime.v1.region.Server.RegionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.RegionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.greptime.v1.Common.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ResponseHeader, io.greptime.v1.Common.ResponseHeader.Builder, io.greptime.v1.Common.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.ResponseHeader header = 1; + * @return The header. + */ + public io.greptime.v1.Common.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? io.greptime.v1.Common.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.ResponseHeader header = 1; + */ + public Builder setHeader(io.greptime.v1.Common.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.ResponseHeader header = 1; + */ + public Builder setHeader( + io.greptime.v1.Common.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.ResponseHeader header = 1; + */ + public Builder mergeHeader(io.greptime.v1.Common.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + io.greptime.v1.Common.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.ResponseHeader header = 1; + */ + public io.greptime.v1.Common.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.ResponseHeader header = 1; + */ + public io.greptime.v1.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + io.greptime.v1.Common.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ResponseHeader, io.greptime.v1.Common.ResponseHeader.Builder, io.greptime.v1.Common.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ResponseHeader, io.greptime.v1.Common.ResponseHeader.Builder, io.greptime.v1.Common.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private long affactedRows_ ; + /** + * uint64 affacted_rows = 2; + * @return The affactedRows. + */ + @java.lang.Override + public long getAffactedRows() { + return affactedRows_; + } + /** + * uint64 affacted_rows = 2; + * @param value The affactedRows to set. + * @return This builder for chaining. + */ + public Builder setAffactedRows(long value) { + + affactedRows_ = value; + onChanged(); + return this; + } + /** + * uint64 affacted_rows = 2; + * @return This builder for chaining. + */ + public Builder clearAffactedRows() { + + affactedRows_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.region.RegionResponse) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.RegionResponse) + private static final io.greptime.v1.region.Server.RegionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.RegionResponse(); + } + + public static io.greptime.v1.region.Server.RegionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RegionResponse(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 io.greptime.v1.region.Server.RegionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InsertRequestsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.InsertRequests) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + java.util.List + getRequestsList(); + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + io.greptime.v1.region.Server.InsertRequest getRequests(int index); + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + int getRequestsCount(); + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + java.util.List + getRequestsOrBuilderList(); + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + io.greptime.v1.region.Server.InsertRequestOrBuilder getRequestsOrBuilder( + int index); + } + /** + * Protobuf type {@code greptime.v1.region.InsertRequests} + */ + public static final class InsertRequests extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.InsertRequests) + InsertRequestsOrBuilder { + private static final long serialVersionUID = 0L; + // Use InsertRequests.newBuilder() to construct. + private InsertRequests(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InsertRequests() { + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InsertRequests(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InsertRequests( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage(io.greptime.v1.region.Server.InsertRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_InsertRequests_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_InsertRequests_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.InsertRequests.class, io.greptime.v1.region.Server.InsertRequests.Builder.class); + } + + public static final int REQUESTS_FIELD_NUMBER = 1; + private java.util.List requests_; + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + @java.lang.Override + public io.greptime.v1.region.Server.InsertRequest getRequests(int index) { + return requests_.get(index); + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + @java.lang.Override + public io.greptime.v1.region.Server.InsertRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.get(index); + } + + 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 { + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(1, requests_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); + } + 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 io.greptime.v1.region.Server.InsertRequests)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.InsertRequests other = (io.greptime.v1.region.Server.InsertRequests) obj; + + if (!getRequestsList() + .equals(other.getRequestsList())) 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 (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.InsertRequests parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.InsertRequests parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.InsertRequests parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.InsertRequests parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.InsertRequests parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.InsertRequests parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.InsertRequests parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.InsertRequests 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 io.greptime.v1.region.Server.InsertRequests parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.InsertRequests 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 io.greptime.v1.region.Server.InsertRequests parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.InsertRequests 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(io.greptime.v1.region.Server.InsertRequests 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.region.InsertRequests} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.InsertRequests) + io.greptime.v1.region.Server.InsertRequestsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_InsertRequests_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_InsertRequests_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.InsertRequests.class, io.greptime.v1.region.Server.InsertRequests.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.InsertRequests.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_InsertRequests_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.InsertRequests getDefaultInstanceForType() { + return io.greptime.v1.region.Server.InsertRequests.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.InsertRequests build() { + io.greptime.v1.region.Server.InsertRequests result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.InsertRequests buildPartial() { + io.greptime.v1.region.Server.InsertRequests result = new io.greptime.v1.region.Server.InsertRequests(this); + int from_bitField0_ = bitField0_; + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.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 io.greptime.v1.region.Server.InsertRequests) { + return mergeFrom((io.greptime.v1.region.Server.InsertRequests)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.InsertRequests other) { + if (other == io.greptime.v1.region.Server.InsertRequests.getDefaultInstance()) return this; + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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 { + io.greptime.v1.region.Server.InsertRequests parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.InsertRequests) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List requests_ = + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(requests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.region.Server.InsertRequest, io.greptime.v1.region.Server.InsertRequest.Builder, io.greptime.v1.region.Server.InsertRequestOrBuilder> requestsBuilder_; + + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public io.greptime.v1.region.Server.InsertRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public Builder setRequests( + int index, io.greptime.v1.region.Server.InsertRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public Builder setRequests( + int index, io.greptime.v1.region.Server.InsertRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public Builder addRequests(io.greptime.v1.region.Server.InsertRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public Builder addRequests( + int index, io.greptime.v1.region.Server.InsertRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public Builder addRequests( + io.greptime.v1.region.Server.InsertRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public Builder addRequests( + int index, io.greptime.v1.region.Server.InsertRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public io.greptime.v1.region.Server.InsertRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public io.greptime.v1.region.Server.InsertRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public io.greptime.v1.region.Server.InsertRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder().addBuilder( + io.greptime.v1.region.Server.InsertRequest.getDefaultInstance()); + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public io.greptime.v1.region.Server.InsertRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, io.greptime.v1.region.Server.InsertRequest.getDefaultInstance()); + } + /** + * repeated .greptime.v1.region.InsertRequest requests = 1; + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.region.Server.InsertRequest, io.greptime.v1.region.Server.InsertRequest.Builder, io.greptime.v1.region.Server.InsertRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.region.Server.InsertRequest, io.greptime.v1.region.Server.InsertRequest.Builder, io.greptime.v1.region.Server.InsertRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + requests_ = null; + } + return requestsBuilder_; + } + @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.region.InsertRequests) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.InsertRequests) + private static final io.greptime.v1.region.Server.InsertRequests DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.InsertRequests(); + } + + public static io.greptime.v1.region.Server.InsertRequests getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InsertRequests parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InsertRequests(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 io.greptime.v1.region.Server.InsertRequests getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteRequestsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.DeleteRequests) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + java.util.List + getRequestsList(); + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + io.greptime.v1.region.Server.DeleteRequest getRequests(int index); + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + int getRequestsCount(); + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + java.util.List + getRequestsOrBuilderList(); + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + io.greptime.v1.region.Server.DeleteRequestOrBuilder getRequestsOrBuilder( + int index); + } + /** + * Protobuf type {@code greptime.v1.region.DeleteRequests} + */ + public static final class DeleteRequests extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.DeleteRequests) + DeleteRequestsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteRequests.newBuilder() to construct. + private DeleteRequests(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteRequests() { + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteRequests(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteRequests( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage(io.greptime.v1.region.Server.DeleteRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DeleteRequests_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DeleteRequests_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.DeleteRequests.class, io.greptime.v1.region.Server.DeleteRequests.Builder.class); + } + + public static final int REQUESTS_FIELD_NUMBER = 1; + private java.util.List requests_; + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + @java.lang.Override + public io.greptime.v1.region.Server.DeleteRequest getRequests(int index) { + return requests_.get(index); + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + @java.lang.Override + public io.greptime.v1.region.Server.DeleteRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.get(index); + } + + 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 { + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(1, requests_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); + } + 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 io.greptime.v1.region.Server.DeleteRequests)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.DeleteRequests other = (io.greptime.v1.region.Server.DeleteRequests) obj; + + if (!getRequestsList() + .equals(other.getRequestsList())) 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 (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.DeleteRequests parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.DeleteRequests parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.DeleteRequests parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.DeleteRequests parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.DeleteRequests parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.DeleteRequests parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.DeleteRequests parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.DeleteRequests 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 io.greptime.v1.region.Server.DeleteRequests parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.DeleteRequests 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 io.greptime.v1.region.Server.DeleteRequests parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.DeleteRequests 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(io.greptime.v1.region.Server.DeleteRequests 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.region.DeleteRequests} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.DeleteRequests) + io.greptime.v1.region.Server.DeleteRequestsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DeleteRequests_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DeleteRequests_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.DeleteRequests.class, io.greptime.v1.region.Server.DeleteRequests.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.DeleteRequests.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DeleteRequests_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.DeleteRequests getDefaultInstanceForType() { + return io.greptime.v1.region.Server.DeleteRequests.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.DeleteRequests build() { + io.greptime.v1.region.Server.DeleteRequests result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.DeleteRequests buildPartial() { + io.greptime.v1.region.Server.DeleteRequests result = new io.greptime.v1.region.Server.DeleteRequests(this); + int from_bitField0_ = bitField0_; + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.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 io.greptime.v1.region.Server.DeleteRequests) { + return mergeFrom((io.greptime.v1.region.Server.DeleteRequests)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.DeleteRequests other) { + if (other == io.greptime.v1.region.Server.DeleteRequests.getDefaultInstance()) return this; + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + 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 { + io.greptime.v1.region.Server.DeleteRequests parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.DeleteRequests) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List requests_ = + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(requests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.region.Server.DeleteRequest, io.greptime.v1.region.Server.DeleteRequest.Builder, io.greptime.v1.region.Server.DeleteRequestOrBuilder> requestsBuilder_; + + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public io.greptime.v1.region.Server.DeleteRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public Builder setRequests( + int index, io.greptime.v1.region.Server.DeleteRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public Builder setRequests( + int index, io.greptime.v1.region.Server.DeleteRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public Builder addRequests(io.greptime.v1.region.Server.DeleteRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public Builder addRequests( + int index, io.greptime.v1.region.Server.DeleteRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public Builder addRequests( + io.greptime.v1.region.Server.DeleteRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public Builder addRequests( + int index, io.greptime.v1.region.Server.DeleteRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public io.greptime.v1.region.Server.DeleteRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public io.greptime.v1.region.Server.DeleteRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public io.greptime.v1.region.Server.DeleteRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder().addBuilder( + io.greptime.v1.region.Server.DeleteRequest.getDefaultInstance()); + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public io.greptime.v1.region.Server.DeleteRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, io.greptime.v1.region.Server.DeleteRequest.getDefaultInstance()); + } + /** + * repeated .greptime.v1.region.DeleteRequest requests = 1; + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.region.Server.DeleteRequest, io.greptime.v1.region.Server.DeleteRequest.Builder, io.greptime.v1.region.Server.DeleteRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.region.Server.DeleteRequest, io.greptime.v1.region.Server.DeleteRequest.Builder, io.greptime.v1.region.Server.DeleteRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + requests_ = null; + } + return requestsBuilder_; + } + @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.region.DeleteRequests) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.DeleteRequests) + private static final io.greptime.v1.region.Server.DeleteRequests DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.DeleteRequests(); + } + + public static io.greptime.v1.region.Server.DeleteRequests getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRequests parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteRequests(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 io.greptime.v1.region.Server.DeleteRequests getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InsertRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.InsertRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 region_id = 1; + * @return The regionId. + */ + long getRegionId(); + + /** + * repeated .greptime.v1.Row rows = 2; + */ + java.util.List + getRowsList(); + /** + * repeated .greptime.v1.Row rows = 2; + */ + io.greptime.v1.RowData.Row getRows(int index); + /** + * repeated .greptime.v1.Row rows = 2; + */ + int getRowsCount(); + /** + * repeated .greptime.v1.Row rows = 2; + */ + java.util.List + getRowsOrBuilderList(); + /** + * repeated .greptime.v1.Row rows = 2; + */ + io.greptime.v1.RowData.RowOrBuilder getRowsOrBuilder( + int index); + } + /** + * Protobuf type {@code greptime.v1.region.InsertRequest} + */ + public static final class InsertRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.InsertRequest) + InsertRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use InsertRequest.newBuilder() to construct. + private InsertRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InsertRequest() { + rows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InsertRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InsertRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + regionId_ = input.readUInt64(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + rows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + rows_.add( + input.readMessage(io.greptime.v1.RowData.Row.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_InsertRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_InsertRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.InsertRequest.class, io.greptime.v1.region.Server.InsertRequest.Builder.class); + } + + public static final int REGION_ID_FIELD_NUMBER = 1; + private long regionId_; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + + public static final int ROWS_FIELD_NUMBER = 2; + private java.util.List rows_; + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public java.util.List getRowsList() { + return rows_; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public java.util.List + getRowsOrBuilderList() { + return rows_; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public int getRowsCount() { + return rows_.size(); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public io.greptime.v1.RowData.Row getRows(int index) { + return rows_.get(index); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public io.greptime.v1.RowData.RowOrBuilder getRowsOrBuilder( + int index) { + return rows_.get(index); + } + + 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 (regionId_ != 0L) { + output.writeUInt64(1, regionId_); + } + for (int i = 0; i < rows_.size(); i++) { + output.writeMessage(2, rows_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (regionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, regionId_); + } + for (int i = 0; i < rows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, rows_.get(i)); + } + 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 io.greptime.v1.region.Server.InsertRequest)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.InsertRequest other = (io.greptime.v1.region.Server.InsertRequest) obj; + + if (getRegionId() + != other.getRegionId()) return false; + if (!getRowsList() + .equals(other.getRowsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRegionId()); + if (getRowsCount() > 0) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRowsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.InsertRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.InsertRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.InsertRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.InsertRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.InsertRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.InsertRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.InsertRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.InsertRequest 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 io.greptime.v1.region.Server.InsertRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.InsertRequest 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 io.greptime.v1.region.Server.InsertRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.InsertRequest 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(io.greptime.v1.region.Server.InsertRequest 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.region.InsertRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.InsertRequest) + io.greptime.v1.region.Server.InsertRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_InsertRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_InsertRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.InsertRequest.class, io.greptime.v1.region.Server.InsertRequest.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.InsertRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + regionId_ = 0L; + + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + rowsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_InsertRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.InsertRequest getDefaultInstanceForType() { + return io.greptime.v1.region.Server.InsertRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.InsertRequest build() { + io.greptime.v1.region.Server.InsertRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.InsertRequest buildPartial() { + io.greptime.v1.region.Server.InsertRequest result = new io.greptime.v1.region.Server.InsertRequest(this); + int from_bitField0_ = bitField0_; + result.regionId_ = regionId_; + if (rowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.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 io.greptime.v1.region.Server.InsertRequest) { + return mergeFrom((io.greptime.v1.region.Server.InsertRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.InsertRequest other) { + if (other == io.greptime.v1.region.Server.InsertRequest.getDefaultInstance()) return this; + if (other.getRegionId() != 0L) { + setRegionId(other.getRegionId()); + } + if (rowsBuilder_ == null) { + if (!other.rows_.isEmpty()) { + if (rows_.isEmpty()) { + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRowsIsMutable(); + rows_.addAll(other.rows_); + } + onChanged(); + } + } else { + if (!other.rows_.isEmpty()) { + if (rowsBuilder_.isEmpty()) { + rowsBuilder_.dispose(); + rowsBuilder_ = null; + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000001); + rowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRowsFieldBuilder() : null; + } else { + rowsBuilder_.addAllMessages(other.rows_); + } + } + } + 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 { + io.greptime.v1.region.Server.InsertRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.InsertRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long regionId_ ; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + /** + * uint64 region_id = 1; + * @param value The regionId to set. + * @return This builder for chaining. + */ + public Builder setRegionId(long value) { + + regionId_ = value; + onChanged(); + return this; + } + /** + * uint64 region_id = 1; + * @return This builder for chaining. + */ + public Builder clearRegionId() { + + regionId_ = 0L; + onChanged(); + return this; + } + + private java.util.List rows_ = + java.util.Collections.emptyList(); + private void ensureRowsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rows_ = new java.util.ArrayList(rows_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Row, io.greptime.v1.RowData.Row.Builder, io.greptime.v1.RowData.RowOrBuilder> rowsBuilder_; + + /** + * repeated .greptime.v1.Row rows = 2; + */ + public java.util.List getRowsList() { + if (rowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rows_); + } else { + return rowsBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public int getRowsCount() { + if (rowsBuilder_ == null) { + return rows_.size(); + } else { + return rowsBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.Row getRows(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder setRows( + int index, io.greptime.v1.RowData.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.set(index, value); + onChanged(); + } else { + rowsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder setRows( + int index, io.greptime.v1.RowData.Row.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.set(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addRows(io.greptime.v1.RowData.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(value); + onChanged(); + } else { + rowsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addRows( + int index, io.greptime.v1.RowData.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(index, value); + onChanged(); + } else { + rowsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addRows( + io.greptime.v1.RowData.Row.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addRows( + int index, io.greptime.v1.RowData.Row.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addAllRows( + java.lang.Iterable values) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rows_); + onChanged(); + } else { + rowsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rowsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder removeRows(int index) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.remove(index); + onChanged(); + } else { + rowsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.Row.Builder getRowsBuilder( + int index) { + return getRowsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.RowOrBuilder getRowsOrBuilder( + int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); } else { + return rowsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public java.util.List + getRowsOrBuilderList() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rows_); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.Row.Builder addRowsBuilder() { + return getRowsFieldBuilder().addBuilder( + io.greptime.v1.RowData.Row.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.Row.Builder addRowsBuilder( + int index) { + return getRowsFieldBuilder().addBuilder( + index, io.greptime.v1.RowData.Row.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public java.util.List + getRowsBuilderList() { + return getRowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Row, io.greptime.v1.RowData.Row.Builder, io.greptime.v1.RowData.RowOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Row, io.greptime.v1.RowData.Row.Builder, io.greptime.v1.RowData.RowOrBuilder>( + rows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rows_ = null; + } + return rowsBuilder_; + } + @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.region.InsertRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.InsertRequest) + private static final io.greptime.v1.region.Server.InsertRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.InsertRequest(); + } + + public static io.greptime.v1.region.Server.InsertRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InsertRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InsertRequest(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 io.greptime.v1.region.Server.InsertRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.DeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 region_id = 1; + * @return The regionId. + */ + long getRegionId(); + + /** + * repeated .greptime.v1.Row rows = 2; + */ + java.util.List + getRowsList(); + /** + * repeated .greptime.v1.Row rows = 2; + */ + io.greptime.v1.RowData.Row getRows(int index); + /** + * repeated .greptime.v1.Row rows = 2; + */ + int getRowsCount(); + /** + * repeated .greptime.v1.Row rows = 2; + */ + java.util.List + getRowsOrBuilderList(); + /** + * repeated .greptime.v1.Row rows = 2; + */ + io.greptime.v1.RowData.RowOrBuilder getRowsOrBuilder( + int index); + } + /** + * Protobuf type {@code greptime.v1.region.DeleteRequest} + */ + public static final class DeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.DeleteRequest) + DeleteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteRequest.newBuilder() to construct. + private DeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteRequest() { + rows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + regionId_ = input.readUInt64(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + rows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + rows_.add( + input.readMessage(io.greptime.v1.RowData.Row.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.DeleteRequest.class, io.greptime.v1.region.Server.DeleteRequest.Builder.class); + } + + public static final int REGION_ID_FIELD_NUMBER = 1; + private long regionId_; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + + public static final int ROWS_FIELD_NUMBER = 2; + private java.util.List rows_; + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public java.util.List getRowsList() { + return rows_; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public java.util.List + getRowsOrBuilderList() { + return rows_; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public int getRowsCount() { + return rows_.size(); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public io.greptime.v1.RowData.Row getRows(int index) { + return rows_.get(index); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + @java.lang.Override + public io.greptime.v1.RowData.RowOrBuilder getRowsOrBuilder( + int index) { + return rows_.get(index); + } + + 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 (regionId_ != 0L) { + output.writeUInt64(1, regionId_); + } + for (int i = 0; i < rows_.size(); i++) { + output.writeMessage(2, rows_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (regionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, regionId_); + } + for (int i = 0; i < rows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, rows_.get(i)); + } + 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 io.greptime.v1.region.Server.DeleteRequest)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.DeleteRequest other = (io.greptime.v1.region.Server.DeleteRequest) obj; + + if (getRegionId() + != other.getRegionId()) return false; + if (!getRowsList() + .equals(other.getRowsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRegionId()); + if (getRowsCount() > 0) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRowsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.DeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.DeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.DeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.DeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.DeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.DeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.DeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.DeleteRequest 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 io.greptime.v1.region.Server.DeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.DeleteRequest 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 io.greptime.v1.region.Server.DeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.DeleteRequest 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(io.greptime.v1.region.Server.DeleteRequest 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.region.DeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.DeleteRequest) + io.greptime.v1.region.Server.DeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.DeleteRequest.class, io.greptime.v1.region.Server.DeleteRequest.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.DeleteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + regionId_ = 0L; + + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + rowsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DeleteRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.DeleteRequest getDefaultInstanceForType() { + return io.greptime.v1.region.Server.DeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.DeleteRequest build() { + io.greptime.v1.region.Server.DeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.DeleteRequest buildPartial() { + io.greptime.v1.region.Server.DeleteRequest result = new io.greptime.v1.region.Server.DeleteRequest(this); + int from_bitField0_ = bitField0_; + result.regionId_ = regionId_; + if (rowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.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 io.greptime.v1.region.Server.DeleteRequest) { + return mergeFrom((io.greptime.v1.region.Server.DeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.DeleteRequest other) { + if (other == io.greptime.v1.region.Server.DeleteRequest.getDefaultInstance()) return this; + if (other.getRegionId() != 0L) { + setRegionId(other.getRegionId()); + } + if (rowsBuilder_ == null) { + if (!other.rows_.isEmpty()) { + if (rows_.isEmpty()) { + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRowsIsMutable(); + rows_.addAll(other.rows_); + } + onChanged(); + } + } else { + if (!other.rows_.isEmpty()) { + if (rowsBuilder_.isEmpty()) { + rowsBuilder_.dispose(); + rowsBuilder_ = null; + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000001); + rowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRowsFieldBuilder() : null; + } else { + rowsBuilder_.addAllMessages(other.rows_); + } + } + } + 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 { + io.greptime.v1.region.Server.DeleteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.DeleteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long regionId_ ; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + /** + * uint64 region_id = 1; + * @param value The regionId to set. + * @return This builder for chaining. + */ + public Builder setRegionId(long value) { + + regionId_ = value; + onChanged(); + return this; + } + /** + * uint64 region_id = 1; + * @return This builder for chaining. + */ + public Builder clearRegionId() { + + regionId_ = 0L; + onChanged(); + return this; + } + + private java.util.List rows_ = + java.util.Collections.emptyList(); + private void ensureRowsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rows_ = new java.util.ArrayList(rows_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Row, io.greptime.v1.RowData.Row.Builder, io.greptime.v1.RowData.RowOrBuilder> rowsBuilder_; + + /** + * repeated .greptime.v1.Row rows = 2; + */ + public java.util.List getRowsList() { + if (rowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rows_); + } else { + return rowsBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public int getRowsCount() { + if (rowsBuilder_ == null) { + return rows_.size(); + } else { + return rowsBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.Row getRows(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder setRows( + int index, io.greptime.v1.RowData.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.set(index, value); + onChanged(); + } else { + rowsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder setRows( + int index, io.greptime.v1.RowData.Row.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.set(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addRows(io.greptime.v1.RowData.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(value); + onChanged(); + } else { + rowsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addRows( + int index, io.greptime.v1.RowData.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(index, value); + onChanged(); + } else { + rowsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addRows( + io.greptime.v1.RowData.Row.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addRows( + int index, io.greptime.v1.RowData.Row.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder addAllRows( + java.lang.Iterable values) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rows_); + onChanged(); + } else { + rowsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rowsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public Builder removeRows(int index) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.remove(index); + onChanged(); + } else { + rowsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.Row.Builder getRowsBuilder( + int index) { + return getRowsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.RowOrBuilder getRowsOrBuilder( + int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); } else { + return rowsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public java.util.List + getRowsOrBuilderList() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rows_); + } + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.Row.Builder addRowsBuilder() { + return getRowsFieldBuilder().addBuilder( + io.greptime.v1.RowData.Row.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public io.greptime.v1.RowData.Row.Builder addRowsBuilder( + int index) { + return getRowsFieldBuilder().addBuilder( + index, io.greptime.v1.RowData.Row.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Row rows = 2; + */ + public java.util.List + getRowsBuilderList() { + return getRowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Row, io.greptime.v1.RowData.Row.Builder, io.greptime.v1.RowData.RowOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Row, io.greptime.v1.RowData.Row.Builder, io.greptime.v1.RowData.RowOrBuilder>( + rows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rows_ = null; + } + return rowsBuilder_; + } + @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.region.DeleteRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.DeleteRequest) + private static final io.greptime.v1.region.Server.DeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.DeleteRequest(); + } + + public static io.greptime.v1.region.Server.DeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteRequest(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 io.greptime.v1.region.Server.DeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QueryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.QueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 region_id = 1; + * @return The regionId. + */ + long getRegionId(); + + /** + *
+     * substrait plan to query
+     * 
+ * + * bytes plan = 2; + * @return The plan. + */ + com.google.protobuf.ByteString getPlan(); + } + /** + * Protobuf type {@code greptime.v1.region.QueryRequest} + */ + public static final class QueryRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.QueryRequest) + QueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryRequest.newBuilder() to construct. + private QueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QueryRequest() { + plan_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QueryRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QueryRequest( + 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 8: { + + regionId_ = input.readUInt64(); + break; + } + case 18: { + + plan_ = input.readBytes(); + 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 io.greptime.v1.region.Server.internal_static_greptime_v1_region_QueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_QueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.QueryRequest.class, io.greptime.v1.region.Server.QueryRequest.Builder.class); + } + + public static final int REGION_ID_FIELD_NUMBER = 1; + private long regionId_; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + + public static final int PLAN_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString plan_; + /** + *
+     * substrait plan to query
+     * 
+ * + * bytes plan = 2; + * @return The plan. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlan() { + return plan_; + } + + 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 (regionId_ != 0L) { + output.writeUInt64(1, regionId_); + } + if (!plan_.isEmpty()) { + output.writeBytes(2, plan_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (regionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, regionId_); + } + if (!plan_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, plan_); + } + 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 io.greptime.v1.region.Server.QueryRequest)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.QueryRequest other = (io.greptime.v1.region.Server.QueryRequest) obj; + + if (getRegionId() + != other.getRegionId()) return false; + if (!getPlan() + .equals(other.getPlan())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRegionId()); + hash = (37 * hash) + PLAN_FIELD_NUMBER; + hash = (53 * hash) + getPlan().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.QueryRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.QueryRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.QueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.QueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.QueryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.QueryRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.QueryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.QueryRequest 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 io.greptime.v1.region.Server.QueryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.QueryRequest 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 io.greptime.v1.region.Server.QueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.QueryRequest 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(io.greptime.v1.region.Server.QueryRequest 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.region.QueryRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.QueryRequest) + io.greptime.v1.region.Server.QueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_QueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_QueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.QueryRequest.class, io.greptime.v1.region.Server.QueryRequest.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.QueryRequest.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(); + regionId_ = 0L; + + plan_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_QueryRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.QueryRequest getDefaultInstanceForType() { + return io.greptime.v1.region.Server.QueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.QueryRequest build() { + io.greptime.v1.region.Server.QueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.QueryRequest buildPartial() { + io.greptime.v1.region.Server.QueryRequest result = new io.greptime.v1.region.Server.QueryRequest(this); + result.regionId_ = regionId_; + result.plan_ = plan_; + 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 io.greptime.v1.region.Server.QueryRequest) { + return mergeFrom((io.greptime.v1.region.Server.QueryRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.QueryRequest other) { + if (other == io.greptime.v1.region.Server.QueryRequest.getDefaultInstance()) return this; + if (other.getRegionId() != 0L) { + setRegionId(other.getRegionId()); + } + if (other.getPlan() != com.google.protobuf.ByteString.EMPTY) { + setPlan(other.getPlan()); + } + 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 { + io.greptime.v1.region.Server.QueryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.QueryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long regionId_ ; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + /** + * uint64 region_id = 1; + * @param value The regionId to set. + * @return This builder for chaining. + */ + public Builder setRegionId(long value) { + + regionId_ = value; + onChanged(); + return this; + } + /** + * uint64 region_id = 1; + * @return This builder for chaining. + */ + public Builder clearRegionId() { + + regionId_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString plan_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * substrait plan to query
+       * 
+ * + * bytes plan = 2; + * @return The plan. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlan() { + return plan_; + } + /** + *
+       * substrait plan to query
+       * 
+ * + * bytes plan = 2; + * @param value The plan to set. + * @return This builder for chaining. + */ + public Builder setPlan(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + plan_ = value; + onChanged(); + return this; + } + /** + *
+       * substrait plan to query
+       * 
+ * + * bytes plan = 2; + * @return This builder for chaining. + */ + public Builder clearPlan() { + + plan_ = getDefaultInstance().getPlan(); + 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.region.QueryRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.QueryRequest) + private static final io.greptime.v1.region.Server.QueryRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.QueryRequest(); + } + + public static io.greptime.v1.region.Server.QueryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryRequest(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 io.greptime.v1.region.Server.QueryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.CreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 region_id = 1; + * @return The regionId. + */ + long getRegionId(); + + /** + *
+     * Region engine name
+     * 
+ * + * string engine = 2; + * @return The engine. + */ + java.lang.String getEngine(); + /** + *
+     * Region engine name
+     * 
+ * + * string engine = 2; + * @return The bytes for engine. + */ + com.google.protobuf.ByteString + getEngineBytes(); + + /** + *
+     * Columns in this region.
+     * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + java.util.List + getColumnDefsList(); + /** + *
+     * Columns in this region.
+     * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + io.greptime.v1.region.Server.ColumnDef getColumnDefs(int index); + /** + *
+     * Columns in this region.
+     * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + int getColumnDefsCount(); + /** + *
+     * Columns in this region.
+     * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + java.util.List + getColumnDefsOrBuilderList(); + /** + *
+     * Columns in this region.
+     * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + io.greptime.v1.region.Server.ColumnDefOrBuilder getColumnDefsOrBuilder( + int index); + + /** + *
+     * Columns in the primary key.
+     * 
+ * + * repeated uint32 primary_key = 4; + * @return A list containing the primaryKey. + */ + java.util.List getPrimaryKeyList(); + /** + *
+     * Columns in the primary key.
+     * 
+ * + * repeated uint32 primary_key = 4; + * @return The count of primaryKey. + */ + int getPrimaryKeyCount(); + /** + *
+     * Columns in the primary key.
+     * 
+ * + * repeated uint32 primary_key = 4; + * @param index The index of the element to return. + * @return The primaryKey at the given index. + */ + int getPrimaryKey(int index); + + /** + *
+     * Create region if not exists.
+     * 
+ * + * bool create_if_not_exists = 5; + * @return The createIfNotExists. + */ + boolean getCreateIfNotExists(); + + /** + *
+     * Directory for region's data home. Usually is composed by catalog and table
+     * id
+     * 
+ * + * string region_dir = 6; + * @return The regionDir. + */ + java.lang.String getRegionDir(); + /** + *
+     * Directory for region's data home. Usually is composed by catalog and table
+     * id
+     * 
+ * + * string region_dir = 6; + * @return The bytes for regionDir. + */ + com.google.protobuf.ByteString + getRegionDirBytes(); + + /** + *
+     * Options of the created region.
+     * 
+ * + * map<string, string> options = 7; + */ + int getOptionsCount(); + /** + *
+     * Options of the created region.
+     * 
+ * + * map<string, string> options = 7; + */ + boolean containsOptions( + java.lang.String key); + /** + * Use {@link #getOptionsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getOptions(); + /** + *
+     * Options of the created region.
+     * 
+ * + * map<string, string> options = 7; + */ + java.util.Map + getOptionsMap(); + /** + *
+     * Options of the created region.
+     * 
+ * + * map<string, string> options = 7; + */ + + /* nullable */ +java.lang.String getOptionsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+     * Options of the created region.
+     * 
+ * + * map<string, string> options = 7; + */ + + java.lang.String getOptionsOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code greptime.v1.region.CreateRequest} + */ + public static final class CreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.CreateRequest) + CreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateRequest.newBuilder() to construct. + private CreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateRequest() { + engine_ = ""; + columnDefs_ = java.util.Collections.emptyList(); + primaryKey_ = emptyIntList(); + regionDir_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + regionId_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + engine_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + columnDefs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + columnDefs_.add( + input.readMessage(io.greptime.v1.region.Server.ColumnDef.parser(), extensionRegistry)); + break; + } + case 32: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + primaryKey_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } + primaryKey_.addInt(input.readUInt32()); + break; + } + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { + primaryKey_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + primaryKey_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 40: { + + createIfNotExists_ = input.readBool(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + regionDir_ = s; + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + options_ = com.google.protobuf.MapField.newMapField( + OptionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + options__ = input.readMessage( + OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + options_.getMutableMap().put( + options__.getKey(), options__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + columnDefs_ = java.util.Collections.unmodifiableList(columnDefs_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + primaryKey_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CreateRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.CreateRequest.class, io.greptime.v1.region.Server.CreateRequest.Builder.class); + } + + public static final int REGION_ID_FIELD_NUMBER = 1; + private long regionId_; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + + public static final int ENGINE_FIELD_NUMBER = 2; + private volatile java.lang.Object engine_; + /** + *
+     * Region engine name
+     * 
+ * + * string engine = 2; + * @return The engine. + */ + @java.lang.Override + public java.lang.String getEngine() { + java.lang.Object ref = engine_; + 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(); + engine_ = s; + return s; + } + } + /** + *
+     * Region engine name
+     * 
+ * + * string engine = 2; + * @return The bytes for engine. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEngineBytes() { + java.lang.Object ref = engine_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + engine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLUMN_DEFS_FIELD_NUMBER = 3; + private java.util.List columnDefs_; + /** + *
+     * Columns in this region.
+     * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + @java.lang.Override + public java.util.List getColumnDefsList() { + return columnDefs_; + } + /** + *
+     * Columns in this region.
+     * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + @java.lang.Override + public java.util.List + getColumnDefsOrBuilderList() { + return columnDefs_; + } + /** + *
+     * Columns in this region.
+     * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + @java.lang.Override + public int getColumnDefsCount() { + return columnDefs_.size(); + } + /** + *
+     * Columns in this region.
+     * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + @java.lang.Override + public io.greptime.v1.region.Server.ColumnDef getColumnDefs(int index) { + return columnDefs_.get(index); + } + /** + *
+     * Columns in this region.
+     * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + @java.lang.Override + public io.greptime.v1.region.Server.ColumnDefOrBuilder getColumnDefsOrBuilder( + int index) { + return columnDefs_.get(index); + } + + public static final int PRIMARY_KEY_FIELD_NUMBER = 4; + private com.google.protobuf.Internal.IntList primaryKey_; + /** + *
+     * Columns in the primary key.
+     * 
+ * + * repeated uint32 primary_key = 4; + * @return A list containing the primaryKey. + */ + @java.lang.Override + public java.util.List + getPrimaryKeyList() { + return primaryKey_; + } + /** + *
+     * Columns in the primary key.
+     * 
+ * + * repeated uint32 primary_key = 4; + * @return The count of primaryKey. + */ + public int getPrimaryKeyCount() { + return primaryKey_.size(); + } + /** + *
+     * Columns in the primary key.
+     * 
+ * + * repeated uint32 primary_key = 4; + * @param index The index of the element to return. + * @return The primaryKey at the given index. + */ + public int getPrimaryKey(int index) { + return primaryKey_.getInt(index); + } + private int primaryKeyMemoizedSerializedSize = -1; + + public static final int CREATE_IF_NOT_EXISTS_FIELD_NUMBER = 5; + private boolean createIfNotExists_; + /** + *
+     * Create region if not exists.
+     * 
+ * + * bool create_if_not_exists = 5; + * @return The createIfNotExists. + */ + @java.lang.Override + public boolean getCreateIfNotExists() { + return createIfNotExists_; + } + + public static final int REGION_DIR_FIELD_NUMBER = 6; + private volatile java.lang.Object regionDir_; + /** + *
+     * Directory for region's data home. Usually is composed by catalog and table
+     * id
+     * 
+ * + * string region_dir = 6; + * @return The regionDir. + */ + @java.lang.Override + public java.lang.String getRegionDir() { + java.lang.Object ref = regionDir_; + 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(); + regionDir_ = s; + return s; + } + } + /** + *
+     * Directory for region's data home. Usually is composed by catalog and table
+     * id
+     * 
+ * + * string region_dir = 6; + * @return The bytes for regionDir. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegionDirBytes() { + java.lang.Object ref = regionDir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regionDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPTIONS_FIELD_NUMBER = 7; + private static final class OptionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.greptime.v1.region.Server.internal_static_greptime_v1_region_CreateRequest_OptionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> options_; + private com.google.protobuf.MapField + internalGetOptions() { + if (options_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + return options_; + } + + public int getOptionsCount() { + return internalGetOptions().getMap().size(); + } + /** + *
+     * Options of the created region.
+     * 
+ * + * map<string, string> options = 7; + */ + + @java.lang.Override + public boolean containsOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetOptions().getMap().containsKey(key); + } + /** + * Use {@link #getOptionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOptions() { + return getOptionsMap(); + } + /** + *
+     * Options of the created region.
+     * 
+ * + * map<string, string> options = 7; + */ + @java.lang.Override + + public java.util.Map getOptionsMap() { + return internalGetOptions().getMap(); + } + /** + *
+     * Options of the created region.
+     * 
+ * + * map<string, string> options = 7; + */ + @java.lang.Override + + public java.lang.String getOptionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Options of the created region.
+     * 
+ * + * map<string, string> options = 7; + */ + @java.lang.Override + + public java.lang.String getOptionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (regionId_ != 0L) { + output.writeUInt64(1, regionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engine_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, engine_); + } + for (int i = 0; i < columnDefs_.size(); i++) { + output.writeMessage(3, columnDefs_.get(i)); + } + if (getPrimaryKeyList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(primaryKeyMemoizedSerializedSize); + } + for (int i = 0; i < primaryKey_.size(); i++) { + output.writeUInt32NoTag(primaryKey_.getInt(i)); + } + if (createIfNotExists_ != false) { + output.writeBool(5, createIfNotExists_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionDir_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, regionDir_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetOptions(), + OptionsDefaultEntryHolder.defaultEntry, + 7); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (regionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, regionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engine_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, engine_); + } + for (int i = 0; i < columnDefs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, columnDefs_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < primaryKey_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(primaryKey_.getInt(i)); + } + size += dataSize; + if (!getPrimaryKeyList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + primaryKeyMemoizedSerializedSize = dataSize; + } + if (createIfNotExists_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, createIfNotExists_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionDir_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, regionDir_); + } + for (java.util.Map.Entry entry + : internalGetOptions().getMap().entrySet()) { + com.google.protobuf.MapEntry + options__ = OptionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, options__); + } + 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 io.greptime.v1.region.Server.CreateRequest)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.CreateRequest other = (io.greptime.v1.region.Server.CreateRequest) obj; + + if (getRegionId() + != other.getRegionId()) return false; + if (!getEngine() + .equals(other.getEngine())) return false; + if (!getColumnDefsList() + .equals(other.getColumnDefsList())) return false; + if (!getPrimaryKeyList() + .equals(other.getPrimaryKeyList())) return false; + if (getCreateIfNotExists() + != other.getCreateIfNotExists()) return false; + if (!getRegionDir() + .equals(other.getRegionDir())) return false; + if (!internalGetOptions().equals( + other.internalGetOptions())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRegionId()); + hash = (37 * hash) + ENGINE_FIELD_NUMBER; + hash = (53 * hash) + getEngine().hashCode(); + if (getColumnDefsCount() > 0) { + hash = (37 * hash) + COLUMN_DEFS_FIELD_NUMBER; + hash = (53 * hash) + getColumnDefsList().hashCode(); + } + if (getPrimaryKeyCount() > 0) { + hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryKeyList().hashCode(); + } + hash = (37 * hash) + CREATE_IF_NOT_EXISTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCreateIfNotExists()); + hash = (37 * hash) + REGION_DIR_FIELD_NUMBER; + hash = (53 * hash) + getRegionDir().hashCode(); + if (!internalGetOptions().getMap().isEmpty()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.CreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.CreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.CreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.CreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.CreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.CreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.CreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.CreateRequest 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 io.greptime.v1.region.Server.CreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.CreateRequest 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 io.greptime.v1.region.Server.CreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.CreateRequest 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(io.greptime.v1.region.Server.CreateRequest 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.region.CreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.CreateRequest) + io.greptime.v1.region.Server.CreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CreateRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 7: + return internalGetMutableOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.CreateRequest.class, io.greptime.v1.region.Server.CreateRequest.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.CreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getColumnDefsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + regionId_ = 0L; + + engine_ = ""; + + if (columnDefsBuilder_ == null) { + columnDefs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + columnDefsBuilder_.clear(); + } + primaryKey_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + createIfNotExists_ = false; + + regionDir_ = ""; + + internalGetMutableOptions().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CreateRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.CreateRequest getDefaultInstanceForType() { + return io.greptime.v1.region.Server.CreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.CreateRequest build() { + io.greptime.v1.region.Server.CreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.CreateRequest buildPartial() { + io.greptime.v1.region.Server.CreateRequest result = new io.greptime.v1.region.Server.CreateRequest(this); + int from_bitField0_ = bitField0_; + result.regionId_ = regionId_; + result.engine_ = engine_; + if (columnDefsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + columnDefs_ = java.util.Collections.unmodifiableList(columnDefs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columnDefs_ = columnDefs_; + } else { + result.columnDefs_ = columnDefsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + primaryKey_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.primaryKey_ = primaryKey_; + result.createIfNotExists_ = createIfNotExists_; + result.regionDir_ = regionDir_; + result.options_ = internalGetOptions(); + result.options_.makeImmutable(); + 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 io.greptime.v1.region.Server.CreateRequest) { + return mergeFrom((io.greptime.v1.region.Server.CreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.CreateRequest other) { + if (other == io.greptime.v1.region.Server.CreateRequest.getDefaultInstance()) return this; + if (other.getRegionId() != 0L) { + setRegionId(other.getRegionId()); + } + if (!other.getEngine().isEmpty()) { + engine_ = other.engine_; + onChanged(); + } + if (columnDefsBuilder_ == null) { + if (!other.columnDefs_.isEmpty()) { + if (columnDefs_.isEmpty()) { + columnDefs_ = other.columnDefs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnDefsIsMutable(); + columnDefs_.addAll(other.columnDefs_); + } + onChanged(); + } + } else { + if (!other.columnDefs_.isEmpty()) { + if (columnDefsBuilder_.isEmpty()) { + columnDefsBuilder_.dispose(); + columnDefsBuilder_ = null; + columnDefs_ = other.columnDefs_; + bitField0_ = (bitField0_ & ~0x00000001); + columnDefsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColumnDefsFieldBuilder() : null; + } else { + columnDefsBuilder_.addAllMessages(other.columnDefs_); + } + } + } + if (!other.primaryKey_.isEmpty()) { + if (primaryKey_.isEmpty()) { + primaryKey_ = other.primaryKey_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePrimaryKeyIsMutable(); + primaryKey_.addAll(other.primaryKey_); + } + onChanged(); + } + if (other.getCreateIfNotExists() != false) { + setCreateIfNotExists(other.getCreateIfNotExists()); + } + if (!other.getRegionDir().isEmpty()) { + regionDir_ = other.regionDir_; + onChanged(); + } + internalGetMutableOptions().mergeFrom( + other.internalGetOptions()); + 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 { + io.greptime.v1.region.Server.CreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.CreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long regionId_ ; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + /** + * uint64 region_id = 1; + * @param value The regionId to set. + * @return This builder for chaining. + */ + public Builder setRegionId(long value) { + + regionId_ = value; + onChanged(); + return this; + } + /** + * uint64 region_id = 1; + * @return This builder for chaining. + */ + public Builder clearRegionId() { + + regionId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object engine_ = ""; + /** + *
+       * Region engine name
+       * 
+ * + * string engine = 2; + * @return The engine. + */ + public java.lang.String getEngine() { + java.lang.Object ref = engine_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + engine_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Region engine name
+       * 
+ * + * string engine = 2; + * @return The bytes for engine. + */ + public com.google.protobuf.ByteString + getEngineBytes() { + java.lang.Object ref = engine_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + engine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Region engine name
+       * 
+ * + * string engine = 2; + * @param value The engine to set. + * @return This builder for chaining. + */ + public Builder setEngine( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + engine_ = value; + onChanged(); + return this; + } + /** + *
+       * Region engine name
+       * 
+ * + * string engine = 2; + * @return This builder for chaining. + */ + public Builder clearEngine() { + + engine_ = getDefaultInstance().getEngine(); + onChanged(); + return this; + } + /** + *
+       * Region engine name
+       * 
+ * + * string engine = 2; + * @param value The bytes for engine to set. + * @return This builder for chaining. + */ + public Builder setEngineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + engine_ = value; + onChanged(); + return this; + } + + private java.util.List columnDefs_ = + java.util.Collections.emptyList(); + private void ensureColumnDefsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columnDefs_ = new java.util.ArrayList(columnDefs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.region.Server.ColumnDef, io.greptime.v1.region.Server.ColumnDef.Builder, io.greptime.v1.region.Server.ColumnDefOrBuilder> columnDefsBuilder_; + + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public java.util.List getColumnDefsList() { + if (columnDefsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columnDefs_); + } else { + return columnDefsBuilder_.getMessageList(); + } + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public int getColumnDefsCount() { + if (columnDefsBuilder_ == null) { + return columnDefs_.size(); + } else { + return columnDefsBuilder_.getCount(); + } + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public io.greptime.v1.region.Server.ColumnDef getColumnDefs(int index) { + if (columnDefsBuilder_ == null) { + return columnDefs_.get(index); + } else { + return columnDefsBuilder_.getMessage(index); + } + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public Builder setColumnDefs( + int index, io.greptime.v1.region.Server.ColumnDef value) { + if (columnDefsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnDefsIsMutable(); + columnDefs_.set(index, value); + onChanged(); + } else { + columnDefsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public Builder setColumnDefs( + int index, io.greptime.v1.region.Server.ColumnDef.Builder builderForValue) { + if (columnDefsBuilder_ == null) { + ensureColumnDefsIsMutable(); + columnDefs_.set(index, builderForValue.build()); + onChanged(); + } else { + columnDefsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public Builder addColumnDefs(io.greptime.v1.region.Server.ColumnDef value) { + if (columnDefsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnDefsIsMutable(); + columnDefs_.add(value); + onChanged(); + } else { + columnDefsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public Builder addColumnDefs( + int index, io.greptime.v1.region.Server.ColumnDef value) { + if (columnDefsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnDefsIsMutable(); + columnDefs_.add(index, value); + onChanged(); + } else { + columnDefsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public Builder addColumnDefs( + io.greptime.v1.region.Server.ColumnDef.Builder builderForValue) { + if (columnDefsBuilder_ == null) { + ensureColumnDefsIsMutable(); + columnDefs_.add(builderForValue.build()); + onChanged(); + } else { + columnDefsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public Builder addColumnDefs( + int index, io.greptime.v1.region.Server.ColumnDef.Builder builderForValue) { + if (columnDefsBuilder_ == null) { + ensureColumnDefsIsMutable(); + columnDefs_.add(index, builderForValue.build()); + onChanged(); + } else { + columnDefsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public Builder addAllColumnDefs( + java.lang.Iterable values) { + if (columnDefsBuilder_ == null) { + ensureColumnDefsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columnDefs_); + onChanged(); + } else { + columnDefsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public Builder clearColumnDefs() { + if (columnDefsBuilder_ == null) { + columnDefs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnDefsBuilder_.clear(); + } + return this; + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public Builder removeColumnDefs(int index) { + if (columnDefsBuilder_ == null) { + ensureColumnDefsIsMutable(); + columnDefs_.remove(index); + onChanged(); + } else { + columnDefsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public io.greptime.v1.region.Server.ColumnDef.Builder getColumnDefsBuilder( + int index) { + return getColumnDefsFieldBuilder().getBuilder(index); + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public io.greptime.v1.region.Server.ColumnDefOrBuilder getColumnDefsOrBuilder( + int index) { + if (columnDefsBuilder_ == null) { + return columnDefs_.get(index); } else { + return columnDefsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public java.util.List + getColumnDefsOrBuilderList() { + if (columnDefsBuilder_ != null) { + return columnDefsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columnDefs_); + } + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public io.greptime.v1.region.Server.ColumnDef.Builder addColumnDefsBuilder() { + return getColumnDefsFieldBuilder().addBuilder( + io.greptime.v1.region.Server.ColumnDef.getDefaultInstance()); + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public io.greptime.v1.region.Server.ColumnDef.Builder addColumnDefsBuilder( + int index) { + return getColumnDefsFieldBuilder().addBuilder( + index, io.greptime.v1.region.Server.ColumnDef.getDefaultInstance()); + } + /** + *
+       * Columns in this region.
+       * 
+ * + * repeated .greptime.v1.region.ColumnDef column_defs = 3; + */ + public java.util.List + getColumnDefsBuilderList() { + return getColumnDefsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.region.Server.ColumnDef, io.greptime.v1.region.Server.ColumnDef.Builder, io.greptime.v1.region.Server.ColumnDefOrBuilder> + getColumnDefsFieldBuilder() { + if (columnDefsBuilder_ == null) { + columnDefsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.region.Server.ColumnDef, io.greptime.v1.region.Server.ColumnDef.Builder, io.greptime.v1.region.Server.ColumnDefOrBuilder>( + columnDefs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + columnDefs_ = null; + } + return columnDefsBuilder_; + } + + private com.google.protobuf.Internal.IntList primaryKey_ = emptyIntList(); + private void ensurePrimaryKeyIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + primaryKey_ = mutableCopy(primaryKey_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * Columns in the primary key.
+       * 
+ * + * repeated uint32 primary_key = 4; + * @return A list containing the primaryKey. + */ + public java.util.List + getPrimaryKeyList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(primaryKey_) : primaryKey_; + } + /** + *
+       * Columns in the primary key.
+       * 
+ * + * repeated uint32 primary_key = 4; + * @return The count of primaryKey. + */ + public int getPrimaryKeyCount() { + return primaryKey_.size(); + } + /** + *
+       * Columns in the primary key.
+       * 
+ * + * repeated uint32 primary_key = 4; + * @param index The index of the element to return. + * @return The primaryKey at the given index. + */ + public int getPrimaryKey(int index) { + return primaryKey_.getInt(index); + } + /** + *
+       * Columns in the primary key.
+       * 
+ * + * repeated uint32 primary_key = 4; + * @param index The index to set the value at. + * @param value The primaryKey to set. + * @return This builder for chaining. + */ + public Builder setPrimaryKey( + int index, int value) { + ensurePrimaryKeyIsMutable(); + primaryKey_.setInt(index, value); + onChanged(); + return this; + } + /** + *
+       * Columns in the primary key.
+       * 
+ * + * repeated uint32 primary_key = 4; + * @param value The primaryKey to add. + * @return This builder for chaining. + */ + public Builder addPrimaryKey(int value) { + ensurePrimaryKeyIsMutable(); + primaryKey_.addInt(value); + onChanged(); + return this; + } + /** + *
+       * Columns in the primary key.
+       * 
+ * + * repeated uint32 primary_key = 4; + * @param values The primaryKey to add. + * @return This builder for chaining. + */ + public Builder addAllPrimaryKey( + java.lang.Iterable values) { + ensurePrimaryKeyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, primaryKey_); + onChanged(); + return this; + } + /** + *
+       * Columns in the primary key.
+       * 
+ * + * repeated uint32 primary_key = 4; + * @return This builder for chaining. + */ + public Builder clearPrimaryKey() { + primaryKey_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private boolean createIfNotExists_ ; + /** + *
+       * Create region if not exists.
+       * 
+ * + * bool create_if_not_exists = 5; + * @return The createIfNotExists. + */ + @java.lang.Override + public boolean getCreateIfNotExists() { + return createIfNotExists_; + } + /** + *
+       * Create region if not exists.
+       * 
+ * + * bool create_if_not_exists = 5; + * @param value The createIfNotExists to set. + * @return This builder for chaining. + */ + public Builder setCreateIfNotExists(boolean value) { + + createIfNotExists_ = value; + onChanged(); + return this; + } + /** + *
+       * Create region if not exists.
+       * 
+ * + * bool create_if_not_exists = 5; + * @return This builder for chaining. + */ + public Builder clearCreateIfNotExists() { + + createIfNotExists_ = false; + onChanged(); + return this; + } + + private java.lang.Object regionDir_ = ""; + /** + *
+       * Directory for region's data home. Usually is composed by catalog and table
+       * id
+       * 
+ * + * string region_dir = 6; + * @return The regionDir. + */ + public java.lang.String getRegionDir() { + java.lang.Object ref = regionDir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionDir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Directory for region's data home. Usually is composed by catalog and table
+       * id
+       * 
+ * + * string region_dir = 6; + * @return The bytes for regionDir. + */ + public com.google.protobuf.ByteString + getRegionDirBytes() { + java.lang.Object ref = regionDir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regionDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Directory for region's data home. Usually is composed by catalog and table
+       * id
+       * 
+ * + * string region_dir = 6; + * @param value The regionDir to set. + * @return This builder for chaining. + */ + public Builder setRegionDir( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regionDir_ = value; + onChanged(); + return this; + } + /** + *
+       * Directory for region's data home. Usually is composed by catalog and table
+       * id
+       * 
+ * + * string region_dir = 6; + * @return This builder for chaining. + */ + public Builder clearRegionDir() { + + regionDir_ = getDefaultInstance().getRegionDir(); + onChanged(); + return this; + } + /** + *
+       * Directory for region's data home. Usually is composed by catalog and table
+       * id
+       * 
+ * + * string region_dir = 6; + * @param value The bytes for regionDir to set. + * @return This builder for chaining. + */ + public Builder setRegionDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regionDir_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> options_; + private com.google.protobuf.MapField + internalGetOptions() { + if (options_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + return options_; + } + private com.google.protobuf.MapField + internalGetMutableOptions() { + onChanged();; + if (options_ == null) { + options_ = com.google.protobuf.MapField.newMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + if (!options_.isMutable()) { + options_ = options_.copy(); + } + return options_; + } + + public int getOptionsCount() { + return internalGetOptions().getMap().size(); + } + /** + *
+       * Options of the created region.
+       * 
+ * + * map<string, string> options = 7; + */ + + @java.lang.Override + public boolean containsOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetOptions().getMap().containsKey(key); + } + /** + * Use {@link #getOptionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOptions() { + return getOptionsMap(); + } + /** + *
+       * Options of the created region.
+       * 
+ * + * map<string, string> options = 7; + */ + @java.lang.Override + + public java.util.Map getOptionsMap() { + return internalGetOptions().getMap(); + } + /** + *
+       * Options of the created region.
+       * 
+ * + * map<string, string> options = 7; + */ + @java.lang.Override + + public java.lang.String getOptionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Options of the created region.
+       * 
+ * + * map<string, string> options = 7; + */ + @java.lang.Override + + public java.lang.String getOptionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearOptions() { + internalGetMutableOptions().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Options of the created region.
+       * 
+ * + * map<string, string> options = 7; + */ + + public Builder removeOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableOptions().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableOptions() { + return internalGetMutableOptions().getMutableMap(); + } + /** + *
+       * Options of the created region.
+       * 
+ * + * map<string, string> options = 7; + */ + public Builder putOptions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableOptions().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Options of the created region.
+       * 
+ * + * map<string, string> options = 7; + */ + + public Builder putAllOptions( + java.util.Map values) { + internalGetMutableOptions().getMutableMap() + .putAll(values); + 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.region.CreateRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.CreateRequest) + private static final io.greptime.v1.region.Server.CreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.CreateRequest(); + } + + public static io.greptime.v1.region.Server.CreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateRequest(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 io.greptime.v1.region.Server.CreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DropRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.DropRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 region_id = 1; + * @return The regionId. + */ + long getRegionId(); + } + /** + * Protobuf type {@code greptime.v1.region.DropRequest} + */ + public static final class DropRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.DropRequest) + DropRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DropRequest.newBuilder() to construct. + private DropRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DropRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DropRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DropRequest( + 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 8: { + + regionId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DropRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DropRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.DropRequest.class, io.greptime.v1.region.Server.DropRequest.Builder.class); + } + + public static final int REGION_ID_FIELD_NUMBER = 1; + private long regionId_; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + + 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 (regionId_ != 0L) { + output.writeUInt64(1, regionId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (regionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, regionId_); + } + 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 io.greptime.v1.region.Server.DropRequest)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.DropRequest other = (io.greptime.v1.region.Server.DropRequest) obj; + + if (getRegionId() + != other.getRegionId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRegionId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.DropRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.DropRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.DropRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.DropRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.DropRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.DropRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.DropRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.DropRequest 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 io.greptime.v1.region.Server.DropRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.DropRequest 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 io.greptime.v1.region.Server.DropRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.DropRequest 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(io.greptime.v1.region.Server.DropRequest 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.region.DropRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.DropRequest) + io.greptime.v1.region.Server.DropRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DropRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DropRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.DropRequest.class, io.greptime.v1.region.Server.DropRequest.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.DropRequest.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(); + regionId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_DropRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.DropRequest getDefaultInstanceForType() { + return io.greptime.v1.region.Server.DropRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.DropRequest build() { + io.greptime.v1.region.Server.DropRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.DropRequest buildPartial() { + io.greptime.v1.region.Server.DropRequest result = new io.greptime.v1.region.Server.DropRequest(this); + result.regionId_ = regionId_; + 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 io.greptime.v1.region.Server.DropRequest) { + return mergeFrom((io.greptime.v1.region.Server.DropRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.DropRequest other) { + if (other == io.greptime.v1.region.Server.DropRequest.getDefaultInstance()) return this; + if (other.getRegionId() != 0L) { + setRegionId(other.getRegionId()); + } + 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 { + io.greptime.v1.region.Server.DropRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.DropRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long regionId_ ; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + /** + * uint64 region_id = 1; + * @param value The regionId to set. + * @return This builder for chaining. + */ + public Builder setRegionId(long value) { + + regionId_ = value; + onChanged(); + return this; + } + /** + * uint64 region_id = 1; + * @return This builder for chaining. + */ + public Builder clearRegionId() { + + regionId_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.region.DropRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.DropRequest) + private static final io.greptime.v1.region.Server.DropRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.DropRequest(); + } + + public static io.greptime.v1.region.Server.DropRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DropRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DropRequest(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 io.greptime.v1.region.Server.DropRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OpenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.OpenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 region_id = 1; + * @return The regionId. + */ + long getRegionId(); + + /** + *
+     * Region engine name
+     * 
+ * + * string engine = 2; + * @return The engine. + */ + java.lang.String getEngine(); + /** + *
+     * Region engine name
+     * 
+ * + * string engine = 2; + * @return The bytes for engine. + */ + com.google.protobuf.ByteString + getEngineBytes(); + + /** + *
+     * Data directory of the region.
+     * 
+ * + * string region_dir = 3; + * @return The regionDir. + */ + java.lang.String getRegionDir(); + /** + *
+     * Data directory of the region.
+     * 
+ * + * string region_dir = 3; + * @return The bytes for regionDir. + */ + com.google.protobuf.ByteString + getRegionDirBytes(); + + /** + *
+     * Options of the opened region.
+     * 
+ * + * map<string, string> options = 4; + */ + int getOptionsCount(); + /** + *
+     * Options of the opened region.
+     * 
+ * + * map<string, string> options = 4; + */ + boolean containsOptions( + java.lang.String key); + /** + * Use {@link #getOptionsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getOptions(); + /** + *
+     * Options of the opened region.
+     * 
+ * + * map<string, string> options = 4; + */ + java.util.Map + getOptionsMap(); + /** + *
+     * Options of the opened region.
+     * 
+ * + * map<string, string> options = 4; + */ + + /* nullable */ +java.lang.String getOptionsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+     * Options of the opened region.
+     * 
+ * + * map<string, string> options = 4; + */ + + java.lang.String getOptionsOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code greptime.v1.region.OpenRequest} + */ + public static final class OpenRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.OpenRequest) + OpenRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use OpenRequest.newBuilder() to construct. + private OpenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OpenRequest() { + engine_ = ""; + regionDir_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OpenRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OpenRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + regionId_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + engine_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + regionDir_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + options_ = com.google.protobuf.MapField.newMapField( + OptionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + options__ = input.readMessage( + OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + options_.getMutableMap().put( + options__.getKey(), options__.getValue()); + 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 io.greptime.v1.region.Server.internal_static_greptime_v1_region_OpenRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_OpenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.OpenRequest.class, io.greptime.v1.region.Server.OpenRequest.Builder.class); + } + + public static final int REGION_ID_FIELD_NUMBER = 1; + private long regionId_; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + + public static final int ENGINE_FIELD_NUMBER = 2; + private volatile java.lang.Object engine_; + /** + *
+     * Region engine name
+     * 
+ * + * string engine = 2; + * @return The engine. + */ + @java.lang.Override + public java.lang.String getEngine() { + java.lang.Object ref = engine_; + 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(); + engine_ = s; + return s; + } + } + /** + *
+     * Region engine name
+     * 
+ * + * string engine = 2; + * @return The bytes for engine. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEngineBytes() { + java.lang.Object ref = engine_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + engine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_DIR_FIELD_NUMBER = 3; + private volatile java.lang.Object regionDir_; + /** + *
+     * Data directory of the region.
+     * 
+ * + * string region_dir = 3; + * @return The regionDir. + */ + @java.lang.Override + public java.lang.String getRegionDir() { + java.lang.Object ref = regionDir_; + 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(); + regionDir_ = s; + return s; + } + } + /** + *
+     * Data directory of the region.
+     * 
+ * + * string region_dir = 3; + * @return The bytes for regionDir. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegionDirBytes() { + java.lang.Object ref = regionDir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regionDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPTIONS_FIELD_NUMBER = 4; + private static final class OptionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.greptime.v1.region.Server.internal_static_greptime_v1_region_OpenRequest_OptionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> options_; + private com.google.protobuf.MapField + internalGetOptions() { + if (options_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + return options_; + } + + public int getOptionsCount() { + return internalGetOptions().getMap().size(); + } + /** + *
+     * Options of the opened region.
+     * 
+ * + * map<string, string> options = 4; + */ + + @java.lang.Override + public boolean containsOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetOptions().getMap().containsKey(key); + } + /** + * Use {@link #getOptionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOptions() { + return getOptionsMap(); + } + /** + *
+     * Options of the opened region.
+     * 
+ * + * map<string, string> options = 4; + */ + @java.lang.Override + + public java.util.Map getOptionsMap() { + return internalGetOptions().getMap(); + } + /** + *
+     * Options of the opened region.
+     * 
+ * + * map<string, string> options = 4; + */ + @java.lang.Override + + public java.lang.String getOptionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Options of the opened region.
+     * 
+ * + * map<string, string> options = 4; + */ + @java.lang.Override + + public java.lang.String getOptionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 (regionId_ != 0L) { + output.writeUInt64(1, regionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engine_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, engine_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionDir_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, regionDir_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetOptions(), + OptionsDefaultEntryHolder.defaultEntry, + 4); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (regionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, regionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engine_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, engine_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionDir_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, regionDir_); + } + for (java.util.Map.Entry entry + : internalGetOptions().getMap().entrySet()) { + com.google.protobuf.MapEntry + options__ = OptionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, options__); + } + 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 io.greptime.v1.region.Server.OpenRequest)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.OpenRequest other = (io.greptime.v1.region.Server.OpenRequest) obj; + + if (getRegionId() + != other.getRegionId()) return false; + if (!getEngine() + .equals(other.getEngine())) return false; + if (!getRegionDir() + .equals(other.getRegionDir())) return false; + if (!internalGetOptions().equals( + other.internalGetOptions())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRegionId()); + hash = (37 * hash) + ENGINE_FIELD_NUMBER; + hash = (53 * hash) + getEngine().hashCode(); + hash = (37 * hash) + REGION_DIR_FIELD_NUMBER; + hash = (53 * hash) + getRegionDir().hashCode(); + if (!internalGetOptions().getMap().isEmpty()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.OpenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.OpenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.OpenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.OpenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.OpenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.OpenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.OpenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.OpenRequest 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 io.greptime.v1.region.Server.OpenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.OpenRequest 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 io.greptime.v1.region.Server.OpenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.OpenRequest 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(io.greptime.v1.region.Server.OpenRequest 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.region.OpenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.OpenRequest) + io.greptime.v1.region.Server.OpenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_OpenRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_OpenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.OpenRequest.class, io.greptime.v1.region.Server.OpenRequest.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.OpenRequest.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(); + regionId_ = 0L; + + engine_ = ""; + + regionDir_ = ""; + + internalGetMutableOptions().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_OpenRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.OpenRequest getDefaultInstanceForType() { + return io.greptime.v1.region.Server.OpenRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.OpenRequest build() { + io.greptime.v1.region.Server.OpenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.OpenRequest buildPartial() { + io.greptime.v1.region.Server.OpenRequest result = new io.greptime.v1.region.Server.OpenRequest(this); + int from_bitField0_ = bitField0_; + result.regionId_ = regionId_; + result.engine_ = engine_; + result.regionDir_ = regionDir_; + result.options_ = internalGetOptions(); + result.options_.makeImmutable(); + 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 io.greptime.v1.region.Server.OpenRequest) { + return mergeFrom((io.greptime.v1.region.Server.OpenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.OpenRequest other) { + if (other == io.greptime.v1.region.Server.OpenRequest.getDefaultInstance()) return this; + if (other.getRegionId() != 0L) { + setRegionId(other.getRegionId()); + } + if (!other.getEngine().isEmpty()) { + engine_ = other.engine_; + onChanged(); + } + if (!other.getRegionDir().isEmpty()) { + regionDir_ = other.regionDir_; + onChanged(); + } + internalGetMutableOptions().mergeFrom( + other.internalGetOptions()); + 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 { + io.greptime.v1.region.Server.OpenRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.OpenRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long regionId_ ; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + /** + * uint64 region_id = 1; + * @param value The regionId to set. + * @return This builder for chaining. + */ + public Builder setRegionId(long value) { + + regionId_ = value; + onChanged(); + return this; + } + /** + * uint64 region_id = 1; + * @return This builder for chaining. + */ + public Builder clearRegionId() { + + regionId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object engine_ = ""; + /** + *
+       * Region engine name
+       * 
+ * + * string engine = 2; + * @return The engine. + */ + public java.lang.String getEngine() { + java.lang.Object ref = engine_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + engine_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Region engine name
+       * 
+ * + * string engine = 2; + * @return The bytes for engine. + */ + public com.google.protobuf.ByteString + getEngineBytes() { + java.lang.Object ref = engine_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + engine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Region engine name
+       * 
+ * + * string engine = 2; + * @param value The engine to set. + * @return This builder for chaining. + */ + public Builder setEngine( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + engine_ = value; + onChanged(); + return this; + } + /** + *
+       * Region engine name
+       * 
+ * + * string engine = 2; + * @return This builder for chaining. + */ + public Builder clearEngine() { + + engine_ = getDefaultInstance().getEngine(); + onChanged(); + return this; + } + /** + *
+       * Region engine name
+       * 
+ * + * string engine = 2; + * @param value The bytes for engine to set. + * @return This builder for chaining. + */ + public Builder setEngineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + engine_ = value; + onChanged(); + return this; + } + + private java.lang.Object regionDir_ = ""; + /** + *
+       * Data directory of the region.
+       * 
+ * + * string region_dir = 3; + * @return The regionDir. + */ + public java.lang.String getRegionDir() { + java.lang.Object ref = regionDir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionDir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Data directory of the region.
+       * 
+ * + * string region_dir = 3; + * @return The bytes for regionDir. + */ + public com.google.protobuf.ByteString + getRegionDirBytes() { + java.lang.Object ref = regionDir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regionDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Data directory of the region.
+       * 
+ * + * string region_dir = 3; + * @param value The regionDir to set. + * @return This builder for chaining. + */ + public Builder setRegionDir( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regionDir_ = value; + onChanged(); + return this; + } + /** + *
+       * Data directory of the region.
+       * 
+ * + * string region_dir = 3; + * @return This builder for chaining. + */ + public Builder clearRegionDir() { + + regionDir_ = getDefaultInstance().getRegionDir(); + onChanged(); + return this; + } + /** + *
+       * Data directory of the region.
+       * 
+ * + * string region_dir = 3; + * @param value The bytes for regionDir to set. + * @return This builder for chaining. + */ + public Builder setRegionDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regionDir_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> options_; + private com.google.protobuf.MapField + internalGetOptions() { + if (options_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + return options_; + } + private com.google.protobuf.MapField + internalGetMutableOptions() { + onChanged();; + if (options_ == null) { + options_ = com.google.protobuf.MapField.newMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + if (!options_.isMutable()) { + options_ = options_.copy(); + } + return options_; + } + + public int getOptionsCount() { + return internalGetOptions().getMap().size(); + } + /** + *
+       * Options of the opened region.
+       * 
+ * + * map<string, string> options = 4; + */ + + @java.lang.Override + public boolean containsOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetOptions().getMap().containsKey(key); + } + /** + * Use {@link #getOptionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOptions() { + return getOptionsMap(); + } + /** + *
+       * Options of the opened region.
+       * 
+ * + * map<string, string> options = 4; + */ + @java.lang.Override + + public java.util.Map getOptionsMap() { + return internalGetOptions().getMap(); + } + /** + *
+       * Options of the opened region.
+       * 
+ * + * map<string, string> options = 4; + */ + @java.lang.Override + + public java.lang.String getOptionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Options of the opened region.
+       * 
+ * + * map<string, string> options = 4; + */ + @java.lang.Override + + public java.lang.String getOptionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearOptions() { + internalGetMutableOptions().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Options of the opened region.
+       * 
+ * + * map<string, string> options = 4; + */ + + public Builder removeOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableOptions().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableOptions() { + return internalGetMutableOptions().getMutableMap(); + } + /** + *
+       * Options of the opened region.
+       * 
+ * + * map<string, string> options = 4; + */ + public Builder putOptions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableOptions().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Options of the opened region.
+       * 
+ * + * map<string, string> options = 4; + */ + + public Builder putAllOptions( + java.util.Map values) { + internalGetMutableOptions().getMutableMap() + .putAll(values); + 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.region.OpenRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.OpenRequest) + private static final io.greptime.v1.region.Server.OpenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.OpenRequest(); + } + + public static io.greptime.v1.region.Server.OpenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OpenRequest(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 io.greptime.v1.region.Server.OpenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CloseRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.CloseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 region_id = 1; + * @return The regionId. + */ + long getRegionId(); + } + /** + * Protobuf type {@code greptime.v1.region.CloseRequest} + */ + public static final class CloseRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.CloseRequest) + CloseRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloseRequest.newBuilder() to construct. + private CloseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CloseRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CloseRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CloseRequest( + 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 8: { + + regionId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CloseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CloseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.CloseRequest.class, io.greptime.v1.region.Server.CloseRequest.Builder.class); + } + + public static final int REGION_ID_FIELD_NUMBER = 1; + private long regionId_; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + + 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 (regionId_ != 0L) { + output.writeUInt64(1, regionId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (regionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, regionId_); + } + 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 io.greptime.v1.region.Server.CloseRequest)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.CloseRequest other = (io.greptime.v1.region.Server.CloseRequest) obj; + + if (getRegionId() + != other.getRegionId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRegionId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.CloseRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.CloseRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.CloseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.CloseRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.CloseRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.CloseRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.CloseRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.CloseRequest 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 io.greptime.v1.region.Server.CloseRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.CloseRequest 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 io.greptime.v1.region.Server.CloseRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.CloseRequest 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(io.greptime.v1.region.Server.CloseRequest 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.region.CloseRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.CloseRequest) + io.greptime.v1.region.Server.CloseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CloseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CloseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.CloseRequest.class, io.greptime.v1.region.Server.CloseRequest.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.CloseRequest.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(); + regionId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CloseRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.CloseRequest getDefaultInstanceForType() { + return io.greptime.v1.region.Server.CloseRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.CloseRequest build() { + io.greptime.v1.region.Server.CloseRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.CloseRequest buildPartial() { + io.greptime.v1.region.Server.CloseRequest result = new io.greptime.v1.region.Server.CloseRequest(this); + result.regionId_ = regionId_; + 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 io.greptime.v1.region.Server.CloseRequest) { + return mergeFrom((io.greptime.v1.region.Server.CloseRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.CloseRequest other) { + if (other == io.greptime.v1.region.Server.CloseRequest.getDefaultInstance()) return this; + if (other.getRegionId() != 0L) { + setRegionId(other.getRegionId()); + } + 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 { + io.greptime.v1.region.Server.CloseRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.CloseRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long regionId_ ; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + /** + * uint64 region_id = 1; + * @param value The regionId to set. + * @return This builder for chaining. + */ + public Builder setRegionId(long value) { + + regionId_ = value; + onChanged(); + return this; + } + /** + * uint64 region_id = 1; + * @return This builder for chaining. + */ + public Builder clearRegionId() { + + regionId_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.region.CloseRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.CloseRequest) + private static final io.greptime.v1.region.Server.CloseRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.CloseRequest(); + } + + public static io.greptime.v1.region.Server.CloseRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloseRequest(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 io.greptime.v1.region.Server.CloseRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AlterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.AlterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 region_id = 1; + * @return The regionId. + */ + long getRegionId(); + } + /** + *
+   * TODO: implement alter request
+   * 
+ * + * Protobuf type {@code greptime.v1.region.AlterRequest} + */ + public static final class AlterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.AlterRequest) + AlterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlterRequest.newBuilder() to construct. + private AlterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlterRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AlterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlterRequest( + 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 8: { + + regionId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AlterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AlterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.AlterRequest.class, io.greptime.v1.region.Server.AlterRequest.Builder.class); + } + + public static final int REGION_ID_FIELD_NUMBER = 1; + private long regionId_; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + + 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 (regionId_ != 0L) { + output.writeUInt64(1, regionId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (regionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, regionId_); + } + 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 io.greptime.v1.region.Server.AlterRequest)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.AlterRequest other = (io.greptime.v1.region.Server.AlterRequest) obj; + + if (getRegionId() + != other.getRegionId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRegionId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.AlterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.AlterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.AlterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.AlterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.AlterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.AlterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.AlterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.AlterRequest 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 io.greptime.v1.region.Server.AlterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.AlterRequest 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 io.greptime.v1.region.Server.AlterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.AlterRequest 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(io.greptime.v1.region.Server.AlterRequest 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; + } + /** + *
+     * TODO: implement alter request
+     * 
+ * + * Protobuf type {@code greptime.v1.region.AlterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.AlterRequest) + io.greptime.v1.region.Server.AlterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AlterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AlterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.AlterRequest.class, io.greptime.v1.region.Server.AlterRequest.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.AlterRequest.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(); + regionId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AlterRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.AlterRequest getDefaultInstanceForType() { + return io.greptime.v1.region.Server.AlterRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.AlterRequest build() { + io.greptime.v1.region.Server.AlterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.AlterRequest buildPartial() { + io.greptime.v1.region.Server.AlterRequest result = new io.greptime.v1.region.Server.AlterRequest(this); + result.regionId_ = regionId_; + 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 io.greptime.v1.region.Server.AlterRequest) { + return mergeFrom((io.greptime.v1.region.Server.AlterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.AlterRequest other) { + if (other == io.greptime.v1.region.Server.AlterRequest.getDefaultInstance()) return this; + if (other.getRegionId() != 0L) { + setRegionId(other.getRegionId()); + } + 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 { + io.greptime.v1.region.Server.AlterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.AlterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long regionId_ ; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + /** + * uint64 region_id = 1; + * @param value The regionId to set. + * @return This builder for chaining. + */ + public Builder setRegionId(long value) { + + regionId_ = value; + onChanged(); + return this; + } + /** + * uint64 region_id = 1; + * @return This builder for chaining. + */ + public Builder clearRegionId() { + + regionId_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.region.AlterRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest) + private static final io.greptime.v1.region.Server.AlterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.AlterRequest(); + } + + public static io.greptime.v1.region.Server.AlterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AlterRequest(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 io.greptime.v1.region.Server.AlterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FlushRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.FlushRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 region_id = 1; + * @return The regionId. + */ + long getRegionId(); + } + /** + * Protobuf type {@code greptime.v1.region.FlushRequest} + */ + public static final class FlushRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.FlushRequest) + FlushRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use FlushRequest.newBuilder() to construct. + private FlushRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FlushRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FlushRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FlushRequest( + 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 8: { + + regionId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_FlushRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_FlushRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.FlushRequest.class, io.greptime.v1.region.Server.FlushRequest.Builder.class); + } + + public static final int REGION_ID_FIELD_NUMBER = 1; + private long regionId_; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + + 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 (regionId_ != 0L) { + output.writeUInt64(1, regionId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (regionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, regionId_); + } + 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 io.greptime.v1.region.Server.FlushRequest)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.FlushRequest other = (io.greptime.v1.region.Server.FlushRequest) obj; + + if (getRegionId() + != other.getRegionId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRegionId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.FlushRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.FlushRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.FlushRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.FlushRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.FlushRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.FlushRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.FlushRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.FlushRequest 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 io.greptime.v1.region.Server.FlushRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.FlushRequest 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 io.greptime.v1.region.Server.FlushRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.FlushRequest 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(io.greptime.v1.region.Server.FlushRequest 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.region.FlushRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.FlushRequest) + io.greptime.v1.region.Server.FlushRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_FlushRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_FlushRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.FlushRequest.class, io.greptime.v1.region.Server.FlushRequest.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.FlushRequest.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(); + regionId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_FlushRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.FlushRequest getDefaultInstanceForType() { + return io.greptime.v1.region.Server.FlushRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.FlushRequest build() { + io.greptime.v1.region.Server.FlushRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.FlushRequest buildPartial() { + io.greptime.v1.region.Server.FlushRequest result = new io.greptime.v1.region.Server.FlushRequest(this); + result.regionId_ = regionId_; + 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 io.greptime.v1.region.Server.FlushRequest) { + return mergeFrom((io.greptime.v1.region.Server.FlushRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.FlushRequest other) { + if (other == io.greptime.v1.region.Server.FlushRequest.getDefaultInstance()) return this; + if (other.getRegionId() != 0L) { + setRegionId(other.getRegionId()); + } + 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 { + io.greptime.v1.region.Server.FlushRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.FlushRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long regionId_ ; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + /** + * uint64 region_id = 1; + * @param value The regionId to set. + * @return This builder for chaining. + */ + public Builder setRegionId(long value) { + + regionId_ = value; + onChanged(); + return this; + } + /** + * uint64 region_id = 1; + * @return This builder for chaining. + */ + public Builder clearRegionId() { + + regionId_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.region.FlushRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.FlushRequest) + private static final io.greptime.v1.region.Server.FlushRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.FlushRequest(); + } + + public static io.greptime.v1.region.Server.FlushRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlushRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FlushRequest(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 io.greptime.v1.region.Server.FlushRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompactRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.CompactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 region_id = 1; + * @return The regionId. + */ + long getRegionId(); + } + /** + * Protobuf type {@code greptime.v1.region.CompactRequest} + */ + public static final class CompactRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.CompactRequest) + CompactRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompactRequest.newBuilder() to construct. + private CompactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompactRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompactRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompactRequest( + 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 8: { + + regionId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CompactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CompactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.CompactRequest.class, io.greptime.v1.region.Server.CompactRequest.Builder.class); + } + + public static final int REGION_ID_FIELD_NUMBER = 1; + private long regionId_; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + + 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 (regionId_ != 0L) { + output.writeUInt64(1, regionId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (regionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, regionId_); + } + 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 io.greptime.v1.region.Server.CompactRequest)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.CompactRequest other = (io.greptime.v1.region.Server.CompactRequest) obj; + + if (getRegionId() + != other.getRegionId()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRegionId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.CompactRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.CompactRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.CompactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.CompactRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.CompactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.CompactRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.CompactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.CompactRequest 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 io.greptime.v1.region.Server.CompactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.CompactRequest 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 io.greptime.v1.region.Server.CompactRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.CompactRequest 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(io.greptime.v1.region.Server.CompactRequest 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.region.CompactRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.CompactRequest) + io.greptime.v1.region.Server.CompactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CompactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CompactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.CompactRequest.class, io.greptime.v1.region.Server.CompactRequest.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.CompactRequest.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(); + regionId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_CompactRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.CompactRequest getDefaultInstanceForType() { + return io.greptime.v1.region.Server.CompactRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.CompactRequest build() { + io.greptime.v1.region.Server.CompactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.CompactRequest buildPartial() { + io.greptime.v1.region.Server.CompactRequest result = new io.greptime.v1.region.Server.CompactRequest(this); + result.regionId_ = regionId_; + 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 io.greptime.v1.region.Server.CompactRequest) { + return mergeFrom((io.greptime.v1.region.Server.CompactRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.CompactRequest other) { + if (other == io.greptime.v1.region.Server.CompactRequest.getDefaultInstance()) return this; + if (other.getRegionId() != 0L) { + setRegionId(other.getRegionId()); + } + 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 { + io.greptime.v1.region.Server.CompactRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.CompactRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long regionId_ ; + /** + * uint64 region_id = 1; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + /** + * uint64 region_id = 1; + * @param value The regionId to set. + * @return This builder for chaining. + */ + public Builder setRegionId(long value) { + + regionId_ = value; + onChanged(); + return this; + } + /** + * uint64 region_id = 1; + * @return This builder for chaining. + */ + public Builder clearRegionId() { + + regionId_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.region.CompactRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.CompactRequest) + private static final io.greptime.v1.region.Server.CompactRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.CompactRequest(); + } + + public static io.greptime.v1.region.Server.CompactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompactRequest(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 io.greptime.v1.region.Server.CompactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ColumnDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.ColumnDef) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * uint32 column_id = 2; + * @return The columnId. + */ + int getColumnId(); + + /** + * .greptime.v1.ColumnDataType datatype = 3; + * @return The enum numeric value on the wire for datatype. + */ + int getDatatypeValue(); + /** + * .greptime.v1.ColumnDataType datatype = 3; + * @return The datatype. + */ + io.greptime.v1.Common.ColumnDataType getDatatype(); + + /** + * bool is_nullable = 4; + * @return The isNullable. + */ + boolean getIsNullable(); + + /** + * bytes default_constraint = 5; + * @return The defaultConstraint. + */ + com.google.protobuf.ByteString getDefaultConstraint(); + + /** + * .greptime.v1.SemanticType semantic_type = 6; + * @return The enum numeric value on the wire for semanticType. + */ + int getSemanticTypeValue(); + /** + * .greptime.v1.SemanticType semantic_type = 6; + * @return The semanticType. + */ + io.greptime.v1.Common.SemanticType getSemanticType(); + } + /** + * Protobuf type {@code greptime.v1.region.ColumnDef} + */ + public static final class ColumnDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.ColumnDef) + ColumnDefOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnDef.newBuilder() to construct. + private ColumnDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ColumnDef() { + name_ = ""; + datatype_ = 0; + defaultConstraint_ = com.google.protobuf.ByteString.EMPTY; + semanticType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ColumnDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ColumnDef( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + + columnId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + datatype_ = rawValue; + break; + } + case 32: { + + isNullable_ = input.readBool(); + break; + } + case 42: { + + defaultConstraint_ = input.readBytes(); + break; + } + case 48: { + int rawValue = input.readEnum(); + + semanticType_ = rawValue; + 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 io.greptime.v1.region.Server.internal_static_greptime_v1_region_ColumnDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ColumnDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.ColumnDef.class, io.greptime.v1.region.Server.ColumnDef.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @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 = 1; + * @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 COLUMN_ID_FIELD_NUMBER = 2; + private int columnId_; + /** + * uint32 column_id = 2; + * @return The columnId. + */ + @java.lang.Override + public int getColumnId() { + return columnId_; + } + + public static final int DATATYPE_FIELD_NUMBER = 3; + private int datatype_; + /** + * .greptime.v1.ColumnDataType datatype = 3; + * @return The enum numeric value on the wire for datatype. + */ + @java.lang.Override public int getDatatypeValue() { + return datatype_; + } + /** + * .greptime.v1.ColumnDataType datatype = 3; + * @return The datatype. + */ + @java.lang.Override public io.greptime.v1.Common.ColumnDataType getDatatype() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(datatype_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; + } + + public static final int IS_NULLABLE_FIELD_NUMBER = 4; + private boolean isNullable_; + /** + * bool is_nullable = 4; + * @return The isNullable. + */ + @java.lang.Override + public boolean getIsNullable() { + return isNullable_; + } + + public static final int DEFAULT_CONSTRAINT_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString defaultConstraint_; + /** + * bytes default_constraint = 5; + * @return The defaultConstraint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultConstraint() { + return defaultConstraint_; + } + + public static final int SEMANTIC_TYPE_FIELD_NUMBER = 6; + private int semanticType_; + /** + * .greptime.v1.SemanticType semantic_type = 6; + * @return The enum numeric value on the wire for semanticType. + */ + @java.lang.Override public int getSemanticTypeValue() { + return semanticType_; + } + /** + * .greptime.v1.SemanticType semantic_type = 6; + * @return The semanticType. + */ + @java.lang.Override public io.greptime.v1.Common.SemanticType getSemanticType() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.SemanticType result = io.greptime.v1.Common.SemanticType.valueOf(semanticType_); + return result == null ? io.greptime.v1.Common.SemanticType.UNRECOGNIZED : result; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (columnId_ != 0) { + output.writeUInt32(2, columnId_); + } + if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { + output.writeEnum(3, datatype_); + } + if (isNullable_ != false) { + output.writeBool(4, isNullable_); + } + if (!defaultConstraint_.isEmpty()) { + output.writeBytes(5, defaultConstraint_); + } + if (semanticType_ != io.greptime.v1.Common.SemanticType.TAG.getNumber()) { + output.writeEnum(6, semanticType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (columnId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, columnId_); + } + if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, datatype_); + } + if (isNullable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, isNullable_); + } + if (!defaultConstraint_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, defaultConstraint_); + } + if (semanticType_ != io.greptime.v1.Common.SemanticType.TAG.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, semanticType_); + } + 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 io.greptime.v1.region.Server.ColumnDef)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.ColumnDef other = (io.greptime.v1.region.Server.ColumnDef) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getColumnId() + != other.getColumnId()) return false; + if (datatype_ != other.datatype_) return false; + if (getIsNullable() + != other.getIsNullable()) return false; + if (!getDefaultConstraint() + .equals(other.getDefaultConstraint())) return false; + if (semanticType_ != other.semanticType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + COLUMN_ID_FIELD_NUMBER; + hash = (53 * hash) + getColumnId(); + hash = (37 * hash) + DATATYPE_FIELD_NUMBER; + hash = (53 * hash) + datatype_; + hash = (37 * hash) + IS_NULLABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsNullable()); + hash = (37 * hash) + DEFAULT_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getDefaultConstraint().hashCode(); + hash = (37 * hash) + SEMANTIC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + semanticType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.ColumnDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.ColumnDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.ColumnDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.ColumnDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.ColumnDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.ColumnDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.ColumnDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.ColumnDef 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 io.greptime.v1.region.Server.ColumnDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.ColumnDef 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 io.greptime.v1.region.Server.ColumnDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.ColumnDef 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(io.greptime.v1.region.Server.ColumnDef 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.region.ColumnDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.ColumnDef) + io.greptime.v1.region.Server.ColumnDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ColumnDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ColumnDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.ColumnDef.class, io.greptime.v1.region.Server.ColumnDef.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.ColumnDef.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(); + name_ = ""; + + columnId_ = 0; + + datatype_ = 0; + + isNullable_ = false; + + defaultConstraint_ = com.google.protobuf.ByteString.EMPTY; + + semanticType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ColumnDef_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.ColumnDef getDefaultInstanceForType() { + return io.greptime.v1.region.Server.ColumnDef.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.ColumnDef build() { + io.greptime.v1.region.Server.ColumnDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.ColumnDef buildPartial() { + io.greptime.v1.region.Server.ColumnDef result = new io.greptime.v1.region.Server.ColumnDef(this); + result.name_ = name_; + result.columnId_ = columnId_; + result.datatype_ = datatype_; + result.isNullable_ = isNullable_; + result.defaultConstraint_ = defaultConstraint_; + result.semanticType_ = semanticType_; + 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 io.greptime.v1.region.Server.ColumnDef) { + return mergeFrom((io.greptime.v1.region.Server.ColumnDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.ColumnDef other) { + if (other == io.greptime.v1.region.Server.ColumnDef.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getColumnId() != 0) { + setColumnId(other.getColumnId()); + } + if (other.datatype_ != 0) { + setDatatypeValue(other.getDatatypeValue()); + } + if (other.getIsNullable() != false) { + setIsNullable(other.getIsNullable()); + } + if (other.getDefaultConstraint() != com.google.protobuf.ByteString.EMPTY) { + setDefaultConstraint(other.getDefaultConstraint()); + } + if (other.semanticType_ != 0) { + setSemanticTypeValue(other.getSemanticTypeValue()); + } + 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 { + io.greptime.v1.region.Server.ColumnDef parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.ColumnDef) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @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 = 1; + * @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 = 1; + * @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 = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @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 columnId_ ; + /** + * uint32 column_id = 2; + * @return The columnId. + */ + @java.lang.Override + public int getColumnId() { + return columnId_; + } + /** + * uint32 column_id = 2; + * @param value The columnId to set. + * @return This builder for chaining. + */ + public Builder setColumnId(int value) { + + columnId_ = value; + onChanged(); + return this; + } + /** + * uint32 column_id = 2; + * @return This builder for chaining. + */ + public Builder clearColumnId() { + + columnId_ = 0; + onChanged(); + return this; + } + + private int datatype_ = 0; + /** + * .greptime.v1.ColumnDataType datatype = 3; + * @return The enum numeric value on the wire for datatype. + */ + @java.lang.Override public int getDatatypeValue() { + return datatype_; + } + /** + * .greptime.v1.ColumnDataType datatype = 3; + * @param value The enum numeric value on the wire for datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatypeValue(int value) { + + datatype_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.ColumnDataType datatype = 3; + * @return The datatype. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataType getDatatype() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(datatype_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; + } + /** + * .greptime.v1.ColumnDataType datatype = 3; + * @param value The datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatype(io.greptime.v1.Common.ColumnDataType value) { + if (value == null) { + throw new NullPointerException(); + } + + datatype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.ColumnDataType datatype = 3; + * @return This builder for chaining. + */ + public Builder clearDatatype() { + + datatype_ = 0; + onChanged(); + return this; + } + + private boolean isNullable_ ; + /** + * bool is_nullable = 4; + * @return The isNullable. + */ + @java.lang.Override + public boolean getIsNullable() { + return isNullable_; + } + /** + * bool is_nullable = 4; + * @param value The isNullable to set. + * @return This builder for chaining. + */ + public Builder setIsNullable(boolean value) { + + isNullable_ = value; + onChanged(); + return this; + } + /** + * bool is_nullable = 4; + * @return This builder for chaining. + */ + public Builder clearIsNullable() { + + isNullable_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString defaultConstraint_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes default_constraint = 5; + * @return The defaultConstraint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultConstraint() { + return defaultConstraint_; + } + /** + * bytes default_constraint = 5; + * @param value The defaultConstraint to set. + * @return This builder for chaining. + */ + public Builder setDefaultConstraint(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultConstraint_ = value; + onChanged(); + return this; + } + /** + * bytes default_constraint = 5; + * @return This builder for chaining. + */ + public Builder clearDefaultConstraint() { + + defaultConstraint_ = getDefaultInstance().getDefaultConstraint(); + onChanged(); + return this; + } + + private int semanticType_ = 0; + /** + * .greptime.v1.SemanticType semantic_type = 6; + * @return The enum numeric value on the wire for semanticType. + */ + @java.lang.Override public int getSemanticTypeValue() { + return semanticType_; + } + /** + * .greptime.v1.SemanticType semantic_type = 6; + * @param value The enum numeric value on the wire for semanticType to set. + * @return This builder for chaining. + */ + public Builder setSemanticTypeValue(int value) { + + semanticType_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.SemanticType semantic_type = 6; + * @return The semanticType. + */ + @java.lang.Override + public io.greptime.v1.Common.SemanticType getSemanticType() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.SemanticType result = io.greptime.v1.Common.SemanticType.valueOf(semanticType_); + return result == null ? io.greptime.v1.Common.SemanticType.UNRECOGNIZED : result; + } + /** + * .greptime.v1.SemanticType semantic_type = 6; + * @param value The semanticType to set. + * @return This builder for chaining. + */ + public Builder setSemanticType(io.greptime.v1.Common.SemanticType value) { + if (value == null) { + throw new NullPointerException(); + } + + semanticType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.SemanticType semantic_type = 6; + * @return This builder for chaining. + */ + public Builder clearSemanticType() { + + semanticType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.region.ColumnDef) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.ColumnDef) + private static final io.greptime.v1.region.Server.ColumnDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.ColumnDef(); + } + + public static io.greptime.v1.region.Server.ColumnDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnDef parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColumnDef(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 io.greptime.v1.region.Server.ColumnDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_RegionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_RegionRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_RegionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_RegionResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_InsertRequests_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_InsertRequests_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_DeleteRequests_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_DeleteRequests_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_InsertRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_InsertRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_DeleteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_DeleteRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_QueryRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_QueryRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_CreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_CreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_CreateRequest_OptionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_CreateRequest_OptionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_DropRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_DropRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_OpenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_OpenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_OpenRequest_OptionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_OpenRequest_OptionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_CloseRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_CloseRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_AlterRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_AlterRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_FlushRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_FlushRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_CompactRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_CompactRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_ColumnDef_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_ColumnDef_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\037greptime/v1/region/server.proto\022\022grept" + + "ime.v1.region\032\030greptime/v1/common.proto\032" + + "\025greptime/v1/row.proto\"\233\004\n\rRegionRequest" + + "\022*\n\006header\030\001 \001(\0132\032.greptime.v1.RequestHe" + + "ader\0225\n\007inserts\030\003 \001(\0132\".greptime.v1.regi" + + "on.InsertRequestsH\000\0225\n\007deletes\030\004 \001(\0132\".g" + + "reptime.v1.region.DeleteRequestsH\000\0223\n\006cr" + + "eate\030\005 \001(\0132!.greptime.v1.region.CreateRe" + + "questH\000\022/\n\004drop\030\006 \001(\0132\037.greptime.v1.regi" + + "on.DropRequestH\000\022/\n\004open\030\007 \001(\0132\037.greptim" + + "e.v1.region.OpenRequestH\000\0221\n\005close\030\010 \001(\013" + + "2 .greptime.v1.region.CloseRequestH\000\0221\n\005" + + "alter\030\t \001(\0132 .greptime.v1.region.AlterRe" + + "questH\000\0221\n\005flush\030\n \001(\0132 .greptime.v1.reg" + + "ion.FlushRequestH\000\0225\n\007compact\030\013 \001(\0132\".gr" + + "eptime.v1.region.CompactRequestH\000B\t\n\007req" + + "uest\"T\n\016RegionResponse\022+\n\006header\030\001 \001(\0132\033" + + ".greptime.v1.ResponseHeader\022\025\n\raffacted_" + + "rows\030\002 \001(\004\"E\n\016InsertRequests\0223\n\010requests" + + "\030\001 \003(\0132!.greptime.v1.region.InsertReques" + + "t\"E\n\016DeleteRequests\0223\n\010requests\030\001 \003(\0132!." + + "greptime.v1.region.DeleteRequest\"B\n\rInse" + + "rtRequest\022\021\n\tregion_id\030\001 \001(\004\022\036\n\004rows\030\002 \003" + + "(\0132\020.greptime.v1.Row\"B\n\rDeleteRequest\022\021\n" + + "\tregion_id\030\001 \001(\004\022\036\n\004rows\030\002 \003(\0132\020.greptim" + + "e.v1.Row\"/\n\014QueryRequest\022\021\n\tregion_id\030\001 " + + "\001(\004\022\014\n\004plan\030\002 \001(\014\"\236\002\n\rCreateRequest\022\021\n\tr" + + "egion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\0222\n\013column" + + "_defs\030\003 \003(\0132\035.greptime.v1.region.ColumnD" + + "ef\022\023\n\013primary_key\030\004 \003(\r\022\034\n\024create_if_not" + + "_exists\030\005 \001(\010\022\022\n\nregion_dir\030\006 \001(\t\022?\n\007opt" + + "ions\030\007 \003(\0132..greptime.v1.region.CreateRe" + + "quest.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013DropReques" + + "t\022\021\n\tregion_id\030\001 \001(\004\"\263\001\n\013OpenRequest\022\021\n\t" + + "region_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\022\n\nregio" + + "n_dir\030\003 \001(\t\022=\n\007options\030\004 \003(\0132,.greptime." + + "v1.region.OpenRequest.OptionsEntry\032.\n\014Op" + + "tionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001(\004\"!\n" + + "\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\"!\n\014Flus" + + "hRequest\022\021\n\tregion_id\030\001 \001(\004\"#\n\016CompactRe" + + "quest\022\021\n\tregion_id\030\001 \001(\004\"\276\001\n\tColumnDef\022\014" + + "\n\004name\030\001 \001(\t\022\021\n\tcolumn_id\030\002 \001(\r\022-\n\010datat" + + "ype\030\003 \001(\0162\033.greptime.v1.ColumnDataType\022\023" + + "\n\013is_nullable\030\004 \001(\010\022\032\n\022default_constrain" + + "t\030\005 \001(\014\0220\n\rsemantic_type\030\006 \001(\0162\031.greptim" + + "e.v1.SemanticType2_\n\014RegionServer\022O\n\006Han" + + "dle\022!.greptime.v1.region.RegionRequest\032\"" + + ".greptime.v1.region.RegionResponseB]\n\025io" + + ".greptime.v1.regionB\006ServerZ options = 7; + // TODO: add partition def +} + +message DropRequest { uint64 region_id = 1; } + +message OpenRequest { + uint64 region_id = 1; + // Region engine name + string engine = 2; + // Data directory of the region. + string region_dir = 3; + // Options of the opened region. + map options = 4; +} + +message CloseRequest { uint64 region_id = 1; } + +// TODO: implement alter request +message AlterRequest { uint64 region_id = 1; } + +message FlushRequest { uint64 region_id = 1; } + +message CompactRequest { uint64 region_id = 1; } + +message ColumnDef { + string name = 1; + uint32 column_id = 2; + ColumnDataType datatype = 3; + bool is_nullable = 4; + bytes default_constraint = 5; + SemanticType semantic_type = 6; +} diff --git a/src/v1/region.rs b/src/v1/region.rs new file mode 100644 index 00000000..013c60a5 --- /dev/null +++ b/src/v1/region.rs @@ -0,0 +1,15 @@ +// Copyright 2023 Greptime Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +tonic::include_proto!("greptime.v1.region");