feat: region procedure service (#137)
* feat: adds region service and procedure service * refactor: adds procedure service for ddl and region task * feat: adds QueryProcedureRequest * feat: improve ProcedureStateResponse and MigrateRegionRequest * fix: forgot headers * fix: remove cluster_id in MigrateRegionRequest * refactor: rename Procedure to ProcedureService * chore: rename peer * fix: forgot java Procedure
This commit is contained in:
@@ -39,9 +39,11 @@ fn main() {
|
||||
"proto/greptime/v1/meta/heartbeat.proto",
|
||||
"proto/greptime/v1/meta/route.proto",
|
||||
"proto/greptime/v1/meta/ddl.proto",
|
||||
"proto/greptime/v1/meta/region.proto",
|
||||
"proto/greptime/v1/meta/store.proto",
|
||||
"proto/greptime/v1/meta/lock.proto",
|
||||
"proto/greptime/v1/meta/cluster.proto",
|
||||
"proto/greptime/v1/meta/procedure.proto",
|
||||
"proto/greptime/v1/region/server.proto",
|
||||
"proto/greptime/v1/index/inverted_index.proto",
|
||||
"proto/prometheus/remote/remote.proto",
|
||||
|
||||
@@ -150,10 +150,23 @@ struct KeyValueDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyValueDefaultTypeInternal _KeyValue_default_instance_;
|
||||
PROTOBUF_CONSTEXPR ProcedureId::ProcedureId(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct ProcedureIdDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR ProcedureIdDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~ProcedureIdDefaultTypeInternal() {}
|
||||
union {
|
||||
ProcedureId _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcedureIdDefaultTypeInternal _ProcedureId_default_instance_;
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[9];
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[10];
|
||||
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto[1];
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto = nullptr;
|
||||
|
||||
@@ -236,6 +249,13 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets[] PROT
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::KeyValue, _impl_.key_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::KeyValue, _impl_.value_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureId, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureId, _impl_.key_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 8, -1, sizeof(::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse)},
|
||||
@@ -247,6 +267,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 53, -1, -1, sizeof(::greptime::v1::meta::TableName)},
|
||||
{ 62, -1, -1, sizeof(::greptime::v1::meta::TimeInterval)},
|
||||
{ 70, -1, -1, sizeof(::greptime::v1::meta::KeyValue)},
|
||||
{ 78, -1, -1, sizeof(::greptime::v1::meta::ProcedureId)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -259,6 +280,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::meta::_TableName_default_instance_._instance,
|
||||
&::greptime::v1::meta::_TimeInterval_default_instance_._instance,
|
||||
&::greptime::v1::meta::_KeyValue_default_instance_._instance,
|
||||
&::greptime::v1::meta::_ProcedureId_default_instance_._instance,
|
||||
};
|
||||
|
||||
const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||
@@ -279,16 +301,16 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto[] PRO
|
||||
"\022\022\n\ntable_name\030\003 \001(\t\"L\n\014TimeInterval\022\036\n\026"
|
||||
"start_timestamp_millis\030\001 \001(\003\022\034\n\024end_time"
|
||||
"stamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003key\030\001 "
|
||||
"\001(\014\022\r\n\005value\030\002 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000"
|
||||
"\022\014\n\010FRONTEND\020\001B<Z:github.com/GreptimeTea"
|
||||
"m/greptime-proto/go/greptime/v1/metab\006pr"
|
||||
"oto3"
|
||||
"\001(\014\022\r\n\005value\030\002 \001(\014\"\032\n\013ProcedureId\022\013\n\003key"
|
||||
"\030\001 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000\022\014\n\010FRONTEND"
|
||||
"\020\001B<Z:github.com/GreptimeTeam/greptime-p"
|
||||
"roto/go/greptime/v1/metab\006proto3"
|
||||
;
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto = {
|
||||
false, false, 804, descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
||||
false, false, 832, descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
||||
"greptime/v1/meta/common.proto",
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, nullptr, 0, 9,
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, nullptr, 0, 10,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
||||
file_level_service_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
||||
@@ -2308,6 +2330,204 @@ void KeyValue::InternalSwap(KeyValue* other) {
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[8]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class ProcedureId::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
ProcedureId::ProcedureId(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
SharedCtor(arena, is_message_owned);
|
||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.ProcedureId)
|
||||
}
|
||||
ProcedureId::ProcedureId(const ProcedureId& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
ProcedureId* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.key_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
_impl_.key_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.key_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (!from._internal_key().empty()) {
|
||||
_this->_impl_.key_.Set(from._internal_key(),
|
||||
_this->GetArenaForAllocation());
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.ProcedureId)
|
||||
}
|
||||
|
||||
inline void ProcedureId::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.key_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
_impl_.key_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.key_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
}
|
||||
|
||||
ProcedureId::~ProcedureId() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.ProcedureId)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void ProcedureId::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
_impl_.key_.Destroy();
|
||||
}
|
||||
|
||||
void ProcedureId::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void ProcedureId::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.ProcedureId)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.key_.ClearToEmpty();
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* ProcedureId::_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) {
|
||||
// bytes key = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
auto str = _internal_mutable_key();
|
||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
handle_unusual:
|
||||
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||
CHK_(ptr);
|
||||
ctx->SetLastTag(tag);
|
||||
goto message_done;
|
||||
}
|
||||
ptr = UnknownFieldParse(
|
||||
tag,
|
||||
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||
ptr, ctx);
|
||||
CHK_(ptr != nullptr);
|
||||
} // while
|
||||
message_done:
|
||||
return ptr;
|
||||
failure:
|
||||
ptr = nullptr;
|
||||
goto message_done;
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
uint8_t* ProcedureId::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.ProcedureId)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// bytes key = 1;
|
||||
if (!this->_internal_key().empty()) {
|
||||
target = stream->WriteBytesMaybeAliased(
|
||||
1, this->_internal_key(), target);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.ProcedureId)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t ProcedureId::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.ProcedureId)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// bytes key = 1;
|
||||
if (!this->_internal_key().empty()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
||||
this->_internal_key());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcedureId::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
ProcedureId::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcedureId::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void ProcedureId::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<ProcedureId*>(&to_msg);
|
||||
auto& from = static_cast<const ProcedureId&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.ProcedureId)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (!from._internal_key().empty()) {
|
||||
_this->_internal_set_key(from._internal_key());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void ProcedureId::CopyFrom(const ProcedureId& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.ProcedureId)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool ProcedureId::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void ProcedureId::InternalSwap(ProcedureId* 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_.key_, lhs_arena,
|
||||
&other->_impl_.key_, rhs_arena
|
||||
);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata ProcedureId::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[9]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
@@ -2349,6 +2569,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::KeyValue*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::KeyValue >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::KeyValue >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::ProcedureId*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::ProcedureId >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::ProcedureId >(arena);
|
||||
}
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
@@ -60,6 +60,9 @@ extern KeyValueDefaultTypeInternal _KeyValue_default_instance_;
|
||||
class Peer;
|
||||
struct PeerDefaultTypeInternal;
|
||||
extern PeerDefaultTypeInternal _Peer_default_instance_;
|
||||
class ProcedureId;
|
||||
struct ProcedureIdDefaultTypeInternal;
|
||||
extern ProcedureIdDefaultTypeInternal _ProcedureId_default_instance_;
|
||||
class RequestHeader;
|
||||
struct RequestHeaderDefaultTypeInternal;
|
||||
extern RequestHeaderDefaultTypeInternal _RequestHeader_default_instance_;
|
||||
@@ -85,6 +88,7 @@ PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::greptime::v1::meta::Error* Arena::CreateMaybeMessage<::greptime::v1::meta::Error>(Arena*);
|
||||
template<> ::greptime::v1::meta::KeyValue* Arena::CreateMaybeMessage<::greptime::v1::meta::KeyValue>(Arena*);
|
||||
template<> ::greptime::v1::meta::Peer* Arena::CreateMaybeMessage<::greptime::v1::meta::Peer>(Arena*);
|
||||
template<> ::greptime::v1::meta::ProcedureId* Arena::CreateMaybeMessage<::greptime::v1::meta::ProcedureId>(Arena*);
|
||||
template<> ::greptime::v1::meta::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(Arena*);
|
||||
template<> ::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse>(Arena*);
|
||||
template<> ::greptime::v1::meta::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(Arena*);
|
||||
@@ -1524,6 +1528,159 @@ class KeyValue final :
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class ProcedureId final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.ProcedureId) */ {
|
||||
public:
|
||||
inline ProcedureId() : ProcedureId(nullptr) {}
|
||||
~ProcedureId() override;
|
||||
explicit PROTOBUF_CONSTEXPR ProcedureId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
ProcedureId(const ProcedureId& from);
|
||||
ProcedureId(ProcedureId&& from) noexcept
|
||||
: ProcedureId() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline ProcedureId& operator=(const ProcedureId& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline ProcedureId& operator=(ProcedureId&& 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 ProcedureId& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const ProcedureId* internal_default_instance() {
|
||||
return reinterpret_cast<const ProcedureId*>(
|
||||
&_ProcedureId_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
9;
|
||||
|
||||
friend void swap(ProcedureId& a, ProcedureId& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(ProcedureId* 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(ProcedureId* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
ProcedureId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<ProcedureId>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const ProcedureId& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const ProcedureId& from) {
|
||||
ProcedureId::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(ProcedureId* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.meta.ProcedureId";
|
||||
}
|
||||
protected:
|
||||
explicit ProcedureId(::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 {
|
||||
kKeyFieldNumber = 1,
|
||||
};
|
||||
// bytes key = 1;
|
||||
void clear_key();
|
||||
const std::string& key() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_key(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_key();
|
||||
PROTOBUF_NODISCARD std::string* release_key();
|
||||
void set_allocated_key(std::string* key);
|
||||
private:
|
||||
const std::string& _internal_key() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value);
|
||||
std::string* _internal_mutable_key();
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureId)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
@@ -2254,6 +2411,60 @@ inline void KeyValue::set_allocated_value(std::string* value) {
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.KeyValue.value)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// ProcedureId
|
||||
|
||||
// bytes key = 1;
|
||||
inline void ProcedureId::clear_key() {
|
||||
_impl_.key_.ClearToEmpty();
|
||||
}
|
||||
inline const std::string& ProcedureId::key() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureId.key)
|
||||
return _internal_key();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void ProcedureId::set_key(ArgT0&& arg0, ArgT... args) {
|
||||
|
||||
_impl_.key_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureId.key)
|
||||
}
|
||||
inline std::string* ProcedureId::mutable_key() {
|
||||
std::string* _s = _internal_mutable_key();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureId.key)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& ProcedureId::_internal_key() const {
|
||||
return _impl_.key_.Get();
|
||||
}
|
||||
inline void ProcedureId::_internal_set_key(const std::string& value) {
|
||||
|
||||
_impl_.key_.Set(value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* ProcedureId::_internal_mutable_key() {
|
||||
|
||||
return _impl_.key_.Mutable(GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* ProcedureId::release_key() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureId.key)
|
||||
return _impl_.key_.Release();
|
||||
}
|
||||
inline void ProcedureId::set_allocated_key(std::string* key) {
|
||||
if (key != nullptr) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.key_.SetAllocated(key, GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (_impl_.key_.IsDefault()) {
|
||||
_impl_.key_.Set("", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureId.key)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
@@ -2273,6 +2484,8 @@ inline void KeyValue::set_allocated_value(std::string* value) {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
@@ -23,67 +23,6 @@ namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
|
||||
static const char* DdlTask_method_names[] = {
|
||||
"/greptime.v1.meta.DdlTask/SubmitDdlTask",
|
||||
};
|
||||
|
||||
std::unique_ptr< DdlTask::Stub> DdlTask::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
|
||||
(void)options;
|
||||
std::unique_ptr< DdlTask::Stub> stub(new DdlTask::Stub(channel, options));
|
||||
return stub;
|
||||
}
|
||||
|
||||
DdlTask::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
|
||||
: channel_(channel), rpcmethod_SubmitDdlTask_(DdlTask_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
{}
|
||||
|
||||
::grpc::Status DdlTask::Stub::SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::greptime::v1::meta::SubmitDdlTaskResponse* response) {
|
||||
return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SubmitDdlTask_, context, request, response);
|
||||
}
|
||||
|
||||
void DdlTask::Stub::async::SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response, std::function<void(::grpc::Status)> f) {
|
||||
::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SubmitDdlTask_, context, request, response, std::move(f));
|
||||
}
|
||||
|
||||
void DdlTask::Stub::async::SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
||||
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SubmitDdlTask_, context, request, response, reactor);
|
||||
}
|
||||
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>* DdlTask::Stub::PrepareAsyncSubmitDdlTaskRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::SubmitDdlTaskResponse, ::greptime::v1::meta::SubmitDdlTaskRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SubmitDdlTask_, context, request);
|
||||
}
|
||||
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>* DdlTask::Stub::AsyncSubmitDdlTaskRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
auto* result =
|
||||
this->PrepareAsyncSubmitDdlTaskRaw(context, request, cq);
|
||||
result->StartCall();
|
||||
return result;
|
||||
}
|
||||
|
||||
DdlTask::Service::Service() {
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
DdlTask_method_names[0],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< DdlTask::Service, ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](DdlTask::Service* service,
|
||||
::grpc::ServerContext* ctx,
|
||||
const ::greptime::v1::meta::SubmitDdlTaskRequest* req,
|
||||
::greptime::v1::meta::SubmitDdlTaskResponse* resp) {
|
||||
return service->SubmitDdlTask(ctx, req, resp);
|
||||
}, this)));
|
||||
}
|
||||
|
||||
DdlTask::Service::~Service() {
|
||||
}
|
||||
|
||||
::grpc::Status DdlTask::Service::SubmitDdlTask(::grpc::ServerContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response) {
|
||||
(void) context;
|
||||
(void) request;
|
||||
(void) response;
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
|
||||
|
||||
} // namespace greptime
|
||||
} // namespace v1
|
||||
} // namespace meta
|
||||
|
||||
@@ -44,216 +44,6 @@ namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
|
||||
class DdlTask final {
|
||||
public:
|
||||
static constexpr char const* service_full_name() {
|
||||
return "greptime.v1.meta.DdlTask";
|
||||
}
|
||||
class StubInterface {
|
||||
public:
|
||||
virtual ~StubInterface() {}
|
||||
// Submits a DDL task to meta.
|
||||
virtual ::grpc::Status SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::greptime::v1::meta::SubmitDdlTaskResponse* response) = 0;
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::SubmitDdlTaskResponse>> AsyncSubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::SubmitDdlTaskResponse>>(AsyncSubmitDdlTaskRaw(context, request, cq));
|
||||
}
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::SubmitDdlTaskResponse>> PrepareAsyncSubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::SubmitDdlTaskResponse>>(PrepareAsyncSubmitDdlTaskRaw(context, request, cq));
|
||||
}
|
||||
class async_interface {
|
||||
public:
|
||||
virtual ~async_interface() {}
|
||||
// Submits a DDL task to meta.
|
||||
virtual void SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response, std::function<void(::grpc::Status)>) = 0;
|
||||
virtual void SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* 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::meta::SubmitDdlTaskResponse>* AsyncSubmitDdlTaskRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) = 0;
|
||||
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::SubmitDdlTaskResponse>* PrepareAsyncSubmitDdlTaskRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& 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 SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::greptime::v1::meta::SubmitDdlTaskResponse* response) override;
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>> AsyncSubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>>(AsyncSubmitDdlTaskRaw(context, request, cq));
|
||||
}
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>> PrepareAsyncSubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>>(PrepareAsyncSubmitDdlTaskRaw(context, request, cq));
|
||||
}
|
||||
class async final :
|
||||
public StubInterface::async_interface {
|
||||
public:
|
||||
void SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response, std::function<void(::grpc::Status)>) override;
|
||||
void SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* 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::meta::SubmitDdlTaskResponse>* AsyncSubmitDdlTaskRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) override;
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>* PrepareAsyncSubmitDdlTaskRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) override;
|
||||
const ::grpc::internal::RpcMethod rpcmethod_SubmitDdlTask_;
|
||||
};
|
||||
static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
|
||||
|
||||
class Service : public ::grpc::Service {
|
||||
public:
|
||||
Service();
|
||||
virtual ~Service();
|
||||
// Submits a DDL task to meta.
|
||||
virtual ::grpc::Status SubmitDdlTask(::grpc::ServerContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response);
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithAsyncMethod_SubmitDdlTask : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithAsyncMethod_SubmitDdlTask() {
|
||||
::grpc::Service::MarkMethodAsync(0);
|
||||
}
|
||||
~WithAsyncMethod_SubmitDdlTask() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status SubmitDdlTask(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
void RequestSubmitDdlTask(::grpc::ServerContext* context, ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::SubmitDdlTaskResponse>* 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_SubmitDdlTask<Service > AsyncService;
|
||||
template <class BaseClass>
|
||||
class WithCallbackMethod_SubmitDdlTask : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithCallbackMethod_SubmitDdlTask() {
|
||||
::grpc::Service::MarkMethodCallback(0,
|
||||
new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse>(
|
||||
[this](
|
||||
::grpc::CallbackServerContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response) { return this->SubmitDdlTask(context, request, response); }));}
|
||||
void SetMessageAllocatorFor_SubmitDdlTask(
|
||||
::grpc::MessageAllocator< ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse>* allocator) {
|
||||
::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
|
||||
static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse>*>(handler)
|
||||
->SetMessageAllocator(allocator);
|
||||
}
|
||||
~WithCallbackMethod_SubmitDdlTask() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status SubmitDdlTask(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
virtual ::grpc::ServerUnaryReactor* SubmitDdlTask(
|
||||
::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) { return nullptr; }
|
||||
};
|
||||
typedef WithCallbackMethod_SubmitDdlTask<Service > CallbackService;
|
||||
typedef CallbackService ExperimentalCallbackService;
|
||||
template <class BaseClass>
|
||||
class WithGenericMethod_SubmitDdlTask : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithGenericMethod_SubmitDdlTask() {
|
||||
::grpc::Service::MarkMethodGeneric(0);
|
||||
}
|
||||
~WithGenericMethod_SubmitDdlTask() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status SubmitDdlTask(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithRawMethod_SubmitDdlTask : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithRawMethod_SubmitDdlTask() {
|
||||
::grpc::Service::MarkMethodRaw(0);
|
||||
}
|
||||
~WithRawMethod_SubmitDdlTask() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status SubmitDdlTask(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
void RequestSubmitDdlTask(::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 BaseClass>
|
||||
class WithRawCallbackMethod_SubmitDdlTask : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithRawCallbackMethod_SubmitDdlTask() {
|
||||
::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->SubmitDdlTask(context, request, response); }));
|
||||
}
|
||||
~WithRawCallbackMethod_SubmitDdlTask() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status SubmitDdlTask(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
virtual ::grpc::ServerUnaryReactor* SubmitDdlTask(
|
||||
::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithStreamedUnaryMethod_SubmitDdlTask : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithStreamedUnaryMethod_SubmitDdlTask() {
|
||||
::grpc::Service::MarkMethodStreamed(0,
|
||||
new ::grpc::internal::StreamedUnaryHandler<
|
||||
::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse>(
|
||||
[this](::grpc::ServerContext* context,
|
||||
::grpc::ServerUnaryStreamer<
|
||||
::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse>* streamer) {
|
||||
return this->StreamedSubmitDdlTask(context,
|
||||
streamer);
|
||||
}));
|
||||
}
|
||||
~WithStreamedUnaryMethod_SubmitDdlTask() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable regular version of this method
|
||||
::grpc::Status SubmitDdlTask(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
// replace default version of method with streamed unary
|
||||
virtual ::grpc::Status StreamedSubmitDdlTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::SubmitDdlTaskRequest,::greptime::v1::meta::SubmitDdlTaskResponse>* server_unary_streamer) = 0;
|
||||
};
|
||||
typedef WithStreamedUnaryMethod_SubmitDdlTask<Service > StreamedUnaryService;
|
||||
typedef Service SplitStreamedService;
|
||||
typedef WithStreamedUnaryMethod_SubmitDdlTask<Service > StreamedService;
|
||||
};
|
||||
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
|
||||
+198
-201
@@ -116,37 +116,37 @@ struct TruncateTableTaskDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TruncateTableTaskDefaultTypeInternal _TruncateTableTask_default_instance_;
|
||||
PROTOBUF_CONSTEXPR SubmitDdlTaskRequest::SubmitDdlTaskRequest(
|
||||
PROTOBUF_CONSTEXPR DdlTaskRequest::DdlTaskRequest(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.header_)*/nullptr
|
||||
, /*decltype(_impl_.task_)*/{}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
, /*decltype(_impl_._oneof_case_)*/{}} {}
|
||||
struct SubmitDdlTaskRequestDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR SubmitDdlTaskRequestDefaultTypeInternal()
|
||||
struct DdlTaskRequestDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR DdlTaskRequestDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~SubmitDdlTaskRequestDefaultTypeInternal() {}
|
||||
~DdlTaskRequestDefaultTypeInternal() {}
|
||||
union {
|
||||
SubmitDdlTaskRequest _instance;
|
||||
DdlTaskRequest _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitDdlTaskRequestDefaultTypeInternal _SubmitDdlTaskRequest_default_instance_;
|
||||
PROTOBUF_CONSTEXPR SubmitDdlTaskResponse::SubmitDdlTaskResponse(
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DdlTaskRequestDefaultTypeInternal _DdlTaskRequest_default_instance_;
|
||||
PROTOBUF_CONSTEXPR DdlTaskResponse::DdlTaskResponse(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.table_ids_)*/{}
|
||||
, /*decltype(_impl_.key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.header_)*/nullptr
|
||||
, /*decltype(_impl_.pid_)*/nullptr
|
||||
, /*decltype(_impl_.table_id_)*/nullptr
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct SubmitDdlTaskResponseDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR SubmitDdlTaskResponseDefaultTypeInternal()
|
||||
struct DdlTaskResponseDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR DdlTaskResponseDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~SubmitDdlTaskResponseDefaultTypeInternal() {}
|
||||
~DdlTaskResponseDefaultTypeInternal() {}
|
||||
union {
|
||||
SubmitDdlTaskResponse _instance;
|
||||
DdlTaskResponse _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitDdlTaskResponseDefaultTypeInternal _SubmitDdlTaskResponse_default_instance_;
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DdlTaskResponseDefaultTypeInternal _DdlTaskResponse_default_instance_;
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
@@ -207,12 +207,12 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TruncateTableTask, _impl_.truncate_table_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _internal_metadata_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _impl_._oneof_case_[0]),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_._oneof_case_[0]),
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _impl_.header_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_.header_),
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
@@ -220,17 +220,17 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _impl_.task_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_.task_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskResponse, _internal_metadata_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskResponse, _impl_.header_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskResponse, _impl_.key_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskResponse, _impl_.table_id_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskResponse, _impl_.table_ids_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _impl_.header_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _impl_.pid_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _impl_.table_id_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _impl_.table_ids_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, -1, sizeof(::greptime::v1::meta::CreateTableTask)},
|
||||
@@ -240,8 +240,8 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 30, -1, -1, sizeof(::greptime::v1::meta::AlterTableTask)},
|
||||
{ 37, -1, -1, sizeof(::greptime::v1::meta::AlterTableTasks)},
|
||||
{ 44, -1, -1, sizeof(::greptime::v1::meta::TruncateTableTask)},
|
||||
{ 51, -1, -1, sizeof(::greptime::v1::meta::SubmitDdlTaskRequest)},
|
||||
{ 66, -1, -1, sizeof(::greptime::v1::meta::SubmitDdlTaskResponse)},
|
||||
{ 51, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)},
|
||||
{ 66, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -252,8 +252,8 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::meta::_AlterTableTask_default_instance_._instance,
|
||||
&::greptime::v1::meta::_AlterTableTasks_default_instance_._instance,
|
||||
&::greptime::v1::meta::_TruncateTableTask_default_instance_._instance,
|
||||
&::greptime::v1::meta::_SubmitDdlTaskRequest_default_instance_._instance,
|
||||
&::greptime::v1::meta::_SubmitDdlTaskResponse_default_instance_._instance,
|
||||
&::greptime::v1::meta::_DdlTaskRequest_default_instance_._instance,
|
||||
&::greptime::v1::meta::_DdlTaskResponse_default_instance_._instance,
|
||||
};
|
||||
|
||||
const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||
@@ -274,30 +274,27 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto[] PROTOB
|
||||
"sks\030\001 \003(\0132 .greptime.v1.meta.AlterTableT"
|
||||
"ask\"K\n\021TruncateTableTask\0226\n\016truncate_tab"
|
||||
"le\030\001 \001(\0132\036.greptime.v1.TruncateTableExpr"
|
||||
"\"\215\004\n\024SubmitDdlTaskRequest\022/\n\006header\030\001 \001("
|
||||
"\0132\037.greptime.v1.meta.RequestHeader\022>\n\021cr"
|
||||
"eate_table_task\030\002 \001(\0132!.greptime.v1.meta"
|
||||
".CreateTableTaskH\000\022:\n\017drop_table_task\030\003 "
|
||||
"\001(\0132\037.greptime.v1.meta.DropTableTaskH\000\022<"
|
||||
"\n\020alter_table_task\030\004 \001(\0132 .greptime.v1.m"
|
||||
"eta.AlterTableTaskH\000\022B\n\023truncate_table_t"
|
||||
"ask\030\005 \001(\0132#.greptime.v1.meta.TruncateTab"
|
||||
"leTaskH\000\022@\n\022create_table_tasks\030\006 \001(\0132\".g"
|
||||
"reptime.v1.meta.CreateTableTasksH\000\022<\n\020dr"
|
||||
"op_table_tasks\030\007 \001(\0132 .greptime.v1.meta."
|
||||
"DropTableTasksH\000\022>\n\021alter_table_tasks\030\010 "
|
||||
"\001(\0132!.greptime.v1.meta.AlterTableTasksH\000"
|
||||
"B\006\n\004task\"\261\001\n\025SubmitDdlTaskResponse\0220\n\006he"
|
||||
"ader\030\001 \001(\0132 .greptime.v1.meta.ResponseHe"
|
||||
"ader\022\013\n\003key\030\002 \001(\014\022+\n\010table_id\030\004 \001(\0132\031.gr"
|
||||
"eptime.v1.meta.TableId\022,\n\ttable_ids\030\005 \003("
|
||||
"\0132\031.greptime.v1.meta.TableId*#\n\013DdlTaskT"
|
||||
"ype\022\n\n\006Create\020\000\022\010\n\004Drop\020\0012k\n\007DdlTask\022`\n\r"
|
||||
"SubmitDdlTask\022&.greptime.v1.meta.SubmitD"
|
||||
"dlTaskRequest\032\'.greptime.v1.meta.SubmitD"
|
||||
"dlTaskResponseB<Z:github.com/GreptimeTea"
|
||||
"m/greptime-proto/go/greptime/v1/metab\006pr"
|
||||
"oto3"
|
||||
"\"\207\004\n\016DdlTaskRequest\022/\n\006header\030\001 \001(\0132\037.gr"
|
||||
"eptime.v1.meta.RequestHeader\022>\n\021create_t"
|
||||
"able_task\030\002 \001(\0132!.greptime.v1.meta.Creat"
|
||||
"eTableTaskH\000\022:\n\017drop_table_task\030\003 \001(\0132\037."
|
||||
"greptime.v1.meta.DropTableTaskH\000\022<\n\020alte"
|
||||
"r_table_task\030\004 \001(\0132 .greptime.v1.meta.Al"
|
||||
"terTableTaskH\000\022B\n\023truncate_table_task\030\005 "
|
||||
"\001(\0132#.greptime.v1.meta.TruncateTableTask"
|
||||
"H\000\022@\n\022create_table_tasks\030\006 \001(\0132\".greptim"
|
||||
"e.v1.meta.CreateTableTasksH\000\022<\n\020drop_tab"
|
||||
"le_tasks\030\007 \001(\0132 .greptime.v1.meta.DropTa"
|
||||
"bleTasksH\000\022>\n\021alter_table_tasks\030\010 \001(\0132!."
|
||||
"greptime.v1.meta.AlterTableTasksH\000B\006\n\004ta"
|
||||
"sk\"\312\001\n\017DdlTaskResponse\0220\n\006header\030\001 \001(\0132 "
|
||||
".greptime.v1.meta.ResponseHeader\022*\n\003pid\030"
|
||||
"\002 \001(\0132\035.greptime.v1.meta.ProcedureId\022+\n\010"
|
||||
"table_id\030\004 \001(\0132\031.greptime.v1.meta.TableI"
|
||||
"d\022,\n\ttable_ids\030\005 \003(\0132\031.greptime.v1.meta."
|
||||
"TableId*#\n\013DdlTaskType\022\n\n\006Create\020\000\022\010\n\004Dr"
|
||||
"op\020\001B<Z:github.com/GreptimeTeam/greptime"
|
||||
"-proto/go/greptime/v1/metab\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps[3] = {
|
||||
&::descriptor_table_greptime_2fv1_2fddl_2eproto,
|
||||
@@ -306,7 +303,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmet
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto = {
|
||||
false, false, 1604, descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto,
|
||||
false, false, 1514, descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto,
|
||||
"greptime/v1/meta/ddl.proto",
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps, 3, 9,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets,
|
||||
@@ -1774,57 +1771,57 @@ void TruncateTableTask::InternalSwap(TruncateTableTask* other) {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class SubmitDdlTaskRequest::_Internal {
|
||||
class DdlTaskRequest::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::meta::RequestHeader& header(const SubmitDdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::CreateTableTask& create_table_task(const SubmitDdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::DropTableTask& drop_table_task(const SubmitDdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::AlterTableTask& alter_table_task(const SubmitDdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::TruncateTableTask& truncate_table_task(const SubmitDdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::CreateTableTasks& create_table_tasks(const SubmitDdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::DropTableTasks& drop_table_tasks(const SubmitDdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::AlterTableTasks& alter_table_tasks(const SubmitDdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::RequestHeader& header(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::CreateTableTask& create_table_task(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::DropTableTask& drop_table_task(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::AlterTableTask& alter_table_task(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::TruncateTableTask& truncate_table_task(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::CreateTableTasks& create_table_tasks(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::DropTableTasks& drop_table_tasks(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::AlterTableTasks& alter_table_tasks(const DdlTaskRequest* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::meta::RequestHeader&
|
||||
SubmitDdlTaskRequest::_Internal::header(const SubmitDdlTaskRequest* msg) {
|
||||
DdlTaskRequest::_Internal::header(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.header_;
|
||||
}
|
||||
const ::greptime::v1::meta::CreateTableTask&
|
||||
SubmitDdlTaskRequest::_Internal::create_table_task(const SubmitDdlTaskRequest* msg) {
|
||||
DdlTaskRequest::_Internal::create_table_task(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.task_.create_table_task_;
|
||||
}
|
||||
const ::greptime::v1::meta::DropTableTask&
|
||||
SubmitDdlTaskRequest::_Internal::drop_table_task(const SubmitDdlTaskRequest* msg) {
|
||||
DdlTaskRequest::_Internal::drop_table_task(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.task_.drop_table_task_;
|
||||
}
|
||||
const ::greptime::v1::meta::AlterTableTask&
|
||||
SubmitDdlTaskRequest::_Internal::alter_table_task(const SubmitDdlTaskRequest* msg) {
|
||||
DdlTaskRequest::_Internal::alter_table_task(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.task_.alter_table_task_;
|
||||
}
|
||||
const ::greptime::v1::meta::TruncateTableTask&
|
||||
SubmitDdlTaskRequest::_Internal::truncate_table_task(const SubmitDdlTaskRequest* msg) {
|
||||
DdlTaskRequest::_Internal::truncate_table_task(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.task_.truncate_table_task_;
|
||||
}
|
||||
const ::greptime::v1::meta::CreateTableTasks&
|
||||
SubmitDdlTaskRequest::_Internal::create_table_tasks(const SubmitDdlTaskRequest* msg) {
|
||||
DdlTaskRequest::_Internal::create_table_tasks(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.task_.create_table_tasks_;
|
||||
}
|
||||
const ::greptime::v1::meta::DropTableTasks&
|
||||
SubmitDdlTaskRequest::_Internal::drop_table_tasks(const SubmitDdlTaskRequest* msg) {
|
||||
DdlTaskRequest::_Internal::drop_table_tasks(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.task_.drop_table_tasks_;
|
||||
}
|
||||
const ::greptime::v1::meta::AlterTableTasks&
|
||||
SubmitDdlTaskRequest::_Internal::alter_table_tasks(const SubmitDdlTaskRequest* msg) {
|
||||
DdlTaskRequest::_Internal::alter_table_tasks(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.task_.alter_table_tasks_;
|
||||
}
|
||||
void SubmitDdlTaskRequest::clear_header() {
|
||||
void DdlTaskRequest::clear_header() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
}
|
||||
void SubmitDdlTaskRequest::set_allocated_create_table_task(::greptime::v1::meta::CreateTableTask* create_table_task) {
|
||||
void DdlTaskRequest::set_allocated_create_table_task(::greptime::v1::meta::CreateTableTask* create_table_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_task();
|
||||
if (create_table_task) {
|
||||
@@ -1837,9 +1834,9 @@ void SubmitDdlTaskRequest::set_allocated_create_table_task(::greptime::v1::meta:
|
||||
set_has_create_table_task();
|
||||
_impl_.task_.create_table_task_ = create_table_task;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.create_table_task)
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.create_table_task)
|
||||
}
|
||||
void SubmitDdlTaskRequest::set_allocated_drop_table_task(::greptime::v1::meta::DropTableTask* drop_table_task) {
|
||||
void DdlTaskRequest::set_allocated_drop_table_task(::greptime::v1::meta::DropTableTask* drop_table_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_task();
|
||||
if (drop_table_task) {
|
||||
@@ -1852,9 +1849,9 @@ void SubmitDdlTaskRequest::set_allocated_drop_table_task(::greptime::v1::meta::D
|
||||
set_has_drop_table_task();
|
||||
_impl_.task_.drop_table_task_ = drop_table_task;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_task)
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_table_task)
|
||||
}
|
||||
void SubmitDdlTaskRequest::set_allocated_alter_table_task(::greptime::v1::meta::AlterTableTask* alter_table_task) {
|
||||
void DdlTaskRequest::set_allocated_alter_table_task(::greptime::v1::meta::AlterTableTask* alter_table_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_task();
|
||||
if (alter_table_task) {
|
||||
@@ -1867,9 +1864,9 @@ void SubmitDdlTaskRequest::set_allocated_alter_table_task(::greptime::v1::meta::
|
||||
set_has_alter_table_task();
|
||||
_impl_.task_.alter_table_task_ = alter_table_task;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task)
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.alter_table_task)
|
||||
}
|
||||
void SubmitDdlTaskRequest::set_allocated_truncate_table_task(::greptime::v1::meta::TruncateTableTask* truncate_table_task) {
|
||||
void DdlTaskRequest::set_allocated_truncate_table_task(::greptime::v1::meta::TruncateTableTask* truncate_table_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_task();
|
||||
if (truncate_table_task) {
|
||||
@@ -1882,9 +1879,9 @@ void SubmitDdlTaskRequest::set_allocated_truncate_table_task(::greptime::v1::met
|
||||
set_has_truncate_table_task();
|
||||
_impl_.task_.truncate_table_task_ = truncate_table_task;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task)
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.truncate_table_task)
|
||||
}
|
||||
void SubmitDdlTaskRequest::set_allocated_create_table_tasks(::greptime::v1::meta::CreateTableTasks* create_table_tasks) {
|
||||
void DdlTaskRequest::set_allocated_create_table_tasks(::greptime::v1::meta::CreateTableTasks* create_table_tasks) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_task();
|
||||
if (create_table_tasks) {
|
||||
@@ -1897,9 +1894,9 @@ void SubmitDdlTaskRequest::set_allocated_create_table_tasks(::greptime::v1::meta
|
||||
set_has_create_table_tasks();
|
||||
_impl_.task_.create_table_tasks_ = create_table_tasks;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.create_table_tasks)
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.create_table_tasks)
|
||||
}
|
||||
void SubmitDdlTaskRequest::set_allocated_drop_table_tasks(::greptime::v1::meta::DropTableTasks* drop_table_tasks) {
|
||||
void DdlTaskRequest::set_allocated_drop_table_tasks(::greptime::v1::meta::DropTableTasks* drop_table_tasks) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_task();
|
||||
if (drop_table_tasks) {
|
||||
@@ -1912,9 +1909,9 @@ void SubmitDdlTaskRequest::set_allocated_drop_table_tasks(::greptime::v1::meta::
|
||||
set_has_drop_table_tasks();
|
||||
_impl_.task_.drop_table_tasks_ = drop_table_tasks;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_tasks)
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_table_tasks)
|
||||
}
|
||||
void SubmitDdlTaskRequest::set_allocated_alter_table_tasks(::greptime::v1::meta::AlterTableTasks* alter_table_tasks) {
|
||||
void DdlTaskRequest::set_allocated_alter_table_tasks(::greptime::v1::meta::AlterTableTasks* alter_table_tasks) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_task();
|
||||
if (alter_table_tasks) {
|
||||
@@ -1927,17 +1924,17 @@ void SubmitDdlTaskRequest::set_allocated_alter_table_tasks(::greptime::v1::meta:
|
||||
set_has_alter_table_tasks();
|
||||
_impl_.task_.alter_table_tasks_ = alter_table_tasks;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_tasks)
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.alter_table_tasks)
|
||||
}
|
||||
SubmitDdlTaskRequest::SubmitDdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
DdlTaskRequest::DdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
SharedCtor(arena, is_message_owned);
|
||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.SubmitDdlTaskRequest)
|
||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.DdlTaskRequest)
|
||||
}
|
||||
SubmitDdlTaskRequest::SubmitDdlTaskRequest(const SubmitDdlTaskRequest& from)
|
||||
DdlTaskRequest::DdlTaskRequest(const DdlTaskRequest& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
SubmitDdlTaskRequest* const _this = this; (void)_this;
|
||||
DdlTaskRequest* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.task_){}
|
||||
@@ -1989,10 +1986,10 @@ SubmitDdlTaskRequest::SubmitDdlTaskRequest(const SubmitDdlTaskRequest& from)
|
||||
break;
|
||||
}
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.SubmitDdlTaskRequest)
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.DdlTaskRequest)
|
||||
}
|
||||
|
||||
inline void SubmitDdlTaskRequest::SharedCtor(
|
||||
inline void DdlTaskRequest::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
@@ -2005,8 +2002,8 @@ inline void SubmitDdlTaskRequest::SharedCtor(
|
||||
clear_has_task();
|
||||
}
|
||||
|
||||
SubmitDdlTaskRequest::~SubmitDdlTaskRequest() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.SubmitDdlTaskRequest)
|
||||
DdlTaskRequest::~DdlTaskRequest() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.DdlTaskRequest)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
@@ -2014,7 +2011,7 @@ SubmitDdlTaskRequest::~SubmitDdlTaskRequest() {
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void SubmitDdlTaskRequest::SharedDtor() {
|
||||
inline void DdlTaskRequest::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
if (this != internal_default_instance()) delete _impl_.header_;
|
||||
if (has_task()) {
|
||||
@@ -2022,12 +2019,12 @@ inline void SubmitDdlTaskRequest::SharedDtor() {
|
||||
}
|
||||
}
|
||||
|
||||
void SubmitDdlTaskRequest::SetCachedSize(int size) const {
|
||||
void DdlTaskRequest::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void SubmitDdlTaskRequest::clear_task() {
|
||||
// @@protoc_insertion_point(one_of_clear_start:greptime.v1.meta.SubmitDdlTaskRequest)
|
||||
void DdlTaskRequest::clear_task() {
|
||||
// @@protoc_insertion_point(one_of_clear_start:greptime.v1.meta.DdlTaskRequest)
|
||||
switch (task_case()) {
|
||||
case kCreateTableTask: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
@@ -2079,8 +2076,8 @@ void SubmitDdlTaskRequest::clear_task() {
|
||||
}
|
||||
|
||||
|
||||
void SubmitDdlTaskRequest::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.SubmitDdlTaskRequest)
|
||||
void DdlTaskRequest::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.DdlTaskRequest)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
@@ -2093,7 +2090,7 @@ void SubmitDdlTaskRequest::Clear() {
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* SubmitDdlTaskRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
const char* DdlTaskRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
@@ -2186,9 +2183,9 @@ failure:
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
uint8_t* SubmitDdlTaskRequest::_InternalSerialize(
|
||||
uint8_t* DdlTaskRequest::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.SubmitDdlTaskRequest)
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.DdlTaskRequest)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
@@ -2252,12 +2249,12 @@ uint8_t* SubmitDdlTaskRequest::_InternalSerialize(
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.SubmitDdlTaskRequest)
|
||||
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.DdlTaskRequest)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t SubmitDdlTaskRequest::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.SubmitDdlTaskRequest)
|
||||
size_t DdlTaskRequest::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.DdlTaskRequest)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
@@ -2328,17 +2325,17 @@ size_t SubmitDdlTaskRequest::ByteSizeLong() const {
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubmitDdlTaskRequest::_class_data_ = {
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DdlTaskRequest::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
SubmitDdlTaskRequest::MergeImpl
|
||||
DdlTaskRequest::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubmitDdlTaskRequest::GetClassData() const { return &_class_data_; }
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DdlTaskRequest::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void SubmitDdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<SubmitDdlTaskRequest*>(&to_msg);
|
||||
auto& from = static_cast<const SubmitDdlTaskRequest&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.SubmitDdlTaskRequest)
|
||||
void DdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<DdlTaskRequest*>(&to_msg);
|
||||
auto& from = static_cast<const DdlTaskRequest&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.DdlTaskRequest)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
@@ -2390,18 +2387,18 @@ void SubmitDdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, c
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void SubmitDdlTaskRequest::CopyFrom(const SubmitDdlTaskRequest& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.SubmitDdlTaskRequest)
|
||||
void DdlTaskRequest::CopyFrom(const DdlTaskRequest& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.DdlTaskRequest)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool SubmitDdlTaskRequest::IsInitialized() const {
|
||||
bool DdlTaskRequest::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void SubmitDdlTaskRequest::InternalSwap(SubmitDdlTaskRequest* other) {
|
||||
void DdlTaskRequest::InternalSwap(DdlTaskRequest* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
swap(_impl_.header_, other->_impl_.header_);
|
||||
@@ -2409,7 +2406,7 @@ void SubmitDdlTaskRequest::InternalSwap(SubmitDdlTaskRequest* other) {
|
||||
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata SubmitDdlTaskRequest::GetMetadata() const {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata DdlTaskRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[7]);
|
||||
@@ -2417,88 +2414,90 @@ void SubmitDdlTaskRequest::InternalSwap(SubmitDdlTaskRequest* other) {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class SubmitDdlTaskResponse::_Internal {
|
||||
class DdlTaskResponse::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::meta::ResponseHeader& header(const SubmitDdlTaskResponse* msg);
|
||||
static const ::greptime::v1::meta::TableId& table_id(const SubmitDdlTaskResponse* msg);
|
||||
static const ::greptime::v1::meta::ResponseHeader& header(const DdlTaskResponse* msg);
|
||||
static const ::greptime::v1::meta::ProcedureId& pid(const DdlTaskResponse* msg);
|
||||
static const ::greptime::v1::meta::TableId& table_id(const DdlTaskResponse* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::meta::ResponseHeader&
|
||||
SubmitDdlTaskResponse::_Internal::header(const SubmitDdlTaskResponse* msg) {
|
||||
DdlTaskResponse::_Internal::header(const DdlTaskResponse* msg) {
|
||||
return *msg->_impl_.header_;
|
||||
}
|
||||
const ::greptime::v1::meta::ProcedureId&
|
||||
DdlTaskResponse::_Internal::pid(const DdlTaskResponse* msg) {
|
||||
return *msg->_impl_.pid_;
|
||||
}
|
||||
const ::greptime::v1::meta::TableId&
|
||||
SubmitDdlTaskResponse::_Internal::table_id(const SubmitDdlTaskResponse* msg) {
|
||||
DdlTaskResponse::_Internal::table_id(const DdlTaskResponse* msg) {
|
||||
return *msg->_impl_.table_id_;
|
||||
}
|
||||
void SubmitDdlTaskResponse::clear_header() {
|
||||
void DdlTaskResponse::clear_header() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
}
|
||||
void SubmitDdlTaskResponse::clear_table_id() {
|
||||
void DdlTaskResponse::clear_pid() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) {
|
||||
delete _impl_.pid_;
|
||||
}
|
||||
_impl_.pid_ = nullptr;
|
||||
}
|
||||
void DdlTaskResponse::clear_table_id() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.table_id_ != nullptr) {
|
||||
delete _impl_.table_id_;
|
||||
}
|
||||
_impl_.table_id_ = nullptr;
|
||||
}
|
||||
void SubmitDdlTaskResponse::clear_table_ids() {
|
||||
void DdlTaskResponse::clear_table_ids() {
|
||||
_impl_.table_ids_.Clear();
|
||||
}
|
||||
SubmitDdlTaskResponse::SubmitDdlTaskResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
DdlTaskResponse::DdlTaskResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
SharedCtor(arena, is_message_owned);
|
||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.SubmitDdlTaskResponse)
|
||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.DdlTaskResponse)
|
||||
}
|
||||
SubmitDdlTaskResponse::SubmitDdlTaskResponse(const SubmitDdlTaskResponse& from)
|
||||
DdlTaskResponse::DdlTaskResponse(const DdlTaskResponse& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
SubmitDdlTaskResponse* const _this = this; (void)_this;
|
||||
DdlTaskResponse* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.table_ids_){from._impl_.table_ids_}
|
||||
, decltype(_impl_.key_){}
|
||||
, decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.pid_){nullptr}
|
||||
, decltype(_impl_.table_id_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
_impl_.key_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.key_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (!from._internal_key().empty()) {
|
||||
_this->_impl_.key_.Set(from._internal_key(),
|
||||
_this->GetArenaForAllocation());
|
||||
}
|
||||
if (from._internal_has_header()) {
|
||||
_this->_impl_.header_ = new ::greptime::v1::meta::ResponseHeader(*from._impl_.header_);
|
||||
}
|
||||
if (from._internal_has_pid()) {
|
||||
_this->_impl_.pid_ = new ::greptime::v1::meta::ProcedureId(*from._impl_.pid_);
|
||||
}
|
||||
if (from._internal_has_table_id()) {
|
||||
_this->_impl_.table_id_ = new ::greptime::v1::meta::TableId(*from._impl_.table_id_);
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.SubmitDdlTaskResponse)
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.DdlTaskResponse)
|
||||
}
|
||||
|
||||
inline void SubmitDdlTaskResponse::SharedCtor(
|
||||
inline void DdlTaskResponse::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.table_ids_){arena}
|
||||
, decltype(_impl_.key_){}
|
||||
, decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.pid_){nullptr}
|
||||
, decltype(_impl_.table_id_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
_impl_.key_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.key_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
}
|
||||
|
||||
SubmitDdlTaskResponse::~SubmitDdlTaskResponse() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.SubmitDdlTaskResponse)
|
||||
DdlTaskResponse::~DdlTaskResponse() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.DdlTaskResponse)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
@@ -2506,30 +2505,33 @@ SubmitDdlTaskResponse::~SubmitDdlTaskResponse() {
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void SubmitDdlTaskResponse::SharedDtor() {
|
||||
inline void DdlTaskResponse::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
_impl_.table_ids_.~RepeatedPtrField();
|
||||
_impl_.key_.Destroy();
|
||||
if (this != internal_default_instance()) delete _impl_.header_;
|
||||
if (this != internal_default_instance()) delete _impl_.pid_;
|
||||
if (this != internal_default_instance()) delete _impl_.table_id_;
|
||||
}
|
||||
|
||||
void SubmitDdlTaskResponse::SetCachedSize(int size) const {
|
||||
void DdlTaskResponse::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void SubmitDdlTaskResponse::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.SubmitDdlTaskResponse)
|
||||
void DdlTaskResponse::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.DdlTaskResponse)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.table_ids_.Clear();
|
||||
_impl_.key_.ClearToEmpty();
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) {
|
||||
delete _impl_.pid_;
|
||||
}
|
||||
_impl_.pid_ = nullptr;
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.table_id_ != nullptr) {
|
||||
delete _impl_.table_id_;
|
||||
}
|
||||
@@ -2537,7 +2539,7 @@ void SubmitDdlTaskResponse::Clear() {
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* SubmitDdlTaskResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
const char* DdlTaskResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
@@ -2551,11 +2553,10 @@ const char* SubmitDdlTaskResponse::_InternalParse(const char* ptr, ::_pbi::Parse
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// bytes key = 2;
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||
auto str = _internal_mutable_key();
|
||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||
ptr = ctx->ParseMessage(_internal_mutable_pid(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
@@ -2604,9 +2605,9 @@ failure:
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
uint8_t* SubmitDdlTaskResponse::_InternalSerialize(
|
||||
uint8_t* DdlTaskResponse::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.SubmitDdlTaskResponse)
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.DdlTaskResponse)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
@@ -2617,10 +2618,11 @@ uint8_t* SubmitDdlTaskResponse::_InternalSerialize(
|
||||
_Internal::header(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// bytes key = 2;
|
||||
if (!this->_internal_key().empty()) {
|
||||
target = stream->WriteBytesMaybeAliased(
|
||||
2, this->_internal_key(), target);
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
if (this->_internal_has_pid()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(2, _Internal::pid(this),
|
||||
_Internal::pid(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.TableId table_id = 4;
|
||||
@@ -2642,12 +2644,12 @@ uint8_t* SubmitDdlTaskResponse::_InternalSerialize(
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.SubmitDdlTaskResponse)
|
||||
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.DdlTaskResponse)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t SubmitDdlTaskResponse::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.SubmitDdlTaskResponse)
|
||||
size_t DdlTaskResponse::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.DdlTaskResponse)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
@@ -2661,13 +2663,6 @@ size_t SubmitDdlTaskResponse::ByteSizeLong() const {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
||||
}
|
||||
|
||||
// bytes key = 2;
|
||||
if (!this->_internal_key().empty()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
||||
this->_internal_key());
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.ResponseHeader header = 1;
|
||||
if (this->_internal_has_header()) {
|
||||
total_size += 1 +
|
||||
@@ -2675,6 +2670,13 @@ size_t SubmitDdlTaskResponse::ByteSizeLong() const {
|
||||
*_impl_.header_);
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
if (this->_internal_has_pid()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.pid_);
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.TableId table_id = 4;
|
||||
if (this->_internal_has_table_id()) {
|
||||
total_size += 1 +
|
||||
@@ -2685,29 +2687,30 @@ size_t SubmitDdlTaskResponse::ByteSizeLong() const {
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubmitDdlTaskResponse::_class_data_ = {
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DdlTaskResponse::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
SubmitDdlTaskResponse::MergeImpl
|
||||
DdlTaskResponse::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubmitDdlTaskResponse::GetClassData() const { return &_class_data_; }
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DdlTaskResponse::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void SubmitDdlTaskResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<SubmitDdlTaskResponse*>(&to_msg);
|
||||
auto& from = static_cast<const SubmitDdlTaskResponse&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.SubmitDdlTaskResponse)
|
||||
void DdlTaskResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<DdlTaskResponse*>(&to_msg);
|
||||
auto& from = static_cast<const DdlTaskResponse&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.DdlTaskResponse)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
_this->_impl_.table_ids_.MergeFrom(from._impl_.table_ids_);
|
||||
if (!from._internal_key().empty()) {
|
||||
_this->_internal_set_key(from._internal_key());
|
||||
}
|
||||
if (from._internal_has_header()) {
|
||||
_this->_internal_mutable_header()->::greptime::v1::meta::ResponseHeader::MergeFrom(
|
||||
from._internal_header());
|
||||
}
|
||||
if (from._internal_has_pid()) {
|
||||
_this->_internal_mutable_pid()->::greptime::v1::meta::ProcedureId::MergeFrom(
|
||||
from._internal_pid());
|
||||
}
|
||||
if (from._internal_has_table_id()) {
|
||||
_this->_internal_mutable_table_id()->::greptime::v1::meta::TableId::MergeFrom(
|
||||
from._internal_table_id());
|
||||
@@ -2715,36 +2718,30 @@ void SubmitDdlTaskResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg,
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void SubmitDdlTaskResponse::CopyFrom(const SubmitDdlTaskResponse& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.SubmitDdlTaskResponse)
|
||||
void DdlTaskResponse::CopyFrom(const DdlTaskResponse& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.DdlTaskResponse)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool SubmitDdlTaskResponse::IsInitialized() const {
|
||||
bool DdlTaskResponse::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void SubmitDdlTaskResponse::InternalSwap(SubmitDdlTaskResponse* other) {
|
||||
void DdlTaskResponse::InternalSwap(DdlTaskResponse* other) {
|
||||
using std::swap;
|
||||
auto* lhs_arena = GetArenaForAllocation();
|
||||
auto* rhs_arena = other->GetArenaForAllocation();
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
_impl_.table_ids_.InternalSwap(&other->_impl_.table_ids_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||
&_impl_.key_, lhs_arena,
|
||||
&other->_impl_.key_, rhs_arena
|
||||
);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(SubmitDdlTaskResponse, _impl_.table_id_)
|
||||
+ sizeof(SubmitDdlTaskResponse::_impl_.table_id_)
|
||||
- PROTOBUF_FIELD_OFFSET(SubmitDdlTaskResponse, _impl_.header_)>(
|
||||
PROTOBUF_FIELD_OFFSET(DdlTaskResponse, _impl_.table_id_)
|
||||
+ sizeof(DdlTaskResponse::_impl_.table_id_)
|
||||
- PROTOBUF_FIELD_OFFSET(DdlTaskResponse, _impl_.header_)>(
|
||||
reinterpret_cast<char*>(&_impl_.header_),
|
||||
reinterpret_cast<char*>(&other->_impl_.header_));
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata SubmitDdlTaskResponse::GetMetadata() const {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata DdlTaskResponse::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[8]);
|
||||
@@ -2783,13 +2780,13 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::TruncateTableTask*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::TruncateTableTask >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::TruncateTableTask >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::SubmitDdlTaskRequest*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::SubmitDdlTaskRequest >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::SubmitDdlTaskRequest >(arena);
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DdlTaskRequest*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::DdlTaskRequest >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::DdlTaskRequest >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::SubmitDdlTaskResponse*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::SubmitDdlTaskResponse >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::SubmitDdlTaskResponse >(arena);
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DdlTaskResponse*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::DdlTaskResponse >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::DdlTaskResponse >(arena);
|
||||
}
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
|
||||
+331
-292
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,174 @@
|
||||
// Generated by the gRPC C++ plugin.
|
||||
// If you make any local change, they will be lost.
|
||||
// source: greptime/v1/meta/procedure.proto
|
||||
|
||||
#include "greptime/v1/meta/procedure.pb.h"
|
||||
#include "greptime/v1/meta/procedure.grpc.pb.h"
|
||||
|
||||
#include <functional>
|
||||
#include <grpcpp/support/async_stream.h>
|
||||
#include <grpcpp/support/async_unary_call.h>
|
||||
#include <grpcpp/impl/channel_interface.h>
|
||||
#include <grpcpp/impl/client_unary_call.h>
|
||||
#include <grpcpp/support/client_callback.h>
|
||||
#include <grpcpp/support/message_allocator.h>
|
||||
#include <grpcpp/support/method_handler.h>
|
||||
#include <grpcpp/impl/rpc_service_method.h>
|
||||
#include <grpcpp/support/server_callback.h>
|
||||
#include <grpcpp/impl/codegen/server_callback_handlers.h>
|
||||
#include <grpcpp/server_context.h>
|
||||
#include <grpcpp/impl/service_type.h>
|
||||
#include <grpcpp/support/sync_stream.h>
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
|
||||
static const char* ProcedureService_method_names[] = {
|
||||
"/greptime.v1.meta.ProcedureService/query",
|
||||
"/greptime.v1.meta.ProcedureService/ddl",
|
||||
"/greptime.v1.meta.ProcedureService/migrate",
|
||||
};
|
||||
|
||||
std::unique_ptr< ProcedureService::Stub> ProcedureService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
|
||||
(void)options;
|
||||
std::unique_ptr< ProcedureService::Stub> stub(new ProcedureService::Stub(channel, options));
|
||||
return stub;
|
||||
}
|
||||
|
||||
ProcedureService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
|
||||
: channel_(channel), rpcmethod_query_(ProcedureService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_ddl_(ProcedureService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
, rpcmethod_migrate_(ProcedureService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
||||
{}
|
||||
|
||||
::grpc::Status ProcedureService::Stub::query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::greptime::v1::meta::ProcedureStateResponse* response) {
|
||||
return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_query_, context, request, response);
|
||||
}
|
||||
|
||||
void ProcedureService::Stub::async::query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response, std::function<void(::grpc::Status)> f) {
|
||||
::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_query_, context, request, response, std::move(f));
|
||||
}
|
||||
|
||||
void ProcedureService::Stub::async::query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
||||
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_query_, context, request, response, reactor);
|
||||
}
|
||||
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>* ProcedureService::Stub::PrepareAsyncqueryRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::ProcedureStateResponse, ::greptime::v1::meta::QueryProcedureRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_query_, context, request);
|
||||
}
|
||||
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>* ProcedureService::Stub::AsyncqueryRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
auto* result =
|
||||
this->PrepareAsyncqueryRaw(context, request, cq);
|
||||
result->StartCall();
|
||||
return result;
|
||||
}
|
||||
|
||||
::grpc::Status ProcedureService::Stub::ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::greptime::v1::meta::DdlTaskResponse* response) {
|
||||
return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ddl_, context, request, response);
|
||||
}
|
||||
|
||||
void ProcedureService::Stub::async::ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, std::function<void(::grpc::Status)> f) {
|
||||
::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ddl_, context, request, response, std::move(f));
|
||||
}
|
||||
|
||||
void ProcedureService::Stub::async::ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
||||
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ddl_, context, request, response, reactor);
|
||||
}
|
||||
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>* ProcedureService::Stub::PrepareAsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::DdlTaskResponse, ::greptime::v1::meta::DdlTaskRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ddl_, context, request);
|
||||
}
|
||||
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>* ProcedureService::Stub::AsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
auto* result =
|
||||
this->PrepareAsyncddlRaw(context, request, cq);
|
||||
result->StartCall();
|
||||
return result;
|
||||
}
|
||||
|
||||
::grpc::Status ProcedureService::Stub::migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::greptime::v1::meta::MigrateRegionResponse* response) {
|
||||
return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_migrate_, context, request, response);
|
||||
}
|
||||
|
||||
void ProcedureService::Stub::async::migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, std::function<void(::grpc::Status)> f) {
|
||||
::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_migrate_, context, request, response, std::move(f));
|
||||
}
|
||||
|
||||
void ProcedureService::Stub::async::migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
||||
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_migrate_, context, request, response, reactor);
|
||||
}
|
||||
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>* ProcedureService::Stub::PrepareAsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::MigrateRegionResponse, ::greptime::v1::meta::MigrateRegionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_migrate_, context, request);
|
||||
}
|
||||
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>* ProcedureService::Stub::AsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
auto* result =
|
||||
this->PrepareAsyncmigrateRaw(context, request, cq);
|
||||
result->StartCall();
|
||||
return result;
|
||||
}
|
||||
|
||||
ProcedureService::Service::Service() {
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
ProcedureService_method_names[0],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< ProcedureService::Service, ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](ProcedureService::Service* service,
|
||||
::grpc::ServerContext* ctx,
|
||||
const ::greptime::v1::meta::QueryProcedureRequest* req,
|
||||
::greptime::v1::meta::ProcedureStateResponse* resp) {
|
||||
return service->query(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
ProcedureService_method_names[1],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< ProcedureService::Service, ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](ProcedureService::Service* service,
|
||||
::grpc::ServerContext* ctx,
|
||||
const ::greptime::v1::meta::DdlTaskRequest* req,
|
||||
::greptime::v1::meta::DdlTaskResponse* resp) {
|
||||
return service->ddl(ctx, req, resp);
|
||||
}, this)));
|
||||
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
||||
ProcedureService_method_names[2],
|
||||
::grpc::internal::RpcMethod::NORMAL_RPC,
|
||||
new ::grpc::internal::RpcMethodHandler< ProcedureService::Service, ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
||||
[](ProcedureService::Service* service,
|
||||
::grpc::ServerContext* ctx,
|
||||
const ::greptime::v1::meta::MigrateRegionRequest* req,
|
||||
::greptime::v1::meta::MigrateRegionResponse* resp) {
|
||||
return service->migrate(ctx, req, resp);
|
||||
}, this)));
|
||||
}
|
||||
|
||||
ProcedureService::Service::~Service() {
|
||||
}
|
||||
|
||||
::grpc::Status ProcedureService::Service::query(::grpc::ServerContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response) {
|
||||
(void) context;
|
||||
(void) request;
|
||||
(void) response;
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
|
||||
::grpc::Status ProcedureService::Service::ddl(::grpc::ServerContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response) {
|
||||
(void) context;
|
||||
(void) request;
|
||||
(void) response;
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
|
||||
::grpc::Status ProcedureService::Service::migrate(::grpc::ServerContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response) {
|
||||
(void) context;
|
||||
(void) request;
|
||||
(void) response;
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
|
||||
|
||||
} // namespace greptime
|
||||
} // namespace v1
|
||||
} // namespace meta
|
||||
|
||||
@@ -0,0 +1,572 @@
|
||||
// Generated by the gRPC C++ plugin.
|
||||
// If you make any local change, they will be lost.
|
||||
// source: greptime/v1/meta/procedure.proto
|
||||
// Original file comments:
|
||||
// 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_2fmeta_2fprocedure_2eproto__INCLUDED
|
||||
#define GRPC_greptime_2fv1_2fmeta_2fprocedure_2eproto__INCLUDED
|
||||
|
||||
#include "greptime/v1/meta/procedure.pb.h"
|
||||
|
||||
#include <functional>
|
||||
#include <grpcpp/generic/async_generic_service.h>
|
||||
#include <grpcpp/support/async_stream.h>
|
||||
#include <grpcpp/support/async_unary_call.h>
|
||||
#include <grpcpp/support/client_callback.h>
|
||||
#include <grpcpp/client_context.h>
|
||||
#include <grpcpp/completion_queue.h>
|
||||
#include <grpcpp/support/message_allocator.h>
|
||||
#include <grpcpp/support/method_handler.h>
|
||||
#include <grpcpp/impl/codegen/proto_utils.h>
|
||||
#include <grpcpp/impl/rpc_method.h>
|
||||
#include <grpcpp/support/server_callback.h>
|
||||
#include <grpcpp/impl/codegen/server_callback_handlers.h>
|
||||
#include <grpcpp/server_context.h>
|
||||
#include <grpcpp/impl/service_type.h>
|
||||
#include <grpcpp/impl/codegen/status.h>
|
||||
#include <grpcpp/support/stub_options.h>
|
||||
#include <grpcpp/support/sync_stream.h>
|
||||
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
|
||||
class ProcedureService final {
|
||||
public:
|
||||
static constexpr char const* service_full_name() {
|
||||
return "greptime.v1.meta.ProcedureService";
|
||||
}
|
||||
class StubInterface {
|
||||
public:
|
||||
virtual ~StubInterface() {}
|
||||
// Query a submitted procedure state
|
||||
virtual ::grpc::Status query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::greptime::v1::meta::ProcedureStateResponse* response) = 0;
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureStateResponse>> Asyncquery(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureStateResponse>>(AsyncqueryRaw(context, request, cq));
|
||||
}
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureStateResponse>> PrepareAsyncquery(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureStateResponse>>(PrepareAsyncqueryRaw(context, request, cq));
|
||||
}
|
||||
// Submits a DDL task
|
||||
virtual ::grpc::Status ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::greptime::v1::meta::DdlTaskResponse* response) = 0;
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>> Asyncddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>>(AsyncddlRaw(context, request, cq));
|
||||
}
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>> PrepareAsyncddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>>(PrepareAsyncddlRaw(context, request, cq));
|
||||
}
|
||||
// Submits a region migration task
|
||||
virtual ::grpc::Status migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::greptime::v1::meta::MigrateRegionResponse* response) = 0;
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>> Asyncmigrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>>(AsyncmigrateRaw(context, request, cq));
|
||||
}
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>> PrepareAsyncmigrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>>(PrepareAsyncmigrateRaw(context, request, cq));
|
||||
}
|
||||
class async_interface {
|
||||
public:
|
||||
virtual ~async_interface() {}
|
||||
// Query a submitted procedure state
|
||||
virtual void query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response, std::function<void(::grpc::Status)>) = 0;
|
||||
virtual void query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
|
||||
// Submits a DDL task
|
||||
virtual void ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, std::function<void(::grpc::Status)>) = 0;
|
||||
virtual void ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
|
||||
// Submits a region migration task
|
||||
virtual void migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, std::function<void(::grpc::Status)>) = 0;
|
||||
virtual void migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* 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::meta::ProcedureStateResponse>* AsyncqueryRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) = 0;
|
||||
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureStateResponse>* PrepareAsyncqueryRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) = 0;
|
||||
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>* AsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) = 0;
|
||||
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>* PrepareAsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) = 0;
|
||||
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>* AsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) = 0;
|
||||
virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>* PrepareAsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& 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 query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::greptime::v1::meta::ProcedureStateResponse* response) override;
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>> Asyncquery(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>>(AsyncqueryRaw(context, request, cq));
|
||||
}
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>> PrepareAsyncquery(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>>(PrepareAsyncqueryRaw(context, request, cq));
|
||||
}
|
||||
::grpc::Status ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::greptime::v1::meta::DdlTaskResponse* response) override;
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>> Asyncddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>>(AsyncddlRaw(context, request, cq));
|
||||
}
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>> PrepareAsyncddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>>(PrepareAsyncddlRaw(context, request, cq));
|
||||
}
|
||||
::grpc::Status migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::greptime::v1::meta::MigrateRegionResponse* response) override;
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>> Asyncmigrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>>(AsyncmigrateRaw(context, request, cq));
|
||||
}
|
||||
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>> PrepareAsyncmigrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) {
|
||||
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>>(PrepareAsyncmigrateRaw(context, request, cq));
|
||||
}
|
||||
class async final :
|
||||
public StubInterface::async_interface {
|
||||
public:
|
||||
void query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response, std::function<void(::grpc::Status)>) override;
|
||||
void query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
|
||||
void ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, std::function<void(::grpc::Status)>) override;
|
||||
void ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
|
||||
void migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, std::function<void(::grpc::Status)>) override;
|
||||
void migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* 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::meta::ProcedureStateResponse>* AsyncqueryRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) override;
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>* PrepareAsyncqueryRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) override;
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>* AsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) override;
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>* PrepareAsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) override;
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>* AsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) override;
|
||||
::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>* PrepareAsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) override;
|
||||
const ::grpc::internal::RpcMethod rpcmethod_query_;
|
||||
const ::grpc::internal::RpcMethod rpcmethod_ddl_;
|
||||
const ::grpc::internal::RpcMethod rpcmethod_migrate_;
|
||||
};
|
||||
static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
|
||||
|
||||
class Service : public ::grpc::Service {
|
||||
public:
|
||||
Service();
|
||||
virtual ~Service();
|
||||
// Query a submitted procedure state
|
||||
virtual ::grpc::Status query(::grpc::ServerContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response);
|
||||
// Submits a DDL task
|
||||
virtual ::grpc::Status ddl(::grpc::ServerContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response);
|
||||
// Submits a region migration task
|
||||
virtual ::grpc::Status migrate(::grpc::ServerContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response);
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithAsyncMethod_query : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithAsyncMethod_query() {
|
||||
::grpc::Service::MarkMethodAsync(0);
|
||||
}
|
||||
~WithAsyncMethod_query() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status query(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
void Requestquery(::grpc::ServerContext* context, ::greptime::v1::meta::QueryProcedureRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::ProcedureStateResponse>* 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 BaseClass>
|
||||
class WithAsyncMethod_ddl : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithAsyncMethod_ddl() {
|
||||
::grpc::Service::MarkMethodAsync(1);
|
||||
}
|
||||
~WithAsyncMethod_ddl() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status ddl(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
void Requestddl(::grpc::ServerContext* context, ::greptime::v1::meta::DdlTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::DdlTaskResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
|
||||
::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
|
||||
}
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithAsyncMethod_migrate : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithAsyncMethod_migrate() {
|
||||
::grpc::Service::MarkMethodAsync(2);
|
||||
}
|
||||
~WithAsyncMethod_migrate() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status migrate(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
void Requestmigrate(::grpc::ServerContext* context, ::greptime::v1::meta::MigrateRegionRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::MigrateRegionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
|
||||
::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
|
||||
}
|
||||
};
|
||||
typedef WithAsyncMethod_query<WithAsyncMethod_ddl<WithAsyncMethod_migrate<Service > > > AsyncService;
|
||||
template <class BaseClass>
|
||||
class WithCallbackMethod_query : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithCallbackMethod_query() {
|
||||
::grpc::Service::MarkMethodCallback(0,
|
||||
new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse>(
|
||||
[this](
|
||||
::grpc::CallbackServerContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response) { return this->query(context, request, response); }));}
|
||||
void SetMessageAllocatorFor_query(
|
||||
::grpc::MessageAllocator< ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse>* allocator) {
|
||||
::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
|
||||
static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse>*>(handler)
|
||||
->SetMessageAllocator(allocator);
|
||||
}
|
||||
~WithCallbackMethod_query() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status query(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
virtual ::grpc::ServerUnaryReactor* query(
|
||||
::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) { return nullptr; }
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithCallbackMethod_ddl : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithCallbackMethod_ddl() {
|
||||
::grpc::Service::MarkMethodCallback(1,
|
||||
new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse>(
|
||||
[this](
|
||||
::grpc::CallbackServerContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response) { return this->ddl(context, request, response); }));}
|
||||
void SetMessageAllocatorFor_ddl(
|
||||
::grpc::MessageAllocator< ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse>* allocator) {
|
||||
::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1);
|
||||
static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse>*>(handler)
|
||||
->SetMessageAllocator(allocator);
|
||||
}
|
||||
~WithCallbackMethod_ddl() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status ddl(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
virtual ::grpc::ServerUnaryReactor* ddl(
|
||||
::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) { return nullptr; }
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithCallbackMethod_migrate : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithCallbackMethod_migrate() {
|
||||
::grpc::Service::MarkMethodCallback(2,
|
||||
new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse>(
|
||||
[this](
|
||||
::grpc::CallbackServerContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response) { return this->migrate(context, request, response); }));}
|
||||
void SetMessageAllocatorFor_migrate(
|
||||
::grpc::MessageAllocator< ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse>* allocator) {
|
||||
::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2);
|
||||
static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse>*>(handler)
|
||||
->SetMessageAllocator(allocator);
|
||||
}
|
||||
~WithCallbackMethod_migrate() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status migrate(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
virtual ::grpc::ServerUnaryReactor* migrate(
|
||||
::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) { return nullptr; }
|
||||
};
|
||||
typedef WithCallbackMethod_query<WithCallbackMethod_ddl<WithCallbackMethod_migrate<Service > > > CallbackService;
|
||||
typedef CallbackService ExperimentalCallbackService;
|
||||
template <class BaseClass>
|
||||
class WithGenericMethod_query : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithGenericMethod_query() {
|
||||
::grpc::Service::MarkMethodGeneric(0);
|
||||
}
|
||||
~WithGenericMethod_query() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status query(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithGenericMethod_ddl : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithGenericMethod_ddl() {
|
||||
::grpc::Service::MarkMethodGeneric(1);
|
||||
}
|
||||
~WithGenericMethod_ddl() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status ddl(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithGenericMethod_migrate : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithGenericMethod_migrate() {
|
||||
::grpc::Service::MarkMethodGeneric(2);
|
||||
}
|
||||
~WithGenericMethod_migrate() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status migrate(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithRawMethod_query : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithRawMethod_query() {
|
||||
::grpc::Service::MarkMethodRaw(0);
|
||||
}
|
||||
~WithRawMethod_query() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status query(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
void Requestquery(::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 BaseClass>
|
||||
class WithRawMethod_ddl : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithRawMethod_ddl() {
|
||||
::grpc::Service::MarkMethodRaw(1);
|
||||
}
|
||||
~WithRawMethod_ddl() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status ddl(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
void Requestddl(::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(1, context, request, response, new_call_cq, notification_cq, tag);
|
||||
}
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithRawMethod_migrate : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithRawMethod_migrate() {
|
||||
::grpc::Service::MarkMethodRaw(2);
|
||||
}
|
||||
~WithRawMethod_migrate() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status migrate(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
void Requestmigrate(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
|
||||
::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
|
||||
}
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithRawCallbackMethod_query : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithRawCallbackMethod_query() {
|
||||
::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->query(context, request, response); }));
|
||||
}
|
||||
~WithRawCallbackMethod_query() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status query(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
virtual ::grpc::ServerUnaryReactor* query(
|
||||
::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithRawCallbackMethod_ddl : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithRawCallbackMethod_ddl() {
|
||||
::grpc::Service::MarkMethodRawCallback(1,
|
||||
new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
|
||||
[this](
|
||||
::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ddl(context, request, response); }));
|
||||
}
|
||||
~WithRawCallbackMethod_ddl() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status ddl(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
virtual ::grpc::ServerUnaryReactor* ddl(
|
||||
::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithRawCallbackMethod_migrate : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithRawCallbackMethod_migrate() {
|
||||
::grpc::Service::MarkMethodRawCallback(2,
|
||||
new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
|
||||
[this](
|
||||
::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->migrate(context, request, response); }));
|
||||
}
|
||||
~WithRawCallbackMethod_migrate() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable synchronous version of this method
|
||||
::grpc::Status migrate(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
virtual ::grpc::ServerUnaryReactor* migrate(
|
||||
::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithStreamedUnaryMethod_query : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithStreamedUnaryMethod_query() {
|
||||
::grpc::Service::MarkMethodStreamed(0,
|
||||
new ::grpc::internal::StreamedUnaryHandler<
|
||||
::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse>(
|
||||
[this](::grpc::ServerContext* context,
|
||||
::grpc::ServerUnaryStreamer<
|
||||
::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse>* streamer) {
|
||||
return this->Streamedquery(context,
|
||||
streamer);
|
||||
}));
|
||||
}
|
||||
~WithStreamedUnaryMethod_query() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable regular version of this method
|
||||
::grpc::Status query(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
// replace default version of method with streamed unary
|
||||
virtual ::grpc::Status Streamedquery(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::QueryProcedureRequest,::greptime::v1::meta::ProcedureStateResponse>* server_unary_streamer) = 0;
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithStreamedUnaryMethod_ddl : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithStreamedUnaryMethod_ddl() {
|
||||
::grpc::Service::MarkMethodStreamed(1,
|
||||
new ::grpc::internal::StreamedUnaryHandler<
|
||||
::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse>(
|
||||
[this](::grpc::ServerContext* context,
|
||||
::grpc::ServerUnaryStreamer<
|
||||
::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse>* streamer) {
|
||||
return this->Streamedddl(context,
|
||||
streamer);
|
||||
}));
|
||||
}
|
||||
~WithStreamedUnaryMethod_ddl() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable regular version of this method
|
||||
::grpc::Status ddl(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
// replace default version of method with streamed unary
|
||||
virtual ::grpc::Status Streamedddl(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::DdlTaskRequest,::greptime::v1::meta::DdlTaskResponse>* server_unary_streamer) = 0;
|
||||
};
|
||||
template <class BaseClass>
|
||||
class WithStreamedUnaryMethod_migrate : public BaseClass {
|
||||
private:
|
||||
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
||||
public:
|
||||
WithStreamedUnaryMethod_migrate() {
|
||||
::grpc::Service::MarkMethodStreamed(2,
|
||||
new ::grpc::internal::StreamedUnaryHandler<
|
||||
::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse>(
|
||||
[this](::grpc::ServerContext* context,
|
||||
::grpc::ServerUnaryStreamer<
|
||||
::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse>* streamer) {
|
||||
return this->Streamedmigrate(context,
|
||||
streamer);
|
||||
}));
|
||||
}
|
||||
~WithStreamedUnaryMethod_migrate() override {
|
||||
BaseClassMustBeDerivedFromService(this);
|
||||
}
|
||||
// disable regular version of this method
|
||||
::grpc::Status migrate(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) override {
|
||||
abort();
|
||||
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
||||
}
|
||||
// replace default version of method with streamed unary
|
||||
virtual ::grpc::Status Streamedmigrate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::MigrateRegionRequest,::greptime::v1::meta::MigrateRegionResponse>* server_unary_streamer) = 0;
|
||||
};
|
||||
typedef WithStreamedUnaryMethod_query<WithStreamedUnaryMethod_ddl<WithStreamedUnaryMethod_migrate<Service > > > StreamedUnaryService;
|
||||
typedef Service SplitStreamedService;
|
||||
typedef WithStreamedUnaryMethod_query<WithStreamedUnaryMethod_ddl<WithStreamedUnaryMethod_migrate<Service > > > StreamedService;
|
||||
};
|
||||
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
|
||||
|
||||
#endif // GRPC_greptime_2fv1_2fmeta_2fprocedure_2eproto__INCLUDED
|
||||
@@ -0,0 +1,706 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: greptime/v1/meta/procedure.proto
|
||||
|
||||
#include "greptime/v1/meta/procedure.pb.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/wire_format_lite.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
|
||||
PROTOBUF_PRAGMA_INIT_SEG
|
||||
|
||||
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
|
||||
namespace _pbi = _pb::internal;
|
||||
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
PROTOBUF_CONSTEXPR QueryProcedureRequest::QueryProcedureRequest(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.header_)*/nullptr
|
||||
, /*decltype(_impl_.pid_)*/nullptr
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct QueryProcedureRequestDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR QueryProcedureRequestDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~QueryProcedureRequestDefaultTypeInternal() {}
|
||||
union {
|
||||
QueryProcedureRequest _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QueryProcedureRequestDefaultTypeInternal _QueryProcedureRequest_default_instance_;
|
||||
PROTOBUF_CONSTEXPR ProcedureStateResponse::ProcedureStateResponse(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.error_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.header_)*/nullptr
|
||||
, /*decltype(_impl_.status_)*/0
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct ProcedureStateResponseDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR ProcedureStateResponseDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~ProcedureStateResponseDefaultTypeInternal() {}
|
||||
union {
|
||||
ProcedureStateResponse _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcedureStateResponseDefaultTypeInternal _ProcedureStateResponse_default_instance_;
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[2];
|
||||
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fprocedure_2eproto[1];
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fprocedure_2eproto = nullptr;
|
||||
|
||||
const uint32_t TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::QueryProcedureRequest, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::QueryProcedureRequest, _impl_.header_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::QueryProcedureRequest, _impl_.pid_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureStateResponse, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureStateResponse, _impl_.header_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureStateResponse, _impl_.status_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureStateResponse, _impl_.error_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, -1, sizeof(::greptime::v1::meta::QueryProcedureRequest)},
|
||||
{ 8, -1, -1, sizeof(::greptime::v1::meta::ProcedureStateResponse)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::meta::_QueryProcedureRequest_default_instance_._instance,
|
||||
&::greptime::v1::meta::_ProcedureStateResponse_default_instance_._instance,
|
||||
};
|
||||
|
||||
const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||
"\n greptime/v1/meta/procedure.proto\022\020grep"
|
||||
"time.v1.meta\032\035greptime/v1/meta/common.pr"
|
||||
"oto\032\032greptime/v1/meta/ddl.proto\032\035greptim"
|
||||
"e/v1/meta/region.proto\"t\n\025QueryProcedure"
|
||||
"Request\022/\n\006header\030\001 \001(\0132\037.greptime.v1.me"
|
||||
"ta.RequestHeader\022*\n\003pid\030\002 \001(\0132\035.greptime"
|
||||
".v1.meta.ProcedureId\"\214\001\n\026ProcedureStateR"
|
||||
"esponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.me"
|
||||
"ta.ResponseHeader\0221\n\006status\030\002 \001(\0162!.grep"
|
||||
"time.v1.meta.ProcedureStatus\022\r\n\005error\030\003 "
|
||||
"\001(\t*B\n\017ProcedureStatus\022\013\n\007Running\020\000\022\010\n\004D"
|
||||
"one\020\001\022\014\n\010Retrying\020\002\022\n\n\006Failed\020\0032\226\002\n\020Proc"
|
||||
"edureService\022Z\n\005query\022\'.greptime.v1.meta"
|
||||
".QueryProcedureRequest\032(.greptime.v1.met"
|
||||
"a.ProcedureStateResponse\022J\n\003ddl\022 .grepti"
|
||||
"me.v1.meta.DdlTaskRequest\032!.greptime.v1."
|
||||
"meta.DdlTaskResponse\022Z\n\007migrate\022&.grepti"
|
||||
"me.v1.meta.MigrateRegionRequest\032\'.grepti"
|
||||
"me.v1.meta.MigrateRegionResponseB<Z:gith"
|
||||
"ub.com/GreptimeTeam/greptime-proto/go/gr"
|
||||
"eptime/v1/metab\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_deps[3] = {
|
||||
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
||||
&::descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto,
|
||||
&::descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto,
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto = {
|
||||
false, false, 822, descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto,
|
||||
"greptime/v1/meta/procedure.proto",
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_deps, 3, 2,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto::offsets,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fprocedure_2eproto,
|
||||
file_level_service_descriptors_greptime_2fv1_2fmeta_2fprocedure_2eproto,
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_getter() {
|
||||
return &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto;
|
||||
}
|
||||
|
||||
// Force running AddDescriptors() at dynamic initialization time.
|
||||
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_greptime_2fv1_2fmeta_2fprocedure_2eproto(&descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto);
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProcedureStatus_descriptor() {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto);
|
||||
return file_level_enum_descriptors_greptime_2fv1_2fmeta_2fprocedure_2eproto[0];
|
||||
}
|
||||
bool ProcedureStatus_IsValid(int value) {
|
||||
switch (value) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class QueryProcedureRequest::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::meta::RequestHeader& header(const QueryProcedureRequest* msg);
|
||||
static const ::greptime::v1::meta::ProcedureId& pid(const QueryProcedureRequest* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::meta::RequestHeader&
|
||||
QueryProcedureRequest::_Internal::header(const QueryProcedureRequest* msg) {
|
||||
return *msg->_impl_.header_;
|
||||
}
|
||||
const ::greptime::v1::meta::ProcedureId&
|
||||
QueryProcedureRequest::_Internal::pid(const QueryProcedureRequest* msg) {
|
||||
return *msg->_impl_.pid_;
|
||||
}
|
||||
void QueryProcedureRequest::clear_header() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
}
|
||||
void QueryProcedureRequest::clear_pid() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) {
|
||||
delete _impl_.pid_;
|
||||
}
|
||||
_impl_.pid_ = nullptr;
|
||||
}
|
||||
QueryProcedureRequest::QueryProcedureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
SharedCtor(arena, is_message_owned);
|
||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.QueryProcedureRequest)
|
||||
}
|
||||
QueryProcedureRequest::QueryProcedureRequest(const QueryProcedureRequest& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
QueryProcedureRequest* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.pid_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
if (from._internal_has_header()) {
|
||||
_this->_impl_.header_ = new ::greptime::v1::meta::RequestHeader(*from._impl_.header_);
|
||||
}
|
||||
if (from._internal_has_pid()) {
|
||||
_this->_impl_.pid_ = new ::greptime::v1::meta::ProcedureId(*from._impl_.pid_);
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.QueryProcedureRequest)
|
||||
}
|
||||
|
||||
inline void QueryProcedureRequest::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.pid_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
QueryProcedureRequest::~QueryProcedureRequest() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.QueryProcedureRequest)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void QueryProcedureRequest::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
if (this != internal_default_instance()) delete _impl_.header_;
|
||||
if (this != internal_default_instance()) delete _impl_.pid_;
|
||||
}
|
||||
|
||||
void QueryProcedureRequest::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void QueryProcedureRequest::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.QueryProcedureRequest)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) {
|
||||
delete _impl_.pid_;
|
||||
}
|
||||
_impl_.pid_ = nullptr;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* QueryProcedureRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_header(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_pid(), 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* QueryProcedureRequest::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.QueryProcedureRequest)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
if (this->_internal_has_header()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(1, _Internal::header(this),
|
||||
_Internal::header(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
if (this->_internal_has_pid()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(2, _Internal::pid(this),
|
||||
_Internal::pid(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.QueryProcedureRequest)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t QueryProcedureRequest::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.QueryProcedureRequest)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
if (this->_internal_has_header()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.header_);
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
if (this->_internal_has_pid()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.pid_);
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData QueryProcedureRequest::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
QueryProcedureRequest::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*QueryProcedureRequest::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void QueryProcedureRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<QueryProcedureRequest*>(&to_msg);
|
||||
auto& from = static_cast<const QueryProcedureRequest&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.QueryProcedureRequest)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_has_header()) {
|
||||
_this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom(
|
||||
from._internal_header());
|
||||
}
|
||||
if (from._internal_has_pid()) {
|
||||
_this->_internal_mutable_pid()->::greptime::v1::meta::ProcedureId::MergeFrom(
|
||||
from._internal_pid());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void QueryProcedureRequest::CopyFrom(const QueryProcedureRequest& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.QueryProcedureRequest)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool QueryProcedureRequest::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void QueryProcedureRequest::InternalSwap(QueryProcedureRequest* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(QueryProcedureRequest, _impl_.pid_)
|
||||
+ sizeof(QueryProcedureRequest::_impl_.pid_)
|
||||
- PROTOBUF_FIELD_OFFSET(QueryProcedureRequest, _impl_.header_)>(
|
||||
reinterpret_cast<char*>(&_impl_.header_),
|
||||
reinterpret_cast<char*>(&other->_impl_.header_));
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata QueryProcedureRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[0]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class ProcedureStateResponse::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::meta::ResponseHeader& header(const ProcedureStateResponse* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::meta::ResponseHeader&
|
||||
ProcedureStateResponse::_Internal::header(const ProcedureStateResponse* msg) {
|
||||
return *msg->_impl_.header_;
|
||||
}
|
||||
void ProcedureStateResponse::clear_header() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
}
|
||||
ProcedureStateResponse::ProcedureStateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
SharedCtor(arena, is_message_owned);
|
||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.ProcedureStateResponse)
|
||||
}
|
||||
ProcedureStateResponse::ProcedureStateResponse(const ProcedureStateResponse& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
ProcedureStateResponse* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.error_){}
|
||||
, decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.status_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
_impl_.error_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.error_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (!from._internal_error().empty()) {
|
||||
_this->_impl_.error_.Set(from._internal_error(),
|
||||
_this->GetArenaForAllocation());
|
||||
}
|
||||
if (from._internal_has_header()) {
|
||||
_this->_impl_.header_ = new ::greptime::v1::meta::ResponseHeader(*from._impl_.header_);
|
||||
}
|
||||
_this->_impl_.status_ = from._impl_.status_;
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.ProcedureStateResponse)
|
||||
}
|
||||
|
||||
inline void ProcedureStateResponse::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.error_){}
|
||||
, decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.status_){0}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
_impl_.error_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.error_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
}
|
||||
|
||||
ProcedureStateResponse::~ProcedureStateResponse() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.ProcedureStateResponse)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void ProcedureStateResponse::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
_impl_.error_.Destroy();
|
||||
if (this != internal_default_instance()) delete _impl_.header_;
|
||||
}
|
||||
|
||||
void ProcedureStateResponse::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void ProcedureStateResponse::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.ProcedureStateResponse)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.error_.ClearToEmpty();
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
_impl_.status_ = 0;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* ProcedureStateResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// .greptime.v1.meta.ResponseHeader header = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_header(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.meta.ProcedureStatus status = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
||||
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
_internal_set_status(static_cast<::greptime::v1::meta::ProcedureStatus>(val));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// string error = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
||||
auto str = _internal_mutable_error();
|
||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||
CHK_(ptr);
|
||||
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.ProcedureStateResponse.error"));
|
||||
} 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* ProcedureStateResponse::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.ProcedureStateResponse)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .greptime.v1.meta.ResponseHeader header = 1;
|
||||
if (this->_internal_has_header()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(1, _Internal::header(this),
|
||||
_Internal::header(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.ProcedureStatus status = 2;
|
||||
if (this->_internal_status() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
||||
2, this->_internal_status(), target);
|
||||
}
|
||||
|
||||
// string error = 3;
|
||||
if (!this->_internal_error().empty()) {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||
this->_internal_error().data(), static_cast<int>(this->_internal_error().length()),
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||
"greptime.v1.meta.ProcedureStateResponse.error");
|
||||
target = stream->WriteStringMaybeAliased(
|
||||
3, this->_internal_error(), target);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.ProcedureStateResponse)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t ProcedureStateResponse::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.ProcedureStateResponse)
|
||||
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 error = 3;
|
||||
if (!this->_internal_error().empty()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||
this->_internal_error());
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.ResponseHeader header = 1;
|
||||
if (this->_internal_has_header()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.header_);
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.ProcedureStatus status = 2;
|
||||
if (this->_internal_status() != 0) {
|
||||
total_size += 1 +
|
||||
::_pbi::WireFormatLite::EnumSize(this->_internal_status());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcedureStateResponse::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
ProcedureStateResponse::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcedureStateResponse::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void ProcedureStateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<ProcedureStateResponse*>(&to_msg);
|
||||
auto& from = static_cast<const ProcedureStateResponse&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.ProcedureStateResponse)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (!from._internal_error().empty()) {
|
||||
_this->_internal_set_error(from._internal_error());
|
||||
}
|
||||
if (from._internal_has_header()) {
|
||||
_this->_internal_mutable_header()->::greptime::v1::meta::ResponseHeader::MergeFrom(
|
||||
from._internal_header());
|
||||
}
|
||||
if (from._internal_status() != 0) {
|
||||
_this->_internal_set_status(from._internal_status());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void ProcedureStateResponse::CopyFrom(const ProcedureStateResponse& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.ProcedureStateResponse)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool ProcedureStateResponse::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void ProcedureStateResponse::InternalSwap(ProcedureStateResponse* 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_.error_, lhs_arena,
|
||||
&other->_impl_.error_, rhs_arena
|
||||
);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(ProcedureStateResponse, _impl_.status_)
|
||||
+ sizeof(ProcedureStateResponse::_impl_.status_)
|
||||
- PROTOBUF_FIELD_OFFSET(ProcedureStateResponse, _impl_.header_)>(
|
||||
reinterpret_cast<char*>(&_impl_.header_),
|
||||
reinterpret_cast<char*>(&other->_impl_.header_));
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata ProcedureStateResponse::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[1]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::QueryProcedureRequest*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::QueryProcedureRequest >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::QueryProcedureRequest >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::ProcedureStateResponse*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::ProcedureStateResponse >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::ProcedureStateResponse >(arena);
|
||||
}
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
@@ -0,0 +1,824 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: greptime/v1/meta/procedure.proto
|
||||
|
||||
#ifndef GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fmeta_2fprocedure_2eproto
|
||||
#define GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fmeta_2fprocedure_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#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 <google/protobuf/port_undef.inc>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/arena.h>
|
||||
#include <google/protobuf/arenastring.h>
|
||||
#include <google/protobuf/generated_message_util.h>
|
||||
#include <google/protobuf/metadata_lite.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/message.h>
|
||||
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||
#include <google/protobuf/generated_enum_reflection.h>
|
||||
#include <google/protobuf/unknown_field_set.h>
|
||||
#include "greptime/v1/meta/common.pb.h"
|
||||
#include "greptime/v1/meta/ddl.pb.h"
|
||||
#include "greptime/v1/meta/region.pb.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fmeta_2fprocedure_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_2fmeta_2fprocedure_2eproto {
|
||||
static const uint32_t offsets[];
|
||||
};
|
||||
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto;
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
class ProcedureStateResponse;
|
||||
struct ProcedureStateResponseDefaultTypeInternal;
|
||||
extern ProcedureStateResponseDefaultTypeInternal _ProcedureStateResponse_default_instance_;
|
||||
class QueryProcedureRequest;
|
||||
struct QueryProcedureRequestDefaultTypeInternal;
|
||||
extern QueryProcedureRequestDefaultTypeInternal _QueryProcedureRequest_default_instance_;
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::greptime::v1::meta::ProcedureStateResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::ProcedureStateResponse>(Arena*);
|
||||
template<> ::greptime::v1::meta::QueryProcedureRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::QueryProcedureRequest>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
|
||||
enum ProcedureStatus : int {
|
||||
Running = 0,
|
||||
Done = 1,
|
||||
Retrying = 2,
|
||||
Failed = 3,
|
||||
ProcedureStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
|
||||
ProcedureStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
|
||||
};
|
||||
bool ProcedureStatus_IsValid(int value);
|
||||
constexpr ProcedureStatus ProcedureStatus_MIN = Running;
|
||||
constexpr ProcedureStatus ProcedureStatus_MAX = Failed;
|
||||
constexpr int ProcedureStatus_ARRAYSIZE = ProcedureStatus_MAX + 1;
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProcedureStatus_descriptor();
|
||||
template<typename T>
|
||||
inline const std::string& ProcedureStatus_Name(T enum_t_value) {
|
||||
static_assert(::std::is_same<T, ProcedureStatus>::value ||
|
||||
::std::is_integral<T>::value,
|
||||
"Incorrect type passed to function ProcedureStatus_Name.");
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
||||
ProcedureStatus_descriptor(), enum_t_value);
|
||||
}
|
||||
inline bool ProcedureStatus_Parse(
|
||||
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProcedureStatus* value) {
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ProcedureStatus>(
|
||||
ProcedureStatus_descriptor(), name, value);
|
||||
}
|
||||
// ===================================================================
|
||||
|
||||
class QueryProcedureRequest final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.QueryProcedureRequest) */ {
|
||||
public:
|
||||
inline QueryProcedureRequest() : QueryProcedureRequest(nullptr) {}
|
||||
~QueryProcedureRequest() override;
|
||||
explicit PROTOBUF_CONSTEXPR QueryProcedureRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
QueryProcedureRequest(const QueryProcedureRequest& from);
|
||||
QueryProcedureRequest(QueryProcedureRequest&& from) noexcept
|
||||
: QueryProcedureRequest() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline QueryProcedureRequest& operator=(const QueryProcedureRequest& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline QueryProcedureRequest& operator=(QueryProcedureRequest&& 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 QueryProcedureRequest& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const QueryProcedureRequest* internal_default_instance() {
|
||||
return reinterpret_cast<const QueryProcedureRequest*>(
|
||||
&_QueryProcedureRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
friend void swap(QueryProcedureRequest& a, QueryProcedureRequest& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(QueryProcedureRequest* 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(QueryProcedureRequest* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
QueryProcedureRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<QueryProcedureRequest>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const QueryProcedureRequest& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const QueryProcedureRequest& from) {
|
||||
QueryProcedureRequest::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(QueryProcedureRequest* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.meta.QueryProcedureRequest";
|
||||
}
|
||||
protected:
|
||||
explicit QueryProcedureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned = false);
|
||||
public:
|
||||
|
||||
static const ClassData _class_data_;
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kHeaderFieldNumber = 1,
|
||||
kPidFieldNumber = 2,
|
||||
};
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
bool has_header() const;
|
||||
private:
|
||||
bool _internal_has_header() const;
|
||||
public:
|
||||
void clear_header();
|
||||
const ::greptime::v1::meta::RequestHeader& header() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::meta::RequestHeader* release_header();
|
||||
::greptime::v1::meta::RequestHeader* mutable_header();
|
||||
void set_allocated_header(::greptime::v1::meta::RequestHeader* header);
|
||||
private:
|
||||
const ::greptime::v1::meta::RequestHeader& _internal_header() const;
|
||||
::greptime::v1::meta::RequestHeader* _internal_mutable_header();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_header(
|
||||
::greptime::v1::meta::RequestHeader* header);
|
||||
::greptime::v1::meta::RequestHeader* unsafe_arena_release_header();
|
||||
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
bool has_pid() const;
|
||||
private:
|
||||
bool _internal_has_pid() const;
|
||||
public:
|
||||
void clear_pid();
|
||||
const ::greptime::v1::meta::ProcedureId& pid() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::meta::ProcedureId* release_pid();
|
||||
::greptime::v1::meta::ProcedureId* mutable_pid();
|
||||
void set_allocated_pid(::greptime::v1::meta::ProcedureId* pid);
|
||||
private:
|
||||
const ::greptime::v1::meta::ProcedureId& _internal_pid() const;
|
||||
::greptime::v1::meta::ProcedureId* _internal_mutable_pid();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_pid(
|
||||
::greptime::v1::meta::ProcedureId* pid);
|
||||
::greptime::v1::meta::ProcedureId* unsafe_arena_release_pid();
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.QueryProcedureRequest)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::greptime::v1::meta::RequestHeader* header_;
|
||||
::greptime::v1::meta::ProcedureId* pid_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class ProcedureStateResponse final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.ProcedureStateResponse) */ {
|
||||
public:
|
||||
inline ProcedureStateResponse() : ProcedureStateResponse(nullptr) {}
|
||||
~ProcedureStateResponse() override;
|
||||
explicit PROTOBUF_CONSTEXPR ProcedureStateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
ProcedureStateResponse(const ProcedureStateResponse& from);
|
||||
ProcedureStateResponse(ProcedureStateResponse&& from) noexcept
|
||||
: ProcedureStateResponse() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline ProcedureStateResponse& operator=(const ProcedureStateResponse& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline ProcedureStateResponse& operator=(ProcedureStateResponse&& 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 ProcedureStateResponse& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const ProcedureStateResponse* internal_default_instance() {
|
||||
return reinterpret_cast<const ProcedureStateResponse*>(
|
||||
&_ProcedureStateResponse_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
1;
|
||||
|
||||
friend void swap(ProcedureStateResponse& a, ProcedureStateResponse& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(ProcedureStateResponse* 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(ProcedureStateResponse* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
ProcedureStateResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<ProcedureStateResponse>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const ProcedureStateResponse& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const ProcedureStateResponse& from) {
|
||||
ProcedureStateResponse::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(ProcedureStateResponse* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.meta.ProcedureStateResponse";
|
||||
}
|
||||
protected:
|
||||
explicit ProcedureStateResponse(::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 {
|
||||
kErrorFieldNumber = 3,
|
||||
kHeaderFieldNumber = 1,
|
||||
kStatusFieldNumber = 2,
|
||||
};
|
||||
// string error = 3;
|
||||
void clear_error();
|
||||
const std::string& error() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_error(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_error();
|
||||
PROTOBUF_NODISCARD std::string* release_error();
|
||||
void set_allocated_error(std::string* error);
|
||||
private:
|
||||
const std::string& _internal_error() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_error(const std::string& value);
|
||||
std::string* _internal_mutable_error();
|
||||
public:
|
||||
|
||||
// .greptime.v1.meta.ResponseHeader header = 1;
|
||||
bool has_header() const;
|
||||
private:
|
||||
bool _internal_has_header() const;
|
||||
public:
|
||||
void clear_header();
|
||||
const ::greptime::v1::meta::ResponseHeader& header() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::meta::ResponseHeader* release_header();
|
||||
::greptime::v1::meta::ResponseHeader* mutable_header();
|
||||
void set_allocated_header(::greptime::v1::meta::ResponseHeader* header);
|
||||
private:
|
||||
const ::greptime::v1::meta::ResponseHeader& _internal_header() const;
|
||||
::greptime::v1::meta::ResponseHeader* _internal_mutable_header();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_header(
|
||||
::greptime::v1::meta::ResponseHeader* header);
|
||||
::greptime::v1::meta::ResponseHeader* unsafe_arena_release_header();
|
||||
|
||||
// .greptime.v1.meta.ProcedureStatus status = 2;
|
||||
void clear_status();
|
||||
::greptime::v1::meta::ProcedureStatus status() const;
|
||||
void set_status(::greptime::v1::meta::ProcedureStatus value);
|
||||
private:
|
||||
::greptime::v1::meta::ProcedureStatus _internal_status() const;
|
||||
void _internal_set_status(::greptime::v1::meta::ProcedureStatus value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureStateResponse)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_;
|
||||
::greptime::v1::meta::ResponseHeader* header_;
|
||||
int status_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// QueryProcedureRequest
|
||||
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
inline bool QueryProcedureRequest::_internal_has_header() const {
|
||||
return this != internal_default_instance() && _impl_.header_ != nullptr;
|
||||
}
|
||||
inline bool QueryProcedureRequest::has_header() const {
|
||||
return _internal_has_header();
|
||||
}
|
||||
inline const ::greptime::v1::meta::RequestHeader& QueryProcedureRequest::_internal_header() const {
|
||||
const ::greptime::v1::meta::RequestHeader* p = _impl_.header_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::meta::RequestHeader&>(
|
||||
::greptime::v1::meta::_RequestHeader_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::meta::RequestHeader& QueryProcedureRequest::header() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.QueryProcedureRequest.header)
|
||||
return _internal_header();
|
||||
}
|
||||
inline void QueryProcedureRequest::unsafe_arena_set_allocated_header(
|
||||
::greptime::v1::meta::RequestHeader* header) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
|
||||
}
|
||||
_impl_.header_ = header;
|
||||
if (header) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.QueryProcedureRequest.header)
|
||||
}
|
||||
inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::release_header() {
|
||||
|
||||
::greptime::v1::meta::RequestHeader* temp = _impl_.header_;
|
||||
_impl_.header_ = nullptr;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
if (GetArenaForAllocation() == nullptr) { delete old; }
|
||||
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::unsafe_arena_release_header() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.QueryProcedureRequest.header)
|
||||
|
||||
::greptime::v1::meta::RequestHeader* temp = _impl_.header_;
|
||||
_impl_.header_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::_internal_mutable_header() {
|
||||
|
||||
if (_impl_.header_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(GetArenaForAllocation());
|
||||
_impl_.header_ = p;
|
||||
}
|
||||
return _impl_.header_;
|
||||
}
|
||||
inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::mutable_header() {
|
||||
::greptime::v1::meta::RequestHeader* _msg = _internal_mutable_header();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.QueryProcedureRequest.header)
|
||||
return _msg;
|
||||
}
|
||||
inline void QueryProcedureRequest::set_allocated_header(::greptime::v1::meta::RequestHeader* header) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
|
||||
}
|
||||
if (header) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
|
||||
if (message_arena != submessage_arena) {
|
||||
header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, header, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.header_ = header;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.QueryProcedureRequest.header)
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
inline bool QueryProcedureRequest::_internal_has_pid() const {
|
||||
return this != internal_default_instance() && _impl_.pid_ != nullptr;
|
||||
}
|
||||
inline bool QueryProcedureRequest::has_pid() const {
|
||||
return _internal_has_pid();
|
||||
}
|
||||
inline const ::greptime::v1::meta::ProcedureId& QueryProcedureRequest::_internal_pid() const {
|
||||
const ::greptime::v1::meta::ProcedureId* p = _impl_.pid_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::meta::ProcedureId&>(
|
||||
::greptime::v1::meta::_ProcedureId_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::meta::ProcedureId& QueryProcedureRequest::pid() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.QueryProcedureRequest.pid)
|
||||
return _internal_pid();
|
||||
}
|
||||
inline void QueryProcedureRequest::unsafe_arena_set_allocated_pid(
|
||||
::greptime::v1::meta::ProcedureId* pid) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pid_);
|
||||
}
|
||||
_impl_.pid_ = pid;
|
||||
if (pid) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.QueryProcedureRequest.pid)
|
||||
}
|
||||
inline ::greptime::v1::meta::ProcedureId* QueryProcedureRequest::release_pid() {
|
||||
|
||||
::greptime::v1::meta::ProcedureId* temp = _impl_.pid_;
|
||||
_impl_.pid_ = nullptr;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
if (GetArenaForAllocation() == nullptr) { delete old; }
|
||||
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::meta::ProcedureId* QueryProcedureRequest::unsafe_arena_release_pid() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.QueryProcedureRequest.pid)
|
||||
|
||||
::greptime::v1::meta::ProcedureId* temp = _impl_.pid_;
|
||||
_impl_.pid_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::meta::ProcedureId* QueryProcedureRequest::_internal_mutable_pid() {
|
||||
|
||||
if (_impl_.pid_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::meta::ProcedureId>(GetArenaForAllocation());
|
||||
_impl_.pid_ = p;
|
||||
}
|
||||
return _impl_.pid_;
|
||||
}
|
||||
inline ::greptime::v1::meta::ProcedureId* QueryProcedureRequest::mutable_pid() {
|
||||
::greptime::v1::meta::ProcedureId* _msg = _internal_mutable_pid();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.QueryProcedureRequest.pid)
|
||||
return _msg;
|
||||
}
|
||||
inline void QueryProcedureRequest::set_allocated_pid(::greptime::v1::meta::ProcedureId* pid) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pid_);
|
||||
}
|
||||
if (pid) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pid));
|
||||
if (message_arena != submessage_arena) {
|
||||
pid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, pid, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.pid_ = pid;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.QueryProcedureRequest.pid)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// ProcedureStateResponse
|
||||
|
||||
// .greptime.v1.meta.ResponseHeader header = 1;
|
||||
inline bool ProcedureStateResponse::_internal_has_header() const {
|
||||
return this != internal_default_instance() && _impl_.header_ != nullptr;
|
||||
}
|
||||
inline bool ProcedureStateResponse::has_header() const {
|
||||
return _internal_has_header();
|
||||
}
|
||||
inline const ::greptime::v1::meta::ResponseHeader& ProcedureStateResponse::_internal_header() const {
|
||||
const ::greptime::v1::meta::ResponseHeader* p = _impl_.header_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::meta::ResponseHeader&>(
|
||||
::greptime::v1::meta::_ResponseHeader_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::meta::ResponseHeader& ProcedureStateResponse::header() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureStateResponse.header)
|
||||
return _internal_header();
|
||||
}
|
||||
inline void ProcedureStateResponse::unsafe_arena_set_allocated_header(
|
||||
::greptime::v1::meta::ResponseHeader* header) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
|
||||
}
|
||||
_impl_.header_ = header;
|
||||
if (header) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.ProcedureStateResponse.header)
|
||||
}
|
||||
inline ::greptime::v1::meta::ResponseHeader* ProcedureStateResponse::release_header() {
|
||||
|
||||
::greptime::v1::meta::ResponseHeader* temp = _impl_.header_;
|
||||
_impl_.header_ = nullptr;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
if (GetArenaForAllocation() == nullptr) { delete old; }
|
||||
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::meta::ResponseHeader* ProcedureStateResponse::unsafe_arena_release_header() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureStateResponse.header)
|
||||
|
||||
::greptime::v1::meta::ResponseHeader* temp = _impl_.header_;
|
||||
_impl_.header_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::meta::ResponseHeader* ProcedureStateResponse::_internal_mutable_header() {
|
||||
|
||||
if (_impl_.header_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(GetArenaForAllocation());
|
||||
_impl_.header_ = p;
|
||||
}
|
||||
return _impl_.header_;
|
||||
}
|
||||
inline ::greptime::v1::meta::ResponseHeader* ProcedureStateResponse::mutable_header() {
|
||||
::greptime::v1::meta::ResponseHeader* _msg = _internal_mutable_header();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureStateResponse.header)
|
||||
return _msg;
|
||||
}
|
||||
inline void ProcedureStateResponse::set_allocated_header(::greptime::v1::meta::ResponseHeader* header) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
|
||||
}
|
||||
if (header) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
|
||||
if (message_arena != submessage_arena) {
|
||||
header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, header, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.header_ = header;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureStateResponse.header)
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.ProcedureStatus status = 2;
|
||||
inline void ProcedureStateResponse::clear_status() {
|
||||
_impl_.status_ = 0;
|
||||
}
|
||||
inline ::greptime::v1::meta::ProcedureStatus ProcedureStateResponse::_internal_status() const {
|
||||
return static_cast< ::greptime::v1::meta::ProcedureStatus >(_impl_.status_);
|
||||
}
|
||||
inline ::greptime::v1::meta::ProcedureStatus ProcedureStateResponse::status() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureStateResponse.status)
|
||||
return _internal_status();
|
||||
}
|
||||
inline void ProcedureStateResponse::_internal_set_status(::greptime::v1::meta::ProcedureStatus value) {
|
||||
|
||||
_impl_.status_ = value;
|
||||
}
|
||||
inline void ProcedureStateResponse::set_status(::greptime::v1::meta::ProcedureStatus value) {
|
||||
_internal_set_status(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureStateResponse.status)
|
||||
}
|
||||
|
||||
// string error = 3;
|
||||
inline void ProcedureStateResponse::clear_error() {
|
||||
_impl_.error_.ClearToEmpty();
|
||||
}
|
||||
inline const std::string& ProcedureStateResponse::error() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureStateResponse.error)
|
||||
return _internal_error();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void ProcedureStateResponse::set_error(ArgT0&& arg0, ArgT... args) {
|
||||
|
||||
_impl_.error_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureStateResponse.error)
|
||||
}
|
||||
inline std::string* ProcedureStateResponse::mutable_error() {
|
||||
std::string* _s = _internal_mutable_error();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureStateResponse.error)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& ProcedureStateResponse::_internal_error() const {
|
||||
return _impl_.error_.Get();
|
||||
}
|
||||
inline void ProcedureStateResponse::_internal_set_error(const std::string& value) {
|
||||
|
||||
_impl_.error_.Set(value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* ProcedureStateResponse::_internal_mutable_error() {
|
||||
|
||||
return _impl_.error_.Mutable(GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* ProcedureStateResponse::release_error() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureStateResponse.error)
|
||||
return _impl_.error_.Release();
|
||||
}
|
||||
inline void ProcedureStateResponse::set_allocated_error(std::string* error) {
|
||||
if (error != nullptr) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.error_.SetAllocated(error, GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (_impl_.error_.IsDefault()) {
|
||||
_impl_.error_.Set("", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureStateResponse.error)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
|
||||
template <> struct is_proto_enum< ::greptime::v1::meta::ProcedureStatus> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::meta::ProcedureStatus>() {
|
||||
return ::greptime::v1::meta::ProcedureStatus_descriptor();
|
||||
}
|
||||
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fmeta_2fprocedure_2eproto
|
||||
@@ -0,0 +1,29 @@
|
||||
// Generated by the gRPC C++ plugin.
|
||||
// If you make any local change, they will be lost.
|
||||
// source: greptime/v1/meta/region.proto
|
||||
|
||||
#include "greptime/v1/meta/region.pb.h"
|
||||
#include "greptime/v1/meta/region.grpc.pb.h"
|
||||
|
||||
#include <functional>
|
||||
#include <grpcpp/support/async_stream.h>
|
||||
#include <grpcpp/support/async_unary_call.h>
|
||||
#include <grpcpp/impl/channel_interface.h>
|
||||
#include <grpcpp/impl/client_unary_call.h>
|
||||
#include <grpcpp/support/client_callback.h>
|
||||
#include <grpcpp/support/message_allocator.h>
|
||||
#include <grpcpp/support/method_handler.h>
|
||||
#include <grpcpp/impl/rpc_service_method.h>
|
||||
#include <grpcpp/support/server_callback.h>
|
||||
#include <grpcpp/impl/codegen/server_callback_handlers.h>
|
||||
#include <grpcpp/server_context.h>
|
||||
#include <grpcpp/impl/service_type.h>
|
||||
#include <grpcpp/support/sync_stream.h>
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
|
||||
} // namespace greptime
|
||||
} // namespace v1
|
||||
} // namespace meta
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
// Generated by the gRPC C++ plugin.
|
||||
// If you make any local change, they will be lost.
|
||||
// source: greptime/v1/meta/region.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_2fmeta_2fregion_2eproto__INCLUDED
|
||||
#define GRPC_greptime_2fv1_2fmeta_2fregion_2eproto__INCLUDED
|
||||
|
||||
#include "greptime/v1/meta/region.pb.h"
|
||||
|
||||
#include <functional>
|
||||
#include <grpcpp/generic/async_generic_service.h>
|
||||
#include <grpcpp/support/async_stream.h>
|
||||
#include <grpcpp/support/async_unary_call.h>
|
||||
#include <grpcpp/support/client_callback.h>
|
||||
#include <grpcpp/client_context.h>
|
||||
#include <grpcpp/completion_queue.h>
|
||||
#include <grpcpp/support/message_allocator.h>
|
||||
#include <grpcpp/support/method_handler.h>
|
||||
#include <grpcpp/impl/codegen/proto_utils.h>
|
||||
#include <grpcpp/impl/rpc_method.h>
|
||||
#include <grpcpp/support/server_callback.h>
|
||||
#include <grpcpp/impl/codegen/server_callback_handlers.h>
|
||||
#include <grpcpp/server_context.h>
|
||||
#include <grpcpp/impl/service_type.h>
|
||||
#include <grpcpp/impl/codegen/status.h>
|
||||
#include <grpcpp/support/stub_options.h>
|
||||
#include <grpcpp/support/sync_stream.h>
|
||||
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
|
||||
|
||||
#endif // GRPC_greptime_2fv1_2fmeta_2fregion_2eproto__INCLUDED
|
||||
@@ -0,0 +1,703 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: greptime/v1/meta/region.proto
|
||||
|
||||
#include "greptime/v1/meta/region.pb.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/wire_format_lite.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
|
||||
PROTOBUF_PRAGMA_INIT_SEG
|
||||
|
||||
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
|
||||
namespace _pbi = _pb::internal;
|
||||
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
PROTOBUF_CONSTEXPR MigrateRegionRequest::MigrateRegionRequest(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.header_)*/nullptr
|
||||
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
|
||||
, /*decltype(_impl_.from_peer_)*/uint64_t{0u}
|
||||
, /*decltype(_impl_.to_peer_)*/uint64_t{0u}
|
||||
, /*decltype(_impl_.replay_timeout_secs_)*/0u
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct MigrateRegionRequestDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR MigrateRegionRequestDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~MigrateRegionRequestDefaultTypeInternal() {}
|
||||
union {
|
||||
MigrateRegionRequest _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MigrateRegionRequestDefaultTypeInternal _MigrateRegionRequest_default_instance_;
|
||||
PROTOBUF_CONSTEXPR MigrateRegionResponse::MigrateRegionResponse(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.header_)*/nullptr
|
||||
, /*decltype(_impl_.pid_)*/nullptr
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct MigrateRegionResponseDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR MigrateRegionResponseDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~MigrateRegionResponseDefaultTypeInternal() {}
|
||||
union {
|
||||
MigrateRegionResponse _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MigrateRegionResponseDefaultTypeInternal _MigrateRegionResponse_default_instance_;
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fregion_2eproto[2];
|
||||
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fmeta_2fregion_2eproto = nullptr;
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fregion_2eproto = nullptr;
|
||||
|
||||
const uint32_t TableStruct_greptime_2fv1_2fmeta_2fregion_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionRequest, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionRequest, _impl_.header_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionRequest, _impl_.region_id_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionRequest, _impl_.from_peer_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionRequest, _impl_.to_peer_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionRequest, _impl_.replay_timeout_secs_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionResponse, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionResponse, _impl_.header_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionResponse, _impl_.pid_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, -1, sizeof(::greptime::v1::meta::MigrateRegionRequest)},
|
||||
{ 11, -1, -1, sizeof(::greptime::v1::meta::MigrateRegionResponse)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::meta::_MigrateRegionRequest_default_instance_._instance,
|
||||
&::greptime::v1::meta::_MigrateRegionResponse_default_instance_._instance,
|
||||
};
|
||||
|
||||
const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fregion_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||
"\n\035greptime/v1/meta/region.proto\022\020greptim"
|
||||
"e.v1.meta\032\035greptime/v1/meta/common.proto"
|
||||
"\"\233\001\n\024MigrateRegionRequest\022/\n\006header\030\001 \001("
|
||||
"\0132\037.greptime.v1.meta.RequestHeader\022\021\n\tre"
|
||||
"gion_id\030\003 \001(\004\022\021\n\tfrom_peer\030\004 \001(\004\022\017\n\007to_p"
|
||||
"eer\030\005 \001(\004\022\033\n\023replay_timeout_secs\030\006 \001(\r\"u"
|
||||
"\n\025MigrateRegionResponse\0220\n\006header\030\001 \001(\0132"
|
||||
" .greptime.v1.meta.ResponseHeader\022*\n\003pid"
|
||||
"\030\002 \001(\0132\035.greptime.v1.meta.ProcedureIdB<Z"
|
||||
":github.com/GreptimeTeam/greptime-proto/"
|
||||
"go/greptime/v1/metab\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_deps[1] = {
|
||||
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto = {
|
||||
false, false, 427, descriptor_table_protodef_greptime_2fv1_2fmeta_2fregion_2eproto,
|
||||
"greptime/v1/meta/region.proto",
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_deps, 1, 2,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fregion_2eproto::offsets,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fregion_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fregion_2eproto,
|
||||
file_level_service_descriptors_greptime_2fv1_2fmeta_2fregion_2eproto,
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_getter() {
|
||||
return &descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto;
|
||||
}
|
||||
|
||||
// Force running AddDescriptors() at dynamic initialization time.
|
||||
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_greptime_2fv1_2fmeta_2fregion_2eproto(&descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto);
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class MigrateRegionRequest::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::meta::RequestHeader& header(const MigrateRegionRequest* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::meta::RequestHeader&
|
||||
MigrateRegionRequest::_Internal::header(const MigrateRegionRequest* msg) {
|
||||
return *msg->_impl_.header_;
|
||||
}
|
||||
void MigrateRegionRequest::clear_header() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
}
|
||||
MigrateRegionRequest::MigrateRegionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
SharedCtor(arena, is_message_owned);
|
||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.MigrateRegionRequest)
|
||||
}
|
||||
MigrateRegionRequest::MigrateRegionRequest(const MigrateRegionRequest& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
MigrateRegionRequest* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.region_id_){}
|
||||
, decltype(_impl_.from_peer_){}
|
||||
, decltype(_impl_.to_peer_){}
|
||||
, decltype(_impl_.replay_timeout_secs_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
if (from._internal_has_header()) {
|
||||
_this->_impl_.header_ = new ::greptime::v1::meta::RequestHeader(*from._impl_.header_);
|
||||
}
|
||||
::memcpy(&_impl_.region_id_, &from._impl_.region_id_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.replay_timeout_secs_) -
|
||||
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.replay_timeout_secs_));
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.MigrateRegionRequest)
|
||||
}
|
||||
|
||||
inline void MigrateRegionRequest::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.region_id_){uint64_t{0u}}
|
||||
, decltype(_impl_.from_peer_){uint64_t{0u}}
|
||||
, decltype(_impl_.to_peer_){uint64_t{0u}}
|
||||
, decltype(_impl_.replay_timeout_secs_){0u}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
MigrateRegionRequest::~MigrateRegionRequest() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.MigrateRegionRequest)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void MigrateRegionRequest::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
if (this != internal_default_instance()) delete _impl_.header_;
|
||||
}
|
||||
|
||||
void MigrateRegionRequest::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void MigrateRegionRequest::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.MigrateRegionRequest)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
::memset(&_impl_.region_id_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&_impl_.replay_timeout_secs_) -
|
||||
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.replay_timeout_secs_));
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* MigrateRegionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_header(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// uint64 region_id = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
||||
_impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// uint64 from_peer = 4;
|
||||
case 4:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
|
||||
_impl_.from_peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// uint64 to_peer = 5;
|
||||
case 5:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
|
||||
_impl_.to_peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// uint32 replay_timeout_secs = 6;
|
||||
case 6:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
|
||||
_impl_.replay_timeout_secs_ = ::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* MigrateRegionRequest::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.MigrateRegionRequest)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
if (this->_internal_has_header()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(1, _Internal::header(this),
|
||||
_Internal::header(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// uint64 region_id = 3;
|
||||
if (this->_internal_region_id() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_region_id(), target);
|
||||
}
|
||||
|
||||
// uint64 from_peer = 4;
|
||||
if (this->_internal_from_peer() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_from_peer(), target);
|
||||
}
|
||||
|
||||
// uint64 to_peer = 5;
|
||||
if (this->_internal_to_peer() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_to_peer(), target);
|
||||
}
|
||||
|
||||
// uint32 replay_timeout_secs = 6;
|
||||
if (this->_internal_replay_timeout_secs() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_replay_timeout_secs(), target);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.MigrateRegionRequest)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t MigrateRegionRequest::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.MigrateRegionRequest)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
if (this->_internal_has_header()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.header_);
|
||||
}
|
||||
|
||||
// uint64 region_id = 3;
|
||||
if (this->_internal_region_id() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
|
||||
}
|
||||
|
||||
// uint64 from_peer = 4;
|
||||
if (this->_internal_from_peer() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_from_peer());
|
||||
}
|
||||
|
||||
// uint64 to_peer = 5;
|
||||
if (this->_internal_to_peer() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_to_peer());
|
||||
}
|
||||
|
||||
// uint32 replay_timeout_secs = 6;
|
||||
if (this->_internal_replay_timeout_secs() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_replay_timeout_secs());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MigrateRegionRequest::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
MigrateRegionRequest::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MigrateRegionRequest::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void MigrateRegionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<MigrateRegionRequest*>(&to_msg);
|
||||
auto& from = static_cast<const MigrateRegionRequest&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.MigrateRegionRequest)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_has_header()) {
|
||||
_this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom(
|
||||
from._internal_header());
|
||||
}
|
||||
if (from._internal_region_id() != 0) {
|
||||
_this->_internal_set_region_id(from._internal_region_id());
|
||||
}
|
||||
if (from._internal_from_peer() != 0) {
|
||||
_this->_internal_set_from_peer(from._internal_from_peer());
|
||||
}
|
||||
if (from._internal_to_peer() != 0) {
|
||||
_this->_internal_set_to_peer(from._internal_to_peer());
|
||||
}
|
||||
if (from._internal_replay_timeout_secs() != 0) {
|
||||
_this->_internal_set_replay_timeout_secs(from._internal_replay_timeout_secs());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void MigrateRegionRequest::CopyFrom(const MigrateRegionRequest& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.MigrateRegionRequest)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool MigrateRegionRequest::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void MigrateRegionRequest::InternalSwap(MigrateRegionRequest* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(MigrateRegionRequest, _impl_.replay_timeout_secs_)
|
||||
+ sizeof(MigrateRegionRequest::_impl_.replay_timeout_secs_)
|
||||
- PROTOBUF_FIELD_OFFSET(MigrateRegionRequest, _impl_.header_)>(
|
||||
reinterpret_cast<char*>(&_impl_.header_),
|
||||
reinterpret_cast<char*>(&other->_impl_.header_));
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata MigrateRegionRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fregion_2eproto[0]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class MigrateRegionResponse::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::meta::ResponseHeader& header(const MigrateRegionResponse* msg);
|
||||
static const ::greptime::v1::meta::ProcedureId& pid(const MigrateRegionResponse* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::meta::ResponseHeader&
|
||||
MigrateRegionResponse::_Internal::header(const MigrateRegionResponse* msg) {
|
||||
return *msg->_impl_.header_;
|
||||
}
|
||||
const ::greptime::v1::meta::ProcedureId&
|
||||
MigrateRegionResponse::_Internal::pid(const MigrateRegionResponse* msg) {
|
||||
return *msg->_impl_.pid_;
|
||||
}
|
||||
void MigrateRegionResponse::clear_header() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
}
|
||||
void MigrateRegionResponse::clear_pid() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) {
|
||||
delete _impl_.pid_;
|
||||
}
|
||||
_impl_.pid_ = nullptr;
|
||||
}
|
||||
MigrateRegionResponse::MigrateRegionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
SharedCtor(arena, is_message_owned);
|
||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.MigrateRegionResponse)
|
||||
}
|
||||
MigrateRegionResponse::MigrateRegionResponse(const MigrateRegionResponse& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
MigrateRegionResponse* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.pid_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
if (from._internal_has_header()) {
|
||||
_this->_impl_.header_ = new ::greptime::v1::meta::ResponseHeader(*from._impl_.header_);
|
||||
}
|
||||
if (from._internal_has_pid()) {
|
||||
_this->_impl_.pid_ = new ::greptime::v1::meta::ProcedureId(*from._impl_.pid_);
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.MigrateRegionResponse)
|
||||
}
|
||||
|
||||
inline void MigrateRegionResponse::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.pid_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
MigrateRegionResponse::~MigrateRegionResponse() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.MigrateRegionResponse)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void MigrateRegionResponse::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
if (this != internal_default_instance()) delete _impl_.header_;
|
||||
if (this != internal_default_instance()) delete _impl_.pid_;
|
||||
}
|
||||
|
||||
void MigrateRegionResponse::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void MigrateRegionResponse::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.MigrateRegionResponse)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) {
|
||||
delete _impl_.pid_;
|
||||
}
|
||||
_impl_.pid_ = nullptr;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* MigrateRegionResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// .greptime.v1.meta.ResponseHeader header = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_header(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_pid(), 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* MigrateRegionResponse::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.MigrateRegionResponse)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .greptime.v1.meta.ResponseHeader header = 1;
|
||||
if (this->_internal_has_header()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(1, _Internal::header(this),
|
||||
_Internal::header(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
if (this->_internal_has_pid()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(2, _Internal::pid(this),
|
||||
_Internal::pid(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.MigrateRegionResponse)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t MigrateRegionResponse::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.MigrateRegionResponse)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .greptime.v1.meta.ResponseHeader header = 1;
|
||||
if (this->_internal_has_header()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.header_);
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
if (this->_internal_has_pid()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.pid_);
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MigrateRegionResponse::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
MigrateRegionResponse::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MigrateRegionResponse::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void MigrateRegionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<MigrateRegionResponse*>(&to_msg);
|
||||
auto& from = static_cast<const MigrateRegionResponse&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.MigrateRegionResponse)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_has_header()) {
|
||||
_this->_internal_mutable_header()->::greptime::v1::meta::ResponseHeader::MergeFrom(
|
||||
from._internal_header());
|
||||
}
|
||||
if (from._internal_has_pid()) {
|
||||
_this->_internal_mutable_pid()->::greptime::v1::meta::ProcedureId::MergeFrom(
|
||||
from._internal_pid());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void MigrateRegionResponse::CopyFrom(const MigrateRegionResponse& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.MigrateRegionResponse)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool MigrateRegionResponse::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void MigrateRegionResponse::InternalSwap(MigrateRegionResponse* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(MigrateRegionResponse, _impl_.pid_)
|
||||
+ sizeof(MigrateRegionResponse::_impl_.pid_)
|
||||
- PROTOBUF_FIELD_OFFSET(MigrateRegionResponse, _impl_.header_)>(
|
||||
reinterpret_cast<char*>(&_impl_.header_),
|
||||
reinterpret_cast<char*>(&other->_impl_.header_));
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata MigrateRegionResponse::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fregion_2eproto[1]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::MigrateRegionRequest*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::MigrateRegionRequest >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::MigrateRegionRequest >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::MigrateRegionResponse*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::MigrateRegionResponse >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::MigrateRegionResponse >(arena);
|
||||
}
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
@@ -0,0 +1,811 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: greptime/v1/meta/region.proto
|
||||
|
||||
#ifndef GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fmeta_2fregion_2eproto
|
||||
#define GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fmeta_2fregion_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#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 <google/protobuf/port_undef.inc>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/arena.h>
|
||||
#include <google/protobuf/arenastring.h>
|
||||
#include <google/protobuf/generated_message_util.h>
|
||||
#include <google/protobuf/metadata_lite.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/message.h>
|
||||
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||
#include <google/protobuf/unknown_field_set.h>
|
||||
#include "greptime/v1/meta/common.pb.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fmeta_2fregion_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_2fmeta_2fregion_2eproto {
|
||||
static const uint32_t offsets[];
|
||||
};
|
||||
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto;
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
class MigrateRegionRequest;
|
||||
struct MigrateRegionRequestDefaultTypeInternal;
|
||||
extern MigrateRegionRequestDefaultTypeInternal _MigrateRegionRequest_default_instance_;
|
||||
class MigrateRegionResponse;
|
||||
struct MigrateRegionResponseDefaultTypeInternal;
|
||||
extern MigrateRegionResponseDefaultTypeInternal _MigrateRegionResponse_default_instance_;
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::greptime::v1::meta::MigrateRegionRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::MigrateRegionRequest>(Arena*);
|
||||
template<> ::greptime::v1::meta::MigrateRegionResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::MigrateRegionResponse>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace meta {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class MigrateRegionRequest final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.MigrateRegionRequest) */ {
|
||||
public:
|
||||
inline MigrateRegionRequest() : MigrateRegionRequest(nullptr) {}
|
||||
~MigrateRegionRequest() override;
|
||||
explicit PROTOBUF_CONSTEXPR MigrateRegionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
MigrateRegionRequest(const MigrateRegionRequest& from);
|
||||
MigrateRegionRequest(MigrateRegionRequest&& from) noexcept
|
||||
: MigrateRegionRequest() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline MigrateRegionRequest& operator=(const MigrateRegionRequest& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline MigrateRegionRequest& operator=(MigrateRegionRequest&& 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 MigrateRegionRequest& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const MigrateRegionRequest* internal_default_instance() {
|
||||
return reinterpret_cast<const MigrateRegionRequest*>(
|
||||
&_MigrateRegionRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
friend void swap(MigrateRegionRequest& a, MigrateRegionRequest& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(MigrateRegionRequest* 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(MigrateRegionRequest* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
MigrateRegionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<MigrateRegionRequest>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const MigrateRegionRequest& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const MigrateRegionRequest& from) {
|
||||
MigrateRegionRequest::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(MigrateRegionRequest* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.meta.MigrateRegionRequest";
|
||||
}
|
||||
protected:
|
||||
explicit MigrateRegionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned = false);
|
||||
public:
|
||||
|
||||
static const ClassData _class_data_;
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kHeaderFieldNumber = 1,
|
||||
kRegionIdFieldNumber = 3,
|
||||
kFromPeerFieldNumber = 4,
|
||||
kToPeerFieldNumber = 5,
|
||||
kReplayTimeoutSecsFieldNumber = 6,
|
||||
};
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
bool has_header() const;
|
||||
private:
|
||||
bool _internal_has_header() const;
|
||||
public:
|
||||
void clear_header();
|
||||
const ::greptime::v1::meta::RequestHeader& header() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::meta::RequestHeader* release_header();
|
||||
::greptime::v1::meta::RequestHeader* mutable_header();
|
||||
void set_allocated_header(::greptime::v1::meta::RequestHeader* header);
|
||||
private:
|
||||
const ::greptime::v1::meta::RequestHeader& _internal_header() const;
|
||||
::greptime::v1::meta::RequestHeader* _internal_mutable_header();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_header(
|
||||
::greptime::v1::meta::RequestHeader* header);
|
||||
::greptime::v1::meta::RequestHeader* unsafe_arena_release_header();
|
||||
|
||||
// uint64 region_id = 3;
|
||||
void clear_region_id();
|
||||
uint64_t region_id() const;
|
||||
void set_region_id(uint64_t value);
|
||||
private:
|
||||
uint64_t _internal_region_id() const;
|
||||
void _internal_set_region_id(uint64_t value);
|
||||
public:
|
||||
|
||||
// uint64 from_peer = 4;
|
||||
void clear_from_peer();
|
||||
uint64_t from_peer() const;
|
||||
void set_from_peer(uint64_t value);
|
||||
private:
|
||||
uint64_t _internal_from_peer() const;
|
||||
void _internal_set_from_peer(uint64_t value);
|
||||
public:
|
||||
|
||||
// uint64 to_peer = 5;
|
||||
void clear_to_peer();
|
||||
uint64_t to_peer() const;
|
||||
void set_to_peer(uint64_t value);
|
||||
private:
|
||||
uint64_t _internal_to_peer() const;
|
||||
void _internal_set_to_peer(uint64_t value);
|
||||
public:
|
||||
|
||||
// uint32 replay_timeout_secs = 6;
|
||||
void clear_replay_timeout_secs();
|
||||
uint32_t replay_timeout_secs() const;
|
||||
void set_replay_timeout_secs(uint32_t value);
|
||||
private:
|
||||
uint32_t _internal_replay_timeout_secs() const;
|
||||
void _internal_set_replay_timeout_secs(uint32_t value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.MigrateRegionRequest)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::greptime::v1::meta::RequestHeader* header_;
|
||||
uint64_t region_id_;
|
||||
uint64_t from_peer_;
|
||||
uint64_t to_peer_;
|
||||
uint32_t replay_timeout_secs_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fregion_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class MigrateRegionResponse final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.MigrateRegionResponse) */ {
|
||||
public:
|
||||
inline MigrateRegionResponse() : MigrateRegionResponse(nullptr) {}
|
||||
~MigrateRegionResponse() override;
|
||||
explicit PROTOBUF_CONSTEXPR MigrateRegionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
MigrateRegionResponse(const MigrateRegionResponse& from);
|
||||
MigrateRegionResponse(MigrateRegionResponse&& from) noexcept
|
||||
: MigrateRegionResponse() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline MigrateRegionResponse& operator=(const MigrateRegionResponse& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline MigrateRegionResponse& operator=(MigrateRegionResponse&& 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 MigrateRegionResponse& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const MigrateRegionResponse* internal_default_instance() {
|
||||
return reinterpret_cast<const MigrateRegionResponse*>(
|
||||
&_MigrateRegionResponse_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
1;
|
||||
|
||||
friend void swap(MigrateRegionResponse& a, MigrateRegionResponse& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(MigrateRegionResponse* 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(MigrateRegionResponse* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
MigrateRegionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<MigrateRegionResponse>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const MigrateRegionResponse& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const MigrateRegionResponse& from) {
|
||||
MigrateRegionResponse::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(MigrateRegionResponse* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.meta.MigrateRegionResponse";
|
||||
}
|
||||
protected:
|
||||
explicit MigrateRegionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned = false);
|
||||
public:
|
||||
|
||||
static const ClassData _class_data_;
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kHeaderFieldNumber = 1,
|
||||
kPidFieldNumber = 2,
|
||||
};
|
||||
// .greptime.v1.meta.ResponseHeader header = 1;
|
||||
bool has_header() const;
|
||||
private:
|
||||
bool _internal_has_header() const;
|
||||
public:
|
||||
void clear_header();
|
||||
const ::greptime::v1::meta::ResponseHeader& header() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::meta::ResponseHeader* release_header();
|
||||
::greptime::v1::meta::ResponseHeader* mutable_header();
|
||||
void set_allocated_header(::greptime::v1::meta::ResponseHeader* header);
|
||||
private:
|
||||
const ::greptime::v1::meta::ResponseHeader& _internal_header() const;
|
||||
::greptime::v1::meta::ResponseHeader* _internal_mutable_header();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_header(
|
||||
::greptime::v1::meta::ResponseHeader* header);
|
||||
::greptime::v1::meta::ResponseHeader* unsafe_arena_release_header();
|
||||
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
bool has_pid() const;
|
||||
private:
|
||||
bool _internal_has_pid() const;
|
||||
public:
|
||||
void clear_pid();
|
||||
const ::greptime::v1::meta::ProcedureId& pid() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::meta::ProcedureId* release_pid();
|
||||
::greptime::v1::meta::ProcedureId* mutable_pid();
|
||||
void set_allocated_pid(::greptime::v1::meta::ProcedureId* pid);
|
||||
private:
|
||||
const ::greptime::v1::meta::ProcedureId& _internal_pid() const;
|
||||
::greptime::v1::meta::ProcedureId* _internal_mutable_pid();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_pid(
|
||||
::greptime::v1::meta::ProcedureId* pid);
|
||||
::greptime::v1::meta::ProcedureId* unsafe_arena_release_pid();
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.MigrateRegionResponse)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::greptime::v1::meta::ResponseHeader* header_;
|
||||
::greptime::v1::meta::ProcedureId* pid_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fregion_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// MigrateRegionRequest
|
||||
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
inline bool MigrateRegionRequest::_internal_has_header() const {
|
||||
return this != internal_default_instance() && _impl_.header_ != nullptr;
|
||||
}
|
||||
inline bool MigrateRegionRequest::has_header() const {
|
||||
return _internal_has_header();
|
||||
}
|
||||
inline const ::greptime::v1::meta::RequestHeader& MigrateRegionRequest::_internal_header() const {
|
||||
const ::greptime::v1::meta::RequestHeader* p = _impl_.header_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::meta::RequestHeader&>(
|
||||
::greptime::v1::meta::_RequestHeader_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::meta::RequestHeader& MigrateRegionRequest::header() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionRequest.header)
|
||||
return _internal_header();
|
||||
}
|
||||
inline void MigrateRegionRequest::unsafe_arena_set_allocated_header(
|
||||
::greptime::v1::meta::RequestHeader* header) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
|
||||
}
|
||||
_impl_.header_ = header;
|
||||
if (header) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.MigrateRegionRequest.header)
|
||||
}
|
||||
inline ::greptime::v1::meta::RequestHeader* MigrateRegionRequest::release_header() {
|
||||
|
||||
::greptime::v1::meta::RequestHeader* temp = _impl_.header_;
|
||||
_impl_.header_ = nullptr;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
if (GetArenaForAllocation() == nullptr) { delete old; }
|
||||
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::meta::RequestHeader* MigrateRegionRequest::unsafe_arena_release_header() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.MigrateRegionRequest.header)
|
||||
|
||||
::greptime::v1::meta::RequestHeader* temp = _impl_.header_;
|
||||
_impl_.header_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::meta::RequestHeader* MigrateRegionRequest::_internal_mutable_header() {
|
||||
|
||||
if (_impl_.header_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(GetArenaForAllocation());
|
||||
_impl_.header_ = p;
|
||||
}
|
||||
return _impl_.header_;
|
||||
}
|
||||
inline ::greptime::v1::meta::RequestHeader* MigrateRegionRequest::mutable_header() {
|
||||
::greptime::v1::meta::RequestHeader* _msg = _internal_mutable_header();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.MigrateRegionRequest.header)
|
||||
return _msg;
|
||||
}
|
||||
inline void MigrateRegionRequest::set_allocated_header(::greptime::v1::meta::RequestHeader* header) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
|
||||
}
|
||||
if (header) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
|
||||
if (message_arena != submessage_arena) {
|
||||
header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, header, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.header_ = header;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MigrateRegionRequest.header)
|
||||
}
|
||||
|
||||
// uint64 region_id = 3;
|
||||
inline void MigrateRegionRequest::clear_region_id() {
|
||||
_impl_.region_id_ = uint64_t{0u};
|
||||
}
|
||||
inline uint64_t MigrateRegionRequest::_internal_region_id() const {
|
||||
return _impl_.region_id_;
|
||||
}
|
||||
inline uint64_t MigrateRegionRequest::region_id() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionRequest.region_id)
|
||||
return _internal_region_id();
|
||||
}
|
||||
inline void MigrateRegionRequest::_internal_set_region_id(uint64_t value) {
|
||||
|
||||
_impl_.region_id_ = value;
|
||||
}
|
||||
inline void MigrateRegionRequest::set_region_id(uint64_t value) {
|
||||
_internal_set_region_id(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.meta.MigrateRegionRequest.region_id)
|
||||
}
|
||||
|
||||
// uint64 from_peer = 4;
|
||||
inline void MigrateRegionRequest::clear_from_peer() {
|
||||
_impl_.from_peer_ = uint64_t{0u};
|
||||
}
|
||||
inline uint64_t MigrateRegionRequest::_internal_from_peer() const {
|
||||
return _impl_.from_peer_;
|
||||
}
|
||||
inline uint64_t MigrateRegionRequest::from_peer() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionRequest.from_peer)
|
||||
return _internal_from_peer();
|
||||
}
|
||||
inline void MigrateRegionRequest::_internal_set_from_peer(uint64_t value) {
|
||||
|
||||
_impl_.from_peer_ = value;
|
||||
}
|
||||
inline void MigrateRegionRequest::set_from_peer(uint64_t value) {
|
||||
_internal_set_from_peer(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.meta.MigrateRegionRequest.from_peer)
|
||||
}
|
||||
|
||||
// uint64 to_peer = 5;
|
||||
inline void MigrateRegionRequest::clear_to_peer() {
|
||||
_impl_.to_peer_ = uint64_t{0u};
|
||||
}
|
||||
inline uint64_t MigrateRegionRequest::_internal_to_peer() const {
|
||||
return _impl_.to_peer_;
|
||||
}
|
||||
inline uint64_t MigrateRegionRequest::to_peer() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionRequest.to_peer)
|
||||
return _internal_to_peer();
|
||||
}
|
||||
inline void MigrateRegionRequest::_internal_set_to_peer(uint64_t value) {
|
||||
|
||||
_impl_.to_peer_ = value;
|
||||
}
|
||||
inline void MigrateRegionRequest::set_to_peer(uint64_t value) {
|
||||
_internal_set_to_peer(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.meta.MigrateRegionRequest.to_peer)
|
||||
}
|
||||
|
||||
// uint32 replay_timeout_secs = 6;
|
||||
inline void MigrateRegionRequest::clear_replay_timeout_secs() {
|
||||
_impl_.replay_timeout_secs_ = 0u;
|
||||
}
|
||||
inline uint32_t MigrateRegionRequest::_internal_replay_timeout_secs() const {
|
||||
return _impl_.replay_timeout_secs_;
|
||||
}
|
||||
inline uint32_t MigrateRegionRequest::replay_timeout_secs() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionRequest.replay_timeout_secs)
|
||||
return _internal_replay_timeout_secs();
|
||||
}
|
||||
inline void MigrateRegionRequest::_internal_set_replay_timeout_secs(uint32_t value) {
|
||||
|
||||
_impl_.replay_timeout_secs_ = value;
|
||||
}
|
||||
inline void MigrateRegionRequest::set_replay_timeout_secs(uint32_t value) {
|
||||
_internal_set_replay_timeout_secs(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.meta.MigrateRegionRequest.replay_timeout_secs)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// MigrateRegionResponse
|
||||
|
||||
// .greptime.v1.meta.ResponseHeader header = 1;
|
||||
inline bool MigrateRegionResponse::_internal_has_header() const {
|
||||
return this != internal_default_instance() && _impl_.header_ != nullptr;
|
||||
}
|
||||
inline bool MigrateRegionResponse::has_header() const {
|
||||
return _internal_has_header();
|
||||
}
|
||||
inline const ::greptime::v1::meta::ResponseHeader& MigrateRegionResponse::_internal_header() const {
|
||||
const ::greptime::v1::meta::ResponseHeader* p = _impl_.header_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::meta::ResponseHeader&>(
|
||||
::greptime::v1::meta::_ResponseHeader_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::meta::ResponseHeader& MigrateRegionResponse::header() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionResponse.header)
|
||||
return _internal_header();
|
||||
}
|
||||
inline void MigrateRegionResponse::unsafe_arena_set_allocated_header(
|
||||
::greptime::v1::meta::ResponseHeader* header) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
|
||||
}
|
||||
_impl_.header_ = header;
|
||||
if (header) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.MigrateRegionResponse.header)
|
||||
}
|
||||
inline ::greptime::v1::meta::ResponseHeader* MigrateRegionResponse::release_header() {
|
||||
|
||||
::greptime::v1::meta::ResponseHeader* temp = _impl_.header_;
|
||||
_impl_.header_ = nullptr;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
if (GetArenaForAllocation() == nullptr) { delete old; }
|
||||
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::meta::ResponseHeader* MigrateRegionResponse::unsafe_arena_release_header() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.MigrateRegionResponse.header)
|
||||
|
||||
::greptime::v1::meta::ResponseHeader* temp = _impl_.header_;
|
||||
_impl_.header_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::meta::ResponseHeader* MigrateRegionResponse::_internal_mutable_header() {
|
||||
|
||||
if (_impl_.header_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(GetArenaForAllocation());
|
||||
_impl_.header_ = p;
|
||||
}
|
||||
return _impl_.header_;
|
||||
}
|
||||
inline ::greptime::v1::meta::ResponseHeader* MigrateRegionResponse::mutable_header() {
|
||||
::greptime::v1::meta::ResponseHeader* _msg = _internal_mutable_header();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.MigrateRegionResponse.header)
|
||||
return _msg;
|
||||
}
|
||||
inline void MigrateRegionResponse::set_allocated_header(::greptime::v1::meta::ResponseHeader* header) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
|
||||
}
|
||||
if (header) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
|
||||
if (message_arena != submessage_arena) {
|
||||
header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, header, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.header_ = header;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MigrateRegionResponse.header)
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.ProcedureId pid = 2;
|
||||
inline bool MigrateRegionResponse::_internal_has_pid() const {
|
||||
return this != internal_default_instance() && _impl_.pid_ != nullptr;
|
||||
}
|
||||
inline bool MigrateRegionResponse::has_pid() const {
|
||||
return _internal_has_pid();
|
||||
}
|
||||
inline const ::greptime::v1::meta::ProcedureId& MigrateRegionResponse::_internal_pid() const {
|
||||
const ::greptime::v1::meta::ProcedureId* p = _impl_.pid_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::meta::ProcedureId&>(
|
||||
::greptime::v1::meta::_ProcedureId_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::meta::ProcedureId& MigrateRegionResponse::pid() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionResponse.pid)
|
||||
return _internal_pid();
|
||||
}
|
||||
inline void MigrateRegionResponse::unsafe_arena_set_allocated_pid(
|
||||
::greptime::v1::meta::ProcedureId* pid) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pid_);
|
||||
}
|
||||
_impl_.pid_ = pid;
|
||||
if (pid) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.MigrateRegionResponse.pid)
|
||||
}
|
||||
inline ::greptime::v1::meta::ProcedureId* MigrateRegionResponse::release_pid() {
|
||||
|
||||
::greptime::v1::meta::ProcedureId* temp = _impl_.pid_;
|
||||
_impl_.pid_ = nullptr;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
if (GetArenaForAllocation() == nullptr) { delete old; }
|
||||
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::meta::ProcedureId* MigrateRegionResponse::unsafe_arena_release_pid() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.MigrateRegionResponse.pid)
|
||||
|
||||
::greptime::v1::meta::ProcedureId* temp = _impl_.pid_;
|
||||
_impl_.pid_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::meta::ProcedureId* MigrateRegionResponse::_internal_mutable_pid() {
|
||||
|
||||
if (_impl_.pid_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::meta::ProcedureId>(GetArenaForAllocation());
|
||||
_impl_.pid_ = p;
|
||||
}
|
||||
return _impl_.pid_;
|
||||
}
|
||||
inline ::greptime::v1::meta::ProcedureId* MigrateRegionResponse::mutable_pid() {
|
||||
::greptime::v1::meta::ProcedureId* _msg = _internal_mutable_pid();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.MigrateRegionResponse.pid)
|
||||
return _msg;
|
||||
}
|
||||
inline void MigrateRegionResponse::set_allocated_pid(::greptime::v1::meta::ProcedureId* pid) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pid_);
|
||||
}
|
||||
if (pid) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pid));
|
||||
if (message_arena != submessage_arena) {
|
||||
pid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, pid, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.pid_ = pid;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MigrateRegionResponse.pid)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fmeta_2fregion_2eproto
|
||||
@@ -561,6 +561,54 @@ func (x *KeyValue) GetValue() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Procedure identifer
|
||||
type ProcedureId struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ProcedureId) Reset() {
|
||||
*x = ProcedureId{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_common_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ProcedureId) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ProcedureId) ProtoMessage() {}
|
||||
|
||||
func (x *ProcedureId) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_common_proto_msgTypes[8]
|
||||
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 ProcedureId.ProtoReflect.Descriptor instead.
|
||||
func (*ProcedureId) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_common_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *ProcedureId) GetKey() []byte {
|
||||
if x != nil {
|
||||
return x.Key
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_greptime_v1_meta_common_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_greptime_v1_meta_common_proto_rawDesc = []byte{
|
||||
@@ -621,14 +669,16 @@ var file_greptime_v1_meta_common_proto_rawDesc = []byte{
|
||||
0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x22, 0x32, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x56,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0x22, 0x0a, 0x04,
|
||||
0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x4e, 0x4f, 0x44, 0x45,
|
||||
0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x52, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x44, 0x10, 0x01,
|
||||
0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47,
|
||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 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, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x1f, 0x0a, 0x0b,
|
||||
0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
||||
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x2a, 0x22, 0x0a,
|
||||
0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x4e, 0x4f, 0x44,
|
||||
0x45, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x52, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x44, 0x10,
|
||||
0x01, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
||||
0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 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, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62,
|
||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -644,7 +694,7 @@ func file_greptime_v1_meta_common_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_greptime_v1_meta_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_greptime_v1_meta_common_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_greptime_v1_meta_common_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||
var file_greptime_v1_meta_common_proto_goTypes = []interface{}{
|
||||
(Role)(0), // 0: greptime.v1.meta.Role
|
||||
(*RequestHeader)(nil), // 1: greptime.v1.meta.RequestHeader
|
||||
@@ -655,17 +705,18 @@ var file_greptime_v1_meta_common_proto_goTypes = []interface{}{
|
||||
(*TableName)(nil), // 6: greptime.v1.meta.TableName
|
||||
(*TimeInterval)(nil), // 7: greptime.v1.meta.TimeInterval
|
||||
(*KeyValue)(nil), // 8: greptime.v1.meta.KeyValue
|
||||
nil, // 9: greptime.v1.meta.RequestHeader.TracingContextEntry
|
||||
(*ProcedureId)(nil), // 9: greptime.v1.meta.ProcedureId
|
||||
nil, // 10: greptime.v1.meta.RequestHeader.TracingContextEntry
|
||||
}
|
||||
var file_greptime_v1_meta_common_proto_depIdxs = []int32{
|
||||
0, // 0: greptime.v1.meta.RequestHeader.role:type_name -> greptime.v1.meta.Role
|
||||
9, // 1: greptime.v1.meta.RequestHeader.tracing_context:type_name -> greptime.v1.meta.RequestHeader.TracingContextEntry
|
||||
3, // 2: greptime.v1.meta.ResponseHeader.error:type_name -> greptime.v1.meta.Error
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
0, // 0: greptime.v1.meta.RequestHeader.role:type_name -> greptime.v1.meta.Role
|
||||
10, // 1: greptime.v1.meta.RequestHeader.tracing_context:type_name -> greptime.v1.meta.RequestHeader.TracingContextEntry
|
||||
3, // 2: greptime.v1.meta.ResponseHeader.error:type_name -> greptime.v1.meta.Error
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_greptime_v1_meta_common_proto_init() }
|
||||
@@ -770,6 +821,18 @@ func file_greptime_v1_meta_common_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ProcedureId); 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{
|
||||
@@ -777,7 +840,7 @@ func file_greptime_v1_meta_common_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_greptime_v1_meta_common_proto_rawDesc,
|
||||
NumEnums: 1,
|
||||
NumMessages: 9,
|
||||
NumMessages: 10,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
+170
-177
@@ -426,7 +426,7 @@ func (x *TruncateTableTask) GetTruncateTable() *v1.TruncateTableExpr {
|
||||
return nil
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest struct {
|
||||
type DdlTaskRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@@ -434,18 +434,18 @@ type SubmitDdlTaskRequest struct {
|
||||
Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
// Types that are assignable to Task:
|
||||
//
|
||||
// *SubmitDdlTaskRequest_CreateTableTask
|
||||
// *SubmitDdlTaskRequest_DropTableTask
|
||||
// *SubmitDdlTaskRequest_AlterTableTask
|
||||
// *SubmitDdlTaskRequest_TruncateTableTask
|
||||
// *SubmitDdlTaskRequest_CreateTableTasks
|
||||
// *SubmitDdlTaskRequest_DropTableTasks
|
||||
// *SubmitDdlTaskRequest_AlterTableTasks
|
||||
Task isSubmitDdlTaskRequest_Task `protobuf_oneof:"task"`
|
||||
// *DdlTaskRequest_CreateTableTask
|
||||
// *DdlTaskRequest_DropTableTask
|
||||
// *DdlTaskRequest_AlterTableTask
|
||||
// *DdlTaskRequest_TruncateTableTask
|
||||
// *DdlTaskRequest_CreateTableTasks
|
||||
// *DdlTaskRequest_DropTableTasks
|
||||
// *DdlTaskRequest_AlterTableTasks
|
||||
Task isDdlTaskRequest_Task `protobuf_oneof:"task"`
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) Reset() {
|
||||
*x = SubmitDdlTaskRequest{}
|
||||
func (x *DdlTaskRequest) Reset() {
|
||||
*x = DdlTaskRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@@ -453,13 +453,13 @@ func (x *SubmitDdlTaskRequest) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) String() string {
|
||||
func (x *DdlTaskRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SubmitDdlTaskRequest) ProtoMessage() {}
|
||||
func (*DdlTaskRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) ProtoReflect() protoreflect.Message {
|
||||
func (x *DdlTaskRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@@ -471,128 +471,127 @@ func (x *SubmitDdlTaskRequest) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SubmitDdlTaskRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SubmitDdlTaskRequest) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use DdlTaskRequest.ProtoReflect.Descriptor instead.
|
||||
func (*DdlTaskRequest) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetHeader() *RequestHeader {
|
||||
func (x *DdlTaskRequest) GetHeader() *RequestHeader {
|
||||
if x != nil {
|
||||
return x.Header
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SubmitDdlTaskRequest) GetTask() isSubmitDdlTaskRequest_Task {
|
||||
func (m *DdlTaskRequest) GetTask() isDdlTaskRequest_Task {
|
||||
if m != nil {
|
||||
return m.Task
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetCreateTableTask() *CreateTableTask {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_CreateTableTask); ok {
|
||||
func (x *DdlTaskRequest) GetCreateTableTask() *CreateTableTask {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_CreateTableTask); ok {
|
||||
return x.CreateTableTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetDropTableTask() *DropTableTask {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_DropTableTask); ok {
|
||||
func (x *DdlTaskRequest) GetDropTableTask() *DropTableTask {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_DropTableTask); ok {
|
||||
return x.DropTableTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetAlterTableTask() *AlterTableTask {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_AlterTableTask); ok {
|
||||
func (x *DdlTaskRequest) GetAlterTableTask() *AlterTableTask {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_AlterTableTask); ok {
|
||||
return x.AlterTableTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetTruncateTableTask() *TruncateTableTask {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_TruncateTableTask); ok {
|
||||
func (x *DdlTaskRequest) GetTruncateTableTask() *TruncateTableTask {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_TruncateTableTask); ok {
|
||||
return x.TruncateTableTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetCreateTableTasks() *CreateTableTasks {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_CreateTableTasks); ok {
|
||||
func (x *DdlTaskRequest) GetCreateTableTasks() *CreateTableTasks {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_CreateTableTasks); ok {
|
||||
return x.CreateTableTasks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetDropTableTasks() *DropTableTasks {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_DropTableTasks); ok {
|
||||
func (x *DdlTaskRequest) GetDropTableTasks() *DropTableTasks {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_DropTableTasks); ok {
|
||||
return x.DropTableTasks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetAlterTableTasks() *AlterTableTasks {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_AlterTableTasks); ok {
|
||||
func (x *DdlTaskRequest) GetAlterTableTasks() *AlterTableTasks {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_AlterTableTasks); ok {
|
||||
return x.AlterTableTasks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isSubmitDdlTaskRequest_Task interface {
|
||||
isSubmitDdlTaskRequest_Task()
|
||||
type isDdlTaskRequest_Task interface {
|
||||
isDdlTaskRequest_Task()
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_CreateTableTask struct {
|
||||
type DdlTaskRequest_CreateTableTask struct {
|
||||
CreateTableTask *CreateTableTask `protobuf:"bytes,2,opt,name=create_table_task,json=createTableTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_DropTableTask struct {
|
||||
type DdlTaskRequest_DropTableTask struct {
|
||||
DropTableTask *DropTableTask `protobuf:"bytes,3,opt,name=drop_table_task,json=dropTableTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_AlterTableTask struct {
|
||||
type DdlTaskRequest_AlterTableTask struct {
|
||||
AlterTableTask *AlterTableTask `protobuf:"bytes,4,opt,name=alter_table_task,json=alterTableTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_TruncateTableTask struct {
|
||||
type DdlTaskRequest_TruncateTableTask struct {
|
||||
TruncateTableTask *TruncateTableTask `protobuf:"bytes,5,opt,name=truncate_table_task,json=truncateTableTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_CreateTableTasks struct {
|
||||
type DdlTaskRequest_CreateTableTasks struct {
|
||||
CreateTableTasks *CreateTableTasks `protobuf:"bytes,6,opt,name=create_table_tasks,json=createTableTasks,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_DropTableTasks struct {
|
||||
type DdlTaskRequest_DropTableTasks struct {
|
||||
DropTableTasks *DropTableTasks `protobuf:"bytes,7,opt,name=drop_table_tasks,json=dropTableTasks,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_AlterTableTasks struct {
|
||||
type DdlTaskRequest_AlterTableTasks struct {
|
||||
AlterTableTasks *AlterTableTasks `protobuf:"bytes,8,opt,name=alter_table_tasks,json=alterTableTasks,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*SubmitDdlTaskRequest_CreateTableTask) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_CreateTableTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*SubmitDdlTaskRequest_DropTableTask) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_DropTableTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*SubmitDdlTaskRequest_AlterTableTask) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_AlterTableTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*SubmitDdlTaskRequest_TruncateTableTask) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_TruncateTableTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*SubmitDdlTaskRequest_CreateTableTasks) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_CreateTableTasks) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*SubmitDdlTaskRequest_DropTableTasks) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_DropTableTasks) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*SubmitDdlTaskRequest_AlterTableTasks) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_AlterTableTasks) isDdlTaskRequest_Task() {}
|
||||
|
||||
type SubmitDdlTaskResponse struct {
|
||||
type DdlTaskResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
// Key is the identifier for the ddl task.
|
||||
Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
||||
Pid *ProcedureId `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"`
|
||||
// Returns if table created.
|
||||
// TODO(jeremy): remove it?
|
||||
TableId *TableId `protobuf:"bytes,4,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
|
||||
@@ -600,8 +599,8 @@ type SubmitDdlTaskResponse struct {
|
||||
TableIds []*TableId `protobuf:"bytes,5,rep,name=table_ids,json=tableIds,proto3" json:"table_ids,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) Reset() {
|
||||
*x = SubmitDdlTaskResponse{}
|
||||
func (x *DdlTaskResponse) Reset() {
|
||||
*x = DdlTaskResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@@ -609,13 +608,13 @@ func (x *SubmitDdlTaskResponse) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) String() string {
|
||||
func (x *DdlTaskResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SubmitDdlTaskResponse) ProtoMessage() {}
|
||||
func (*DdlTaskResponse) ProtoMessage() {}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) ProtoReflect() protoreflect.Message {
|
||||
func (x *DdlTaskResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[8]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@@ -627,33 +626,33 @@ func (x *SubmitDdlTaskResponse) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SubmitDdlTaskResponse.ProtoReflect.Descriptor instead.
|
||||
func (*SubmitDdlTaskResponse) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use DdlTaskResponse.ProtoReflect.Descriptor instead.
|
||||
func (*DdlTaskResponse) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) GetHeader() *ResponseHeader {
|
||||
func (x *DdlTaskResponse) GetHeader() *ResponseHeader {
|
||||
if x != nil {
|
||||
return x.Header
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) GetKey() []byte {
|
||||
func (x *DdlTaskResponse) GetPid() *ProcedureId {
|
||||
if x != nil {
|
||||
return x.Key
|
||||
return x.Pid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) GetTableId() *TableId {
|
||||
func (x *DdlTaskResponse) GetTableId() *TableId {
|
||||
if x != nil {
|
||||
return x.TableId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) GetTableIds() []*TableId {
|
||||
func (x *DdlTaskResponse) GetTableIds() []*TableId {
|
||||
if x != nil {
|
||||
return x.TableIds
|
||||
}
|
||||
@@ -711,75 +710,69 @@ var file_greptime_v1_meta_ddl_proto_rawDesc = []byte{
|
||||
0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61,
|
||||
0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x8b, 0x05, 0x0a, 0x14, 0x53, 0x75, 0x62, 0x6d,
|
||||
0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65,
|
||||
0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x11, 0x63, 0x72, 0x65,
|
||||
0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74,
|
||||
0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0f, 0x64, 0x72,
|
||||
0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73,
|
||||
0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f,
|
||||
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x11, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74,
|
||||
0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x52, 0x0a, 0x12, 0x63, 0x72,
|
||||
0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73,
|
||||
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||
0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x10, 0x63, 0x72,
|
||||
0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4c,
|
||||
0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73,
|
||||
0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70,
|
||||
0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x72,
|
||||
0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4f, 0x0a, 0x11,
|
||||
0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b,
|
||||
0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72,
|
||||
0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x6c,
|
||||
0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x42, 0x06, 0x0a,
|
||||
0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, 0xd1, 0x01, 0x0a, 0x15, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74,
|
||||
0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||
0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65,
|
||||
0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x08, 0x74,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
|
||||
0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x85, 0x05, 0x0a, 0x0e, 0x44, 0x64, 0x6c, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65,
|
||||
0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61,
|
||||
0x64, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21,
|
||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73,
|
||||
0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0f, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
|
||||
0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49,
|
||||
0x64, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52,
|
||||
0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x2a, 0x23, 0x0a, 0x0b, 0x44, 0x64, 0x6c,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61,
|
||||
0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10, 0x01, 0x32, 0x6b,
|
||||
0x0a, 0x07, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x60, 0x0a, 0x0d, 0x53, 0x75, 0x62,
|
||||
0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x75,
|
||||
0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
||||
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67,
|
||||
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 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, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00,
|
||||
0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12,
|
||||
0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74,
|
||||
0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74,
|
||||
0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61,
|
||||
0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a,
|
||||
0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
|
||||
0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72,
|
||||
0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48,
|
||||
0x00, 0x52, 0x11, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x12, 0x52, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4c, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70,
|
||||
0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
||||
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4f, 0x0a, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f,
|
||||
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22,
|
||||
0xea, 0x01, 0x0a, 0x0f, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48,
|
||||
0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2f, 0x0a,
|
||||
0x03, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72,
|
||||
0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x34,
|
||||
0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64,
|
||||
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x2a, 0x23, 0x0a, 0x0b,
|
||||
0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43,
|
||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10,
|
||||
0x01, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
||||
0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 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, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62,
|
||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -797,24 +790,25 @@ func file_greptime_v1_meta_ddl_proto_rawDescGZIP() []byte {
|
||||
var file_greptime_v1_meta_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_greptime_v1_meta_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{
|
||||
(DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType
|
||||
(*CreateTableTask)(nil), // 1: greptime.v1.meta.CreateTableTask
|
||||
(*CreateTableTasks)(nil), // 2: greptime.v1.meta.CreateTableTasks
|
||||
(*DropTableTask)(nil), // 3: greptime.v1.meta.DropTableTask
|
||||
(*DropTableTasks)(nil), // 4: greptime.v1.meta.DropTableTasks
|
||||
(*AlterTableTask)(nil), // 5: greptime.v1.meta.AlterTableTask
|
||||
(*AlterTableTasks)(nil), // 6: greptime.v1.meta.AlterTableTasks
|
||||
(*TruncateTableTask)(nil), // 7: greptime.v1.meta.TruncateTableTask
|
||||
(*SubmitDdlTaskRequest)(nil), // 8: greptime.v1.meta.SubmitDdlTaskRequest
|
||||
(*SubmitDdlTaskResponse)(nil), // 9: greptime.v1.meta.SubmitDdlTaskResponse
|
||||
(*v1.CreateTableExpr)(nil), // 10: greptime.v1.CreateTableExpr
|
||||
(*Partition)(nil), // 11: greptime.v1.meta.Partition
|
||||
(*v1.DropTableExpr)(nil), // 12: greptime.v1.DropTableExpr
|
||||
(*v1.AlterExpr)(nil), // 13: greptime.v1.AlterExpr
|
||||
(*v1.TruncateTableExpr)(nil), // 14: greptime.v1.TruncateTableExpr
|
||||
(*RequestHeader)(nil), // 15: greptime.v1.meta.RequestHeader
|
||||
(*ResponseHeader)(nil), // 16: greptime.v1.meta.ResponseHeader
|
||||
(*TableId)(nil), // 17: greptime.v1.meta.TableId
|
||||
(DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType
|
||||
(*CreateTableTask)(nil), // 1: greptime.v1.meta.CreateTableTask
|
||||
(*CreateTableTasks)(nil), // 2: greptime.v1.meta.CreateTableTasks
|
||||
(*DropTableTask)(nil), // 3: greptime.v1.meta.DropTableTask
|
||||
(*DropTableTasks)(nil), // 4: greptime.v1.meta.DropTableTasks
|
||||
(*AlterTableTask)(nil), // 5: greptime.v1.meta.AlterTableTask
|
||||
(*AlterTableTasks)(nil), // 6: greptime.v1.meta.AlterTableTasks
|
||||
(*TruncateTableTask)(nil), // 7: greptime.v1.meta.TruncateTableTask
|
||||
(*DdlTaskRequest)(nil), // 8: greptime.v1.meta.DdlTaskRequest
|
||||
(*DdlTaskResponse)(nil), // 9: greptime.v1.meta.DdlTaskResponse
|
||||
(*v1.CreateTableExpr)(nil), // 10: greptime.v1.CreateTableExpr
|
||||
(*Partition)(nil), // 11: greptime.v1.meta.Partition
|
||||
(*v1.DropTableExpr)(nil), // 12: greptime.v1.DropTableExpr
|
||||
(*v1.AlterExpr)(nil), // 13: greptime.v1.AlterExpr
|
||||
(*v1.TruncateTableExpr)(nil), // 14: greptime.v1.TruncateTableExpr
|
||||
(*RequestHeader)(nil), // 15: greptime.v1.meta.RequestHeader
|
||||
(*ResponseHeader)(nil), // 16: greptime.v1.meta.ResponseHeader
|
||||
(*ProcedureId)(nil), // 17: greptime.v1.meta.ProcedureId
|
||||
(*TableId)(nil), // 18: greptime.v1.meta.TableId
|
||||
}
|
||||
var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{
|
||||
10, // 0: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr
|
||||
@@ -825,24 +819,23 @@ var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{
|
||||
13, // 5: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterExpr
|
||||
5, // 6: greptime.v1.meta.AlterTableTasks.tasks:type_name -> greptime.v1.meta.AlterTableTask
|
||||
14, // 7: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr
|
||||
15, // 8: greptime.v1.meta.SubmitDdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
1, // 9: greptime.v1.meta.SubmitDdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
|
||||
3, // 10: greptime.v1.meta.SubmitDdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
|
||||
5, // 11: greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
|
||||
7, // 12: greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
|
||||
2, // 13: greptime.v1.meta.SubmitDdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks
|
||||
4, // 14: greptime.v1.meta.SubmitDdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks
|
||||
6, // 15: greptime.v1.meta.SubmitDdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks
|
||||
16, // 16: greptime.v1.meta.SubmitDdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
17, // 17: greptime.v1.meta.SubmitDdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId
|
||||
17, // 18: greptime.v1.meta.SubmitDdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId
|
||||
8, // 19: greptime.v1.meta.DdlTask.SubmitDdlTask:input_type -> greptime.v1.meta.SubmitDdlTaskRequest
|
||||
9, // 20: greptime.v1.meta.DdlTask.SubmitDdlTask:output_type -> greptime.v1.meta.SubmitDdlTaskResponse
|
||||
20, // [20:21] is the sub-list for method output_type
|
||||
19, // [19:20] is the sub-list for method input_type
|
||||
19, // [19:19] is the sub-list for extension type_name
|
||||
19, // [19:19] is the sub-list for extension extendee
|
||||
0, // [0:19] is the sub-list for field type_name
|
||||
15, // 8: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
1, // 9: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
|
||||
3, // 10: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
|
||||
5, // 11: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
|
||||
7, // 12: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
|
||||
2, // 13: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks
|
||||
4, // 14: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks
|
||||
6, // 15: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks
|
||||
16, // 16: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
17, // 17: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId
|
||||
18, // 18: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId
|
||||
18, // 19: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId
|
||||
20, // [20:20] is the sub-list for method output_type
|
||||
20, // [20:20] is the sub-list for method input_type
|
||||
20, // [20:20] is the sub-list for extension type_name
|
||||
20, // [20:20] is the sub-list for extension extendee
|
||||
0, // [0:20] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_greptime_v1_meta_ddl_proto_init() }
|
||||
@@ -938,7 +931,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SubmitDdlTaskRequest); i {
|
||||
switch v := v.(*DdlTaskRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -950,7 +943,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SubmitDdlTaskResponse); i {
|
||||
switch v := v.(*DdlTaskResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -963,13 +956,13 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[7].OneofWrappers = []interface{}{
|
||||
(*SubmitDdlTaskRequest_CreateTableTask)(nil),
|
||||
(*SubmitDdlTaskRequest_DropTableTask)(nil),
|
||||
(*SubmitDdlTaskRequest_AlterTableTask)(nil),
|
||||
(*SubmitDdlTaskRequest_TruncateTableTask)(nil),
|
||||
(*SubmitDdlTaskRequest_CreateTableTasks)(nil),
|
||||
(*SubmitDdlTaskRequest_DropTableTasks)(nil),
|
||||
(*SubmitDdlTaskRequest_AlterTableTasks)(nil),
|
||||
(*DdlTaskRequest_CreateTableTask)(nil),
|
||||
(*DdlTaskRequest_DropTableTask)(nil),
|
||||
(*DdlTaskRequest_AlterTableTask)(nil),
|
||||
(*DdlTaskRequest_TruncateTableTask)(nil),
|
||||
(*DdlTaskRequest_CreateTableTasks)(nil),
|
||||
(*DdlTaskRequest_DropTableTasks)(nil),
|
||||
(*DdlTaskRequest_AlterTableTasks)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@@ -979,7 +972,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
NumEnums: 1,
|
||||
NumMessages: 9,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_greptime_v1_meta_ddl_proto_goTypes,
|
||||
DependencyIndexes: file_greptime_v1_meta_ddl_proto_depIdxs,
|
||||
|
||||
@@ -0,0 +1,353 @@
|
||||
// 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/meta/procedure.proto
|
||||
|
||||
package meta
|
||||
|
||||
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 ProcedureStatus int32
|
||||
|
||||
const (
|
||||
ProcedureStatus_Running ProcedureStatus = 0
|
||||
ProcedureStatus_Done ProcedureStatus = 1
|
||||
ProcedureStatus_Retrying ProcedureStatus = 2
|
||||
ProcedureStatus_Failed ProcedureStatus = 3
|
||||
)
|
||||
|
||||
// Enum value maps for ProcedureStatus.
|
||||
var (
|
||||
ProcedureStatus_name = map[int32]string{
|
||||
0: "Running",
|
||||
1: "Done",
|
||||
2: "Retrying",
|
||||
3: "Failed",
|
||||
}
|
||||
ProcedureStatus_value = map[string]int32{
|
||||
"Running": 0,
|
||||
"Done": 1,
|
||||
"Retrying": 2,
|
||||
"Failed": 3,
|
||||
}
|
||||
)
|
||||
|
||||
func (x ProcedureStatus) Enum() *ProcedureStatus {
|
||||
p := new(ProcedureStatus)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x ProcedureStatus) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (ProcedureStatus) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_greptime_v1_meta_procedure_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (ProcedureStatus) Type() protoreflect.EnumType {
|
||||
return &file_greptime_v1_meta_procedure_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x ProcedureStatus) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ProcedureStatus.Descriptor instead.
|
||||
func (ProcedureStatus) EnumDescriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type QueryProcedureRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
Pid *ProcedureId `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"`
|
||||
}
|
||||
|
||||
func (x *QueryProcedureRequest) Reset() {
|
||||
*x = QueryProcedureRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_procedure_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *QueryProcedureRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*QueryProcedureRequest) ProtoMessage() {}
|
||||
|
||||
func (x *QueryProcedureRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_procedure_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 QueryProcedureRequest.ProtoReflect.Descriptor instead.
|
||||
func (*QueryProcedureRequest) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *QueryProcedureRequest) GetHeader() *RequestHeader {
|
||||
if x != nil {
|
||||
return x.Header
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *QueryProcedureRequest) GetPid() *ProcedureId {
|
||||
if x != nil {
|
||||
return x.Pid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ProcedureStateResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
Status ProcedureStatus `protobuf:"varint,2,opt,name=status,proto3,enum=greptime.v1.meta.ProcedureStatus" json:"status,omitempty"`
|
||||
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ProcedureStateResponse) Reset() {
|
||||
*x = ProcedureStateResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_procedure_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ProcedureStateResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ProcedureStateResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ProcedureStateResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_procedure_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 ProcedureStateResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ProcedureStateResponse) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *ProcedureStateResponse) GetHeader() *ResponseHeader {
|
||||
if x != nil {
|
||||
return x.Header
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ProcedureStateResponse) GetStatus() ProcedureStatus {
|
||||
if x != nil {
|
||||
return x.Status
|
||||
}
|
||||
return ProcedureStatus_Running
|
||||
}
|
||||
|
||||
func (x *ProcedureStateResponse) GetError() string {
|
||||
if x != nil {
|
||||
return x.Error
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_greptime_v1_meta_procedure_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{
|
||||
0x0a, 0x20, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x12, 0x10, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76,
|
||||
0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31,
|
||||
0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x64, 0x64, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
|
||||
0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81,
|
||||
0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72,
|
||||
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64,
|
||||
0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65,
|
||||
0x72, 0x12, 0x2f, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d,
|
||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70,
|
||||
0x69, 0x64, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65,
|
||||
0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a,
|
||||
0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
|
||||
0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
|
||||
0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
|
||||
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65,
|
||||
0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74,
|
||||
0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2a, 0x42, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63,
|
||||
0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x52,
|
||||
0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x6f, 0x6e, 0x65,
|
||||
0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x74, 0x72, 0x79, 0x69, 0x6e, 0x67, 0x10, 0x02,
|
||||
0x12, 0x0a, 0x0a, 0x06, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x03, 0x32, 0x96, 0x02, 0x0a,
|
||||
0x10, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
|
||||
0x65, 0x12, 0x5a, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x27, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x51, 0x75,
|
||||
0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65,
|
||||
0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a,
|
||||
0x03, 0x64, 0x64, 0x6c, 0x12, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73,
|
||||
0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x07, 0x6d, 0x69, 0x67,
|
||||
0x72, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52,
|
||||
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67,
|
||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e,
|
||||
0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
|
||||
0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d,
|
||||
0x2f, 0x67, 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, 0x2f, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_greptime_v1_meta_procedure_proto_rawDescOnce sync.Once
|
||||
file_greptime_v1_meta_procedure_proto_rawDescData = file_greptime_v1_meta_procedure_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_greptime_v1_meta_procedure_proto_rawDescGZIP() []byte {
|
||||
file_greptime_v1_meta_procedure_proto_rawDescOnce.Do(func() {
|
||||
file_greptime_v1_meta_procedure_proto_rawDescData = protoimpl.X.CompressGZIP(file_greptime_v1_meta_procedure_proto_rawDescData)
|
||||
})
|
||||
return file_greptime_v1_meta_procedure_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_greptime_v1_meta_procedure_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_greptime_v1_meta_procedure_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_greptime_v1_meta_procedure_proto_goTypes = []interface{}{
|
||||
(ProcedureStatus)(0), // 0: greptime.v1.meta.ProcedureStatus
|
||||
(*QueryProcedureRequest)(nil), // 1: greptime.v1.meta.QueryProcedureRequest
|
||||
(*ProcedureStateResponse)(nil), // 2: greptime.v1.meta.ProcedureStateResponse
|
||||
(*RequestHeader)(nil), // 3: greptime.v1.meta.RequestHeader
|
||||
(*ProcedureId)(nil), // 4: greptime.v1.meta.ProcedureId
|
||||
(*ResponseHeader)(nil), // 5: greptime.v1.meta.ResponseHeader
|
||||
(*DdlTaskRequest)(nil), // 6: greptime.v1.meta.DdlTaskRequest
|
||||
(*MigrateRegionRequest)(nil), // 7: greptime.v1.meta.MigrateRegionRequest
|
||||
(*DdlTaskResponse)(nil), // 8: greptime.v1.meta.DdlTaskResponse
|
||||
(*MigrateRegionResponse)(nil), // 9: greptime.v1.meta.MigrateRegionResponse
|
||||
}
|
||||
var file_greptime_v1_meta_procedure_proto_depIdxs = []int32{
|
||||
3, // 0: greptime.v1.meta.QueryProcedureRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
4, // 1: greptime.v1.meta.QueryProcedureRequest.pid:type_name -> greptime.v1.meta.ProcedureId
|
||||
5, // 2: greptime.v1.meta.ProcedureStateResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
0, // 3: greptime.v1.meta.ProcedureStateResponse.status:type_name -> greptime.v1.meta.ProcedureStatus
|
||||
1, // 4: greptime.v1.meta.ProcedureService.query:input_type -> greptime.v1.meta.QueryProcedureRequest
|
||||
6, // 5: greptime.v1.meta.ProcedureService.ddl:input_type -> greptime.v1.meta.DdlTaskRequest
|
||||
7, // 6: greptime.v1.meta.ProcedureService.migrate:input_type -> greptime.v1.meta.MigrateRegionRequest
|
||||
2, // 7: greptime.v1.meta.ProcedureService.query:output_type -> greptime.v1.meta.ProcedureStateResponse
|
||||
8, // 8: greptime.v1.meta.ProcedureService.ddl:output_type -> greptime.v1.meta.DdlTaskResponse
|
||||
9, // 9: greptime.v1.meta.ProcedureService.migrate:output_type -> greptime.v1.meta.MigrateRegionResponse
|
||||
7, // [7:10] is the sub-list for method output_type
|
||||
4, // [4:7] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
4, // [4:4] is the sub-list for extension extendee
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_greptime_v1_meta_procedure_proto_init() }
|
||||
func file_greptime_v1_meta_procedure_proto_init() {
|
||||
if File_greptime_v1_meta_procedure_proto != nil {
|
||||
return
|
||||
}
|
||||
file_greptime_v1_meta_common_proto_init()
|
||||
file_greptime_v1_meta_ddl_proto_init()
|
||||
file_greptime_v1_meta_region_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_greptime_v1_meta_procedure_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*QueryProcedureRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_procedure_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ProcedureStateResponse); 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_meta_procedure_proto_rawDesc,
|
||||
NumEnums: 1,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_greptime_v1_meta_procedure_proto_goTypes,
|
||||
DependencyIndexes: file_greptime_v1_meta_procedure_proto_depIdxs,
|
||||
EnumInfos: file_greptime_v1_meta_procedure_proto_enumTypes,
|
||||
MessageInfos: file_greptime_v1_meta_procedure_proto_msgTypes,
|
||||
}.Build()
|
||||
File_greptime_v1_meta_procedure_proto = out.File
|
||||
file_greptime_v1_meta_procedure_proto_rawDesc = nil
|
||||
file_greptime_v1_meta_procedure_proto_goTypes = nil
|
||||
file_greptime_v1_meta_procedure_proto_depIdxs = nil
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
// 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/meta/procedure.proto
|
||||
|
||||
package meta
|
||||
|
||||
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
|
||||
|
||||
// ProcedureServiceClient is the client API for ProcedureService 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 ProcedureServiceClient interface {
|
||||
// Query a submitted procedure state
|
||||
Query(ctx context.Context, in *QueryProcedureRequest, opts ...grpc.CallOption) (*ProcedureStateResponse, error)
|
||||
// Submits a DDL task
|
||||
Ddl(ctx context.Context, in *DdlTaskRequest, opts ...grpc.CallOption) (*DdlTaskResponse, error)
|
||||
// Submits a region migration task
|
||||
Migrate(ctx context.Context, in *MigrateRegionRequest, opts ...grpc.CallOption) (*MigrateRegionResponse, error)
|
||||
}
|
||||
|
||||
type procedureServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewProcedureServiceClient(cc grpc.ClientConnInterface) ProcedureServiceClient {
|
||||
return &procedureServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *procedureServiceClient) Query(ctx context.Context, in *QueryProcedureRequest, opts ...grpc.CallOption) (*ProcedureStateResponse, error) {
|
||||
out := new(ProcedureStateResponse)
|
||||
err := c.cc.Invoke(ctx, "/greptime.v1.meta.ProcedureService/query", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *procedureServiceClient) Ddl(ctx context.Context, in *DdlTaskRequest, opts ...grpc.CallOption) (*DdlTaskResponse, error) {
|
||||
out := new(DdlTaskResponse)
|
||||
err := c.cc.Invoke(ctx, "/greptime.v1.meta.ProcedureService/ddl", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *procedureServiceClient) Migrate(ctx context.Context, in *MigrateRegionRequest, opts ...grpc.CallOption) (*MigrateRegionResponse, error) {
|
||||
out := new(MigrateRegionResponse)
|
||||
err := c.cc.Invoke(ctx, "/greptime.v1.meta.ProcedureService/migrate", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ProcedureServiceServer is the server API for ProcedureService service.
|
||||
// All implementations must embed UnimplementedProcedureServiceServer
|
||||
// for forward compatibility
|
||||
type ProcedureServiceServer interface {
|
||||
// Query a submitted procedure state
|
||||
Query(context.Context, *QueryProcedureRequest) (*ProcedureStateResponse, error)
|
||||
// Submits a DDL task
|
||||
Ddl(context.Context, *DdlTaskRequest) (*DdlTaskResponse, error)
|
||||
// Submits a region migration task
|
||||
Migrate(context.Context, *MigrateRegionRequest) (*MigrateRegionResponse, error)
|
||||
mustEmbedUnimplementedProcedureServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedProcedureServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedProcedureServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedProcedureServiceServer) Query(context.Context, *QueryProcedureRequest) (*ProcedureStateResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Query not implemented")
|
||||
}
|
||||
func (UnimplementedProcedureServiceServer) Ddl(context.Context, *DdlTaskRequest) (*DdlTaskResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Ddl not implemented")
|
||||
}
|
||||
func (UnimplementedProcedureServiceServer) Migrate(context.Context, *MigrateRegionRequest) (*MigrateRegionResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Migrate not implemented")
|
||||
}
|
||||
func (UnimplementedProcedureServiceServer) mustEmbedUnimplementedProcedureServiceServer() {}
|
||||
|
||||
// UnsafeProcedureServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to ProcedureServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeProcedureServiceServer interface {
|
||||
mustEmbedUnimplementedProcedureServiceServer()
|
||||
}
|
||||
|
||||
func RegisterProcedureServiceServer(s grpc.ServiceRegistrar, srv ProcedureServiceServer) {
|
||||
s.RegisterService(&ProcedureService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _ProcedureService_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(QueryProcedureRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ProcedureServiceServer).Query(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/greptime.v1.meta.ProcedureService/query",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ProcedureServiceServer).Query(ctx, req.(*QueryProcedureRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ProcedureService_Ddl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DdlTaskRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ProcedureServiceServer).Ddl(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/greptime.v1.meta.ProcedureService/ddl",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ProcedureServiceServer).Ddl(ctx, req.(*DdlTaskRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ProcedureService_Migrate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(MigrateRegionRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ProcedureServiceServer).Migrate(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/greptime.v1.meta.ProcedureService/migrate",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ProcedureServiceServer).Migrate(ctx, req.(*MigrateRegionRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// ProcedureService_ServiceDesc is the grpc.ServiceDesc for ProcedureService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var ProcedureService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "greptime.v1.meta.ProcedureService",
|
||||
HandlerType: (*ProcedureServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "query",
|
||||
Handler: _ProcedureService_Query_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ddl",
|
||||
Handler: _ProcedureService_Ddl_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "migrate",
|
||||
Handler: _ProcedureService_Migrate_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "greptime/v1/meta/procedure.proto",
|
||||
}
|
||||
@@ -0,0 +1,288 @@
|
||||
// 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/meta/region.proto
|
||||
|
||||
package meta
|
||||
|
||||
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 MigrateRegionRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
RegionId uint64 `protobuf:"varint,3,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
|
||||
FromPeer uint64 `protobuf:"varint,4,opt,name=from_peer,json=fromPeer,proto3" json:"from_peer,omitempty"`
|
||||
ToPeer uint64 `protobuf:"varint,5,opt,name=to_peer,json=toPeer,proto3" json:"to_peer,omitempty"`
|
||||
ReplayTimeoutSecs uint32 `protobuf:"varint,6,opt,name=replay_timeout_secs,json=replayTimeoutSecs,proto3" json:"replay_timeout_secs,omitempty"`
|
||||
}
|
||||
|
||||
func (x *MigrateRegionRequest) Reset() {
|
||||
*x = MigrateRegionRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_region_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MigrateRegionRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MigrateRegionRequest) ProtoMessage() {}
|
||||
|
||||
func (x *MigrateRegionRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_region_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 MigrateRegionRequest.ProtoReflect.Descriptor instead.
|
||||
func (*MigrateRegionRequest) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_region_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *MigrateRegionRequest) GetHeader() *RequestHeader {
|
||||
if x != nil {
|
||||
return x.Header
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *MigrateRegionRequest) GetRegionId() uint64 {
|
||||
if x != nil {
|
||||
return x.RegionId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *MigrateRegionRequest) GetFromPeer() uint64 {
|
||||
if x != nil {
|
||||
return x.FromPeer
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *MigrateRegionRequest) GetToPeer() uint64 {
|
||||
if x != nil {
|
||||
return x.ToPeer
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *MigrateRegionRequest) GetReplayTimeoutSecs() uint32 {
|
||||
if x != nil {
|
||||
return x.ReplayTimeoutSecs
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type MigrateRegionResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
Pid *ProcedureId `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"`
|
||||
}
|
||||
|
||||
func (x *MigrateRegionResponse) Reset() {
|
||||
*x = MigrateRegionResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_region_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MigrateRegionResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MigrateRegionResponse) ProtoMessage() {}
|
||||
|
||||
func (x *MigrateRegionResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_region_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 MigrateRegionResponse.ProtoReflect.Descriptor instead.
|
||||
func (*MigrateRegionResponse) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_region_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *MigrateRegionResponse) GetHeader() *ResponseHeader {
|
||||
if x != nil {
|
||||
return x.Header
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *MigrateRegionResponse) GetPid() *ProcedureId {
|
||||
if x != nil {
|
||||
return x.Pid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_greptime_v1_meta_region_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_greptime_v1_meta_region_proto_rawDesc = []byte{
|
||||
0x0a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||||
0x10, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x22, 0xd2, 0x01, 0x0a, 0x14, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69,
|
||||
0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61,
|
||||
0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64,
|
||||
0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18,
|
||||
0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12,
|
||||
0x1b, 0x0a, 0x09, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01,
|
||||
0x28, 0x04, 0x52, 0x08, 0x66, 0x72, 0x6f, 0x6d, 0x50, 0x65, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07,
|
||||
0x74, 0x6f, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x74,
|
||||
0x6f, 0x50, 0x65, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x5f,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18, 0x06, 0x20, 0x01,
|
||||
0x28, 0x0d, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75,
|
||||
0x74, 0x53, 0x65, 0x63, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x15, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74,
|
||||
0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||
0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65,
|
||||
0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x03, 0x70, 0x69, 0x64,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64,
|
||||
0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70, 0x69, 0x64, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69,
|
||||
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 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, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_greptime_v1_meta_region_proto_rawDescOnce sync.Once
|
||||
file_greptime_v1_meta_region_proto_rawDescData = file_greptime_v1_meta_region_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_greptime_v1_meta_region_proto_rawDescGZIP() []byte {
|
||||
file_greptime_v1_meta_region_proto_rawDescOnce.Do(func() {
|
||||
file_greptime_v1_meta_region_proto_rawDescData = protoimpl.X.CompressGZIP(file_greptime_v1_meta_region_proto_rawDescData)
|
||||
})
|
||||
return file_greptime_v1_meta_region_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_greptime_v1_meta_region_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_greptime_v1_meta_region_proto_goTypes = []interface{}{
|
||||
(*MigrateRegionRequest)(nil), // 0: greptime.v1.meta.MigrateRegionRequest
|
||||
(*MigrateRegionResponse)(nil), // 1: greptime.v1.meta.MigrateRegionResponse
|
||||
(*RequestHeader)(nil), // 2: greptime.v1.meta.RequestHeader
|
||||
(*ResponseHeader)(nil), // 3: greptime.v1.meta.ResponseHeader
|
||||
(*ProcedureId)(nil), // 4: greptime.v1.meta.ProcedureId
|
||||
}
|
||||
var file_greptime_v1_meta_region_proto_depIdxs = []int32{
|
||||
2, // 0: greptime.v1.meta.MigrateRegionRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
3, // 1: greptime.v1.meta.MigrateRegionResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
4, // 2: greptime.v1.meta.MigrateRegionResponse.pid:type_name -> greptime.v1.meta.ProcedureId
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_greptime_v1_meta_region_proto_init() }
|
||||
func file_greptime_v1_meta_region_proto_init() {
|
||||
if File_greptime_v1_meta_region_proto != nil {
|
||||
return
|
||||
}
|
||||
file_greptime_v1_meta_common_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_greptime_v1_meta_region_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MigrateRegionRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_region_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MigrateRegionResponse); 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_meta_region_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_greptime_v1_meta_region_proto_goTypes,
|
||||
DependencyIndexes: file_greptime_v1_meta_region_proto_depIdxs,
|
||||
MessageInfos: file_greptime_v1_meta_region_proto_msgTypes,
|
||||
}.Build()
|
||||
File_greptime_v1_meta_region_proto = out.File
|
||||
file_greptime_v1_meta_region_proto_rawDesc = nil
|
||||
file_greptime_v1_meta_region_proto_goTypes = nil
|
||||
file_greptime_v1_meta_region_proto_depIdxs = nil
|
||||
}
|
||||
@@ -5943,6 +5943,508 @@ java.lang.String defaultValue);
|
||||
|
||||
}
|
||||
|
||||
public interface ProcedureIdOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:greptime.v1.meta.ProcedureId)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>bytes key = 1;</code>
|
||||
* @return The key.
|
||||
*/
|
||||
com.google.protobuf.ByteString getKey();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Procedure identifer
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code greptime.v1.meta.ProcedureId}
|
||||
*/
|
||||
public static final class ProcedureId extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:greptime.v1.meta.ProcedureId)
|
||||
ProcedureIdOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use ProcedureId.newBuilder() to construct.
|
||||
private ProcedureId(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private ProcedureId() {
|
||||
key_ = com.google.protobuf.ByteString.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new ProcedureId();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private ProcedureId(
|
||||
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: {
|
||||
|
||||
key_ = input.readBytes();
|
||||
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.meta.Common.internal_static_greptime_v1_meta_ProcedureId_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return greptime.v1.meta.Common.internal_static_greptime_v1_meta_ProcedureId_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
greptime.v1.meta.Common.ProcedureId.class, greptime.v1.meta.Common.ProcedureId.Builder.class);
|
||||
}
|
||||
|
||||
public static final int KEY_FIELD_NUMBER = 1;
|
||||
private com.google.protobuf.ByteString key_;
|
||||
/**
|
||||
* <code>bytes key = 1;</code>
|
||||
* @return The key.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString getKey() {
|
||||
return key_;
|
||||
}
|
||||
|
||||
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 (!key_.isEmpty()) {
|
||||
output.writeBytes(1, key_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!key_.isEmpty()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBytesSize(1, key_);
|
||||
}
|
||||
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.meta.Common.ProcedureId)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
greptime.v1.meta.Common.ProcedureId other = (greptime.v1.meta.Common.ProcedureId) obj;
|
||||
|
||||
if (!getKey()
|
||||
.equals(other.getKey())) 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) + KEY_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getKey().hashCode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static greptime.v1.meta.Common.ProcedureId parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static greptime.v1.meta.Common.ProcedureId parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static greptime.v1.meta.Common.ProcedureId parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static greptime.v1.meta.Common.ProcedureId 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.meta.Common.ProcedureId parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static greptime.v1.meta.Common.ProcedureId parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static greptime.v1.meta.Common.ProcedureId parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static greptime.v1.meta.Common.ProcedureId 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.meta.Common.ProcedureId parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static greptime.v1.meta.Common.ProcedureId 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.meta.Common.ProcedureId parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static greptime.v1.meta.Common.ProcedureId 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.meta.Common.ProcedureId 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;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Procedure identifer
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code greptime.v1.meta.ProcedureId}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:greptime.v1.meta.ProcedureId)
|
||||
greptime.v1.meta.Common.ProcedureIdOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return greptime.v1.meta.Common.internal_static_greptime_v1_meta_ProcedureId_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return greptime.v1.meta.Common.internal_static_greptime_v1_meta_ProcedureId_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
greptime.v1.meta.Common.ProcedureId.class, greptime.v1.meta.Common.ProcedureId.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using greptime.v1.meta.Common.ProcedureId.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();
|
||||
key_ = com.google.protobuf.ByteString.EMPTY;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return greptime.v1.meta.Common.internal_static_greptime_v1_meta_ProcedureId_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public greptime.v1.meta.Common.ProcedureId getDefaultInstanceForType() {
|
||||
return greptime.v1.meta.Common.ProcedureId.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public greptime.v1.meta.Common.ProcedureId build() {
|
||||
greptime.v1.meta.Common.ProcedureId result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public greptime.v1.meta.Common.ProcedureId buildPartial() {
|
||||
greptime.v1.meta.Common.ProcedureId result = new greptime.v1.meta.Common.ProcedureId(this);
|
||||
result.key_ = key_;
|
||||
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.meta.Common.ProcedureId) {
|
||||
return mergeFrom((greptime.v1.meta.Common.ProcedureId)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(greptime.v1.meta.Common.ProcedureId other) {
|
||||
if (other == greptime.v1.meta.Common.ProcedureId.getDefaultInstance()) return this;
|
||||
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
|
||||
setKey(other.getKey());
|
||||
}
|
||||
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.meta.Common.ProcedureId parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (greptime.v1.meta.Common.ProcedureId) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>bytes key = 1;</code>
|
||||
* @return The key.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString getKey() {
|
||||
return key_;
|
||||
}
|
||||
/**
|
||||
* <code>bytes key = 1;</code>
|
||||
* @param value The key to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setKey(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
key_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bytes key = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearKey() {
|
||||
|
||||
key_ = getDefaultInstance().getKey();
|
||||
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.meta.ProcedureId)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureId)
|
||||
private static final greptime.v1.meta.Common.ProcedureId DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new greptime.v1.meta.Common.ProcedureId();
|
||||
}
|
||||
|
||||
public static greptime.v1.meta.Common.ProcedureId getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<ProcedureId>
|
||||
PARSER = new com.google.protobuf.AbstractParser<ProcedureId>() {
|
||||
@java.lang.Override
|
||||
public ProcedureId parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new ProcedureId(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<ProcedureId> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<ProcedureId> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public greptime.v1.meta.Common.ProcedureId getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_greptime_v1_meta_RequestHeader_descriptor;
|
||||
private static final
|
||||
@@ -5988,6 +6490,11 @@ java.lang.String defaultValue);
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_greptime_v1_meta_KeyValue_fieldAccessorTable;
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_greptime_v1_meta_ProcedureId_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_greptime_v1_meta_ProcedureId_fieldAccessorTable;
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
@@ -6014,10 +6521,10 @@ java.lang.String defaultValue);
|
||||
"\022\022\n\ntable_name\030\003 \001(\t\"L\n\014TimeInterval\022\036\n\026" +
|
||||
"start_timestamp_millis\030\001 \001(\003\022\034\n\024end_time" +
|
||||
"stamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003key\030\001 " +
|
||||
"\001(\014\022\r\n\005value\030\002 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000" +
|
||||
"\022\014\n\010FRONTEND\020\001B<Z:github.com/GreptimeTea" +
|
||||
"m/greptime-proto/go/greptime/v1/metab\006pr" +
|
||||
"oto3"
|
||||
"\001(\014\022\r\n\005value\030\002 \001(\014\"\032\n\013ProcedureId\022\013\n\003key" +
|
||||
"\030\001 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000\022\014\n\010FRONTEND" +
|
||||
"\020\001B<Z:github.com/GreptimeTeam/greptime-p" +
|
||||
"roto/go/greptime/v1/metab\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@@ -6077,6 +6584,12 @@ java.lang.String defaultValue);
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_greptime_v1_meta_KeyValue_descriptor,
|
||||
new java.lang.String[] { "Key", "Value", });
|
||||
internal_static_greptime_v1_meta_ProcedureId_descriptor =
|
||||
getDescriptor().getMessageTypes().get(8);
|
||||
internal_static_greptime_v1_meta_ProcedureId_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_greptime_v1_meta_ProcedureId_descriptor,
|
||||
new java.lang.String[] { "Key", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -73,3 +73,8 @@ message KeyValue {
|
||||
// value is the value held by the key, in bytes.
|
||||
bytes value = 2;
|
||||
}
|
||||
|
||||
// Procedure identifer
|
||||
message ProcedureId {
|
||||
bytes key = 1;
|
||||
}
|
||||
|
||||
@@ -22,12 +22,6 @@ import "greptime/v1/meta/common.proto";
|
||||
import "greptime/v1/meta/route.proto";
|
||||
import "greptime/v1/ddl.proto";
|
||||
|
||||
|
||||
service DdlTask {
|
||||
// Submits a DDL task to meta.
|
||||
rpc SubmitDdlTask(SubmitDdlTaskRequest) returns (SubmitDdlTaskResponse);
|
||||
}
|
||||
|
||||
enum DdlTaskType {
|
||||
Create = 0;
|
||||
Drop = 1;
|
||||
@@ -57,7 +51,7 @@ message TruncateTableTask {
|
||||
TruncateTableExpr truncate_table = 1;
|
||||
}
|
||||
|
||||
message SubmitDdlTaskRequest {
|
||||
message DdlTaskRequest {
|
||||
RequestHeader header = 1;
|
||||
|
||||
oneof task {
|
||||
@@ -71,10 +65,9 @@ message SubmitDdlTaskRequest {
|
||||
}
|
||||
}
|
||||
|
||||
message SubmitDdlTaskResponse {
|
||||
message DdlTaskResponse {
|
||||
ResponseHeader header = 1;
|
||||
// Key is the identifier for the ddl task.
|
||||
bytes key = 2;
|
||||
ProcedureId pid = 2;
|
||||
|
||||
// Returns if table created.
|
||||
// TODO(jeremy): remove it?
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package greptime.v1.meta;
|
||||
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta";
|
||||
|
||||
import "greptime/v1/meta/common.proto";
|
||||
import "greptime/v1/meta/ddl.proto";
|
||||
import "greptime/v1/meta/region.proto";
|
||||
|
||||
enum ProcedureStatus {
|
||||
Running = 0;
|
||||
Done = 1;
|
||||
Retrying = 2;
|
||||
Failed = 3;
|
||||
}
|
||||
|
||||
message QueryProcedureRequest {
|
||||
RequestHeader header = 1;
|
||||
ProcedureId pid = 2;
|
||||
}
|
||||
|
||||
message ProcedureStateResponse {
|
||||
ResponseHeader header = 1;
|
||||
ProcedureStatus status = 2;
|
||||
string error = 3;
|
||||
}
|
||||
|
||||
service ProcedureService {
|
||||
// Query a submitted procedure state
|
||||
rpc query(QueryProcedureRequest) returns (ProcedureStateResponse);
|
||||
|
||||
// Submits a DDL task
|
||||
rpc ddl(DdlTaskRequest) returns (DdlTaskResponse);
|
||||
|
||||
// Submits a region migration task
|
||||
rpc migrate(MigrateRegionRequest) returns (MigrateRegionResponse);
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package greptime.v1.meta;
|
||||
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta";
|
||||
|
||||
import "greptime/v1/meta/common.proto";
|
||||
|
||||
message MigrateRegionRequest {
|
||||
RequestHeader header = 1;
|
||||
uint64 region_id = 3;
|
||||
uint64 from_peer = 4;
|
||||
uint64 to_peer = 5;
|
||||
uint32 replay_timeout_secs = 6;
|
||||
}
|
||||
|
||||
message MigrateRegionResponse {
|
||||
ResponseHeader header = 1;
|
||||
ProcedureId pid = 2;
|
||||
}
|
||||
+3
-1
@@ -179,7 +179,9 @@ gen_set_header!(CompareAndPutRequest);
|
||||
gen_set_header!(DeleteRangeRequest);
|
||||
gen_set_header!(LockRequest);
|
||||
gen_set_header!(UnlockRequest);
|
||||
gen_set_header!(SubmitDdlTaskRequest);
|
||||
gen_set_header!(DdlTaskRequest);
|
||||
gen_set_header!(MigrateRegionRequest);
|
||||
gen_set_header!(QueryProcedureRequest);
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
||||
Reference in New Issue
Block a user