feat: add source_tables and source_table_ids (#151)
* feat: add `source_tables` * feat: use `SchemaScopedTableName` * chore: include flow proto * chore: rename * feat: add `CreateFlowTask` and `DropFlowTask`
This commit is contained in:
@@ -45,6 +45,7 @@ fn main() {
|
||||
"proto/greptime/v1/meta/cluster.proto",
|
||||
"proto/greptime/v1/meta/procedure.proto",
|
||||
"proto/greptime/v1/region/server.proto",
|
||||
"proto/greptime/v1/flow/server.proto",
|
||||
"proto/greptime/v1/index/inverted_index.proto",
|
||||
"proto/prometheus/remote/remote.proto",
|
||||
"proto/substrait_extension/promql_plan.proto",
|
||||
|
||||
+624
-359
File diff suppressed because it is too large
Load Diff
+742
-425
File diff suppressed because it is too large
Load Diff
+290
-251
File diff suppressed because it is too large
Load Diff
+349
-292
File diff suppressed because it is too large
Load Diff
+607
-33
@@ -142,6 +142,32 @@ struct DropDatabaseTaskDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropDatabaseTaskDefaultTypeInternal _DropDatabaseTask_default_instance_;
|
||||
PROTOBUF_CONSTEXPR CreateFlowTask::CreateFlowTask(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.create_flow_task_)*/nullptr
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct CreateFlowTaskDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR CreateFlowTaskDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~CreateFlowTaskDefaultTypeInternal() {}
|
||||
union {
|
||||
CreateFlowTask _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFlowTaskDefaultTypeInternal _CreateFlowTask_default_instance_;
|
||||
PROTOBUF_CONSTEXPR DropFlowTask::DropFlowTask(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.drop_flow_task_)*/nullptr
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct DropFlowTaskDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR DropFlowTaskDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~DropFlowTaskDefaultTypeInternal() {}
|
||||
union {
|
||||
DropFlowTask _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropFlowTaskDefaultTypeInternal _DropFlowTask_default_instance_;
|
||||
PROTOBUF_CONSTEXPR DdlTaskRequest::DdlTaskRequest(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.header_)*/nullptr
|
||||
@@ -176,7 +202,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[11];
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[13];
|
||||
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto[1];
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto = nullptr;
|
||||
|
||||
@@ -247,6 +273,20 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DropDatabaseTask, _impl_.drop_database_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::CreateFlowTask, _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::CreateFlowTask, _impl_.create_flow_task_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DropFlowTask, _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::DropFlowTask, _impl_.drop_flow_task_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_._oneof_case_[0]),
|
||||
@@ -262,6 +302,8 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_.task_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _internal_metadata_),
|
||||
@@ -284,8 +326,10 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 44, -1, -1, sizeof(::greptime::v1::meta::AlterTableTasks)},
|
||||
{ 51, -1, -1, sizeof(::greptime::v1::meta::TruncateTableTask)},
|
||||
{ 58, -1, -1, sizeof(::greptime::v1::meta::DropDatabaseTask)},
|
||||
{ 65, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)},
|
||||
{ 82, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)},
|
||||
{ 65, -1, -1, sizeof(::greptime::v1::meta::CreateFlowTask)},
|
||||
{ 72, -1, -1, sizeof(::greptime::v1::meta::DropFlowTask)},
|
||||
{ 79, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)},
|
||||
{ 98, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -298,6 +342,8 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::meta::_AlterTableTasks_default_instance_._instance,
|
||||
&::greptime::v1::meta::_TruncateTableTask_default_instance_._instance,
|
||||
&::greptime::v1::meta::_DropDatabaseTask_default_instance_._instance,
|
||||
&::greptime::v1::meta::_CreateFlowTask_default_instance_._instance,
|
||||
&::greptime::v1::meta::_DropFlowTask_default_instance_._instance,
|
||||
&::greptime::v1::meta::_DdlTaskRequest_default_instance_._instance,
|
||||
&::greptime::v1::meta::_DdlTaskResponse_default_instance_._instance,
|
||||
};
|
||||
@@ -323,32 +369,38 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto[] PROTOB
|
||||
"ask\"K\n\021TruncateTableTask\0226\n\016truncate_tab"
|
||||
"le\030\001 \001(\0132\036.greptime.v1.TruncateTableExpr"
|
||||
"\"H\n\020DropDatabaseTask\0224\n\rdrop_database\030\001 "
|
||||
"\001(\0132\035.greptime.v1.DropDatabaseExpr\"\217\005\n\016D"
|
||||
"dlTaskRequest\022/\n\006header\030\001 \001(\0132\037.greptime"
|
||||
".v1.meta.RequestHeader\022>\n\021create_table_t"
|
||||
"ask\030\002 \001(\0132!.greptime.v1.meta.CreateTable"
|
||||
"TaskH\000\022:\n\017drop_table_task\030\003 \001(\0132\037.grepti"
|
||||
"me.v1.meta.DropTableTaskH\000\022<\n\020alter_tabl"
|
||||
"e_task\030\004 \001(\0132 .greptime.v1.meta.AlterTab"
|
||||
"leTaskH\000\022B\n\023truncate_table_task\030\005 \001(\0132#."
|
||||
"greptime.v1.meta.TruncateTableTaskH\000\022@\n\022"
|
||||
"create_table_tasks\030\006 \001(\0132\".greptime.v1.m"
|
||||
"eta.CreateTableTasksH\000\022<\n\020drop_table_tas"
|
||||
"ks\030\007 \001(\0132 .greptime.v1.meta.DropTableTas"
|
||||
"ksH\000\022>\n\021alter_table_tasks\030\010 \001(\0132!.grepti"
|
||||
"me.v1.meta.AlterTableTasksH\000\022@\n\022drop_dat"
|
||||
"abase_task\030\t \001(\0132\".greptime.v1.meta.Drop"
|
||||
"DatabaseTaskH\000\022D\n\024create_database_task\030\n"
|
||||
" \001(\0132$.greptime.v1.meta.CreateDatabaseTa"
|
||||
"skH\000B\006\n\004task\"\312\001\n\017DdlTaskResponse\0220\n\006head"
|
||||
"er\030\001 \001(\0132 .greptime.v1.meta.ResponseHead"
|
||||
"er\022*\n\003pid\030\002 \001(\0132\035.greptime.v1.meta.Proce"
|
||||
"dureId\022+\n\010table_id\030\004 \001(\0132\031.greptime.v1.m"
|
||||
"eta.TableId\022,\n\ttable_ids\030\005 \003(\0132\031.greptim"
|
||||
"e.v1.meta.TableId*#\n\013DdlTaskType\022\n\n\006Crea"
|
||||
"te\020\000\022\010\n\004Drop\020\001B<Z:github.com/GreptimeTea"
|
||||
"m/greptime-proto/go/greptime/v1/metab\006pr"
|
||||
"oto3"
|
||||
"\001(\0132\035.greptime.v1.DropDatabaseExpr\"K\n\016Cr"
|
||||
"eateFlowTask\0229\n\020create_flow_task\030\001 \001(\0132\037"
|
||||
".greptime.v1.CreateFlowTaskExpr\"E\n\014DropF"
|
||||
"lowTask\0225\n\016drop_flow_task\030\001 \001(\0132\035.grepti"
|
||||
"me.v1.DropFlowTaskExpr\"\207\006\n\016DdlTaskReques"
|
||||
"t\022/\n\006header\030\001 \001(\0132\037.greptime.v1.meta.Req"
|
||||
"uestHeader\022>\n\021create_table_task\030\002 \001(\0132!."
|
||||
"greptime.v1.meta.CreateTableTaskH\000\022:\n\017dr"
|
||||
"op_table_task\030\003 \001(\0132\037.greptime.v1.meta.D"
|
||||
"ropTableTaskH\000\022<\n\020alter_table_task\030\004 \001(\013"
|
||||
"2 .greptime.v1.meta.AlterTableTaskH\000\022B\n\023"
|
||||
"truncate_table_task\030\005 \001(\0132#.greptime.v1."
|
||||
"meta.TruncateTableTaskH\000\022@\n\022create_table"
|
||||
"_tasks\030\006 \001(\0132\".greptime.v1.meta.CreateTa"
|
||||
"bleTasksH\000\022<\n\020drop_table_tasks\030\007 \001(\0132 .g"
|
||||
"reptime.v1.meta.DropTableTasksH\000\022>\n\021alte"
|
||||
"r_table_tasks\030\010 \001(\0132!.greptime.v1.meta.A"
|
||||
"lterTableTasksH\000\022@\n\022drop_database_task\030\t"
|
||||
" \001(\0132\".greptime.v1.meta.DropDatabaseTask"
|
||||
"H\000\022D\n\024create_database_task\030\n \001(\0132$.grept"
|
||||
"ime.v1.meta.CreateDatabaseTaskH\000\022<\n\020crea"
|
||||
"te_flow_task\030\013 \001(\0132 .greptime.v1.meta.Cr"
|
||||
"eateFlowTaskH\000\0228\n\016drop_flow_task\030\014 \001(\0132\036"
|
||||
".greptime.v1.meta.DropFlowTaskH\000B\006\n\004task"
|
||||
"\"\312\001\n\017DdlTaskResponse\0220\n\006header\030\001 \001(\0132 .g"
|
||||
"reptime.v1.meta.ResponseHeader\022*\n\003pid\030\002 "
|
||||
"\001(\0132\035.greptime.v1.meta.ProcedureId\022+\n\010ta"
|
||||
"ble_id\030\004 \001(\0132\031.greptime.v1.meta.TableId\022"
|
||||
",\n\ttable_ids\030\005 \003(\0132\031.greptime.v1.meta.Ta"
|
||||
"bleId*#\n\013DdlTaskType\022\n\n\006Create\020\000\022\010\n\004Drop"
|
||||
"\020\001B<Z:github.com/GreptimeTeam/greptime-p"
|
||||
"roto/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,
|
||||
@@ -357,9 +409,9 @@ 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, 1804, descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto,
|
||||
false, false, 2072, 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, 11,
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps, 3, 13,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto,
|
||||
file_level_service_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto,
|
||||
@@ -2223,6 +2275,404 @@ void DropDatabaseTask::InternalSwap(DropDatabaseTask* other) {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class CreateFlowTask::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::CreateFlowTaskExpr& create_flow_task(const CreateFlowTask* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::CreateFlowTaskExpr&
|
||||
CreateFlowTask::_Internal::create_flow_task(const CreateFlowTask* msg) {
|
||||
return *msg->_impl_.create_flow_task_;
|
||||
}
|
||||
void CreateFlowTask::clear_create_flow_task() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.create_flow_task_ != nullptr) {
|
||||
delete _impl_.create_flow_task_;
|
||||
}
|
||||
_impl_.create_flow_task_ = nullptr;
|
||||
}
|
||||
CreateFlowTask::CreateFlowTask(::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.CreateFlowTask)
|
||||
}
|
||||
CreateFlowTask::CreateFlowTask(const CreateFlowTask& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
CreateFlowTask* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.create_flow_task_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
if (from._internal_has_create_flow_task()) {
|
||||
_this->_impl_.create_flow_task_ = new ::greptime::v1::CreateFlowTaskExpr(*from._impl_.create_flow_task_);
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.CreateFlowTask)
|
||||
}
|
||||
|
||||
inline void CreateFlowTask::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.create_flow_task_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
CreateFlowTask::~CreateFlowTask() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.CreateFlowTask)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void CreateFlowTask::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
if (this != internal_default_instance()) delete _impl_.create_flow_task_;
|
||||
}
|
||||
|
||||
void CreateFlowTask::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void CreateFlowTask::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.CreateFlowTask)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.create_flow_task_ != nullptr) {
|
||||
delete _impl_.create_flow_task_;
|
||||
}
|
||||
_impl_.create_flow_task_ = nullptr;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* CreateFlowTask::_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.CreateFlowTaskExpr create_flow_task = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_create_flow_task(), 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* CreateFlowTask::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.CreateFlowTask)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .greptime.v1.CreateFlowTaskExpr create_flow_task = 1;
|
||||
if (this->_internal_has_create_flow_task()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(1, _Internal::create_flow_task(this),
|
||||
_Internal::create_flow_task(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.CreateFlowTask)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t CreateFlowTask::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.CreateFlowTask)
|
||||
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.CreateFlowTaskExpr create_flow_task = 1;
|
||||
if (this->_internal_has_create_flow_task()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.create_flow_task_);
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateFlowTask::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
CreateFlowTask::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateFlowTask::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void CreateFlowTask::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<CreateFlowTask*>(&to_msg);
|
||||
auto& from = static_cast<const CreateFlowTask&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.CreateFlowTask)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_has_create_flow_task()) {
|
||||
_this->_internal_mutable_create_flow_task()->::greptime::v1::CreateFlowTaskExpr::MergeFrom(
|
||||
from._internal_create_flow_task());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void CreateFlowTask::CopyFrom(const CreateFlowTask& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.CreateFlowTask)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool CreateFlowTask::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void CreateFlowTask::InternalSwap(CreateFlowTask* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
swap(_impl_.create_flow_task_, other->_impl_.create_flow_task_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata CreateFlowTask::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[9]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class DropFlowTask::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::DropFlowTaskExpr& drop_flow_task(const DropFlowTask* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::DropFlowTaskExpr&
|
||||
DropFlowTask::_Internal::drop_flow_task(const DropFlowTask* msg) {
|
||||
return *msg->_impl_.drop_flow_task_;
|
||||
}
|
||||
void DropFlowTask::clear_drop_flow_task() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.drop_flow_task_ != nullptr) {
|
||||
delete _impl_.drop_flow_task_;
|
||||
}
|
||||
_impl_.drop_flow_task_ = nullptr;
|
||||
}
|
||||
DropFlowTask::DropFlowTask(::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.DropFlowTask)
|
||||
}
|
||||
DropFlowTask::DropFlowTask(const DropFlowTask& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
DropFlowTask* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.drop_flow_task_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
if (from._internal_has_drop_flow_task()) {
|
||||
_this->_impl_.drop_flow_task_ = new ::greptime::v1::DropFlowTaskExpr(*from._impl_.drop_flow_task_);
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.DropFlowTask)
|
||||
}
|
||||
|
||||
inline void DropFlowTask::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.drop_flow_task_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
DropFlowTask::~DropFlowTask() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.DropFlowTask)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void DropFlowTask::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
if (this != internal_default_instance()) delete _impl_.drop_flow_task_;
|
||||
}
|
||||
|
||||
void DropFlowTask::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void DropFlowTask::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.DropFlowTask)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.drop_flow_task_ != nullptr) {
|
||||
delete _impl_.drop_flow_task_;
|
||||
}
|
||||
_impl_.drop_flow_task_ = nullptr;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* DropFlowTask::_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.DropFlowTaskExpr drop_flow_task = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_drop_flow_task(), 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* DropFlowTask::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.DropFlowTask)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .greptime.v1.DropFlowTaskExpr drop_flow_task = 1;
|
||||
if (this->_internal_has_drop_flow_task()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(1, _Internal::drop_flow_task(this),
|
||||
_Internal::drop_flow_task(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.DropFlowTask)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t DropFlowTask::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.DropFlowTask)
|
||||
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.DropFlowTaskExpr drop_flow_task = 1;
|
||||
if (this->_internal_has_drop_flow_task()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.drop_flow_task_);
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropFlowTask::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
DropFlowTask::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropFlowTask::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void DropFlowTask::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<DropFlowTask*>(&to_msg);
|
||||
auto& from = static_cast<const DropFlowTask&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.DropFlowTask)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_has_drop_flow_task()) {
|
||||
_this->_internal_mutable_drop_flow_task()->::greptime::v1::DropFlowTaskExpr::MergeFrom(
|
||||
from._internal_drop_flow_task());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void DropFlowTask::CopyFrom(const DropFlowTask& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.DropFlowTask)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool DropFlowTask::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void DropFlowTask::InternalSwap(DropFlowTask* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
swap(_impl_.drop_flow_task_, other->_impl_.drop_flow_task_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata DropFlowTask::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[10]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class DdlTaskRequest::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::meta::RequestHeader& header(const DdlTaskRequest* msg);
|
||||
@@ -2235,6 +2685,8 @@ class DdlTaskRequest::_Internal {
|
||||
static const ::greptime::v1::meta::AlterTableTasks& alter_table_tasks(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::DropDatabaseTask& drop_database_task(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::CreateDatabaseTask& create_database_task(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::CreateFlowTask& create_flow_task(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::DropFlowTask& drop_flow_task(const DdlTaskRequest* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::meta::RequestHeader&
|
||||
@@ -2277,6 +2729,14 @@ const ::greptime::v1::meta::CreateDatabaseTask&
|
||||
DdlTaskRequest::_Internal::create_database_task(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.task_.create_database_task_;
|
||||
}
|
||||
const ::greptime::v1::meta::CreateFlowTask&
|
||||
DdlTaskRequest::_Internal::create_flow_task(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.task_.create_flow_task_;
|
||||
}
|
||||
const ::greptime::v1::meta::DropFlowTask&
|
||||
DdlTaskRequest::_Internal::drop_flow_task(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.task_.drop_flow_task_;
|
||||
}
|
||||
void DdlTaskRequest::clear_header() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
@@ -2418,6 +2878,36 @@ void DdlTaskRequest::set_allocated_create_database_task(::greptime::v1::meta::Cr
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.create_database_task)
|
||||
}
|
||||
void DdlTaskRequest::set_allocated_create_flow_task(::greptime::v1::meta::CreateFlowTask* create_flow_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_task();
|
||||
if (create_flow_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(create_flow_task);
|
||||
if (message_arena != submessage_arena) {
|
||||
create_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, create_flow_task, submessage_arena);
|
||||
}
|
||||
set_has_create_flow_task();
|
||||
_impl_.task_.create_flow_task_ = create_flow_task;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.create_flow_task)
|
||||
}
|
||||
void DdlTaskRequest::set_allocated_drop_flow_task(::greptime::v1::meta::DropFlowTask* drop_flow_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_task();
|
||||
if (drop_flow_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(drop_flow_task);
|
||||
if (message_arena != submessage_arena) {
|
||||
drop_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, drop_flow_task, submessage_arena);
|
||||
}
|
||||
set_has_drop_flow_task();
|
||||
_impl_.task_.drop_flow_task_ = drop_flow_task;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_flow_task)
|
||||
}
|
||||
DdlTaskRequest::DdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -2484,6 +2974,16 @@ DdlTaskRequest::DdlTaskRequest(const DdlTaskRequest& from)
|
||||
from._internal_create_database_task());
|
||||
break;
|
||||
}
|
||||
case kCreateFlowTask: {
|
||||
_this->_internal_mutable_create_flow_task()->::greptime::v1::meta::CreateFlowTask::MergeFrom(
|
||||
from._internal_create_flow_task());
|
||||
break;
|
||||
}
|
||||
case kDropFlowTask: {
|
||||
_this->_internal_mutable_drop_flow_task()->::greptime::v1::meta::DropFlowTask::MergeFrom(
|
||||
from._internal_drop_flow_task());
|
||||
break;
|
||||
}
|
||||
case TASK_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -2582,6 +3082,18 @@ void DdlTaskRequest::clear_task() {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case kCreateFlowTask: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.task_.create_flow_task_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case kDropFlowTask: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.task_.drop_flow_task_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case TASK_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -2690,6 +3202,22 @@ const char* DdlTaskRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.meta.CreateFlowTask create_flow_task = 11;
|
||||
case 11:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_create_flow_task(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.meta.DropFlowTask drop_flow_task = 12;
|
||||
case 12:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_drop_flow_task(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -2789,6 +3317,20 @@ uint8_t* DdlTaskRequest::_InternalSerialize(
|
||||
_Internal::create_database_task(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.CreateFlowTask create_flow_task = 11;
|
||||
if (_internal_has_create_flow_task()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(11, _Internal::create_flow_task(this),
|
||||
_Internal::create_flow_task(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.DropFlowTask drop_flow_task = 12;
|
||||
if (_internal_has_drop_flow_task()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(12, _Internal::drop_flow_task(this),
|
||||
_Internal::drop_flow_task(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);
|
||||
@@ -2876,6 +3418,20 @@ size_t DdlTaskRequest::ByteSizeLong() const {
|
||||
*_impl_.task_.create_database_task_);
|
||||
break;
|
||||
}
|
||||
// .greptime.v1.meta.CreateFlowTask create_flow_task = 11;
|
||||
case kCreateFlowTask: {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.task_.create_flow_task_);
|
||||
break;
|
||||
}
|
||||
// .greptime.v1.meta.DropFlowTask drop_flow_task = 12;
|
||||
case kDropFlowTask: {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.task_.drop_flow_task_);
|
||||
break;
|
||||
}
|
||||
case TASK_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -2948,6 +3504,16 @@ void DdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
|
||||
from._internal_create_database_task());
|
||||
break;
|
||||
}
|
||||
case kCreateFlowTask: {
|
||||
_this->_internal_mutable_create_flow_task()->::greptime::v1::meta::CreateFlowTask::MergeFrom(
|
||||
from._internal_create_flow_task());
|
||||
break;
|
||||
}
|
||||
case kDropFlowTask: {
|
||||
_this->_internal_mutable_drop_flow_task()->::greptime::v1::meta::DropFlowTask::MergeFrom(
|
||||
from._internal_drop_flow_task());
|
||||
break;
|
||||
}
|
||||
case TASK_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -2977,7 +3543,7 @@ void DdlTaskRequest::InternalSwap(DdlTaskRequest* other) {
|
||||
::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[9]);
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[11]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -3312,7 +3878,7 @@ void DdlTaskResponse::InternalSwap(DdlTaskResponse* other) {
|
||||
::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[10]);
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[12]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
@@ -3356,6 +3922,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DropDatabaseTask*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::DropDatabaseTask >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::DropDatabaseTask >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::CreateFlowTask*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::CreateFlowTask >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::CreateFlowTask >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DropFlowTask*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::DropFlowTask >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::DropFlowTask >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DdlTaskRequest*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::DdlTaskRequest >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::DdlTaskRequest >(arena);
|
||||
|
||||
@@ -60,6 +60,9 @@ extern AlterTableTasksDefaultTypeInternal _AlterTableTasks_default_instance_;
|
||||
class CreateDatabaseTask;
|
||||
struct CreateDatabaseTaskDefaultTypeInternal;
|
||||
extern CreateDatabaseTaskDefaultTypeInternal _CreateDatabaseTask_default_instance_;
|
||||
class CreateFlowTask;
|
||||
struct CreateFlowTaskDefaultTypeInternal;
|
||||
extern CreateFlowTaskDefaultTypeInternal _CreateFlowTask_default_instance_;
|
||||
class CreateTableTask;
|
||||
struct CreateTableTaskDefaultTypeInternal;
|
||||
extern CreateTableTaskDefaultTypeInternal _CreateTableTask_default_instance_;
|
||||
@@ -75,6 +78,9 @@ extern DdlTaskResponseDefaultTypeInternal _DdlTaskResponse_default_instance_;
|
||||
class DropDatabaseTask;
|
||||
struct DropDatabaseTaskDefaultTypeInternal;
|
||||
extern DropDatabaseTaskDefaultTypeInternal _DropDatabaseTask_default_instance_;
|
||||
class DropFlowTask;
|
||||
struct DropFlowTaskDefaultTypeInternal;
|
||||
extern DropFlowTaskDefaultTypeInternal _DropFlowTask_default_instance_;
|
||||
class DropTableTask;
|
||||
struct DropTableTaskDefaultTypeInternal;
|
||||
extern DropTableTaskDefaultTypeInternal _DropTableTask_default_instance_;
|
||||
@@ -91,11 +97,13 @@ PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::greptime::v1::meta::AlterTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::AlterTableTask>(Arena*);
|
||||
template<> ::greptime::v1::meta::AlterTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::AlterTableTasks>(Arena*);
|
||||
template<> ::greptime::v1::meta::CreateDatabaseTask* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateDatabaseTask>(Arena*);
|
||||
template<> ::greptime::v1::meta::CreateFlowTask* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateFlowTask>(Arena*);
|
||||
template<> ::greptime::v1::meta::CreateTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateTableTask>(Arena*);
|
||||
template<> ::greptime::v1::meta::CreateTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateTableTasks>(Arena*);
|
||||
template<> ::greptime::v1::meta::DdlTaskRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::DdlTaskRequest>(Arena*);
|
||||
template<> ::greptime::v1::meta::DdlTaskResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::DdlTaskResponse>(Arena*);
|
||||
template<> ::greptime::v1::meta::DropDatabaseTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropDatabaseTask>(Arena*);
|
||||
template<> ::greptime::v1::meta::DropFlowTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropFlowTask>(Arena*);
|
||||
template<> ::greptime::v1::meta::DropTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropTableTask>(Arena*);
|
||||
template<> ::greptime::v1::meta::DropTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::DropTableTasks>(Arena*);
|
||||
template<> ::greptime::v1::meta::TruncateTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::TruncateTableTask>(Arena*);
|
||||
@@ -1580,6 +1588,320 @@ class DropDatabaseTask final :
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class CreateFlowTask final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.CreateFlowTask) */ {
|
||||
public:
|
||||
inline CreateFlowTask() : CreateFlowTask(nullptr) {}
|
||||
~CreateFlowTask() override;
|
||||
explicit PROTOBUF_CONSTEXPR CreateFlowTask(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
CreateFlowTask(const CreateFlowTask& from);
|
||||
CreateFlowTask(CreateFlowTask&& from) noexcept
|
||||
: CreateFlowTask() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline CreateFlowTask& operator=(const CreateFlowTask& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline CreateFlowTask& operator=(CreateFlowTask&& 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 CreateFlowTask& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const CreateFlowTask* internal_default_instance() {
|
||||
return reinterpret_cast<const CreateFlowTask*>(
|
||||
&_CreateFlowTask_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
9;
|
||||
|
||||
friend void swap(CreateFlowTask& a, CreateFlowTask& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(CreateFlowTask* 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(CreateFlowTask* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
CreateFlowTask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<CreateFlowTask>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const CreateFlowTask& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const CreateFlowTask& from) {
|
||||
CreateFlowTask::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(CreateFlowTask* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.meta.CreateFlowTask";
|
||||
}
|
||||
protected:
|
||||
explicit CreateFlowTask(::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 {
|
||||
kCreateFlowTaskFieldNumber = 1,
|
||||
};
|
||||
// .greptime.v1.CreateFlowTaskExpr create_flow_task = 1;
|
||||
bool has_create_flow_task() const;
|
||||
private:
|
||||
bool _internal_has_create_flow_task() const;
|
||||
public:
|
||||
void clear_create_flow_task();
|
||||
const ::greptime::v1::CreateFlowTaskExpr& create_flow_task() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::CreateFlowTaskExpr* release_create_flow_task();
|
||||
::greptime::v1::CreateFlowTaskExpr* mutable_create_flow_task();
|
||||
void set_allocated_create_flow_task(::greptime::v1::CreateFlowTaskExpr* create_flow_task);
|
||||
private:
|
||||
const ::greptime::v1::CreateFlowTaskExpr& _internal_create_flow_task() const;
|
||||
::greptime::v1::CreateFlowTaskExpr* _internal_mutable_create_flow_task();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_create_flow_task(
|
||||
::greptime::v1::CreateFlowTaskExpr* create_flow_task);
|
||||
::greptime::v1::CreateFlowTaskExpr* unsafe_arena_release_create_flow_task();
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.CreateFlowTask)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::greptime::v1::CreateFlowTaskExpr* create_flow_task_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class DropFlowTask final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.DropFlowTask) */ {
|
||||
public:
|
||||
inline DropFlowTask() : DropFlowTask(nullptr) {}
|
||||
~DropFlowTask() override;
|
||||
explicit PROTOBUF_CONSTEXPR DropFlowTask(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
DropFlowTask(const DropFlowTask& from);
|
||||
DropFlowTask(DropFlowTask&& from) noexcept
|
||||
: DropFlowTask() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline DropFlowTask& operator=(const DropFlowTask& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline DropFlowTask& operator=(DropFlowTask&& 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 DropFlowTask& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const DropFlowTask* internal_default_instance() {
|
||||
return reinterpret_cast<const DropFlowTask*>(
|
||||
&_DropFlowTask_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
10;
|
||||
|
||||
friend void swap(DropFlowTask& a, DropFlowTask& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(DropFlowTask* 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(DropFlowTask* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
DropFlowTask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<DropFlowTask>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const DropFlowTask& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const DropFlowTask& from) {
|
||||
DropFlowTask::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(DropFlowTask* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.meta.DropFlowTask";
|
||||
}
|
||||
protected:
|
||||
explicit DropFlowTask(::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 {
|
||||
kDropFlowTaskFieldNumber = 1,
|
||||
};
|
||||
// .greptime.v1.DropFlowTaskExpr drop_flow_task = 1;
|
||||
bool has_drop_flow_task() const;
|
||||
private:
|
||||
bool _internal_has_drop_flow_task() const;
|
||||
public:
|
||||
void clear_drop_flow_task();
|
||||
const ::greptime::v1::DropFlowTaskExpr& drop_flow_task() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::DropFlowTaskExpr* release_drop_flow_task();
|
||||
::greptime::v1::DropFlowTaskExpr* mutable_drop_flow_task();
|
||||
void set_allocated_drop_flow_task(::greptime::v1::DropFlowTaskExpr* drop_flow_task);
|
||||
private:
|
||||
const ::greptime::v1::DropFlowTaskExpr& _internal_drop_flow_task() const;
|
||||
::greptime::v1::DropFlowTaskExpr* _internal_mutable_drop_flow_task();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_drop_flow_task(
|
||||
::greptime::v1::DropFlowTaskExpr* drop_flow_task);
|
||||
::greptime::v1::DropFlowTaskExpr* unsafe_arena_release_drop_flow_task();
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.DropFlowTask)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::greptime::v1::DropFlowTaskExpr* drop_flow_task_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class DdlTaskRequest final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.DdlTaskRequest) */ {
|
||||
public:
|
||||
@@ -1633,6 +1955,8 @@ class DdlTaskRequest final :
|
||||
kAlterTableTasks = 8,
|
||||
kDropDatabaseTask = 9,
|
||||
kCreateDatabaseTask = 10,
|
||||
kCreateFlowTask = 11,
|
||||
kDropFlowTask = 12,
|
||||
TASK_NOT_SET = 0,
|
||||
};
|
||||
|
||||
@@ -1641,7 +1965,7 @@ class DdlTaskRequest final :
|
||||
&_DdlTaskRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
9;
|
||||
11;
|
||||
|
||||
friend void swap(DdlTaskRequest& a, DdlTaskRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1724,6 +2048,8 @@ class DdlTaskRequest final :
|
||||
kAlterTableTasksFieldNumber = 8,
|
||||
kDropDatabaseTaskFieldNumber = 9,
|
||||
kCreateDatabaseTaskFieldNumber = 10,
|
||||
kCreateFlowTaskFieldNumber = 11,
|
||||
kDropFlowTaskFieldNumber = 12,
|
||||
};
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
bool has_header() const;
|
||||
@@ -1905,6 +2231,42 @@ class DdlTaskRequest final :
|
||||
::greptime::v1::meta::CreateDatabaseTask* create_database_task);
|
||||
::greptime::v1::meta::CreateDatabaseTask* unsafe_arena_release_create_database_task();
|
||||
|
||||
// .greptime.v1.meta.CreateFlowTask create_flow_task = 11;
|
||||
bool has_create_flow_task() const;
|
||||
private:
|
||||
bool _internal_has_create_flow_task() const;
|
||||
public:
|
||||
void clear_create_flow_task();
|
||||
const ::greptime::v1::meta::CreateFlowTask& create_flow_task() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::meta::CreateFlowTask* release_create_flow_task();
|
||||
::greptime::v1::meta::CreateFlowTask* mutable_create_flow_task();
|
||||
void set_allocated_create_flow_task(::greptime::v1::meta::CreateFlowTask* create_flow_task);
|
||||
private:
|
||||
const ::greptime::v1::meta::CreateFlowTask& _internal_create_flow_task() const;
|
||||
::greptime::v1::meta::CreateFlowTask* _internal_mutable_create_flow_task();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_create_flow_task(
|
||||
::greptime::v1::meta::CreateFlowTask* create_flow_task);
|
||||
::greptime::v1::meta::CreateFlowTask* unsafe_arena_release_create_flow_task();
|
||||
|
||||
// .greptime.v1.meta.DropFlowTask drop_flow_task = 12;
|
||||
bool has_drop_flow_task() const;
|
||||
private:
|
||||
bool _internal_has_drop_flow_task() const;
|
||||
public:
|
||||
void clear_drop_flow_task();
|
||||
const ::greptime::v1::meta::DropFlowTask& drop_flow_task() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::meta::DropFlowTask* release_drop_flow_task();
|
||||
::greptime::v1::meta::DropFlowTask* mutable_drop_flow_task();
|
||||
void set_allocated_drop_flow_task(::greptime::v1::meta::DropFlowTask* drop_flow_task);
|
||||
private:
|
||||
const ::greptime::v1::meta::DropFlowTask& _internal_drop_flow_task() const;
|
||||
::greptime::v1::meta::DropFlowTask* _internal_mutable_drop_flow_task();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_drop_flow_task(
|
||||
::greptime::v1::meta::DropFlowTask* drop_flow_task);
|
||||
::greptime::v1::meta::DropFlowTask* unsafe_arena_release_drop_flow_task();
|
||||
|
||||
void clear_task();
|
||||
TaskCase task_case() const;
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.DdlTaskRequest)
|
||||
@@ -1919,6 +2281,8 @@ class DdlTaskRequest final :
|
||||
void set_has_alter_table_tasks();
|
||||
void set_has_drop_database_task();
|
||||
void set_has_create_database_task();
|
||||
void set_has_create_flow_task();
|
||||
void set_has_drop_flow_task();
|
||||
|
||||
inline bool has_task() const;
|
||||
inline void clear_has_task();
|
||||
@@ -1940,6 +2304,8 @@ class DdlTaskRequest final :
|
||||
::greptime::v1::meta::AlterTableTasks* alter_table_tasks_;
|
||||
::greptime::v1::meta::DropDatabaseTask* drop_database_task_;
|
||||
::greptime::v1::meta::CreateDatabaseTask* create_database_task_;
|
||||
::greptime::v1::meta::CreateFlowTask* create_flow_task_;
|
||||
::greptime::v1::meta::DropFlowTask* drop_flow_task_;
|
||||
} task_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
uint32_t _oneof_case_[1];
|
||||
@@ -1998,7 +2364,7 @@ class DdlTaskResponse final :
|
||||
&_DdlTaskResponse_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
10;
|
||||
12;
|
||||
|
||||
friend void swap(DdlTaskResponse& a, DdlTaskResponse& b) {
|
||||
a.Swap(&b);
|
||||
@@ -2927,6 +3293,184 @@ inline void DropDatabaseTask::set_allocated_drop_database(::greptime::v1::DropDa
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// CreateFlowTask
|
||||
|
||||
// .greptime.v1.CreateFlowTaskExpr create_flow_task = 1;
|
||||
inline bool CreateFlowTask::_internal_has_create_flow_task() const {
|
||||
return this != internal_default_instance() && _impl_.create_flow_task_ != nullptr;
|
||||
}
|
||||
inline bool CreateFlowTask::has_create_flow_task() const {
|
||||
return _internal_has_create_flow_task();
|
||||
}
|
||||
inline const ::greptime::v1::CreateFlowTaskExpr& CreateFlowTask::_internal_create_flow_task() const {
|
||||
const ::greptime::v1::CreateFlowTaskExpr* p = _impl_.create_flow_task_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::CreateFlowTaskExpr&>(
|
||||
::greptime::v1::_CreateFlowTaskExpr_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::CreateFlowTaskExpr& CreateFlowTask::create_flow_task() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.CreateFlowTask.create_flow_task)
|
||||
return _internal_create_flow_task();
|
||||
}
|
||||
inline void CreateFlowTask::unsafe_arena_set_allocated_create_flow_task(
|
||||
::greptime::v1::CreateFlowTaskExpr* create_flow_task) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.create_flow_task_);
|
||||
}
|
||||
_impl_.create_flow_task_ = create_flow_task;
|
||||
if (create_flow_task) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.CreateFlowTask.create_flow_task)
|
||||
}
|
||||
inline ::greptime::v1::CreateFlowTaskExpr* CreateFlowTask::release_create_flow_task() {
|
||||
|
||||
::greptime::v1::CreateFlowTaskExpr* temp = _impl_.create_flow_task_;
|
||||
_impl_.create_flow_task_ = 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::CreateFlowTaskExpr* CreateFlowTask::unsafe_arena_release_create_flow_task() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.CreateFlowTask.create_flow_task)
|
||||
|
||||
::greptime::v1::CreateFlowTaskExpr* temp = _impl_.create_flow_task_;
|
||||
_impl_.create_flow_task_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::CreateFlowTaskExpr* CreateFlowTask::_internal_mutable_create_flow_task() {
|
||||
|
||||
if (_impl_.create_flow_task_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::CreateFlowTaskExpr>(GetArenaForAllocation());
|
||||
_impl_.create_flow_task_ = p;
|
||||
}
|
||||
return _impl_.create_flow_task_;
|
||||
}
|
||||
inline ::greptime::v1::CreateFlowTaskExpr* CreateFlowTask::mutable_create_flow_task() {
|
||||
::greptime::v1::CreateFlowTaskExpr* _msg = _internal_mutable_create_flow_task();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.CreateFlowTask.create_flow_task)
|
||||
return _msg;
|
||||
}
|
||||
inline void CreateFlowTask::set_allocated_create_flow_task(::greptime::v1::CreateFlowTaskExpr* create_flow_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.create_flow_task_);
|
||||
}
|
||||
if (create_flow_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(create_flow_task));
|
||||
if (message_arena != submessage_arena) {
|
||||
create_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, create_flow_task, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.create_flow_task_ = create_flow_task;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.CreateFlowTask.create_flow_task)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// DropFlowTask
|
||||
|
||||
// .greptime.v1.DropFlowTaskExpr drop_flow_task = 1;
|
||||
inline bool DropFlowTask::_internal_has_drop_flow_task() const {
|
||||
return this != internal_default_instance() && _impl_.drop_flow_task_ != nullptr;
|
||||
}
|
||||
inline bool DropFlowTask::has_drop_flow_task() const {
|
||||
return _internal_has_drop_flow_task();
|
||||
}
|
||||
inline const ::greptime::v1::DropFlowTaskExpr& DropFlowTask::_internal_drop_flow_task() const {
|
||||
const ::greptime::v1::DropFlowTaskExpr* p = _impl_.drop_flow_task_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::DropFlowTaskExpr&>(
|
||||
::greptime::v1::_DropFlowTaskExpr_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::DropFlowTaskExpr& DropFlowTask::drop_flow_task() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.DropFlowTask.drop_flow_task)
|
||||
return _internal_drop_flow_task();
|
||||
}
|
||||
inline void DropFlowTask::unsafe_arena_set_allocated_drop_flow_task(
|
||||
::greptime::v1::DropFlowTaskExpr* drop_flow_task) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.drop_flow_task_);
|
||||
}
|
||||
_impl_.drop_flow_task_ = drop_flow_task;
|
||||
if (drop_flow_task) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DropFlowTask.drop_flow_task)
|
||||
}
|
||||
inline ::greptime::v1::DropFlowTaskExpr* DropFlowTask::release_drop_flow_task() {
|
||||
|
||||
::greptime::v1::DropFlowTaskExpr* temp = _impl_.drop_flow_task_;
|
||||
_impl_.drop_flow_task_ = 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::DropFlowTaskExpr* DropFlowTask::unsafe_arena_release_drop_flow_task() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.DropFlowTask.drop_flow_task)
|
||||
|
||||
::greptime::v1::DropFlowTaskExpr* temp = _impl_.drop_flow_task_;
|
||||
_impl_.drop_flow_task_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::DropFlowTaskExpr* DropFlowTask::_internal_mutable_drop_flow_task() {
|
||||
|
||||
if (_impl_.drop_flow_task_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::DropFlowTaskExpr>(GetArenaForAllocation());
|
||||
_impl_.drop_flow_task_ = p;
|
||||
}
|
||||
return _impl_.drop_flow_task_;
|
||||
}
|
||||
inline ::greptime::v1::DropFlowTaskExpr* DropFlowTask::mutable_drop_flow_task() {
|
||||
::greptime::v1::DropFlowTaskExpr* _msg = _internal_mutable_drop_flow_task();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.DropFlowTask.drop_flow_task)
|
||||
return _msg;
|
||||
}
|
||||
inline void DropFlowTask::set_allocated_drop_flow_task(::greptime::v1::DropFlowTaskExpr* drop_flow_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.drop_flow_task_);
|
||||
}
|
||||
if (drop_flow_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(drop_flow_task));
|
||||
if (message_arena != submessage_arena) {
|
||||
drop_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, drop_flow_task, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.drop_flow_task_ = drop_flow_task;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DropFlowTask.drop_flow_task)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// DdlTaskRequest
|
||||
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
@@ -3680,6 +4224,154 @@ inline ::greptime::v1::meta::CreateDatabaseTask* DdlTaskRequest::mutable_create_
|
||||
return _msg;
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.CreateFlowTask create_flow_task = 11;
|
||||
inline bool DdlTaskRequest::_internal_has_create_flow_task() const {
|
||||
return task_case() == kCreateFlowTask;
|
||||
}
|
||||
inline bool DdlTaskRequest::has_create_flow_task() const {
|
||||
return _internal_has_create_flow_task();
|
||||
}
|
||||
inline void DdlTaskRequest::set_has_create_flow_task() {
|
||||
_impl_._oneof_case_[0] = kCreateFlowTask;
|
||||
}
|
||||
inline void DdlTaskRequest::clear_create_flow_task() {
|
||||
if (_internal_has_create_flow_task()) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.task_.create_flow_task_;
|
||||
}
|
||||
clear_has_task();
|
||||
}
|
||||
}
|
||||
inline ::greptime::v1::meta::CreateFlowTask* DdlTaskRequest::release_create_flow_task() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.create_flow_task)
|
||||
if (_internal_has_create_flow_task()) {
|
||||
clear_has_task();
|
||||
::greptime::v1::meta::CreateFlowTask* temp = _impl_.task_.create_flow_task_;
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
_impl_.task_.create_flow_task_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline const ::greptime::v1::meta::CreateFlowTask& DdlTaskRequest::_internal_create_flow_task() const {
|
||||
return _internal_has_create_flow_task()
|
||||
? *_impl_.task_.create_flow_task_
|
||||
: reinterpret_cast< ::greptime::v1::meta::CreateFlowTask&>(::greptime::v1::meta::_CreateFlowTask_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::meta::CreateFlowTask& DdlTaskRequest::create_flow_task() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.create_flow_task)
|
||||
return _internal_create_flow_task();
|
||||
}
|
||||
inline ::greptime::v1::meta::CreateFlowTask* DdlTaskRequest::unsafe_arena_release_create_flow_task() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.create_flow_task)
|
||||
if (_internal_has_create_flow_task()) {
|
||||
clear_has_task();
|
||||
::greptime::v1::meta::CreateFlowTask* temp = _impl_.task_.create_flow_task_;
|
||||
_impl_.task_.create_flow_task_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline void DdlTaskRequest::unsafe_arena_set_allocated_create_flow_task(::greptime::v1::meta::CreateFlowTask* create_flow_task) {
|
||||
clear_task();
|
||||
if (create_flow_task) {
|
||||
set_has_create_flow_task();
|
||||
_impl_.task_.create_flow_task_ = create_flow_task;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.create_flow_task)
|
||||
}
|
||||
inline ::greptime::v1::meta::CreateFlowTask* DdlTaskRequest::_internal_mutable_create_flow_task() {
|
||||
if (!_internal_has_create_flow_task()) {
|
||||
clear_task();
|
||||
set_has_create_flow_task();
|
||||
_impl_.task_.create_flow_task_ = CreateMaybeMessage< ::greptime::v1::meta::CreateFlowTask >(GetArenaForAllocation());
|
||||
}
|
||||
return _impl_.task_.create_flow_task_;
|
||||
}
|
||||
inline ::greptime::v1::meta::CreateFlowTask* DdlTaskRequest::mutable_create_flow_task() {
|
||||
::greptime::v1::meta::CreateFlowTask* _msg = _internal_mutable_create_flow_task();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.create_flow_task)
|
||||
return _msg;
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.DropFlowTask drop_flow_task = 12;
|
||||
inline bool DdlTaskRequest::_internal_has_drop_flow_task() const {
|
||||
return task_case() == kDropFlowTask;
|
||||
}
|
||||
inline bool DdlTaskRequest::has_drop_flow_task() const {
|
||||
return _internal_has_drop_flow_task();
|
||||
}
|
||||
inline void DdlTaskRequest::set_has_drop_flow_task() {
|
||||
_impl_._oneof_case_[0] = kDropFlowTask;
|
||||
}
|
||||
inline void DdlTaskRequest::clear_drop_flow_task() {
|
||||
if (_internal_has_drop_flow_task()) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.task_.drop_flow_task_;
|
||||
}
|
||||
clear_has_task();
|
||||
}
|
||||
}
|
||||
inline ::greptime::v1::meta::DropFlowTask* DdlTaskRequest::release_drop_flow_task() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.drop_flow_task)
|
||||
if (_internal_has_drop_flow_task()) {
|
||||
clear_has_task();
|
||||
::greptime::v1::meta::DropFlowTask* temp = _impl_.task_.drop_flow_task_;
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
_impl_.task_.drop_flow_task_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline const ::greptime::v1::meta::DropFlowTask& DdlTaskRequest::_internal_drop_flow_task() const {
|
||||
return _internal_has_drop_flow_task()
|
||||
? *_impl_.task_.drop_flow_task_
|
||||
: reinterpret_cast< ::greptime::v1::meta::DropFlowTask&>(::greptime::v1::meta::_DropFlowTask_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::meta::DropFlowTask& DdlTaskRequest::drop_flow_task() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.drop_flow_task)
|
||||
return _internal_drop_flow_task();
|
||||
}
|
||||
inline ::greptime::v1::meta::DropFlowTask* DdlTaskRequest::unsafe_arena_release_drop_flow_task() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.drop_flow_task)
|
||||
if (_internal_has_drop_flow_task()) {
|
||||
clear_has_task();
|
||||
::greptime::v1::meta::DropFlowTask* temp = _impl_.task_.drop_flow_task_;
|
||||
_impl_.task_.drop_flow_task_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline void DdlTaskRequest::unsafe_arena_set_allocated_drop_flow_task(::greptime::v1::meta::DropFlowTask* drop_flow_task) {
|
||||
clear_task();
|
||||
if (drop_flow_task) {
|
||||
set_has_drop_flow_task();
|
||||
_impl_.task_.drop_flow_task_ = drop_flow_task;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_flow_task)
|
||||
}
|
||||
inline ::greptime::v1::meta::DropFlowTask* DdlTaskRequest::_internal_mutable_drop_flow_task() {
|
||||
if (!_internal_has_drop_flow_task()) {
|
||||
clear_task();
|
||||
set_has_drop_flow_task();
|
||||
_impl_.task_.drop_flow_task_ = CreateMaybeMessage< ::greptime::v1::meta::DropFlowTask >(GetArenaForAllocation());
|
||||
}
|
||||
return _impl_.task_.drop_flow_task_;
|
||||
}
|
||||
inline ::greptime::v1::meta::DropFlowTask* DdlTaskRequest::mutable_drop_flow_task() {
|
||||
::greptime::v1::meta::DropFlowTask* _msg = _internal_mutable_drop_flow_task();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.drop_flow_task)
|
||||
return _msg;
|
||||
}
|
||||
|
||||
inline bool DdlTaskRequest::has_task() const {
|
||||
return task_case() != TASK_NOT_SET;
|
||||
}
|
||||
@@ -4008,6 +4700,10 @@ DdlTaskResponse::table_ids() const {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
+453
-371
File diff suppressed because it is too large
Load Diff
+297
-120
@@ -520,6 +520,100 @@ func (x *DropDatabaseTask) GetDropDatabase() *v1.DropDatabaseExpr {
|
||||
return nil
|
||||
}
|
||||
|
||||
type CreateFlowTask struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
CreateFlowTask *v1.CreateFlowTaskExpr `protobuf:"bytes,1,opt,name=create_flow_task,json=createFlowTask,proto3" json:"create_flow_task,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CreateFlowTask) Reset() {
|
||||
*x = CreateFlowTask{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CreateFlowTask) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreateFlowTask) ProtoMessage() {}
|
||||
|
||||
func (x *CreateFlowTask) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[9]
|
||||
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 CreateFlowTask.ProtoReflect.Descriptor instead.
|
||||
func (*CreateFlowTask) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *CreateFlowTask) GetCreateFlowTask() *v1.CreateFlowTaskExpr {
|
||||
if x != nil {
|
||||
return x.CreateFlowTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DropFlowTask struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
DropFlowTask *v1.DropFlowTaskExpr `protobuf:"bytes,1,opt,name=drop_flow_task,json=dropFlowTask,proto3" json:"drop_flow_task,omitempty"`
|
||||
}
|
||||
|
||||
func (x *DropFlowTask) Reset() {
|
||||
*x = DropFlowTask{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DropFlowTask) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DropFlowTask) ProtoMessage() {}
|
||||
|
||||
func (x *DropFlowTask) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[10]
|
||||
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 DropFlowTask.ProtoReflect.Descriptor instead.
|
||||
func (*DropFlowTask) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *DropFlowTask) GetDropFlowTask() *v1.DropFlowTaskExpr {
|
||||
if x != nil {
|
||||
return x.DropFlowTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DdlTaskRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -537,13 +631,15 @@ type DdlTaskRequest struct {
|
||||
// *DdlTaskRequest_AlterTableTasks
|
||||
// *DdlTaskRequest_DropDatabaseTask
|
||||
// *DdlTaskRequest_CreateDatabaseTask
|
||||
// *DdlTaskRequest_CreateFlowTask
|
||||
// *DdlTaskRequest_DropFlowTask
|
||||
Task isDdlTaskRequest_Task `protobuf_oneof:"task"`
|
||||
}
|
||||
|
||||
func (x *DdlTaskRequest) Reset() {
|
||||
*x = DdlTaskRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[9]
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -556,7 +652,7 @@ func (x *DdlTaskRequest) String() string {
|
||||
func (*DdlTaskRequest) ProtoMessage() {}
|
||||
|
||||
func (x *DdlTaskRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[9]
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[11]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -569,7 +665,7 @@ func (x *DdlTaskRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use DdlTaskRequest.ProtoReflect.Descriptor instead.
|
||||
func (*DdlTaskRequest) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{9}
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *DdlTaskRequest) GetHeader() *RequestHeader {
|
||||
@@ -649,6 +745,20 @@ func (x *DdlTaskRequest) GetCreateDatabaseTask() *CreateDatabaseTask {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DdlTaskRequest) GetCreateFlowTask() *CreateFlowTask {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_CreateFlowTask); ok {
|
||||
return x.CreateFlowTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DdlTaskRequest) GetDropFlowTask() *DropFlowTask {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_DropFlowTask); ok {
|
||||
return x.DropFlowTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isDdlTaskRequest_Task interface {
|
||||
isDdlTaskRequest_Task()
|
||||
}
|
||||
@@ -689,6 +799,14 @@ type DdlTaskRequest_CreateDatabaseTask struct {
|
||||
CreateDatabaseTask *CreateDatabaseTask `protobuf:"bytes,10,opt,name=create_database_task,json=createDatabaseTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
type DdlTaskRequest_CreateFlowTask struct {
|
||||
CreateFlowTask *CreateFlowTask `protobuf:"bytes,11,opt,name=create_flow_task,json=createFlowTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
type DdlTaskRequest_DropFlowTask struct {
|
||||
DropFlowTask *DropFlowTask `protobuf:"bytes,12,opt,name=drop_flow_task,json=dropFlowTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*DdlTaskRequest_CreateTableTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*DdlTaskRequest_DropTableTask) isDdlTaskRequest_Task() {}
|
||||
@@ -707,6 +825,10 @@ func (*DdlTaskRequest_DropDatabaseTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*DdlTaskRequest_CreateDatabaseTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*DdlTaskRequest_CreateFlowTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*DdlTaskRequest_DropFlowTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
type DdlTaskResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -724,7 +846,7 @@ type DdlTaskResponse struct {
|
||||
func (x *DdlTaskResponse) Reset() {
|
||||
*x = DdlTaskResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[10]
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -737,7 +859,7 @@ func (x *DdlTaskResponse) String() string {
|
||||
func (*DdlTaskResponse) ProtoMessage() {}
|
||||
|
||||
func (x *DdlTaskResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[10]
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[12]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -750,7 +872,7 @@ func (x *DdlTaskResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use DdlTaskResponse.ProtoReflect.Descriptor instead.
|
||||
func (*DdlTaskResponse) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{10}
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *DdlTaskResponse) GetHeader() *ResponseHeader {
|
||||
@@ -844,79 +966,100 @@ var file_greptime_v1_meta_ddl_proto_rawDesc = []byte{
|
||||
0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
||||
0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70,
|
||||
0x72, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22,
|
||||
0xb3, 0x06, 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, 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,
|
||||
0x5b, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73,
|
||||
0x6b, 0x12, 0x49, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x77,
|
||||
0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||
0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0e, 0x63, 0x72,
|
||||
0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x22, 0x53, 0x0a, 0x0c,
|
||||
0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x43, 0x0a, 0x0e,
|
||||
0x64, 0x72, 0x6f, 0x70, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x45,
|
||||
0x78, 0x70, 0x72, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73,
|
||||
0x6b, 0x22, 0xc9, 0x07, 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, 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, 0x12,
|
||||
0x52, 0x0a, 0x12, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
|
||||
0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44,
|
||||
0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48,
|
||||
0x00, 0x52, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x12, 0x58, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61,
|
||||
0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,
|
||||
0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74,
|
||||
0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 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,
|
||||
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, 0x12, 0x52, 0x0a, 0x12, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
|
||||
0x73, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 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,
|
||||
0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73,
|
||||
0x6b, 0x48, 0x00, 0x52, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
|
||||
0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x58, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f,
|
||||
0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0a, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74,
|
||||
0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x12, 0x63, 0x72, 0x65,
|
||||
0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12,
|
||||
0x4c, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74,
|
||||
0x61, 0x73, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65,
|
||||
0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x63,
|
||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x46, 0x0a,
|
||||
0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18,
|
||||
0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f,
|
||||
0x77, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f,
|
||||
0x77, 0x54, 0x61, 0x73, 0x6b, 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 (
|
||||
@@ -932,7 +1075,7 @@ 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, 11)
|
||||
var file_greptime_v1_meta_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
||||
var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{
|
||||
(DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType
|
||||
(*CreateDatabaseTask)(nil), // 1: greptime.v1.meta.CreateDatabaseTask
|
||||
@@ -944,50 +1087,58 @@ var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{
|
||||
(*AlterTableTasks)(nil), // 7: greptime.v1.meta.AlterTableTasks
|
||||
(*TruncateTableTask)(nil), // 8: greptime.v1.meta.TruncateTableTask
|
||||
(*DropDatabaseTask)(nil), // 9: greptime.v1.meta.DropDatabaseTask
|
||||
(*DdlTaskRequest)(nil), // 10: greptime.v1.meta.DdlTaskRequest
|
||||
(*DdlTaskResponse)(nil), // 11: greptime.v1.meta.DdlTaskResponse
|
||||
(*v1.CreateDatabaseExpr)(nil), // 12: greptime.v1.CreateDatabaseExpr
|
||||
(*v1.CreateTableExpr)(nil), // 13: greptime.v1.CreateTableExpr
|
||||
(*Partition)(nil), // 14: greptime.v1.meta.Partition
|
||||
(*v1.DropTableExpr)(nil), // 15: greptime.v1.DropTableExpr
|
||||
(*v1.AlterExpr)(nil), // 16: greptime.v1.AlterExpr
|
||||
(*v1.TruncateTableExpr)(nil), // 17: greptime.v1.TruncateTableExpr
|
||||
(*v1.DropDatabaseExpr)(nil), // 18: greptime.v1.DropDatabaseExpr
|
||||
(*RequestHeader)(nil), // 19: greptime.v1.meta.RequestHeader
|
||||
(*ResponseHeader)(nil), // 20: greptime.v1.meta.ResponseHeader
|
||||
(*ProcedureId)(nil), // 21: greptime.v1.meta.ProcedureId
|
||||
(*TableId)(nil), // 22: greptime.v1.meta.TableId
|
||||
(*CreateFlowTask)(nil), // 10: greptime.v1.meta.CreateFlowTask
|
||||
(*DropFlowTask)(nil), // 11: greptime.v1.meta.DropFlowTask
|
||||
(*DdlTaskRequest)(nil), // 12: greptime.v1.meta.DdlTaskRequest
|
||||
(*DdlTaskResponse)(nil), // 13: greptime.v1.meta.DdlTaskResponse
|
||||
(*v1.CreateDatabaseExpr)(nil), // 14: greptime.v1.CreateDatabaseExpr
|
||||
(*v1.CreateTableExpr)(nil), // 15: greptime.v1.CreateTableExpr
|
||||
(*Partition)(nil), // 16: greptime.v1.meta.Partition
|
||||
(*v1.DropTableExpr)(nil), // 17: greptime.v1.DropTableExpr
|
||||
(*v1.AlterExpr)(nil), // 18: greptime.v1.AlterExpr
|
||||
(*v1.TruncateTableExpr)(nil), // 19: greptime.v1.TruncateTableExpr
|
||||
(*v1.DropDatabaseExpr)(nil), // 20: greptime.v1.DropDatabaseExpr
|
||||
(*v1.CreateFlowTaskExpr)(nil), // 21: greptime.v1.CreateFlowTaskExpr
|
||||
(*v1.DropFlowTaskExpr)(nil), // 22: greptime.v1.DropFlowTaskExpr
|
||||
(*RequestHeader)(nil), // 23: greptime.v1.meta.RequestHeader
|
||||
(*ResponseHeader)(nil), // 24: greptime.v1.meta.ResponseHeader
|
||||
(*ProcedureId)(nil), // 25: greptime.v1.meta.ProcedureId
|
||||
(*TableId)(nil), // 26: greptime.v1.meta.TableId
|
||||
}
|
||||
var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{
|
||||
12, // 0: greptime.v1.meta.CreateDatabaseTask.create_database:type_name -> greptime.v1.CreateDatabaseExpr
|
||||
13, // 1: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr
|
||||
14, // 2: greptime.v1.meta.CreateTableTask.partitions:type_name -> greptime.v1.meta.Partition
|
||||
14, // 0: greptime.v1.meta.CreateDatabaseTask.create_database:type_name -> greptime.v1.CreateDatabaseExpr
|
||||
15, // 1: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr
|
||||
16, // 2: greptime.v1.meta.CreateTableTask.partitions:type_name -> greptime.v1.meta.Partition
|
||||
2, // 3: greptime.v1.meta.CreateTableTasks.tasks:type_name -> greptime.v1.meta.CreateTableTask
|
||||
15, // 4: greptime.v1.meta.DropTableTask.drop_table:type_name -> greptime.v1.DropTableExpr
|
||||
17, // 4: greptime.v1.meta.DropTableTask.drop_table:type_name -> greptime.v1.DropTableExpr
|
||||
4, // 5: greptime.v1.meta.DropTableTasks.tasks:type_name -> greptime.v1.meta.DropTableTask
|
||||
16, // 6: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterExpr
|
||||
18, // 6: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterExpr
|
||||
6, // 7: greptime.v1.meta.AlterTableTasks.tasks:type_name -> greptime.v1.meta.AlterTableTask
|
||||
17, // 8: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr
|
||||
18, // 9: greptime.v1.meta.DropDatabaseTask.drop_database:type_name -> greptime.v1.DropDatabaseExpr
|
||||
19, // 10: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
2, // 11: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
|
||||
4, // 12: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
|
||||
6, // 13: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
|
||||
8, // 14: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
|
||||
3, // 15: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks
|
||||
5, // 16: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks
|
||||
7, // 17: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks
|
||||
9, // 18: greptime.v1.meta.DdlTaskRequest.drop_database_task:type_name -> greptime.v1.meta.DropDatabaseTask
|
||||
1, // 19: greptime.v1.meta.DdlTaskRequest.create_database_task:type_name -> greptime.v1.meta.CreateDatabaseTask
|
||||
20, // 20: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
21, // 21: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId
|
||||
22, // 22: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId
|
||||
22, // 23: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId
|
||||
24, // [24:24] is the sub-list for method output_type
|
||||
24, // [24:24] is the sub-list for method input_type
|
||||
24, // [24:24] is the sub-list for extension type_name
|
||||
24, // [24:24] is the sub-list for extension extendee
|
||||
0, // [0:24] is the sub-list for field type_name
|
||||
19, // 8: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr
|
||||
20, // 9: greptime.v1.meta.DropDatabaseTask.drop_database:type_name -> greptime.v1.DropDatabaseExpr
|
||||
21, // 10: greptime.v1.meta.CreateFlowTask.create_flow_task:type_name -> greptime.v1.CreateFlowTaskExpr
|
||||
22, // 11: greptime.v1.meta.DropFlowTask.drop_flow_task:type_name -> greptime.v1.DropFlowTaskExpr
|
||||
23, // 12: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
2, // 13: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
|
||||
4, // 14: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
|
||||
6, // 15: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
|
||||
8, // 16: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
|
||||
3, // 17: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks
|
||||
5, // 18: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks
|
||||
7, // 19: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks
|
||||
9, // 20: greptime.v1.meta.DdlTaskRequest.drop_database_task:type_name -> greptime.v1.meta.DropDatabaseTask
|
||||
1, // 21: greptime.v1.meta.DdlTaskRequest.create_database_task:type_name -> greptime.v1.meta.CreateDatabaseTask
|
||||
10, // 22: greptime.v1.meta.DdlTaskRequest.create_flow_task:type_name -> greptime.v1.meta.CreateFlowTask
|
||||
11, // 23: greptime.v1.meta.DdlTaskRequest.drop_flow_task:type_name -> greptime.v1.meta.DropFlowTask
|
||||
24, // 24: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
25, // 25: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId
|
||||
26, // 26: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId
|
||||
26, // 27: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId
|
||||
28, // [28:28] is the sub-list for method output_type
|
||||
28, // [28:28] is the sub-list for method input_type
|
||||
28, // [28:28] is the sub-list for extension type_name
|
||||
28, // [28:28] is the sub-list for extension extendee
|
||||
0, // [0:28] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_greptime_v1_meta_ddl_proto_init() }
|
||||
@@ -1107,7 +1258,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DdlTaskRequest); i {
|
||||
switch v := v.(*CreateFlowTask); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -1119,6 +1270,30 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DropFlowTask); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DdlTaskRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DdlTaskResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -1131,7 +1306,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[9].OneofWrappers = []interface{}{
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[11].OneofWrappers = []interface{}{
|
||||
(*DdlTaskRequest_CreateTableTask)(nil),
|
||||
(*DdlTaskRequest_DropTableTask)(nil),
|
||||
(*DdlTaskRequest_AlterTableTask)(nil),
|
||||
@@ -1141,6 +1316,8 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
(*DdlTaskRequest_AlterTableTasks)(nil),
|
||||
(*DdlTaskRequest_DropDatabaseTask)(nil),
|
||||
(*DdlTaskRequest_CreateDatabaseTask)(nil),
|
||||
(*DdlTaskRequest_CreateFlowTask)(nil),
|
||||
(*DdlTaskRequest_DropFlowTask)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@@ -1148,7 +1325,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_greptime_v1_meta_ddl_proto_rawDesc,
|
||||
NumEnums: 1,
|
||||
NumMessages: 11,
|
||||
NumMessages: 13,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
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
@@ -33,17 +33,17 @@ message DdlRequest {
|
||||
AlterExpr alter = 3;
|
||||
DropTableExpr drop_table = 4;
|
||||
TruncateTableExpr truncate_table = 7;
|
||||
CreateTaskExpr create_task = 8;
|
||||
RemoveTaskExpr remove_task = 9;
|
||||
CreateFlowTaskExpr create_flow_task = 8;
|
||||
DropFlowTaskExpr drop_flow_task = 9;
|
||||
}
|
||||
}
|
||||
|
||||
// Create a flow task to run the SQL when new data arrives.
|
||||
message CreateTaskExpr {
|
||||
message CreateFlowTaskExpr {
|
||||
string catalog_name = 1;
|
||||
string task_name = 2;
|
||||
string output_schema_name = 3;
|
||||
string output_table_name = 4;
|
||||
repeated SchemaScopedTableName source_table_names = 3;
|
||||
SchemaScopedTableName sink_table_name = 4;
|
||||
bool create_if_not_exists = 5;
|
||||
string expire_when = 6;
|
||||
string comment = 7;
|
||||
@@ -51,8 +51,14 @@ message CreateTaskExpr {
|
||||
map<string, string> task_options = 9;
|
||||
}
|
||||
|
||||
// Table name
|
||||
message SchemaScopedTableName {
|
||||
string schema_name = 1;
|
||||
string table_name = 2;
|
||||
}
|
||||
|
||||
// Remove a flow task.
|
||||
message RemoveTaskExpr {
|
||||
message DropFlowTaskExpr {
|
||||
string catalog_name = 1;
|
||||
string task_name = 2;
|
||||
}
|
||||
|
||||
@@ -42,8 +42,8 @@ message InsertRequest {
|
||||
|
||||
message FlowRequest {
|
||||
oneof body {
|
||||
FlowCreateRequest create = 1;
|
||||
FlowRemoveRequest remove = 2;
|
||||
CreateRequest create = 1;
|
||||
RemoveRequest remove = 2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,16 +56,17 @@ message FlowResponse {
|
||||
}
|
||||
|
||||
// very similar to `ddl.CreateTaskExpr` just replace `task_name` with `task_id`
|
||||
message FlowCreateRequest {
|
||||
TaskId task_id = 1;
|
||||
TableId output_table_id = 2;
|
||||
bool create_if_not_exists = 3;
|
||||
string expire_when = 4;
|
||||
string comment = 5;
|
||||
string sql = 6;
|
||||
map<string, string> task_options = 7;
|
||||
message CreateRequest {
|
||||
TaskId task_id = 1;
|
||||
repeated TableId source_table_ids = 2;
|
||||
TableId sink_table_id = 3;
|
||||
bool create_if_not_exists = 4;
|
||||
string expire_when = 5;
|
||||
string comment = 6;
|
||||
string sql = 7;
|
||||
map<string, string> task_options = 8;
|
||||
}
|
||||
|
||||
message FlowRemoveRequest { TaskId task_id = 1; }
|
||||
message RemoveRequest { TaskId task_id = 1; }
|
||||
|
||||
message TaskId { uint32 id = 1; }
|
||||
|
||||
@@ -59,6 +59,14 @@ message DropDatabaseTask {
|
||||
DropDatabaseExpr drop_database = 1;
|
||||
}
|
||||
|
||||
message CreateFlowTask {
|
||||
CreateFlowTaskExpr create_flow_task = 1;
|
||||
}
|
||||
|
||||
message DropFlowTask {
|
||||
DropFlowTaskExpr drop_flow_task = 1;
|
||||
}
|
||||
|
||||
message DdlTaskRequest {
|
||||
RequestHeader header = 1;
|
||||
|
||||
@@ -72,6 +80,8 @@ message DdlTaskRequest {
|
||||
AlterTableTasks alter_table_tasks = 8;
|
||||
DropDatabaseTask drop_database_task = 9;
|
||||
CreateDatabaseTask create_database_task = 10;
|
||||
CreateFlowTask create_flow_task = 11;
|
||||
DropFlowTask drop_flow_task = 12;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ use crate::v1::value::ValueData;
|
||||
|
||||
pub const GREPTIME_GRPC_DESC: &[u8] = tonic::include_file_descriptor_set!("greptime_grpc_desc");
|
||||
|
||||
pub mod flow;
|
||||
pub mod index;
|
||||
pub mod meta;
|
||||
pub mod region;
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
// 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.
|
||||
|
||||
tonic::include_proto!("greptime.v1.flow");
|
||||
Reference in New Issue
Block a user