feat: add proto definition about trigger create (#241)
* feat: add trigger create * chore: unified naming style * chore: rename some fields * chore: make all
This commit is contained in:
+1341
-9
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+327
-40
@@ -208,6 +208,19 @@ struct AlterDatabaseTaskDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AlterDatabaseTaskDefaultTypeInternal _AlterDatabaseTask_default_instance_;
|
||||
PROTOBUF_CONSTEXPR CreateTriggerTask::CreateTriggerTask(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.create_trigger_)*/nullptr
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct CreateTriggerTaskDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR CreateTriggerTaskDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~CreateTriggerTaskDefaultTypeInternal() {}
|
||||
union {
|
||||
CreateTriggerTask _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateTriggerTaskDefaultTypeInternal _CreateTriggerTask_default_instance_;
|
||||
PROTOBUF_CONSTEXPR DdlTaskRequest::DdlTaskRequest(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.header_)*/nullptr
|
||||
@@ -242,7 +255,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[16];
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[17];
|
||||
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;
|
||||
|
||||
@@ -349,6 +362,13 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::AlterDatabaseTask, _impl_.task_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::CreateTriggerTask, _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::CreateTriggerTask, _impl_.create_trigger_),
|
||||
~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]),
|
||||
@@ -370,6 +390,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU
|
||||
::_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_),
|
||||
@@ -396,8 +417,9 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 79, -1, -1, sizeof(::greptime::v1::meta::CreateViewTask)},
|
||||
{ 87, -1, -1, sizeof(::greptime::v1::meta::DropViewTask)},
|
||||
{ 94, -1, -1, sizeof(::greptime::v1::meta::AlterDatabaseTask)},
|
||||
{ 101, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)},
|
||||
{ 124, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)},
|
||||
{ 101, -1, -1, sizeof(::greptime::v1::meta::CreateTriggerTask)},
|
||||
{ 108, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)},
|
||||
{ 132, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -415,6 +437,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::meta::_CreateViewTask_default_instance_._instance,
|
||||
&::greptime::v1::meta::_DropViewTask_default_instance_._instance,
|
||||
&::greptime::v1::meta::_AlterDatabaseTask_default_instance_._instance,
|
||||
&::greptime::v1::meta::_CreateTriggerTask_default_instance_._instance,
|
||||
&::greptime::v1::meta::_DdlTaskRequest_default_instance_._instance,
|
||||
&::greptime::v1::meta::_DdlTaskResponse_default_instance_._instance,
|
||||
};
|
||||
@@ -450,39 +473,42 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto[] PROTOB
|
||||
"(\014\"<\n\014DropViewTask\022,\n\tdrop_view\030\001 \001(\0132\031."
|
||||
"greptime.v1.DropViewExpr\"A\n\021AlterDatabas"
|
||||
"eTask\022,\n\004task\030\001 \001(\0132\036.greptime.v1.AlterD"
|
||||
"atabaseExpr\"\365\007\n\016DdlTaskRequest\022/\n\006header"
|
||||
"\030\001 \001(\0132\037.greptime.v1.meta.RequestHeader\022"
|
||||
"0\n\rquery_context\030@ \001(\0132\031.greptime.v1.Que"
|
||||
"ryContext\022>\n\021create_table_task\030\002 \001(\0132!.g"
|
||||
"reptime.v1.meta.CreateTableTaskH\000\022:\n\017dro"
|
||||
"p_table_task\030\003 \001(\0132\037.greptime.v1.meta.Dr"
|
||||
"opTableTaskH\000\022<\n\020alter_table_task\030\004 \001(\0132"
|
||||
" .greptime.v1.meta.AlterTableTaskH\000\022B\n\023t"
|
||||
"runcate_table_task\030\005 \001(\0132#.greptime.v1.m"
|
||||
"eta.TruncateTableTaskH\000\022@\n\022create_table_"
|
||||
"tasks\030\006 \001(\0132\".greptime.v1.meta.CreateTab"
|
||||
"leTasksH\000\022<\n\020drop_table_tasks\030\007 \001(\0132 .gr"
|
||||
"eptime.v1.meta.DropTableTasksH\000\022>\n\021alter"
|
||||
"_table_tasks\030\010 \001(\0132!.greptime.v1.meta.Al"
|
||||
"terTableTasksH\000\022@\n\022drop_database_task\030\t "
|
||||
"\001(\0132\".greptime.v1.meta.DropDatabaseTaskH"
|
||||
"\000\022D\n\024create_database_task\030\n \001(\0132$.grepti"
|
||||
"me.v1.meta.CreateDatabaseTaskH\000\022<\n\020creat"
|
||||
"e_flow_task\030\013 \001(\0132 .greptime.v1.meta.Cre"
|
||||
"ateFlowTaskH\000\0228\n\016drop_flow_task\030\014 \001(\0132\036."
|
||||
"greptime.v1.meta.DropFlowTaskH\000\022<\n\020creat"
|
||||
"e_view_task\030\r \001(\0132 .greptime.v1.meta.Cre"
|
||||
"ateViewTaskH\000\0228\n\016drop_view_task\030\016 \001(\0132\036."
|
||||
"greptime.v1.meta.DropViewTaskH\000\022B\n\023alter"
|
||||
"_database_task\030\017 \001(\0132#.greptime.v1.meta."
|
||||
"AlterDatabaseTaskH\000B\006\n\004task\"\230\001\n\017DdlTaskR"
|
||||
"esponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.me"
|
||||
"ta.ResponseHeader\022*\n\003pid\030\002 \001(\0132\035.greptim"
|
||||
"e.v1.meta.ProcedureId\022\'\n\ttable_ids\030\005 \003(\013"
|
||||
"2\024.greptime.v1.TableId*#\n\013DdlTaskType\022\n\n"
|
||||
"\006Create\020\000\022\010\n\004Drop\020\001B<Z:github.com/Grepti"
|
||||
"meTeam/greptime-proto/go/greptime/v1/met"
|
||||
"ab\006proto3"
|
||||
"atabaseExpr\"K\n\021CreateTriggerTask\0226\n\016crea"
|
||||
"te_trigger\030\001 \001(\0132\036.greptime.v1.CreateTri"
|
||||
"ggerExpr\"\271\010\n\016DdlTaskRequest\022/\n\006header\030\001 "
|
||||
"\001(\0132\037.greptime.v1.meta.RequestHeader\0220\n\r"
|
||||
"query_context\030@ \001(\0132\031.greptime.v1.QueryC"
|
||||
"ontext\022>\n\021create_table_task\030\002 \001(\0132!.grep"
|
||||
"time.v1.meta.CreateTableTaskH\000\022:\n\017drop_t"
|
||||
"able_task\030\003 \001(\0132\037.greptime.v1.meta.DropT"
|
||||
"ableTaskH\000\022<\n\020alter_table_task\030\004 \001(\0132 .g"
|
||||
"reptime.v1.meta.AlterTableTaskH\000\022B\n\023trun"
|
||||
"cate_table_task\030\005 \001(\0132#.greptime.v1.meta"
|
||||
".TruncateTableTaskH\000\022@\n\022create_table_tas"
|
||||
"ks\030\006 \001(\0132\".greptime.v1.meta.CreateTableT"
|
||||
"asksH\000\022<\n\020drop_table_tasks\030\007 \001(\0132 .grept"
|
||||
"ime.v1.meta.DropTableTasksH\000\022>\n\021alter_ta"
|
||||
"ble_tasks\030\010 \001(\0132!.greptime.v1.meta.Alter"
|
||||
"TableTasksH\000\022@\n\022drop_database_task\030\t \001(\013"
|
||||
"2\".greptime.v1.meta.DropDatabaseTaskH\000\022D"
|
||||
"\n\024create_database_task\030\n \001(\0132$.greptime."
|
||||
"v1.meta.CreateDatabaseTaskH\000\022<\n\020create_f"
|
||||
"low_task\030\013 \001(\0132 .greptime.v1.meta.Create"
|
||||
"FlowTaskH\000\0228\n\016drop_flow_task\030\014 \001(\0132\036.gre"
|
||||
"ptime.v1.meta.DropFlowTaskH\000\022<\n\020create_v"
|
||||
"iew_task\030\r \001(\0132 .greptime.v1.meta.Create"
|
||||
"ViewTaskH\000\0228\n\016drop_view_task\030\016 \001(\0132\036.gre"
|
||||
"ptime.v1.meta.DropViewTaskH\000\022B\n\023alter_da"
|
||||
"tabase_task\030\017 \001(\0132#.greptime.v1.meta.Alt"
|
||||
"erDatabaseTaskH\000\022B\n\023create_trigger_task\030"
|
||||
"\020 \001(\0132#.greptime.v1.meta.CreateTriggerTa"
|
||||
"skH\000B\006\n\004task\"\230\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\ttable_ids\030\005 \003(\0132\024.greptime.v1."
|
||||
"TableId*#\n\013DdlTaskType\022\n\n\006Create\020\000\022\010\n\004Dr"
|
||||
"op\020\001B<Z:github.com/GreptimeTeam/greptime"
|
||||
"-proto/go/greptime/v1/metab\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps[4] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
@@ -492,9 +518,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, 2489, descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto,
|
||||
false, false, 2634, 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, 4, 16,
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps, 4, 17,
|
||||
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,
|
||||
@@ -3400,6 +3426,205 @@ void AlterDatabaseTask::InternalSwap(AlterDatabaseTask* other) {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class CreateTriggerTask::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::CreateTriggerExpr& create_trigger(const CreateTriggerTask* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::CreateTriggerExpr&
|
||||
CreateTriggerTask::_Internal::create_trigger(const CreateTriggerTask* msg) {
|
||||
return *msg->_impl_.create_trigger_;
|
||||
}
|
||||
void CreateTriggerTask::clear_create_trigger() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.create_trigger_ != nullptr) {
|
||||
delete _impl_.create_trigger_;
|
||||
}
|
||||
_impl_.create_trigger_ = nullptr;
|
||||
}
|
||||
CreateTriggerTask::CreateTriggerTask(::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.CreateTriggerTask)
|
||||
}
|
||||
CreateTriggerTask::CreateTriggerTask(const CreateTriggerTask& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
CreateTriggerTask* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.create_trigger_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
if (from._internal_has_create_trigger()) {
|
||||
_this->_impl_.create_trigger_ = new ::greptime::v1::CreateTriggerExpr(*from._impl_.create_trigger_);
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.CreateTriggerTask)
|
||||
}
|
||||
|
||||
inline void CreateTriggerTask::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.create_trigger_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
CreateTriggerTask::~CreateTriggerTask() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.CreateTriggerTask)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void CreateTriggerTask::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
if (this != internal_default_instance()) delete _impl_.create_trigger_;
|
||||
}
|
||||
|
||||
void CreateTriggerTask::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void CreateTriggerTask::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.CreateTriggerTask)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.create_trigger_ != nullptr) {
|
||||
delete _impl_.create_trigger_;
|
||||
}
|
||||
_impl_.create_trigger_ = nullptr;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* CreateTriggerTask::_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.CreateTriggerExpr create_trigger = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_create_trigger(), 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* CreateTriggerTask::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.CreateTriggerTask)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .greptime.v1.CreateTriggerExpr create_trigger = 1;
|
||||
if (this->_internal_has_create_trigger()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(1, _Internal::create_trigger(this),
|
||||
_Internal::create_trigger(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.CreateTriggerTask)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t CreateTriggerTask::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.CreateTriggerTask)
|
||||
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.CreateTriggerExpr create_trigger = 1;
|
||||
if (this->_internal_has_create_trigger()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.create_trigger_);
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateTriggerTask::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
CreateTriggerTask::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateTriggerTask::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void CreateTriggerTask::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<CreateTriggerTask*>(&to_msg);
|
||||
auto& from = static_cast<const CreateTriggerTask&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.CreateTriggerTask)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_has_create_trigger()) {
|
||||
_this->_internal_mutable_create_trigger()->::greptime::v1::CreateTriggerExpr::MergeFrom(
|
||||
from._internal_create_trigger());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void CreateTriggerTask::CopyFrom(const CreateTriggerTask& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.CreateTriggerTask)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool CreateTriggerTask::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void CreateTriggerTask::InternalSwap(CreateTriggerTask* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
swap(_impl_.create_trigger_, other->_impl_.create_trigger_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata CreateTriggerTask::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[14]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class DdlTaskRequest::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::meta::RequestHeader& header(const DdlTaskRequest* msg);
|
||||
@@ -3418,6 +3643,7 @@ class DdlTaskRequest::_Internal {
|
||||
static const ::greptime::v1::meta::CreateViewTask& create_view_task(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::DropViewTask& drop_view_task(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::AlterDatabaseTask& alter_database_task(const DdlTaskRequest* msg);
|
||||
static const ::greptime::v1::meta::CreateTriggerTask& create_trigger_task(const DdlTaskRequest* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::meta::RequestHeader&
|
||||
@@ -3484,6 +3710,10 @@ const ::greptime::v1::meta::AlterDatabaseTask&
|
||||
DdlTaskRequest::_Internal::alter_database_task(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.task_.alter_database_task_;
|
||||
}
|
||||
const ::greptime::v1::meta::CreateTriggerTask&
|
||||
DdlTaskRequest::_Internal::create_trigger_task(const DdlTaskRequest* msg) {
|
||||
return *msg->_impl_.task_.create_trigger_task_;
|
||||
}
|
||||
void DdlTaskRequest::clear_header() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
@@ -3706,6 +3936,21 @@ void DdlTaskRequest::set_allocated_alter_database_task(::greptime::v1::meta::Alt
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.alter_database_task)
|
||||
}
|
||||
void DdlTaskRequest::set_allocated_create_trigger_task(::greptime::v1::meta::CreateTriggerTask* create_trigger_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_task();
|
||||
if (create_trigger_task) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(create_trigger_task);
|
||||
if (message_arena != submessage_arena) {
|
||||
create_trigger_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, create_trigger_task, submessage_arena);
|
||||
}
|
||||
set_has_create_trigger_task();
|
||||
_impl_.task_.create_trigger_task_ = create_trigger_task;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.create_trigger_task)
|
||||
}
|
||||
DdlTaskRequest::DdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -3801,6 +4046,11 @@ DdlTaskRequest::DdlTaskRequest(const DdlTaskRequest& from)
|
||||
from._internal_alter_database_task());
|
||||
break;
|
||||
}
|
||||
case kCreateTriggerTask: {
|
||||
_this->_internal_mutable_create_trigger_task()->::greptime::v1::meta::CreateTriggerTask::MergeFrom(
|
||||
from._internal_create_trigger_task());
|
||||
break;
|
||||
}
|
||||
case TASK_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -3931,6 +4181,12 @@ void DdlTaskRequest::clear_task() {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case kCreateTriggerTask: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.task_.create_trigger_task_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case TASK_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -4083,6 +4339,14 @@ const char* DdlTaskRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.meta.CreateTriggerTask create_trigger_task = 16;
|
||||
case 16:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_create_trigger_task(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.QueryContext query_context = 64;
|
||||
case 64:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 2)) {
|
||||
@@ -4225,6 +4489,13 @@ uint8_t* DdlTaskRequest::_InternalSerialize(
|
||||
_Internal::alter_database_task(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.CreateTriggerTask create_trigger_task = 16;
|
||||
if (_internal_has_create_trigger_task()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(16, _Internal::create_trigger_task(this),
|
||||
_Internal::create_trigger_task(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.QueryContext query_context = 64;
|
||||
if (this->_internal_has_query_context()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
@@ -4361,6 +4632,13 @@ size_t DdlTaskRequest::ByteSizeLong() const {
|
||||
*_impl_.task_.alter_database_task_);
|
||||
break;
|
||||
}
|
||||
// .greptime.v1.meta.CreateTriggerTask create_trigger_task = 16;
|
||||
case kCreateTriggerTask: {
|
||||
total_size += 2 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.task_.create_trigger_task_);
|
||||
break;
|
||||
}
|
||||
case TASK_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -4462,6 +4740,11 @@ void DdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
|
||||
from._internal_alter_database_task());
|
||||
break;
|
||||
}
|
||||
case kCreateTriggerTask: {
|
||||
_this->_internal_mutable_create_trigger_task()->::greptime::v1::meta::CreateTriggerTask::MergeFrom(
|
||||
from._internal_create_trigger_task());
|
||||
break;
|
||||
}
|
||||
case TASK_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -4496,7 +4779,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[14]);
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[15]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -4784,7 +5067,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[15]);
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[16]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
@@ -4848,6 +5131,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::AlterDatabaseTask*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::AlterDatabaseTask >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::AlterDatabaseTask >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::CreateTriggerTask*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::CreateTriggerTask >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::CreateTriggerTask >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DdlTaskRequest*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::DdlTaskRequest >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::DdlTaskRequest >(arena);
|
||||
|
||||
@@ -73,6 +73,9 @@ extern CreateTableTaskDefaultTypeInternal _CreateTableTask_default_instance_;
|
||||
class CreateTableTasks;
|
||||
struct CreateTableTasksDefaultTypeInternal;
|
||||
extern CreateTableTasksDefaultTypeInternal _CreateTableTasks_default_instance_;
|
||||
class CreateTriggerTask;
|
||||
struct CreateTriggerTaskDefaultTypeInternal;
|
||||
extern CreateTriggerTaskDefaultTypeInternal _CreateTriggerTask_default_instance_;
|
||||
class CreateViewTask;
|
||||
struct CreateViewTaskDefaultTypeInternal;
|
||||
extern CreateViewTaskDefaultTypeInternal _CreateViewTask_default_instance_;
|
||||
@@ -111,6 +114,7 @@ template<> ::greptime::v1::meta::CreateDatabaseTask* Arena::CreateMaybeMessage<:
|
||||
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::CreateTriggerTask* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateTriggerTask>(Arena*);
|
||||
template<> ::greptime::v1::meta::CreateViewTask* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateViewTask>(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*);
|
||||
@@ -2402,6 +2406,163 @@ class AlterDatabaseTask final :
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class CreateTriggerTask final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.CreateTriggerTask) */ {
|
||||
public:
|
||||
inline CreateTriggerTask() : CreateTriggerTask(nullptr) {}
|
||||
~CreateTriggerTask() override;
|
||||
explicit PROTOBUF_CONSTEXPR CreateTriggerTask(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
CreateTriggerTask(const CreateTriggerTask& from);
|
||||
CreateTriggerTask(CreateTriggerTask&& from) noexcept
|
||||
: CreateTriggerTask() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline CreateTriggerTask& operator=(const CreateTriggerTask& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline CreateTriggerTask& operator=(CreateTriggerTask&& 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 CreateTriggerTask& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const CreateTriggerTask* internal_default_instance() {
|
||||
return reinterpret_cast<const CreateTriggerTask*>(
|
||||
&_CreateTriggerTask_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
14;
|
||||
|
||||
friend void swap(CreateTriggerTask& a, CreateTriggerTask& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(CreateTriggerTask* 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(CreateTriggerTask* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
CreateTriggerTask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<CreateTriggerTask>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const CreateTriggerTask& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const CreateTriggerTask& from) {
|
||||
CreateTriggerTask::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(CreateTriggerTask* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.meta.CreateTriggerTask";
|
||||
}
|
||||
protected:
|
||||
explicit CreateTriggerTask(::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 {
|
||||
kCreateTriggerFieldNumber = 1,
|
||||
};
|
||||
// .greptime.v1.CreateTriggerExpr create_trigger = 1;
|
||||
bool has_create_trigger() const;
|
||||
private:
|
||||
bool _internal_has_create_trigger() const;
|
||||
public:
|
||||
void clear_create_trigger();
|
||||
const ::greptime::v1::CreateTriggerExpr& create_trigger() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::CreateTriggerExpr* release_create_trigger();
|
||||
::greptime::v1::CreateTriggerExpr* mutable_create_trigger();
|
||||
void set_allocated_create_trigger(::greptime::v1::CreateTriggerExpr* create_trigger);
|
||||
private:
|
||||
const ::greptime::v1::CreateTriggerExpr& _internal_create_trigger() const;
|
||||
::greptime::v1::CreateTriggerExpr* _internal_mutable_create_trigger();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_create_trigger(
|
||||
::greptime::v1::CreateTriggerExpr* create_trigger);
|
||||
::greptime::v1::CreateTriggerExpr* unsafe_arena_release_create_trigger();
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.CreateTriggerTask)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::greptime::v1::CreateTriggerExpr* create_trigger_;
|
||||
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:
|
||||
@@ -2460,6 +2621,7 @@ class DdlTaskRequest final :
|
||||
kCreateViewTask = 13,
|
||||
kDropViewTask = 14,
|
||||
kAlterDatabaseTask = 15,
|
||||
kCreateTriggerTask = 16,
|
||||
TASK_NOT_SET = 0,
|
||||
};
|
||||
|
||||
@@ -2468,7 +2630,7 @@ class DdlTaskRequest final :
|
||||
&_DdlTaskRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
14;
|
||||
15;
|
||||
|
||||
friend void swap(DdlTaskRequest& a, DdlTaskRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -2557,6 +2719,7 @@ class DdlTaskRequest final :
|
||||
kCreateViewTaskFieldNumber = 13,
|
||||
kDropViewTaskFieldNumber = 14,
|
||||
kAlterDatabaseTaskFieldNumber = 15,
|
||||
kCreateTriggerTaskFieldNumber = 16,
|
||||
};
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
bool has_header() const;
|
||||
@@ -2846,6 +3009,24 @@ class DdlTaskRequest final :
|
||||
::greptime::v1::meta::AlterDatabaseTask* alter_database_task);
|
||||
::greptime::v1::meta::AlterDatabaseTask* unsafe_arena_release_alter_database_task();
|
||||
|
||||
// .greptime.v1.meta.CreateTriggerTask create_trigger_task = 16;
|
||||
bool has_create_trigger_task() const;
|
||||
private:
|
||||
bool _internal_has_create_trigger_task() const;
|
||||
public:
|
||||
void clear_create_trigger_task();
|
||||
const ::greptime::v1::meta::CreateTriggerTask& create_trigger_task() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::meta::CreateTriggerTask* release_create_trigger_task();
|
||||
::greptime::v1::meta::CreateTriggerTask* mutable_create_trigger_task();
|
||||
void set_allocated_create_trigger_task(::greptime::v1::meta::CreateTriggerTask* create_trigger_task);
|
||||
private:
|
||||
const ::greptime::v1::meta::CreateTriggerTask& _internal_create_trigger_task() const;
|
||||
::greptime::v1::meta::CreateTriggerTask* _internal_mutable_create_trigger_task();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_create_trigger_task(
|
||||
::greptime::v1::meta::CreateTriggerTask* create_trigger_task);
|
||||
::greptime::v1::meta::CreateTriggerTask* unsafe_arena_release_create_trigger_task();
|
||||
|
||||
void clear_task();
|
||||
TaskCase task_case() const;
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.DdlTaskRequest)
|
||||
@@ -2865,6 +3046,7 @@ class DdlTaskRequest final :
|
||||
void set_has_create_view_task();
|
||||
void set_has_drop_view_task();
|
||||
void set_has_alter_database_task();
|
||||
void set_has_create_trigger_task();
|
||||
|
||||
inline bool has_task() const;
|
||||
inline void clear_has_task();
|
||||
@@ -2892,6 +3074,7 @@ class DdlTaskRequest final :
|
||||
::greptime::v1::meta::CreateViewTask* create_view_task_;
|
||||
::greptime::v1::meta::DropViewTask* drop_view_task_;
|
||||
::greptime::v1::meta::AlterDatabaseTask* alter_database_task_;
|
||||
::greptime::v1::meta::CreateTriggerTask* create_trigger_task_;
|
||||
} task_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
uint32_t _oneof_case_[1];
|
||||
@@ -2950,7 +3133,7 @@ class DdlTaskResponse final :
|
||||
&_DdlTaskResponse_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
15;
|
||||
16;
|
||||
|
||||
friend void swap(DdlTaskResponse& a, DdlTaskResponse& b) {
|
||||
a.Swap(&b);
|
||||
@@ -4354,6 +4537,95 @@ inline void AlterDatabaseTask::set_allocated_task(::greptime::v1::AlterDatabaseE
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// CreateTriggerTask
|
||||
|
||||
// .greptime.v1.CreateTriggerExpr create_trigger = 1;
|
||||
inline bool CreateTriggerTask::_internal_has_create_trigger() const {
|
||||
return this != internal_default_instance() && _impl_.create_trigger_ != nullptr;
|
||||
}
|
||||
inline bool CreateTriggerTask::has_create_trigger() const {
|
||||
return _internal_has_create_trigger();
|
||||
}
|
||||
inline const ::greptime::v1::CreateTriggerExpr& CreateTriggerTask::_internal_create_trigger() const {
|
||||
const ::greptime::v1::CreateTriggerExpr* p = _impl_.create_trigger_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::CreateTriggerExpr&>(
|
||||
::greptime::v1::_CreateTriggerExpr_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::CreateTriggerExpr& CreateTriggerTask::create_trigger() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.CreateTriggerTask.create_trigger)
|
||||
return _internal_create_trigger();
|
||||
}
|
||||
inline void CreateTriggerTask::unsafe_arena_set_allocated_create_trigger(
|
||||
::greptime::v1::CreateTriggerExpr* create_trigger) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.create_trigger_);
|
||||
}
|
||||
_impl_.create_trigger_ = create_trigger;
|
||||
if (create_trigger) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.CreateTriggerTask.create_trigger)
|
||||
}
|
||||
inline ::greptime::v1::CreateTriggerExpr* CreateTriggerTask::release_create_trigger() {
|
||||
|
||||
::greptime::v1::CreateTriggerExpr* temp = _impl_.create_trigger_;
|
||||
_impl_.create_trigger_ = 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::CreateTriggerExpr* CreateTriggerTask::unsafe_arena_release_create_trigger() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.CreateTriggerTask.create_trigger)
|
||||
|
||||
::greptime::v1::CreateTriggerExpr* temp = _impl_.create_trigger_;
|
||||
_impl_.create_trigger_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::CreateTriggerExpr* CreateTriggerTask::_internal_mutable_create_trigger() {
|
||||
|
||||
if (_impl_.create_trigger_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::CreateTriggerExpr>(GetArenaForAllocation());
|
||||
_impl_.create_trigger_ = p;
|
||||
}
|
||||
return _impl_.create_trigger_;
|
||||
}
|
||||
inline ::greptime::v1::CreateTriggerExpr* CreateTriggerTask::mutable_create_trigger() {
|
||||
::greptime::v1::CreateTriggerExpr* _msg = _internal_mutable_create_trigger();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.CreateTriggerTask.create_trigger)
|
||||
return _msg;
|
||||
}
|
||||
inline void CreateTriggerTask::set_allocated_create_trigger(::greptime::v1::CreateTriggerExpr* create_trigger) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.create_trigger_);
|
||||
}
|
||||
if (create_trigger) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(create_trigger));
|
||||
if (message_arena != submessage_arena) {
|
||||
create_trigger = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, create_trigger, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.create_trigger_ = create_trigger;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.CreateTriggerTask.create_trigger)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// DdlTaskRequest
|
||||
|
||||
// .greptime.v1.meta.RequestHeader header = 1;
|
||||
@@ -5562,6 +5834,80 @@ inline ::greptime::v1::meta::AlterDatabaseTask* DdlTaskRequest::mutable_alter_da
|
||||
return _msg;
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.CreateTriggerTask create_trigger_task = 16;
|
||||
inline bool DdlTaskRequest::_internal_has_create_trigger_task() const {
|
||||
return task_case() == kCreateTriggerTask;
|
||||
}
|
||||
inline bool DdlTaskRequest::has_create_trigger_task() const {
|
||||
return _internal_has_create_trigger_task();
|
||||
}
|
||||
inline void DdlTaskRequest::set_has_create_trigger_task() {
|
||||
_impl_._oneof_case_[0] = kCreateTriggerTask;
|
||||
}
|
||||
inline void DdlTaskRequest::clear_create_trigger_task() {
|
||||
if (_internal_has_create_trigger_task()) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.task_.create_trigger_task_;
|
||||
}
|
||||
clear_has_task();
|
||||
}
|
||||
}
|
||||
inline ::greptime::v1::meta::CreateTriggerTask* DdlTaskRequest::release_create_trigger_task() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.create_trigger_task)
|
||||
if (_internal_has_create_trigger_task()) {
|
||||
clear_has_task();
|
||||
::greptime::v1::meta::CreateTriggerTask* temp = _impl_.task_.create_trigger_task_;
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
_impl_.task_.create_trigger_task_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline const ::greptime::v1::meta::CreateTriggerTask& DdlTaskRequest::_internal_create_trigger_task() const {
|
||||
return _internal_has_create_trigger_task()
|
||||
? *_impl_.task_.create_trigger_task_
|
||||
: reinterpret_cast< ::greptime::v1::meta::CreateTriggerTask&>(::greptime::v1::meta::_CreateTriggerTask_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::meta::CreateTriggerTask& DdlTaskRequest::create_trigger_task() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.create_trigger_task)
|
||||
return _internal_create_trigger_task();
|
||||
}
|
||||
inline ::greptime::v1::meta::CreateTriggerTask* DdlTaskRequest::unsafe_arena_release_create_trigger_task() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.create_trigger_task)
|
||||
if (_internal_has_create_trigger_task()) {
|
||||
clear_has_task();
|
||||
::greptime::v1::meta::CreateTriggerTask* temp = _impl_.task_.create_trigger_task_;
|
||||
_impl_.task_.create_trigger_task_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline void DdlTaskRequest::unsafe_arena_set_allocated_create_trigger_task(::greptime::v1::meta::CreateTriggerTask* create_trigger_task) {
|
||||
clear_task();
|
||||
if (create_trigger_task) {
|
||||
set_has_create_trigger_task();
|
||||
_impl_.task_.create_trigger_task_ = create_trigger_task;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.create_trigger_task)
|
||||
}
|
||||
inline ::greptime::v1::meta::CreateTriggerTask* DdlTaskRequest::_internal_mutable_create_trigger_task() {
|
||||
if (!_internal_has_create_trigger_task()) {
|
||||
clear_task();
|
||||
set_has_create_trigger_task();
|
||||
_impl_.task_.create_trigger_task_ = CreateMaybeMessage< ::greptime::v1::meta::CreateTriggerTask >(GetArenaForAllocation());
|
||||
}
|
||||
return _impl_.task_.create_trigger_task_;
|
||||
}
|
||||
inline ::greptime::v1::meta::CreateTriggerTask* DdlTaskRequest::mutable_create_trigger_task() {
|
||||
::greptime::v1::meta::CreateTriggerTask* _msg = _internal_mutable_create_trigger_task();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.create_trigger_task)
|
||||
return _msg;
|
||||
}
|
||||
|
||||
inline bool DdlTaskRequest::has_task() const {
|
||||
return task_case() != TASK_NOT_SET;
|
||||
}
|
||||
@@ -5815,6 +6161,8 @@ DdlTaskResponse::table_ids() const {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
+382
-43
@@ -2888,6 +2888,247 @@ func (x *UnsetDatabaseOptions) GetKeys() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
// The create trigger expression.
|
||||
type CreateTriggerExpr struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
CatalogName string `protobuf:"bytes,1,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"`
|
||||
TriggerName string `protobuf:"bytes,2,opt,name=trigger_name,json=triggerName,proto3" json:"trigger_name,omitempty"`
|
||||
CreateIfNotExists bool `protobuf:"varint,3,opt,name=create_if_not_exists,json=createIfNotExists,proto3" json:"create_if_not_exists,omitempty"`
|
||||
// The SQL statement to be executed periodically.
|
||||
Sql string `protobuf:"bytes,4,opt,name=sql,proto3" json:"sql,omitempty"`
|
||||
// The channels for sending notifications.
|
||||
Channels []*NotifyChannel `protobuf:"bytes,5,rep,name=channels,proto3" json:"channels,omitempty"`
|
||||
// The user-defined labels.
|
||||
Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// The user-defined annotations.
|
||||
Annotations map[string]string `protobuf:"bytes,7,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// The execution interval for sql query in seconds.
|
||||
Interval uint64 `protobuf:"varint,8,opt,name=interval,proto3" json:"interval,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CreateTriggerExpr) Reset() {
|
||||
*x = CreateTriggerExpr{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_ddl_proto_msgTypes[36]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CreateTriggerExpr) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreateTriggerExpr) ProtoMessage() {}
|
||||
|
||||
func (x *CreateTriggerExpr) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_ddl_proto_msgTypes[36]
|
||||
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 CreateTriggerExpr.ProtoReflect.Descriptor instead.
|
||||
func (*CreateTriggerExpr) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{36}
|
||||
}
|
||||
|
||||
func (x *CreateTriggerExpr) GetCatalogName() string {
|
||||
if x != nil {
|
||||
return x.CatalogName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateTriggerExpr) GetTriggerName() string {
|
||||
if x != nil {
|
||||
return x.TriggerName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateTriggerExpr) GetCreateIfNotExists() bool {
|
||||
if x != nil {
|
||||
return x.CreateIfNotExists
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreateTriggerExpr) GetSql() string {
|
||||
if x != nil {
|
||||
return x.Sql
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateTriggerExpr) GetChannels() []*NotifyChannel {
|
||||
if x != nil {
|
||||
return x.Channels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateTriggerExpr) GetLabels() map[string]string {
|
||||
if x != nil {
|
||||
return x.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateTriggerExpr) GetAnnotations() map[string]string {
|
||||
if x != nil {
|
||||
return x.Annotations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateTriggerExpr) GetInterval() uint64 {
|
||||
if x != nil {
|
||||
return x.Interval
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// The notification channel for trigger.
|
||||
type NotifyChannel struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Types that are assignable to ChannelType:
|
||||
//
|
||||
// *NotifyChannel_Webhook
|
||||
ChannelType isNotifyChannel_ChannelType `protobuf_oneof:"channel_type"`
|
||||
}
|
||||
|
||||
func (x *NotifyChannel) Reset() {
|
||||
*x = NotifyChannel{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_ddl_proto_msgTypes[37]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *NotifyChannel) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*NotifyChannel) ProtoMessage() {}
|
||||
|
||||
func (x *NotifyChannel) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_ddl_proto_msgTypes[37]
|
||||
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 NotifyChannel.ProtoReflect.Descriptor instead.
|
||||
func (*NotifyChannel) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{37}
|
||||
}
|
||||
|
||||
func (x *NotifyChannel) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *NotifyChannel) GetChannelType() isNotifyChannel_ChannelType {
|
||||
if m != nil {
|
||||
return m.ChannelType
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *NotifyChannel) GetWebhook() *WebhookOptions {
|
||||
if x, ok := x.GetChannelType().(*NotifyChannel_Webhook); ok {
|
||||
return x.Webhook
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isNotifyChannel_ChannelType interface {
|
||||
isNotifyChannel_ChannelType()
|
||||
}
|
||||
|
||||
type NotifyChannel_Webhook struct {
|
||||
Webhook *WebhookOptions `protobuf:"bytes,2,opt,name=webhook,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*NotifyChannel_Webhook) isNotifyChannel_ChannelType() {}
|
||||
|
||||
// The options for webhook.
|
||||
type WebhookOptions struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||
Opts map[string]string `protobuf:"bytes,2,rep,name=opts,proto3" json:"opts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
}
|
||||
|
||||
func (x *WebhookOptions) Reset() {
|
||||
*x = WebhookOptions{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_ddl_proto_msgTypes[38]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *WebhookOptions) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*WebhookOptions) ProtoMessage() {}
|
||||
|
||||
func (x *WebhookOptions) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_ddl_proto_msgTypes[38]
|
||||
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 WebhookOptions.ProtoReflect.Descriptor instead.
|
||||
func (*WebhookOptions) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{38}
|
||||
}
|
||||
|
||||
func (x *WebhookOptions) GetUrl() string {
|
||||
if x != nil {
|
||||
return x.Url
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *WebhookOptions) GetOpts() map[string]string {
|
||||
if x != nil {
|
||||
return x.Opts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_greptime_v1_ddl_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_greptime_v1_ddl_proto_rawDesc = []byte{
|
||||
@@ -3324,20 +3565,68 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
|
||||
0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2a, 0x0a, 0x14, 0x55, 0x6e, 0x73,
|
||||
0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x73, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52,
|
||||
0x04, 0x6b, 0x65, 0x79, 0x73, 0x2a, 0x24, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65,
|
||||
0x72, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b,
|
||||
0x0a, 0x07, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x53, 0x45, 0x10, 0x01, 0x2a, 0x29, 0x0a, 0x0f, 0x46,
|
||||
0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x0b,
|
||||
0x0a, 0x07, 0x54, 0x41, 0x4e, 0x54, 0x49, 0x56, 0x59, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42,
|
||||
0x4c, 0x4f, 0x4f, 0x4d, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x11, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69,
|
||||
0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x42,
|
||||
0x4c, 0x4f, 0x4f, 0x4d, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x00, 0x42, 0x4c, 0x0a,
|
||||
0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42,
|
||||
0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f,
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x33,
|
||||
0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0x82, 0x04, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||
0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63,
|
||||
0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21,
|
||||
0x0a, 0x0c, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d,
|
||||
0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e,
|
||||
0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73,
|
||||
0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x03, 0x73, 0x71, 0x6c, 0x12, 0x36, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73,
|
||||
0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e,
|
||||
0x65, 0x6c, 0x52, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x12, 0x42, 0x0a, 0x06,
|
||||
0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67,
|
||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
|
||||
0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4c, 0x61, 0x62,
|
||||
0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73,
|
||||
0x12, 0x51, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18,
|
||||
0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65,
|
||||
0x72, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18,
|
||||
0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x1a,
|
||||
0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
|
||||
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e,
|
||||
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
|
||||
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6c, 0x0a, 0x0d, 0x4e, 0x6f,
|
||||
0x74, 0x69, 0x66, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e,
|
||||
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
|
||||
0x37, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57,
|
||||
0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52,
|
||||
0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x0e, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e,
|
||||
0x6e, 0x65, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x0e, 0x57, 0x65, 0x62,
|
||||
0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75,
|
||||
0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x39, 0x0a,
|
||||
0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f,
|
||||
0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74,
|
||||
0x72, 0x79, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4f, 0x70, 0x74, 0x73,
|
||||
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
|
||||
0x01, 0x2a, 0x24, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x0b, 0x0a,
|
||||
0x07, 0x45, 0x4e, 0x47, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x48,
|
||||
0x49, 0x4e, 0x45, 0x53, 0x45, 0x10, 0x01, 0x2a, 0x29, 0x0a, 0x0f, 0x46, 0x75, 0x6c, 0x6c, 0x74,
|
||||
0x65, 0x78, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x41,
|
||||
0x4e, 0x54, 0x49, 0x56, 0x59, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x4c, 0x4f, 0x4f, 0x4d,
|
||||
0x10, 0x01, 0x2a, 0x25, 0x0a, 0x11, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e,
|
||||
0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x42, 0x4c, 0x4f, 0x4f, 0x4d,
|
||||
0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x00, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e,
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c,
|
||||
0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -3353,7 +3642,7 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
||||
var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 39)
|
||||
var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 45)
|
||||
var file_greptime_v1_ddl_proto_goTypes = []interface{}{
|
||||
(Analyzer)(0), // 0: greptime.v1.Analyzer
|
||||
(FulltextBackend)(0), // 1: greptime.v1.FulltextBackend
|
||||
@@ -3395,15 +3684,21 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{
|
||||
(*AlterDatabaseExpr)(nil), // 37: greptime.v1.AlterDatabaseExpr
|
||||
(*SetDatabaseOptions)(nil), // 38: greptime.v1.SetDatabaseOptions
|
||||
(*UnsetDatabaseOptions)(nil), // 39: greptime.v1.UnsetDatabaseOptions
|
||||
nil, // 40: greptime.v1.CreateFlowExpr.FlowOptionsEntry
|
||||
nil, // 41: greptime.v1.CreateTableExpr.TableOptionsEntry
|
||||
nil, // 42: greptime.v1.CreateDatabaseExpr.OptionsEntry
|
||||
(*TableName)(nil), // 43: greptime.v1.TableName
|
||||
(*ExpireAfter)(nil), // 44: greptime.v1.ExpireAfter
|
||||
(ColumnDataType)(0), // 45: greptime.v1.ColumnDataType
|
||||
(*ColumnDataTypeExtension)(nil), // 46: greptime.v1.ColumnDataTypeExtension
|
||||
(SemanticType)(0), // 47: greptime.v1.SemanticType
|
||||
(*ColumnOptions)(nil), // 48: greptime.v1.ColumnOptions
|
||||
(*CreateTriggerExpr)(nil), // 40: greptime.v1.CreateTriggerExpr
|
||||
(*NotifyChannel)(nil), // 41: greptime.v1.NotifyChannel
|
||||
(*WebhookOptions)(nil), // 42: greptime.v1.WebhookOptions
|
||||
nil, // 43: greptime.v1.CreateFlowExpr.FlowOptionsEntry
|
||||
nil, // 44: greptime.v1.CreateTableExpr.TableOptionsEntry
|
||||
nil, // 45: greptime.v1.CreateDatabaseExpr.OptionsEntry
|
||||
nil, // 46: greptime.v1.CreateTriggerExpr.LabelsEntry
|
||||
nil, // 47: greptime.v1.CreateTriggerExpr.AnnotationsEntry
|
||||
nil, // 48: greptime.v1.WebhookOptions.OptsEntry
|
||||
(*TableName)(nil), // 49: greptime.v1.TableName
|
||||
(*ExpireAfter)(nil), // 50: greptime.v1.ExpireAfter
|
||||
(ColumnDataType)(0), // 51: greptime.v1.ColumnDataType
|
||||
(*ColumnDataTypeExtension)(nil), // 52: greptime.v1.ColumnDataTypeExtension
|
||||
(SemanticType)(0), // 53: greptime.v1.SemanticType
|
||||
(*ColumnOptions)(nil), // 54: greptime.v1.ColumnOptions
|
||||
}
|
||||
var file_greptime_v1_ddl_proto_depIdxs = []int32{
|
||||
14, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
|
||||
@@ -3416,15 +3711,15 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{
|
||||
7, // 7: greptime.v1.DdlRequest.create_view:type_name -> greptime.v1.CreateViewExpr
|
||||
8, // 8: greptime.v1.DdlRequest.drop_view:type_name -> greptime.v1.DropViewExpr
|
||||
37, // 9: greptime.v1.DdlRequest.alter_database:type_name -> greptime.v1.AlterDatabaseExpr
|
||||
43, // 10: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName
|
||||
43, // 11: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName
|
||||
44, // 12: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter
|
||||
40, // 13: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry
|
||||
49, // 10: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName
|
||||
49, // 11: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName
|
||||
50, // 12: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter
|
||||
43, // 13: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry
|
||||
28, // 14: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId
|
||||
43, // 15: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName
|
||||
49, // 15: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName
|
||||
27, // 16: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId
|
||||
29, // 17: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef
|
||||
41, // 18: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
|
||||
44, // 18: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
|
||||
27, // 19: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId
|
||||
17, // 20: greptime.v1.AlterTableExpr.add_columns:type_name -> greptime.v1.AddColumns
|
||||
18, // 21: greptime.v1.AlterTableExpr.drop_columns:type_name -> greptime.v1.DropColumns
|
||||
@@ -3441,20 +3736,20 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{
|
||||
34, // 32: greptime.v1.UnsetIndex.inverted:type_name -> greptime.v1.UnsetInverted
|
||||
36, // 33: greptime.v1.UnsetIndex.skipping:type_name -> greptime.v1.UnsetSkipping
|
||||
27, // 34: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId
|
||||
42, // 35: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry
|
||||
45, // 35: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry
|
||||
27, // 36: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId
|
||||
21, // 37: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
|
||||
26, // 38: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
|
||||
22, // 39: greptime.v1.ModifyColumnTypes.modify_column_types:type_name -> greptime.v1.ModifyColumnType
|
||||
29, // 40: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
|
||||
30, // 41: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
|
||||
45, // 42: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType
|
||||
46, // 43: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension
|
||||
51, // 42: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType
|
||||
52, // 43: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension
|
||||
23, // 44: greptime.v1.SetTableOptions.table_options:type_name -> greptime.v1.Option
|
||||
45, // 45: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType
|
||||
47, // 46: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType
|
||||
46, // 47: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
|
||||
48, // 48: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions
|
||||
51, // 45: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType
|
||||
53, // 46: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType
|
||||
52, // 47: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
|
||||
54, // 48: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions
|
||||
3, // 49: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType
|
||||
0, // 50: greptime.v1.SetFulltext.analyzer:type_name -> greptime.v1.Analyzer
|
||||
1, // 51: greptime.v1.SetFulltext.backend:type_name -> greptime.v1.FulltextBackend
|
||||
@@ -3462,11 +3757,16 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{
|
||||
38, // 53: greptime.v1.AlterDatabaseExpr.set_database_options:type_name -> greptime.v1.SetDatabaseOptions
|
||||
39, // 54: greptime.v1.AlterDatabaseExpr.unset_database_options:type_name -> greptime.v1.UnsetDatabaseOptions
|
||||
23, // 55: greptime.v1.SetDatabaseOptions.set_database_options:type_name -> greptime.v1.Option
|
||||
56, // [56:56] is the sub-list for method output_type
|
||||
56, // [56:56] is the sub-list for method input_type
|
||||
56, // [56:56] is the sub-list for extension type_name
|
||||
56, // [56:56] is the sub-list for extension extendee
|
||||
0, // [0:56] is the sub-list for field type_name
|
||||
41, // 56: greptime.v1.CreateTriggerExpr.channels:type_name -> greptime.v1.NotifyChannel
|
||||
46, // 57: greptime.v1.CreateTriggerExpr.labels:type_name -> greptime.v1.CreateTriggerExpr.LabelsEntry
|
||||
47, // 58: greptime.v1.CreateTriggerExpr.annotations:type_name -> greptime.v1.CreateTriggerExpr.AnnotationsEntry
|
||||
42, // 59: greptime.v1.NotifyChannel.webhook:type_name -> greptime.v1.WebhookOptions
|
||||
48, // 60: greptime.v1.WebhookOptions.opts:type_name -> greptime.v1.WebhookOptions.OptsEntry
|
||||
61, // [61:61] is the sub-list for method output_type
|
||||
61, // [61:61] is the sub-list for method input_type
|
||||
61, // [61:61] is the sub-list for extension type_name
|
||||
61, // [61:61] is the sub-list for extension extendee
|
||||
0, // [0:61] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_greptime_v1_ddl_proto_init() }
|
||||
@@ -3908,6 +4208,42 @@ func file_greptime_v1_ddl_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_ddl_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CreateTriggerExpr); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_ddl_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*NotifyChannel); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_ddl_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WebhookOptions); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
file_greptime_v1_ddl_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
(*DdlRequest_CreateDatabase)(nil),
|
||||
@@ -3945,13 +4281,16 @@ func file_greptime_v1_ddl_proto_init() {
|
||||
(*AlterDatabaseExpr_SetDatabaseOptions)(nil),
|
||||
(*AlterDatabaseExpr_UnsetDatabaseOptions)(nil),
|
||||
}
|
||||
file_greptime_v1_ddl_proto_msgTypes[37].OneofWrappers = []interface{}{
|
||||
(*NotifyChannel_Webhook)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_greptime_v1_ddl_proto_rawDesc,
|
||||
NumEnums: 4,
|
||||
NumMessages: 39,
|
||||
NumMessages: 45,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
+250
-161
@@ -766,6 +766,53 @@ func (x *AlterDatabaseTask) GetTask() *v1.AlterDatabaseExpr {
|
||||
return nil
|
||||
}
|
||||
|
||||
type CreateTriggerTask struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
CreateTrigger *v1.CreateTriggerExpr `protobuf:"bytes,1,opt,name=create_trigger,json=createTrigger,proto3" json:"create_trigger,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CreateTriggerTask) Reset() {
|
||||
*x = CreateTriggerTask{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CreateTriggerTask) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreateTriggerTask) ProtoMessage() {}
|
||||
|
||||
func (x *CreateTriggerTask) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[14]
|
||||
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 CreateTriggerTask.ProtoReflect.Descriptor instead.
|
||||
func (*CreateTriggerTask) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *CreateTriggerTask) GetCreateTrigger() *v1.CreateTriggerExpr {
|
||||
if x != nil {
|
||||
return x.CreateTrigger
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DdlTaskRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -789,13 +836,14 @@ type DdlTaskRequest struct {
|
||||
// *DdlTaskRequest_CreateViewTask
|
||||
// *DdlTaskRequest_DropViewTask
|
||||
// *DdlTaskRequest_AlterDatabaseTask
|
||||
// *DdlTaskRequest_CreateTriggerTask
|
||||
Task isDdlTaskRequest_Task `protobuf_oneof:"task"`
|
||||
}
|
||||
|
||||
func (x *DdlTaskRequest) Reset() {
|
||||
*x = DdlTaskRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[14]
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[15]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -808,7 +856,7 @@ func (x *DdlTaskRequest) String() string {
|
||||
func (*DdlTaskRequest) ProtoMessage() {}
|
||||
|
||||
func (x *DdlTaskRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[14]
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[15]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -821,7 +869,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{14}
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{15}
|
||||
}
|
||||
|
||||
func (x *DdlTaskRequest) GetHeader() *RequestHeader {
|
||||
@@ -943,6 +991,13 @@ func (x *DdlTaskRequest) GetAlterDatabaseTask() *AlterDatabaseTask {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DdlTaskRequest) GetCreateTriggerTask() *CreateTriggerTask {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_CreateTriggerTask); ok {
|
||||
return x.CreateTriggerTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isDdlTaskRequest_Task interface {
|
||||
isDdlTaskRequest_Task()
|
||||
}
|
||||
@@ -1003,6 +1058,10 @@ type DdlTaskRequest_AlterDatabaseTask struct {
|
||||
AlterDatabaseTask *AlterDatabaseTask `protobuf:"bytes,15,opt,name=alter_database_task,json=alterDatabaseTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
type DdlTaskRequest_CreateTriggerTask struct {
|
||||
CreateTriggerTask *CreateTriggerTask `protobuf:"bytes,16,opt,name=create_trigger_task,json=createTriggerTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*DdlTaskRequest_CreateTableTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*DdlTaskRequest_DropTableTask) isDdlTaskRequest_Task() {}
|
||||
@@ -1031,6 +1090,8 @@ func (*DdlTaskRequest_DropViewTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*DdlTaskRequest_AlterDatabaseTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*DdlTaskRequest_CreateTriggerTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
type DdlTaskResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -1045,7 +1106,7 @@ type DdlTaskResponse struct {
|
||||
func (x *DdlTaskResponse) Reset() {
|
||||
*x = DdlTaskResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[15]
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[16]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1058,7 +1119,7 @@ func (x *DdlTaskResponse) String() string {
|
||||
func (*DdlTaskResponse) ProtoMessage() {}
|
||||
|
||||
func (x *DdlTaskResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[15]
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[16]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1071,7 +1132,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{15}
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{16}
|
||||
}
|
||||
|
||||
func (x *DdlTaskResponse) GetHeader() *ResponseHeader {
|
||||
@@ -1185,104 +1246,115 @@ var file_greptime_v1_meta_ddl_proto_rawDesc = []byte{
|
||||
0x12, 0x32, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e,
|
||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x74,
|
||||
0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x04,
|
||||
0x74, 0x61, 0x73, 0x6b, 0x22, 0xf6, 0x09, 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, 0x3e, 0x0a, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78,
|
||||
0x74, 0x18, 0x40, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65,
|
||||
0x78, 0x74, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
|
||||
0x12, 0x4f, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43,
|
||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00,
|
||||
0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73,
|
||||
0x6b, 0x12, 0x49, 0x0a, 0x0f, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
|
||||
0x74, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72,
|
||||
0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x64,
|
||||
0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10,
|
||||
0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x6c, 0x74, 0x65,
|
||||
0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x72,
|
||||
0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73,
|
||||
0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63,
|
||||
0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x11,
|
||||
0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73,
|
||||
0x6b, 0x12, 0x52, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e,
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
|
||||
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b,
|
||||
0x73, 0x48, 0x00, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4c, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b,
|
||||
0x73, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61,
|
||||
0x73, 0x6b, 0x73, 0x12, 0x4f, 0x0a, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21,
|
||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b,
|
||||
0x73, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x73, 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, 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, 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61,
|
||||
0x74, 0x65, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0d, 0x20, 0x01,
|
||||
0x74, 0x61, 0x73, 0x6b, 0x22, 0x5a, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72,
|
||||
0x69, 0x67, 0x67, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x45, 0x0a, 0x0e, 0x63, 0x72, 0x65,
|
||||
0x61, 0x74, 0x65, 0x5f, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70,
|
||||
0x72, 0x52, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72,
|
||||
0x22, 0xcd, 0x0a, 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, 0x3e, 0x0a, 0x0d,
|
||||
0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x40, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0c,
|
||||
0x71, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 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, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x65, 0x77,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69,
|
||||
0x65, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x76,
|
||||
0x69, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e,
|
||||
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,
|
||||
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, 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x76,
|
||||
0x69, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0d, 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, 0x56, 0x69, 0x65, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00,
|
||||
0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x56, 0x69, 0x65, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55,
|
||||
0x0a, 0x13, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
|
||||
0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41,
|
||||
0x6c, 0x74, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b,
|
||||
0x48, 0x00, 0x52, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
|
||||
0x65, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, 0xaf, 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, 0x31, 0x0a, 0x09,
|
||||
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 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,
|
||||
0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x65, 0x77, 0x54, 0x61, 0x73, 0x6b,
|
||||
0x48, 0x00, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x65, 0x77, 0x54, 0x61,
|
||||
0x73, 0x6b, 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x5f,
|
||||
0x74, 0x61, 0x73, 0x6b, 0x18, 0x0e, 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, 0x56, 0x69, 0x65, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x72,
|
||||
0x6f, 0x70, 0x56, 0x69, 0x65, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x13, 0x61, 0x6c,
|
||||
0x74, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x61, 0x73,
|
||||
0x6b, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72,
|
||||
0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x11,
|
||||
0x61, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73,
|
||||
0x6b, 0x12, 0x55, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x72, 0x69, 0x67,
|
||||
0x67, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23,
|
||||
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, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69,
|
||||
0x67, 0x67, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b,
|
||||
0x22, 0xaf, 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,
|
||||
0x31, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
||||
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 (
|
||||
@@ -1298,7 +1370,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, 16)
|
||||
var file_greptime_v1_meta_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
|
||||
var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{
|
||||
(DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType
|
||||
(*CreateDatabaseTask)(nil), // 1: greptime.v1.meta.CreateDatabaseTask
|
||||
@@ -1315,66 +1387,70 @@ var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{
|
||||
(*CreateViewTask)(nil), // 12: greptime.v1.meta.CreateViewTask
|
||||
(*DropViewTask)(nil), // 13: greptime.v1.meta.DropViewTask
|
||||
(*AlterDatabaseTask)(nil), // 14: greptime.v1.meta.AlterDatabaseTask
|
||||
(*DdlTaskRequest)(nil), // 15: greptime.v1.meta.DdlTaskRequest
|
||||
(*DdlTaskResponse)(nil), // 16: greptime.v1.meta.DdlTaskResponse
|
||||
(*v1.CreateDatabaseExpr)(nil), // 17: greptime.v1.CreateDatabaseExpr
|
||||
(*v1.CreateTableExpr)(nil), // 18: greptime.v1.CreateTableExpr
|
||||
(*Partition)(nil), // 19: greptime.v1.meta.Partition
|
||||
(*v1.DropTableExpr)(nil), // 20: greptime.v1.DropTableExpr
|
||||
(*v1.AlterTableExpr)(nil), // 21: greptime.v1.AlterTableExpr
|
||||
(*v1.TruncateTableExpr)(nil), // 22: greptime.v1.TruncateTableExpr
|
||||
(*v1.DropDatabaseExpr)(nil), // 23: greptime.v1.DropDatabaseExpr
|
||||
(*v1.CreateFlowExpr)(nil), // 24: greptime.v1.CreateFlowExpr
|
||||
(*v1.DropFlowExpr)(nil), // 25: greptime.v1.DropFlowExpr
|
||||
(*v1.CreateViewExpr)(nil), // 26: greptime.v1.CreateViewExpr
|
||||
(*v1.DropViewExpr)(nil), // 27: greptime.v1.DropViewExpr
|
||||
(*v1.AlterDatabaseExpr)(nil), // 28: greptime.v1.AlterDatabaseExpr
|
||||
(*RequestHeader)(nil), // 29: greptime.v1.meta.RequestHeader
|
||||
(*v1.QueryContext)(nil), // 30: greptime.v1.QueryContext
|
||||
(*ResponseHeader)(nil), // 31: greptime.v1.meta.ResponseHeader
|
||||
(*ProcedureId)(nil), // 32: greptime.v1.meta.ProcedureId
|
||||
(*v1.TableId)(nil), // 33: greptime.v1.TableId
|
||||
(*CreateTriggerTask)(nil), // 15: greptime.v1.meta.CreateTriggerTask
|
||||
(*DdlTaskRequest)(nil), // 16: greptime.v1.meta.DdlTaskRequest
|
||||
(*DdlTaskResponse)(nil), // 17: greptime.v1.meta.DdlTaskResponse
|
||||
(*v1.CreateDatabaseExpr)(nil), // 18: greptime.v1.CreateDatabaseExpr
|
||||
(*v1.CreateTableExpr)(nil), // 19: greptime.v1.CreateTableExpr
|
||||
(*Partition)(nil), // 20: greptime.v1.meta.Partition
|
||||
(*v1.DropTableExpr)(nil), // 21: greptime.v1.DropTableExpr
|
||||
(*v1.AlterTableExpr)(nil), // 22: greptime.v1.AlterTableExpr
|
||||
(*v1.TruncateTableExpr)(nil), // 23: greptime.v1.TruncateTableExpr
|
||||
(*v1.DropDatabaseExpr)(nil), // 24: greptime.v1.DropDatabaseExpr
|
||||
(*v1.CreateFlowExpr)(nil), // 25: greptime.v1.CreateFlowExpr
|
||||
(*v1.DropFlowExpr)(nil), // 26: greptime.v1.DropFlowExpr
|
||||
(*v1.CreateViewExpr)(nil), // 27: greptime.v1.CreateViewExpr
|
||||
(*v1.DropViewExpr)(nil), // 28: greptime.v1.DropViewExpr
|
||||
(*v1.AlterDatabaseExpr)(nil), // 29: greptime.v1.AlterDatabaseExpr
|
||||
(*v1.CreateTriggerExpr)(nil), // 30: greptime.v1.CreateTriggerExpr
|
||||
(*RequestHeader)(nil), // 31: greptime.v1.meta.RequestHeader
|
||||
(*v1.QueryContext)(nil), // 32: greptime.v1.QueryContext
|
||||
(*ResponseHeader)(nil), // 33: greptime.v1.meta.ResponseHeader
|
||||
(*ProcedureId)(nil), // 34: greptime.v1.meta.ProcedureId
|
||||
(*v1.TableId)(nil), // 35: greptime.v1.TableId
|
||||
}
|
||||
var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{
|
||||
17, // 0: greptime.v1.meta.CreateDatabaseTask.create_database:type_name -> greptime.v1.CreateDatabaseExpr
|
||||
18, // 1: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr
|
||||
19, // 2: greptime.v1.meta.CreateTableTask.partitions:type_name -> greptime.v1.meta.Partition
|
||||
18, // 0: greptime.v1.meta.CreateDatabaseTask.create_database:type_name -> greptime.v1.CreateDatabaseExpr
|
||||
19, // 1: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr
|
||||
20, // 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
|
||||
20, // 4: greptime.v1.meta.DropTableTask.drop_table:type_name -> greptime.v1.DropTableExpr
|
||||
21, // 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
|
||||
21, // 6: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterTableExpr
|
||||
22, // 6: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterTableExpr
|
||||
6, // 7: greptime.v1.meta.AlterTableTasks.tasks:type_name -> greptime.v1.meta.AlterTableTask
|
||||
22, // 8: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr
|
||||
23, // 9: greptime.v1.meta.DropDatabaseTask.drop_database:type_name -> greptime.v1.DropDatabaseExpr
|
||||
24, // 10: greptime.v1.meta.CreateFlowTask.create_flow:type_name -> greptime.v1.CreateFlowExpr
|
||||
25, // 11: greptime.v1.meta.DropFlowTask.drop_flow:type_name -> greptime.v1.DropFlowExpr
|
||||
26, // 12: greptime.v1.meta.CreateViewTask.create_view:type_name -> greptime.v1.CreateViewExpr
|
||||
27, // 13: greptime.v1.meta.DropViewTask.drop_view:type_name -> greptime.v1.DropViewExpr
|
||||
28, // 14: greptime.v1.meta.AlterDatabaseTask.task:type_name -> greptime.v1.AlterDatabaseExpr
|
||||
29, // 15: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
30, // 16: greptime.v1.meta.DdlTaskRequest.query_context:type_name -> greptime.v1.QueryContext
|
||||
2, // 17: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
|
||||
4, // 18: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
|
||||
6, // 19: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
|
||||
8, // 20: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
|
||||
3, // 21: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks
|
||||
5, // 22: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks
|
||||
7, // 23: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks
|
||||
9, // 24: greptime.v1.meta.DdlTaskRequest.drop_database_task:type_name -> greptime.v1.meta.DropDatabaseTask
|
||||
1, // 25: greptime.v1.meta.DdlTaskRequest.create_database_task:type_name -> greptime.v1.meta.CreateDatabaseTask
|
||||
10, // 26: greptime.v1.meta.DdlTaskRequest.create_flow_task:type_name -> greptime.v1.meta.CreateFlowTask
|
||||
11, // 27: greptime.v1.meta.DdlTaskRequest.drop_flow_task:type_name -> greptime.v1.meta.DropFlowTask
|
||||
12, // 28: greptime.v1.meta.DdlTaskRequest.create_view_task:type_name -> greptime.v1.meta.CreateViewTask
|
||||
13, // 29: greptime.v1.meta.DdlTaskRequest.drop_view_task:type_name -> greptime.v1.meta.DropViewTask
|
||||
14, // 30: greptime.v1.meta.DdlTaskRequest.alter_database_task:type_name -> greptime.v1.meta.AlterDatabaseTask
|
||||
31, // 31: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
32, // 32: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId
|
||||
33, // 33: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.TableId
|
||||
34, // [34:34] is the sub-list for method output_type
|
||||
34, // [34:34] is the sub-list for method input_type
|
||||
34, // [34:34] is the sub-list for extension type_name
|
||||
34, // [34:34] is the sub-list for extension extendee
|
||||
0, // [0:34] is the sub-list for field type_name
|
||||
23, // 8: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr
|
||||
24, // 9: greptime.v1.meta.DropDatabaseTask.drop_database:type_name -> greptime.v1.DropDatabaseExpr
|
||||
25, // 10: greptime.v1.meta.CreateFlowTask.create_flow:type_name -> greptime.v1.CreateFlowExpr
|
||||
26, // 11: greptime.v1.meta.DropFlowTask.drop_flow:type_name -> greptime.v1.DropFlowExpr
|
||||
27, // 12: greptime.v1.meta.CreateViewTask.create_view:type_name -> greptime.v1.CreateViewExpr
|
||||
28, // 13: greptime.v1.meta.DropViewTask.drop_view:type_name -> greptime.v1.DropViewExpr
|
||||
29, // 14: greptime.v1.meta.AlterDatabaseTask.task:type_name -> greptime.v1.AlterDatabaseExpr
|
||||
30, // 15: greptime.v1.meta.CreateTriggerTask.create_trigger:type_name -> greptime.v1.CreateTriggerExpr
|
||||
31, // 16: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
32, // 17: greptime.v1.meta.DdlTaskRequest.query_context:type_name -> greptime.v1.QueryContext
|
||||
2, // 18: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
|
||||
4, // 19: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
|
||||
6, // 20: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
|
||||
8, // 21: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
|
||||
3, // 22: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks
|
||||
5, // 23: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks
|
||||
7, // 24: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks
|
||||
9, // 25: greptime.v1.meta.DdlTaskRequest.drop_database_task:type_name -> greptime.v1.meta.DropDatabaseTask
|
||||
1, // 26: greptime.v1.meta.DdlTaskRequest.create_database_task:type_name -> greptime.v1.meta.CreateDatabaseTask
|
||||
10, // 27: greptime.v1.meta.DdlTaskRequest.create_flow_task:type_name -> greptime.v1.meta.CreateFlowTask
|
||||
11, // 28: greptime.v1.meta.DdlTaskRequest.drop_flow_task:type_name -> greptime.v1.meta.DropFlowTask
|
||||
12, // 29: greptime.v1.meta.DdlTaskRequest.create_view_task:type_name -> greptime.v1.meta.CreateViewTask
|
||||
13, // 30: greptime.v1.meta.DdlTaskRequest.drop_view_task:type_name -> greptime.v1.meta.DropViewTask
|
||||
14, // 31: greptime.v1.meta.DdlTaskRequest.alter_database_task:type_name -> greptime.v1.meta.AlterDatabaseTask
|
||||
15, // 32: greptime.v1.meta.DdlTaskRequest.create_trigger_task:type_name -> greptime.v1.meta.CreateTriggerTask
|
||||
33, // 33: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
34, // 34: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId
|
||||
35, // 35: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.TableId
|
||||
36, // [36:36] is the sub-list for method output_type
|
||||
36, // [36:36] is the sub-list for method input_type
|
||||
36, // [36:36] is the sub-list for extension type_name
|
||||
36, // [36:36] is the sub-list for extension extendee
|
||||
0, // [0:36] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_greptime_v1_meta_ddl_proto_init() }
|
||||
@@ -1554,7 +1630,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DdlTaskRequest); i {
|
||||
switch v := v.(*CreateTriggerTask); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -1566,6 +1642,18 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[15].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[16].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DdlTaskResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -1578,7 +1666,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[14].OneofWrappers = []interface{}{
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[15].OneofWrappers = []interface{}{
|
||||
(*DdlTaskRequest_CreateTableTask)(nil),
|
||||
(*DdlTaskRequest_DropTableTask)(nil),
|
||||
(*DdlTaskRequest_AlterTableTask)(nil),
|
||||
@@ -1593,6 +1681,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
(*DdlTaskRequest_CreateViewTask)(nil),
|
||||
(*DdlTaskRequest_DropViewTask)(nil),
|
||||
(*DdlTaskRequest_AlterDatabaseTask)(nil),
|
||||
(*DdlTaskRequest_CreateTriggerTask)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@@ -1600,7 +1689,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: 16,
|
||||
NumMessages: 17,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -286,3 +286,34 @@ message SetDatabaseOptions {
|
||||
message UnsetDatabaseOptions {
|
||||
repeated string keys = 1;
|
||||
}
|
||||
|
||||
// The create trigger expression.
|
||||
message CreateTriggerExpr {
|
||||
string catalog_name = 1;
|
||||
string trigger_name = 2;
|
||||
bool create_if_not_exists = 3;
|
||||
// The SQL statement to be executed periodically.
|
||||
string sql = 4;
|
||||
// The channels for sending notifications.
|
||||
repeated NotifyChannel channels = 5;
|
||||
// The user-defined labels.
|
||||
map<string, string> labels = 6;
|
||||
// The user-defined annotations.
|
||||
map<string, string> annotations = 7;
|
||||
// The execution interval for sql query in seconds.
|
||||
uint64 interval = 8;
|
||||
}
|
||||
|
||||
// The notification channel for trigger.
|
||||
message NotifyChannel {
|
||||
string name = 1;
|
||||
oneof channel_type {
|
||||
WebhookOptions webhook = 2;
|
||||
}
|
||||
}
|
||||
|
||||
// The options for webhook.
|
||||
message WebhookOptions {
|
||||
string url = 1;
|
||||
map<string, string> opts = 2;
|
||||
}
|
||||
|
||||
@@ -84,6 +84,10 @@ message AlterDatabaseTask {
|
||||
AlterDatabaseExpr task = 1;
|
||||
}
|
||||
|
||||
message CreateTriggerTask {
|
||||
CreateTriggerExpr create_trigger = 1;
|
||||
}
|
||||
|
||||
message DdlTaskRequest {
|
||||
RequestHeader header = 1;
|
||||
QueryContext query_context = 64;
|
||||
@@ -103,6 +107,7 @@ message DdlTaskRequest {
|
||||
CreateViewTask create_view_task = 13;
|
||||
DropViewTask drop_view_task = 14;
|
||||
AlterDatabaseTask alter_database_task = 15;
|
||||
CreateTriggerTask create_trigger_task = 16;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user