feat(flow): bulk notify (#243)
* feat: mark dirty time window * fix: time window range * update DirtyWindowRequest --------- Co-authored-by: Lei, HUANG <mrsatangel@gmail.com>
This commit is contained in:
@@ -26,6 +26,7 @@ namespace flow {
|
||||
static const char* Flow_method_names[] = {
|
||||
"/greptime.v1.flow.Flow/HandleCreateRemove",
|
||||
"/greptime.v1.flow.Flow/HandleMirrorRequest",
|
||||
"/greptime.v1.flow.Flow/HandleMarkDirtyTimeWindow",
|
||||
};
|
||||
|
||||
std::unique_ptr< Flow::Stub> Flow::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
|
||||
@@ -37,6 +38,7 @@ std::unique_ptr< Flow::Stub> Flow::NewStub(const std::shared_ptr< ::grpc::Channe
|
||||
Flow::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
|
||||
: channel_(channel), rpcmethod_HandleCreateRemove_(Flow_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_HandleMirrorRequest_(Flow_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_HandleMarkDirtyTimeWindow_(Flow_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
{}
|
||||
|
||||
::grpc::Status Flow::Stub::HandleCreateRemove(::grpc::ClientContext* context, const ::greptime::v1::flow::FlowRequest& request, ::greptime::v1::flow::FlowResponse* response) {
|
||||
@@ -85,6 +87,29 @@ void Flow::Stub::async::HandleMirrorRequest(::grpc::ClientContext* context, cons
|
||||
return result;
|
||||
}
|
||||
|
||||
::grpc::Status Flow::Stub::HandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::greptime::v1::flow::FlowResponse* response) {
|
||||
return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::flow::DirtyWindowRequests, ::greptime::v1::flow::FlowResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_HandleMarkDirtyTimeWindow_, context, request, response);
|
||||
}
|
||||
|
||||
void Flow::Stub::async::HandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests* request, ::greptime::v1::flow::FlowResponse* response, std::function<void(::grpc::Status)> f) {
|
||||
::grpc::internal::CallbackUnaryCall< ::greptime::v1::flow::DirtyWindowRequests, ::greptime::v1::flow::FlowResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_HandleMarkDirtyTimeWindow_, context, request, response, std::move(f));
|
||||
}
|
||||
|
||||
void Flow::Stub::async::HandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests* request, ::greptime::v1::flow::FlowResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
||||
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_HandleMarkDirtyTimeWindow_, context, request, response, reactor);
|
||||
}
|
||||
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>* Flow::Stub::PrepareAsyncHandleMarkDirtyTimeWindowRaw(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::grpc::CompletionQueue* cq) {
|
||||
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::flow::FlowResponse, ::greptime::v1::flow::DirtyWindowRequests, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_HandleMarkDirtyTimeWindow_, context, request);
|
||||
}
|
||||
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>* Flow::Stub::AsyncHandleMarkDirtyTimeWindowRaw(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::grpc::CompletionQueue* cq) {
|
||||
auto* result =
|
||||
this->PrepareAsyncHandleMarkDirtyTimeWindowRaw(context, request, cq);
|
||||
result->StartCall();
|
||||
return result;
|
||||
}
|
||||
|
||||
Flow::Service::Service() {
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Flow_method_names[0],
|
||||
@@ -106,6 +131,16 @@ Flow::Service::Service() {
|
||||
::greptime::v1::flow::FlowResponse* resp) {
|
||||
return service->HandleMirrorRequest(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
Flow_method_names[2],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< Flow::Service, ::greptime::v1::flow::DirtyWindowRequests, ::greptime::v1::flow::FlowResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](Flow::Service* service,
|
||||
::grpc::ServerContext* ctx,
|
||||
const ::greptime::v1::flow::DirtyWindowRequests* req,
|
||||
::greptime::v1::flow::FlowResponse* resp) {
|
||||
return service->HandleMarkDirtyTimeWindow(ctx, req, resp);
|
||||
}, this)));
|
||||
}
|
||||
|
||||
Flow::Service::~Service() {
|
||||
@@ -125,6 +160,13 @@ Flow::Service::~Service() {
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
|
||||
::grpc::Status Flow::Service::HandleMarkDirtyTimeWindow(::grpc::ServerContext* context, const ::greptime::v1::flow::DirtyWindowRequests* request, ::greptime::v1::flow::FlowResponse* response) {
|
||||
(void) context;
|
||||
(void) request;
|
||||
(void) response;
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
|
||||
|
||||
} // namespace greptime
|
||||
} // namespace v1
|
||||
|
||||
@@ -70,6 +70,13 @@ class Flow final {
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::flow::FlowResponse>> PrepareAsyncHandleMirrorRequest(::grpc::ClientContext* context, const ::greptime::v1::flow::InsertRequests& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::flow::FlowResponse>>(PrepareAsyncHandleMirrorRequestRaw(context, request, cq));
|
||||
}
|
||||
virtual ::grpc::Status HandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::greptime::v1::flow::FlowResponse* response) = 0;
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::flow::FlowResponse>> AsyncHandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::flow::FlowResponse>>(AsyncHandleMarkDirtyTimeWindowRaw(context, request, cq));
|
||||
}
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::flow::FlowResponse>> PrepareAsyncHandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::flow::FlowResponse>>(PrepareAsyncHandleMarkDirtyTimeWindowRaw(context, request, cq));
|
||||
}
|
||||
class async_interface {
|
||||
public:
|
||||
virtual ~async_interface() {}
|
||||
@@ -81,6 +88,8 @@ class Flow final {
|
||||
// `DeleteRequests` other types of `RegionRequest` will be ignored
|
||||
virtual void HandleMirrorRequest(::grpc::ClientContext* context, const ::greptime::v1::flow::InsertRequests* request, ::greptime::v1::flow::FlowResponse* response, std::function<void(::grpc::Status)>) = 0;
|
||||
virtual void HandleMirrorRequest(::grpc::ClientContext* context, const ::greptime::v1::flow::InsertRequests* request, ::greptime::v1::flow::FlowResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
|
||||
virtual void HandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests* request, ::greptime::v1::flow::FlowResponse* response, std::function<void(::grpc::Status)>) = 0;
|
||||
virtual void HandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests* request, ::greptime::v1::flow::FlowResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
|
||||
};
|
||||
typedef class async_interface experimental_async_interface;
|
||||
virtual class async_interface* async() { return nullptr; }
|
||||
@@ -90,6 +99,8 @@ class Flow final {
|
||||
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::flow::FlowResponse>* PrepareAsyncHandleCreateRemoveRaw(::grpc::ClientContext* context, const ::greptime::v1::flow::FlowRequest& request, ::grpc::CompletionQueue* cq) = 0;
|
||||
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::flow::FlowResponse>* AsyncHandleMirrorRequestRaw(::grpc::ClientContext* context, const ::greptime::v1::flow::InsertRequests& request, ::grpc::CompletionQueue* cq) = 0;
|
||||
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::flow::FlowResponse>* PrepareAsyncHandleMirrorRequestRaw(::grpc::ClientContext* context, const ::greptime::v1::flow::InsertRequests& request, ::grpc::CompletionQueue* cq) = 0;
|
||||
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::flow::FlowResponse>* AsyncHandleMarkDirtyTimeWindowRaw(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::grpc::CompletionQueue* cq) = 0;
|
||||
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::flow::FlowResponse>* PrepareAsyncHandleMarkDirtyTimeWindowRaw(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::grpc::CompletionQueue* cq) = 0;
|
||||
};
|
||||
class Stub final : public StubInterface {
|
||||
public:
|
||||
@@ -108,6 +119,13 @@ class Flow final {
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>> PrepareAsyncHandleMirrorRequest(::grpc::ClientContext* context, const ::greptime::v1::flow::InsertRequests& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>>(PrepareAsyncHandleMirrorRequestRaw(context, request, cq));
|
||||
}
|
||||
::grpc::Status HandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::greptime::v1::flow::FlowResponse* response) override;
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>> AsyncHandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>>(AsyncHandleMarkDirtyTimeWindowRaw(context, request, cq));
|
||||
}
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>> PrepareAsyncHandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>>(PrepareAsyncHandleMarkDirtyTimeWindowRaw(context, request, cq));
|
||||
}
|
||||
class async final :
|
||||
public StubInterface::async_interface {
|
||||
public:
|
||||
@@ -115,6 +133,8 @@ class Flow final {
|
||||
void HandleCreateRemove(::grpc::ClientContext* context, const ::greptime::v1::flow::FlowRequest* request, ::greptime::v1::flow::FlowResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
|
||||
void HandleMirrorRequest(::grpc::ClientContext* context, const ::greptime::v1::flow::InsertRequests* request, ::greptime::v1::flow::FlowResponse* response, std::function<void(::grpc::Status)>) override;
|
||||
void HandleMirrorRequest(::grpc::ClientContext* context, const ::greptime::v1::flow::InsertRequests* request, ::greptime::v1::flow::FlowResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
|
||||
void HandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests* request, ::greptime::v1::flow::FlowResponse* response, std::function<void(::grpc::Status)>) override;
|
||||
void HandleMarkDirtyTimeWindow(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests* request, ::greptime::v1::flow::FlowResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
|
||||
private:
|
||||
friend class Stub;
|
||||
explicit async(Stub* stub): stub_(stub) { }
|
||||
@@ -130,8 +150,11 @@ class Flow final {
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>* PrepareAsyncHandleCreateRemoveRaw(::grpc::ClientContext* context, const ::greptime::v1::flow::FlowRequest& request, ::grpc::CompletionQueue* cq) override;
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>* AsyncHandleMirrorRequestRaw(::grpc::ClientContext* context, const ::greptime::v1::flow::InsertRequests& request, ::grpc::CompletionQueue* cq) override;
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>* PrepareAsyncHandleMirrorRequestRaw(::grpc::ClientContext* context, const ::greptime::v1::flow::InsertRequests& request, ::grpc::CompletionQueue* cq) override;
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>* AsyncHandleMarkDirtyTimeWindowRaw(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::grpc::CompletionQueue* cq) override;
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::flow::FlowResponse>* PrepareAsyncHandleMarkDirtyTimeWindowRaw(::grpc::ClientContext* context, const ::greptime::v1::flow::DirtyWindowRequests& request, ::grpc::CompletionQueue* cq) override;
|
||||
const ::grpc::internal::RpcMethod rpcmethod_HandleCreateRemove_;
|
||||
const ::grpc::internal::RpcMethod rpcmethod_HandleMirrorRequest_;
|
||||
const ::grpc::internal::RpcMethod rpcmethod_HandleMarkDirtyTimeWindow_;
|
||||
};
|
||||
static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
|
||||
|
||||
@@ -145,6 +168,7 @@ class Flow final {
|
||||
// only expect `RegionRequest` to be one of `InsertRequests` or
|
||||
// `DeleteRequests` other types of `RegionRequest` will be ignored
|
||||
virtual ::grpc::Status HandleMirrorRequest(::grpc::ServerContext* context, const ::greptime::v1::flow::InsertRequests* request, ::greptime::v1::flow::FlowResponse* response);
|
||||
virtual ::grpc::Status HandleMarkDirtyTimeWindow(::grpc::ServerContext* context, const ::greptime::v1::flow::DirtyWindowRequests* request, ::greptime::v1::flow::FlowResponse* response);
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithAsyncMethod_HandleCreateRemove : public BaseClass {
|
||||
@@ -186,7 +210,27 @@ class Flow final {
|
||||
::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
|
||||
}
|
||||
};
|
||||
typedef WithAsyncMethod_HandleCreateRemove<WithAsyncMethod_HandleMirrorRequest<Service > > AsyncService;
|
||||
template <class BaseClass>
|
||||
class WithAsyncMethod_HandleMarkDirtyTimeWindow : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithAsyncMethod_HandleMarkDirtyTimeWindow() {
|
||||
::grpc::Service::MarkMethodAsync(2);
|
||||
}
|
||||
~WithAsyncMethod_HandleMarkDirtyTimeWindow() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status HandleMarkDirtyTimeWindow(::grpc::ServerContext* /*context*/, const ::greptime::v1::flow::DirtyWindowRequests* /*request*/, ::greptime::v1::flow::FlowResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
void RequestHandleMarkDirtyTimeWindow(::grpc::ServerContext* context, ::greptime::v1::flow::DirtyWindowRequests* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::flow::FlowResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
|
||||
::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
|
||||
}
|
||||
};
|
||||
typedef WithAsyncMethod_HandleCreateRemove<WithAsyncMethod_HandleMirrorRequest<WithAsyncMethod_HandleMarkDirtyTimeWindow<Service > > > AsyncService;
|
||||
template <class BaseClass>
|
||||
class WithCallbackMethod_HandleCreateRemove : public BaseClass {
|
||||
private:
|
||||
@@ -241,7 +285,34 @@ class Flow final {
|
||||
virtual ::grpc::ServerUnaryReactor* HandleMirrorRequest(
|
||||
::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::flow::InsertRequests* /*request*/, ::greptime::v1::flow::FlowResponse* /*response*/) { return nullptr; }
|
||||
};
|
||||
typedef WithCallbackMethod_HandleCreateRemove<WithCallbackMethod_HandleMirrorRequest<Service > > CallbackService;
|
||||
template <class BaseClass>
|
||||
class WithCallbackMethod_HandleMarkDirtyTimeWindow : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithCallbackMethod_HandleMarkDirtyTimeWindow() {
|
||||
::grpc::Service::MarkMethodCallback(2,
|
||||
new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::flow::DirtyWindowRequests, ::greptime::v1::flow::FlowResponse>(
|
||||
[this](
|
||||
::grpc::CallbackServerContext* context, const ::greptime::v1::flow::DirtyWindowRequests* request, ::greptime::v1::flow::FlowResponse* response) { return this->HandleMarkDirtyTimeWindow(context, request, response); }));}
|
||||
void SetMessageAllocatorFor_HandleMarkDirtyTimeWindow(
|
||||
::grpc::MessageAllocator< ::greptime::v1::flow::DirtyWindowRequests, ::greptime::v1::flow::FlowResponse>* allocator) {
|
||||
::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2);
|
||||
static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::flow::DirtyWindowRequests, ::greptime::v1::flow::FlowResponse>*>(handler)
|
||||
->SetMessageAllocator(allocator);
|
||||
}
|
||||
~WithCallbackMethod_HandleMarkDirtyTimeWindow() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status HandleMarkDirtyTimeWindow(::grpc::ServerContext* /*context*/, const ::greptime::v1::flow::DirtyWindowRequests* /*request*/, ::greptime::v1::flow::FlowResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
virtual ::grpc::ServerUnaryReactor* HandleMarkDirtyTimeWindow(
|
||||
::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::flow::DirtyWindowRequests* /*request*/, ::greptime::v1::flow::FlowResponse* /*response*/) { return nullptr; }
|
||||
};
|
||||
typedef WithCallbackMethod_HandleCreateRemove<WithCallbackMethod_HandleMirrorRequest<WithCallbackMethod_HandleMarkDirtyTimeWindow<Service > > > CallbackService;
|
||||
typedef CallbackService ExperimentalCallbackService;
|
||||
template <class BaseClass>
|
||||
class WithGenericMethod_HandleCreateRemove : public BaseClass {
|
||||
@@ -278,6 +349,23 @@ class Flow final {
|
||||
}
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithGenericMethod_HandleMarkDirtyTimeWindow : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithGenericMethod_HandleMarkDirtyTimeWindow() {
|
||||
::grpc::Service::MarkMethodGeneric(2);
|
||||
}
|
||||
~WithGenericMethod_HandleMarkDirtyTimeWindow() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status HandleMarkDirtyTimeWindow(::grpc::ServerContext* /*context*/, const ::greptime::v1::flow::DirtyWindowRequests* /*request*/, ::greptime::v1::flow::FlowResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithRawMethod_HandleCreateRemove : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
@@ -318,6 +406,26 @@ class Flow final {
|
||||
}
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithRawMethod_HandleMarkDirtyTimeWindow : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithRawMethod_HandleMarkDirtyTimeWindow() {
|
||||
::grpc::Service::MarkMethodRaw(2);
|
||||
}
|
||||
~WithRawMethod_HandleMarkDirtyTimeWindow() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status HandleMarkDirtyTimeWindow(::grpc::ServerContext* /*context*/, const ::greptime::v1::flow::DirtyWindowRequests* /*request*/, ::greptime::v1::flow::FlowResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
void RequestHandleMarkDirtyTimeWindow(::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(2, context, request, response, new_call_cq, notification_cq, tag);
|
||||
}
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithRawCallbackMethod_HandleCreateRemove : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
@@ -362,6 +470,28 @@ class Flow final {
|
||||
::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithRawCallbackMethod_HandleMarkDirtyTimeWindow : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithRawCallbackMethod_HandleMarkDirtyTimeWindow() {
|
||||
::grpc::Service::MarkMethodRawCallback(2,
|
||||
new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
|
||||
[this](
|
||||
::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->HandleMarkDirtyTimeWindow(context, request, response); }));
|
||||
}
|
||||
~WithRawCallbackMethod_HandleMarkDirtyTimeWindow() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status HandleMarkDirtyTimeWindow(::grpc::ServerContext* /*context*/, const ::greptime::v1::flow::DirtyWindowRequests* /*request*/, ::greptime::v1::flow::FlowResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
virtual ::grpc::ServerUnaryReactor* HandleMarkDirtyTimeWindow(
|
||||
::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithStreamedUnaryMethod_HandleCreateRemove : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
@@ -415,9 +545,36 @@ class Flow final {
|
||||
// replace default version of method with streamed unary
|
||||
virtual ::grpc::Status StreamedHandleMirrorRequest(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::flow::InsertRequests,::greptime::v1::flow::FlowResponse>* server_unary_streamer) = 0;
|
||||
};
|
||||
typedef WithStreamedUnaryMethod_HandleCreateRemove<WithStreamedUnaryMethod_HandleMirrorRequest<Service > > StreamedUnaryService;
|
||||
template <class BaseClass>
|
||||
class WithStreamedUnaryMethod_HandleMarkDirtyTimeWindow : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithStreamedUnaryMethod_HandleMarkDirtyTimeWindow() {
|
||||
::grpc::Service::MarkMethodStreamed(2,
|
||||
new ::grpc::internal::StreamedUnaryHandler<
|
||||
::greptime::v1::flow::DirtyWindowRequests, ::greptime::v1::flow::FlowResponse>(
|
||||
[this](::grpc::ServerContext* context,
|
||||
::grpc::ServerUnaryStreamer<
|
||||
::greptime::v1::flow::DirtyWindowRequests, ::greptime::v1::flow::FlowResponse>* streamer) {
|
||||
return this->StreamedHandleMarkDirtyTimeWindow(context,
|
||||
streamer);
|
||||
}));
|
||||
}
|
||||
~WithStreamedUnaryMethod_HandleMarkDirtyTimeWindow() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable regular version of this method
|
||||
::grpc::Status HandleMarkDirtyTimeWindow(::grpc::ServerContext* /*context*/, const ::greptime::v1::flow::DirtyWindowRequests* /*request*/, ::greptime::v1::flow::FlowResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
// replace default version of method with streamed unary
|
||||
virtual ::grpc::Status StreamedHandleMarkDirtyTimeWindow(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::flow::DirtyWindowRequests,::greptime::v1::flow::FlowResponse>* server_unary_streamer) = 0;
|
||||
};
|
||||
typedef WithStreamedUnaryMethod_HandleCreateRemove<WithStreamedUnaryMethod_HandleMirrorRequest<WithStreamedUnaryMethod_HandleMarkDirtyTimeWindow<Service > > > StreamedUnaryService;
|
||||
typedef Service SplitStreamedService;
|
||||
typedef WithStreamedUnaryMethod_HandleCreateRemove<WithStreamedUnaryMethod_HandleMirrorRequest<Service > > StreamedService;
|
||||
typedef WithStreamedUnaryMethod_HandleCreateRemove<WithStreamedUnaryMethod_HandleMirrorRequest<WithStreamedUnaryMethod_HandleMarkDirtyTimeWindow<Service > > > StreamedService;
|
||||
};
|
||||
|
||||
} // namespace flow
|
||||
|
||||
@@ -23,6 +23,34 @@ namespace _pbi = _pb::internal;
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace flow {
|
||||
PROTOBUF_CONSTEXPR DirtyWindowRequests::DirtyWindowRequests(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.requests_)*/{}
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct DirtyWindowRequestsDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR DirtyWindowRequestsDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~DirtyWindowRequestsDefaultTypeInternal() {}
|
||||
union {
|
||||
DirtyWindowRequests _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DirtyWindowRequestsDefaultTypeInternal _DirtyWindowRequests_default_instance_;
|
||||
PROTOBUF_CONSTEXPR DirtyWindowRequest::DirtyWindowRequest(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.timestamps_)*/{}
|
||||
, /*decltype(_impl_._timestamps_cached_byte_size_)*/{0}
|
||||
, /*decltype(_impl_.table_id_)*/0u
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct DirtyWindowRequestDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR DirtyWindowRequestDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~DirtyWindowRequestDefaultTypeInternal() {}
|
||||
union {
|
||||
DirtyWindowRequest _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DirtyWindowRequestDefaultTypeInternal _DirtyWindowRequest_default_instance_;
|
||||
PROTOBUF_CONSTEXPR FlowRequestHeader_TracingContextEntry_DoNotUse::FlowRequestHeader_TracingContextEntry_DoNotUse(
|
||||
::_pbi::ConstantInitialized) {}
|
||||
struct FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal {
|
||||
@@ -178,11 +206,26 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
|
||||
} // namespace flow
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[11];
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[13];
|
||||
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fflow_2fserver_2eproto = nullptr;
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fflow_2fserver_2eproto = nullptr;
|
||||
|
||||
const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::DirtyWindowRequests, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::DirtyWindowRequests, _impl_.requests_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::DirtyWindowRequest, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::DirtyWindowRequest, _impl_.table_id_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::DirtyWindowRequest, _impl_.timestamps_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse, _has_bits_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -288,20 +331,24 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlushFlow, _impl_.flow_id_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 8, -1, sizeof(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse)},
|
||||
{ 10, -1, -1, sizeof(::greptime::v1::flow::FlowRequestHeader)},
|
||||
{ 18, -1, -1, sizeof(::greptime::v1::flow::InsertRequests)},
|
||||
{ 25, -1, -1, sizeof(::greptime::v1::flow::InsertRequest)},
|
||||
{ 33, -1, -1, sizeof(::greptime::v1::flow::FlowRequest)},
|
||||
{ 44, 52, -1, sizeof(::greptime::v1::flow::FlowResponse_ExtensionsEntry_DoNotUse)},
|
||||
{ 54, -1, -1, sizeof(::greptime::v1::flow::FlowResponse)},
|
||||
{ 64, 72, -1, sizeof(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse)},
|
||||
{ 74, -1, -1, sizeof(::greptime::v1::flow::CreateRequest)},
|
||||
{ 89, -1, -1, sizeof(::greptime::v1::flow::DropRequest)},
|
||||
{ 96, -1, -1, sizeof(::greptime::v1::flow::FlushFlow)},
|
||||
{ 0, -1, -1, sizeof(::greptime::v1::flow::DirtyWindowRequests)},
|
||||
{ 7, -1, -1, sizeof(::greptime::v1::flow::DirtyWindowRequest)},
|
||||
{ 15, 23, -1, sizeof(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse)},
|
||||
{ 25, -1, -1, sizeof(::greptime::v1::flow::FlowRequestHeader)},
|
||||
{ 33, -1, -1, sizeof(::greptime::v1::flow::InsertRequests)},
|
||||
{ 40, -1, -1, sizeof(::greptime::v1::flow::InsertRequest)},
|
||||
{ 48, -1, -1, sizeof(::greptime::v1::flow::FlowRequest)},
|
||||
{ 59, 67, -1, sizeof(::greptime::v1::flow::FlowResponse_ExtensionsEntry_DoNotUse)},
|
||||
{ 69, -1, -1, sizeof(::greptime::v1::flow::FlowResponse)},
|
||||
{ 79, 87, -1, sizeof(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse)},
|
||||
{ 89, -1, -1, sizeof(::greptime::v1::flow::CreateRequest)},
|
||||
{ 104, -1, -1, sizeof(::greptime::v1::flow::DropRequest)},
|
||||
{ 111, -1, -1, sizeof(::greptime::v1::flow::FlushFlow)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::flow::_DirtyWindowRequests_default_instance_._instance,
|
||||
&::greptime::v1::flow::_DirtyWindowRequest_default_instance_._instance,
|
||||
&::greptime::v1::flow::_FlowRequestHeader_TracingContextEntry_DoNotUse_default_instance_._instance,
|
||||
&::greptime::v1::flow::_FlowRequestHeader_default_instance_._instance,
|
||||
&::greptime::v1::flow::_InsertRequests_default_instance_._instance,
|
||||
@@ -319,47 +366,53 @@ const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PRO
|
||||
"\n\035greptime/v1/flow/server.proto\022\020greptim"
|
||||
"e.v1.flow\032\030greptime/v1/common.proto\032\025gre"
|
||||
"ptime/v1/ddl.proto\032\025greptime/v1/row.prot"
|
||||
"o\"\316\001\n\021FlowRequestHeader\022P\n\017tracing_conte"
|
||||
"xt\030\001 \003(\01327.greptime.v1.flow.FlowRequestH"
|
||||
"eader.TracingContextEntry\0220\n\rquery_conte"
|
||||
"xt\030\002 \001(\0132\031.greptime.v1.QueryContext\0325\n\023T"
|
||||
"racingContextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value"
|
||||
"\030\002 \001(\t:\0028\001\"C\n\016InsertRequests\0221\n\010requests"
|
||||
"\030\001 \003(\0132\037.greptime.v1.flow.InsertRequest\""
|
||||
"C\n\rInsertRequest\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004r"
|
||||
"ows\030\002 \001(\0132\021.greptime.v1.Rows\"\332\001\n\013FlowReq"
|
||||
"uest\0223\n\006header\030@ \001(\0132#.greptime.v1.flow."
|
||||
"FlowRequestHeader\0221\n\006create\030\001 \001(\0132\037.grep"
|
||||
"time.v1.flow.CreateRequestH\000\022-\n\004drop\030\002 \001"
|
||||
"(\0132\035.greptime.v1.flow.DropRequestH\000\022,\n\005f"
|
||||
"lush\030\003 \001(\0132\033.greptime.v1.flow.FlushFlowH"
|
||||
"\000B\006\n\004body\"\366\001\n\014FlowResponse\022+\n\006header\030\001 \001"
|
||||
"(\0132\033.greptime.v1.ResponseHeader\022\025\n\raffec"
|
||||
"ted_rows\030\002 \001(\004\022+\n\016affected_flows\030\003 \003(\0132\023"
|
||||
".greptime.v1.FlowId\022B\n\nextensions\030\004 \003(\0132"
|
||||
"..greptime.v1.flow.FlowResponse.Extensio"
|
||||
"nsEntry\0321\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022"
|
||||
"\r\n\005value\030\002 \001(\014:\0028\001\"\222\003\n\rCreateRequest\022$\n\007"
|
||||
"flow_id\030\001 \001(\0132\023.greptime.v1.FlowId\022.\n\020so"
|
||||
"urce_table_ids\030\002 \003(\0132\024.greptime.v1.Table"
|
||||
"Id\022/\n\017sink_table_name\030\003 \001(\0132\026.greptime.v"
|
||||
"1.TableName\022\034\n\024create_if_not_exists\030\004 \001("
|
||||
"\010\022.\n\014expire_after\030\005 \001(\0132\030.greptime.v1.Ex"
|
||||
"pireAfter\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030\007 \001(\t\022"
|
||||
"F\n\014flow_options\030\010 \003(\01320.greptime.v1.flow"
|
||||
".CreateRequest.FlowOptionsEntry\022\022\n\nor_re"
|
||||
"place\030\t \001(\010\0322\n\020FlowOptionsEntry\022\013\n\003key\030\001"
|
||||
" \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"3\n\013DropRequest\022$"
|
||||
"\n\007flow_id\030\001 \001(\0132\023.greptime.v1.FlowId\"1\n\t"
|
||||
"FlushFlow\022$\n\007flow_id\030\001 \001(\0132\023.greptime.v1"
|
||||
".FlowId2\264\001\n\004Flow\022S\n\022HandleCreateRemove\022\035"
|
||||
".greptime.v1.flow.FlowRequest\032\036.greptime"
|
||||
".v1.flow.FlowResponse\022W\n\023HandleMirrorReq"
|
||||
"uest\022 .greptime.v1.flow.InsertRequests\032\036"
|
||||
".greptime.v1.flow.FlowResponseBY\n\023io.gre"
|
||||
"ptime.v1.flowB\006ServerZ:github.com/Grepti"
|
||||
"meTeam/greptime-proto/go/greptime/v1/flo"
|
||||
"wb\006proto3"
|
||||
"o\"M\n\023DirtyWindowRequests\0226\n\010requests\030\001 \003"
|
||||
"(\0132$.greptime.v1.flow.DirtyWindowRequest"
|
||||
"\":\n\022DirtyWindowRequest\022\020\n\010table_id\030\001 \001(\r"
|
||||
"\022\022\n\ntimestamps\030\002 \003(\003\"\316\001\n\021FlowRequestHead"
|
||||
"er\022P\n\017tracing_context\030\001 \003(\01327.greptime.v"
|
||||
"1.flow.FlowRequestHeader.TracingContextE"
|
||||
"ntry\0220\n\rquery_context\030\002 \001(\0132\031.greptime.v"
|
||||
"1.QueryContext\0325\n\023TracingContextEntry\022\013\n"
|
||||
"\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"C\n\016InsertR"
|
||||
"equests\0221\n\010requests\030\001 \003(\0132\037.greptime.v1."
|
||||
"flow.InsertRequest\"C\n\rInsertRequest\022\021\n\tr"
|
||||
"egion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime."
|
||||
"v1.Rows\"\332\001\n\013FlowRequest\0223\n\006header\030@ \001(\0132"
|
||||
"#.greptime.v1.flow.FlowRequestHeader\0221\n\006"
|
||||
"create\030\001 \001(\0132\037.greptime.v1.flow.CreateRe"
|
||||
"questH\000\022-\n\004drop\030\002 \001(\0132\035.greptime.v1.flow"
|
||||
".DropRequestH\000\022,\n\005flush\030\003 \001(\0132\033.greptime"
|
||||
".v1.flow.FlushFlowH\000B\006\n\004body\"\366\001\n\014FlowRes"
|
||||
"ponse\022+\n\006header\030\001 \001(\0132\033.greptime.v1.Resp"
|
||||
"onseHeader\022\025\n\raffected_rows\030\002 \001(\004\022+\n\016aff"
|
||||
"ected_flows\030\003 \003(\0132\023.greptime.v1.FlowId\022B"
|
||||
"\n\nextensions\030\004 \003(\0132..greptime.v1.flow.Fl"
|
||||
"owResponse.ExtensionsEntry\0321\n\017Extensions"
|
||||
"Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\222\003"
|
||||
"\n\rCreateRequest\022$\n\007flow_id\030\001 \001(\0132\023.grept"
|
||||
"ime.v1.FlowId\022.\n\020source_table_ids\030\002 \003(\0132"
|
||||
"\024.greptime.v1.TableId\022/\n\017sink_table_name"
|
||||
"\030\003 \001(\0132\026.greptime.v1.TableName\022\034\n\024create"
|
||||
"_if_not_exists\030\004 \001(\010\022.\n\014expire_after\030\005 \001"
|
||||
"(\0132\030.greptime.v1.ExpireAfter\022\017\n\007comment\030"
|
||||
"\006 \001(\t\022\013\n\003sql\030\007 \001(\t\022F\n\014flow_options\030\010 \003(\013"
|
||||
"20.greptime.v1.flow.CreateRequest.FlowOp"
|
||||
"tionsEntry\022\022\n\nor_replace\030\t \001(\010\0322\n\020FlowOp"
|
||||
"tionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
|
||||
"8\001\"3\n\013DropRequest\022$\n\007flow_id\030\001 \001(\0132\023.gre"
|
||||
"ptime.v1.FlowId\"1\n\tFlushFlow\022$\n\007flow_id\030"
|
||||
"\001 \001(\0132\023.greptime.v1.FlowId2\230\002\n\004Flow\022S\n\022H"
|
||||
"andleCreateRemove\022\035.greptime.v1.flow.Flo"
|
||||
"wRequest\032\036.greptime.v1.flow.FlowResponse"
|
||||
"\022W\n\023HandleMirrorRequest\022 .greptime.v1.fl"
|
||||
"ow.InsertRequests\032\036.greptime.v1.flow.Flo"
|
||||
"wResponse\022b\n\031HandleMarkDirtyTimeWindow\022%"
|
||||
".greptime.v1.flow.DirtyWindowRequests\032\036."
|
||||
"greptime.v1.flow.FlowResponseBY\n\023io.grep"
|
||||
"time.v1.flowB\006ServerZ:github.com/Greptim"
|
||||
"eTeam/greptime-proto/go/greptime/v1/flow"
|
||||
"b\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps[3] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
@@ -368,9 +421,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflo
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto = {
|
||||
false, false, 1729, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
|
||||
false, false, 1968, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
|
||||
"greptime/v1/flow/server.proto",
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps, 3, 11,
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps, 3, 13,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto, file_level_enum_descriptors_greptime_2fv1_2fflow_2fserver_2eproto,
|
||||
file_level_service_descriptors_greptime_2fv1_2fflow_2fserver_2eproto,
|
||||
@@ -387,6 +440,411 @@ namespace flow {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class DirtyWindowRequests::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
DirtyWindowRequests::DirtyWindowRequests(::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.flow.DirtyWindowRequests)
|
||||
}
|
||||
DirtyWindowRequests::DirtyWindowRequests(const DirtyWindowRequests& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
DirtyWindowRequests* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.requests_){from._impl_.requests_}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.flow.DirtyWindowRequests)
|
||||
}
|
||||
|
||||
inline void DirtyWindowRequests::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.requests_){arena}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
DirtyWindowRequests::~DirtyWindowRequests() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.flow.DirtyWindowRequests)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void DirtyWindowRequests::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
_impl_.requests_.~RepeatedPtrField();
|
||||
}
|
||||
|
||||
void DirtyWindowRequests::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void DirtyWindowRequests::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.flow.DirtyWindowRequests)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.requests_.Clear();
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* DirtyWindowRequests::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// repeated .greptime.v1.flow.DirtyWindowRequest requests = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
ptr -= 1;
|
||||
do {
|
||||
ptr += 1;
|
||||
ptr = ctx->ParseMessage(_internal_add_requests(), ptr);
|
||||
CHK_(ptr);
|
||||
if (!ctx->DataAvailable(ptr)) break;
|
||||
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
handle_unusual:
|
||||
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||
CHK_(ptr);
|
||||
ctx->SetLastTag(tag);
|
||||
goto message_done;
|
||||
}
|
||||
ptr = UnknownFieldParse(
|
||||
tag,
|
||||
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||
ptr, ctx);
|
||||
CHK_(ptr != nullptr);
|
||||
} // while
|
||||
message_done:
|
||||
return ptr;
|
||||
failure:
|
||||
ptr = nullptr;
|
||||
goto message_done;
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
uint8_t* DirtyWindowRequests::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.flow.DirtyWindowRequests)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// repeated .greptime.v1.flow.DirtyWindowRequest requests = 1;
|
||||
for (unsigned i = 0,
|
||||
n = static_cast<unsigned>(this->_internal_requests_size()); i < n; i++) {
|
||||
const auto& repfield = this->_internal_requests(i);
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.flow.DirtyWindowRequests)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t DirtyWindowRequests::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.flow.DirtyWindowRequests)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// repeated .greptime.v1.flow.DirtyWindowRequest requests = 1;
|
||||
total_size += 1UL * this->_internal_requests_size();
|
||||
for (const auto& msg : this->_impl_.requests_) {
|
||||
total_size +=
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DirtyWindowRequests::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
DirtyWindowRequests::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DirtyWindowRequests::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void DirtyWindowRequests::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<DirtyWindowRequests*>(&to_msg);
|
||||
auto& from = static_cast<const DirtyWindowRequests&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.flow.DirtyWindowRequests)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
_this->_impl_.requests_.MergeFrom(from._impl_.requests_);
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void DirtyWindowRequests::CopyFrom(const DirtyWindowRequests& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.flow.DirtyWindowRequests)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool DirtyWindowRequests::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void DirtyWindowRequests::InternalSwap(DirtyWindowRequests* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
_impl_.requests_.InternalSwap(&other->_impl_.requests_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata DirtyWindowRequests::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[0]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class DirtyWindowRequest::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
DirtyWindowRequest::DirtyWindowRequest(::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.flow.DirtyWindowRequest)
|
||||
}
|
||||
DirtyWindowRequest::DirtyWindowRequest(const DirtyWindowRequest& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
DirtyWindowRequest* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.timestamps_){from._impl_.timestamps_}
|
||||
, /*decltype(_impl_._timestamps_cached_byte_size_)*/{0}
|
||||
, decltype(_impl_.table_id_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
_this->_impl_.table_id_ = from._impl_.table_id_;
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.flow.DirtyWindowRequest)
|
||||
}
|
||||
|
||||
inline void DirtyWindowRequest::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.timestamps_){arena}
|
||||
, /*decltype(_impl_._timestamps_cached_byte_size_)*/{0}
|
||||
, decltype(_impl_.table_id_){0u}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
DirtyWindowRequest::~DirtyWindowRequest() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.flow.DirtyWindowRequest)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void DirtyWindowRequest::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
_impl_.timestamps_.~RepeatedField();
|
||||
}
|
||||
|
||||
void DirtyWindowRequest::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void DirtyWindowRequest::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.flow.DirtyWindowRequest)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.timestamps_.Clear();
|
||||
_impl_.table_id_ = 0u;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* DirtyWindowRequest::_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) {
|
||||
// uint32 table_id = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
||||
_impl_.table_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// repeated int64 timestamps = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_timestamps(), ptr, ctx);
|
||||
CHK_(ptr);
|
||||
} else if (static_cast<uint8_t>(tag) == 16) {
|
||||
_internal_add_timestamps(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
handle_unusual:
|
||||
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||
CHK_(ptr);
|
||||
ctx->SetLastTag(tag);
|
||||
goto message_done;
|
||||
}
|
||||
ptr = UnknownFieldParse(
|
||||
tag,
|
||||
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||
ptr, ctx);
|
||||
CHK_(ptr != nullptr);
|
||||
} // while
|
||||
message_done:
|
||||
return ptr;
|
||||
failure:
|
||||
ptr = nullptr;
|
||||
goto message_done;
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
uint8_t* DirtyWindowRequest::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.flow.DirtyWindowRequest)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// uint32 table_id = 1;
|
||||
if (this->_internal_table_id() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_table_id(), target);
|
||||
}
|
||||
|
||||
// repeated int64 timestamps = 2;
|
||||
{
|
||||
int byte_size = _impl_._timestamps_cached_byte_size_.load(std::memory_order_relaxed);
|
||||
if (byte_size > 0) {
|
||||
target = stream->WriteInt64Packed(
|
||||
2, _internal_timestamps(), byte_size, 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.flow.DirtyWindowRequest)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t DirtyWindowRequest::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.flow.DirtyWindowRequest)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// repeated int64 timestamps = 2;
|
||||
{
|
||||
size_t data_size = ::_pbi::WireFormatLite::
|
||||
Int64Size(this->_impl_.timestamps_);
|
||||
if (data_size > 0) {
|
||||
total_size += 1 +
|
||||
::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
|
||||
}
|
||||
int cached_size = ::_pbi::ToCachedSize(data_size);
|
||||
_impl_._timestamps_cached_byte_size_.store(cached_size,
|
||||
std::memory_order_relaxed);
|
||||
total_size += data_size;
|
||||
}
|
||||
|
||||
// uint32 table_id = 1;
|
||||
if (this->_internal_table_id() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_table_id());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DirtyWindowRequest::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
DirtyWindowRequest::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DirtyWindowRequest::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void DirtyWindowRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<DirtyWindowRequest*>(&to_msg);
|
||||
auto& from = static_cast<const DirtyWindowRequest&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.flow.DirtyWindowRequest)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
_this->_impl_.timestamps_.MergeFrom(from._impl_.timestamps_);
|
||||
if (from._internal_table_id() != 0) {
|
||||
_this->_internal_set_table_id(from._internal_table_id());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void DirtyWindowRequest::CopyFrom(const DirtyWindowRequest& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.flow.DirtyWindowRequest)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool DirtyWindowRequest::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void DirtyWindowRequest::InternalSwap(DirtyWindowRequest* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
_impl_.timestamps_.InternalSwap(&other->_impl_.timestamps_);
|
||||
swap(_impl_.table_id_, other->_impl_.table_id_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata DirtyWindowRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[1]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
FlowRequestHeader_TracingContextEntry_DoNotUse::FlowRequestHeader_TracingContextEntry_DoNotUse() {}
|
||||
FlowRequestHeader_TracingContextEntry_DoNotUse::FlowRequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
||||
: SuperType(arena) {}
|
||||
@@ -396,7 +854,7 @@ void FlowRequestHeader_TracingContextEntry_DoNotUse::MergeFrom(const FlowRequest
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowRequestHeader_TracingContextEntry_DoNotUse::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[0]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[2]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -663,7 +1121,7 @@ void FlowRequestHeader::InternalSwap(FlowRequestHeader* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowRequestHeader::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[1]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[3]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -848,7 +1306,7 @@ void InsertRequests::InternalSwap(InsertRequests* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequests::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[2]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[4]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -1078,7 +1536,7 @@ void InsertRequest::InternalSwap(InsertRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[3]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[5]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -1483,7 +1941,7 @@ void FlowRequest::InternalSwap(FlowRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[4]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[6]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -1497,7 +1955,7 @@ void FlowResponse_ExtensionsEntry_DoNotUse::MergeFrom(const FlowResponse_Extensi
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowResponse_ExtensionsEntry_DoNotUse::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[5]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[7]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -1828,7 +2286,7 @@ void FlowResponse::InternalSwap(FlowResponse* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowResponse::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[6]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[8]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -1842,7 +2300,7 @@ void CreateRequest_FlowOptionsEntry_DoNotUse::MergeFrom(const CreateRequest_Flow
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest_FlowOptionsEntry_DoNotUse::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[7]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[9]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -2401,7 +2859,7 @@ void CreateRequest::InternalSwap(CreateRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[8]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[10]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -2600,7 +3058,7 @@ void DropRequest::InternalSwap(DropRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata DropRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[9]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[11]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -2799,7 +3257,7 @@ void FlushFlow::InternalSwap(FlushFlow* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlushFlow::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[10]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[12]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
@@ -2807,6 +3265,14 @@ void FlushFlow::InternalSwap(FlushFlow* other) {
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::flow::DirtyWindowRequests*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::flow::DirtyWindowRequests >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::flow::DirtyWindowRequests >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::flow::DirtyWindowRequest*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::flow::DirtyWindowRequest >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::flow::DirtyWindowRequest >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse >(arena);
|
||||
|
||||
@@ -59,6 +59,12 @@ extern CreateRequestDefaultTypeInternal _CreateRequest_default_instance_;
|
||||
class CreateRequest_FlowOptionsEntry_DoNotUse;
|
||||
struct CreateRequest_FlowOptionsEntry_DoNotUseDefaultTypeInternal;
|
||||
extern CreateRequest_FlowOptionsEntry_DoNotUseDefaultTypeInternal _CreateRequest_FlowOptionsEntry_DoNotUse_default_instance_;
|
||||
class DirtyWindowRequest;
|
||||
struct DirtyWindowRequestDefaultTypeInternal;
|
||||
extern DirtyWindowRequestDefaultTypeInternal _DirtyWindowRequest_default_instance_;
|
||||
class DirtyWindowRequests;
|
||||
struct DirtyWindowRequestsDefaultTypeInternal;
|
||||
extern DirtyWindowRequestsDefaultTypeInternal _DirtyWindowRequests_default_instance_;
|
||||
class DropRequest;
|
||||
struct DropRequestDefaultTypeInternal;
|
||||
extern DropRequestDefaultTypeInternal _DropRequest_default_instance_;
|
||||
@@ -92,6 +98,8 @@ extern InsertRequestsDefaultTypeInternal _InsertRequests_default_instance_;
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::greptime::v1::flow::CreateRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::CreateRequest>(Arena*);
|
||||
template<> ::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse>(Arena*);
|
||||
template<> ::greptime::v1::flow::DirtyWindowRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::DirtyWindowRequest>(Arena*);
|
||||
template<> ::greptime::v1::flow::DirtyWindowRequests* Arena::CreateMaybeMessage<::greptime::v1::flow::DirtyWindowRequests>(Arena*);
|
||||
template<> ::greptime::v1::flow::DropRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::DropRequest>(Arena*);
|
||||
template<> ::greptime::v1::flow::FlowRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowRequest>(Arena*);
|
||||
template<> ::greptime::v1::flow::FlowRequestHeader* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowRequestHeader>(Arena*);
|
||||
@@ -108,6 +116,336 @@ namespace flow {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class DirtyWindowRequests final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.flow.DirtyWindowRequests) */ {
|
||||
public:
|
||||
inline DirtyWindowRequests() : DirtyWindowRequests(nullptr) {}
|
||||
~DirtyWindowRequests() override;
|
||||
explicit PROTOBUF_CONSTEXPR DirtyWindowRequests(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
DirtyWindowRequests(const DirtyWindowRequests& from);
|
||||
DirtyWindowRequests(DirtyWindowRequests&& from) noexcept
|
||||
: DirtyWindowRequests() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline DirtyWindowRequests& operator=(const DirtyWindowRequests& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline DirtyWindowRequests& operator=(DirtyWindowRequests&& 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 DirtyWindowRequests& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const DirtyWindowRequests* internal_default_instance() {
|
||||
return reinterpret_cast<const DirtyWindowRequests*>(
|
||||
&_DirtyWindowRequests_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
friend void swap(DirtyWindowRequests& a, DirtyWindowRequests& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(DirtyWindowRequests* 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(DirtyWindowRequests* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
DirtyWindowRequests* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<DirtyWindowRequests>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const DirtyWindowRequests& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const DirtyWindowRequests& from) {
|
||||
DirtyWindowRequests::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(DirtyWindowRequests* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.flow.DirtyWindowRequests";
|
||||
}
|
||||
protected:
|
||||
explicit DirtyWindowRequests(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned = false);
|
||||
public:
|
||||
|
||||
static const ClassData _class_data_;
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kRequestsFieldNumber = 1,
|
||||
};
|
||||
// repeated .greptime.v1.flow.DirtyWindowRequest requests = 1;
|
||||
int requests_size() const;
|
||||
private:
|
||||
int _internal_requests_size() const;
|
||||
public:
|
||||
void clear_requests();
|
||||
::greptime::v1::flow::DirtyWindowRequest* mutable_requests(int index);
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::flow::DirtyWindowRequest >*
|
||||
mutable_requests();
|
||||
private:
|
||||
const ::greptime::v1::flow::DirtyWindowRequest& _internal_requests(int index) const;
|
||||
::greptime::v1::flow::DirtyWindowRequest* _internal_add_requests();
|
||||
public:
|
||||
const ::greptime::v1::flow::DirtyWindowRequest& requests(int index) const;
|
||||
::greptime::v1::flow::DirtyWindowRequest* add_requests();
|
||||
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::flow::DirtyWindowRequest >&
|
||||
requests() const;
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.flow.DirtyWindowRequests)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::flow::DirtyWindowRequest > requests_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fflow_2fserver_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class DirtyWindowRequest final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.flow.DirtyWindowRequest) */ {
|
||||
public:
|
||||
inline DirtyWindowRequest() : DirtyWindowRequest(nullptr) {}
|
||||
~DirtyWindowRequest() override;
|
||||
explicit PROTOBUF_CONSTEXPR DirtyWindowRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
DirtyWindowRequest(const DirtyWindowRequest& from);
|
||||
DirtyWindowRequest(DirtyWindowRequest&& from) noexcept
|
||||
: DirtyWindowRequest() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline DirtyWindowRequest& operator=(const DirtyWindowRequest& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline DirtyWindowRequest& operator=(DirtyWindowRequest&& 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 DirtyWindowRequest& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const DirtyWindowRequest* internal_default_instance() {
|
||||
return reinterpret_cast<const DirtyWindowRequest*>(
|
||||
&_DirtyWindowRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
1;
|
||||
|
||||
friend void swap(DirtyWindowRequest& a, DirtyWindowRequest& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(DirtyWindowRequest* 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(DirtyWindowRequest* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
DirtyWindowRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<DirtyWindowRequest>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const DirtyWindowRequest& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const DirtyWindowRequest& from) {
|
||||
DirtyWindowRequest::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(DirtyWindowRequest* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.flow.DirtyWindowRequest";
|
||||
}
|
||||
protected:
|
||||
explicit DirtyWindowRequest(::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 {
|
||||
kTimestampsFieldNumber = 2,
|
||||
kTableIdFieldNumber = 1,
|
||||
};
|
||||
// repeated int64 timestamps = 2;
|
||||
int timestamps_size() const;
|
||||
private:
|
||||
int _internal_timestamps_size() const;
|
||||
public:
|
||||
void clear_timestamps();
|
||||
private:
|
||||
int64_t _internal_timestamps(int index) const;
|
||||
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
||||
_internal_timestamps() const;
|
||||
void _internal_add_timestamps(int64_t value);
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
||||
_internal_mutable_timestamps();
|
||||
public:
|
||||
int64_t timestamps(int index) const;
|
||||
void set_timestamps(int index, int64_t value);
|
||||
void add_timestamps(int64_t value);
|
||||
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
||||
timestamps() const;
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
||||
mutable_timestamps();
|
||||
|
||||
// uint32 table_id = 1;
|
||||
void clear_table_id();
|
||||
uint32_t table_id() const;
|
||||
void set_table_id(uint32_t value);
|
||||
private:
|
||||
uint32_t _internal_table_id() const;
|
||||
void _internal_set_table_id(uint32_t value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.flow.DirtyWindowRequest)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > timestamps_;
|
||||
mutable std::atomic<int> _timestamps_cached_byte_size_;
|
||||
uint32_t table_id_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fflow_2fserver_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class FlowRequestHeader_TracingContextEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FlowRequestHeader_TracingContextEntry_DoNotUse,
|
||||
std::string, std::string,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||
@@ -184,7 +522,7 @@ class FlowRequestHeader final :
|
||||
&_FlowRequestHeader_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
1;
|
||||
3;
|
||||
|
||||
friend void swap(FlowRequestHeader& a, FlowRequestHeader& b) {
|
||||
a.Swap(&b);
|
||||
@@ -367,7 +705,7 @@ class InsertRequests final :
|
||||
&_InsertRequests_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
2;
|
||||
4;
|
||||
|
||||
friend void swap(InsertRequests& a, InsertRequests& b) {
|
||||
a.Swap(&b);
|
||||
@@ -524,7 +862,7 @@ class InsertRequest final :
|
||||
&_InsertRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
3;
|
||||
5;
|
||||
|
||||
friend void swap(InsertRequest& a, InsertRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -699,7 +1037,7 @@ class FlowRequest final :
|
||||
&_FlowRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
4;
|
||||
6;
|
||||
|
||||
friend void swap(FlowRequest& a, FlowRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -956,7 +1294,7 @@ class FlowResponse final :
|
||||
&_FlowResponse_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
6;
|
||||
8;
|
||||
|
||||
friend void swap(FlowResponse& a, FlowResponse& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1198,7 +1536,7 @@ class CreateRequest final :
|
||||
&_CreateRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
8;
|
||||
10;
|
||||
|
||||
friend void swap(CreateRequest& a, CreateRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1495,7 +1833,7 @@ class DropRequest final :
|
||||
&_DropRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
9;
|
||||
11;
|
||||
|
||||
friend void swap(DropRequest& a, DropRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1652,7 +1990,7 @@ class FlushFlow final :
|
||||
&_FlushFlow_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
10;
|
||||
12;
|
||||
|
||||
friend void swap(FlushFlow& a, FlushFlow& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1768,6 +2106,121 @@ class FlushFlow final :
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// DirtyWindowRequests
|
||||
|
||||
// repeated .greptime.v1.flow.DirtyWindowRequest requests = 1;
|
||||
inline int DirtyWindowRequests::_internal_requests_size() const {
|
||||
return _impl_.requests_.size();
|
||||
}
|
||||
inline int DirtyWindowRequests::requests_size() const {
|
||||
return _internal_requests_size();
|
||||
}
|
||||
inline void DirtyWindowRequests::clear_requests() {
|
||||
_impl_.requests_.Clear();
|
||||
}
|
||||
inline ::greptime::v1::flow::DirtyWindowRequest* DirtyWindowRequests::mutable_requests(int index) {
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.DirtyWindowRequests.requests)
|
||||
return _impl_.requests_.Mutable(index);
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::flow::DirtyWindowRequest >*
|
||||
DirtyWindowRequests::mutable_requests() {
|
||||
// @@protoc_insertion_point(field_mutable_list:greptime.v1.flow.DirtyWindowRequests.requests)
|
||||
return &_impl_.requests_;
|
||||
}
|
||||
inline const ::greptime::v1::flow::DirtyWindowRequest& DirtyWindowRequests::_internal_requests(int index) const {
|
||||
return _impl_.requests_.Get(index);
|
||||
}
|
||||
inline const ::greptime::v1::flow::DirtyWindowRequest& DirtyWindowRequests::requests(int index) const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.flow.DirtyWindowRequests.requests)
|
||||
return _internal_requests(index);
|
||||
}
|
||||
inline ::greptime::v1::flow::DirtyWindowRequest* DirtyWindowRequests::_internal_add_requests() {
|
||||
return _impl_.requests_.Add();
|
||||
}
|
||||
inline ::greptime::v1::flow::DirtyWindowRequest* DirtyWindowRequests::add_requests() {
|
||||
::greptime::v1::flow::DirtyWindowRequest* _add = _internal_add_requests();
|
||||
// @@protoc_insertion_point(field_add:greptime.v1.flow.DirtyWindowRequests.requests)
|
||||
return _add;
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::flow::DirtyWindowRequest >&
|
||||
DirtyWindowRequests::requests() const {
|
||||
// @@protoc_insertion_point(field_list:greptime.v1.flow.DirtyWindowRequests.requests)
|
||||
return _impl_.requests_;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// DirtyWindowRequest
|
||||
|
||||
// uint32 table_id = 1;
|
||||
inline void DirtyWindowRequest::clear_table_id() {
|
||||
_impl_.table_id_ = 0u;
|
||||
}
|
||||
inline uint32_t DirtyWindowRequest::_internal_table_id() const {
|
||||
return _impl_.table_id_;
|
||||
}
|
||||
inline uint32_t DirtyWindowRequest::table_id() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.flow.DirtyWindowRequest.table_id)
|
||||
return _internal_table_id();
|
||||
}
|
||||
inline void DirtyWindowRequest::_internal_set_table_id(uint32_t value) {
|
||||
|
||||
_impl_.table_id_ = value;
|
||||
}
|
||||
inline void DirtyWindowRequest::set_table_id(uint32_t value) {
|
||||
_internal_set_table_id(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.flow.DirtyWindowRequest.table_id)
|
||||
}
|
||||
|
||||
// repeated int64 timestamps = 2;
|
||||
inline int DirtyWindowRequest::_internal_timestamps_size() const {
|
||||
return _impl_.timestamps_.size();
|
||||
}
|
||||
inline int DirtyWindowRequest::timestamps_size() const {
|
||||
return _internal_timestamps_size();
|
||||
}
|
||||
inline void DirtyWindowRequest::clear_timestamps() {
|
||||
_impl_.timestamps_.Clear();
|
||||
}
|
||||
inline int64_t DirtyWindowRequest::_internal_timestamps(int index) const {
|
||||
return _impl_.timestamps_.Get(index);
|
||||
}
|
||||
inline int64_t DirtyWindowRequest::timestamps(int index) const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.flow.DirtyWindowRequest.timestamps)
|
||||
return _internal_timestamps(index);
|
||||
}
|
||||
inline void DirtyWindowRequest::set_timestamps(int index, int64_t value) {
|
||||
_impl_.timestamps_.Set(index, value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.flow.DirtyWindowRequest.timestamps)
|
||||
}
|
||||
inline void DirtyWindowRequest::_internal_add_timestamps(int64_t value) {
|
||||
_impl_.timestamps_.Add(value);
|
||||
}
|
||||
inline void DirtyWindowRequest::add_timestamps(int64_t value) {
|
||||
_internal_add_timestamps(value);
|
||||
// @@protoc_insertion_point(field_add:greptime.v1.flow.DirtyWindowRequest.timestamps)
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
||||
DirtyWindowRequest::_internal_timestamps() const {
|
||||
return _impl_.timestamps_;
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
||||
DirtyWindowRequest::timestamps() const {
|
||||
// @@protoc_insertion_point(field_list:greptime.v1.flow.DirtyWindowRequest.timestamps)
|
||||
return _internal_timestamps();
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
||||
DirtyWindowRequest::_internal_mutable_timestamps() {
|
||||
return &_impl_.timestamps_;
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
||||
DirtyWindowRequest::mutable_timestamps() {
|
||||
// @@protoc_insertion_point(field_mutable_list:greptime.v1.flow.DirtyWindowRequest.timestamps)
|
||||
return _internal_mutable_timestamps();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// FlowRequestHeader
|
||||
@@ -3209,6 +3662,10 @@ inline void FlushFlow::set_allocated_flow_id(::greptime::v1::FlowId* flow_id) {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -31,6 +31,21 @@ service Flow {
|
||||
// only expect `RegionRequest` to be one of `InsertRequests` or
|
||||
// `DeleteRequests` other types of `RegionRequest` will be ignored
|
||||
rpc HandleMirrorRequest(InsertRequests) returns (FlowResponse);
|
||||
|
||||
rpc HandleMarkDirtyTimeWindow(DirtyWindowRequests) returns (FlowResponse);
|
||||
}
|
||||
|
||||
message DirtyWindowRequests {
|
||||
// The dirty time window requests.
|
||||
// Each request contains a table_id and a list of dirty timestamps.
|
||||
repeated DirtyWindowRequest requests = 1;
|
||||
}
|
||||
|
||||
message DirtyWindowRequest {
|
||||
uint32 table_id = 1;
|
||||
// Dirty timestamps. Used to mark this point in time as dirty,
|
||||
// so that the flow can be triggered to process the data.
|
||||
repeated int64 timestamps = 2;
|
||||
}
|
||||
|
||||
message FlowRequestHeader {
|
||||
|
||||
Reference in New Issue
Block a user