feat: remove the move_value api (#111)

This commit is contained in:
JeremyHi
2023-10-23 10:20:57 +08:00
committed by GitHub
parent 365922c358
commit 1d7dc6f18b
9 changed files with 124 additions and 3642 deletions
-42
View File
@@ -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 @@ void Store::Stub::async::DeleteRange(::grpc::ClientContext* context, const ::gre
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<void(::grpc::Status)> 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 @@ Store::Service::~Service() {
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
+4 -164
View File
@@ -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<void(::grpc::Status)>) = 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<void(::grpc::Status)>) = 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<void(::grpc::Status)>) 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<void(::grpc::Status)>) 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<Stub> 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 BaseClass>
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 BaseClass>
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<WithAsyncMethod_Put<WithAsyncMethod_BatchGet<WithAsyncMethod_BatchPut<WithAsyncMethod_BatchDelete<WithAsyncMethod_CompareAndPut<WithAsyncMethod_DeleteRange<WithAsyncMethod_MoveValue<Service > > > > > > > > AsyncService;
typedef WithAsyncMethod_Range<WithAsyncMethod_Put<WithAsyncMethod_BatchGet<WithAsyncMethod_BatchPut<WithAsyncMethod_BatchDelete<WithAsyncMethod_CompareAndPut<WithAsyncMethod_DeleteRange<Service > > > > > > > AsyncService;
template <class BaseClass>
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 BaseClass>
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<WithCallbackMethod_Put<WithCallbackMethod_BatchGet<WithCallbackMethod_BatchPut<WithCallbackMethod_BatchDelete<WithCallbackMethod_CompareAndPut<WithCallbackMethod_DeleteRange<WithCallbackMethod_MoveValue<Service > > > > > > > > CallbackService;
typedef WithCallbackMethod_Range<WithCallbackMethod_Put<WithCallbackMethod_BatchGet<WithCallbackMethod_BatchPut<WithCallbackMethod_BatchDelete<WithCallbackMethod_CompareAndPut<WithCallbackMethod_DeleteRange<Service > > > > > > > CallbackService;
typedef CallbackService ExperimentalCallbackService;
template <class BaseClass>
class WithGenericMethod_Range : public BaseClass {
@@ -807,23 +733,6 @@ class Store final {
}
};
template <class BaseClass>
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 BaseClass>
class WithRawMethod_Range : public BaseClass {
private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
@@ -964,26 +873,6 @@ class Store final {
}
};
template <class BaseClass>
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 BaseClass>
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 BaseClass>
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 BaseClass>
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 BaseClass>
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<WithStreamedUnaryMethod_Put<WithStreamedUnaryMethod_BatchGet<WithStreamedUnaryMethod_BatchPut<WithStreamedUnaryMethod_BatchDelete<WithStreamedUnaryMethod_CompareAndPut<WithStreamedUnaryMethod_DeleteRange<WithStreamedUnaryMethod_MoveValue<Service > > > > > > > > StreamedUnaryService;
typedef WithStreamedUnaryMethod_Range<WithStreamedUnaryMethod_Put<WithStreamedUnaryMethod_BatchGet<WithStreamedUnaryMethod_BatchPut<WithStreamedUnaryMethod_BatchDelete<WithStreamedUnaryMethod_CompareAndPut<WithStreamedUnaryMethod_DeleteRange<Service > > > > > > > StreamedUnaryService;
typedef Service SplitStreamedService;
typedef WithStreamedUnaryMethod_Range<WithStreamedUnaryMethod_Put<WithStreamedUnaryMethod_BatchGet<WithStreamedUnaryMethod_BatchPut<WithStreamedUnaryMethod_BatchDelete<WithStreamedUnaryMethod_CompareAndPut<WithStreamedUnaryMethod_DeleteRange<WithStreamedUnaryMethod_MoveValue<Service > > > > > > > > StreamedService;
typedef WithStreamedUnaryMethod_Range<WithStreamedUnaryMethod_Put<WithStreamedUnaryMethod_BatchGet<WithStreamedUnaryMethod_BatchPut<WithStreamedUnaryMethod_BatchDelete<WithStreamedUnaryMethod_CompareAndPut<WithStreamedUnaryMethod_DeleteRange<Service > > > > > > > StreamedService;
};
} // namespace meta
+21 -629
View File
@@ -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<Z:github.com/Grepti"
"meTeam/greptime-proto/go/greptime/v1/met"
"ab\006proto3"
"v_kvs\030\003 \003(\0132\032.greptime.v1.meta.KeyValue2"
"\325\004\n\005Store\022H\n\005Range\022\036.greptime.v1.meta.Ra"
"ngeRequest\032\037.greptime.v1.meta.RangeRespo"
"nse\022B\n\003Put\022\034.greptime.v1.meta.PutRequest"
"\032\035.greptime.v1.meta.PutResponse\022Q\n\010Batch"
"Get\022!.greptime.v1.meta.BatchGetRequest\032\""
".greptime.v1.meta.BatchGetResponse\022Q\n\010Ba"
"tchPut\022!.greptime.v1.meta.BatchPutReques"
"t\032\".greptime.v1.meta.BatchPutResponse\022Z\n"
"\013BatchDelete\022$.greptime.v1.meta.BatchDel"
"eteRequest\032%.greptime.v1.meta.BatchDelet"
"eResponse\022`\n\rCompareAndPut\022&.greptime.v1"
".meta.CompareAndPutRequest\032\'.greptime.v1"
".meta.CompareAndPutResponse\022Z\n\013DeleteRan"
"ge\022$.greptime.v1.meta.DeleteRangeRequest"
"\032%.greptime.v1.meta.DeleteRangeResponseB"
"<Z:github.com/GreptimeTeam/greptime-prot"
"o/go/greptime/v1/metab\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto = {
false, false, 2689, descriptor_table_protodef_greptime_2fv1_2fmeta_2fstore_2eproto,
false, false, 2389, descriptor_table_protodef_greptime_2fv1_2fmeta_2fstore_2eproto,
"greptime/v1/meta/store.proto",
&descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_deps, 1, 16,
&descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_deps, 1, 14,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fstore_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fmeta_2fstore_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fstore_2eproto,
file_level_service_descriptors_greptime_2fv1_2fmeta_2fstore_2eproto,
@@ -4408,548 +4350,6 @@ void DeleteRangeResponse::InternalSwap(DeleteRangeResponse* other) {
file_level_metadata_greptime_2fv1_2fmeta_2fstore_2eproto[13]);
}
// ===================================================================
class MoveValueRequest::_Internal {
public:
static const ::greptime::v1::meta::RequestHeader& header(const MoveValueRequest* msg);
};
const ::greptime::v1::meta::RequestHeader&
MoveValueRequest::_Internal::header(const MoveValueRequest* msg) {
return *msg->_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<uint8_t>(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<uint8_t>(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<uint8_t>(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<MoveValueRequest*>(&to_msg);
auto& from = static_cast<const MoveValueRequest&>(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<uint8_t>(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<uint8_t>(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<MoveValueResponse*>(&to_msg);
auto& from = static_cast<const MoveValueResponse&>(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<char*>(&_impl_.header_),
reinterpret_cast<char*>(&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)
-741
View File
@@ -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<const MoveValueRequest*>(
&_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<MoveValueRequest>(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 <typename ArgT0 = const std::string&, typename... ArgT>
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 <typename ArgT0 = const std::string&, typename... ArgT>
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 <typename T> 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<const MoveValueResponse*>(
&_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<MoveValueResponse>(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 <typename T> 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<const ::greptime::v1::meta::RequestHeader&>(
::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 <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void MoveValueRequest::set_from_key(ArgT0&& arg0, ArgT... args) {
_impl_.from_key_.SetBytes(static_cast<ArgT0 &&>(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 <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void MoveValueRequest::set_to_key(ArgT0&& arg0, ArgT... args) {
_impl_.to_key_.SetBytes(static_cast<ArgT0 &&>(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<const ::greptime::v1::meta::ResponseHeader&>(
::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<const ::greptime::v1::meta::KeyValue&>(
::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)