diff --git a/c++/greptime/v1/notify.grpc.pb.cc b/c++/greptime/v1/notify.grpc.pb.cc new file mode 100644 index 00000000..e704860b --- /dev/null +++ b/c++/greptime/v1/notify.grpc.pb.cc @@ -0,0 +1,88 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: greptime/v1/notify.proto + +#include "greptime/v1/notify.pb.h" +#include "greptime/v1/notify.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace greptime { +namespace v1 { + +static const char* Shm_method_names[] = { + "/greptime.v1.Shm/notify", +}; + +std::unique_ptr< Shm::Stub> Shm::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< Shm::Stub> stub(new Shm::Stub(channel, options)); + return stub; +} + +Shm::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_notify_(Shm_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status Shm::Stub::notify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::greptime::v1::NotificationResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::NotificationRequest, ::greptime::v1::NotificationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_notify_, context, request, response); +} + +void Shm::Stub::async::notify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest* request, ::greptime::v1::NotificationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::greptime::v1::NotificationRequest, ::greptime::v1::NotificationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_notify_, context, request, response, std::move(f)); +} + +void Shm::Stub::async::notify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest* request, ::greptime::v1::NotificationResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_notify_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::NotificationResponse>* Shm::Stub::PrepareAsyncnotifyRaw(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::NotificationResponse, ::greptime::v1::NotificationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_notify_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::NotificationResponse>* Shm::Stub::AsyncnotifyRaw(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncnotifyRaw(context, request, cq); + result->StartCall(); + return result; +} + +Shm::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + Shm_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Shm::Service, ::greptime::v1::NotificationRequest, ::greptime::v1::NotificationResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](Shm::Service* service, + ::grpc::ServerContext* ctx, + const ::greptime::v1::NotificationRequest* req, + ::greptime::v1::NotificationResponse* resp) { + return service->notify(ctx, req, resp); + }, this))); +} + +Shm::Service::~Service() { +} + +::grpc::Status Shm::Service::notify(::grpc::ServerContext* context, const ::greptime::v1::NotificationRequest* request, ::greptime::v1::NotificationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace greptime +} // namespace v1 + diff --git a/c++/greptime/v1/notify.grpc.pb.h b/c++/greptime/v1/notify.grpc.pb.h new file mode 100644 index 00000000..d2cd0933 --- /dev/null +++ b/c++/greptime/v1/notify.grpc.pb.h @@ -0,0 +1,257 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: greptime/v1/notify.proto +// Original file comments: +// Copyright 2023 Greptime Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_greptime_2fv1_2fnotify_2eproto__INCLUDED +#define GRPC_greptime_2fv1_2fnotify_2eproto__INCLUDED + +#include "greptime/v1/notify.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace greptime { +namespace v1 { + +class Shm final { + public: + static constexpr char const* service_full_name() { + return "greptime.v1.Shm"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status notify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::greptime::v1::NotificationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::NotificationResponse>> Asyncnotify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::NotificationResponse>>(AsyncnotifyRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::NotificationResponse>> PrepareAsyncnotify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::NotificationResponse>>(PrepareAsyncnotifyRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void notify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest* request, ::greptime::v1::NotificationResponse* response, std::function) = 0; + virtual void notify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest* request, ::greptime::v1::NotificationResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::NotificationResponse>* AsyncnotifyRaw(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::NotificationResponse>* PrepareAsyncnotifyRaw(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status notify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::greptime::v1::NotificationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::NotificationResponse>> Asyncnotify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::NotificationResponse>>(AsyncnotifyRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::NotificationResponse>> PrepareAsyncnotify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::NotificationResponse>>(PrepareAsyncnotifyRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void notify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest* request, ::greptime::v1::NotificationResponse* response, std::function) override; + void notify(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest* request, ::greptime::v1::NotificationResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::NotificationResponse>* AsyncnotifyRaw(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::NotificationResponse>* PrepareAsyncnotifyRaw(::grpc::ClientContext* context, const ::greptime::v1::NotificationRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_notify_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status notify(::grpc::ServerContext* context, const ::greptime::v1::NotificationRequest* request, ::greptime::v1::NotificationResponse* response); + }; + template + class WithAsyncMethod_notify : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_notify() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_notify() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status notify(::grpc::ServerContext* /*context*/, const ::greptime::v1::NotificationRequest* /*request*/, ::greptime::v1::NotificationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestnotify(::grpc::ServerContext* context, ::greptime::v1::NotificationRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::NotificationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_notify AsyncService; + template + class WithCallbackMethod_notify : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_notify() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::NotificationRequest, ::greptime::v1::NotificationResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::greptime::v1::NotificationRequest* request, ::greptime::v1::NotificationResponse* response) { return this->notify(context, request, response); }));} + void SetMessageAllocatorFor_notify( + ::grpc::MessageAllocator< ::greptime::v1::NotificationRequest, ::greptime::v1::NotificationResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::NotificationRequest, ::greptime::v1::NotificationResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_notify() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status notify(::grpc::ServerContext* /*context*/, const ::greptime::v1::NotificationRequest* /*request*/, ::greptime::v1::NotificationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* notify( + ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::NotificationRequest* /*request*/, ::greptime::v1::NotificationResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_notify CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_notify : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_notify() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_notify() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status notify(::grpc::ServerContext* /*context*/, const ::greptime::v1::NotificationRequest* /*request*/, ::greptime::v1::NotificationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_notify : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_notify() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_notify() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status notify(::grpc::ServerContext* /*context*/, const ::greptime::v1::NotificationRequest* /*request*/, ::greptime::v1::NotificationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestnotify(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_notify : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_notify() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->notify(context, request, response); })); + } + ~WithRawCallbackMethod_notify() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status notify(::grpc::ServerContext* /*context*/, const ::greptime::v1::NotificationRequest* /*request*/, ::greptime::v1::NotificationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* notify( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_notify : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_notify() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::greptime::v1::NotificationRequest, ::greptime::v1::NotificationResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::greptime::v1::NotificationRequest, ::greptime::v1::NotificationResponse>* streamer) { + return this->Streamednotify(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_notify() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status notify(::grpc::ServerContext* /*context*/, const ::greptime::v1::NotificationRequest* /*request*/, ::greptime::v1::NotificationResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status Streamednotify(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::NotificationRequest,::greptime::v1::NotificationResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_notify StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_notify StreamedService; +}; + +} // namespace v1 +} // namespace greptime + + +#endif // GRPC_greptime_2fv1_2fnotify_2eproto__INCLUDED diff --git a/c++/greptime/v1/notify.pb.cc b/c++/greptime/v1/notify.pb.cc new file mode 100644 index 00000000..3428da03 --- /dev/null +++ b/c++/greptime/v1/notify.pb.cc @@ -0,0 +1,756 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/notify.proto + +#include "greptime/v1/notify.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace greptime { +namespace v1 { +PROTOBUF_CONSTEXPR NotificationRequest::NotificationRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.backed_file_path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.start_offset_)*/0u + , /*decltype(_impl_.end_offset_)*/0u + , /*decltype(_impl_.check_sum_)*/0u + , /*decltype(_impl_._cached_size_)*/{}} {} +struct NotificationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR NotificationRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NotificationRequestDefaultTypeInternal() {} + union { + NotificationRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NotificationRequestDefaultTypeInternal _NotificationRequest_default_instance_; +PROTOBUF_CONSTEXPR NotificationResponse::NotificationResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.success_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct NotificationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR NotificationResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NotificationResponseDefaultTypeInternal() {} + union { + NotificationResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NotificationResponseDefaultTypeInternal _NotificationResponse_default_instance_; +} // namespace v1 +} // namespace greptime +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fnotify_2eproto[2]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fnotify_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fnotify_2eproto = nullptr; + +const uint32_t TableStruct_greptime_2fv1_2fnotify_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::NotificationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::NotificationRequest, _impl_.catalog_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::NotificationRequest, _impl_.schema_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::NotificationRequest, _impl_.table_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::NotificationRequest, _impl_.backed_file_path_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::NotificationRequest, _impl_.start_offset_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::NotificationRequest, _impl_.end_offset_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::NotificationRequest, _impl_.check_sum_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::NotificationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::NotificationResponse, _impl_.success_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::greptime::v1::NotificationRequest)}, + { 13, -1, -1, sizeof(::greptime::v1::NotificationResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::greptime::v1::_NotificationRequest_default_instance_._instance, + &::greptime::v1::_NotificationResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_greptime_2fv1_2fnotify_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\030greptime/v1/notify.proto\022\013greptime.v1\"" + "\253\001\n\023NotificationRequest\022\024\n\014catalog_name\030" + "\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name" + "\030\003 \001(\t\022\030\n\020backed_file_path\030\004 \001(\t\022\024\n\014star" + "t_offset\030\005 \001(\r\022\022\n\nend_offset\030\006 \001(\r\022\021\n\tch" + "eck_sum\030\007 \001(\r\"\'\n\024NotificationResponse\022\017\n" + "\007success\030\001 \001(\0102V\n\003Shm\022O\n\006notify\022 .grepti" + "me.v1.NotificationRequest\032!.greptime.v1." + "NotificationResponse\"\000B7Z5github.com/Gre" + "ptimeTeam/greptime-proto/go/greptime/v1b" + "\006proto3" + ; +static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fnotify_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fnotify_2eproto = { + false, false, 407, descriptor_table_protodef_greptime_2fv1_2fnotify_2eproto, + "greptime/v1/notify.proto", + &descriptor_table_greptime_2fv1_2fnotify_2eproto_once, nullptr, 0, 2, + schemas, file_default_instances, TableStruct_greptime_2fv1_2fnotify_2eproto::offsets, + file_level_metadata_greptime_2fv1_2fnotify_2eproto, file_level_enum_descriptors_greptime_2fv1_2fnotify_2eproto, + file_level_service_descriptors_greptime_2fv1_2fnotify_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_greptime_2fv1_2fnotify_2eproto_getter() { + return &descriptor_table_greptime_2fv1_2fnotify_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_greptime_2fv1_2fnotify_2eproto(&descriptor_table_greptime_2fv1_2fnotify_2eproto); +namespace greptime { +namespace v1 { + +// =================================================================== + +class NotificationRequest::_Internal { + public: +}; + +NotificationRequest::NotificationRequest(::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.NotificationRequest) +} +NotificationRequest::NotificationRequest(const NotificationRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + NotificationRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.table_name_){} + , decltype(_impl_.backed_file_path_){} + , decltype(_impl_.start_offset_){} + , decltype(_impl_.end_offset_){} + , decltype(_impl_.check_sum_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_catalog_name().empty()) { + _this->_impl_.catalog_name_.Set(from._internal_catalog_name(), + _this->GetArenaForAllocation()); + } + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_schema_name().empty()) { + _this->_impl_.schema_name_.Set(from._internal_schema_name(), + _this->GetArenaForAllocation()); + } + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_table_name().empty()) { + _this->_impl_.table_name_.Set(from._internal_table_name(), + _this->GetArenaForAllocation()); + } + _impl_.backed_file_path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backed_file_path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_backed_file_path().empty()) { + _this->_impl_.backed_file_path_.Set(from._internal_backed_file_path(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.start_offset_, &from._impl_.start_offset_, + static_cast(reinterpret_cast(&_impl_.check_sum_) - + reinterpret_cast(&_impl_.start_offset_)) + sizeof(_impl_.check_sum_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.NotificationRequest) +} + +inline void NotificationRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.table_name_){} + , decltype(_impl_.backed_file_path_){} + , decltype(_impl_.start_offset_){0u} + , decltype(_impl_.end_offset_){0u} + , decltype(_impl_.check_sum_){0u} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backed_file_path_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.backed_file_path_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +NotificationRequest::~NotificationRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.NotificationRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void NotificationRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.catalog_name_.Destroy(); + _impl_.schema_name_.Destroy(); + _impl_.table_name_.Destroy(); + _impl_.backed_file_path_.Destroy(); +} + +void NotificationRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void NotificationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.NotificationRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.catalog_name_.ClearToEmpty(); + _impl_.schema_name_.ClearToEmpty(); + _impl_.table_name_.ClearToEmpty(); + _impl_.backed_file_path_.ClearToEmpty(); + ::memset(&_impl_.start_offset_, 0, static_cast( + reinterpret_cast(&_impl_.check_sum_) - + reinterpret_cast(&_impl_.start_offset_)) + sizeof(_impl_.check_sum_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NotificationRequest::_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) { + // string catalog_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_catalog_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.NotificationRequest.catalog_name")); + } else + goto handle_unusual; + continue; + // string schema_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_schema_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.NotificationRequest.schema_name")); + } else + goto handle_unusual; + continue; + // string table_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_table_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.NotificationRequest.table_name")); + } else + goto handle_unusual; + continue; + // string backed_file_path = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_backed_file_path(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.NotificationRequest.backed_file_path")); + } else + goto handle_unusual; + continue; + // uint32 start_offset = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.start_offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 end_offset = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.end_offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 check_sum = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + _impl_.check_sum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* NotificationRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.NotificationRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string catalog_name = 1; + if (!this->_internal_catalog_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_catalog_name().data(), static_cast(this->_internal_catalog_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.NotificationRequest.catalog_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_catalog_name(), target); + } + + // string schema_name = 2; + if (!this->_internal_schema_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_schema_name().data(), static_cast(this->_internal_schema_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.NotificationRequest.schema_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_schema_name(), target); + } + + // string table_name = 3; + if (!this->_internal_table_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table_name().data(), static_cast(this->_internal_table_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.NotificationRequest.table_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_table_name(), target); + } + + // string backed_file_path = 4; + if (!this->_internal_backed_file_path().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_backed_file_path().data(), static_cast(this->_internal_backed_file_path().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.NotificationRequest.backed_file_path"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_backed_file_path(), target); + } + + // uint32 start_offset = 5; + if (this->_internal_start_offset() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_start_offset(), target); + } + + // uint32 end_offset = 6; + if (this->_internal_end_offset() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_end_offset(), target); + } + + // uint32 check_sum = 7; + if (this->_internal_check_sum() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_check_sum(), 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.NotificationRequest) + return target; +} + +size_t NotificationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.NotificationRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string catalog_name = 1; + if (!this->_internal_catalog_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_catalog_name()); + } + + // string schema_name = 2; + if (!this->_internal_schema_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_schema_name()); + } + + // string table_name = 3; + if (!this->_internal_table_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table_name()); + } + + // string backed_file_path = 4; + if (!this->_internal_backed_file_path().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_backed_file_path()); + } + + // uint32 start_offset = 5; + if (this->_internal_start_offset() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_start_offset()); + } + + // uint32 end_offset = 6; + if (this->_internal_end_offset() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_end_offset()); + } + + // uint32 check_sum = 7; + if (this->_internal_check_sum() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_check_sum()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NotificationRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NotificationRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NotificationRequest::GetClassData() const { return &_class_data_; } + + +void NotificationRequest::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.NotificationRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_catalog_name().empty()) { + _this->_internal_set_catalog_name(from._internal_catalog_name()); + } + if (!from._internal_schema_name().empty()) { + _this->_internal_set_schema_name(from._internal_schema_name()); + } + if (!from._internal_table_name().empty()) { + _this->_internal_set_table_name(from._internal_table_name()); + } + if (!from._internal_backed_file_path().empty()) { + _this->_internal_set_backed_file_path(from._internal_backed_file_path()); + } + if (from._internal_start_offset() != 0) { + _this->_internal_set_start_offset(from._internal_start_offset()); + } + if (from._internal_end_offset() != 0) { + _this->_internal_set_end_offset(from._internal_end_offset()); + } + if (from._internal_check_sum() != 0) { + _this->_internal_set_check_sum(from._internal_check_sum()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void NotificationRequest::CopyFrom(const NotificationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.NotificationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NotificationRequest::IsInitialized() const { + return true; +} + +void NotificationRequest::InternalSwap(NotificationRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.catalog_name_, lhs_arena, + &other->_impl_.catalog_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.schema_name_, lhs_arena, + &other->_impl_.schema_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.table_name_, lhs_arena, + &other->_impl_.table_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.backed_file_path_, lhs_arena, + &other->_impl_.backed_file_path_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(NotificationRequest, _impl_.check_sum_) + + sizeof(NotificationRequest::_impl_.check_sum_) + - PROTOBUF_FIELD_OFFSET(NotificationRequest, _impl_.start_offset_)>( + reinterpret_cast(&_impl_.start_offset_), + reinterpret_cast(&other->_impl_.start_offset_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata NotificationRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fnotify_2eproto_getter, &descriptor_table_greptime_2fv1_2fnotify_2eproto_once, + file_level_metadata_greptime_2fv1_2fnotify_2eproto[0]); +} + +// =================================================================== + +class NotificationResponse::_Internal { + public: +}; + +NotificationResponse::NotificationResponse(::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.NotificationResponse) +} +NotificationResponse::NotificationResponse(const NotificationResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + NotificationResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.success_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.success_ = from._impl_.success_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.NotificationResponse) +} + +inline void NotificationResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.success_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +NotificationResponse::~NotificationResponse() { + // @@protoc_insertion_point(destructor:greptime.v1.NotificationResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void NotificationResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void NotificationResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void NotificationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.NotificationResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.success_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NotificationResponse::_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) { + // bool success = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.success_ = ::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* NotificationResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.NotificationResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool success = 1; + if (this->_internal_success() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_success(), 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.NotificationResponse) + return target; +} + +size_t NotificationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.NotificationResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bool success = 1; + if (this->_internal_success() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NotificationResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NotificationResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NotificationResponse::GetClassData() const { return &_class_data_; } + + +void NotificationResponse::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.NotificationResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_success() != 0) { + _this->_internal_set_success(from._internal_success()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void NotificationResponse::CopyFrom(const NotificationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.NotificationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NotificationResponse::IsInitialized() const { + return true; +} + +void NotificationResponse::InternalSwap(NotificationResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.success_, other->_impl_.success_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata NotificationResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fnotify_2eproto_getter, &descriptor_table_greptime_2fv1_2fnotify_2eproto_once, + file_level_metadata_greptime_2fv1_2fnotify_2eproto[1]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace greptime +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::greptime::v1::NotificationRequest* +Arena::CreateMaybeMessage< ::greptime::v1::NotificationRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::NotificationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::NotificationResponse* +Arena::CreateMaybeMessage< ::greptime::v1::NotificationResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::NotificationResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/c++/greptime/v1/notify.pb.h b/c++/greptime/v1/notify.pb.h new file mode 100644 index 00000000..0ce4e966 --- /dev/null +++ b/c++/greptime/v1/notify.pb.h @@ -0,0 +1,755 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/notify.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fnotify_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fnotify_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3021006 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fnotify_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_greptime_2fv1_2fnotify_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_greptime_2fv1_2fnotify_2eproto; +namespace greptime { +namespace v1 { +class NotificationRequest; +struct NotificationRequestDefaultTypeInternal; +extern NotificationRequestDefaultTypeInternal _NotificationRequest_default_instance_; +class NotificationResponse; +struct NotificationResponseDefaultTypeInternal; +extern NotificationResponseDefaultTypeInternal _NotificationResponse_default_instance_; +} // namespace v1 +} // namespace greptime +PROTOBUF_NAMESPACE_OPEN +template<> ::greptime::v1::NotificationRequest* Arena::CreateMaybeMessage<::greptime::v1::NotificationRequest>(Arena*); +template<> ::greptime::v1::NotificationResponse* Arena::CreateMaybeMessage<::greptime::v1::NotificationResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace greptime { +namespace v1 { + +// =================================================================== + +class NotificationRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.NotificationRequest) */ { + public: + inline NotificationRequest() : NotificationRequest(nullptr) {} + ~NotificationRequest() override; + explicit PROTOBUF_CONSTEXPR NotificationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + NotificationRequest(const NotificationRequest& from); + NotificationRequest(NotificationRequest&& from) noexcept + : NotificationRequest() { + *this = ::std::move(from); + } + + inline NotificationRequest& operator=(const NotificationRequest& from) { + CopyFrom(from); + return *this; + } + inline NotificationRequest& operator=(NotificationRequest&& 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 NotificationRequest& default_instance() { + return *internal_default_instance(); + } + static inline const NotificationRequest* internal_default_instance() { + return reinterpret_cast( + &_NotificationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(NotificationRequest& a, NotificationRequest& b) { + a.Swap(&b); + } + inline void Swap(NotificationRequest* 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(NotificationRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + NotificationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NotificationRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NotificationRequest& from) { + NotificationRequest::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(NotificationRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.NotificationRequest"; + } + protected: + explicit NotificationRequest(::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 { + kCatalogNameFieldNumber = 1, + kSchemaNameFieldNumber = 2, + kTableNameFieldNumber = 3, + kBackedFilePathFieldNumber = 4, + kStartOffsetFieldNumber = 5, + kEndOffsetFieldNumber = 6, + kCheckSumFieldNumber = 7, + }; + // string catalog_name = 1; + void clear_catalog_name(); + const std::string& catalog_name() const; + template + void set_catalog_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_catalog_name(); + PROTOBUF_NODISCARD std::string* release_catalog_name(); + void set_allocated_catalog_name(std::string* catalog_name); + private: + const std::string& _internal_catalog_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog_name(const std::string& value); + std::string* _internal_mutable_catalog_name(); + public: + + // string schema_name = 2; + void clear_schema_name(); + const std::string& schema_name() const; + template + void set_schema_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_schema_name(); + PROTOBUF_NODISCARD std::string* release_schema_name(); + void set_allocated_schema_name(std::string* schema_name); + private: + const std::string& _internal_schema_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema_name(const std::string& value); + std::string* _internal_mutable_schema_name(); + public: + + // string table_name = 3; + void clear_table_name(); + const std::string& table_name() const; + template + void set_table_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_table_name(); + PROTOBUF_NODISCARD std::string* release_table_name(); + void set_allocated_table_name(std::string* table_name); + private: + const std::string& _internal_table_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_name(const std::string& value); + std::string* _internal_mutable_table_name(); + public: + + // string backed_file_path = 4; + void clear_backed_file_path(); + const std::string& backed_file_path() const; + template + void set_backed_file_path(ArgT0&& arg0, ArgT... args); + std::string* mutable_backed_file_path(); + PROTOBUF_NODISCARD std::string* release_backed_file_path(); + void set_allocated_backed_file_path(std::string* backed_file_path); + private: + const std::string& _internal_backed_file_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_backed_file_path(const std::string& value); + std::string* _internal_mutable_backed_file_path(); + public: + + // uint32 start_offset = 5; + void clear_start_offset(); + uint32_t start_offset() const; + void set_start_offset(uint32_t value); + private: + uint32_t _internal_start_offset() const; + void _internal_set_start_offset(uint32_t value); + public: + + // uint32 end_offset = 6; + void clear_end_offset(); + uint32_t end_offset() const; + void set_end_offset(uint32_t value); + private: + uint32_t _internal_end_offset() const; + void _internal_set_end_offset(uint32_t value); + public: + + // uint32 check_sum = 7; + void clear_check_sum(); + uint32_t check_sum() const; + void set_check_sum(uint32_t value); + private: + uint32_t _internal_check_sum() const; + void _internal_set_check_sum(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.NotificationRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backed_file_path_; + uint32_t start_offset_; + uint32_t end_offset_; + uint32_t check_sum_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fnotify_2eproto; +}; +// ------------------------------------------------------------------- + +class NotificationResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.NotificationResponse) */ { + public: + inline NotificationResponse() : NotificationResponse(nullptr) {} + ~NotificationResponse() override; + explicit PROTOBUF_CONSTEXPR NotificationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + NotificationResponse(const NotificationResponse& from); + NotificationResponse(NotificationResponse&& from) noexcept + : NotificationResponse() { + *this = ::std::move(from); + } + + inline NotificationResponse& operator=(const NotificationResponse& from) { + CopyFrom(from); + return *this; + } + inline NotificationResponse& operator=(NotificationResponse&& 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 NotificationResponse& default_instance() { + return *internal_default_instance(); + } + static inline const NotificationResponse* internal_default_instance() { + return reinterpret_cast( + &_NotificationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(NotificationResponse& a, NotificationResponse& b) { + a.Swap(&b); + } + inline void Swap(NotificationResponse* 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(NotificationResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + NotificationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NotificationResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NotificationResponse& from) { + NotificationResponse::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(NotificationResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.NotificationResponse"; + } + protected: + explicit NotificationResponse(::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 { + kSuccessFieldNumber = 1, + }; + // bool success = 1; + void clear_success(); + bool success() const; + void set_success(bool value); + private: + bool _internal_success() const; + void _internal_set_success(bool value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.NotificationResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + bool success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fnotify_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// NotificationRequest + +// string catalog_name = 1; +inline void NotificationRequest::clear_catalog_name() { + _impl_.catalog_name_.ClearToEmpty(); +} +inline const std::string& NotificationRequest::catalog_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.NotificationRequest.catalog_name) + return _internal_catalog_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NotificationRequest::set_catalog_name(ArgT0&& arg0, ArgT... args) { + + _impl_.catalog_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.NotificationRequest.catalog_name) +} +inline std::string* NotificationRequest::mutable_catalog_name() { + std::string* _s = _internal_mutable_catalog_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.NotificationRequest.catalog_name) + return _s; +} +inline const std::string& NotificationRequest::_internal_catalog_name() const { + return _impl_.catalog_name_.Get(); +} +inline void NotificationRequest::_internal_set_catalog_name(const std::string& value) { + + _impl_.catalog_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* NotificationRequest::_internal_mutable_catalog_name() { + + return _impl_.catalog_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* NotificationRequest::release_catalog_name() { + // @@protoc_insertion_point(field_release:greptime.v1.NotificationRequest.catalog_name) + return _impl_.catalog_name_.Release(); +} +inline void NotificationRequest::set_allocated_catalog_name(std::string* catalog_name) { + if (catalog_name != nullptr) { + + } else { + + } + _impl_.catalog_name_.SetAllocated(catalog_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.catalog_name_.IsDefault()) { + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.NotificationRequest.catalog_name) +} + +// string schema_name = 2; +inline void NotificationRequest::clear_schema_name() { + _impl_.schema_name_.ClearToEmpty(); +} +inline const std::string& NotificationRequest::schema_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.NotificationRequest.schema_name) + return _internal_schema_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NotificationRequest::set_schema_name(ArgT0&& arg0, ArgT... args) { + + _impl_.schema_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.NotificationRequest.schema_name) +} +inline std::string* NotificationRequest::mutable_schema_name() { + std::string* _s = _internal_mutable_schema_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.NotificationRequest.schema_name) + return _s; +} +inline const std::string& NotificationRequest::_internal_schema_name() const { + return _impl_.schema_name_.Get(); +} +inline void NotificationRequest::_internal_set_schema_name(const std::string& value) { + + _impl_.schema_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* NotificationRequest::_internal_mutable_schema_name() { + + return _impl_.schema_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* NotificationRequest::release_schema_name() { + // @@protoc_insertion_point(field_release:greptime.v1.NotificationRequest.schema_name) + return _impl_.schema_name_.Release(); +} +inline void NotificationRequest::set_allocated_schema_name(std::string* schema_name) { + if (schema_name != nullptr) { + + } else { + + } + _impl_.schema_name_.SetAllocated(schema_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.schema_name_.IsDefault()) { + _impl_.schema_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.NotificationRequest.schema_name) +} + +// string table_name = 3; +inline void NotificationRequest::clear_table_name() { + _impl_.table_name_.ClearToEmpty(); +} +inline const std::string& NotificationRequest::table_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.NotificationRequest.table_name) + return _internal_table_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NotificationRequest::set_table_name(ArgT0&& arg0, ArgT... args) { + + _impl_.table_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.NotificationRequest.table_name) +} +inline std::string* NotificationRequest::mutable_table_name() { + std::string* _s = _internal_mutable_table_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.NotificationRequest.table_name) + return _s; +} +inline const std::string& NotificationRequest::_internal_table_name() const { + return _impl_.table_name_.Get(); +} +inline void NotificationRequest::_internal_set_table_name(const std::string& value) { + + _impl_.table_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* NotificationRequest::_internal_mutable_table_name() { + + return _impl_.table_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* NotificationRequest::release_table_name() { + // @@protoc_insertion_point(field_release:greptime.v1.NotificationRequest.table_name) + return _impl_.table_name_.Release(); +} +inline void NotificationRequest::set_allocated_table_name(std::string* table_name) { + if (table_name != nullptr) { + + } else { + + } + _impl_.table_name_.SetAllocated(table_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.table_name_.IsDefault()) { + _impl_.table_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.NotificationRequest.table_name) +} + +// string backed_file_path = 4; +inline void NotificationRequest::clear_backed_file_path() { + _impl_.backed_file_path_.ClearToEmpty(); +} +inline const std::string& NotificationRequest::backed_file_path() const { + // @@protoc_insertion_point(field_get:greptime.v1.NotificationRequest.backed_file_path) + return _internal_backed_file_path(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NotificationRequest::set_backed_file_path(ArgT0&& arg0, ArgT... args) { + + _impl_.backed_file_path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.NotificationRequest.backed_file_path) +} +inline std::string* NotificationRequest::mutable_backed_file_path() { + std::string* _s = _internal_mutable_backed_file_path(); + // @@protoc_insertion_point(field_mutable:greptime.v1.NotificationRequest.backed_file_path) + return _s; +} +inline const std::string& NotificationRequest::_internal_backed_file_path() const { + return _impl_.backed_file_path_.Get(); +} +inline void NotificationRequest::_internal_set_backed_file_path(const std::string& value) { + + _impl_.backed_file_path_.Set(value, GetArenaForAllocation()); +} +inline std::string* NotificationRequest::_internal_mutable_backed_file_path() { + + return _impl_.backed_file_path_.Mutable(GetArenaForAllocation()); +} +inline std::string* NotificationRequest::release_backed_file_path() { + // @@protoc_insertion_point(field_release:greptime.v1.NotificationRequest.backed_file_path) + return _impl_.backed_file_path_.Release(); +} +inline void NotificationRequest::set_allocated_backed_file_path(std::string* backed_file_path) { + if (backed_file_path != nullptr) { + + } else { + + } + _impl_.backed_file_path_.SetAllocated(backed_file_path, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.backed_file_path_.IsDefault()) { + _impl_.backed_file_path_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.NotificationRequest.backed_file_path) +} + +// uint32 start_offset = 5; +inline void NotificationRequest::clear_start_offset() { + _impl_.start_offset_ = 0u; +} +inline uint32_t NotificationRequest::_internal_start_offset() const { + return _impl_.start_offset_; +} +inline uint32_t NotificationRequest::start_offset() const { + // @@protoc_insertion_point(field_get:greptime.v1.NotificationRequest.start_offset) + return _internal_start_offset(); +} +inline void NotificationRequest::_internal_set_start_offset(uint32_t value) { + + _impl_.start_offset_ = value; +} +inline void NotificationRequest::set_start_offset(uint32_t value) { + _internal_set_start_offset(value); + // @@protoc_insertion_point(field_set:greptime.v1.NotificationRequest.start_offset) +} + +// uint32 end_offset = 6; +inline void NotificationRequest::clear_end_offset() { + _impl_.end_offset_ = 0u; +} +inline uint32_t NotificationRequest::_internal_end_offset() const { + return _impl_.end_offset_; +} +inline uint32_t NotificationRequest::end_offset() const { + // @@protoc_insertion_point(field_get:greptime.v1.NotificationRequest.end_offset) + return _internal_end_offset(); +} +inline void NotificationRequest::_internal_set_end_offset(uint32_t value) { + + _impl_.end_offset_ = value; +} +inline void NotificationRequest::set_end_offset(uint32_t value) { + _internal_set_end_offset(value); + // @@protoc_insertion_point(field_set:greptime.v1.NotificationRequest.end_offset) +} + +// uint32 check_sum = 7; +inline void NotificationRequest::clear_check_sum() { + _impl_.check_sum_ = 0u; +} +inline uint32_t NotificationRequest::_internal_check_sum() const { + return _impl_.check_sum_; +} +inline uint32_t NotificationRequest::check_sum() const { + // @@protoc_insertion_point(field_get:greptime.v1.NotificationRequest.check_sum) + return _internal_check_sum(); +} +inline void NotificationRequest::_internal_set_check_sum(uint32_t value) { + + _impl_.check_sum_ = value; +} +inline void NotificationRequest::set_check_sum(uint32_t value) { + _internal_set_check_sum(value); + // @@protoc_insertion_point(field_set:greptime.v1.NotificationRequest.check_sum) +} + +// ------------------------------------------------------------------- + +// NotificationResponse + +// bool success = 1; +inline void NotificationResponse::clear_success() { + _impl_.success_ = false; +} +inline bool NotificationResponse::_internal_success() const { + return _impl_.success_; +} +inline bool NotificationResponse::success() const { + // @@protoc_insertion_point(field_get:greptime.v1.NotificationResponse.success) + return _internal_success(); +} +inline void NotificationResponse::_internal_set_success(bool value) { + + _impl_.success_ = value; +} +inline void NotificationResponse::set_success(bool value) { + _internal_set_success(value); + // @@protoc_insertion_point(field_set:greptime.v1.NotificationResponse.success) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1 +} // namespace greptime + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fnotify_2eproto diff --git a/go/greptime/v1/notify.pb.go b/go/greptime/v1/notify.pb.go new file mode 100644 index 00000000..78b52603 --- /dev/null +++ b/go/greptime/v1/notify.pb.go @@ -0,0 +1,292 @@ +// Copyright 2023 Greptime Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.21.6 +// source: greptime/v1/notify.proto + +package v1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type NotificationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CatalogName string `protobuf:"bytes,1,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"` + SchemaName string `protobuf:"bytes,2,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + BackedFilePath string `protobuf:"bytes,4,opt,name=backed_file_path,json=backedFilePath,proto3" json:"backed_file_path,omitempty"` + StartOffset uint32 `protobuf:"varint,5,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"` + EndOffset uint32 `protobuf:"varint,6,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"` + CheckSum uint32 `protobuf:"varint,7,opt,name=check_sum,json=checkSum,proto3" json:"check_sum,omitempty"` +} + +func (x *NotificationRequest) Reset() { + *x = NotificationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_notify_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NotificationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NotificationRequest) ProtoMessage() {} + +func (x *NotificationRequest) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_notify_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NotificationRequest.ProtoReflect.Descriptor instead. +func (*NotificationRequest) Descriptor() ([]byte, []int) { + return file_greptime_v1_notify_proto_rawDescGZIP(), []int{0} +} + +func (x *NotificationRequest) GetCatalogName() string { + if x != nil { + return x.CatalogName + } + return "" +} + +func (x *NotificationRequest) GetSchemaName() string { + if x != nil { + return x.SchemaName + } + return "" +} + +func (x *NotificationRequest) GetTableName() string { + if x != nil { + return x.TableName + } + return "" +} + +func (x *NotificationRequest) GetBackedFilePath() string { + if x != nil { + return x.BackedFilePath + } + return "" +} + +func (x *NotificationRequest) GetStartOffset() uint32 { + if x != nil { + return x.StartOffset + } + return 0 +} + +func (x *NotificationRequest) GetEndOffset() uint32 { + if x != nil { + return x.EndOffset + } + return 0 +} + +func (x *NotificationRequest) GetCheckSum() uint32 { + if x != nil { + return x.CheckSum + } + return 0 +} + +type NotificationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` +} + +func (x *NotificationResponse) Reset() { + *x = NotificationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_notify_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NotificationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NotificationResponse) ProtoMessage() {} + +func (x *NotificationResponse) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_notify_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NotificationResponse.ProtoReflect.Descriptor instead. +func (*NotificationResponse) Descriptor() ([]byte, []int) { + return file_greptime_v1_notify_proto_rawDescGZIP(), []int{1} +} + +func (x *NotificationResponse) GetSuccess() bool { + if x != nil { + return x.Success + } + return false +} + +var File_greptime_v1_notify_proto protoreflect.FileDescriptor + +var file_greptime_v1_notify_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, + 0x74, 0x69, 0x66, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x81, 0x02, 0x0a, 0x13, 0x4e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, + 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x61, + 0x63, 0x6b, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x65, 0x6e, 0x64, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x73, 0x75, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x75, 0x6d, 0x22, 0x30, 0x0a, 0x14, 0x4e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x32, 0x56, 0x0a, + 0x03, 0x53, 0x68, 0x6d, 0x12, 0x4f, 0x0a, 0x06, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x12, 0x20, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, + 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_greptime_v1_notify_proto_rawDescOnce sync.Once + file_greptime_v1_notify_proto_rawDescData = file_greptime_v1_notify_proto_rawDesc +) + +func file_greptime_v1_notify_proto_rawDescGZIP() []byte { + file_greptime_v1_notify_proto_rawDescOnce.Do(func() { + file_greptime_v1_notify_proto_rawDescData = protoimpl.X.CompressGZIP(file_greptime_v1_notify_proto_rawDescData) + }) + return file_greptime_v1_notify_proto_rawDescData +} + +var file_greptime_v1_notify_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_greptime_v1_notify_proto_goTypes = []interface{}{ + (*NotificationRequest)(nil), // 0: greptime.v1.NotificationRequest + (*NotificationResponse)(nil), // 1: greptime.v1.NotificationResponse +} +var file_greptime_v1_notify_proto_depIdxs = []int32{ + 0, // 0: greptime.v1.Shm.notify:input_type -> greptime.v1.NotificationRequest + 1, // 1: greptime.v1.Shm.notify:output_type -> greptime.v1.NotificationResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_greptime_v1_notify_proto_init() } +func file_greptime_v1_notify_proto_init() { + if File_greptime_v1_notify_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_greptime_v1_notify_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotificationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_notify_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotificationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_greptime_v1_notify_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_greptime_v1_notify_proto_goTypes, + DependencyIndexes: file_greptime_v1_notify_proto_depIdxs, + MessageInfos: file_greptime_v1_notify_proto_msgTypes, + }.Build() + File_greptime_v1_notify_proto = out.File + file_greptime_v1_notify_proto_rawDesc = nil + file_greptime_v1_notify_proto_goTypes = nil + file_greptime_v1_notify_proto_depIdxs = nil +} diff --git a/go/greptime/v1/notify_grpc.pb.go b/go/greptime/v1/notify_grpc.pb.go new file mode 100644 index 00000000..aae973a4 --- /dev/null +++ b/go/greptime/v1/notify_grpc.pb.go @@ -0,0 +1,105 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.21.6 +// source: greptime/v1/notify.proto + +package v1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// ShmClient is the client API for Shm service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ShmClient interface { + Notify(ctx context.Context, in *NotificationRequest, opts ...grpc.CallOption) (*NotificationResponse, error) +} + +type shmClient struct { + cc grpc.ClientConnInterface +} + +func NewShmClient(cc grpc.ClientConnInterface) ShmClient { + return &shmClient{cc} +} + +func (c *shmClient) Notify(ctx context.Context, in *NotificationRequest, opts ...grpc.CallOption) (*NotificationResponse, error) { + out := new(NotificationResponse) + err := c.cc.Invoke(ctx, "/greptime.v1.Shm/notify", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ShmServer is the server API for Shm service. +// All implementations must embed UnimplementedShmServer +// for forward compatibility +type ShmServer interface { + Notify(context.Context, *NotificationRequest) (*NotificationResponse, error) + mustEmbedUnimplementedShmServer() +} + +// UnimplementedShmServer must be embedded to have forward compatible implementations. +type UnimplementedShmServer struct { +} + +func (UnimplementedShmServer) Notify(context.Context, *NotificationRequest) (*NotificationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Notify not implemented") +} +func (UnimplementedShmServer) mustEmbedUnimplementedShmServer() {} + +// UnsafeShmServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ShmServer will +// result in compilation errors. +type UnsafeShmServer interface { + mustEmbedUnimplementedShmServer() +} + +func RegisterShmServer(s grpc.ServiceRegistrar, srv ShmServer) { + s.RegisterService(&Shm_ServiceDesc, srv) +} + +func _Shm_Notify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NotificationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ShmServer).Notify(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/greptime.v1.Shm/notify", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ShmServer).Notify(ctx, req.(*NotificationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Shm_ServiceDesc is the grpc.ServiceDesc for Shm service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Shm_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "greptime.v1.Shm", + HandlerType: (*ShmServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "notify", + Handler: _Shm_Notify_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "greptime/v1/notify.proto", +} diff --git a/java/src/main/java/greptime/v1/Notify.java b/java/src/main/java/greptime/v1/Notify.java new file mode 100644 index 00000000..ee03e38b --- /dev/null +++ b/java/src/main/java/greptime/v1/Notify.java @@ -0,0 +1,1788 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/notify.proto + +package greptime.v1; + +public final class Notify { + private Notify() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface NotificationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.NotificationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string catalog_name = 1; + * @return The catalogName. + */ + java.lang.String getCatalogName(); + /** + * string catalog_name = 1; + * @return The bytes for catalogName. + */ + com.google.protobuf.ByteString + getCatalogNameBytes(); + + /** + * string schema_name = 2; + * @return The schemaName. + */ + java.lang.String getSchemaName(); + /** + * string schema_name = 2; + * @return The bytes for schemaName. + */ + com.google.protobuf.ByteString + getSchemaNameBytes(); + + /** + * string table_name = 3; + * @return The tableName. + */ + java.lang.String getTableName(); + /** + * string table_name = 3; + * @return The bytes for tableName. + */ + com.google.protobuf.ByteString + getTableNameBytes(); + + /** + * string backed_file_path = 4; + * @return The backedFilePath. + */ + java.lang.String getBackedFilePath(); + /** + * string backed_file_path = 4; + * @return The bytes for backedFilePath. + */ + com.google.protobuf.ByteString + getBackedFilePathBytes(); + + /** + * uint32 start_offset = 5; + * @return The startOffset. + */ + int getStartOffset(); + + /** + * uint32 end_offset = 6; + * @return The endOffset. + */ + int getEndOffset(); + + /** + * uint32 check_sum = 7; + * @return The checkSum. + */ + int getCheckSum(); + } + /** + * Protobuf type {@code greptime.v1.NotificationRequest} + */ + public static final class NotificationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.NotificationRequest) + NotificationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NotificationRequest.newBuilder() to construct. + private NotificationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NotificationRequest() { + catalogName_ = ""; + schemaName_ = ""; + tableName_ = ""; + backedFilePath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NotificationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NotificationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + catalogName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + schemaName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + tableName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + backedFilePath_ = s; + break; + } + case 40: { + + startOffset_ = input.readUInt32(); + break; + } + case 48: { + + endOffset_ = input.readUInt32(); + break; + } + case 56: { + + checkSum_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.Notify.internal_static_greptime_v1_NotificationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.Notify.internal_static_greptime_v1_NotificationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.Notify.NotificationRequest.class, greptime.v1.Notify.NotificationRequest.Builder.class); + } + + public static final int CATALOG_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object catalogName_; + /** + * string catalog_name = 1; + * @return The catalogName. + */ + @java.lang.Override + public java.lang.String getCatalogName() { + java.lang.Object ref = catalogName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogName_ = s; + return s; + } + } + /** + * string catalog_name = 1; + * @return The bytes for catalogName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCatalogNameBytes() { + java.lang.Object ref = catalogName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalogName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object schemaName_; + /** + * string schema_name = 2; + * @return The schemaName. + */ + @java.lang.Override + public java.lang.String getSchemaName() { + java.lang.Object ref = schemaName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaName_ = s; + return s; + } + } + /** + * string schema_name = 2; + * @return The bytes for schemaName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schemaName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object tableName_; + /** + * string table_name = 3; + * @return The tableName. + */ + @java.lang.Override + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } + } + /** + * string table_name = 3; + * @return The bytes for tableName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKED_FILE_PATH_FIELD_NUMBER = 4; + private volatile java.lang.Object backedFilePath_; + /** + * string backed_file_path = 4; + * @return The backedFilePath. + */ + @java.lang.Override + public java.lang.String getBackedFilePath() { + java.lang.Object ref = backedFilePath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backedFilePath_ = s; + return s; + } + } + /** + * string backed_file_path = 4; + * @return The bytes for backedFilePath. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBackedFilePathBytes() { + java.lang.Object ref = backedFilePath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + backedFilePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_OFFSET_FIELD_NUMBER = 5; + private int startOffset_; + /** + * uint32 start_offset = 5; + * @return The startOffset. + */ + @java.lang.Override + public int getStartOffset() { + return startOffset_; + } + + public static final int END_OFFSET_FIELD_NUMBER = 6; + private int endOffset_; + /** + * uint32 end_offset = 6; + * @return The endOffset. + */ + @java.lang.Override + public int getEndOffset() { + return endOffset_; + } + + public static final int CHECK_SUM_FIELD_NUMBER = 7; + private int checkSum_; + /** + * uint32 check_sum = 7; + * @return The checkSum. + */ + @java.lang.Override + public int getCheckSum() { + return checkSum_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backedFilePath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, backedFilePath_); + } + if (startOffset_ != 0) { + output.writeUInt32(5, startOffset_); + } + if (endOffset_ != 0) { + output.writeUInt32(6, endOffset_); + } + if (checkSum_ != 0) { + output.writeUInt32(7, checkSum_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backedFilePath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, backedFilePath_); + } + if (startOffset_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, startOffset_); + } + if (endOffset_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, endOffset_); + } + if (checkSum_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(7, checkSum_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.Notify.NotificationRequest)) { + return super.equals(obj); + } + greptime.v1.Notify.NotificationRequest other = (greptime.v1.Notify.NotificationRequest) obj; + + if (!getCatalogName() + .equals(other.getCatalogName())) return false; + if (!getSchemaName() + .equals(other.getSchemaName())) return false; + if (!getTableName() + .equals(other.getTableName())) return false; + if (!getBackedFilePath() + .equals(other.getBackedFilePath())) return false; + if (getStartOffset() + != other.getStartOffset()) return false; + if (getEndOffset() + != other.getEndOffset()) return false; + if (getCheckSum() + != other.getCheckSum()) 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) + CATALOG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCatalogName().hashCode(); + hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSchemaName().hashCode(); + hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTableName().hashCode(); + hash = (37 * hash) + BACKED_FILE_PATH_FIELD_NUMBER; + hash = (53 * hash) + getBackedFilePath().hashCode(); + hash = (37 * hash) + START_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getStartOffset(); + hash = (37 * hash) + END_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getEndOffset(); + hash = (37 * hash) + CHECK_SUM_FIELD_NUMBER; + hash = (53 * hash) + getCheckSum(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.Notify.NotificationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.Notify.NotificationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.Notify.NotificationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.Notify.NotificationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.Notify.NotificationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.Notify.NotificationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.Notify.NotificationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.Notify.NotificationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.Notify.NotificationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.Notify.NotificationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.Notify.NotificationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.Notify.NotificationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.Notify.NotificationRequest 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.NotificationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.NotificationRequest) + greptime.v1.Notify.NotificationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.Notify.internal_static_greptime_v1_NotificationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.Notify.internal_static_greptime_v1_NotificationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.Notify.NotificationRequest.class, greptime.v1.Notify.NotificationRequest.Builder.class); + } + + // Construct using greptime.v1.Notify.NotificationRequest.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(); + catalogName_ = ""; + + schemaName_ = ""; + + tableName_ = ""; + + backedFilePath_ = ""; + + startOffset_ = 0; + + endOffset_ = 0; + + checkSum_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.Notify.internal_static_greptime_v1_NotificationRequest_descriptor; + } + + @java.lang.Override + public greptime.v1.Notify.NotificationRequest getDefaultInstanceForType() { + return greptime.v1.Notify.NotificationRequest.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.Notify.NotificationRequest build() { + greptime.v1.Notify.NotificationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.Notify.NotificationRequest buildPartial() { + greptime.v1.Notify.NotificationRequest result = new greptime.v1.Notify.NotificationRequest(this); + result.catalogName_ = catalogName_; + result.schemaName_ = schemaName_; + result.tableName_ = tableName_; + result.backedFilePath_ = backedFilePath_; + result.startOffset_ = startOffset_; + result.endOffset_ = endOffset_; + result.checkSum_ = checkSum_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.Notify.NotificationRequest) { + return mergeFrom((greptime.v1.Notify.NotificationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.Notify.NotificationRequest other) { + if (other == greptime.v1.Notify.NotificationRequest.getDefaultInstance()) return this; + if (!other.getCatalogName().isEmpty()) { + catalogName_ = other.catalogName_; + onChanged(); + } + if (!other.getSchemaName().isEmpty()) { + schemaName_ = other.schemaName_; + onChanged(); + } + if (!other.getTableName().isEmpty()) { + tableName_ = other.tableName_; + onChanged(); + } + if (!other.getBackedFilePath().isEmpty()) { + backedFilePath_ = other.backedFilePath_; + onChanged(); + } + if (other.getStartOffset() != 0) { + setStartOffset(other.getStartOffset()); + } + if (other.getEndOffset() != 0) { + setEndOffset(other.getEndOffset()); + } + if (other.getCheckSum() != 0) { + setCheckSum(other.getCheckSum()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.Notify.NotificationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.Notify.NotificationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object catalogName_ = ""; + /** + * string catalog_name = 1; + * @return The catalogName. + */ + public java.lang.String getCatalogName() { + java.lang.Object ref = catalogName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string catalog_name = 1; + * @return The bytes for catalogName. + */ + public com.google.protobuf.ByteString + getCatalogNameBytes() { + java.lang.Object ref = catalogName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalogName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string catalog_name = 1; + * @param value The catalogName to set. + * @return This builder for chaining. + */ + public Builder setCatalogName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + catalogName_ = value; + onChanged(); + return this; + } + /** + * string catalog_name = 1; + * @return This builder for chaining. + */ + public Builder clearCatalogName() { + + catalogName_ = getDefaultInstance().getCatalogName(); + onChanged(); + return this; + } + /** + * string catalog_name = 1; + * @param value The bytes for catalogName to set. + * @return This builder for chaining. + */ + public Builder setCatalogNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + catalogName_ = value; + onChanged(); + return this; + } + + private java.lang.Object schemaName_ = ""; + /** + * string schema_name = 2; + * @return The schemaName. + */ + public java.lang.String getSchemaName() { + java.lang.Object ref = schemaName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string schema_name = 2; + * @return The bytes for schemaName. + */ + public com.google.protobuf.ByteString + getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schemaName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string schema_name = 2; + * @param value The schemaName to set. + * @return This builder for chaining. + */ + public Builder setSchemaName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schemaName_ = value; + onChanged(); + return this; + } + /** + * string schema_name = 2; + * @return This builder for chaining. + */ + public Builder clearSchemaName() { + + schemaName_ = getDefaultInstance().getSchemaName(); + onChanged(); + return this; + } + /** + * string schema_name = 2; + * @param value The bytes for schemaName to set. + * @return This builder for chaining. + */ + public Builder setSchemaNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schemaName_ = value; + onChanged(); + return this; + } + + private java.lang.Object tableName_ = ""; + /** + * string table_name = 3; + * @return The tableName. + */ + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string table_name = 3; + * @return The bytes for tableName. + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string table_name = 3; + * @param value The tableName to set. + * @return This builder for chaining. + */ + public Builder setTableName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tableName_ = value; + onChanged(); + return this; + } + /** + * string table_name = 3; + * @return This builder for chaining. + */ + public Builder clearTableName() { + + tableName_ = getDefaultInstance().getTableName(); + onChanged(); + return this; + } + /** + * string table_name = 3; + * @param value The bytes for tableName to set. + * @return This builder for chaining. + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tableName_ = value; + onChanged(); + return this; + } + + private java.lang.Object backedFilePath_ = ""; + /** + * string backed_file_path = 4; + * @return The backedFilePath. + */ + public java.lang.String getBackedFilePath() { + java.lang.Object ref = backedFilePath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backedFilePath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string backed_file_path = 4; + * @return The bytes for backedFilePath. + */ + public com.google.protobuf.ByteString + getBackedFilePathBytes() { + java.lang.Object ref = backedFilePath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + backedFilePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string backed_file_path = 4; + * @param value The backedFilePath to set. + * @return This builder for chaining. + */ + public Builder setBackedFilePath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + backedFilePath_ = value; + onChanged(); + return this; + } + /** + * string backed_file_path = 4; + * @return This builder for chaining. + */ + public Builder clearBackedFilePath() { + + backedFilePath_ = getDefaultInstance().getBackedFilePath(); + onChanged(); + return this; + } + /** + * string backed_file_path = 4; + * @param value The bytes for backedFilePath to set. + * @return This builder for chaining. + */ + public Builder setBackedFilePathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + backedFilePath_ = value; + onChanged(); + return this; + } + + private int startOffset_ ; + /** + * uint32 start_offset = 5; + * @return The startOffset. + */ + @java.lang.Override + public int getStartOffset() { + return startOffset_; + } + /** + * uint32 start_offset = 5; + * @param value The startOffset to set. + * @return This builder for chaining. + */ + public Builder setStartOffset(int value) { + + startOffset_ = value; + onChanged(); + return this; + } + /** + * uint32 start_offset = 5; + * @return This builder for chaining. + */ + public Builder clearStartOffset() { + + startOffset_ = 0; + onChanged(); + return this; + } + + private int endOffset_ ; + /** + * uint32 end_offset = 6; + * @return The endOffset. + */ + @java.lang.Override + public int getEndOffset() { + return endOffset_; + } + /** + * uint32 end_offset = 6; + * @param value The endOffset to set. + * @return This builder for chaining. + */ + public Builder setEndOffset(int value) { + + endOffset_ = value; + onChanged(); + return this; + } + /** + * uint32 end_offset = 6; + * @return This builder for chaining. + */ + public Builder clearEndOffset() { + + endOffset_ = 0; + onChanged(); + return this; + } + + private int checkSum_ ; + /** + * uint32 check_sum = 7; + * @return The checkSum. + */ + @java.lang.Override + public int getCheckSum() { + return checkSum_; + } + /** + * uint32 check_sum = 7; + * @param value The checkSum to set. + * @return This builder for chaining. + */ + public Builder setCheckSum(int value) { + + checkSum_ = value; + onChanged(); + return this; + } + /** + * uint32 check_sum = 7; + * @return This builder for chaining. + */ + public Builder clearCheckSum() { + + checkSum_ = 0; + 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.NotificationRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.NotificationRequest) + private static final greptime.v1.Notify.NotificationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.Notify.NotificationRequest(); + } + + public static greptime.v1.Notify.NotificationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.Notify.NotificationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NotificationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.NotificationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * bool success = 1; + * @return The success. + */ + boolean getSuccess(); + } + /** + * Protobuf type {@code greptime.v1.NotificationResponse} + */ + public static final class NotificationResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.NotificationResponse) + NotificationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NotificationResponse.newBuilder() to construct. + private NotificationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NotificationResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NotificationResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NotificationResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + success_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.Notify.internal_static_greptime_v1_NotificationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.Notify.internal_static_greptime_v1_NotificationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.Notify.NotificationResponse.class, greptime.v1.Notify.NotificationResponse.Builder.class); + } + + public static final int SUCCESS_FIELD_NUMBER = 1; + private boolean success_; + /** + * bool success = 1; + * @return The success. + */ + @java.lang.Override + public boolean getSuccess() { + return success_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (success_ != false) { + output.writeBool(1, success_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (success_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, success_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.Notify.NotificationResponse)) { + return super.equals(obj); + } + greptime.v1.Notify.NotificationResponse other = (greptime.v1.Notify.NotificationResponse) obj; + + if (getSuccess() + != other.getSuccess()) 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) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSuccess()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.Notify.NotificationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.Notify.NotificationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.Notify.NotificationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.Notify.NotificationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.Notify.NotificationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.Notify.NotificationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.Notify.NotificationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.Notify.NotificationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.Notify.NotificationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.Notify.NotificationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.Notify.NotificationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.Notify.NotificationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.Notify.NotificationResponse 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.NotificationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.NotificationResponse) + greptime.v1.Notify.NotificationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.Notify.internal_static_greptime_v1_NotificationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.Notify.internal_static_greptime_v1_NotificationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.Notify.NotificationResponse.class, greptime.v1.Notify.NotificationResponse.Builder.class); + } + + // Construct using greptime.v1.Notify.NotificationResponse.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(); + success_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.Notify.internal_static_greptime_v1_NotificationResponse_descriptor; + } + + @java.lang.Override + public greptime.v1.Notify.NotificationResponse getDefaultInstanceForType() { + return greptime.v1.Notify.NotificationResponse.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.Notify.NotificationResponse build() { + greptime.v1.Notify.NotificationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.Notify.NotificationResponse buildPartial() { + greptime.v1.Notify.NotificationResponse result = new greptime.v1.Notify.NotificationResponse(this); + result.success_ = success_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.Notify.NotificationResponse) { + return mergeFrom((greptime.v1.Notify.NotificationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.Notify.NotificationResponse other) { + if (other == greptime.v1.Notify.NotificationResponse.getDefaultInstance()) return this; + if (other.getSuccess() != false) { + setSuccess(other.getSuccess()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.Notify.NotificationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.Notify.NotificationResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean success_ ; + /** + * bool success = 1; + * @return The success. + */ + @java.lang.Override + public boolean getSuccess() { + return success_; + } + /** + * bool success = 1; + * @param value The success to set. + * @return This builder for chaining. + */ + public Builder setSuccess(boolean value) { + + success_ = value; + onChanged(); + return this; + } + /** + * bool success = 1; + * @return This builder for chaining. + */ + public Builder clearSuccess() { + + success_ = false; + 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.NotificationResponse) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.NotificationResponse) + private static final greptime.v1.Notify.NotificationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.Notify.NotificationResponse(); + } + + public static greptime.v1.Notify.NotificationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.Notify.NotificationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_NotificationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_NotificationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_NotificationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_NotificationResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\030greptime/v1/notify.proto\022\013greptime.v1\"" + + "\253\001\n\023NotificationRequest\022\024\n\014catalog_name\030" + + "\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name" + + "\030\003 \001(\t\022\030\n\020backed_file_path\030\004 \001(\t\022\024\n\014star" + + "t_offset\030\005 \001(\r\022\022\n\nend_offset\030\006 \001(\r\022\021\n\tch" + + "eck_sum\030\007 \001(\r\"\'\n\024NotificationResponse\022\017\n" + + "\007success\030\001 \001(\0102V\n\003Shm\022O\n\006notify\022 .grepti" + + "me.v1.NotificationRequest\032!.greptime.v1." + + "NotificationResponse\"\000B7Z5github.com/Gre" + + "ptimeTeam/greptime-proto/go/greptime/v1b" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_greptime_v1_NotificationRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_greptime_v1_NotificationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_NotificationRequest_descriptor, + new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "BackedFilePath", "StartOffset", "EndOffset", "CheckSum", }); + internal_static_greptime_v1_NotificationResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_greptime_v1_NotificationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_NotificationResponse_descriptor, + new java.lang.String[] { "Success", }); + } + + // @@protoc_insertion_point(outer_class_scope) +}