diff --git a/c++/greptime/v1/meta/store.grpc.pb.cc b/c++/greptime/v1/meta/store.grpc.pb.cc index 61bfc09b..8309c078 100644 --- a/c++/greptime/v1/meta/store.grpc.pb.cc +++ b/c++/greptime/v1/meta/store.grpc.pb.cc @@ -31,7 +31,6 @@ static const char* Store_method_names[] = { "/greptime.v1.meta.Store/BatchDelete", "/greptime.v1.meta.Store/CompareAndPut", "/greptime.v1.meta.Store/DeleteRange", - "/greptime.v1.meta.Store/MoveValue", }; std::unique_ptr< Store::Stub> Store::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -48,7 +47,6 @@ Store::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, con , rpcmethod_BatchDelete_(Store_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_CompareAndPut_(Store_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_DeleteRange_(Store_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_MoveValue_(Store_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status Store::Stub::Range(::grpc::ClientContext* context, const ::greptime::v1::meta::RangeRequest& request, ::greptime::v1::meta::RangeResponse* response) { @@ -212,29 +210,6 @@ ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DeleteRangeResponse>* S return result; } -::grpc::Status Store::Stub::MoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::greptime::v1::meta::MoveValueResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::MoveValueRequest, ::greptime::v1::meta::MoveValueResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_MoveValue_, context, request, response); -} - -void Store::Stub::async::MoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest* request, ::greptime::v1::meta::MoveValueResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::MoveValueRequest, ::greptime::v1::meta::MoveValueResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveValue_, context, request, response, std::move(f)); -} - -void Store::Stub::async::MoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest* request, ::greptime::v1::meta::MoveValueResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_MoveValue_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MoveValueResponse>* Store::Stub::PrepareAsyncMoveValueRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::MoveValueResponse, ::greptime::v1::meta::MoveValueRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_MoveValue_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MoveValueResponse>* Store::Stub::AsyncMoveValueRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncMoveValueRaw(context, request, cq); - result->StartCall(); - return result; -} - Store::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( Store_method_names[0], @@ -306,16 +281,6 @@ Store::Service::Service() { ::greptime::v1::meta::DeleteRangeResponse* resp) { return service->DeleteRange(ctx, req, resp); }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - Store_method_names[7], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Store::Service, ::greptime::v1::meta::MoveValueRequest, ::greptime::v1::meta::MoveValueResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](Store::Service* service, - ::grpc::ServerContext* ctx, - const ::greptime::v1::meta::MoveValueRequest* req, - ::greptime::v1::meta::MoveValueResponse* resp) { - return service->MoveValue(ctx, req, resp); - }, this))); } Store::Service::~Service() { @@ -370,13 +335,6 @@ ::grpc::Status Store::Service::DeleteRange(::grpc::ServerContext* context, const return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Store::Service::MoveValue(::grpc::ServerContext* context, const ::greptime::v1::meta::MoveValueRequest* request, ::greptime::v1::meta::MoveValueResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - } // namespace greptime } // namespace v1 diff --git a/c++/greptime/v1/meta/store.grpc.pb.h b/c++/greptime/v1/meta/store.grpc.pb.h index f3bc14fe..7dcab44f 100644 --- a/c++/greptime/v1/meta/store.grpc.pb.h +++ b/c++/greptime/v1/meta/store.grpc.pb.h @@ -110,14 +110,6 @@ class Store final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DeleteRangeResponse>> PrepareAsyncDeleteRange(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRangeRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DeleteRangeResponse>>(PrepareAsyncDeleteRangeRaw(context, request, cq)); } - // MoveValue atomically renames the key to the given updated key. - virtual ::grpc::Status MoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::greptime::v1::meta::MoveValueResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MoveValueResponse>> AsyncMoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MoveValueResponse>>(AsyncMoveValueRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MoveValueResponse>> PrepareAsyncMoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MoveValueResponse>>(PrepareAsyncMoveValueRaw(context, request, cq)); - } class async_interface { public: virtual ~async_interface() {} @@ -144,9 +136,6 @@ class Store final { // DeleteRange deletes the given range from the key-value store. virtual void DeleteRange(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRangeRequest* request, ::greptime::v1::meta::DeleteRangeResponse* response, std::function) = 0; virtual void DeleteRange(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRangeRequest* request, ::greptime::v1::meta::DeleteRangeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // MoveValue atomically renames the key to the given updated key. - virtual void MoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest* request, ::greptime::v1::meta::MoveValueResponse* response, std::function) = 0; - virtual void MoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest* request, ::greptime::v1::meta::MoveValueResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } @@ -166,8 +155,6 @@ class Store final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::CompareAndPutResponse>* PrepareAsyncCompareAndPutRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::CompareAndPutRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DeleteRangeResponse>* AsyncDeleteRangeRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRangeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DeleteRangeResponse>* PrepareAsyncDeleteRangeRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRangeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MoveValueResponse>* AsyncMoveValueRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MoveValueResponse>* PrepareAsyncMoveValueRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -221,13 +208,6 @@ class Store final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DeleteRangeResponse>> PrepareAsyncDeleteRange(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRangeRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DeleteRangeResponse>>(PrepareAsyncDeleteRangeRaw(context, request, cq)); } - ::grpc::Status MoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::greptime::v1::meta::MoveValueResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MoveValueResponse>> AsyncMoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MoveValueResponse>>(AsyncMoveValueRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MoveValueResponse>> PrepareAsyncMoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MoveValueResponse>>(PrepareAsyncMoveValueRaw(context, request, cq)); - } class async final : public StubInterface::async_interface { public: @@ -245,8 +225,6 @@ class Store final { void CompareAndPut(::grpc::ClientContext* context, const ::greptime::v1::meta::CompareAndPutRequest* request, ::greptime::v1::meta::CompareAndPutResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void DeleteRange(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRangeRequest* request, ::greptime::v1::meta::DeleteRangeResponse* response, std::function) override; void DeleteRange(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRangeRequest* request, ::greptime::v1::meta::DeleteRangeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void MoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest* request, ::greptime::v1::meta::MoveValueResponse* response, std::function) override; - void MoveValue(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest* request, ::greptime::v1::meta::MoveValueResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -272,8 +250,6 @@ class Store final { ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::CompareAndPutResponse>* PrepareAsyncCompareAndPutRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::CompareAndPutRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DeleteRangeResponse>* AsyncDeleteRangeRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRangeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DeleteRangeResponse>* PrepareAsyncDeleteRangeRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DeleteRangeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MoveValueResponse>* AsyncMoveValueRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MoveValueResponse>* PrepareAsyncMoveValueRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MoveValueRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_Range_; const ::grpc::internal::RpcMethod rpcmethod_Put_; const ::grpc::internal::RpcMethod rpcmethod_BatchGet_; @@ -281,7 +257,6 @@ class Store final { const ::grpc::internal::RpcMethod rpcmethod_BatchDelete_; const ::grpc::internal::RpcMethod rpcmethod_CompareAndPut_; const ::grpc::internal::RpcMethod rpcmethod_DeleteRange_; - const ::grpc::internal::RpcMethod rpcmethod_MoveValue_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -305,8 +280,6 @@ class Store final { virtual ::grpc::Status CompareAndPut(::grpc::ServerContext* context, const ::greptime::v1::meta::CompareAndPutRequest* request, ::greptime::v1::meta::CompareAndPutResponse* response); // DeleteRange deletes the given range from the key-value store. virtual ::grpc::Status DeleteRange(::grpc::ServerContext* context, const ::greptime::v1::meta::DeleteRangeRequest* request, ::greptime::v1::meta::DeleteRangeResponse* response); - // MoveValue atomically renames the key to the given updated key. - virtual ::grpc::Status MoveValue(::grpc::ServerContext* context, const ::greptime::v1::meta::MoveValueRequest* request, ::greptime::v1::meta::MoveValueResponse* response); }; template class WithAsyncMethod_Range : public BaseClass { @@ -448,27 +421,7 @@ class Store final { ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; - template - class WithAsyncMethod_MoveValue : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_MoveValue() { - ::grpc::Service::MarkMethodAsync(7); - } - ~WithAsyncMethod_MoveValue() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MoveValue(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MoveValueRequest* /*request*/, ::greptime::v1::meta::MoveValueResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMoveValue(::grpc::ServerContext* context, ::greptime::v1::meta::MoveValueRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::MoveValueResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_Range > > > > > > > AsyncService; + typedef WithAsyncMethod_Range > > > > > > AsyncService; template class WithCallbackMethod_Range : public BaseClass { private: @@ -658,34 +611,7 @@ class Store final { virtual ::grpc::ServerUnaryReactor* DeleteRange( ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::DeleteRangeRequest* /*request*/, ::greptime::v1::meta::DeleteRangeResponse* /*response*/) { return nullptr; } }; - template - class WithCallbackMethod_MoveValue : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_MoveValue() { - ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::MoveValueRequest, ::greptime::v1::meta::MoveValueResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::greptime::v1::meta::MoveValueRequest* request, ::greptime::v1::meta::MoveValueResponse* response) { return this->MoveValue(context, request, response); }));} - void SetMessageAllocatorFor_MoveValue( - ::grpc::MessageAllocator< ::greptime::v1::meta::MoveValueRequest, ::greptime::v1::meta::MoveValueResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::MoveValueRequest, ::greptime::v1::meta::MoveValueResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_MoveValue() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MoveValue(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MoveValueRequest* /*request*/, ::greptime::v1::meta::MoveValueResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* MoveValue( - ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::MoveValueRequest* /*request*/, ::greptime::v1::meta::MoveValueResponse* /*response*/) { return nullptr; } - }; - typedef WithCallbackMethod_Range > > > > > > > CallbackService; + typedef WithCallbackMethod_Range > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_Range : public BaseClass { @@ -807,23 +733,6 @@ class Store final { } }; template - class WithGenericMethod_MoveValue : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_MoveValue() { - ::grpc::Service::MarkMethodGeneric(7); - } - ~WithGenericMethod_MoveValue() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MoveValue(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MoveValueRequest* /*request*/, ::greptime::v1::meta::MoveValueResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template class WithRawMethod_Range : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -964,26 +873,6 @@ class Store final { } }; template - class WithRawMethod_MoveValue : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_MoveValue() { - ::grpc::Service::MarkMethodRaw(7); - } - ~WithRawMethod_MoveValue() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MoveValue(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MoveValueRequest* /*request*/, ::greptime::v1::meta::MoveValueResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestMoveValue(::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(7, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithRawCallbackMethod_Range : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1138,28 +1027,6 @@ class Store final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_MoveValue : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_MoveValue() { - ::grpc::Service::MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->MoveValue(context, request, response); })); - } - ~WithRawCallbackMethod_MoveValue() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status MoveValue(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MoveValueRequest* /*request*/, ::greptime::v1::meta::MoveValueResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* MoveValue( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template class WithStreamedUnaryMethod_Range : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1348,36 +1215,9 @@ class Store final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedDeleteRange(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::DeleteRangeRequest,::greptime::v1::meta::DeleteRangeResponse>* server_unary_streamer) = 0; }; - template - class WithStreamedUnaryMethod_MoveValue : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_MoveValue() { - ::grpc::Service::MarkMethodStreamed(7, - new ::grpc::internal::StreamedUnaryHandler< - ::greptime::v1::meta::MoveValueRequest, ::greptime::v1::meta::MoveValueResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::greptime::v1::meta::MoveValueRequest, ::greptime::v1::meta::MoveValueResponse>* streamer) { - return this->StreamedMoveValue(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_MoveValue() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status MoveValue(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MoveValueRequest* /*request*/, ::greptime::v1::meta::MoveValueResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedMoveValue(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::MoveValueRequest,::greptime::v1::meta::MoveValueResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_Range > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_Range > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_Range > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_Range > > > > > > StreamedService; }; } // namespace meta diff --git a/c++/greptime/v1/meta/store.pb.cc b/c++/greptime/v1/meta/store.pb.cc index 61f4e838..2111768e 100644 --- a/c++/greptime/v1/meta/store.pb.cc +++ b/c++/greptime/v1/meta/store.pb.cc @@ -233,39 +233,10 @@ struct DeleteRangeResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRangeResponseDefaultTypeInternal _DeleteRangeResponse_default_instance_; -PROTOBUF_CONSTEXPR MoveValueRequest::MoveValueRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.from_key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.to_key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.header_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct MoveValueRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveValueRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveValueRequestDefaultTypeInternal() {} - union { - MoveValueRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveValueRequestDefaultTypeInternal _MoveValueRequest_default_instance_; -PROTOBUF_CONSTEXPR MoveValueResponse::MoveValueResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.header_)*/nullptr - , /*decltype(_impl_.kv_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct MoveValueResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MoveValueResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~MoveValueResponseDefaultTypeInternal() {} - union { - MoveValueResponse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveValueResponseDefaultTypeInternal _MoveValueResponse_default_instance_; } // namespace meta } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fstore_2eproto[16]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fstore_2eproto[14]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fmeta_2fstore_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fstore_2eproto = nullptr; @@ -396,23 +367,6 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fstore_2eproto::offsets[] PROTO PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DeleteRangeResponse, _impl_.header_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DeleteRangeResponse, _impl_.deleted_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DeleteRangeResponse, _impl_.prev_kvs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MoveValueRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MoveValueRequest, _impl_.header_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MoveValueRequest, _impl_.from_key_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MoveValueRequest, _impl_.to_key_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MoveValueResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MoveValueResponse, _impl_.header_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MoveValueResponse, _impl_.kv_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::meta::RangeRequest)}, @@ -429,8 +383,6 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 98, -1, -1, sizeof(::greptime::v1::meta::CompareAndPutResponse)}, { 107, -1, -1, sizeof(::greptime::v1::meta::DeleteRangeRequest)}, { 117, -1, -1, sizeof(::greptime::v1::meta::DeleteRangeResponse)}, - { 126, -1, -1, sizeof(::greptime::v1::meta::MoveValueRequest)}, - { 135, -1, -1, sizeof(::greptime::v1::meta::MoveValueResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -448,8 +400,6 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::meta::_CompareAndPutResponse_default_instance_._instance, &::greptime::v1::meta::_DeleteRangeRequest_default_instance_._instance, &::greptime::v1::meta::_DeleteRangeResponse_default_instance_._instance, - &::greptime::v1::meta::_MoveValueRequest_default_instance_._instance, - &::greptime::v1::meta::_MoveValueResponse_default_instance_._instance, }; const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fstore_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -495,41 +445,33 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fstore_2eproto[] PROT "\003 \001(\014\022\017\n\007prev_kv\030\004 \001(\010\"\206\001\n\023DeleteRangeRe" "sponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.met" "a.ResponseHeader\022\017\n\007deleted\030\002 \001(\003\022,\n\010pre" - "v_kvs\030\003 \003(\0132\032.greptime.v1.meta.KeyValue\"" - "e\n\020MoveValueRequest\022/\n\006header\030\001 \001(\0132\037.gr" - "eptime.v1.meta.RequestHeader\022\020\n\010from_key" - "\030\002 \001(\014\022\016\n\006to_key\030\003 \001(\014\"m\n\021MoveValueRespo" - "nse\0220\n\006header\030\001 \001(\0132 .greptime.v1.meta.R" - "esponseHeader\022&\n\002kv\030\002 \001(\0132\032.greptime.v1." - "meta.KeyValue2\253\005\n\005Store\022H\n\005Range\022\036.grept" - "ime.v1.meta.RangeRequest\032\037.greptime.v1.m" - "eta.RangeResponse\022B\n\003Put\022\034.greptime.v1.m" - "eta.PutRequest\032\035.greptime.v1.meta.PutRes" - "ponse\022Q\n\010BatchGet\022!.greptime.v1.meta.Bat" - "chGetRequest\032\".greptime.v1.meta.BatchGet" - "Response\022Q\n\010BatchPut\022!.greptime.v1.meta." - "BatchPutRequest\032\".greptime.v1.meta.Batch" - "PutResponse\022Z\n\013BatchDelete\022$.greptime.v1" - ".meta.BatchDeleteRequest\032%.greptime.v1.m" - "eta.BatchDeleteResponse\022`\n\rCompareAndPut" - "\022&.greptime.v1.meta.CompareAndPutRequest" - "\032\'.greptime.v1.meta.CompareAndPutRespons" - "e\022Z\n\013DeleteRange\022$.greptime.v1.meta.Dele" - "teRangeRequest\032%.greptime.v1.meta.Delete" - "RangeResponse\022T\n\tMoveValue\022\".greptime.v1" - ".meta.MoveValueRequest\032#.greptime.v1.met" - "a.MoveValueResponseB_impl_.header_; -} -void MoveValueRequest::clear_header() { - if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { - delete _impl_.header_; - } - _impl_.header_ = nullptr; -} -MoveValueRequest::MoveValueRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.MoveValueRequest) -} -MoveValueRequest::MoveValueRequest(const MoveValueRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - MoveValueRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.from_key_){} - , decltype(_impl_.to_key_){} - , decltype(_impl_.header_){nullptr} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.from_key_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.from_key_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_from_key().empty()) { - _this->_impl_.from_key_.Set(from._internal_from_key(), - _this->GetArenaForAllocation()); - } - _impl_.to_key_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.to_key_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_to_key().empty()) { - _this->_impl_.to_key_.Set(from._internal_to_key(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_header()) { - _this->_impl_.header_ = new ::greptime::v1::meta::RequestHeader(*from._impl_.header_); - } - // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.MoveValueRequest) -} - -inline void MoveValueRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.from_key_){} - , decltype(_impl_.to_key_){} - , decltype(_impl_.header_){nullptr} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.from_key_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.from_key_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.to_key_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.to_key_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -MoveValueRequest::~MoveValueRequest() { - // @@protoc_insertion_point(destructor:greptime.v1.meta.MoveValueRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void MoveValueRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.from_key_.Destroy(); - _impl_.to_key_.Destroy(); - if (this != internal_default_instance()) delete _impl_.header_; -} - -void MoveValueRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void MoveValueRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.MoveValueRequest) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.from_key_.ClearToEmpty(); - _impl_.to_key_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { - delete _impl_.header_; - } - _impl_.header_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MoveValueRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .greptime.v1.meta.RequestHeader header = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_header(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bytes from_key = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_from_key(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bytes to_key = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_to_key(); - 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* MoveValueRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.MoveValueRequest) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // .greptime.v1.meta.RequestHeader header = 1; - if (this->_internal_has_header()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::header(this), - _Internal::header(this).GetCachedSize(), target, stream); - } - - // bytes from_key = 2; - if (!this->_internal_from_key().empty()) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_from_key(), target); - } - - // bytes to_key = 3; - if (!this->_internal_to_key().empty()) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_to_key(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.MoveValueRequest) - return target; -} - -size_t MoveValueRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.MoveValueRequest) - 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 from_key = 2; - if (!this->_internal_from_key().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_from_key()); - } - - // bytes to_key = 3; - if (!this->_internal_to_key().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_to_key()); - } - - // .greptime.v1.meta.RequestHeader header = 1; - if (this->_internal_has_header()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.header_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveValueRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MoveValueRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveValueRequest::GetClassData() const { return &_class_data_; } - - -void MoveValueRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.MoveValueRequest) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_from_key().empty()) { - _this->_internal_set_from_key(from._internal_from_key()); - } - if (!from._internal_to_key().empty()) { - _this->_internal_set_to_key(from._internal_to_key()); - } - if (from._internal_has_header()) { - _this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom( - from._internal_header()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void MoveValueRequest::CopyFrom(const MoveValueRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.MoveValueRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MoveValueRequest::IsInitialized() const { - return true; -} - -void MoveValueRequest::InternalSwap(MoveValueRequest* 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_.from_key_, lhs_arena, - &other->_impl_.from_key_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.to_key_, lhs_arena, - &other->_impl_.to_key_, rhs_arena - ); - swap(_impl_.header_, other->_impl_.header_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MoveValueRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fstore_2eproto[14]); -} - -// =================================================================== - -class MoveValueResponse::_Internal { - public: - static const ::greptime::v1::meta::ResponseHeader& header(const MoveValueResponse* msg); - static const ::greptime::v1::meta::KeyValue& kv(const MoveValueResponse* msg); -}; - -const ::greptime::v1::meta::ResponseHeader& -MoveValueResponse::_Internal::header(const MoveValueResponse* msg) { - return *msg->_impl_.header_; -} -const ::greptime::v1::meta::KeyValue& -MoveValueResponse::_Internal::kv(const MoveValueResponse* msg) { - return *msg->_impl_.kv_; -} -void MoveValueResponse::clear_header() { - if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { - delete _impl_.header_; - } - _impl_.header_ = nullptr; -} -void MoveValueResponse::clear_kv() { - if (GetArenaForAllocation() == nullptr && _impl_.kv_ != nullptr) { - delete _impl_.kv_; - } - _impl_.kv_ = nullptr; -} -MoveValueResponse::MoveValueResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.MoveValueResponse) -} -MoveValueResponse::MoveValueResponse(const MoveValueResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - MoveValueResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.header_){nullptr} - , decltype(_impl_.kv_){nullptr} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_header()) { - _this->_impl_.header_ = new ::greptime::v1::meta::ResponseHeader(*from._impl_.header_); - } - if (from._internal_has_kv()) { - _this->_impl_.kv_ = new ::greptime::v1::meta::KeyValue(*from._impl_.kv_); - } - // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.MoveValueResponse) -} - -inline void MoveValueResponse::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.header_){nullptr} - , decltype(_impl_.kv_){nullptr} - , /*decltype(_impl_._cached_size_)*/{} - }; -} - -MoveValueResponse::~MoveValueResponse() { - // @@protoc_insertion_point(destructor:greptime.v1.meta.MoveValueResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void MoveValueResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.header_; - if (this != internal_default_instance()) delete _impl_.kv_; -} - -void MoveValueResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void MoveValueResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.MoveValueResponse) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { - delete _impl_.header_; - } - _impl_.header_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.kv_ != nullptr) { - delete _impl_.kv_; - } - _impl_.kv_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MoveValueResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .greptime.v1.meta.ResponseHeader header = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_header(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .greptime.v1.meta.KeyValue kv = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_kv(), 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* MoveValueResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.MoveValueResponse) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // .greptime.v1.meta.ResponseHeader header = 1; - if (this->_internal_has_header()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::header(this), - _Internal::header(this).GetCachedSize(), target, stream); - } - - // .greptime.v1.meta.KeyValue kv = 2; - if (this->_internal_has_kv()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::kv(this), - _Internal::kv(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.MoveValueResponse) - return target; -} - -size_t MoveValueResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.MoveValueResponse) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .greptime.v1.meta.ResponseHeader header = 1; - if (this->_internal_has_header()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.header_); - } - - // .greptime.v1.meta.KeyValue kv = 2; - if (this->_internal_has_kv()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.kv_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveValueResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MoveValueResponse::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveValueResponse::GetClassData() const { return &_class_data_; } - - -void MoveValueResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.MoveValueResponse) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_header()) { - _this->_internal_mutable_header()->::greptime::v1::meta::ResponseHeader::MergeFrom( - from._internal_header()); - } - if (from._internal_has_kv()) { - _this->_internal_mutable_kv()->::greptime::v1::meta::KeyValue::MergeFrom( - from._internal_kv()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void MoveValueResponse::CopyFrom(const MoveValueResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.MoveValueResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MoveValueResponse::IsInitialized() const { - return true; -} - -void MoveValueResponse::InternalSwap(MoveValueResponse* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MoveValueResponse, _impl_.kv_) - + sizeof(MoveValueResponse::_impl_.kv_) - - PROTOBUF_FIELD_OFFSET(MoveValueResponse, _impl_.header_)>( - reinterpret_cast(&_impl_.header_), - reinterpret_cast(&other->_impl_.header_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata MoveValueResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fstore_2eproto[15]); -} - // @@protoc_insertion_point(namespace_scope) } // namespace meta } // namespace v1 @@ -5011,14 +4411,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DeleteRangeResponse* Arena::CreateMaybeMessage< ::greptime::v1::meta::DeleteRangeResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::DeleteRangeResponse >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::meta::MoveValueRequest* -Arena::CreateMaybeMessage< ::greptime::v1::meta::MoveValueRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::meta::MoveValueRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::greptime::v1::meta::MoveValueResponse* -Arena::CreateMaybeMessage< ::greptime::v1::meta::MoveValueResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::meta::MoveValueResponse >(arena); -} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/c++/greptime/v1/meta/store.pb.h b/c++/greptime/v1/meta/store.pb.h index db2724bb..744a4532 100644 --- a/c++/greptime/v1/meta/store.pb.h +++ b/c++/greptime/v1/meta/store.pb.h @@ -78,12 +78,6 @@ extern DeleteRangeRequestDefaultTypeInternal _DeleteRangeRequest_default_instanc class DeleteRangeResponse; struct DeleteRangeResponseDefaultTypeInternal; extern DeleteRangeResponseDefaultTypeInternal _DeleteRangeResponse_default_instance_; -class MoveValueRequest; -struct MoveValueRequestDefaultTypeInternal; -extern MoveValueRequestDefaultTypeInternal _MoveValueRequest_default_instance_; -class MoveValueResponse; -struct MoveValueResponseDefaultTypeInternal; -extern MoveValueResponseDefaultTypeInternal _MoveValueResponse_default_instance_; class PutRequest; struct PutRequestDefaultTypeInternal; extern PutRequestDefaultTypeInternal _PutRequest_default_instance_; @@ -110,8 +104,6 @@ template<> ::greptime::v1::meta::CompareAndPutRequest* Arena::CreateMaybeMessage template<> ::greptime::v1::meta::CompareAndPutResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::CompareAndPutResponse>(Arena*); template<> ::greptime::v1::meta::DeleteRangeRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::DeleteRangeRequest>(Arena*); template<> ::greptime::v1::meta::DeleteRangeResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::DeleteRangeResponse>(Arena*); -template<> ::greptime::v1::meta::MoveValueRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::MoveValueRequest>(Arena*); -template<> ::greptime::v1::meta::MoveValueResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::MoveValueResponse>(Arena*); template<> ::greptime::v1::meta::PutRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::PutRequest>(Arena*); template<> ::greptime::v1::meta::PutResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::PutResponse>(Arena*); template<> ::greptime::v1::meta::RangeRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::RangeRequest>(Arena*); @@ -2774,372 +2766,6 @@ class DeleteRangeResponse final : union { Impl_ _impl_; }; friend struct ::TableStruct_greptime_2fv1_2fmeta_2fstore_2eproto; }; -// ------------------------------------------------------------------- - -class MoveValueRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.MoveValueRequest) */ { - public: - inline MoveValueRequest() : MoveValueRequest(nullptr) {} - ~MoveValueRequest() override; - explicit PROTOBUF_CONSTEXPR MoveValueRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MoveValueRequest(const MoveValueRequest& from); - MoveValueRequest(MoveValueRequest&& from) noexcept - : MoveValueRequest() { - *this = ::std::move(from); - } - - inline MoveValueRequest& operator=(const MoveValueRequest& from) { - CopyFrom(from); - return *this; - } - inline MoveValueRequest& operator=(MoveValueRequest&& 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 MoveValueRequest& default_instance() { - return *internal_default_instance(); - } - static inline const MoveValueRequest* internal_default_instance() { - return reinterpret_cast( - &_MoveValueRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(MoveValueRequest& a, MoveValueRequest& b) { - a.Swap(&b); - } - inline void Swap(MoveValueRequest* 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(MoveValueRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MoveValueRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MoveValueRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MoveValueRequest& from) { - MoveValueRequest::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(MoveValueRequest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.meta.MoveValueRequest"; - } - protected: - explicit MoveValueRequest(::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 { - kFromKeyFieldNumber = 2, - kToKeyFieldNumber = 3, - kHeaderFieldNumber = 1, - }; - // bytes from_key = 2; - void clear_from_key(); - const std::string& from_key() const; - template - void set_from_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_from_key(); - PROTOBUF_NODISCARD std::string* release_from_key(); - void set_allocated_from_key(std::string* from_key); - private: - const std::string& _internal_from_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_from_key(const std::string& value); - std::string* _internal_mutable_from_key(); - public: - - // bytes to_key = 3; - void clear_to_key(); - const std::string& to_key() const; - template - void set_to_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_to_key(); - PROTOBUF_NODISCARD std::string* release_to_key(); - void set_allocated_to_key(std::string* to_key); - private: - const std::string& _internal_to_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_to_key(const std::string& value); - std::string* _internal_mutable_to_key(); - public: - - // .greptime.v1.meta.RequestHeader header = 1; - bool has_header() const; - private: - bool _internal_has_header() const; - public: - void clear_header(); - const ::greptime::v1::meta::RequestHeader& header() const; - PROTOBUF_NODISCARD ::greptime::v1::meta::RequestHeader* release_header(); - ::greptime::v1::meta::RequestHeader* mutable_header(); - void set_allocated_header(::greptime::v1::meta::RequestHeader* header); - private: - const ::greptime::v1::meta::RequestHeader& _internal_header() const; - ::greptime::v1::meta::RequestHeader* _internal_mutable_header(); - public: - void unsafe_arena_set_allocated_header( - ::greptime::v1::meta::RequestHeader* header); - ::greptime::v1::meta::RequestHeader* unsafe_arena_release_header(); - - // @@protoc_insertion_point(class_scope:greptime.v1.meta.MoveValueRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr from_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr to_key_; - ::greptime::v1::meta::RequestHeader* header_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_greptime_2fv1_2fmeta_2fstore_2eproto; -}; -// ------------------------------------------------------------------- - -class MoveValueResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.MoveValueResponse) */ { - public: - inline MoveValueResponse() : MoveValueResponse(nullptr) {} - ~MoveValueResponse() override; - explicit PROTOBUF_CONSTEXPR MoveValueResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MoveValueResponse(const MoveValueResponse& from); - MoveValueResponse(MoveValueResponse&& from) noexcept - : MoveValueResponse() { - *this = ::std::move(from); - } - - inline MoveValueResponse& operator=(const MoveValueResponse& from) { - CopyFrom(from); - return *this; - } - inline MoveValueResponse& operator=(MoveValueResponse&& 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 MoveValueResponse& default_instance() { - return *internal_default_instance(); - } - static inline const MoveValueResponse* internal_default_instance() { - return reinterpret_cast( - &_MoveValueResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(MoveValueResponse& a, MoveValueResponse& b) { - a.Swap(&b); - } - inline void Swap(MoveValueResponse* 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(MoveValueResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MoveValueResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MoveValueResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MoveValueResponse& from) { - MoveValueResponse::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(MoveValueResponse* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.meta.MoveValueResponse"; - } - protected: - explicit MoveValueResponse(::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, - kKvFieldNumber = 2, - }; - // .greptime.v1.meta.ResponseHeader header = 1; - bool has_header() const; - private: - bool _internal_has_header() const; - public: - void clear_header(); - const ::greptime::v1::meta::ResponseHeader& header() const; - PROTOBUF_NODISCARD ::greptime::v1::meta::ResponseHeader* release_header(); - ::greptime::v1::meta::ResponseHeader* mutable_header(); - void set_allocated_header(::greptime::v1::meta::ResponseHeader* header); - private: - const ::greptime::v1::meta::ResponseHeader& _internal_header() const; - ::greptime::v1::meta::ResponseHeader* _internal_mutable_header(); - public: - void unsafe_arena_set_allocated_header( - ::greptime::v1::meta::ResponseHeader* header); - ::greptime::v1::meta::ResponseHeader* unsafe_arena_release_header(); - - // .greptime.v1.meta.KeyValue kv = 2; - bool has_kv() const; - private: - bool _internal_has_kv() const; - public: - void clear_kv(); - const ::greptime::v1::meta::KeyValue& kv() const; - PROTOBUF_NODISCARD ::greptime::v1::meta::KeyValue* release_kv(); - ::greptime::v1::meta::KeyValue* mutable_kv(); - void set_allocated_kv(::greptime::v1::meta::KeyValue* kv); - private: - const ::greptime::v1::meta::KeyValue& _internal_kv() const; - ::greptime::v1::meta::KeyValue* _internal_mutable_kv(); - public: - void unsafe_arena_set_allocated_kv( - ::greptime::v1::meta::KeyValue* kv); - ::greptime::v1::meta::KeyValue* unsafe_arena_release_kv(); - - // @@protoc_insertion_point(class_scope:greptime.v1.meta.MoveValueResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::greptime::v1::meta::ResponseHeader* header_; - ::greptime::v1::meta::KeyValue* kv_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_greptime_2fv1_2fmeta_2fstore_2eproto; -}; // =================================================================== @@ -5565,369 +5191,6 @@ DeleteRangeResponse::prev_kvs() const { return _impl_.prev_kvs_; } -// ------------------------------------------------------------------- - -// MoveValueRequest - -// .greptime.v1.meta.RequestHeader header = 1; -inline bool MoveValueRequest::_internal_has_header() const { - return this != internal_default_instance() && _impl_.header_ != nullptr; -} -inline bool MoveValueRequest::has_header() const { - return _internal_has_header(); -} -inline const ::greptime::v1::meta::RequestHeader& MoveValueRequest::_internal_header() const { - const ::greptime::v1::meta::RequestHeader* p = _impl_.header_; - return p != nullptr ? *p : reinterpret_cast( - ::greptime::v1::meta::_RequestHeader_default_instance_); -} -inline const ::greptime::v1::meta::RequestHeader& MoveValueRequest::header() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.MoveValueRequest.header) - return _internal_header(); -} -inline void MoveValueRequest::unsafe_arena_set_allocated_header( - ::greptime::v1::meta::RequestHeader* header) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); - } - _impl_.header_ = header; - if (header) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.MoveValueRequest.header) -} -inline ::greptime::v1::meta::RequestHeader* MoveValueRequest::release_header() { - - ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; - _impl_.header_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::greptime::v1::meta::RequestHeader* MoveValueRequest::unsafe_arena_release_header() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.MoveValueRequest.header) - - ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; - _impl_.header_ = nullptr; - return temp; -} -inline ::greptime::v1::meta::RequestHeader* MoveValueRequest::_internal_mutable_header() { - - if (_impl_.header_ == nullptr) { - auto* p = CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(GetArenaForAllocation()); - _impl_.header_ = p; - } - return _impl_.header_; -} -inline ::greptime::v1::meta::RequestHeader* MoveValueRequest::mutable_header() { - ::greptime::v1::meta::RequestHeader* _msg = _internal_mutable_header(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.MoveValueRequest.header) - return _msg; -} -inline void MoveValueRequest::set_allocated_header(::greptime::v1::meta::RequestHeader* header) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); - } - if (header) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)); - if (message_arena != submessage_arena) { - header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, header, submessage_arena); - } - - } else { - - } - _impl_.header_ = header; - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MoveValueRequest.header) -} - -// bytes from_key = 2; -inline void MoveValueRequest::clear_from_key() { - _impl_.from_key_.ClearToEmpty(); -} -inline const std::string& MoveValueRequest::from_key() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.MoveValueRequest.from_key) - return _internal_from_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void MoveValueRequest::set_from_key(ArgT0&& arg0, ArgT... args) { - - _impl_.from_key_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.meta.MoveValueRequest.from_key) -} -inline std::string* MoveValueRequest::mutable_from_key() { - std::string* _s = _internal_mutable_from_key(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.MoveValueRequest.from_key) - return _s; -} -inline const std::string& MoveValueRequest::_internal_from_key() const { - return _impl_.from_key_.Get(); -} -inline void MoveValueRequest::_internal_set_from_key(const std::string& value) { - - _impl_.from_key_.Set(value, GetArenaForAllocation()); -} -inline std::string* MoveValueRequest::_internal_mutable_from_key() { - - return _impl_.from_key_.Mutable(GetArenaForAllocation()); -} -inline std::string* MoveValueRequest::release_from_key() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.MoveValueRequest.from_key) - return _impl_.from_key_.Release(); -} -inline void MoveValueRequest::set_allocated_from_key(std::string* from_key) { - if (from_key != nullptr) { - - } else { - - } - _impl_.from_key_.SetAllocated(from_key, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.from_key_.IsDefault()) { - _impl_.from_key_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MoveValueRequest.from_key) -} - -// bytes to_key = 3; -inline void MoveValueRequest::clear_to_key() { - _impl_.to_key_.ClearToEmpty(); -} -inline const std::string& MoveValueRequest::to_key() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.MoveValueRequest.to_key) - return _internal_to_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void MoveValueRequest::set_to_key(ArgT0&& arg0, ArgT... args) { - - _impl_.to_key_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.meta.MoveValueRequest.to_key) -} -inline std::string* MoveValueRequest::mutable_to_key() { - std::string* _s = _internal_mutable_to_key(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.MoveValueRequest.to_key) - return _s; -} -inline const std::string& MoveValueRequest::_internal_to_key() const { - return _impl_.to_key_.Get(); -} -inline void MoveValueRequest::_internal_set_to_key(const std::string& value) { - - _impl_.to_key_.Set(value, GetArenaForAllocation()); -} -inline std::string* MoveValueRequest::_internal_mutable_to_key() { - - return _impl_.to_key_.Mutable(GetArenaForAllocation()); -} -inline std::string* MoveValueRequest::release_to_key() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.MoveValueRequest.to_key) - return _impl_.to_key_.Release(); -} -inline void MoveValueRequest::set_allocated_to_key(std::string* to_key) { - if (to_key != nullptr) { - - } else { - - } - _impl_.to_key_.SetAllocated(to_key, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.to_key_.IsDefault()) { - _impl_.to_key_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MoveValueRequest.to_key) -} - -// ------------------------------------------------------------------- - -// MoveValueResponse - -// .greptime.v1.meta.ResponseHeader header = 1; -inline bool MoveValueResponse::_internal_has_header() const { - return this != internal_default_instance() && _impl_.header_ != nullptr; -} -inline bool MoveValueResponse::has_header() const { - return _internal_has_header(); -} -inline const ::greptime::v1::meta::ResponseHeader& MoveValueResponse::_internal_header() const { - const ::greptime::v1::meta::ResponseHeader* p = _impl_.header_; - return p != nullptr ? *p : reinterpret_cast( - ::greptime::v1::meta::_ResponseHeader_default_instance_); -} -inline const ::greptime::v1::meta::ResponseHeader& MoveValueResponse::header() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.MoveValueResponse.header) - return _internal_header(); -} -inline void MoveValueResponse::unsafe_arena_set_allocated_header( - ::greptime::v1::meta::ResponseHeader* header) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); - } - _impl_.header_ = header; - if (header) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.MoveValueResponse.header) -} -inline ::greptime::v1::meta::ResponseHeader* MoveValueResponse::release_header() { - - ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; - _impl_.header_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::greptime::v1::meta::ResponseHeader* MoveValueResponse::unsafe_arena_release_header() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.MoveValueResponse.header) - - ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; - _impl_.header_ = nullptr; - return temp; -} -inline ::greptime::v1::meta::ResponseHeader* MoveValueResponse::_internal_mutable_header() { - - if (_impl_.header_ == nullptr) { - auto* p = CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(GetArenaForAllocation()); - _impl_.header_ = p; - } - return _impl_.header_; -} -inline ::greptime::v1::meta::ResponseHeader* MoveValueResponse::mutable_header() { - ::greptime::v1::meta::ResponseHeader* _msg = _internal_mutable_header(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.MoveValueResponse.header) - return _msg; -} -inline void MoveValueResponse::set_allocated_header(::greptime::v1::meta::ResponseHeader* header) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); - } - if (header) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)); - if (message_arena != submessage_arena) { - header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, header, submessage_arena); - } - - } else { - - } - _impl_.header_ = header; - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MoveValueResponse.header) -} - -// .greptime.v1.meta.KeyValue kv = 2; -inline bool MoveValueResponse::_internal_has_kv() const { - return this != internal_default_instance() && _impl_.kv_ != nullptr; -} -inline bool MoveValueResponse::has_kv() const { - return _internal_has_kv(); -} -inline const ::greptime::v1::meta::KeyValue& MoveValueResponse::_internal_kv() const { - const ::greptime::v1::meta::KeyValue* p = _impl_.kv_; - return p != nullptr ? *p : reinterpret_cast( - ::greptime::v1::meta::_KeyValue_default_instance_); -} -inline const ::greptime::v1::meta::KeyValue& MoveValueResponse::kv() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.MoveValueResponse.kv) - return _internal_kv(); -} -inline void MoveValueResponse::unsafe_arena_set_allocated_kv( - ::greptime::v1::meta::KeyValue* kv) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.kv_); - } - _impl_.kv_ = kv; - if (kv) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.MoveValueResponse.kv) -} -inline ::greptime::v1::meta::KeyValue* MoveValueResponse::release_kv() { - - ::greptime::v1::meta::KeyValue* temp = _impl_.kv_; - _impl_.kv_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::greptime::v1::meta::KeyValue* MoveValueResponse::unsafe_arena_release_kv() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.MoveValueResponse.kv) - - ::greptime::v1::meta::KeyValue* temp = _impl_.kv_; - _impl_.kv_ = nullptr; - return temp; -} -inline ::greptime::v1::meta::KeyValue* MoveValueResponse::_internal_mutable_kv() { - - if (_impl_.kv_ == nullptr) { - auto* p = CreateMaybeMessage<::greptime::v1::meta::KeyValue>(GetArenaForAllocation()); - _impl_.kv_ = p; - } - return _impl_.kv_; -} -inline ::greptime::v1::meta::KeyValue* MoveValueResponse::mutable_kv() { - ::greptime::v1::meta::KeyValue* _msg = _internal_mutable_kv(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.MoveValueResponse.kv) - return _msg; -} -inline void MoveValueResponse::set_allocated_kv(::greptime::v1::meta::KeyValue* kv) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.kv_); - } - if (kv) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(kv)); - if (message_arena != submessage_arena) { - kv = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, kv, submessage_arena); - } - - } else { - - } - _impl_.kv_ = kv; - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MoveValueResponse.kv) -} - #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -5957,10 +5220,6 @@ inline void MoveValueResponse::set_allocated_kv(::greptime::v1::meta::KeyValue* // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/meta/store.pb.go b/go/greptime/v1/meta/store.pb.go index be9485ed..2e6ddafc 100644 --- a/go/greptime/v1/meta/store.pb.go +++ b/go/greptime/v1/meta/store.pb.go @@ -962,129 +962,6 @@ func (x *DeleteRangeResponse) GetPrevKvs() []*KeyValue { return nil } -type MoveValueRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - // If from_key dose not exist, return the value of to_key (if it exists). - // If from_key exists, move the value of from_key to to_key (i.e. rename), - // and return the value. - FromKey []byte `protobuf:"bytes,2,opt,name=from_key,json=fromKey,proto3" json:"from_key,omitempty"` - ToKey []byte `protobuf:"bytes,3,opt,name=to_key,json=toKey,proto3" json:"to_key,omitempty"` -} - -func (x *MoveValueRequest) Reset() { - *x = MoveValueRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_store_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MoveValueRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MoveValueRequest) ProtoMessage() {} - -func (x *MoveValueRequest) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_store_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MoveValueRequest.ProtoReflect.Descriptor instead. -func (*MoveValueRequest) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_store_proto_rawDescGZIP(), []int{14} -} - -func (x *MoveValueRequest) GetHeader() *RequestHeader { - if x != nil { - return x.Header - } - return nil -} - -func (x *MoveValueRequest) GetFromKey() []byte { - if x != nil { - return x.FromKey - } - return nil -} - -func (x *MoveValueRequest) GetToKey() []byte { - if x != nil { - return x.ToKey - } - return nil -} - -type MoveValueResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - // If from_key dose not exist, return the value of to_key (if it exists). - // If from_key exists, return the value of from_key. - Kv *KeyValue `protobuf:"bytes,2,opt,name=kv,proto3" json:"kv,omitempty"` -} - -func (x *MoveValueResponse) Reset() { - *x = MoveValueResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_store_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MoveValueResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MoveValueResponse) ProtoMessage() {} - -func (x *MoveValueResponse) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_store_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MoveValueResponse.ProtoReflect.Descriptor instead. -func (*MoveValueResponse) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_store_proto_rawDescGZIP(), []int{15} -} - -func (x *MoveValueResponse) GetHeader() *ResponseHeader { - if x != nil { - return x.Header - } - return nil -} - -func (x *MoveValueResponse) GetKv() *KeyValue { - if x != nil { - return x.Kv - } - return nil -} - var File_greptime_v1_meta_store_proto protoreflect.FileDescriptor var file_greptime_v1_meta_store_proto_rawDesc = []byte{ @@ -1215,65 +1092,44 @@ var file_greptime_v1_meta_store_proto_rawDesc = []byte{ 0x65, 0x74, 0x65, 0x64, 0x12, 0x35, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x6b, 0x76, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x07, 0x70, 0x72, 0x65, 0x76, 0x4b, 0x76, 0x73, 0x22, 0x7d, 0x0a, 0x10, 0x4d, - 0x6f, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, - 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x72, 0x6f, 0x6d, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x66, 0x72, 0x6f, 0x6d, - 0x4b, 0x65, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6f, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x05, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x22, 0x79, 0x0a, 0x11, 0x4d, 0x6f, - 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, - 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x02, 0x6b, 0x76, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x02, 0x6b, 0x76, 0x32, 0xab, 0x05, 0x0a, 0x05, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, - 0x48, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x03, 0x50, 0x75, 0x74, - 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, - 0x65, 0x74, 0x61, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, + 0x75, 0x65, 0x52, 0x07, 0x70, 0x72, 0x65, 0x76, 0x4b, 0x76, 0x73, 0x32, 0xd5, 0x04, 0x0a, 0x05, + 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, - 0x61, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, - 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x12, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, - 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x51, 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x74, 0x12, 0x21, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, - 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0b, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x12, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, + 0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x42, 0x0a, 0x03, 0x50, 0x75, 0x74, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x12, + 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, + 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, + 0x75, 0x74, 0x12, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0b, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, - 0x68, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x60, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x41, 0x6e, 0x64, 0x50, 0x75, 0x74, - 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, - 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x41, 0x6e, 0x64, 0x50, 0x75, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, - 0x61, 0x72, 0x65, 0x41, 0x6e, 0x64, 0x50, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x5a, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, - 0x12, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, - 0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, - 0x09, 0x4d, 0x6f, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x6f, - 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, + 0x68, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, + 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, + 0x41, 0x6e, 0x64, 0x50, 0x75, 0x74, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, + 0x65, 0x41, 0x6e, 0x64, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, - 0x61, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x41, 0x6e, 0x64, 0x50, 0x75, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, @@ -1293,7 +1149,7 @@ func file_greptime_v1_meta_store_proto_rawDescGZIP() []byte { return file_greptime_v1_meta_store_proto_rawDescData } -var file_greptime_v1_meta_store_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_greptime_v1_meta_store_proto_msgTypes = make([]protoimpl.MessageInfo, 14) var file_greptime_v1_meta_store_proto_goTypes = []interface{}{ (*RangeRequest)(nil), // 0: greptime.v1.meta.RangeRequest (*RangeResponse)(nil), // 1: greptime.v1.meta.RangeResponse @@ -1309,59 +1165,52 @@ var file_greptime_v1_meta_store_proto_goTypes = []interface{}{ (*CompareAndPutResponse)(nil), // 11: greptime.v1.meta.CompareAndPutResponse (*DeleteRangeRequest)(nil), // 12: greptime.v1.meta.DeleteRangeRequest (*DeleteRangeResponse)(nil), // 13: greptime.v1.meta.DeleteRangeResponse - (*MoveValueRequest)(nil), // 14: greptime.v1.meta.MoveValueRequest - (*MoveValueResponse)(nil), // 15: greptime.v1.meta.MoveValueResponse - (*RequestHeader)(nil), // 16: greptime.v1.meta.RequestHeader - (*ResponseHeader)(nil), // 17: greptime.v1.meta.ResponseHeader - (*KeyValue)(nil), // 18: greptime.v1.meta.KeyValue + (*RequestHeader)(nil), // 14: greptime.v1.meta.RequestHeader + (*ResponseHeader)(nil), // 15: greptime.v1.meta.ResponseHeader + (*KeyValue)(nil), // 16: greptime.v1.meta.KeyValue } var file_greptime_v1_meta_store_proto_depIdxs = []int32{ - 16, // 0: greptime.v1.meta.RangeRequest.header:type_name -> greptime.v1.meta.RequestHeader - 17, // 1: greptime.v1.meta.RangeResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 18, // 2: greptime.v1.meta.RangeResponse.kvs:type_name -> greptime.v1.meta.KeyValue - 16, // 3: greptime.v1.meta.PutRequest.header:type_name -> greptime.v1.meta.RequestHeader - 17, // 4: greptime.v1.meta.PutResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 18, // 5: greptime.v1.meta.PutResponse.prev_kv:type_name -> greptime.v1.meta.KeyValue - 16, // 6: greptime.v1.meta.BatchGetRequest.header:type_name -> greptime.v1.meta.RequestHeader - 17, // 7: greptime.v1.meta.BatchGetResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 18, // 8: greptime.v1.meta.BatchGetResponse.kvs:type_name -> greptime.v1.meta.KeyValue - 16, // 9: greptime.v1.meta.BatchPutRequest.header:type_name -> greptime.v1.meta.RequestHeader - 18, // 10: greptime.v1.meta.BatchPutRequest.kvs:type_name -> greptime.v1.meta.KeyValue - 17, // 11: greptime.v1.meta.BatchPutResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 18, // 12: greptime.v1.meta.BatchPutResponse.prev_kvs:type_name -> greptime.v1.meta.KeyValue - 16, // 13: greptime.v1.meta.BatchDeleteRequest.header:type_name -> greptime.v1.meta.RequestHeader - 17, // 14: greptime.v1.meta.BatchDeleteResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 18, // 15: greptime.v1.meta.BatchDeleteResponse.prev_kvs:type_name -> greptime.v1.meta.KeyValue - 16, // 16: greptime.v1.meta.CompareAndPutRequest.header:type_name -> greptime.v1.meta.RequestHeader - 17, // 17: greptime.v1.meta.CompareAndPutResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 18, // 18: greptime.v1.meta.CompareAndPutResponse.prev_kv:type_name -> greptime.v1.meta.KeyValue - 16, // 19: greptime.v1.meta.DeleteRangeRequest.header:type_name -> greptime.v1.meta.RequestHeader - 17, // 20: greptime.v1.meta.DeleteRangeResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 18, // 21: greptime.v1.meta.DeleteRangeResponse.prev_kvs:type_name -> greptime.v1.meta.KeyValue - 16, // 22: greptime.v1.meta.MoveValueRequest.header:type_name -> greptime.v1.meta.RequestHeader - 17, // 23: greptime.v1.meta.MoveValueResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 18, // 24: greptime.v1.meta.MoveValueResponse.kv:type_name -> greptime.v1.meta.KeyValue - 0, // 25: greptime.v1.meta.Store.Range:input_type -> greptime.v1.meta.RangeRequest - 2, // 26: greptime.v1.meta.Store.Put:input_type -> greptime.v1.meta.PutRequest - 4, // 27: greptime.v1.meta.Store.BatchGet:input_type -> greptime.v1.meta.BatchGetRequest - 6, // 28: greptime.v1.meta.Store.BatchPut:input_type -> greptime.v1.meta.BatchPutRequest - 8, // 29: greptime.v1.meta.Store.BatchDelete:input_type -> greptime.v1.meta.BatchDeleteRequest - 10, // 30: greptime.v1.meta.Store.CompareAndPut:input_type -> greptime.v1.meta.CompareAndPutRequest - 12, // 31: greptime.v1.meta.Store.DeleteRange:input_type -> greptime.v1.meta.DeleteRangeRequest - 14, // 32: greptime.v1.meta.Store.MoveValue:input_type -> greptime.v1.meta.MoveValueRequest - 1, // 33: greptime.v1.meta.Store.Range:output_type -> greptime.v1.meta.RangeResponse - 3, // 34: greptime.v1.meta.Store.Put:output_type -> greptime.v1.meta.PutResponse - 5, // 35: greptime.v1.meta.Store.BatchGet:output_type -> greptime.v1.meta.BatchGetResponse - 7, // 36: greptime.v1.meta.Store.BatchPut:output_type -> greptime.v1.meta.BatchPutResponse - 9, // 37: greptime.v1.meta.Store.BatchDelete:output_type -> greptime.v1.meta.BatchDeleteResponse - 11, // 38: greptime.v1.meta.Store.CompareAndPut:output_type -> greptime.v1.meta.CompareAndPutResponse - 13, // 39: greptime.v1.meta.Store.DeleteRange:output_type -> greptime.v1.meta.DeleteRangeResponse - 15, // 40: greptime.v1.meta.Store.MoveValue:output_type -> greptime.v1.meta.MoveValueResponse - 33, // [33:41] is the sub-list for method output_type - 25, // [25:33] is the sub-list for method input_type - 25, // [25:25] is the sub-list for extension type_name - 25, // [25:25] is the sub-list for extension extendee - 0, // [0:25] is the sub-list for field type_name + 14, // 0: greptime.v1.meta.RangeRequest.header:type_name -> greptime.v1.meta.RequestHeader + 15, // 1: greptime.v1.meta.RangeResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 16, // 2: greptime.v1.meta.RangeResponse.kvs:type_name -> greptime.v1.meta.KeyValue + 14, // 3: greptime.v1.meta.PutRequest.header:type_name -> greptime.v1.meta.RequestHeader + 15, // 4: greptime.v1.meta.PutResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 16, // 5: greptime.v1.meta.PutResponse.prev_kv:type_name -> greptime.v1.meta.KeyValue + 14, // 6: greptime.v1.meta.BatchGetRequest.header:type_name -> greptime.v1.meta.RequestHeader + 15, // 7: greptime.v1.meta.BatchGetResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 16, // 8: greptime.v1.meta.BatchGetResponse.kvs:type_name -> greptime.v1.meta.KeyValue + 14, // 9: greptime.v1.meta.BatchPutRequest.header:type_name -> greptime.v1.meta.RequestHeader + 16, // 10: greptime.v1.meta.BatchPutRequest.kvs:type_name -> greptime.v1.meta.KeyValue + 15, // 11: greptime.v1.meta.BatchPutResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 16, // 12: greptime.v1.meta.BatchPutResponse.prev_kvs:type_name -> greptime.v1.meta.KeyValue + 14, // 13: greptime.v1.meta.BatchDeleteRequest.header:type_name -> greptime.v1.meta.RequestHeader + 15, // 14: greptime.v1.meta.BatchDeleteResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 16, // 15: greptime.v1.meta.BatchDeleteResponse.prev_kvs:type_name -> greptime.v1.meta.KeyValue + 14, // 16: greptime.v1.meta.CompareAndPutRequest.header:type_name -> greptime.v1.meta.RequestHeader + 15, // 17: greptime.v1.meta.CompareAndPutResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 16, // 18: greptime.v1.meta.CompareAndPutResponse.prev_kv:type_name -> greptime.v1.meta.KeyValue + 14, // 19: greptime.v1.meta.DeleteRangeRequest.header:type_name -> greptime.v1.meta.RequestHeader + 15, // 20: greptime.v1.meta.DeleteRangeResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 16, // 21: greptime.v1.meta.DeleteRangeResponse.prev_kvs:type_name -> greptime.v1.meta.KeyValue + 0, // 22: greptime.v1.meta.Store.Range:input_type -> greptime.v1.meta.RangeRequest + 2, // 23: greptime.v1.meta.Store.Put:input_type -> greptime.v1.meta.PutRequest + 4, // 24: greptime.v1.meta.Store.BatchGet:input_type -> greptime.v1.meta.BatchGetRequest + 6, // 25: greptime.v1.meta.Store.BatchPut:input_type -> greptime.v1.meta.BatchPutRequest + 8, // 26: greptime.v1.meta.Store.BatchDelete:input_type -> greptime.v1.meta.BatchDeleteRequest + 10, // 27: greptime.v1.meta.Store.CompareAndPut:input_type -> greptime.v1.meta.CompareAndPutRequest + 12, // 28: greptime.v1.meta.Store.DeleteRange:input_type -> greptime.v1.meta.DeleteRangeRequest + 1, // 29: greptime.v1.meta.Store.Range:output_type -> greptime.v1.meta.RangeResponse + 3, // 30: greptime.v1.meta.Store.Put:output_type -> greptime.v1.meta.PutResponse + 5, // 31: greptime.v1.meta.Store.BatchGet:output_type -> greptime.v1.meta.BatchGetResponse + 7, // 32: greptime.v1.meta.Store.BatchPut:output_type -> greptime.v1.meta.BatchPutResponse + 9, // 33: greptime.v1.meta.Store.BatchDelete:output_type -> greptime.v1.meta.BatchDeleteResponse + 11, // 34: greptime.v1.meta.Store.CompareAndPut:output_type -> greptime.v1.meta.CompareAndPutResponse + 13, // 35: greptime.v1.meta.Store.DeleteRange:output_type -> greptime.v1.meta.DeleteRangeResponse + 29, // [29:36] is the sub-list for method output_type + 22, // [22:29] is the sub-list for method input_type + 22, // [22:22] is the sub-list for extension type_name + 22, // [22:22] is the sub-list for extension extendee + 0, // [0:22] is the sub-list for field type_name } func init() { file_greptime_v1_meta_store_proto_init() } @@ -1539,30 +1388,6 @@ func file_greptime_v1_meta_store_proto_init() { return nil } } - file_greptime_v1_meta_store_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MoveValueRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_greptime_v1_meta_store_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MoveValueResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } } type x struct{} out := protoimpl.TypeBuilder{ @@ -1570,7 +1395,7 @@ func file_greptime_v1_meta_store_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_meta_store_proto_rawDesc, NumEnums: 0, - NumMessages: 16, + NumMessages: 14, NumExtensions: 0, NumServices: 1, }, diff --git a/go/greptime/v1/meta/store_grpc.pb.go b/go/greptime/v1/meta/store_grpc.pb.go index f8335497..e56d67dc 100644 --- a/go/greptime/v1/meta/store_grpc.pb.go +++ b/go/greptime/v1/meta/store_grpc.pb.go @@ -38,8 +38,6 @@ type StoreClient interface { CompareAndPut(ctx context.Context, in *CompareAndPutRequest, opts ...grpc.CallOption) (*CompareAndPutResponse, error) // DeleteRange deletes the given range from the key-value store. DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error) - // MoveValue atomically renames the key to the given updated key. - MoveValue(ctx context.Context, in *MoveValueRequest, opts ...grpc.CallOption) (*MoveValueResponse, error) } type storeClient struct { @@ -113,15 +111,6 @@ func (c *storeClient) DeleteRange(ctx context.Context, in *DeleteRangeRequest, o return out, nil } -func (c *storeClient) MoveValue(ctx context.Context, in *MoveValueRequest, opts ...grpc.CallOption) (*MoveValueResponse, error) { - out := new(MoveValueResponse) - err := c.cc.Invoke(ctx, "/greptime.v1.meta.Store/MoveValue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // StoreServer is the server API for Store service. // All implementations must embed UnimplementedStoreServer // for forward compatibility @@ -142,8 +131,6 @@ type StoreServer interface { CompareAndPut(context.Context, *CompareAndPutRequest) (*CompareAndPutResponse, error) // DeleteRange deletes the given range from the key-value store. DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error) - // MoveValue atomically renames the key to the given updated key. - MoveValue(context.Context, *MoveValueRequest) (*MoveValueResponse, error) mustEmbedUnimplementedStoreServer() } @@ -172,9 +159,6 @@ func (UnimplementedStoreServer) CompareAndPut(context.Context, *CompareAndPutReq func (UnimplementedStoreServer) DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteRange not implemented") } -func (UnimplementedStoreServer) MoveValue(context.Context, *MoveValueRequest) (*MoveValueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MoveValue not implemented") -} func (UnimplementedStoreServer) mustEmbedUnimplementedStoreServer() {} // UnsafeStoreServer may be embedded to opt out of forward compatibility for this service. @@ -314,24 +298,6 @@ func _Store_DeleteRange_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } -func _Store_MoveValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MoveValueRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StoreServer).MoveValue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/greptime.v1.meta.Store/MoveValue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StoreServer).MoveValue(ctx, req.(*MoveValueRequest)) - } - return interceptor(ctx, in, info, handler) -} - // Store_ServiceDesc is the grpc.ServiceDesc for Store service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -367,10 +333,6 @@ var Store_ServiceDesc = grpc.ServiceDesc{ MethodName: "DeleteRange", Handler: _Store_DeleteRange_Handler, }, - { - MethodName: "MoveValue", - Handler: _Store_MoveValue_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "greptime/v1/meta/store.proto", diff --git a/java/src/main/java/greptime/v1/meta/StoreOuterClass.java b/java/src/main/java/greptime/v1/meta/StoreOuterClass.java index 51252779..d7d96825 100644 --- a/java/src/main/java/greptime/v1/meta/StoreOuterClass.java +++ b/java/src/main/java/greptime/v1/meta/StoreOuterClass.java @@ -14102,1708 +14102,6 @@ public greptime.v1.meta.StoreOuterClass.DeleteRangeResponse getDefaultInstanceFo } - public interface MoveValueRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.meta.MoveValueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .greptime.v1.meta.RequestHeader header = 1; - * @return Whether the header field is set. - */ - boolean hasHeader(); - /** - * .greptime.v1.meta.RequestHeader header = 1; - * @return The header. - */ - greptime.v1.meta.Common.RequestHeader getHeader(); - /** - * .greptime.v1.meta.RequestHeader header = 1; - */ - greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder(); - - /** - *
-     * If from_key dose not exist, return the value of to_key (if it exists).
-     * If from_key exists, move the value of from_key to to_key (i.e. rename),
-     * and return the value.
-     * 
- * - * bytes from_key = 2; - * @return The fromKey. - */ - com.google.protobuf.ByteString getFromKey(); - - /** - * bytes to_key = 3; - * @return The toKey. - */ - com.google.protobuf.ByteString getToKey(); - } - /** - * Protobuf type {@code greptime.v1.meta.MoveValueRequest} - */ - public static final class MoveValueRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.meta.MoveValueRequest) - MoveValueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MoveValueRequest.newBuilder() to construct. - private MoveValueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MoveValueRequest() { - fromKey_ = com.google.protobuf.ByteString.EMPTY; - toKey_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MoveValueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MoveValueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - greptime.v1.meta.Common.RequestHeader.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(greptime.v1.meta.Common.RequestHeader.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - - fromKey_ = input.readBytes(); - break; - } - case 26: { - - toKey_ = 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 greptime.v1.meta.StoreOuterClass.internal_static_greptime_v1_meta_MoveValueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return greptime.v1.meta.StoreOuterClass.internal_static_greptime_v1_meta_MoveValueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - greptime.v1.meta.StoreOuterClass.MoveValueRequest.class, greptime.v1.meta.StoreOuterClass.MoveValueRequest.Builder.class); - } - - public static final int HEADER_FIELD_NUMBER = 1; - private greptime.v1.meta.Common.RequestHeader header_; - /** - * .greptime.v1.meta.RequestHeader header = 1; - * @return Whether the header field is set. - */ - @java.lang.Override - public boolean hasHeader() { - return header_ != null; - } - /** - * .greptime.v1.meta.RequestHeader header = 1; - * @return The header. - */ - @java.lang.Override - public greptime.v1.meta.Common.RequestHeader getHeader() { - return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; - } - /** - * .greptime.v1.meta.RequestHeader header = 1; - */ - @java.lang.Override - public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); - } - - public static final int FROM_KEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString fromKey_; - /** - *
-     * If from_key dose not exist, return the value of to_key (if it exists).
-     * If from_key exists, move the value of from_key to to_key (i.e. rename),
-     * and return the value.
-     * 
- * - * bytes from_key = 2; - * @return The fromKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFromKey() { - return fromKey_; - } - - public static final int TO_KEY_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString toKey_; - /** - * bytes to_key = 3; - * @return The toKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getToKey() { - return toKey_; - } - - 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 (!fromKey_.isEmpty()) { - output.writeBytes(2, fromKey_); - } - if (!toKey_.isEmpty()) { - output.writeBytes(3, toKey_); - } - 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 (!fromKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, fromKey_); - } - if (!toKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, toKey_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof greptime.v1.meta.StoreOuterClass.MoveValueRequest)) { - return super.equals(obj); - } - greptime.v1.meta.StoreOuterClass.MoveValueRequest other = (greptime.v1.meta.StoreOuterClass.MoveValueRequest) obj; - - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (!getFromKey() - .equals(other.getFromKey())) return false; - if (!getToKey() - .equals(other.getToKey())) 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) + FROM_KEY_FIELD_NUMBER; - hash = (53 * hash) + getFromKey().hashCode(); - hash = (37 * hash) + TO_KEY_FIELD_NUMBER; - hash = (53 * hash) + getToKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(greptime.v1.meta.StoreOuterClass.MoveValueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code greptime.v1.meta.MoveValueRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.meta.MoveValueRequest) - greptime.v1.meta.StoreOuterClass.MoveValueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return greptime.v1.meta.StoreOuterClass.internal_static_greptime_v1_meta_MoveValueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return greptime.v1.meta.StoreOuterClass.internal_static_greptime_v1_meta_MoveValueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - greptime.v1.meta.StoreOuterClass.MoveValueRequest.class, greptime.v1.meta.StoreOuterClass.MoveValueRequest.Builder.class); - } - - // Construct using greptime.v1.meta.StoreOuterClass.MoveValueRequest.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; - } - fromKey_ = com.google.protobuf.ByteString.EMPTY; - - toKey_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return greptime.v1.meta.StoreOuterClass.internal_static_greptime_v1_meta_MoveValueRequest_descriptor; - } - - @java.lang.Override - public greptime.v1.meta.StoreOuterClass.MoveValueRequest getDefaultInstanceForType() { - return greptime.v1.meta.StoreOuterClass.MoveValueRequest.getDefaultInstance(); - } - - @java.lang.Override - public greptime.v1.meta.StoreOuterClass.MoveValueRequest build() { - greptime.v1.meta.StoreOuterClass.MoveValueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public greptime.v1.meta.StoreOuterClass.MoveValueRequest buildPartial() { - greptime.v1.meta.StoreOuterClass.MoveValueRequest result = new greptime.v1.meta.StoreOuterClass.MoveValueRequest(this); - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - result.fromKey_ = fromKey_; - result.toKey_ = toKey_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof greptime.v1.meta.StoreOuterClass.MoveValueRequest) { - return mergeFrom((greptime.v1.meta.StoreOuterClass.MoveValueRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(greptime.v1.meta.StoreOuterClass.MoveValueRequest other) { - if (other == greptime.v1.meta.StoreOuterClass.MoveValueRequest.getDefaultInstance()) return this; - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - if (other.getFromKey() != com.google.protobuf.ByteString.EMPTY) { - setFromKey(other.getFromKey()); - } - if (other.getToKey() != com.google.protobuf.ByteString.EMPTY) { - setToKey(other.getToKey()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - greptime.v1.meta.StoreOuterClass.MoveValueRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (greptime.v1.meta.StoreOuterClass.MoveValueRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private greptime.v1.meta.Common.RequestHeader header_; - private com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> headerBuilder_; - /** - * .greptime.v1.meta.RequestHeader header = 1; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - * .greptime.v1.meta.RequestHeader header = 1; - * @return The header. - */ - public greptime.v1.meta.Common.RequestHeader getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - * .greptime.v1.meta.RequestHeader header = 1; - */ - public Builder setHeader(greptime.v1.meta.Common.RequestHeader value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - * .greptime.v1.meta.RequestHeader header = 1; - */ - public Builder setHeader( - greptime.v1.meta.Common.RequestHeader.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .greptime.v1.meta.RequestHeader header = 1; - */ - public Builder mergeHeader(greptime.v1.meta.Common.RequestHeader value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - greptime.v1.meta.Common.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .greptime.v1.meta.RequestHeader header = 1; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - * .greptime.v1.meta.RequestHeader header = 1; - */ - public greptime.v1.meta.Common.RequestHeader.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - * .greptime.v1.meta.RequestHeader header = 1; - */ - public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; - } - } - /** - * .greptime.v1.meta.RequestHeader header = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private com.google.protobuf.ByteString fromKey_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * If from_key dose not exist, return the value of to_key (if it exists).
-       * If from_key exists, move the value of from_key to to_key (i.e. rename),
-       * and return the value.
-       * 
- * - * bytes from_key = 2; - * @return The fromKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFromKey() { - return fromKey_; - } - /** - *
-       * If from_key dose not exist, return the value of to_key (if it exists).
-       * If from_key exists, move the value of from_key to to_key (i.e. rename),
-       * and return the value.
-       * 
- * - * bytes from_key = 2; - * @param value The fromKey to set. - * @return This builder for chaining. - */ - public Builder setFromKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - fromKey_ = value; - onChanged(); - return this; - } - /** - *
-       * If from_key dose not exist, return the value of to_key (if it exists).
-       * If from_key exists, move the value of from_key to to_key (i.e. rename),
-       * and return the value.
-       * 
- * - * bytes from_key = 2; - * @return This builder for chaining. - */ - public Builder clearFromKey() { - - fromKey_ = getDefaultInstance().getFromKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString toKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes to_key = 3; - * @return The toKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getToKey() { - return toKey_; - } - /** - * bytes to_key = 3; - * @param value The toKey to set. - * @return This builder for chaining. - */ - public Builder setToKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - toKey_ = value; - onChanged(); - return this; - } - /** - * bytes to_key = 3; - * @return This builder for chaining. - */ - public Builder clearToKey() { - - toKey_ = getDefaultInstance().getToKey(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:greptime.v1.meta.MoveValueRequest) - } - - // @@protoc_insertion_point(class_scope:greptime.v1.meta.MoveValueRequest) - private static final greptime.v1.meta.StoreOuterClass.MoveValueRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new greptime.v1.meta.StoreOuterClass.MoveValueRequest(); - } - - public static greptime.v1.meta.StoreOuterClass.MoveValueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MoveValueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MoveValueRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public greptime.v1.meta.StoreOuterClass.MoveValueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MoveValueResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.meta.MoveValueResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .greptime.v1.meta.ResponseHeader header = 1; - * @return Whether the header field is set. - */ - boolean hasHeader(); - /** - * .greptime.v1.meta.ResponseHeader header = 1; - * @return The header. - */ - greptime.v1.meta.Common.ResponseHeader getHeader(); - /** - * .greptime.v1.meta.ResponseHeader header = 1; - */ - greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder(); - - /** - *
-     * If from_key dose not exist, return the value of to_key (if it exists).
-     * If from_key exists, return the value of from_key.
-     * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - * @return Whether the kv field is set. - */ - boolean hasKv(); - /** - *
-     * If from_key dose not exist, return the value of to_key (if it exists).
-     * If from_key exists, return the value of from_key.
-     * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - * @return The kv. - */ - greptime.v1.meta.Common.KeyValue getKv(); - /** - *
-     * If from_key dose not exist, return the value of to_key (if it exists).
-     * If from_key exists, return the value of from_key.
-     * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - */ - greptime.v1.meta.Common.KeyValueOrBuilder getKvOrBuilder(); - } - /** - * Protobuf type {@code greptime.v1.meta.MoveValueResponse} - */ - public static final class MoveValueResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.meta.MoveValueResponse) - MoveValueResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MoveValueResponse.newBuilder() to construct. - private MoveValueResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MoveValueResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MoveValueResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MoveValueResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - greptime.v1.meta.Common.ResponseHeader.Builder subBuilder = null; - if (header_ != null) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(greptime.v1.meta.Common.ResponseHeader.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - greptime.v1.meta.Common.KeyValue.Builder subBuilder = null; - if (kv_ != null) { - subBuilder = kv_.toBuilder(); - } - kv_ = input.readMessage(greptime.v1.meta.Common.KeyValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kv_); - kv_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return greptime.v1.meta.StoreOuterClass.internal_static_greptime_v1_meta_MoveValueResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return greptime.v1.meta.StoreOuterClass.internal_static_greptime_v1_meta_MoveValueResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - greptime.v1.meta.StoreOuterClass.MoveValueResponse.class, greptime.v1.meta.StoreOuterClass.MoveValueResponse.Builder.class); - } - - public static final int HEADER_FIELD_NUMBER = 1; - private greptime.v1.meta.Common.ResponseHeader header_; - /** - * .greptime.v1.meta.ResponseHeader header = 1; - * @return Whether the header field is set. - */ - @java.lang.Override - public boolean hasHeader() { - return header_ != null; - } - /** - * .greptime.v1.meta.ResponseHeader header = 1; - * @return The header. - */ - @java.lang.Override - public greptime.v1.meta.Common.ResponseHeader getHeader() { - return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; - } - /** - * .greptime.v1.meta.ResponseHeader header = 1; - */ - @java.lang.Override - public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); - } - - public static final int KV_FIELD_NUMBER = 2; - private greptime.v1.meta.Common.KeyValue kv_; - /** - *
-     * If from_key dose not exist, return the value of to_key (if it exists).
-     * If from_key exists, return the value of from_key.
-     * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - * @return Whether the kv field is set. - */ - @java.lang.Override - public boolean hasKv() { - return kv_ != null; - } - /** - *
-     * If from_key dose not exist, return the value of to_key (if it exists).
-     * If from_key exists, return the value of from_key.
-     * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - * @return The kv. - */ - @java.lang.Override - public greptime.v1.meta.Common.KeyValue getKv() { - return kv_ == null ? greptime.v1.meta.Common.KeyValue.getDefaultInstance() : kv_; - } - /** - *
-     * If from_key dose not exist, return the value of to_key (if it exists).
-     * If from_key exists, return the value of from_key.
-     * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - */ - @java.lang.Override - public greptime.v1.meta.Common.KeyValueOrBuilder getKvOrBuilder() { - return getKv(); - } - - 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 (kv_ != null) { - output.writeMessage(2, getKv()); - } - 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 (kv_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getKv()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof greptime.v1.meta.StoreOuterClass.MoveValueResponse)) { - return super.equals(obj); - } - greptime.v1.meta.StoreOuterClass.MoveValueResponse other = (greptime.v1.meta.StoreOuterClass.MoveValueResponse) obj; - - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (hasKv() != other.hasKv()) return false; - if (hasKv()) { - if (!getKv() - .equals(other.getKv())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - if (hasKv()) { - hash = (37 * hash) + KV_FIELD_NUMBER; - hash = (53 * hash) + getKv().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(greptime.v1.meta.StoreOuterClass.MoveValueResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code greptime.v1.meta.MoveValueResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.meta.MoveValueResponse) - greptime.v1.meta.StoreOuterClass.MoveValueResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return greptime.v1.meta.StoreOuterClass.internal_static_greptime_v1_meta_MoveValueResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return greptime.v1.meta.StoreOuterClass.internal_static_greptime_v1_meta_MoveValueResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - greptime.v1.meta.StoreOuterClass.MoveValueResponse.class, greptime.v1.meta.StoreOuterClass.MoveValueResponse.Builder.class); - } - - // Construct using greptime.v1.meta.StoreOuterClass.MoveValueResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; - headerBuilder_ = null; - } - if (kvBuilder_ == null) { - kv_ = null; - } else { - kv_ = null; - kvBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return greptime.v1.meta.StoreOuterClass.internal_static_greptime_v1_meta_MoveValueResponse_descriptor; - } - - @java.lang.Override - public greptime.v1.meta.StoreOuterClass.MoveValueResponse getDefaultInstanceForType() { - return greptime.v1.meta.StoreOuterClass.MoveValueResponse.getDefaultInstance(); - } - - @java.lang.Override - public greptime.v1.meta.StoreOuterClass.MoveValueResponse build() { - greptime.v1.meta.StoreOuterClass.MoveValueResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public greptime.v1.meta.StoreOuterClass.MoveValueResponse buildPartial() { - greptime.v1.meta.StoreOuterClass.MoveValueResponse result = new greptime.v1.meta.StoreOuterClass.MoveValueResponse(this); - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - if (kvBuilder_ == null) { - result.kv_ = kv_; - } else { - result.kv_ = kvBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof greptime.v1.meta.StoreOuterClass.MoveValueResponse) { - return mergeFrom((greptime.v1.meta.StoreOuterClass.MoveValueResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(greptime.v1.meta.StoreOuterClass.MoveValueResponse other) { - if (other == greptime.v1.meta.StoreOuterClass.MoveValueResponse.getDefaultInstance()) return this; - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - if (other.hasKv()) { - mergeKv(other.getKv()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - greptime.v1.meta.StoreOuterClass.MoveValueResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (greptime.v1.meta.StoreOuterClass.MoveValueResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private greptime.v1.meta.Common.ResponseHeader header_; - private com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> headerBuilder_; - /** - * .greptime.v1.meta.ResponseHeader header = 1; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; - } - /** - * .greptime.v1.meta.ResponseHeader header = 1; - * @return The header. - */ - public greptime.v1.meta.Common.ResponseHeader getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - * .greptime.v1.meta.ResponseHeader header = 1; - */ - public Builder setHeader(greptime.v1.meta.Common.ResponseHeader value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - - return this; - } - /** - * .greptime.v1.meta.ResponseHeader header = 1; - */ - public Builder setHeader( - greptime.v1.meta.Common.ResponseHeader.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .greptime.v1.meta.ResponseHeader header = 1; - */ - public Builder mergeHeader(greptime.v1.meta.Common.ResponseHeader value) { - if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - greptime.v1.meta.Common.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .greptime.v1.meta.ResponseHeader header = 1; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; - headerBuilder_ = null; - } - - return this; - } - /** - * .greptime.v1.meta.ResponseHeader header = 1; - */ - public greptime.v1.meta.Common.ResponseHeader.Builder getHeaderBuilder() { - - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - * .greptime.v1.meta.ResponseHeader header = 1; - */ - public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; - } - } - /** - * .greptime.v1.meta.ResponseHeader header = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private greptime.v1.meta.Common.KeyValue kv_; - private com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.KeyValue, greptime.v1.meta.Common.KeyValue.Builder, greptime.v1.meta.Common.KeyValueOrBuilder> kvBuilder_; - /** - *
-       * If from_key dose not exist, return the value of to_key (if it exists).
-       * If from_key exists, return the value of from_key.
-       * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - * @return Whether the kv field is set. - */ - public boolean hasKv() { - return kvBuilder_ != null || kv_ != null; - } - /** - *
-       * If from_key dose not exist, return the value of to_key (if it exists).
-       * If from_key exists, return the value of from_key.
-       * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - * @return The kv. - */ - public greptime.v1.meta.Common.KeyValue getKv() { - if (kvBuilder_ == null) { - return kv_ == null ? greptime.v1.meta.Common.KeyValue.getDefaultInstance() : kv_; - } else { - return kvBuilder_.getMessage(); - } - } - /** - *
-       * If from_key dose not exist, return the value of to_key (if it exists).
-       * If from_key exists, return the value of from_key.
-       * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - */ - public Builder setKv(greptime.v1.meta.Common.KeyValue value) { - if (kvBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kv_ = value; - onChanged(); - } else { - kvBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * If from_key dose not exist, return the value of to_key (if it exists).
-       * If from_key exists, return the value of from_key.
-       * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - */ - public Builder setKv( - greptime.v1.meta.Common.KeyValue.Builder builderForValue) { - if (kvBuilder_ == null) { - kv_ = builderForValue.build(); - onChanged(); - } else { - kvBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * If from_key dose not exist, return the value of to_key (if it exists).
-       * If from_key exists, return the value of from_key.
-       * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - */ - public Builder mergeKv(greptime.v1.meta.Common.KeyValue value) { - if (kvBuilder_ == null) { - if (kv_ != null) { - kv_ = - greptime.v1.meta.Common.KeyValue.newBuilder(kv_).mergeFrom(value).buildPartial(); - } else { - kv_ = value; - } - onChanged(); - } else { - kvBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * If from_key dose not exist, return the value of to_key (if it exists).
-       * If from_key exists, return the value of from_key.
-       * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - */ - public Builder clearKv() { - if (kvBuilder_ == null) { - kv_ = null; - onChanged(); - } else { - kv_ = null; - kvBuilder_ = null; - } - - return this; - } - /** - *
-       * If from_key dose not exist, return the value of to_key (if it exists).
-       * If from_key exists, return the value of from_key.
-       * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - */ - public greptime.v1.meta.Common.KeyValue.Builder getKvBuilder() { - - onChanged(); - return getKvFieldBuilder().getBuilder(); - } - /** - *
-       * If from_key dose not exist, return the value of to_key (if it exists).
-       * If from_key exists, return the value of from_key.
-       * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - */ - public greptime.v1.meta.Common.KeyValueOrBuilder getKvOrBuilder() { - if (kvBuilder_ != null) { - return kvBuilder_.getMessageOrBuilder(); - } else { - return kv_ == null ? - greptime.v1.meta.Common.KeyValue.getDefaultInstance() : kv_; - } - } - /** - *
-       * If from_key dose not exist, return the value of to_key (if it exists).
-       * If from_key exists, return the value of from_key.
-       * 
- * - * .greptime.v1.meta.KeyValue kv = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.KeyValue, greptime.v1.meta.Common.KeyValue.Builder, greptime.v1.meta.Common.KeyValueOrBuilder> - getKvFieldBuilder() { - if (kvBuilder_ == null) { - kvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.KeyValue, greptime.v1.meta.Common.KeyValue.Builder, greptime.v1.meta.Common.KeyValueOrBuilder>( - getKv(), - getParentForChildren(), - isClean()); - kv_ = null; - } - return kvBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:greptime.v1.meta.MoveValueResponse) - } - - // @@protoc_insertion_point(class_scope:greptime.v1.meta.MoveValueResponse) - private static final greptime.v1.meta.StoreOuterClass.MoveValueResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new greptime.v1.meta.StoreOuterClass.MoveValueResponse(); - } - - public static greptime.v1.meta.StoreOuterClass.MoveValueResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MoveValueResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MoveValueResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public greptime.v1.meta.StoreOuterClass.MoveValueResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_meta_RangeRequest_descriptor; private static final @@ -15874,16 +14172,6 @@ public greptime.v1.meta.StoreOuterClass.MoveValueResponse getDefaultInstanceForT private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_meta_DeleteRangeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_meta_MoveValueRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_meta_MoveValueRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_meta_MoveValueResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_meta_MoveValueResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -15935,32 +14223,24 @@ public greptime.v1.meta.StoreOuterClass.MoveValueResponse getDefaultInstanceForT "\003 \001(\014\022\017\n\007prev_kv\030\004 \001(\010\"\206\001\n\023DeleteRangeRe" + "sponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.met" + "a.ResponseHeader\022\017\n\007deleted\030\002 \001(\003\022,\n\010pre" + - "v_kvs\030\003 \003(\0132\032.greptime.v1.meta.KeyValue\"" + - "e\n\020MoveValueRequest\022/\n\006header\030\001 \001(\0132\037.gr" + - "eptime.v1.meta.RequestHeader\022\020\n\010from_key" + - "\030\002 \001(\014\022\016\n\006to_key\030\003 \001(\014\"m\n\021MoveValueRespo" + - "nse\0220\n\006header\030\001 \001(\0132 .greptime.v1.meta.R" + - "esponseHeader\022&\n\002kv\030\002 \001(\0132\032.greptime.v1." + - "meta.KeyValue2\253\005\n\005Store\022H\n\005Range\022\036.grept" + - "ime.v1.meta.RangeRequest\032\037.greptime.v1.m" + - "eta.RangeResponse\022B\n\003Put\022\034.greptime.v1.m" + - "eta.PutRequest\032\035.greptime.v1.meta.PutRes" + - "ponse\022Q\n\010BatchGet\022!.greptime.v1.meta.Bat" + - "chGetRequest\032\".greptime.v1.meta.BatchGet" + - "Response\022Q\n\010BatchPut\022!.greptime.v1.meta." + - "BatchPutRequest\032\".greptime.v1.meta.Batch" + - "PutResponse\022Z\n\013BatchDelete\022$.greptime.v1" + - ".meta.BatchDeleteRequest\032%.greptime.v1.m" + - "eta.BatchDeleteResponse\022`\n\rCompareAndPut" + - "\022&.greptime.v1.meta.CompareAndPutRequest" + - "\032\'.greptime.v1.meta.CompareAndPutRespons" + - "e\022Z\n\013DeleteRange\022$.greptime.v1.meta.Dele" + - "teRangeRequest\032%.greptime.v1.meta.Delete" + - "RangeResponse\022T\n\tMoveValue\022\".greptime.v1" + - ".meta.MoveValueRequest\032#.greptime.v1.met" + - "a.MoveValueResponseB