diff --git a/c++/greptime/v1/flow/server.grpc.pb.cc b/c++/greptime/v1/flow/server.grpc.pb.cc index 49e5c32..bc394c7 100644 --- a/c++/greptime/v1/flow/server.grpc.pb.cc +++ b/c++/greptime/v1/flow/server.grpc.pb.cc @@ -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 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 diff --git a/c++/greptime/v1/flow/server.grpc.pb.h b/c++/greptime/v1/flow/server.grpc.pb.h index aff9300..33e1d73 100644 --- a/c++/greptime/v1/flow/server.grpc.pb.h +++ b/c++/greptime/v1/flow/server.grpc.pb.h @@ -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) = 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) = 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) 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) 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 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 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 > AsyncService; + template + 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 > > AsyncService; template 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 > CallbackService; + template + 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 > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_HandleCreateRemove : public BaseClass { @@ -278,6 +349,23 @@ class Flow final { } }; template + 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 WithRawMethod_HandleCreateRemove : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -318,6 +406,26 @@ class Flow final { } }; template + 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 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 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 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 > StreamedUnaryService; + template + 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 > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_HandleCreateRemove > StreamedService; + typedef WithStreamedUnaryMethod_HandleCreateRemove > > StreamedService; }; } // namespace flow diff --git a/c++/greptime/v1/flow/server.pb.cc b/c++/greptime/v1/flow/server.pb.cc index e1d054c..3234fff 100644 --- a/c++/greptime/v1/flow/server.pb.cc +++ b/c++/greptime/v1/flow/server.pb.cc @@ -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(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(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(&to_msg); + auto& from = static_cast(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(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(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_timestamps(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(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(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(&to_msg); + auto& from = static_cast(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); diff --git a/c++/greptime/v1/flow/server.pb.h b/c++/greptime/v1/flow/server.pb.h index eb79aaa..997ff95 100644 --- a/c++/greptime/v1/flow/server.pb.h +++ b/c++/greptime/v1/flow/server.pb.h @@ -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( + &_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(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 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( + &_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(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 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 _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* +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) diff --git a/java/src/main/java/io/greptime/v1/flow/Server.java b/java/src/main/java/io/greptime/v1/flow/Server.java index cca776f..b9e211f 100644 --- a/java/src/main/java/io/greptime/v1/flow/Server.java +++ b/java/src/main/java/io/greptime/v1/flow/Server.java @@ -14,6 +14,1693 @@ public final class Server { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } + public interface DirtyWindowRequestsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.flow.DirtyWindowRequests) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The dirty time window requests.
+     * Each request contains a table_id and a list of dirty timestamps.
+     * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + java.util.List + getRequestsList(); + /** + *
+     * The dirty time window requests.
+     * Each request contains a table_id and a list of dirty timestamps.
+     * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + io.greptime.v1.flow.Server.DirtyWindowRequest getRequests(int index); + /** + *
+     * The dirty time window requests.
+     * Each request contains a table_id and a list of dirty timestamps.
+     * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + int getRequestsCount(); + /** + *
+     * The dirty time window requests.
+     * Each request contains a table_id and a list of dirty timestamps.
+     * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+     * The dirty time window requests.
+     * Each request contains a table_id and a list of dirty timestamps.
+     * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + io.greptime.v1.flow.Server.DirtyWindowRequestOrBuilder getRequestsOrBuilder( + int index); + } + /** + * Protobuf type {@code greptime.v1.flow.DirtyWindowRequests} + */ + public static final class DirtyWindowRequests extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.flow.DirtyWindowRequests) + DirtyWindowRequestsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DirtyWindowRequests.newBuilder() to construct. + private DirtyWindowRequests(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DirtyWindowRequests() { + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DirtyWindowRequests(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DirtyWindowRequests( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage(io.greptime.v1.flow.Server.DirtyWindowRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_DirtyWindowRequests_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_DirtyWindowRequests_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.flow.Server.DirtyWindowRequests.class, io.greptime.v1.flow.Server.DirtyWindowRequests.Builder.class); + } + + public static final int REQUESTS_FIELD_NUMBER = 1; + private java.util.List requests_; + /** + *
+     * The dirty time window requests.
+     * Each request contains a table_id and a list of dirty timestamps.
+     * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + /** + *
+     * The dirty time window requests.
+     * Each request contains a table_id and a list of dirty timestamps.
+     * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + *
+     * The dirty time window requests.
+     * Each request contains a table_id and a list of dirty timestamps.
+     * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + *
+     * The dirty time window requests.
+     * Each request contains a table_id and a list of dirty timestamps.
+     * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + @java.lang.Override + public io.greptime.v1.flow.Server.DirtyWindowRequest getRequests(int index) { + return requests_.get(index); + } + /** + *
+     * The dirty time window requests.
+     * Each request contains a table_id and a list of dirty timestamps.
+     * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + @java.lang.Override + public io.greptime.v1.flow.Server.DirtyWindowRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(1, requests_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.flow.Server.DirtyWindowRequests)) { + return super.equals(obj); + } + io.greptime.v1.flow.Server.DirtyWindowRequests other = (io.greptime.v1.flow.Server.DirtyWindowRequests) obj; + + if (!getRequestsList() + .equals(other.getRequestsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.flow.Server.DirtyWindowRequests parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequests parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequests parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequests parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequests parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequests parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequests parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequests parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequests parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequests parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequests parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequests parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.flow.Server.DirtyWindowRequests prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.flow.DirtyWindowRequests} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.flow.DirtyWindowRequests) + io.greptime.v1.flow.Server.DirtyWindowRequestsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_DirtyWindowRequests_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_DirtyWindowRequests_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.flow.Server.DirtyWindowRequests.class, io.greptime.v1.flow.Server.DirtyWindowRequests.Builder.class); + } + + // Construct using io.greptime.v1.flow.Server.DirtyWindowRequests.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_DirtyWindowRequests_descriptor; + } + + @java.lang.Override + public io.greptime.v1.flow.Server.DirtyWindowRequests getDefaultInstanceForType() { + return io.greptime.v1.flow.Server.DirtyWindowRequests.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.flow.Server.DirtyWindowRequests build() { + io.greptime.v1.flow.Server.DirtyWindowRequests result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.flow.Server.DirtyWindowRequests buildPartial() { + io.greptime.v1.flow.Server.DirtyWindowRequests result = new io.greptime.v1.flow.Server.DirtyWindowRequests(this); + int from_bitField0_ = bitField0_; + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.flow.Server.DirtyWindowRequests) { + return mergeFrom((io.greptime.v1.flow.Server.DirtyWindowRequests)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.flow.Server.DirtyWindowRequests other) { + if (other == io.greptime.v1.flow.Server.DirtyWindowRequests.getDefaultInstance()) return this; + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.flow.Server.DirtyWindowRequests parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.flow.Server.DirtyWindowRequests) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List requests_ = + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(requests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.flow.Server.DirtyWindowRequest, io.greptime.v1.flow.Server.DirtyWindowRequest.Builder, io.greptime.v1.flow.Server.DirtyWindowRequestOrBuilder> requestsBuilder_; + + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public io.greptime.v1.flow.Server.DirtyWindowRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public Builder setRequests( + int index, io.greptime.v1.flow.Server.DirtyWindowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public Builder setRequests( + int index, io.greptime.v1.flow.Server.DirtyWindowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public Builder addRequests(io.greptime.v1.flow.Server.DirtyWindowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public Builder addRequests( + int index, io.greptime.v1.flow.Server.DirtyWindowRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public Builder addRequests( + io.greptime.v1.flow.Server.DirtyWindowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public Builder addRequests( + int index, io.greptime.v1.flow.Server.DirtyWindowRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public io.greptime.v1.flow.Server.DirtyWindowRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public io.greptime.v1.flow.Server.DirtyWindowRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public io.greptime.v1.flow.Server.DirtyWindowRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder().addBuilder( + io.greptime.v1.flow.Server.DirtyWindowRequest.getDefaultInstance()); + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public io.greptime.v1.flow.Server.DirtyWindowRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, io.greptime.v1.flow.Server.DirtyWindowRequest.getDefaultInstance()); + } + /** + *
+       * The dirty time window requests.
+       * Each request contains a table_id and a list of dirty timestamps.
+       * 
+ * + * repeated .greptime.v1.flow.DirtyWindowRequest requests = 1; + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.flow.Server.DirtyWindowRequest, io.greptime.v1.flow.Server.DirtyWindowRequest.Builder, io.greptime.v1.flow.Server.DirtyWindowRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.flow.Server.DirtyWindowRequest, io.greptime.v1.flow.Server.DirtyWindowRequest.Builder, io.greptime.v1.flow.Server.DirtyWindowRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + requests_ = null; + } + return requestsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.flow.DirtyWindowRequests) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.flow.DirtyWindowRequests) + private static final io.greptime.v1.flow.Server.DirtyWindowRequests DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.flow.Server.DirtyWindowRequests(); + } + + public static io.greptime.v1.flow.Server.DirtyWindowRequests getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DirtyWindowRequests parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DirtyWindowRequests(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.flow.Server.DirtyWindowRequests getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DirtyWindowRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.flow.DirtyWindowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 table_id = 1; + * @return The tableId. + */ + int getTableId(); + + /** + *
+     * 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; + * @return A list containing the timestamps. + */ + java.util.List getTimestampsList(); + /** + *
+     * 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; + * @return The count of timestamps. + */ + int getTimestampsCount(); + /** + *
+     * 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; + * @param index The index of the element to return. + * @return The timestamps at the given index. + */ + long getTimestamps(int index); + } + /** + * Protobuf type {@code greptime.v1.flow.DirtyWindowRequest} + */ + public static final class DirtyWindowRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.flow.DirtyWindowRequest) + DirtyWindowRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DirtyWindowRequest.newBuilder() to construct. + private DirtyWindowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DirtyWindowRequest() { + timestamps_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DirtyWindowRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DirtyWindowRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + tableId_ = input.readUInt32(); + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + timestamps_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + timestamps_.addLong(input.readInt64()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + timestamps_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + timestamps_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + timestamps_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_DirtyWindowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_DirtyWindowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.flow.Server.DirtyWindowRequest.class, io.greptime.v1.flow.Server.DirtyWindowRequest.Builder.class); + } + + public static final int TABLE_ID_FIELD_NUMBER = 1; + private int tableId_; + /** + * uint32 table_id = 1; + * @return The tableId. + */ + @java.lang.Override + public int getTableId() { + return tableId_; + } + + public static final int TIMESTAMPS_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.LongList timestamps_; + /** + *
+     * 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; + * @return A list containing the timestamps. + */ + @java.lang.Override + public java.util.List + getTimestampsList() { + return timestamps_; + } + /** + *
+     * 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; + * @return The count of timestamps. + */ + public int getTimestampsCount() { + return timestamps_.size(); + } + /** + *
+     * 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; + * @param index The index of the element to return. + * @return The timestamps at the given index. + */ + public long getTimestamps(int index) { + return timestamps_.getLong(index); + } + private int timestampsMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (tableId_ != 0) { + output.writeUInt32(1, tableId_); + } + if (getTimestampsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(timestampsMemoizedSerializedSize); + } + for (int i = 0; i < timestamps_.size(); i++) { + output.writeInt64NoTag(timestamps_.getLong(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tableId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, tableId_); + } + { + int dataSize = 0; + for (int i = 0; i < timestamps_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(timestamps_.getLong(i)); + } + size += dataSize; + if (!getTimestampsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + timestampsMemoizedSerializedSize = dataSize; + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.flow.Server.DirtyWindowRequest)) { + return super.equals(obj); + } + io.greptime.v1.flow.Server.DirtyWindowRequest other = (io.greptime.v1.flow.Server.DirtyWindowRequest) obj; + + if (getTableId() + != other.getTableId()) return false; + if (!getTimestampsList() + .equals(other.getTimestampsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TABLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getTableId(); + if (getTimestampsCount() > 0) { + hash = (37 * hash) + TIMESTAMPS_FIELD_NUMBER; + hash = (53 * hash) + getTimestampsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.flow.Server.DirtyWindowRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.flow.Server.DirtyWindowRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.flow.Server.DirtyWindowRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.flow.DirtyWindowRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.flow.DirtyWindowRequest) + io.greptime.v1.flow.Server.DirtyWindowRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_DirtyWindowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_DirtyWindowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.flow.Server.DirtyWindowRequest.class, io.greptime.v1.flow.Server.DirtyWindowRequest.Builder.class); + } + + // Construct using io.greptime.v1.flow.Server.DirtyWindowRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + tableId_ = 0; + + timestamps_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_DirtyWindowRequest_descriptor; + } + + @java.lang.Override + public io.greptime.v1.flow.Server.DirtyWindowRequest getDefaultInstanceForType() { + return io.greptime.v1.flow.Server.DirtyWindowRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.flow.Server.DirtyWindowRequest build() { + io.greptime.v1.flow.Server.DirtyWindowRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.flow.Server.DirtyWindowRequest buildPartial() { + io.greptime.v1.flow.Server.DirtyWindowRequest result = new io.greptime.v1.flow.Server.DirtyWindowRequest(this); + int from_bitField0_ = bitField0_; + result.tableId_ = tableId_; + if (((bitField0_ & 0x00000001) != 0)) { + timestamps_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.timestamps_ = timestamps_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.flow.Server.DirtyWindowRequest) { + return mergeFrom((io.greptime.v1.flow.Server.DirtyWindowRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.flow.Server.DirtyWindowRequest other) { + if (other == io.greptime.v1.flow.Server.DirtyWindowRequest.getDefaultInstance()) return this; + if (other.getTableId() != 0) { + setTableId(other.getTableId()); + } + if (!other.timestamps_.isEmpty()) { + if (timestamps_.isEmpty()) { + timestamps_ = other.timestamps_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTimestampsIsMutable(); + timestamps_.addAll(other.timestamps_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.flow.Server.DirtyWindowRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.flow.Server.DirtyWindowRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int tableId_ ; + /** + * uint32 table_id = 1; + * @return The tableId. + */ + @java.lang.Override + public int getTableId() { + return tableId_; + } + /** + * uint32 table_id = 1; + * @param value The tableId to set. + * @return This builder for chaining. + */ + public Builder setTableId(int value) { + + tableId_ = value; + onChanged(); + return this; + } + /** + * uint32 table_id = 1; + * @return This builder for chaining. + */ + public Builder clearTableId() { + + tableId_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList timestamps_ = emptyLongList(); + private void ensureTimestampsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + timestamps_ = mutableCopy(timestamps_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * 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; + * @return A list containing the timestamps. + */ + public java.util.List + getTimestampsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(timestamps_) : timestamps_; + } + /** + *
+       * 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; + * @return The count of timestamps. + */ + public int getTimestampsCount() { + return timestamps_.size(); + } + /** + *
+       * 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; + * @param index The index of the element to return. + * @return The timestamps at the given index. + */ + public long getTimestamps(int index) { + return timestamps_.getLong(index); + } + /** + *
+       * 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; + * @param index The index to set the value at. + * @param value The timestamps to set. + * @return This builder for chaining. + */ + public Builder setTimestamps( + int index, long value) { + ensureTimestampsIsMutable(); + timestamps_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+       * 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; + * @param value The timestamps to add. + * @return This builder for chaining. + */ + public Builder addTimestamps(long value) { + ensureTimestampsIsMutable(); + timestamps_.addLong(value); + onChanged(); + return this; + } + /** + *
+       * 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; + * @param values The timestamps to add. + * @return This builder for chaining. + */ + public Builder addAllTimestamps( + java.lang.Iterable values) { + ensureTimestampsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, timestamps_); + onChanged(); + return this; + } + /** + *
+       * 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; + * @return This builder for chaining. + */ + public Builder clearTimestamps() { + timestamps_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.flow.DirtyWindowRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.flow.DirtyWindowRequest) + private static final io.greptime.v1.flow.Server.DirtyWindowRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.flow.Server.DirtyWindowRequest(); + } + + public static io.greptime.v1.flow.Server.DirtyWindowRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DirtyWindowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DirtyWindowRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.flow.Server.DirtyWindowRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface FlowRequestHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.flow.FlowRequestHeader) com.google.protobuf.MessageOrBuilder { @@ -8984,6 +10671,16 @@ java.lang.String defaultValue); } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_flow_DirtyWindowRequests_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_flow_DirtyWindowRequests_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_flow_DirtyWindowRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_flow_DirtyWindowRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_flow_FlowRequestHeader_descriptor; private static final @@ -9051,47 +10748,53 @@ java.lang.String defaultValue); "\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -9100,8 +10803,20 @@ java.lang.String defaultValue); io.greptime.v1.Ddl.getDescriptor(), io.greptime.v1.RowData.getDescriptor(), }); - internal_static_greptime_v1_flow_FlowRequestHeader_descriptor = + internal_static_greptime_v1_flow_DirtyWindowRequests_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_greptime_v1_flow_DirtyWindowRequests_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_flow_DirtyWindowRequests_descriptor, + new java.lang.String[] { "Requests", }); + internal_static_greptime_v1_flow_DirtyWindowRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_greptime_v1_flow_DirtyWindowRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_flow_DirtyWindowRequest_descriptor, + new java.lang.String[] { "TableId", "Timestamps", }); + internal_static_greptime_v1_flow_FlowRequestHeader_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_greptime_v1_flow_FlowRequestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_FlowRequestHeader_descriptor, @@ -9113,25 +10828,25 @@ java.lang.String defaultValue); internal_static_greptime_v1_flow_FlowRequestHeader_TracingContextEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_flow_InsertRequests_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(3); internal_static_greptime_v1_flow_InsertRequests_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_InsertRequests_descriptor, new java.lang.String[] { "Requests", }); internal_static_greptime_v1_flow_InsertRequest_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(4); internal_static_greptime_v1_flow_InsertRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_InsertRequest_descriptor, new java.lang.String[] { "RegionId", "Rows", }); internal_static_greptime_v1_flow_FlowRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_greptime_v1_flow_FlowRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_FlowRequest_descriptor, new java.lang.String[] { "Header", "Create", "Drop", "Flush", "Body", }); internal_static_greptime_v1_flow_FlowResponse_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_greptime_v1_flow_FlowResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_FlowResponse_descriptor, @@ -9143,7 +10858,7 @@ java.lang.String defaultValue); internal_static_greptime_v1_flow_FlowResponse_ExtensionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_flow_CreateRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_flow_CreateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_CreateRequest_descriptor, @@ -9155,13 +10870,13 @@ java.lang.String defaultValue); internal_static_greptime_v1_flow_CreateRequest_FlowOptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_flow_DropRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_greptime_v1_flow_DropRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_DropRequest_descriptor, new java.lang.String[] { "FlowId", }); internal_static_greptime_v1_flow_FlushFlow_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_greptime_v1_flow_FlushFlow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_FlushFlow_descriptor, diff --git a/proto/greptime/v1/flow/server.proto b/proto/greptime/v1/flow/server.proto index 078167a..226a27f 100644 --- a/proto/greptime/v1/flow/server.proto +++ b/proto/greptime/v1/flow/server.proto @@ -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 { @@ -41,7 +56,7 @@ message FlowRequestHeader { QueryContext query_context = 2; } -message InsertRequests { repeated InsertRequest requests = 1; } +message InsertRequests {repeated InsertRequest requests = 1;} message InsertRequest { uint64 region_id = 1; @@ -83,7 +98,7 @@ message CreateRequest { bool or_replace = 9; } -message DropRequest { FlowId flow_id = 1; } +message DropRequest {FlowId flow_id = 1;} message FlushFlow { FlowId flow_id = 1;