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/BatchDelete",
"/greptime.v1.meta.Store/CompareAndPut", "/greptime.v1.meta.Store/CompareAndPut",
"/greptime.v1.meta.Store/DeleteRange", "/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) { 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_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_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_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) { ::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; 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() { Store::Service::Service() {
AddMethod(new ::grpc::internal::RpcServiceMethod( AddMethod(new ::grpc::internal::RpcServiceMethod(
Store_method_names[0], Store_method_names[0],
@@ -306,16 +281,6 @@ Store::Service::Service() {
::greptime::v1::meta::DeleteRangeResponse* resp) { ::greptime::v1::meta::DeleteRangeResponse* resp) {
return service->DeleteRange(ctx, req, resp); return service->DeleteRange(ctx, req, resp);
}, this))); }, 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() { Store::Service::~Service() {
@@ -370,13 +335,6 @@ Store::Service::~Service() {
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); 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 greptime
} // namespace v1 } // 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) { 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)); 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 { class async_interface {
public: public:
virtual ~async_interface() {} virtual ~async_interface() {}
@@ -144,9 +136,6 @@ class Store final {
// DeleteRange deletes the given range from the key-value store. // 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, 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; 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; typedef class async_interface experimental_async_interface;
virtual class async_interface* async() { return nullptr; } 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::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>* 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::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 { class Stub final : public StubInterface {
public: 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) { 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)); 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 : class async final :
public StubInterface::async_interface { public StubInterface::async_interface {
public: 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 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, 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 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: private:
friend class Stub; friend class Stub;
explicit async(Stub* stub): stub_(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::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>* 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::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_Range_;
const ::grpc::internal::RpcMethod rpcmethod_Put_; const ::grpc::internal::RpcMethod rpcmethod_Put_;
const ::grpc::internal::RpcMethod rpcmethod_BatchGet_; const ::grpc::internal::RpcMethod rpcmethod_BatchGet_;
@@ -281,7 +257,6 @@ class Store final {
const ::grpc::internal::RpcMethod rpcmethod_BatchDelete_; const ::grpc::internal::RpcMethod rpcmethod_BatchDelete_;
const ::grpc::internal::RpcMethod rpcmethod_CompareAndPut_; const ::grpc::internal::RpcMethod rpcmethod_CompareAndPut_;
const ::grpc::internal::RpcMethod rpcmethod_DeleteRange_; 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()); 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); 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. // 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); 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> template <class BaseClass>
class WithAsyncMethod_Range : public 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); ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag);
} }
}; };
template <class BaseClass> typedef WithAsyncMethod_Range<WithAsyncMethod_Put<WithAsyncMethod_BatchGet<WithAsyncMethod_BatchPut<WithAsyncMethod_BatchDelete<WithAsyncMethod_CompareAndPut<WithAsyncMethod_DeleteRange<Service > > > > > > > AsyncService;
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;
template <class BaseClass> template <class BaseClass>
class WithCallbackMethod_Range : public BaseClass { class WithCallbackMethod_Range : public BaseClass {
private: private:
@@ -658,34 +611,7 @@ class Store final {
virtual ::grpc::ServerUnaryReactor* DeleteRange( virtual ::grpc::ServerUnaryReactor* DeleteRange(
::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::DeleteRangeRequest* /*request*/, ::greptime::v1::meta::DeleteRangeResponse* /*response*/) { return nullptr; } ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::DeleteRangeRequest* /*request*/, ::greptime::v1::meta::DeleteRangeResponse* /*response*/) { return nullptr; }
}; };
template <class BaseClass> typedef WithCallbackMethod_Range<WithCallbackMethod_Put<WithCallbackMethod_BatchGet<WithCallbackMethod_BatchPut<WithCallbackMethod_BatchDelete<WithCallbackMethod_CompareAndPut<WithCallbackMethod_DeleteRange<Service > > > > > > > CallbackService;
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 CallbackService ExperimentalCallbackService; typedef CallbackService ExperimentalCallbackService;
template <class BaseClass> template <class BaseClass>
class WithGenericMethod_Range : public BaseClass { class WithGenericMethod_Range : public BaseClass {
@@ -807,23 +733,6 @@ class Store final {
} }
}; };
template <class BaseClass> 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 { class WithRawMethod_Range : public BaseClass {
private: private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
@@ -964,26 +873,6 @@ class Store final {
} }
}; };
template <class BaseClass> 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 { class WithRawCallbackMethod_Range : public BaseClass {
private: private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
@@ -1138,28 +1027,6 @@ class Store final {
::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
}; };
template <class BaseClass> 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 { class WithStreamedUnaryMethod_Range : public BaseClass {
private: private:
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
@@ -1348,36 +1215,9 @@ class Store final {
// replace default version of method with streamed unary // 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; virtual ::grpc::Status StreamedDeleteRange(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::DeleteRangeRequest,::greptime::v1::meta::DeleteRangeResponse>* server_unary_streamer) = 0;
}; };
template <class BaseClass> typedef WithStreamedUnaryMethod_Range<WithStreamedUnaryMethod_Put<WithStreamedUnaryMethod_BatchGet<WithStreamedUnaryMethod_BatchPut<WithStreamedUnaryMethod_BatchDelete<WithStreamedUnaryMethod_CompareAndPut<WithStreamedUnaryMethod_DeleteRange<Service > > > > > > > StreamedUnaryService;
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 Service SplitStreamedService; 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 } // 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_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 meta
} // namespace v1 } // namespace v1
} // namespace greptime } // 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::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; 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_.header_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DeleteRangeResponse, _impl_.deleted_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DeleteRangeResponse, _impl_.deleted_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DeleteRangeResponse, _impl_.prev_kvs_), 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) = { static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::greptime::v1::meta::RangeRequest)}, { 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)}, { 98, -1, -1, sizeof(::greptime::v1::meta::CompareAndPutResponse)},
{ 107, -1, -1, sizeof(::greptime::v1::meta::DeleteRangeRequest)}, { 107, -1, -1, sizeof(::greptime::v1::meta::DeleteRangeRequest)},
{ 117, -1, -1, sizeof(::greptime::v1::meta::DeleteRangeResponse)}, { 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[] = { 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::_CompareAndPutResponse_default_instance_._instance,
&::greptime::v1::meta::_DeleteRangeRequest_default_instance_._instance, &::greptime::v1::meta::_DeleteRangeRequest_default_instance_._instance,
&::greptime::v1::meta::_DeleteRangeResponse_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) = 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" "\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" "sponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.met"
"a.ResponseHeader\022\017\n\007deleted\030\002 \001(\003\022,\n\010pre" "a.ResponseHeader\022\017\n\007deleted\030\002 \001(\003\022,\n\010pre"
"v_kvs\030\003 \003(\0132\032.greptime.v1.meta.KeyValue\"" "v_kvs\030\003 \003(\0132\032.greptime.v1.meta.KeyValue2"
"e\n\020MoveValueRequest\022/\n\006header\030\001 \001(\0132\037.gr" "\325\004\n\005Store\022H\n\005Range\022\036.greptime.v1.meta.Ra"
"eptime.v1.meta.RequestHeader\022\020\n\010from_key" "ngeRequest\032\037.greptime.v1.meta.RangeRespo"
"\030\002 \001(\014\022\016\n\006to_key\030\003 \001(\014\"m\n\021MoveValueRespo" "nse\022B\n\003Put\022\034.greptime.v1.meta.PutRequest"
"nse\0220\n\006header\030\001 \001(\0132 .greptime.v1.meta.R" "\032\035.greptime.v1.meta.PutResponse\022Q\n\010Batch"
"esponseHeader\022&\n\002kv\030\002 \001(\0132\032.greptime.v1." "Get\022!.greptime.v1.meta.BatchGetRequest\032\""
"meta.KeyValue2\253\005\n\005Store\022H\n\005Range\022\036.grept" ".greptime.v1.meta.BatchGetResponse\022Q\n\010Ba"
"ime.v1.meta.RangeRequest\032\037.greptime.v1.m" "tchPut\022!.greptime.v1.meta.BatchPutReques"
"eta.RangeResponse\022B\n\003Put\022\034.greptime.v1.m" "t\032\".greptime.v1.meta.BatchPutResponse\022Z\n"
"eta.PutRequest\032\035.greptime.v1.meta.PutRes" "\013BatchDelete\022$.greptime.v1.meta.BatchDel"
"ponse\022Q\n\010BatchGet\022!.greptime.v1.meta.Bat" "eteRequest\032%.greptime.v1.meta.BatchDelet"
"chGetRequest\032\".greptime.v1.meta.BatchGet" "eResponse\022`\n\rCompareAndPut\022&.greptime.v1"
"Response\022Q\n\010BatchPut\022!.greptime.v1.meta." ".meta.CompareAndPutRequest\032\'.greptime.v1"
"BatchPutRequest\032\".greptime.v1.meta.Batch" ".meta.CompareAndPutResponse\022Z\n\013DeleteRan"
"PutResponse\022Z\n\013BatchDelete\022$.greptime.v1" "ge\022$.greptime.v1.meta.DeleteRangeRequest"
".meta.BatchDeleteRequest\032%.greptime.v1.m" "\032%.greptime.v1.meta.DeleteRangeResponseB"
"eta.BatchDeleteResponse\022`\n\rCompareAndPut" "<Z:github.com/GreptimeTeam/greptime-prot"
"\022&.greptime.v1.meta.CompareAndPutRequest" "o/go/greptime/v1/metab\006proto3"
"\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"
; ;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_deps[1] = { static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto, &::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
}; };
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fstore_2eproto = { 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", "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, 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_metadata_greptime_2fv1_2fmeta_2fstore_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fstore_2eproto,
file_level_service_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]); 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) // @@protoc_insertion_point(namespace_scope)
} // namespace meta } // namespace meta
} // namespace v1 } // namespace v1
@@ -5011,14 +4411,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DeleteRangeResponse*
Arena::CreateMaybeMessage< ::greptime::v1::meta::DeleteRangeResponse >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::meta::DeleteRangeResponse >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::DeleteRangeResponse >(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 PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)
-741
View File
@@ -78,12 +78,6 @@ extern DeleteRangeRequestDefaultTypeInternal _DeleteRangeRequest_default_instanc
class DeleteRangeResponse; class DeleteRangeResponse;
struct DeleteRangeResponseDefaultTypeInternal; struct DeleteRangeResponseDefaultTypeInternal;
extern DeleteRangeResponseDefaultTypeInternal _DeleteRangeResponse_default_instance_; 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; class PutRequest;
struct PutRequestDefaultTypeInternal; struct PutRequestDefaultTypeInternal;
extern PutRequestDefaultTypeInternal _PutRequest_default_instance_; 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::CompareAndPutResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::CompareAndPutResponse>(Arena*);
template<> ::greptime::v1::meta::DeleteRangeRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::DeleteRangeRequest>(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::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::PutRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::PutRequest>(Arena*);
template<> ::greptime::v1::meta::PutResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::PutResponse>(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*); template<> ::greptime::v1::meta::RangeRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::RangeRequest>(Arena*);
@@ -2774,372 +2766,6 @@ class DeleteRangeResponse final :
union { Impl_ _impl_; }; union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fstore_2eproto; 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_; 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__ #ifdef __GNUC__
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif // __GNUC__ #endif // __GNUC__
@@ -5957,10 +5220,6 @@ inline void MoveValueResponse::set_allocated_kv(::greptime::v1::meta::KeyValue*
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
+81 -256
View File
@@ -962,129 +962,6 @@ func (x *DeleteRangeResponse) GetPrevKvs() []*KeyValue {
return nil 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 protoreflect.FileDescriptor
var file_greptime_v1_meta_store_proto_rawDesc = []byte{ 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, 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, 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, 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, 0x75, 0x65, 0x52, 0x07, 0x70, 0x72, 0x65, 0x76, 0x4b, 0x76, 0x73, 0x32, 0xd5, 0x04, 0x0a, 0x05,
0x6f, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1e,
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,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 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, 0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f,
0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x12, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x42, 0x0a, 0x03, 0x50, 0x75, 0x74, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71,
0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x12, 0x51, 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x74, 0x12, 0x21, 0x2e, 0x67, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x12,
0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
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, 0x71, 0x75, 0x65,
0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0b, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6c, 0x65, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x65,
0x74, 0x65, 0x12, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x75, 0x74, 0x12, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 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, 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, 0x68, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25,
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,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 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, 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, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 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, 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, 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 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{}{ var file_greptime_v1_meta_store_proto_goTypes = []interface{}{
(*RangeRequest)(nil), // 0: greptime.v1.meta.RangeRequest (*RangeRequest)(nil), // 0: greptime.v1.meta.RangeRequest
(*RangeResponse)(nil), // 1: greptime.v1.meta.RangeResponse (*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 (*CompareAndPutResponse)(nil), // 11: greptime.v1.meta.CompareAndPutResponse
(*DeleteRangeRequest)(nil), // 12: greptime.v1.meta.DeleteRangeRequest (*DeleteRangeRequest)(nil), // 12: greptime.v1.meta.DeleteRangeRequest
(*DeleteRangeResponse)(nil), // 13: greptime.v1.meta.DeleteRangeResponse (*DeleteRangeResponse)(nil), // 13: greptime.v1.meta.DeleteRangeResponse
(*MoveValueRequest)(nil), // 14: greptime.v1.meta.MoveValueRequest (*RequestHeader)(nil), // 14: greptime.v1.meta.RequestHeader
(*MoveValueResponse)(nil), // 15: greptime.v1.meta.MoveValueResponse (*ResponseHeader)(nil), // 15: greptime.v1.meta.ResponseHeader
(*RequestHeader)(nil), // 16: greptime.v1.meta.RequestHeader (*KeyValue)(nil), // 16: greptime.v1.meta.KeyValue
(*ResponseHeader)(nil), // 17: greptime.v1.meta.ResponseHeader
(*KeyValue)(nil), // 18: greptime.v1.meta.KeyValue
} }
var file_greptime_v1_meta_store_proto_depIdxs = []int32{ var file_greptime_v1_meta_store_proto_depIdxs = []int32{
16, // 0: greptime.v1.meta.RangeRequest.header:type_name -> greptime.v1.meta.RequestHeader 14, // 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 15, // 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, // 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 14, // 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 15, // 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, // 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 14, // 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 15, // 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, // 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 14, // 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 16, // 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 15, // 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, // 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 14, // 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 15, // 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, // 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 14, // 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 15, // 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, // 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 14, // 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 15, // 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, // 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 0, // 22: greptime.v1.meta.Store.Range:input_type -> greptime.v1.meta.RangeRequest
17, // 23: greptime.v1.meta.MoveValueResponse.header:type_name -> greptime.v1.meta.ResponseHeader 2, // 23: greptime.v1.meta.Store.Put:input_type -> greptime.v1.meta.PutRequest
18, // 24: greptime.v1.meta.MoveValueResponse.kv:type_name -> greptime.v1.meta.KeyValue 4, // 24: greptime.v1.meta.Store.BatchGet:input_type -> greptime.v1.meta.BatchGetRequest
0, // 25: greptime.v1.meta.Store.Range:input_type -> greptime.v1.meta.RangeRequest 6, // 25: greptime.v1.meta.Store.BatchPut:input_type -> greptime.v1.meta.BatchPutRequest
2, // 26: greptime.v1.meta.Store.Put:input_type -> greptime.v1.meta.PutRequest 8, // 26: greptime.v1.meta.Store.BatchDelete:input_type -> greptime.v1.meta.BatchDeleteRequest
4, // 27: greptime.v1.meta.Store.BatchGet:input_type -> greptime.v1.meta.BatchGetRequest 10, // 27: greptime.v1.meta.Store.CompareAndPut:input_type -> greptime.v1.meta.CompareAndPutRequest
6, // 28: greptime.v1.meta.Store.BatchPut:input_type -> greptime.v1.meta.BatchPutRequest 12, // 28: greptime.v1.meta.Store.DeleteRange:input_type -> greptime.v1.meta.DeleteRangeRequest
8, // 29: greptime.v1.meta.Store.BatchDelete:input_type -> greptime.v1.meta.BatchDeleteRequest 1, // 29: greptime.v1.meta.Store.Range:output_type -> greptime.v1.meta.RangeResponse
10, // 30: greptime.v1.meta.Store.CompareAndPut:input_type -> greptime.v1.meta.CompareAndPutRequest 3, // 30: greptime.v1.meta.Store.Put:output_type -> greptime.v1.meta.PutResponse
12, // 31: greptime.v1.meta.Store.DeleteRange:input_type -> greptime.v1.meta.DeleteRangeRequest 5, // 31: greptime.v1.meta.Store.BatchGet:output_type -> greptime.v1.meta.BatchGetResponse
14, // 32: greptime.v1.meta.Store.MoveValue:input_type -> greptime.v1.meta.MoveValueRequest 7, // 32: greptime.v1.meta.Store.BatchPut:output_type -> greptime.v1.meta.BatchPutResponse
1, // 33: greptime.v1.meta.Store.Range:output_type -> greptime.v1.meta.RangeResponse 9, // 33: greptime.v1.meta.Store.BatchDelete:output_type -> greptime.v1.meta.BatchDeleteResponse
3, // 34: greptime.v1.meta.Store.Put:output_type -> greptime.v1.meta.PutResponse 11, // 34: greptime.v1.meta.Store.CompareAndPut:output_type -> greptime.v1.meta.CompareAndPutResponse
5, // 35: greptime.v1.meta.Store.BatchGet:output_type -> greptime.v1.meta.BatchGetResponse 13, // 35: greptime.v1.meta.Store.DeleteRange:output_type -> greptime.v1.meta.DeleteRangeResponse
7, // 36: greptime.v1.meta.Store.BatchPut:output_type -> greptime.v1.meta.BatchPutResponse 29, // [29:36] is the sub-list for method output_type
9, // 37: greptime.v1.meta.Store.BatchDelete:output_type -> greptime.v1.meta.BatchDeleteResponse 22, // [22:29] is the sub-list for method input_type
11, // 38: greptime.v1.meta.Store.CompareAndPut:output_type -> greptime.v1.meta.CompareAndPutResponse 22, // [22:22] is the sub-list for extension type_name
13, // 39: greptime.v1.meta.Store.DeleteRange:output_type -> greptime.v1.meta.DeleteRangeResponse 22, // [22:22] is the sub-list for extension extendee
15, // 40: greptime.v1.meta.Store.MoveValue:output_type -> greptime.v1.meta.MoveValueResponse 0, // [0:22] is the sub-list for field type_name
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
} }
func init() { file_greptime_v1_meta_store_proto_init() } func init() { file_greptime_v1_meta_store_proto_init() }
@@ -1539,30 +1388,6 @@ func file_greptime_v1_meta_store_proto_init() {
return nil 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{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
@@ -1570,7 +1395,7 @@ func file_greptime_v1_meta_store_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_meta_store_proto_rawDesc, RawDescriptor: file_greptime_v1_meta_store_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 16, NumMessages: 14,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
-38
View File
@@ -38,8 +38,6 @@ type StoreClient interface {
CompareAndPut(ctx context.Context, in *CompareAndPutRequest, opts ...grpc.CallOption) (*CompareAndPutResponse, error) CompareAndPut(ctx context.Context, in *CompareAndPutRequest, opts ...grpc.CallOption) (*CompareAndPutResponse, error)
// DeleteRange deletes the given range from the key-value store. // DeleteRange deletes the given range from the key-value store.
DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error) 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 { type storeClient struct {
@@ -113,15 +111,6 @@ func (c *storeClient) DeleteRange(ctx context.Context, in *DeleteRangeRequest, o
return out, nil 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. // StoreServer is the server API for Store service.
// All implementations must embed UnimplementedStoreServer // All implementations must embed UnimplementedStoreServer
// for forward compatibility // for forward compatibility
@@ -142,8 +131,6 @@ type StoreServer interface {
CompareAndPut(context.Context, *CompareAndPutRequest) (*CompareAndPutResponse, error) CompareAndPut(context.Context, *CompareAndPutRequest) (*CompareAndPutResponse, error)
// DeleteRange deletes the given range from the key-value store. // DeleteRange deletes the given range from the key-value store.
DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error) DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error)
// MoveValue atomically renames the key to the given updated key.
MoveValue(context.Context, *MoveValueRequest) (*MoveValueResponse, error)
mustEmbedUnimplementedStoreServer() mustEmbedUnimplementedStoreServer()
} }
@@ -172,9 +159,6 @@ func (UnimplementedStoreServer) CompareAndPut(context.Context, *CompareAndPutReq
func (UnimplementedStoreServer) DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error) { func (UnimplementedStoreServer) DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteRange not implemented") 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() {} func (UnimplementedStoreServer) mustEmbedUnimplementedStoreServer() {}
// UnsafeStoreServer may be embedded to opt out of forward compatibility for this service. // 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) 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. // Store_ServiceDesc is the grpc.ServiceDesc for Store service.
// It's only intended for direct use with grpc.RegisterService, // It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy) // and not to be introspected or modified (even as a copy)
@@ -367,10 +333,6 @@ var Store_ServiceDesc = grpc.ServiceDesc{
MethodName: "DeleteRange", MethodName: "DeleteRange",
Handler: _Store_DeleteRange_Handler, Handler: _Store_DeleteRange_Handler,
}, },
{
MethodName: "MoveValue",
Handler: _Store_MoveValue_Handler,
},
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "greptime/v1/meta/store.proto", Metadata: "greptime/v1/meta/store.proto",
File diff suppressed because it is too large Load Diff
-21
View File
@@ -43,9 +43,6 @@ service Store {
// DeleteRange deletes the given range from the key-value store. // DeleteRange deletes the given range from the key-value store.
rpc DeleteRange(DeleteRangeRequest) returns (DeleteRangeResponse); rpc DeleteRange(DeleteRangeRequest) returns (DeleteRangeResponse);
// MoveValue atomically renames the key to the given updated key.
rpc MoveValue(MoveValueRequest) returns (MoveValueResponse);
} }
message RangeRequest { message RangeRequest {
@@ -191,21 +188,3 @@ message DeleteRangeResponse {
// returned. // returned.
repeated KeyValue prev_kvs = 3; repeated KeyValue prev_kvs = 3;
} }
message MoveValueRequest {
RequestHeader header = 1;
// 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;
bytes to_key = 3;
}
message MoveValueResponse {
ResponseHeader header = 1;
// 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.
KeyValue kv = 2;
}
-1
View File
@@ -163,7 +163,6 @@ gen_set_header!(BatchPutRequest);
gen_set_header!(BatchDeleteRequest); gen_set_header!(BatchDeleteRequest);
gen_set_header!(CompareAndPutRequest); gen_set_header!(CompareAndPutRequest);
gen_set_header!(DeleteRangeRequest); gen_set_header!(DeleteRangeRequest);
gen_set_header!(MoveValueRequest);
gen_set_header!(LockRequest); gen_set_header!(LockRequest);
gen_set_header!(UnlockRequest); gen_set_header!(UnlockRequest);
gen_set_header!(SubmitDdlTaskRequest); gen_set_header!(SubmitDdlTaskRequest);