diff --git a/build.rs b/build.rs index 8460fbfe..0eacba37 100644 --- a/build.rs +++ b/build.rs @@ -45,6 +45,7 @@ fn main() { "proto/greptime/v1/meta/cluster.proto", "proto/greptime/v1/meta/procedure.proto", "proto/greptime/v1/region/server.proto", + "proto/greptime/v1/flow/server.proto", "proto/greptime/v1/index/inverted_index.proto", "proto/prometheus/remote/remote.proto", "proto/substrait_extension/promql_plan.proto", diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 1b2a660a..7f8a69c1 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -36,52 +36,66 @@ struct DdlRequestDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DdlRequestDefaultTypeInternal _DdlRequest_default_instance_; -PROTOBUF_CONSTEXPR CreateTaskExpr_TaskOptionsEntry_DoNotUse::CreateTaskExpr_TaskOptionsEntry_DoNotUse( +PROTOBUF_CONSTEXPR CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse( ::_pbi::ConstantInitialized) {} -struct CreateTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal() +struct CreateFlowTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateFlowTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal() {} + ~CreateFlowTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal() {} union { - CreateTaskExpr_TaskOptionsEntry_DoNotUse _instance; + CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal _CreateTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR CreateTaskExpr::CreateTaskExpr( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFlowTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal _CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR CreateFlowTaskExpr::CreateFlowTaskExpr( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.task_options_)*/{::_pbi::ConstantInitialized()} + /*decltype(_impl_.source_table_names_)*/{} + , /*decltype(_impl_.task_options_)*/{::_pbi::ConstantInitialized()} , /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.task_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.output_schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.output_table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.expire_when_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.sql_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.sink_table_name_)*/nullptr , /*decltype(_impl_.create_if_not_exists_)*/false , /*decltype(_impl_._cached_size_)*/{}} {} -struct CreateTaskExprDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateTaskExprDefaultTypeInternal() +struct CreateFlowTaskExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateFlowTaskExprDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateTaskExprDefaultTypeInternal() {} + ~CreateFlowTaskExprDefaultTypeInternal() {} union { - CreateTaskExpr _instance; + CreateFlowTaskExpr _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateTaskExprDefaultTypeInternal _CreateTaskExpr_default_instance_; -PROTOBUF_CONSTEXPR RemoveTaskExpr::RemoveTaskExpr( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFlowTaskExprDefaultTypeInternal _CreateFlowTaskExpr_default_instance_; +PROTOBUF_CONSTEXPR SchemaScopedTableName::SchemaScopedTableName( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SchemaScopedTableNameDefaultTypeInternal { + PROTOBUF_CONSTEXPR SchemaScopedTableNameDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SchemaScopedTableNameDefaultTypeInternal() {} + union { + SchemaScopedTableName _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SchemaScopedTableNameDefaultTypeInternal _SchemaScopedTableName_default_instance_; +PROTOBUF_CONSTEXPR DropFlowTaskExpr::DropFlowTaskExpr( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.task_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_._cached_size_)*/{}} {} -struct RemoveTaskExprDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoveTaskExprDefaultTypeInternal() +struct DropFlowTaskExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR DropFlowTaskExprDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoveTaskExprDefaultTypeInternal() {} + ~DropFlowTaskExprDefaultTypeInternal() {} union { - RemoveTaskExpr _instance; + DropFlowTaskExpr _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveTaskExprDefaultTypeInternal _RemoveTaskExpr_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropFlowTaskExprDefaultTypeInternal _DropFlowTaskExpr_default_instance_; PROTOBUF_CONSTEXPR CreateTableExpr_TableOptionsEntry_DoNotUse::CreateTableExpr_TableOptionsEntry_DoNotUse( ::_pbi::ConstantInitialized) {} struct CreateTableExpr_TableOptionsEntry_DoNotUseDefaultTypeInternal { @@ -322,7 +336,7 @@ struct AddColumnLocationDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddColumnLocationDefaultTypeInternal _AddColumnLocation_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[20]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[21]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fddl_2eproto = nullptr; @@ -341,39 +355,47 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::DdlRequest, _impl_.expr_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr_TaskOptionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr_TaskOptionsEntry_DoNotUse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr_TaskOptionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr_TaskOptionsEntry_DoNotUse, value_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse, value_), 0, 1, ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.catalog_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.task_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.source_table_names_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.sink_table_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.create_if_not_exists_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.expire_when_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.comment_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.sql_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.task_options_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SchemaScopedTableName, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr, _impl_.catalog_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr, _impl_.task_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr, _impl_.output_schema_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr, _impl_.output_table_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr, _impl_.create_if_not_exists_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr, _impl_.expire_when_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr, _impl_.comment_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr, _impl_.sql_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTaskExpr, _impl_.task_options_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SchemaScopedTableName, _impl_.schema_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SchemaScopedTableName, _impl_.table_name_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::RemoveTaskExpr, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::DropFlowTaskExpr, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::RemoveTaskExpr, _impl_.catalog_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::RemoveTaskExpr, _impl_.task_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::DropFlowTaskExpr, _impl_.catalog_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::DropFlowTaskExpr, _impl_.task_name_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -531,32 +553,34 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::DdlRequest)}, - { 14, 22, -1, sizeof(::greptime::v1::CreateTaskExpr_TaskOptionsEntry_DoNotUse)}, - { 24, -1, -1, sizeof(::greptime::v1::CreateTaskExpr)}, - { 39, -1, -1, sizeof(::greptime::v1::RemoveTaskExpr)}, - { 47, 55, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, - { 57, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, - { 74, -1, -1, sizeof(::greptime::v1::AlterExpr)}, - { 87, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, - { 98, 106, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, - { 108, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, - { 118, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, - { 128, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, - { 137, -1, -1, sizeof(::greptime::v1::AddColumns)}, - { 144, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 151, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 158, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 166, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 173, -1, -1, sizeof(::greptime::v1::TableId)}, - { 180, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 193, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 14, 22, -1, sizeof(::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse)}, + { 24, -1, -1, sizeof(::greptime::v1::CreateFlowTaskExpr)}, + { 39, -1, -1, sizeof(::greptime::v1::SchemaScopedTableName)}, + { 47, -1, -1, sizeof(::greptime::v1::DropFlowTaskExpr)}, + { 55, 63, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, + { 65, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, + { 82, -1, -1, sizeof(::greptime::v1::AlterExpr)}, + { 95, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, + { 106, 114, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, + { 116, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, + { 126, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, + { 136, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, + { 145, -1, -1, sizeof(::greptime::v1::AddColumns)}, + { 152, -1, -1, sizeof(::greptime::v1::DropColumns)}, + { 159, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 166, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 174, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 181, -1, -1, sizeof(::greptime::v1::TableId)}, + { 188, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 201, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, }; static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_DdlRequest_default_instance_._instance, - &::greptime::v1::_CreateTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_._instance, - &::greptime::v1::_CreateTaskExpr_default_instance_._instance, - &::greptime::v1::_RemoveTaskExpr_default_instance_._instance, + &::greptime::v1::_CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_._instance, + &::greptime::v1::_CreateFlowTaskExpr_default_instance_._instance, + &::greptime::v1::_SchemaScopedTableName_default_instance_._instance, + &::greptime::v1::_DropFlowTaskExpr_default_instance_._instance, &::greptime::v1::_CreateTableExpr_TableOptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateTableExpr_default_instance_._instance, &::greptime::v1::_AlterExpr_default_instance_._instance, @@ -577,25 +601,29 @@ static const ::_pb::Message* const file_default_instances[] = { const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\025greptime/v1/ddl.proto\022\013greptime.v1\032\030gr" - "eptime/v1/common.proto\"\203\003\n\nDdlRequest\022:\n" + "eptime/v1/common.proto\"\221\003\n\nDdlRequest\022:\n" "\017create_database\030\001 \001(\0132\037.greptime.v1.Cre" "ateDatabaseExprH\000\0224\n\014create_table\030\002 \001(\0132" "\034.greptime.v1.CreateTableExprH\000\022\'\n\005alter" "\030\003 \001(\0132\026.greptime.v1.AlterExprH\000\0220\n\ndrop" "_table\030\004 \001(\0132\032.greptime.v1.DropTableExpr" "H\000\0228\n\016truncate_table\030\007 \001(\0132\036.greptime.v1" - ".TruncateTableExprH\000\0222\n\013create_task\030\010 \001(" - "\0132\033.greptime.v1.CreateTaskExprH\000\0222\n\013remo" - "ve_task\030\t \001(\0132\033.greptime.v1.RemoveTaskEx" - "prH\000B\006\n\004expr\"\271\002\n\016CreateTaskExpr\022\024\n\014catal" - "og_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\022\032\n\022outp" - "ut_schema_name\030\003 \001(\t\022\031\n\021output_table_nam" - "e\030\004 \001(\t\022\034\n\024create_if_not_exists\030\005 \001(\010\022\023\n" - "\013expire_when\030\006 \001(\t\022\017\n\007comment\030\007 \001(\t\022\013\n\003s" - "ql\030\010 \001(\t\022B\n\014task_options\030\t \003(\0132,.greptim" - "e.v1.CreateTaskExpr.TaskOptionsEntry\0322\n\020" - "TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - " \001(\t:\0028\001\"9\n\016RemoveTaskExpr\022\024\n\014catalog_na" + ".TruncateTableExprH\000\022;\n\020create_flow_task" + "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" + "\000\0227\n\016drop_flow_task\030\t \001(\0132\035.greptime.v1." + "DropFlowTaskExprH\000B\006\n\004expr\"\207\003\n\022CreateFlo" + "wTaskExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\ttask_" + "name\030\002 \001(\t\022>\n\022source_table_names\030\003 \003(\0132\"" + ".greptime.v1.SchemaScopedTableName\022;\n\017si" + "nk_table_name\030\004 \001(\0132\".greptime.v1.Schema" + "ScopedTableName\022\034\n\024create_if_not_exists\030" + "\005 \001(\010\022\023\n\013expire_when\030\006 \001(\t\022\017\n\007comment\030\007 " + "\001(\t\022\013\n\003sql\030\010 \001(\t\022F\n\014task_options\030\t \003(\01320" + ".greptime.v1.CreateFlowTaskExpr.TaskOpti" + "onsEntry\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(" + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\025SchemaScopedTabl" + "eName\022\023\n\013schema_name\030\001 \001(\t\022\022\n\ntable_name" + "\030\002 \001(\t\";\n\020DropFlowTaskExpr\022\024\n\014catalog_na" "me\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003\n\017CreateTa" "bleExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_" "name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\014\n\004desc\030\004" @@ -653,9 +681,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { - false, false, 2834, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 2994, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, "greptime/v1/ddl.proto", - &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 20, + &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 21, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, file_level_metadata_greptime_2fv1_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto, file_level_service_descriptors_greptime_2fv1_2fddl_2eproto, @@ -699,8 +727,8 @@ class DdlRequest::_Internal { static const ::greptime::v1::AlterExpr& alter(const DdlRequest* msg); static const ::greptime::v1::DropTableExpr& drop_table(const DdlRequest* msg); static const ::greptime::v1::TruncateTableExpr& truncate_table(const DdlRequest* msg); - static const ::greptime::v1::CreateTaskExpr& create_task(const DdlRequest* msg); - static const ::greptime::v1::RemoveTaskExpr& remove_task(const DdlRequest* msg); + static const ::greptime::v1::CreateFlowTaskExpr& create_flow_task(const DdlRequest* msg); + static const ::greptime::v1::DropFlowTaskExpr& drop_flow_task(const DdlRequest* msg); }; const ::greptime::v1::CreateDatabaseExpr& @@ -723,13 +751,13 @@ const ::greptime::v1::TruncateTableExpr& DdlRequest::_Internal::truncate_table(const DdlRequest* msg) { return *msg->_impl_.expr_.truncate_table_; } -const ::greptime::v1::CreateTaskExpr& -DdlRequest::_Internal::create_task(const DdlRequest* msg) { - return *msg->_impl_.expr_.create_task_; +const ::greptime::v1::CreateFlowTaskExpr& +DdlRequest::_Internal::create_flow_task(const DdlRequest* msg) { + return *msg->_impl_.expr_.create_flow_task_; } -const ::greptime::v1::RemoveTaskExpr& -DdlRequest::_Internal::remove_task(const DdlRequest* msg) { - return *msg->_impl_.expr_.remove_task_; +const ::greptime::v1::DropFlowTaskExpr& +DdlRequest::_Internal::drop_flow_task(const DdlRequest* msg) { + return *msg->_impl_.expr_.drop_flow_task_; } void DdlRequest::set_allocated_create_database(::greptime::v1::CreateDatabaseExpr* create_database) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); @@ -806,35 +834,35 @@ void DdlRequest::set_allocated_truncate_table(::greptime::v1::TruncateTableExpr* } // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.truncate_table) } -void DdlRequest::set_allocated_create_task(::greptime::v1::CreateTaskExpr* create_task) { +void DdlRequest::set_allocated_create_flow_task(::greptime::v1::CreateFlowTaskExpr* create_flow_task) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr(); - if (create_task) { + if (create_flow_task) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(create_task); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(create_flow_task); if (message_arena != submessage_arena) { - create_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, create_task, submessage_arena); + create_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, create_flow_task, submessage_arena); } - set_has_create_task(); - _impl_.expr_.create_task_ = create_task; + set_has_create_flow_task(); + _impl_.expr_.create_flow_task_ = create_flow_task; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.create_task) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.create_flow_task) } -void DdlRequest::set_allocated_remove_task(::greptime::v1::RemoveTaskExpr* remove_task) { +void DdlRequest::set_allocated_drop_flow_task(::greptime::v1::DropFlowTaskExpr* drop_flow_task) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr(); - if (remove_task) { + if (drop_flow_task) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(remove_task); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(drop_flow_task); if (message_arena != submessage_arena) { - remove_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, remove_task, submessage_arena); + drop_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, drop_flow_task, submessage_arena); } - set_has_remove_task(); - _impl_.expr_.remove_task_ = remove_task; + set_has_drop_flow_task(); + _impl_.expr_.drop_flow_task_ = drop_flow_task; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.remove_task) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.drop_flow_task) } DdlRequest::DdlRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) @@ -878,14 +906,14 @@ DdlRequest::DdlRequest(const DdlRequest& from) from._internal_truncate_table()); break; } - case kCreateTask: { - _this->_internal_mutable_create_task()->::greptime::v1::CreateTaskExpr::MergeFrom( - from._internal_create_task()); + case kCreateFlowTask: { + _this->_internal_mutable_create_flow_task()->::greptime::v1::CreateFlowTaskExpr::MergeFrom( + from._internal_create_flow_task()); break; } - case kRemoveTask: { - _this->_internal_mutable_remove_task()->::greptime::v1::RemoveTaskExpr::MergeFrom( - from._internal_remove_task()); + case kDropFlowTask: { + _this->_internal_mutable_drop_flow_task()->::greptime::v1::DropFlowTaskExpr::MergeFrom( + from._internal_drop_flow_task()); break; } case EXPR_NOT_SET: { @@ -960,15 +988,15 @@ void DdlRequest::clear_expr() { } break; } - case kCreateTask: { + case kCreateFlowTask: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.expr_.create_task_; + delete _impl_.expr_.create_flow_task_; } break; } - case kRemoveTask: { + case kDropFlowTask: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.expr_.remove_task_; + delete _impl_.expr_.drop_flow_task_; } break; } @@ -1036,18 +1064,18 @@ const char* DdlRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct } else goto handle_unusual; continue; - // .greptime.v1.CreateTaskExpr create_task = 8; + // .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_create_task(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_create_flow_task(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .greptime.v1.RemoveTaskExpr remove_task = 9; + // .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; case 9: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_remove_task(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_drop_flow_task(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -1116,18 +1144,18 @@ uint8_t* DdlRequest::_InternalSerialize( _Internal::truncate_table(this).GetCachedSize(), target, stream); } - // .greptime.v1.CreateTaskExpr create_task = 8; - if (_internal_has_create_task()) { + // .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; + if (_internal_has_create_flow_task()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, _Internal::create_task(this), - _Internal::create_task(this).GetCachedSize(), target, stream); + InternalWriteMessage(8, _Internal::create_flow_task(this), + _Internal::create_flow_task(this).GetCachedSize(), target, stream); } - // .greptime.v1.RemoveTaskExpr remove_task = 9; - if (_internal_has_remove_task()) { + // .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + if (_internal_has_drop_flow_task()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(9, _Internal::remove_task(this), - _Internal::remove_task(this).GetCachedSize(), target, stream); + InternalWriteMessage(9, _Internal::drop_flow_task(this), + _Internal::drop_flow_task(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1182,18 +1210,18 @@ size_t DdlRequest::ByteSizeLong() const { *_impl_.expr_.truncate_table_); break; } - // .greptime.v1.CreateTaskExpr create_task = 8; - case kCreateTask: { + // .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; + case kCreateFlowTask: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.expr_.create_task_); + *_impl_.expr_.create_flow_task_); break; } - // .greptime.v1.RemoveTaskExpr remove_task = 9; - case kRemoveTask: { + // .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + case kDropFlowTask: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.expr_.remove_task_); + *_impl_.expr_.drop_flow_task_); break; } case EXPR_NOT_SET: { @@ -1244,14 +1272,14 @@ void DdlRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PRO from._internal_truncate_table()); break; } - case kCreateTask: { - _this->_internal_mutable_create_task()->::greptime::v1::CreateTaskExpr::MergeFrom( - from._internal_create_task()); + case kCreateFlowTask: { + _this->_internal_mutable_create_flow_task()->::greptime::v1::CreateFlowTaskExpr::MergeFrom( + from._internal_create_flow_task()); break; } - case kRemoveTask: { - _this->_internal_mutable_remove_task()->::greptime::v1::RemoveTaskExpr::MergeFrom( - from._internal_remove_task()); + case kDropFlowTask: { + _this->_internal_mutable_drop_flow_task()->::greptime::v1::DropFlowTaskExpr::MergeFrom( + from._internal_drop_flow_task()); break; } case EXPR_NOT_SET: { @@ -1287,13 +1315,13 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DdlRequest::GetMetadata() const { // =================================================================== -CreateTaskExpr_TaskOptionsEntry_DoNotUse::CreateTaskExpr_TaskOptionsEntry_DoNotUse() {} -CreateTaskExpr_TaskOptionsEntry_DoNotUse::CreateTaskExpr_TaskOptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse() {} +CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -void CreateTaskExpr_TaskOptionsEntry_DoNotUse::MergeFrom(const CreateTaskExpr_TaskOptionsEntry_DoNotUse& other) { +void CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse::MergeFrom(const CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse& other) { MergeFromInternal(other); } -::PROTOBUF_NAMESPACE_ID::Metadata CreateTaskExpr_TaskOptionsEntry_DoNotUse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[1]); @@ -1301,31 +1329,36 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateTaskExpr_TaskOptionsEntry_DoNotUse::GetM // =================================================================== -class CreateTaskExpr::_Internal { +class CreateFlowTaskExpr::_Internal { public: + static const ::greptime::v1::SchemaScopedTableName& sink_table_name(const CreateFlowTaskExpr* msg); }; -CreateTaskExpr::CreateTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, +const ::greptime::v1::SchemaScopedTableName& +CreateFlowTaskExpr::_Internal::sink_table_name(const CreateFlowTaskExpr* msg) { + return *msg->_impl_.sink_table_name_; +} +CreateFlowTaskExpr::CreateFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &CreateTaskExpr::ArenaDtor); + arena->OwnCustomDestructor(this, &CreateFlowTaskExpr::ArenaDtor); } - // @@protoc_insertion_point(arena_constructor:greptime.v1.CreateTaskExpr) + // @@protoc_insertion_point(arena_constructor:greptime.v1.CreateFlowTaskExpr) } -CreateTaskExpr::CreateTaskExpr(const CreateTaskExpr& from) +CreateFlowTaskExpr::CreateFlowTaskExpr(const CreateFlowTaskExpr& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - CreateTaskExpr* const _this = this; (void)_this; + CreateFlowTaskExpr* const _this = this; (void)_this; new (&_impl_) Impl_{ - /*decltype(_impl_.task_options_)*/{} + decltype(_impl_.source_table_names_){from._impl_.source_table_names_} + , /*decltype(_impl_.task_options_)*/{} , decltype(_impl_.catalog_name_){} , decltype(_impl_.task_name_){} - , decltype(_impl_.output_schema_name_){} - , decltype(_impl_.output_table_name_){} , decltype(_impl_.expire_when_){} , decltype(_impl_.comment_){} , decltype(_impl_.sql_){} + , decltype(_impl_.sink_table_name_){nullptr} , decltype(_impl_.create_if_not_exists_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -1347,22 +1380,6 @@ CreateTaskExpr::CreateTaskExpr(const CreateTaskExpr& from) _this->_impl_.task_name_.Set(from._internal_task_name(), _this->GetArenaForAllocation()); } - _impl_.output_schema_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.output_schema_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_output_schema_name().empty()) { - _this->_impl_.output_schema_name_.Set(from._internal_output_schema_name(), - _this->GetArenaForAllocation()); - } - _impl_.output_table_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.output_table_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_output_table_name().empty()) { - _this->_impl_.output_table_name_.Set(from._internal_output_table_name(), - _this->GetArenaForAllocation()); - } _impl_.expire_when_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.expire_when_.Set("", GetArenaForAllocation()); @@ -1387,23 +1404,26 @@ CreateTaskExpr::CreateTaskExpr(const CreateTaskExpr& from) _this->_impl_.sql_.Set(from._internal_sql(), _this->GetArenaForAllocation()); } + if (from._internal_has_sink_table_name()) { + _this->_impl_.sink_table_name_ = new ::greptime::v1::SchemaScopedTableName(*from._impl_.sink_table_name_); + } _this->_impl_.create_if_not_exists_ = from._impl_.create_if_not_exists_; - // @@protoc_insertion_point(copy_constructor:greptime.v1.CreateTaskExpr) + // @@protoc_insertion_point(copy_constructor:greptime.v1.CreateFlowTaskExpr) } -inline void CreateTaskExpr::SharedCtor( +inline void CreateFlowTaskExpr::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - /*decltype(_impl_.task_options_)*/{::_pbi::ArenaInitialized(), arena} + decltype(_impl_.source_table_names_){arena} + , /*decltype(_impl_.task_options_)*/{::_pbi::ArenaInitialized(), arena} , decltype(_impl_.catalog_name_){} , decltype(_impl_.task_name_){} - , decltype(_impl_.output_schema_name_){} - , decltype(_impl_.output_table_name_){} , decltype(_impl_.expire_when_){} , decltype(_impl_.comment_){} , decltype(_impl_.sql_){} + , decltype(_impl_.sink_table_name_){nullptr} , decltype(_impl_.create_if_not_exists_){false} , /*decltype(_impl_._cached_size_)*/{} }; @@ -1415,14 +1435,6 @@ inline void CreateTaskExpr::SharedCtor( #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.task_name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.output_schema_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.output_schema_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.output_table_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.output_table_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.expire_when_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.expire_when_.Set("", GetArenaForAllocation()); @@ -1437,8 +1449,8 @@ inline void CreateTaskExpr::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -CreateTaskExpr::~CreateTaskExpr() { - // @@protoc_insertion_point(destructor:greptime.v1.CreateTaskExpr) +CreateFlowTaskExpr::~CreateFlowTaskExpr() { + // @@protoc_insertion_point(destructor:greptime.v1.CreateFlowTaskExpr) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; ArenaDtor(this); @@ -1447,46 +1459,49 @@ CreateTaskExpr::~CreateTaskExpr() { SharedDtor(); } -inline void CreateTaskExpr::SharedDtor() { +inline void CreateFlowTaskExpr::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.source_table_names_.~RepeatedPtrField(); _impl_.task_options_.Destruct(); _impl_.task_options_.~MapField(); _impl_.catalog_name_.Destroy(); _impl_.task_name_.Destroy(); - _impl_.output_schema_name_.Destroy(); - _impl_.output_table_name_.Destroy(); _impl_.expire_when_.Destroy(); _impl_.comment_.Destroy(); _impl_.sql_.Destroy(); + if (this != internal_default_instance()) delete _impl_.sink_table_name_; } -void CreateTaskExpr::ArenaDtor(void* object) { - CreateTaskExpr* _this = reinterpret_cast< CreateTaskExpr* >(object); +void CreateFlowTaskExpr::ArenaDtor(void* object) { + CreateFlowTaskExpr* _this = reinterpret_cast< CreateFlowTaskExpr* >(object); _this->_impl_.task_options_.Destruct(); } -void CreateTaskExpr::SetCachedSize(int size) const { +void CreateFlowTaskExpr::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void CreateTaskExpr::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.CreateTaskExpr) +void CreateFlowTaskExpr::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.CreateFlowTaskExpr) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.source_table_names_.Clear(); _impl_.task_options_.Clear(); _impl_.catalog_name_.ClearToEmpty(); _impl_.task_name_.ClearToEmpty(); - _impl_.output_schema_name_.ClearToEmpty(); - _impl_.output_table_name_.ClearToEmpty(); _impl_.expire_when_.ClearToEmpty(); _impl_.comment_.ClearToEmpty(); _impl_.sql_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.sink_table_name_ != nullptr) { + delete _impl_.sink_table_name_; + } + _impl_.sink_table_name_ = nullptr; _impl_.create_if_not_exists_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CreateTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* CreateFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1498,7 +1513,7 @@ const char* CreateTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext auto str = _internal_mutable_catalog_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateTaskExpr.catalog_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.catalog_name")); } else goto handle_unusual; continue; @@ -1508,27 +1523,28 @@ const char* CreateTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext auto str = _internal_mutable_task_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateTaskExpr.task_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.task_name")); } else goto handle_unusual; continue; - // string output_schema_name = 3; + // repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_output_schema_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateTaskExpr.output_schema_name")); + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_source_table_names(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); } else goto handle_unusual; continue; - // string output_table_name = 4; + // .greptime.v1.SchemaScopedTableName sink_table_name = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_output_table_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ctx->ParseMessage(_internal_mutable_sink_table_name(), ptr); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateTaskExpr.output_table_name")); } else goto handle_unusual; continue; @@ -1546,7 +1562,7 @@ const char* CreateTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext auto str = _internal_mutable_expire_when(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateTaskExpr.expire_when")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.expire_when")); } else goto handle_unusual; continue; @@ -1556,7 +1572,7 @@ const char* CreateTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext auto str = _internal_mutable_comment(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateTaskExpr.comment")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.comment")); } else goto handle_unusual; continue; @@ -1566,7 +1582,7 @@ const char* CreateTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext auto str = _internal_mutable_sql(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateTaskExpr.sql")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.sql")); } else goto handle_unusual; continue; @@ -1606,9 +1622,9 @@ const char* CreateTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* CreateTaskExpr::_InternalSerialize( +uint8_t* CreateFlowTaskExpr::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.CreateTaskExpr) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.CreateFlowTaskExpr) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1617,7 +1633,7 @@ uint8_t* CreateTaskExpr::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_catalog_name().data(), static_cast(this->_internal_catalog_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateTaskExpr.catalog_name"); + "greptime.v1.CreateFlowTaskExpr.catalog_name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_catalog_name(), target); } @@ -1627,29 +1643,24 @@ uint8_t* CreateTaskExpr::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_task_name().data(), static_cast(this->_internal_task_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateTaskExpr.task_name"); + "greptime.v1.CreateFlowTaskExpr.task_name"); target = stream->WriteStringMaybeAliased( 2, this->_internal_task_name(), target); } - // string output_schema_name = 3; - if (!this->_internal_output_schema_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_output_schema_name().data(), static_cast(this->_internal_output_schema_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateTaskExpr.output_schema_name"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_output_schema_name(), target); + // repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + for (unsigned i = 0, + n = static_cast(this->_internal_source_table_names_size()); i < n; i++) { + const auto& repfield = this->_internal_source_table_names(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } - // string output_table_name = 4; - if (!this->_internal_output_table_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_output_table_name().data(), static_cast(this->_internal_output_table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateTaskExpr.output_table_name"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_output_table_name(), target); + // .greptime.v1.SchemaScopedTableName sink_table_name = 4; + if (this->_internal_has_sink_table_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::sink_table_name(this), + _Internal::sink_table_name(this).GetCachedSize(), target, stream); } // bool create_if_not_exists = 5; @@ -1663,7 +1674,7 @@ uint8_t* CreateTaskExpr::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_expire_when().data(), static_cast(this->_internal_expire_when().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateTaskExpr.expire_when"); + "greptime.v1.CreateFlowTaskExpr.expire_when"); target = stream->WriteStringMaybeAliased( 6, this->_internal_expire_when(), target); } @@ -1673,7 +1684,7 @@ uint8_t* CreateTaskExpr::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_comment().data(), static_cast(this->_internal_comment().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateTaskExpr.comment"); + "greptime.v1.CreateFlowTaskExpr.comment"); target = stream->WriteStringMaybeAliased( 7, this->_internal_comment(), target); } @@ -1683,7 +1694,7 @@ uint8_t* CreateTaskExpr::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_sql().data(), static_cast(this->_internal_sql().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateTaskExpr.sql"); + "greptime.v1.CreateFlowTaskExpr.sql"); target = stream->WriteStringMaybeAliased( 8, this->_internal_sql(), target); } @@ -1691,18 +1702,18 @@ uint8_t* CreateTaskExpr::_InternalSerialize( // map task_options = 9; if (!this->_internal_task_options().empty()) { using MapType = ::_pb::Map; - using WireHelper = CreateTaskExpr_TaskOptionsEntry_DoNotUse::Funcs; + using WireHelper = CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse::Funcs; const auto& map_field = this->_internal_task_options(); auto check_utf8 = [](const MapType::value_type& entry) { (void)entry; ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( entry.first.data(), static_cast(entry.first.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateTaskExpr.TaskOptionsEntry.key"); + "greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry.key"); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( entry.second.data(), static_cast(entry.second.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateTaskExpr.TaskOptionsEntry.value"); + "greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry.value"); }; if (stream->IsSerializationDeterministic() && map_field.size() > 1) { @@ -1722,25 +1733,32 @@ uint8_t* CreateTaskExpr::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.CreateTaskExpr) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.CreateFlowTaskExpr) return target; } -size_t CreateTaskExpr::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.CreateTaskExpr) +size_t CreateFlowTaskExpr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.CreateFlowTaskExpr) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + total_size += 1UL * this->_internal_source_table_names_size(); + for (const auto& msg : this->_impl_.source_table_names_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + // map task_options = 9; total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_task_options_size()); for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator it = this->_internal_task_options().begin(); it != this->_internal_task_options().end(); ++it) { - total_size += CreateTaskExpr_TaskOptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } // string catalog_name = 1; @@ -1757,20 +1775,6 @@ size_t CreateTaskExpr::ByteSizeLong() const { this->_internal_task_name()); } - // string output_schema_name = 3; - if (!this->_internal_output_schema_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_output_schema_name()); - } - - // string output_table_name = 4; - if (!this->_internal_output_table_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_output_table_name()); - } - // string expire_when = 6; if (!this->_internal_expire_when().empty()) { total_size += 1 + @@ -1792,6 +1796,13 @@ size_t CreateTaskExpr::ByteSizeLong() const { this->_internal_sql()); } + // .greptime.v1.SchemaScopedTableName sink_table_name = 4; + if (this->_internal_has_sink_table_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.sink_table_name_); + } + // bool create_if_not_exists = 5; if (this->_internal_create_if_not_exists() != 0) { total_size += 1 + 1; @@ -1800,21 +1811,22 @@ size_t CreateTaskExpr::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateTaskExpr::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateFlowTaskExpr::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CreateTaskExpr::MergeImpl + CreateFlowTaskExpr::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateTaskExpr::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateFlowTaskExpr::GetClassData() const { return &_class_data_; } -void CreateTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.CreateTaskExpr) +void CreateFlowTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.CreateFlowTaskExpr) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_impl_.source_table_names_.MergeFrom(from._impl_.source_table_names_); _this->_impl_.task_options_.MergeFrom(from._impl_.task_options_); if (!from._internal_catalog_name().empty()) { _this->_internal_set_catalog_name(from._internal_catalog_name()); @@ -1822,12 +1834,6 @@ void CreateTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : if (!from._internal_task_name().empty()) { _this->_internal_set_task_name(from._internal_task_name()); } - if (!from._internal_output_schema_name().empty()) { - _this->_internal_set_output_schema_name(from._internal_output_schema_name()); - } - if (!from._internal_output_table_name().empty()) { - _this->_internal_set_output_table_name(from._internal_output_table_name()); - } if (!from._internal_expire_when().empty()) { _this->_internal_set_expire_when(from._internal_expire_when()); } @@ -1837,28 +1843,33 @@ void CreateTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : if (!from._internal_sql().empty()) { _this->_internal_set_sql(from._internal_sql()); } + if (from._internal_has_sink_table_name()) { + _this->_internal_mutable_sink_table_name()->::greptime::v1::SchemaScopedTableName::MergeFrom( + from._internal_sink_table_name()); + } if (from._internal_create_if_not_exists() != 0) { _this->_internal_set_create_if_not_exists(from._internal_create_if_not_exists()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void CreateTaskExpr::CopyFrom(const CreateTaskExpr& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.CreateTaskExpr) +void CreateFlowTaskExpr::CopyFrom(const CreateFlowTaskExpr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.CreateFlowTaskExpr) if (&from == this) return; Clear(); MergeFrom(from); } -bool CreateTaskExpr::IsInitialized() const { +bool CreateFlowTaskExpr::IsInitialized() const { return true; } -void CreateTaskExpr::InternalSwap(CreateTaskExpr* other) { +void CreateFlowTaskExpr::InternalSwap(CreateFlowTaskExpr* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.source_table_names_.InternalSwap(&other->_impl_.source_table_names_); _impl_.task_options_.InternalSwap(&other->_impl_.task_options_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.catalog_name_, lhs_arena, @@ -1868,14 +1879,6 @@ void CreateTaskExpr::InternalSwap(CreateTaskExpr* other) { &_impl_.task_name_, lhs_arena, &other->_impl_.task_name_, rhs_arena ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.output_schema_name_, lhs_arena, - &other->_impl_.output_schema_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.output_table_name_, lhs_arena, - &other->_impl_.output_table_name_, rhs_arena - ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.expire_when_, lhs_arena, &other->_impl_.expire_when_, rhs_arena @@ -1888,10 +1891,15 @@ void CreateTaskExpr::InternalSwap(CreateTaskExpr* other) { &_impl_.sql_, lhs_arena, &other->_impl_.sql_, rhs_arena ); - swap(_impl_.create_if_not_exists_, other->_impl_.create_if_not_exists_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CreateFlowTaskExpr, _impl_.create_if_not_exists_) + + sizeof(CreateFlowTaskExpr::_impl_.create_if_not_exists_) + - PROTOBUF_FIELD_OFFSET(CreateFlowTaskExpr, _impl_.sink_table_name_)>( + reinterpret_cast(&_impl_.sink_table_name_), + reinterpret_cast(&other->_impl_.sink_table_name_)); } -::PROTOBUF_NAMESPACE_ID::Metadata CreateTaskExpr::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateFlowTaskExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[2]); @@ -1899,19 +1907,272 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateTaskExpr::GetMetadata() const { // =================================================================== -class RemoveTaskExpr::_Internal { +class SchemaScopedTableName::_Internal { public: }; -RemoveTaskExpr::RemoveTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, +SchemaScopedTableName::SchemaScopedTableName(::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.RemoveTaskExpr) + // @@protoc_insertion_point(arena_constructor:greptime.v1.SchemaScopedTableName) } -RemoveTaskExpr::RemoveTaskExpr(const RemoveTaskExpr& from) +SchemaScopedTableName::SchemaScopedTableName(const SchemaScopedTableName& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - RemoveTaskExpr* const _this = this; (void)_this; + SchemaScopedTableName* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.schema_name_){} + , decltype(_impl_.table_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_schema_name().empty()) { + _this->_impl_.schema_name_.Set(from._internal_schema_name(), + _this->GetArenaForAllocation()); + } + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_table_name().empty()) { + _this->_impl_.table_name_.Set(from._internal_table_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.SchemaScopedTableName) +} + +inline void SchemaScopedTableName::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.schema_name_){} + , decltype(_impl_.table_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SchemaScopedTableName::~SchemaScopedTableName() { + // @@protoc_insertion_point(destructor:greptime.v1.SchemaScopedTableName) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SchemaScopedTableName::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.schema_name_.Destroy(); + _impl_.table_name_.Destroy(); +} + +void SchemaScopedTableName::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SchemaScopedTableName::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.SchemaScopedTableName) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.schema_name_.ClearToEmpty(); + _impl_.table_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SchemaScopedTableName::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string schema_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_schema_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.SchemaScopedTableName.schema_name")); + } else + goto handle_unusual; + continue; + // string table_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_table_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.SchemaScopedTableName.table_name")); + } 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* SchemaScopedTableName::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SchemaScopedTableName) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string schema_name = 1; + if (!this->_internal_schema_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_schema_name().data(), static_cast(this->_internal_schema_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.SchemaScopedTableName.schema_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_schema_name(), target); + } + + // string table_name = 2; + if (!this->_internal_table_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table_name().data(), static_cast(this->_internal_table_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.SchemaScopedTableName.table_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_table_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.SchemaScopedTableName) + return target; +} + +size_t SchemaScopedTableName::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.SchemaScopedTableName) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string schema_name = 1; + if (!this->_internal_schema_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_schema_name()); + } + + // string table_name = 2; + if (!this->_internal_table_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SchemaScopedTableName::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SchemaScopedTableName::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SchemaScopedTableName::GetClassData() const { return &_class_data_; } + + +void SchemaScopedTableName::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.SchemaScopedTableName) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_schema_name().empty()) { + _this->_internal_set_schema_name(from._internal_schema_name()); + } + if (!from._internal_table_name().empty()) { + _this->_internal_set_table_name(from._internal_table_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SchemaScopedTableName::CopyFrom(const SchemaScopedTableName& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.SchemaScopedTableName) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SchemaScopedTableName::IsInitialized() const { + return true; +} + +void SchemaScopedTableName::InternalSwap(SchemaScopedTableName* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.schema_name_, lhs_arena, + &other->_impl_.schema_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.table_name_, lhs_arena, + &other->_impl_.table_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SchemaScopedTableName::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, + file_level_metadata_greptime_2fv1_2fddl_2eproto[3]); +} + +// =================================================================== + +class DropFlowTaskExpr::_Internal { + public: +}; + +DropFlowTaskExpr::DropFlowTaskExpr(::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.DropFlowTaskExpr) +} +DropFlowTaskExpr::DropFlowTaskExpr(const DropFlowTaskExpr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DropFlowTaskExpr* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.catalog_name_){} , decltype(_impl_.task_name_){} @@ -1934,10 +2195,10 @@ RemoveTaskExpr::RemoveTaskExpr(const RemoveTaskExpr& from) _this->_impl_.task_name_.Set(from._internal_task_name(), _this->GetArenaForAllocation()); } - // @@protoc_insertion_point(copy_constructor:greptime.v1.RemoveTaskExpr) + // @@protoc_insertion_point(copy_constructor:greptime.v1.DropFlowTaskExpr) } -inline void RemoveTaskExpr::SharedCtor( +inline void DropFlowTaskExpr::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -1956,8 +2217,8 @@ inline void RemoveTaskExpr::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -RemoveTaskExpr::~RemoveTaskExpr() { - // @@protoc_insertion_point(destructor:greptime.v1.RemoveTaskExpr) +DropFlowTaskExpr::~DropFlowTaskExpr() { + // @@protoc_insertion_point(destructor:greptime.v1.DropFlowTaskExpr) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -1965,18 +2226,18 @@ RemoveTaskExpr::~RemoveTaskExpr() { SharedDtor(); } -inline void RemoveTaskExpr::SharedDtor() { +inline void DropFlowTaskExpr::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.catalog_name_.Destroy(); _impl_.task_name_.Destroy(); } -void RemoveTaskExpr::SetCachedSize(int size) const { +void DropFlowTaskExpr::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void RemoveTaskExpr::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.RemoveTaskExpr) +void DropFlowTaskExpr::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.DropFlowTaskExpr) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1986,7 +2247,7 @@ void RemoveTaskExpr::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RemoveTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* DropFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1998,7 +2259,7 @@ const char* RemoveTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext auto str = _internal_mutable_catalog_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.RemoveTaskExpr.catalog_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropFlowTaskExpr.catalog_name")); } else goto handle_unusual; continue; @@ -2008,7 +2269,7 @@ const char* RemoveTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext auto str = _internal_mutable_task_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.RemoveTaskExpr.task_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropFlowTaskExpr.task_name")); } else goto handle_unusual; continue; @@ -2035,9 +2296,9 @@ const char* RemoveTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* RemoveTaskExpr::_InternalSerialize( +uint8_t* DropFlowTaskExpr::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.RemoveTaskExpr) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DropFlowTaskExpr) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2046,7 +2307,7 @@ uint8_t* RemoveTaskExpr::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_catalog_name().data(), static_cast(this->_internal_catalog_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.RemoveTaskExpr.catalog_name"); + "greptime.v1.DropFlowTaskExpr.catalog_name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_catalog_name(), target); } @@ -2056,7 +2317,7 @@ uint8_t* RemoveTaskExpr::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_task_name().data(), static_cast(this->_internal_task_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.RemoveTaskExpr.task_name"); + "greptime.v1.DropFlowTaskExpr.task_name"); target = stream->WriteStringMaybeAliased( 2, this->_internal_task_name(), target); } @@ -2065,12 +2326,12 @@ uint8_t* RemoveTaskExpr::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.RemoveTaskExpr) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.DropFlowTaskExpr) return target; } -size_t RemoveTaskExpr::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.RemoveTaskExpr) +size_t DropFlowTaskExpr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DropFlowTaskExpr) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -2094,17 +2355,17 @@ size_t RemoveTaskExpr::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveTaskExpr::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropFlowTaskExpr::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - RemoveTaskExpr::MergeImpl + DropFlowTaskExpr::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveTaskExpr::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropFlowTaskExpr::GetClassData() const { return &_class_data_; } -void RemoveTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.RemoveTaskExpr) +void DropFlowTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.DropFlowTaskExpr) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2118,18 +2379,18 @@ void RemoveTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void RemoveTaskExpr::CopyFrom(const RemoveTaskExpr& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.RemoveTaskExpr) +void DropFlowTaskExpr::CopyFrom(const DropFlowTaskExpr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DropFlowTaskExpr) if (&from == this) return; Clear(); MergeFrom(from); } -bool RemoveTaskExpr::IsInitialized() const { +bool DropFlowTaskExpr::IsInitialized() const { return true; } -void RemoveTaskExpr::InternalSwap(RemoveTaskExpr* other) { +void DropFlowTaskExpr::InternalSwap(DropFlowTaskExpr* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -2144,10 +2405,10 @@ void RemoveTaskExpr::InternalSwap(RemoveTaskExpr* other) { ); } -::PROTOBUF_NAMESPACE_ID::Metadata RemoveTaskExpr::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DropFlowTaskExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[3]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[4]); } // =================================================================== @@ -2161,7 +2422,7 @@ void CreateTableExpr_TableOptionsEntry_DoNotUse::MergeFrom(const CreateTableExpr ::PROTOBUF_NAMESPACE_ID::Metadata CreateTableExpr_TableOptionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[4]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[5]); } // =================================================================== @@ -2828,7 +3089,7 @@ void CreateTableExpr::InternalSwap(CreateTableExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateTableExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[5]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[6]); } // =================================================================== @@ -3343,7 +3604,7 @@ void AlterExpr::InternalSwap(AlterExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AlterExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[6]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[7]); } // =================================================================== @@ -3719,7 +3980,7 @@ void DropTableExpr::InternalSwap(DropTableExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropTableExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[7]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[8]); } // =================================================================== @@ -3733,7 +3994,7 @@ void CreateDatabaseExpr_OptionsEntry_DoNotUse::MergeFrom(const CreateDatabaseExp ::PROTOBUF_NAMESPACE_ID::Metadata CreateDatabaseExpr_OptionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[8]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[9]); } // =================================================================== @@ -4081,7 +4342,7 @@ void CreateDatabaseExpr::InternalSwap(CreateDatabaseExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateDatabaseExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[9]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[10]); } // =================================================================== @@ -4426,7 +4687,7 @@ void TruncateTableExpr::InternalSwap(TruncateTableExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TruncateTableExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[10]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[11]); } // =================================================================== @@ -4706,7 +4967,7 @@ void DropDatabaseExpr::InternalSwap(DropDatabaseExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropDatabaseExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[11]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[12]); } // =================================================================== @@ -4891,7 +5152,7 @@ void AddColumns::InternalSwap(AddColumns* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumns::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[12]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[13]); } // =================================================================== @@ -5076,7 +5337,7 @@ void DropColumns::InternalSwap(DropColumns* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[13]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[14]); } // =================================================================== @@ -5279,7 +5540,7 @@ void RenameTable::InternalSwap(RenameTable* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[14]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[15]); } // =================================================================== @@ -5518,7 +5779,7 @@ void AddColumn::InternalSwap(AddColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[15]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[16]); } // =================================================================== @@ -5721,7 +5982,7 @@ void DropColumn::InternalSwap(DropColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[16]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); } // =================================================================== @@ -5899,7 +6160,7 @@ void TableId::InternalSwap(TableId* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); } // =================================================================== @@ -6334,7 +6595,7 @@ void ColumnDef::InternalSwap(ColumnDef* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[19]); } // =================================================================== @@ -6567,7 +6828,7 @@ void AddColumnLocation::InternalSwap(AddColumnLocation* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumnLocation::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[19]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[20]); } // @@protoc_insertion_point(namespace_scope) @@ -6578,17 +6839,21 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::DdlRequest* Arena::CreateMaybeMessage< ::greptime::v1::DdlRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::DdlRequest >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::CreateTaskExpr_TaskOptionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::greptime::v1::CreateTaskExpr_TaskOptionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::CreateTaskExpr_TaskOptionsEntry_DoNotUse >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::CreateFlowTaskExpr* +Arena::CreateMaybeMessage< ::greptime::v1::CreateFlowTaskExpr >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::CreateFlowTaskExpr >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::CreateTaskExpr* -Arena::CreateMaybeMessage< ::greptime::v1::CreateTaskExpr >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::CreateTaskExpr >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::SchemaScopedTableName* +Arena::CreateMaybeMessage< ::greptime::v1::SchemaScopedTableName >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::SchemaScopedTableName >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::RemoveTaskExpr* -Arena::CreateMaybeMessage< ::greptime::v1::RemoveTaskExpr >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::RemoveTaskExpr >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::DropFlowTaskExpr* +Arena::CreateMaybeMessage< ::greptime::v1::DropFlowTaskExpr >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::DropFlowTaskExpr >(arena); } template<> PROTOBUF_NOINLINE ::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse* Arena::CreateMaybeMessage< ::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse >(Arena* arena) { diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index 17e3ace0..5a9f21d6 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -72,18 +72,18 @@ extern CreateDatabaseExprDefaultTypeInternal _CreateDatabaseExpr_default_instanc class CreateDatabaseExpr_OptionsEntry_DoNotUse; struct CreateDatabaseExpr_OptionsEntry_DoNotUseDefaultTypeInternal; extern CreateDatabaseExpr_OptionsEntry_DoNotUseDefaultTypeInternal _CreateDatabaseExpr_OptionsEntry_DoNotUse_default_instance_; +class CreateFlowTaskExpr; +struct CreateFlowTaskExprDefaultTypeInternal; +extern CreateFlowTaskExprDefaultTypeInternal _CreateFlowTaskExpr_default_instance_; +class CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse; +struct CreateFlowTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal; +extern CreateFlowTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal _CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_; class CreateTableExpr; struct CreateTableExprDefaultTypeInternal; extern CreateTableExprDefaultTypeInternal _CreateTableExpr_default_instance_; class CreateTableExpr_TableOptionsEntry_DoNotUse; struct CreateTableExpr_TableOptionsEntry_DoNotUseDefaultTypeInternal; extern CreateTableExpr_TableOptionsEntry_DoNotUseDefaultTypeInternal _CreateTableExpr_TableOptionsEntry_DoNotUse_default_instance_; -class CreateTaskExpr; -struct CreateTaskExprDefaultTypeInternal; -extern CreateTaskExprDefaultTypeInternal _CreateTaskExpr_default_instance_; -class CreateTaskExpr_TaskOptionsEntry_DoNotUse; -struct CreateTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal; -extern CreateTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal _CreateTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_; class DdlRequest; struct DdlRequestDefaultTypeInternal; extern DdlRequestDefaultTypeInternal _DdlRequest_default_instance_; @@ -96,15 +96,18 @@ extern DropColumnsDefaultTypeInternal _DropColumns_default_instance_; class DropDatabaseExpr; struct DropDatabaseExprDefaultTypeInternal; extern DropDatabaseExprDefaultTypeInternal _DropDatabaseExpr_default_instance_; +class DropFlowTaskExpr; +struct DropFlowTaskExprDefaultTypeInternal; +extern DropFlowTaskExprDefaultTypeInternal _DropFlowTaskExpr_default_instance_; class DropTableExpr; struct DropTableExprDefaultTypeInternal; extern DropTableExprDefaultTypeInternal _DropTableExpr_default_instance_; -class RemoveTaskExpr; -struct RemoveTaskExprDefaultTypeInternal; -extern RemoveTaskExprDefaultTypeInternal _RemoveTaskExpr_default_instance_; class RenameTable; struct RenameTableDefaultTypeInternal; extern RenameTableDefaultTypeInternal _RenameTable_default_instance_; +class SchemaScopedTableName; +struct SchemaScopedTableNameDefaultTypeInternal; +extern SchemaScopedTableNameDefaultTypeInternal _SchemaScopedTableName_default_instance_; class TableId; struct TableIdDefaultTypeInternal; extern TableIdDefaultTypeInternal _TableId_default_instance_; @@ -121,17 +124,18 @@ template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1:: template<> ::greptime::v1::ColumnDef* Arena::CreateMaybeMessage<::greptime::v1::ColumnDef>(Arena*); template<> ::greptime::v1::CreateDatabaseExpr* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr>(Arena*); template<> ::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse>(Arena*); +template<> ::greptime::v1::CreateFlowTaskExpr* Arena::CreateMaybeMessage<::greptime::v1::CreateFlowTaskExpr>(Arena*); +template<> ::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse>(Arena*); template<> ::greptime::v1::CreateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::CreateTableExpr>(Arena*); template<> ::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse>(Arena*); -template<> ::greptime::v1::CreateTaskExpr* Arena::CreateMaybeMessage<::greptime::v1::CreateTaskExpr>(Arena*); -template<> ::greptime::v1::CreateTaskExpr_TaskOptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::CreateTaskExpr_TaskOptionsEntry_DoNotUse>(Arena*); template<> ::greptime::v1::DdlRequest* Arena::CreateMaybeMessage<::greptime::v1::DdlRequest>(Arena*); template<> ::greptime::v1::DropColumn* Arena::CreateMaybeMessage<::greptime::v1::DropColumn>(Arena*); template<> ::greptime::v1::DropColumns* Arena::CreateMaybeMessage<::greptime::v1::DropColumns>(Arena*); template<> ::greptime::v1::DropDatabaseExpr* Arena::CreateMaybeMessage<::greptime::v1::DropDatabaseExpr>(Arena*); +template<> ::greptime::v1::DropFlowTaskExpr* Arena::CreateMaybeMessage<::greptime::v1::DropFlowTaskExpr>(Arena*); template<> ::greptime::v1::DropTableExpr* Arena::CreateMaybeMessage<::greptime::v1::DropTableExpr>(Arena*); -template<> ::greptime::v1::RemoveTaskExpr* Arena::CreateMaybeMessage<::greptime::v1::RemoveTaskExpr>(Arena*); template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*); +template<> ::greptime::v1::SchemaScopedTableName* Arena::CreateMaybeMessage<::greptime::v1::SchemaScopedTableName>(Arena*); template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*); template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*); PROTOBUF_NAMESPACE_CLOSE @@ -214,8 +218,8 @@ class DdlRequest final : kAlter = 3, kDropTable = 4, kTruncateTable = 7, - kCreateTask = 8, - kRemoveTask = 9, + kCreateFlowTask = 8, + kDropFlowTask = 9, EXPR_NOT_SET = 0, }; @@ -302,8 +306,8 @@ class DdlRequest final : kAlterFieldNumber = 3, kDropTableFieldNumber = 4, kTruncateTableFieldNumber = 7, - kCreateTaskFieldNumber = 8, - kRemoveTaskFieldNumber = 9, + kCreateFlowTaskFieldNumber = 8, + kDropFlowTaskFieldNumber = 9, }; // .greptime.v1.CreateDatabaseExpr create_database = 1; bool has_create_database() const; @@ -395,41 +399,41 @@ class DdlRequest final : ::greptime::v1::TruncateTableExpr* truncate_table); ::greptime::v1::TruncateTableExpr* unsafe_arena_release_truncate_table(); - // .greptime.v1.CreateTaskExpr create_task = 8; - bool has_create_task() const; + // .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; + bool has_create_flow_task() const; private: - bool _internal_has_create_task() const; + bool _internal_has_create_flow_task() const; public: - void clear_create_task(); - const ::greptime::v1::CreateTaskExpr& create_task() const; - PROTOBUF_NODISCARD ::greptime::v1::CreateTaskExpr* release_create_task(); - ::greptime::v1::CreateTaskExpr* mutable_create_task(); - void set_allocated_create_task(::greptime::v1::CreateTaskExpr* create_task); - private: - const ::greptime::v1::CreateTaskExpr& _internal_create_task() const; - ::greptime::v1::CreateTaskExpr* _internal_mutable_create_task(); + void clear_create_flow_task(); + const ::greptime::v1::CreateFlowTaskExpr& create_flow_task() const; + PROTOBUF_NODISCARD ::greptime::v1::CreateFlowTaskExpr* release_create_flow_task(); + ::greptime::v1::CreateFlowTaskExpr* mutable_create_flow_task(); + void set_allocated_create_flow_task(::greptime::v1::CreateFlowTaskExpr* create_flow_task); + private: + const ::greptime::v1::CreateFlowTaskExpr& _internal_create_flow_task() const; + ::greptime::v1::CreateFlowTaskExpr* _internal_mutable_create_flow_task(); public: - void unsafe_arena_set_allocated_create_task( - ::greptime::v1::CreateTaskExpr* create_task); - ::greptime::v1::CreateTaskExpr* unsafe_arena_release_create_task(); + void unsafe_arena_set_allocated_create_flow_task( + ::greptime::v1::CreateFlowTaskExpr* create_flow_task); + ::greptime::v1::CreateFlowTaskExpr* unsafe_arena_release_create_flow_task(); - // .greptime.v1.RemoveTaskExpr remove_task = 9; - bool has_remove_task() const; + // .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + bool has_drop_flow_task() const; private: - bool _internal_has_remove_task() const; + bool _internal_has_drop_flow_task() const; public: - void clear_remove_task(); - const ::greptime::v1::RemoveTaskExpr& remove_task() const; - PROTOBUF_NODISCARD ::greptime::v1::RemoveTaskExpr* release_remove_task(); - ::greptime::v1::RemoveTaskExpr* mutable_remove_task(); - void set_allocated_remove_task(::greptime::v1::RemoveTaskExpr* remove_task); - private: - const ::greptime::v1::RemoveTaskExpr& _internal_remove_task() const; - ::greptime::v1::RemoveTaskExpr* _internal_mutable_remove_task(); + void clear_drop_flow_task(); + const ::greptime::v1::DropFlowTaskExpr& drop_flow_task() const; + PROTOBUF_NODISCARD ::greptime::v1::DropFlowTaskExpr* release_drop_flow_task(); + ::greptime::v1::DropFlowTaskExpr* mutable_drop_flow_task(); + void set_allocated_drop_flow_task(::greptime::v1::DropFlowTaskExpr* drop_flow_task); + private: + const ::greptime::v1::DropFlowTaskExpr& _internal_drop_flow_task() const; + ::greptime::v1::DropFlowTaskExpr* _internal_mutable_drop_flow_task(); public: - void unsafe_arena_set_allocated_remove_task( - ::greptime::v1::RemoveTaskExpr* remove_task); - ::greptime::v1::RemoveTaskExpr* unsafe_arena_release_remove_task(); + void unsafe_arena_set_allocated_drop_flow_task( + ::greptime::v1::DropFlowTaskExpr* drop_flow_task); + ::greptime::v1::DropFlowTaskExpr* unsafe_arena_release_drop_flow_task(); void clear_expr(); ExprCase expr_case() const; @@ -441,8 +445,8 @@ class DdlRequest final : void set_has_alter(); void set_has_drop_table(); void set_has_truncate_table(); - void set_has_create_task(); - void set_has_remove_task(); + void set_has_create_flow_task(); + void set_has_drop_flow_task(); inline bool has_expr() const; inline void clear_has_expr(); @@ -459,8 +463,8 @@ class DdlRequest final : ::greptime::v1::AlterExpr* alter_; ::greptime::v1::DropTableExpr* drop_table_; ::greptime::v1::TruncateTableExpr* truncate_table_; - ::greptime::v1::CreateTaskExpr* create_task_; - ::greptime::v1::RemoveTaskExpr* remove_task_; + ::greptime::v1::CreateFlowTaskExpr* create_flow_task_; + ::greptime::v1::DropFlowTaskExpr* drop_flow_task_; } expr_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -471,26 +475,26 @@ class DdlRequest final : }; // ------------------------------------------------------------------- -class CreateTaskExpr_TaskOptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - CreateTaskExpr_TaskOptionsEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR CreateTaskExpr_TaskOptionsEntry_DoNotUse( + CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit CreateTaskExpr_TaskOptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const CreateTaskExpr_TaskOptionsEntry_DoNotUse& other); - static const CreateTaskExpr_TaskOptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_CreateTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_); } + explicit CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse& other); + static const CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_); } static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.CreateTaskExpr.TaskOptionsEntry.key"); + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry.key"); } static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.CreateTaskExpr.TaskOptionsEntry.value"); + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry.value"); } using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -499,24 +503,24 @@ class CreateTaskExpr_TaskOptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID: // ------------------------------------------------------------------- -class CreateTaskExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.CreateTaskExpr) */ { +class CreateFlowTaskExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.CreateFlowTaskExpr) */ { public: - inline CreateTaskExpr() : CreateTaskExpr(nullptr) {} - ~CreateTaskExpr() override; - explicit PROTOBUF_CONSTEXPR CreateTaskExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline CreateFlowTaskExpr() : CreateFlowTaskExpr(nullptr) {} + ~CreateFlowTaskExpr() override; + explicit PROTOBUF_CONSTEXPR CreateFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - CreateTaskExpr(const CreateTaskExpr& from); - CreateTaskExpr(CreateTaskExpr&& from) noexcept - : CreateTaskExpr() { + CreateFlowTaskExpr(const CreateFlowTaskExpr& from); + CreateFlowTaskExpr(CreateFlowTaskExpr&& from) noexcept + : CreateFlowTaskExpr() { *this = ::std::move(from); } - inline CreateTaskExpr& operator=(const CreateTaskExpr& from) { + inline CreateFlowTaskExpr& operator=(const CreateFlowTaskExpr& from) { CopyFrom(from); return *this; } - inline CreateTaskExpr& operator=(CreateTaskExpr&& from) noexcept { + inline CreateFlowTaskExpr& operator=(CreateFlowTaskExpr&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -539,20 +543,20 @@ class CreateTaskExpr final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateTaskExpr& default_instance() { + static const CreateFlowTaskExpr& default_instance() { return *internal_default_instance(); } - static inline const CreateTaskExpr* internal_default_instance() { - return reinterpret_cast( - &_CreateTaskExpr_default_instance_); + static inline const CreateFlowTaskExpr* internal_default_instance() { + return reinterpret_cast( + &_CreateFlowTaskExpr_default_instance_); } static constexpr int kIndexInFileMessages = 2; - friend void swap(CreateTaskExpr& a, CreateTaskExpr& b) { + friend void swap(CreateFlowTaskExpr& a, CreateFlowTaskExpr& b) { a.Swap(&b); } - inline void Swap(CreateTaskExpr* other) { + inline void Swap(CreateFlowTaskExpr* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -565,7 +569,7 @@ class CreateTaskExpr final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateTaskExpr* other) { + void UnsafeArenaSwap(CreateFlowTaskExpr* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -573,14 +577,14 @@ class CreateTaskExpr final : // implements Message ---------------------------------------------- - CreateTaskExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CreateFlowTaskExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateTaskExpr& from); + void CopyFrom(const CreateFlowTaskExpr& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateTaskExpr& from) { - CreateTaskExpr::MergeImpl(*this, from); + void MergeFrom( const CreateFlowTaskExpr& from) { + CreateFlowTaskExpr::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -598,15 +602,15 @@ class CreateTaskExpr final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(CreateTaskExpr* other); + void InternalSwap(CreateFlowTaskExpr* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.CreateTaskExpr"; + return "greptime.v1.CreateFlowTaskExpr"; } protected: - explicit CreateTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit CreateFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); @@ -623,16 +627,34 @@ class CreateTaskExpr final : // accessors ------------------------------------------------------- enum : int { + kSourceTableNamesFieldNumber = 3, kTaskOptionsFieldNumber = 9, kCatalogNameFieldNumber = 1, kTaskNameFieldNumber = 2, - kOutputSchemaNameFieldNumber = 3, - kOutputTableNameFieldNumber = 4, kExpireWhenFieldNumber = 6, kCommentFieldNumber = 7, kSqlFieldNumber = 8, + kSinkTableNameFieldNumber = 4, kCreateIfNotExistsFieldNumber = 5, }; + // repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + int source_table_names_size() const; + private: + int _internal_source_table_names_size() const; + public: + void clear_source_table_names(); + ::greptime::v1::SchemaScopedTableName* mutable_source_table_names(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName >* + mutable_source_table_names(); + private: + const ::greptime::v1::SchemaScopedTableName& _internal_source_table_names(int index) const; + ::greptime::v1::SchemaScopedTableName* _internal_add_source_table_names(); + public: + const ::greptime::v1::SchemaScopedTableName& source_table_names(int index) const; + ::greptime::v1::SchemaScopedTableName* add_source_table_names(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName >& + source_table_names() const; + // map task_options = 9; int task_options_size() const; private: @@ -678,34 +700,6 @@ class CreateTaskExpr final : std::string* _internal_mutable_task_name(); public: - // string output_schema_name = 3; - void clear_output_schema_name(); - const std::string& output_schema_name() const; - template - void set_output_schema_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_output_schema_name(); - PROTOBUF_NODISCARD std::string* release_output_schema_name(); - void set_allocated_output_schema_name(std::string* output_schema_name); - private: - const std::string& _internal_output_schema_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_output_schema_name(const std::string& value); - std::string* _internal_mutable_output_schema_name(); - public: - - // string output_table_name = 4; - void clear_output_table_name(); - const std::string& output_table_name() const; - template - void set_output_table_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_output_table_name(); - PROTOBUF_NODISCARD std::string* release_output_table_name(); - void set_allocated_output_table_name(std::string* output_table_name); - private: - const std::string& _internal_output_table_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_output_table_name(const std::string& value); - std::string* _internal_mutable_output_table_name(); - public: - // string expire_when = 6; void clear_expire_when(); const std::string& expire_when() const; @@ -748,6 +742,24 @@ class CreateTaskExpr final : std::string* _internal_mutable_sql(); public: + // .greptime.v1.SchemaScopedTableName sink_table_name = 4; + bool has_sink_table_name() const; + private: + bool _internal_has_sink_table_name() const; + public: + void clear_sink_table_name(); + const ::greptime::v1::SchemaScopedTableName& sink_table_name() const; + PROTOBUF_NODISCARD ::greptime::v1::SchemaScopedTableName* release_sink_table_name(); + ::greptime::v1::SchemaScopedTableName* mutable_sink_table_name(); + void set_allocated_sink_table_name(::greptime::v1::SchemaScopedTableName* sink_table_name); + private: + const ::greptime::v1::SchemaScopedTableName& _internal_sink_table_name() const; + ::greptime::v1::SchemaScopedTableName* _internal_mutable_sink_table_name(); + public: + void unsafe_arena_set_allocated_sink_table_name( + ::greptime::v1::SchemaScopedTableName* sink_table_name); + ::greptime::v1::SchemaScopedTableName* unsafe_arena_release_sink_table_name(); + // bool create_if_not_exists = 5; void clear_create_if_not_exists(); bool create_if_not_exists() const; @@ -757,7 +769,7 @@ class CreateTaskExpr final : void _internal_set_create_if_not_exists(bool value); public: - // @@protoc_insertion_point(class_scope:greptime.v1.CreateTaskExpr) + // @@protoc_insertion_point(class_scope:greptime.v1.CreateFlowTaskExpr) private: class _Internal; @@ -765,18 +777,18 @@ class CreateTaskExpr final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName > source_table_names_; ::PROTOBUF_NAMESPACE_ID::internal::MapField< - CreateTaskExpr_TaskOptionsEntry_DoNotUse, + CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse, std::string, std::string, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> task_options_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr task_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr output_schema_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr output_table_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr expire_when_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_; + ::greptime::v1::SchemaScopedTableName* sink_table_name_; bool create_if_not_exists_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; @@ -785,24 +797,24 @@ class CreateTaskExpr final : }; // ------------------------------------------------------------------- -class RemoveTaskExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RemoveTaskExpr) */ { +class SchemaScopedTableName final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SchemaScopedTableName) */ { public: - inline RemoveTaskExpr() : RemoveTaskExpr(nullptr) {} - ~RemoveTaskExpr() override; - explicit PROTOBUF_CONSTEXPR RemoveTaskExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SchemaScopedTableName() : SchemaScopedTableName(nullptr) {} + ~SchemaScopedTableName() override; + explicit PROTOBUF_CONSTEXPR SchemaScopedTableName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - RemoveTaskExpr(const RemoveTaskExpr& from); - RemoveTaskExpr(RemoveTaskExpr&& from) noexcept - : RemoveTaskExpr() { + SchemaScopedTableName(const SchemaScopedTableName& from); + SchemaScopedTableName(SchemaScopedTableName&& from) noexcept + : SchemaScopedTableName() { *this = ::std::move(from); } - inline RemoveTaskExpr& operator=(const RemoveTaskExpr& from) { + inline SchemaScopedTableName& operator=(const SchemaScopedTableName& from) { CopyFrom(from); return *this; } - inline RemoveTaskExpr& operator=(RemoveTaskExpr&& from) noexcept { + inline SchemaScopedTableName& operator=(SchemaScopedTableName&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -825,20 +837,20 @@ class RemoveTaskExpr final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RemoveTaskExpr& default_instance() { + static const SchemaScopedTableName& default_instance() { return *internal_default_instance(); } - static inline const RemoveTaskExpr* internal_default_instance() { - return reinterpret_cast( - &_RemoveTaskExpr_default_instance_); + static inline const SchemaScopedTableName* internal_default_instance() { + return reinterpret_cast( + &_SchemaScopedTableName_default_instance_); } static constexpr int kIndexInFileMessages = 3; - friend void swap(RemoveTaskExpr& a, RemoveTaskExpr& b) { + friend void swap(SchemaScopedTableName& a, SchemaScopedTableName& b) { a.Swap(&b); } - inline void Swap(RemoveTaskExpr* other) { + inline void Swap(SchemaScopedTableName* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -851,7 +863,7 @@ class RemoveTaskExpr final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoveTaskExpr* other) { + void UnsafeArenaSwap(SchemaScopedTableName* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -859,14 +871,14 @@ class RemoveTaskExpr final : // implements Message ---------------------------------------------- - RemoveTaskExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SchemaScopedTableName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RemoveTaskExpr& from); + void CopyFrom(const SchemaScopedTableName& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RemoveTaskExpr& from) { - RemoveTaskExpr::MergeImpl(*this, from); + void MergeFrom( const SchemaScopedTableName& from) { + SchemaScopedTableName::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -884,15 +896,184 @@ class RemoveTaskExpr final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(RemoveTaskExpr* other); + void InternalSwap(SchemaScopedTableName* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.RemoveTaskExpr"; + return "greptime.v1.SchemaScopedTableName"; } protected: - explicit RemoveTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit SchemaScopedTableName(::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 { + kSchemaNameFieldNumber = 1, + kTableNameFieldNumber = 2, + }; + // string schema_name = 1; + void clear_schema_name(); + const std::string& schema_name() const; + template + void set_schema_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_schema_name(); + PROTOBUF_NODISCARD std::string* release_schema_name(); + void set_allocated_schema_name(std::string* schema_name); + private: + const std::string& _internal_schema_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema_name(const std::string& value); + std::string* _internal_mutable_schema_name(); + public: + + // string table_name = 2; + void clear_table_name(); + const std::string& table_name() const; + template + void set_table_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_table_name(); + PROTOBUF_NODISCARD std::string* release_table_name(); + void set_allocated_table_name(std::string* table_name); + private: + const std::string& _internal_table_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_name(const std::string& value); + std::string* _internal_mutable_table_name(); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.SchemaScopedTableName) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + +class DropFlowTaskExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropFlowTaskExpr) */ { + public: + inline DropFlowTaskExpr() : DropFlowTaskExpr(nullptr) {} + ~DropFlowTaskExpr() override; + explicit PROTOBUF_CONSTEXPR DropFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DropFlowTaskExpr(const DropFlowTaskExpr& from); + DropFlowTaskExpr(DropFlowTaskExpr&& from) noexcept + : DropFlowTaskExpr() { + *this = ::std::move(from); + } + + inline DropFlowTaskExpr& operator=(const DropFlowTaskExpr& from) { + CopyFrom(from); + return *this; + } + inline DropFlowTaskExpr& operator=(DropFlowTaskExpr&& 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 DropFlowTaskExpr& default_instance() { + return *internal_default_instance(); + } + static inline const DropFlowTaskExpr* internal_default_instance() { + return reinterpret_cast( + &_DropFlowTaskExpr_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(DropFlowTaskExpr& a, DropFlowTaskExpr& b) { + a.Swap(&b); + } + inline void Swap(DropFlowTaskExpr* 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(DropFlowTaskExpr* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DropFlowTaskExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DropFlowTaskExpr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DropFlowTaskExpr& from) { + DropFlowTaskExpr::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(DropFlowTaskExpr* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.DropFlowTaskExpr"; + } + protected: + explicit DropFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -937,7 +1118,7 @@ class RemoveTaskExpr final : std::string* _internal_mutable_task_name(); public: - // @@protoc_insertion_point(class_scope:greptime.v1.RemoveTaskExpr) + // @@protoc_insertion_point(class_scope:greptime.v1.DropFlowTaskExpr) private: class _Internal; @@ -1030,7 +1211,7 @@ class CreateTableExpr final : &_CreateTableExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 6; friend void swap(CreateTableExpr& a, CreateTableExpr& b) { a.Swap(&b); @@ -1373,7 +1554,7 @@ class AlterExpr final : &_AlterExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; friend void swap(AlterExpr& a, AlterExpr& b) { a.Swap(&b); @@ -1632,7 +1813,7 @@ class DropTableExpr final : &_DropTableExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(DropTableExpr& a, DropTableExpr& b) { a.Swap(&b); @@ -1876,7 +2057,7 @@ class CreateDatabaseExpr final : &_CreateDatabaseExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 10; friend void swap(CreateDatabaseExpr& a, CreateDatabaseExpr& b) { a.Swap(&b); @@ -2082,7 +2263,7 @@ class TruncateTableExpr final : &_TruncateTableExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(TruncateTableExpr& a, TruncateTableExpr& b) { a.Swap(&b); @@ -2287,7 +2468,7 @@ class DropDatabaseExpr final : &_DropDatabaseExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(DropDatabaseExpr& a, DropDatabaseExpr& b) { a.Swap(&b); @@ -2467,7 +2648,7 @@ class AddColumns final : &_AddColumns_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(AddColumns& a, AddColumns& b) { a.Swap(&b); @@ -2624,7 +2805,7 @@ class DropColumns final : &_DropColumns_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(DropColumns& a, DropColumns& b) { a.Swap(&b); @@ -2781,7 +2962,7 @@ class RenameTable final : &_RenameTable_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(RenameTable& a, RenameTable& b) { a.Swap(&b); @@ -2934,7 +3115,7 @@ class AddColumn final : &_AddColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(AddColumn& a, AddColumn& b) { a.Swap(&b); @@ -3111,7 +3292,7 @@ class DropColumn final : &_DropColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(DropColumn& a, DropColumn& b) { a.Swap(&b); @@ -3264,7 +3445,7 @@ class TableId final : &_TableId_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(TableId& a, TableId& b) { a.Swap(&b); @@ -3412,7 +3593,7 @@ class ColumnDef final : &_ColumnDef_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(ColumnDef& a, ColumnDef& b) { a.Swap(&b); @@ -3650,7 +3831,7 @@ class AddColumnLocation final : &_AddColumnLocation_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(AddColumnLocation& a, AddColumnLocation& b) { a.Swap(&b); @@ -4175,151 +4356,151 @@ inline ::greptime::v1::TruncateTableExpr* DdlRequest::mutable_truncate_table() { return _msg; } -// .greptime.v1.CreateTaskExpr create_task = 8; -inline bool DdlRequest::_internal_has_create_task() const { - return expr_case() == kCreateTask; +// .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; +inline bool DdlRequest::_internal_has_create_flow_task() const { + return expr_case() == kCreateFlowTask; } -inline bool DdlRequest::has_create_task() const { - return _internal_has_create_task(); +inline bool DdlRequest::has_create_flow_task() const { + return _internal_has_create_flow_task(); } -inline void DdlRequest::set_has_create_task() { - _impl_._oneof_case_[0] = kCreateTask; +inline void DdlRequest::set_has_create_flow_task() { + _impl_._oneof_case_[0] = kCreateFlowTask; } -inline void DdlRequest::clear_create_task() { - if (_internal_has_create_task()) { +inline void DdlRequest::clear_create_flow_task() { + if (_internal_has_create_flow_task()) { if (GetArenaForAllocation() == nullptr) { - delete _impl_.expr_.create_task_; + delete _impl_.expr_.create_flow_task_; } clear_has_expr(); } } -inline ::greptime::v1::CreateTaskExpr* DdlRequest::release_create_task() { - // @@protoc_insertion_point(field_release:greptime.v1.DdlRequest.create_task) - if (_internal_has_create_task()) { +inline ::greptime::v1::CreateFlowTaskExpr* DdlRequest::release_create_flow_task() { + // @@protoc_insertion_point(field_release:greptime.v1.DdlRequest.create_flow_task) + if (_internal_has_create_flow_task()) { clear_has_expr(); - ::greptime::v1::CreateTaskExpr* temp = _impl_.expr_.create_task_; + ::greptime::v1::CreateFlowTaskExpr* temp = _impl_.expr_.create_flow_task_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_.create_task_ = nullptr; + _impl_.expr_.create_flow_task_ = nullptr; return temp; } else { return nullptr; } } -inline const ::greptime::v1::CreateTaskExpr& DdlRequest::_internal_create_task() const { - return _internal_has_create_task() - ? *_impl_.expr_.create_task_ - : reinterpret_cast< ::greptime::v1::CreateTaskExpr&>(::greptime::v1::_CreateTaskExpr_default_instance_); +inline const ::greptime::v1::CreateFlowTaskExpr& DdlRequest::_internal_create_flow_task() const { + return _internal_has_create_flow_task() + ? *_impl_.expr_.create_flow_task_ + : reinterpret_cast< ::greptime::v1::CreateFlowTaskExpr&>(::greptime::v1::_CreateFlowTaskExpr_default_instance_); } -inline const ::greptime::v1::CreateTaskExpr& DdlRequest::create_task() const { - // @@protoc_insertion_point(field_get:greptime.v1.DdlRequest.create_task) - return _internal_create_task(); +inline const ::greptime::v1::CreateFlowTaskExpr& DdlRequest::create_flow_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.DdlRequest.create_flow_task) + return _internal_create_flow_task(); } -inline ::greptime::v1::CreateTaskExpr* DdlRequest::unsafe_arena_release_create_task() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.DdlRequest.create_task) - if (_internal_has_create_task()) { +inline ::greptime::v1::CreateFlowTaskExpr* DdlRequest::unsafe_arena_release_create_flow_task() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.DdlRequest.create_flow_task) + if (_internal_has_create_flow_task()) { clear_has_expr(); - ::greptime::v1::CreateTaskExpr* temp = _impl_.expr_.create_task_; - _impl_.expr_.create_task_ = nullptr; + ::greptime::v1::CreateFlowTaskExpr* temp = _impl_.expr_.create_flow_task_; + _impl_.expr_.create_flow_task_ = nullptr; return temp; } else { return nullptr; } } -inline void DdlRequest::unsafe_arena_set_allocated_create_task(::greptime::v1::CreateTaskExpr* create_task) { +inline void DdlRequest::unsafe_arena_set_allocated_create_flow_task(::greptime::v1::CreateFlowTaskExpr* create_flow_task) { clear_expr(); - if (create_task) { - set_has_create_task(); - _impl_.expr_.create_task_ = create_task; + if (create_flow_task) { + set_has_create_flow_task(); + _impl_.expr_.create_flow_task_ = create_flow_task; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.DdlRequest.create_task) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.DdlRequest.create_flow_task) } -inline ::greptime::v1::CreateTaskExpr* DdlRequest::_internal_mutable_create_task() { - if (!_internal_has_create_task()) { +inline ::greptime::v1::CreateFlowTaskExpr* DdlRequest::_internal_mutable_create_flow_task() { + if (!_internal_has_create_flow_task()) { clear_expr(); - set_has_create_task(); - _impl_.expr_.create_task_ = CreateMaybeMessage< ::greptime::v1::CreateTaskExpr >(GetArenaForAllocation()); + set_has_create_flow_task(); + _impl_.expr_.create_flow_task_ = CreateMaybeMessage< ::greptime::v1::CreateFlowTaskExpr >(GetArenaForAllocation()); } - return _impl_.expr_.create_task_; + return _impl_.expr_.create_flow_task_; } -inline ::greptime::v1::CreateTaskExpr* DdlRequest::mutable_create_task() { - ::greptime::v1::CreateTaskExpr* _msg = _internal_mutable_create_task(); - // @@protoc_insertion_point(field_mutable:greptime.v1.DdlRequest.create_task) +inline ::greptime::v1::CreateFlowTaskExpr* DdlRequest::mutable_create_flow_task() { + ::greptime::v1::CreateFlowTaskExpr* _msg = _internal_mutable_create_flow_task(); + // @@protoc_insertion_point(field_mutable:greptime.v1.DdlRequest.create_flow_task) return _msg; } -// .greptime.v1.RemoveTaskExpr remove_task = 9; -inline bool DdlRequest::_internal_has_remove_task() const { - return expr_case() == kRemoveTask; +// .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; +inline bool DdlRequest::_internal_has_drop_flow_task() const { + return expr_case() == kDropFlowTask; } -inline bool DdlRequest::has_remove_task() const { - return _internal_has_remove_task(); +inline bool DdlRequest::has_drop_flow_task() const { + return _internal_has_drop_flow_task(); } -inline void DdlRequest::set_has_remove_task() { - _impl_._oneof_case_[0] = kRemoveTask; +inline void DdlRequest::set_has_drop_flow_task() { + _impl_._oneof_case_[0] = kDropFlowTask; } -inline void DdlRequest::clear_remove_task() { - if (_internal_has_remove_task()) { +inline void DdlRequest::clear_drop_flow_task() { + if (_internal_has_drop_flow_task()) { if (GetArenaForAllocation() == nullptr) { - delete _impl_.expr_.remove_task_; + delete _impl_.expr_.drop_flow_task_; } clear_has_expr(); } } -inline ::greptime::v1::RemoveTaskExpr* DdlRequest::release_remove_task() { - // @@protoc_insertion_point(field_release:greptime.v1.DdlRequest.remove_task) - if (_internal_has_remove_task()) { +inline ::greptime::v1::DropFlowTaskExpr* DdlRequest::release_drop_flow_task() { + // @@protoc_insertion_point(field_release:greptime.v1.DdlRequest.drop_flow_task) + if (_internal_has_drop_flow_task()) { clear_has_expr(); - ::greptime::v1::RemoveTaskExpr* temp = _impl_.expr_.remove_task_; + ::greptime::v1::DropFlowTaskExpr* temp = _impl_.expr_.drop_flow_task_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_.remove_task_ = nullptr; + _impl_.expr_.drop_flow_task_ = nullptr; return temp; } else { return nullptr; } } -inline const ::greptime::v1::RemoveTaskExpr& DdlRequest::_internal_remove_task() const { - return _internal_has_remove_task() - ? *_impl_.expr_.remove_task_ - : reinterpret_cast< ::greptime::v1::RemoveTaskExpr&>(::greptime::v1::_RemoveTaskExpr_default_instance_); +inline const ::greptime::v1::DropFlowTaskExpr& DdlRequest::_internal_drop_flow_task() const { + return _internal_has_drop_flow_task() + ? *_impl_.expr_.drop_flow_task_ + : reinterpret_cast< ::greptime::v1::DropFlowTaskExpr&>(::greptime::v1::_DropFlowTaskExpr_default_instance_); } -inline const ::greptime::v1::RemoveTaskExpr& DdlRequest::remove_task() const { - // @@protoc_insertion_point(field_get:greptime.v1.DdlRequest.remove_task) - return _internal_remove_task(); +inline const ::greptime::v1::DropFlowTaskExpr& DdlRequest::drop_flow_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.DdlRequest.drop_flow_task) + return _internal_drop_flow_task(); } -inline ::greptime::v1::RemoveTaskExpr* DdlRequest::unsafe_arena_release_remove_task() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.DdlRequest.remove_task) - if (_internal_has_remove_task()) { +inline ::greptime::v1::DropFlowTaskExpr* DdlRequest::unsafe_arena_release_drop_flow_task() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.DdlRequest.drop_flow_task) + if (_internal_has_drop_flow_task()) { clear_has_expr(); - ::greptime::v1::RemoveTaskExpr* temp = _impl_.expr_.remove_task_; - _impl_.expr_.remove_task_ = nullptr; + ::greptime::v1::DropFlowTaskExpr* temp = _impl_.expr_.drop_flow_task_; + _impl_.expr_.drop_flow_task_ = nullptr; return temp; } else { return nullptr; } } -inline void DdlRequest::unsafe_arena_set_allocated_remove_task(::greptime::v1::RemoveTaskExpr* remove_task) { +inline void DdlRequest::unsafe_arena_set_allocated_drop_flow_task(::greptime::v1::DropFlowTaskExpr* drop_flow_task) { clear_expr(); - if (remove_task) { - set_has_remove_task(); - _impl_.expr_.remove_task_ = remove_task; + if (drop_flow_task) { + set_has_drop_flow_task(); + _impl_.expr_.drop_flow_task_ = drop_flow_task; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.DdlRequest.remove_task) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.DdlRequest.drop_flow_task) } -inline ::greptime::v1::RemoveTaskExpr* DdlRequest::_internal_mutable_remove_task() { - if (!_internal_has_remove_task()) { +inline ::greptime::v1::DropFlowTaskExpr* DdlRequest::_internal_mutable_drop_flow_task() { + if (!_internal_has_drop_flow_task()) { clear_expr(); - set_has_remove_task(); - _impl_.expr_.remove_task_ = CreateMaybeMessage< ::greptime::v1::RemoveTaskExpr >(GetArenaForAllocation()); + set_has_drop_flow_task(); + _impl_.expr_.drop_flow_task_ = CreateMaybeMessage< ::greptime::v1::DropFlowTaskExpr >(GetArenaForAllocation()); } - return _impl_.expr_.remove_task_; + return _impl_.expr_.drop_flow_task_; } -inline ::greptime::v1::RemoveTaskExpr* DdlRequest::mutable_remove_task() { - ::greptime::v1::RemoveTaskExpr* _msg = _internal_mutable_remove_task(); - // @@protoc_insertion_point(field_mutable:greptime.v1.DdlRequest.remove_task) +inline ::greptime::v1::DropFlowTaskExpr* DdlRequest::mutable_drop_flow_task() { + ::greptime::v1::DropFlowTaskExpr* _msg = _internal_mutable_drop_flow_task(); + // @@protoc_insertion_point(field_mutable:greptime.v1.DdlRequest.drop_flow_task) return _msg; } @@ -4336,44 +4517,44 @@ inline DdlRequest::ExprCase DdlRequest::expr_case() const { // ------------------------------------------------------------------- -// CreateTaskExpr +// CreateFlowTaskExpr // string catalog_name = 1; -inline void CreateTaskExpr::clear_catalog_name() { +inline void CreateFlowTaskExpr::clear_catalog_name() { _impl_.catalog_name_.ClearToEmpty(); } -inline const std::string& CreateTaskExpr::catalog_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateTaskExpr.catalog_name) +inline const std::string& CreateFlowTaskExpr::catalog_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.catalog_name) return _internal_catalog_name(); } template inline PROTOBUF_ALWAYS_INLINE -void CreateTaskExpr::set_catalog_name(ArgT0&& arg0, ArgT... args) { +void CreateFlowTaskExpr::set_catalog_name(ArgT0&& arg0, ArgT... args) { _impl_.catalog_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.CreateTaskExpr.catalog_name) + // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.catalog_name) } -inline std::string* CreateTaskExpr::mutable_catalog_name() { +inline std::string* CreateFlowTaskExpr::mutable_catalog_name() { std::string* _s = _internal_mutable_catalog_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateTaskExpr.catalog_name) + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.catalog_name) return _s; } -inline const std::string& CreateTaskExpr::_internal_catalog_name() const { +inline const std::string& CreateFlowTaskExpr::_internal_catalog_name() const { return _impl_.catalog_name_.Get(); } -inline void CreateTaskExpr::_internal_set_catalog_name(const std::string& value) { +inline void CreateFlowTaskExpr::_internal_set_catalog_name(const std::string& value) { _impl_.catalog_name_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::_internal_mutable_catalog_name() { +inline std::string* CreateFlowTaskExpr::_internal_mutable_catalog_name() { return _impl_.catalog_name_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::release_catalog_name() { - // @@protoc_insertion_point(field_release:greptime.v1.CreateTaskExpr.catalog_name) +inline std::string* CreateFlowTaskExpr::release_catalog_name() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.catalog_name) return _impl_.catalog_name_.Release(); } -inline void CreateTaskExpr::set_allocated_catalog_name(std::string* catalog_name) { +inline void CreateFlowTaskExpr::set_allocated_catalog_name(std::string* catalog_name) { if (catalog_name != nullptr) { } else { @@ -4385,45 +4566,45 @@ inline void CreateTaskExpr::set_allocated_catalog_name(std::string* catalog_name _impl_.catalog_name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateTaskExpr.catalog_name) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.catalog_name) } // string task_name = 2; -inline void CreateTaskExpr::clear_task_name() { +inline void CreateFlowTaskExpr::clear_task_name() { _impl_.task_name_.ClearToEmpty(); } -inline const std::string& CreateTaskExpr::task_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateTaskExpr.task_name) +inline const std::string& CreateFlowTaskExpr::task_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.task_name) return _internal_task_name(); } template inline PROTOBUF_ALWAYS_INLINE -void CreateTaskExpr::set_task_name(ArgT0&& arg0, ArgT... args) { +void CreateFlowTaskExpr::set_task_name(ArgT0&& arg0, ArgT... args) { _impl_.task_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.CreateTaskExpr.task_name) + // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.task_name) } -inline std::string* CreateTaskExpr::mutable_task_name() { +inline std::string* CreateFlowTaskExpr::mutable_task_name() { std::string* _s = _internal_mutable_task_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateTaskExpr.task_name) + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.task_name) return _s; } -inline const std::string& CreateTaskExpr::_internal_task_name() const { +inline const std::string& CreateFlowTaskExpr::_internal_task_name() const { return _impl_.task_name_.Get(); } -inline void CreateTaskExpr::_internal_set_task_name(const std::string& value) { +inline void CreateFlowTaskExpr::_internal_set_task_name(const std::string& value) { _impl_.task_name_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::_internal_mutable_task_name() { +inline std::string* CreateFlowTaskExpr::_internal_mutable_task_name() { return _impl_.task_name_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::release_task_name() { - // @@protoc_insertion_point(field_release:greptime.v1.CreateTaskExpr.task_name) +inline std::string* CreateFlowTaskExpr::release_task_name() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.task_name) return _impl_.task_name_.Release(); } -inline void CreateTaskExpr::set_allocated_task_name(std::string* task_name) { +inline void CreateFlowTaskExpr::set_allocated_task_name(std::string* task_name) { if (task_name != nullptr) { } else { @@ -4435,165 +4616,195 @@ inline void CreateTaskExpr::set_allocated_task_name(std::string* task_name) { _impl_.task_name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateTaskExpr.task_name) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.task_name) } -// string output_schema_name = 3; -inline void CreateTaskExpr::clear_output_schema_name() { - _impl_.output_schema_name_.ClearToEmpty(); +// repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; +inline int CreateFlowTaskExpr::_internal_source_table_names_size() const { + return _impl_.source_table_names_.size(); } -inline const std::string& CreateTaskExpr::output_schema_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateTaskExpr.output_schema_name) - return _internal_output_schema_name(); +inline int CreateFlowTaskExpr::source_table_names_size() const { + return _internal_source_table_names_size(); } -template -inline PROTOBUF_ALWAYS_INLINE -void CreateTaskExpr::set_output_schema_name(ArgT0&& arg0, ArgT... args) { - - _impl_.output_schema_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.CreateTaskExpr.output_schema_name) +inline void CreateFlowTaskExpr::clear_source_table_names() { + _impl_.source_table_names_.Clear(); } -inline std::string* CreateTaskExpr::mutable_output_schema_name() { - std::string* _s = _internal_mutable_output_schema_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateTaskExpr.output_schema_name) - return _s; +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::mutable_source_table_names(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.source_table_names) + return _impl_.source_table_names_.Mutable(index); } -inline const std::string& CreateTaskExpr::_internal_output_schema_name() const { - return _impl_.output_schema_name_.Get(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName >* +CreateFlowTaskExpr::mutable_source_table_names() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.CreateFlowTaskExpr.source_table_names) + return &_impl_.source_table_names_; } -inline void CreateTaskExpr::_internal_set_output_schema_name(const std::string& value) { - - _impl_.output_schema_name_.Set(value, GetArenaForAllocation()); +inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::_internal_source_table_names(int index) const { + return _impl_.source_table_names_.Get(index); } -inline std::string* CreateTaskExpr::_internal_mutable_output_schema_name() { - - return _impl_.output_schema_name_.Mutable(GetArenaForAllocation()); +inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::source_table_names(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.source_table_names) + return _internal_source_table_names(index); } -inline std::string* CreateTaskExpr::release_output_schema_name() { - // @@protoc_insertion_point(field_release:greptime.v1.CreateTaskExpr.output_schema_name) - return _impl_.output_schema_name_.Release(); +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::_internal_add_source_table_names() { + return _impl_.source_table_names_.Add(); } -inline void CreateTaskExpr::set_allocated_output_schema_name(std::string* output_schema_name) { - if (output_schema_name != nullptr) { - - } else { - - } - _impl_.output_schema_name_.SetAllocated(output_schema_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.output_schema_name_.IsDefault()) { - _impl_.output_schema_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateTaskExpr.output_schema_name) +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::add_source_table_names() { + ::greptime::v1::SchemaScopedTableName* _add = _internal_add_source_table_names(); + // @@protoc_insertion_point(field_add:greptime.v1.CreateFlowTaskExpr.source_table_names) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName >& +CreateFlowTaskExpr::source_table_names() const { + // @@protoc_insertion_point(field_list:greptime.v1.CreateFlowTaskExpr.source_table_names) + return _impl_.source_table_names_; } -// string output_table_name = 4; -inline void CreateTaskExpr::clear_output_table_name() { - _impl_.output_table_name_.ClearToEmpty(); +// .greptime.v1.SchemaScopedTableName sink_table_name = 4; +inline bool CreateFlowTaskExpr::_internal_has_sink_table_name() const { + return this != internal_default_instance() && _impl_.sink_table_name_ != nullptr; } -inline const std::string& CreateTaskExpr::output_table_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateTaskExpr.output_table_name) - return _internal_output_table_name(); +inline bool CreateFlowTaskExpr::has_sink_table_name() const { + return _internal_has_sink_table_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void CreateTaskExpr::set_output_table_name(ArgT0&& arg0, ArgT... args) { - - _impl_.output_table_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.CreateTaskExpr.output_table_name) +inline void CreateFlowTaskExpr::clear_sink_table_name() { + if (GetArenaForAllocation() == nullptr && _impl_.sink_table_name_ != nullptr) { + delete _impl_.sink_table_name_; + } + _impl_.sink_table_name_ = nullptr; } -inline std::string* CreateTaskExpr::mutable_output_table_name() { - std::string* _s = _internal_mutable_output_table_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateTaskExpr.output_table_name) - return _s; +inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::_internal_sink_table_name() const { + const ::greptime::v1::SchemaScopedTableName* p = _impl_.sink_table_name_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_SchemaScopedTableName_default_instance_); } -inline const std::string& CreateTaskExpr::_internal_output_table_name() const { - return _impl_.output_table_name_.Get(); +inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::sink_table_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.sink_table_name) + return _internal_sink_table_name(); +} +inline void CreateFlowTaskExpr::unsafe_arena_set_allocated_sink_table_name( + ::greptime::v1::SchemaScopedTableName* sink_table_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sink_table_name_); + } + _impl_.sink_table_name_ = sink_table_name; + if (sink_table_name) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.CreateFlowTaskExpr.sink_table_name) +} +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::release_sink_table_name() { + + ::greptime::v1::SchemaScopedTableName* temp = _impl_.sink_table_name_; + _impl_.sink_table_name_ = 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 void CreateTaskExpr::_internal_set_output_table_name(const std::string& value) { +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::unsafe_arena_release_sink_table_name() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.sink_table_name) - _impl_.output_table_name_.Set(value, GetArenaForAllocation()); + ::greptime::v1::SchemaScopedTableName* temp = _impl_.sink_table_name_; + _impl_.sink_table_name_ = nullptr; + return temp; } -inline std::string* CreateTaskExpr::_internal_mutable_output_table_name() { +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::_internal_mutable_sink_table_name() { - return _impl_.output_table_name_.Mutable(GetArenaForAllocation()); + if (_impl_.sink_table_name_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::SchemaScopedTableName>(GetArenaForAllocation()); + _impl_.sink_table_name_ = p; + } + return _impl_.sink_table_name_; } -inline std::string* CreateTaskExpr::release_output_table_name() { - // @@protoc_insertion_point(field_release:greptime.v1.CreateTaskExpr.output_table_name) - return _impl_.output_table_name_.Release(); +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::mutable_sink_table_name() { + ::greptime::v1::SchemaScopedTableName* _msg = _internal_mutable_sink_table_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.sink_table_name) + return _msg; } -inline void CreateTaskExpr::set_allocated_output_table_name(std::string* output_table_name) { - if (output_table_name != nullptr) { +inline void CreateFlowTaskExpr::set_allocated_sink_table_name(::greptime::v1::SchemaScopedTableName* sink_table_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.sink_table_name_; + } + if (sink_table_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sink_table_name); + if (message_arena != submessage_arena) { + sink_table_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sink_table_name, submessage_arena); + } } else { } - _impl_.output_table_name_.SetAllocated(output_table_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.output_table_name_.IsDefault()) { - _impl_.output_table_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateTaskExpr.output_table_name) + _impl_.sink_table_name_ = sink_table_name; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.sink_table_name) } // bool create_if_not_exists = 5; -inline void CreateTaskExpr::clear_create_if_not_exists() { +inline void CreateFlowTaskExpr::clear_create_if_not_exists() { _impl_.create_if_not_exists_ = false; } -inline bool CreateTaskExpr::_internal_create_if_not_exists() const { +inline bool CreateFlowTaskExpr::_internal_create_if_not_exists() const { return _impl_.create_if_not_exists_; } -inline bool CreateTaskExpr::create_if_not_exists() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateTaskExpr.create_if_not_exists) +inline bool CreateFlowTaskExpr::create_if_not_exists() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.create_if_not_exists) return _internal_create_if_not_exists(); } -inline void CreateTaskExpr::_internal_set_create_if_not_exists(bool value) { +inline void CreateFlowTaskExpr::_internal_set_create_if_not_exists(bool value) { _impl_.create_if_not_exists_ = value; } -inline void CreateTaskExpr::set_create_if_not_exists(bool value) { +inline void CreateFlowTaskExpr::set_create_if_not_exists(bool value) { _internal_set_create_if_not_exists(value); - // @@protoc_insertion_point(field_set:greptime.v1.CreateTaskExpr.create_if_not_exists) + // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.create_if_not_exists) } // string expire_when = 6; -inline void CreateTaskExpr::clear_expire_when() { +inline void CreateFlowTaskExpr::clear_expire_when() { _impl_.expire_when_.ClearToEmpty(); } -inline const std::string& CreateTaskExpr::expire_when() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateTaskExpr.expire_when) +inline const std::string& CreateFlowTaskExpr::expire_when() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.expire_when) return _internal_expire_when(); } template inline PROTOBUF_ALWAYS_INLINE -void CreateTaskExpr::set_expire_when(ArgT0&& arg0, ArgT... args) { +void CreateFlowTaskExpr::set_expire_when(ArgT0&& arg0, ArgT... args) { _impl_.expire_when_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.CreateTaskExpr.expire_when) + // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.expire_when) } -inline std::string* CreateTaskExpr::mutable_expire_when() { +inline std::string* CreateFlowTaskExpr::mutable_expire_when() { std::string* _s = _internal_mutable_expire_when(); - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateTaskExpr.expire_when) + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.expire_when) return _s; } -inline const std::string& CreateTaskExpr::_internal_expire_when() const { +inline const std::string& CreateFlowTaskExpr::_internal_expire_when() const { return _impl_.expire_when_.Get(); } -inline void CreateTaskExpr::_internal_set_expire_when(const std::string& value) { +inline void CreateFlowTaskExpr::_internal_set_expire_when(const std::string& value) { _impl_.expire_when_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::_internal_mutable_expire_when() { +inline std::string* CreateFlowTaskExpr::_internal_mutable_expire_when() { return _impl_.expire_when_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::release_expire_when() { - // @@protoc_insertion_point(field_release:greptime.v1.CreateTaskExpr.expire_when) +inline std::string* CreateFlowTaskExpr::release_expire_when() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.expire_when) return _impl_.expire_when_.Release(); } -inline void CreateTaskExpr::set_allocated_expire_when(std::string* expire_when) { +inline void CreateFlowTaskExpr::set_allocated_expire_when(std::string* expire_when) { if (expire_when != nullptr) { } else { @@ -4605,45 +4816,45 @@ inline void CreateTaskExpr::set_allocated_expire_when(std::string* expire_when) _impl_.expire_when_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateTaskExpr.expire_when) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.expire_when) } // string comment = 7; -inline void CreateTaskExpr::clear_comment() { +inline void CreateFlowTaskExpr::clear_comment() { _impl_.comment_.ClearToEmpty(); } -inline const std::string& CreateTaskExpr::comment() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateTaskExpr.comment) +inline const std::string& CreateFlowTaskExpr::comment() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.comment) return _internal_comment(); } template inline PROTOBUF_ALWAYS_INLINE -void CreateTaskExpr::set_comment(ArgT0&& arg0, ArgT... args) { +void CreateFlowTaskExpr::set_comment(ArgT0&& arg0, ArgT... args) { _impl_.comment_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.CreateTaskExpr.comment) + // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.comment) } -inline std::string* CreateTaskExpr::mutable_comment() { +inline std::string* CreateFlowTaskExpr::mutable_comment() { std::string* _s = _internal_mutable_comment(); - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateTaskExpr.comment) + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.comment) return _s; } -inline const std::string& CreateTaskExpr::_internal_comment() const { +inline const std::string& CreateFlowTaskExpr::_internal_comment() const { return _impl_.comment_.Get(); } -inline void CreateTaskExpr::_internal_set_comment(const std::string& value) { +inline void CreateFlowTaskExpr::_internal_set_comment(const std::string& value) { _impl_.comment_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::_internal_mutable_comment() { +inline std::string* CreateFlowTaskExpr::_internal_mutable_comment() { return _impl_.comment_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::release_comment() { - // @@protoc_insertion_point(field_release:greptime.v1.CreateTaskExpr.comment) +inline std::string* CreateFlowTaskExpr::release_comment() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.comment) return _impl_.comment_.Release(); } -inline void CreateTaskExpr::set_allocated_comment(std::string* comment) { +inline void CreateFlowTaskExpr::set_allocated_comment(std::string* comment) { if (comment != nullptr) { } else { @@ -4655,45 +4866,45 @@ inline void CreateTaskExpr::set_allocated_comment(std::string* comment) { _impl_.comment_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateTaskExpr.comment) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.comment) } // string sql = 8; -inline void CreateTaskExpr::clear_sql() { +inline void CreateFlowTaskExpr::clear_sql() { _impl_.sql_.ClearToEmpty(); } -inline const std::string& CreateTaskExpr::sql() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateTaskExpr.sql) +inline const std::string& CreateFlowTaskExpr::sql() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.sql) return _internal_sql(); } template inline PROTOBUF_ALWAYS_INLINE -void CreateTaskExpr::set_sql(ArgT0&& arg0, ArgT... args) { +void CreateFlowTaskExpr::set_sql(ArgT0&& arg0, ArgT... args) { _impl_.sql_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.CreateTaskExpr.sql) + // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.sql) } -inline std::string* CreateTaskExpr::mutable_sql() { +inline std::string* CreateFlowTaskExpr::mutable_sql() { std::string* _s = _internal_mutable_sql(); - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateTaskExpr.sql) + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.sql) return _s; } -inline const std::string& CreateTaskExpr::_internal_sql() const { +inline const std::string& CreateFlowTaskExpr::_internal_sql() const { return _impl_.sql_.Get(); } -inline void CreateTaskExpr::_internal_set_sql(const std::string& value) { +inline void CreateFlowTaskExpr::_internal_set_sql(const std::string& value) { _impl_.sql_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::_internal_mutable_sql() { +inline std::string* CreateFlowTaskExpr::_internal_mutable_sql() { return _impl_.sql_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::release_sql() { - // @@protoc_insertion_point(field_release:greptime.v1.CreateTaskExpr.sql) +inline std::string* CreateFlowTaskExpr::release_sql() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.sql) return _impl_.sql_.Release(); } -inline void CreateTaskExpr::set_allocated_sql(std::string* sql) { +inline void CreateFlowTaskExpr::set_allocated_sql(std::string* sql) { if (sql != nullptr) { } else { @@ -4705,78 +4916,182 @@ inline void CreateTaskExpr::set_allocated_sql(std::string* sql) { _impl_.sql_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateTaskExpr.sql) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.sql) } // map task_options = 9; -inline int CreateTaskExpr::_internal_task_options_size() const { +inline int CreateFlowTaskExpr::_internal_task_options_size() const { return _impl_.task_options_.size(); } -inline int CreateTaskExpr::task_options_size() const { +inline int CreateFlowTaskExpr::task_options_size() const { return _internal_task_options_size(); } -inline void CreateTaskExpr::clear_task_options() { +inline void CreateFlowTaskExpr::clear_task_options() { _impl_.task_options_.Clear(); } inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -CreateTaskExpr::_internal_task_options() const { +CreateFlowTaskExpr::_internal_task_options() const { return _impl_.task_options_.GetMap(); } inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -CreateTaskExpr::task_options() const { - // @@protoc_insertion_point(field_map:greptime.v1.CreateTaskExpr.task_options) +CreateFlowTaskExpr::task_options() const { + // @@protoc_insertion_point(field_map:greptime.v1.CreateFlowTaskExpr.task_options) return _internal_task_options(); } inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -CreateTaskExpr::_internal_mutable_task_options() { +CreateFlowTaskExpr::_internal_mutable_task_options() { return _impl_.task_options_.MutableMap(); } inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -CreateTaskExpr::mutable_task_options() { - // @@protoc_insertion_point(field_mutable_map:greptime.v1.CreateTaskExpr.task_options) +CreateFlowTaskExpr::mutable_task_options() { + // @@protoc_insertion_point(field_mutable_map:greptime.v1.CreateFlowTaskExpr.task_options) return _internal_mutable_task_options(); } // ------------------------------------------------------------------- -// RemoveTaskExpr +// SchemaScopedTableName + +// string schema_name = 1; +inline void SchemaScopedTableName::clear_schema_name() { + _impl_.schema_name_.ClearToEmpty(); +} +inline const std::string& SchemaScopedTableName::schema_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.SchemaScopedTableName.schema_name) + return _internal_schema_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SchemaScopedTableName::set_schema_name(ArgT0&& arg0, ArgT... args) { + + _impl_.schema_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.SchemaScopedTableName.schema_name) +} +inline std::string* SchemaScopedTableName::mutable_schema_name() { + std::string* _s = _internal_mutable_schema_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.SchemaScopedTableName.schema_name) + return _s; +} +inline const std::string& SchemaScopedTableName::_internal_schema_name() const { + return _impl_.schema_name_.Get(); +} +inline void SchemaScopedTableName::_internal_set_schema_name(const std::string& value) { + + _impl_.schema_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SchemaScopedTableName::_internal_mutable_schema_name() { + + return _impl_.schema_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SchemaScopedTableName::release_schema_name() { + // @@protoc_insertion_point(field_release:greptime.v1.SchemaScopedTableName.schema_name) + return _impl_.schema_name_.Release(); +} +inline void SchemaScopedTableName::set_allocated_schema_name(std::string* schema_name) { + if (schema_name != nullptr) { + + } else { + + } + _impl_.schema_name_.SetAllocated(schema_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.schema_name_.IsDefault()) { + _impl_.schema_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.SchemaScopedTableName.schema_name) +} + +// string table_name = 2; +inline void SchemaScopedTableName::clear_table_name() { + _impl_.table_name_.ClearToEmpty(); +} +inline const std::string& SchemaScopedTableName::table_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.SchemaScopedTableName.table_name) + return _internal_table_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SchemaScopedTableName::set_table_name(ArgT0&& arg0, ArgT... args) { + + _impl_.table_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.SchemaScopedTableName.table_name) +} +inline std::string* SchemaScopedTableName::mutable_table_name() { + std::string* _s = _internal_mutable_table_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.SchemaScopedTableName.table_name) + return _s; +} +inline const std::string& SchemaScopedTableName::_internal_table_name() const { + return _impl_.table_name_.Get(); +} +inline void SchemaScopedTableName::_internal_set_table_name(const std::string& value) { + + _impl_.table_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SchemaScopedTableName::_internal_mutable_table_name() { + + return _impl_.table_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SchemaScopedTableName::release_table_name() { + // @@protoc_insertion_point(field_release:greptime.v1.SchemaScopedTableName.table_name) + return _impl_.table_name_.Release(); +} +inline void SchemaScopedTableName::set_allocated_table_name(std::string* table_name) { + if (table_name != nullptr) { + + } else { + + } + _impl_.table_name_.SetAllocated(table_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.table_name_.IsDefault()) { + _impl_.table_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.SchemaScopedTableName.table_name) +} + +// ------------------------------------------------------------------- + +// DropFlowTaskExpr // string catalog_name = 1; -inline void RemoveTaskExpr::clear_catalog_name() { +inline void DropFlowTaskExpr::clear_catalog_name() { _impl_.catalog_name_.ClearToEmpty(); } -inline const std::string& RemoveTaskExpr::catalog_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.RemoveTaskExpr.catalog_name) +inline const std::string& DropFlowTaskExpr::catalog_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.DropFlowTaskExpr.catalog_name) return _internal_catalog_name(); } template inline PROTOBUF_ALWAYS_INLINE -void RemoveTaskExpr::set_catalog_name(ArgT0&& arg0, ArgT... args) { +void DropFlowTaskExpr::set_catalog_name(ArgT0&& arg0, ArgT... args) { _impl_.catalog_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.RemoveTaskExpr.catalog_name) + // @@protoc_insertion_point(field_set:greptime.v1.DropFlowTaskExpr.catalog_name) } -inline std::string* RemoveTaskExpr::mutable_catalog_name() { +inline std::string* DropFlowTaskExpr::mutable_catalog_name() { std::string* _s = _internal_mutable_catalog_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.RemoveTaskExpr.catalog_name) + // @@protoc_insertion_point(field_mutable:greptime.v1.DropFlowTaskExpr.catalog_name) return _s; } -inline const std::string& RemoveTaskExpr::_internal_catalog_name() const { +inline const std::string& DropFlowTaskExpr::_internal_catalog_name() const { return _impl_.catalog_name_.Get(); } -inline void RemoveTaskExpr::_internal_set_catalog_name(const std::string& value) { +inline void DropFlowTaskExpr::_internal_set_catalog_name(const std::string& value) { _impl_.catalog_name_.Set(value, GetArenaForAllocation()); } -inline std::string* RemoveTaskExpr::_internal_mutable_catalog_name() { +inline std::string* DropFlowTaskExpr::_internal_mutable_catalog_name() { return _impl_.catalog_name_.Mutable(GetArenaForAllocation()); } -inline std::string* RemoveTaskExpr::release_catalog_name() { - // @@protoc_insertion_point(field_release:greptime.v1.RemoveTaskExpr.catalog_name) +inline std::string* DropFlowTaskExpr::release_catalog_name() { + // @@protoc_insertion_point(field_release:greptime.v1.DropFlowTaskExpr.catalog_name) return _impl_.catalog_name_.Release(); } -inline void RemoveTaskExpr::set_allocated_catalog_name(std::string* catalog_name) { +inline void DropFlowTaskExpr::set_allocated_catalog_name(std::string* catalog_name) { if (catalog_name != nullptr) { } else { @@ -4788,45 +5103,45 @@ inline void RemoveTaskExpr::set_allocated_catalog_name(std::string* catalog_name _impl_.catalog_name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.RemoveTaskExpr.catalog_name) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DropFlowTaskExpr.catalog_name) } // string task_name = 2; -inline void RemoveTaskExpr::clear_task_name() { +inline void DropFlowTaskExpr::clear_task_name() { _impl_.task_name_.ClearToEmpty(); } -inline const std::string& RemoveTaskExpr::task_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.RemoveTaskExpr.task_name) +inline const std::string& DropFlowTaskExpr::task_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.DropFlowTaskExpr.task_name) return _internal_task_name(); } template inline PROTOBUF_ALWAYS_INLINE -void RemoveTaskExpr::set_task_name(ArgT0&& arg0, ArgT... args) { +void DropFlowTaskExpr::set_task_name(ArgT0&& arg0, ArgT... args) { _impl_.task_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.RemoveTaskExpr.task_name) + // @@protoc_insertion_point(field_set:greptime.v1.DropFlowTaskExpr.task_name) } -inline std::string* RemoveTaskExpr::mutable_task_name() { +inline std::string* DropFlowTaskExpr::mutable_task_name() { std::string* _s = _internal_mutable_task_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.RemoveTaskExpr.task_name) + // @@protoc_insertion_point(field_mutable:greptime.v1.DropFlowTaskExpr.task_name) return _s; } -inline const std::string& RemoveTaskExpr::_internal_task_name() const { +inline const std::string& DropFlowTaskExpr::_internal_task_name() const { return _impl_.task_name_.Get(); } -inline void RemoveTaskExpr::_internal_set_task_name(const std::string& value) { +inline void DropFlowTaskExpr::_internal_set_task_name(const std::string& value) { _impl_.task_name_.Set(value, GetArenaForAllocation()); } -inline std::string* RemoveTaskExpr::_internal_mutable_task_name() { +inline std::string* DropFlowTaskExpr::_internal_mutable_task_name() { return _impl_.task_name_.Mutable(GetArenaForAllocation()); } -inline std::string* RemoveTaskExpr::release_task_name() { - // @@protoc_insertion_point(field_release:greptime.v1.RemoveTaskExpr.task_name) +inline std::string* DropFlowTaskExpr::release_task_name() { + // @@protoc_insertion_point(field_release:greptime.v1.DropFlowTaskExpr.task_name) return _impl_.task_name_.Release(); } -inline void RemoveTaskExpr::set_allocated_task_name(std::string* task_name) { +inline void DropFlowTaskExpr::set_allocated_task_name(std::string* task_name) { if (task_name != nullptr) { } else { @@ -4838,7 +5153,7 @@ inline void RemoveTaskExpr::set_allocated_task_name(std::string* task_name) { _impl_.task_name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.RemoveTaskExpr.task_name) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DropFlowTaskExpr.task_name) } // ------------------------------------------------------------------- @@ -7391,6 +7706,8 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/flow/server.pb.cc b/c++/greptime/v1/flow/server.pb.cc index d42d7c80..0a3d9526 100644 --- a/c++/greptime/v1/flow/server.pb.cc +++ b/c++/greptime/v1/flow/server.pb.cc @@ -91,52 +91,53 @@ struct FlowResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowResponseDefaultTypeInternal _FlowResponse_default_instance_; -PROTOBUF_CONSTEXPR FlowCreateRequest_TaskOptionsEntry_DoNotUse::FlowCreateRequest_TaskOptionsEntry_DoNotUse( +PROTOBUF_CONSTEXPR CreateRequest_TaskOptionsEntry_DoNotUse::CreateRequest_TaskOptionsEntry_DoNotUse( ::_pbi::ConstantInitialized) {} -struct FlowCreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FlowCreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal() +struct CreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlowCreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal() {} + ~CreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal() {} union { - FlowCreateRequest_TaskOptionsEntry_DoNotUse _instance; + CreateRequest_TaskOptionsEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowCreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal _FlowCreateRequest_TaskOptionsEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR FlowCreateRequest::FlowCreateRequest( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal _CreateRequest_TaskOptionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR CreateRequest::CreateRequest( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.task_options_)*/{::_pbi::ConstantInitialized()} + /*decltype(_impl_.source_table_ids_)*/{} + , /*decltype(_impl_.task_options_)*/{::_pbi::ConstantInitialized()} , /*decltype(_impl_.expire_when_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.sql_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.task_id_)*/nullptr - , /*decltype(_impl_.output_table_id_)*/nullptr + , /*decltype(_impl_.sink_table_id_)*/nullptr , /*decltype(_impl_.create_if_not_exists_)*/false , /*decltype(_impl_._cached_size_)*/{}} {} -struct FlowCreateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR FlowCreateRequestDefaultTypeInternal() +struct CreateRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlowCreateRequestDefaultTypeInternal() {} + ~CreateRequestDefaultTypeInternal() {} union { - FlowCreateRequest _instance; + CreateRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowCreateRequestDefaultTypeInternal _FlowCreateRequest_default_instance_; -PROTOBUF_CONSTEXPR FlowRemoveRequest::FlowRemoveRequest( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateRequestDefaultTypeInternal _CreateRequest_default_instance_; +PROTOBUF_CONSTEXPR RemoveRequest::RemoveRequest( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.task_id_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} -struct FlowRemoveRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR FlowRemoveRequestDefaultTypeInternal() +struct RemoveRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlowRemoveRequestDefaultTypeInternal() {} + ~RemoveRequestDefaultTypeInternal() {} union { - FlowRemoveRequest _instance; + RemoveRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowRemoveRequestDefaultTypeInternal _FlowRemoveRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveRequestDefaultTypeInternal _RemoveRequest_default_instance_; PROTOBUF_CONSTEXPR TaskId::TaskId( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.id_)*/uint64_t{0u} + /*decltype(_impl_.id_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct TaskIdDefaultTypeInternal { PROTOBUF_CONSTEXPR TaskIdDefaultTypeInternal() @@ -199,36 +200,37 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowResponse, _impl_.affected_rows_), PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowResponse, _impl_.extension_), PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowResponse, _impl_.affected_tasks_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowCreateRequest_TaskOptionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowCreateRequest_TaskOptionsEntry_DoNotUse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest_TaskOptionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest_TaskOptionsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowCreateRequest_TaskOptionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowCreateRequest_TaskOptionsEntry_DoNotUse, value_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest_TaskOptionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest_TaskOptionsEntry_DoNotUse, value_), 0, 1, ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowCreateRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowCreateRequest, _impl_.task_id_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowCreateRequest, _impl_.output_table_id_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowCreateRequest, _impl_.create_if_not_exists_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowCreateRequest, _impl_.expire_when_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowCreateRequest, _impl_.comment_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowCreateRequest, _impl_.sql_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowCreateRequest, _impl_.task_options_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.task_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.source_table_ids_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.sink_table_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.create_if_not_exists_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.expire_when_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.comment_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.sql_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.task_options_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRemoveRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::RemoveRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRemoveRequest, _impl_.task_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::RemoveRequest, _impl_.task_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::TaskId, _internal_metadata_), ~0u, // no _extensions_ @@ -243,10 +245,10 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 15, -1, -1, sizeof(::greptime::v1::flow::FlowRequest)}, { 24, 32, -1, sizeof(::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse)}, { 34, -1, -1, sizeof(::greptime::v1::flow::FlowResponse)}, - { 44, 52, -1, sizeof(::greptime::v1::flow::FlowCreateRequest_TaskOptionsEntry_DoNotUse)}, - { 54, -1, -1, sizeof(::greptime::v1::flow::FlowCreateRequest)}, - { 67, -1, -1, sizeof(::greptime::v1::flow::FlowRemoveRequest)}, - { 74, -1, -1, sizeof(::greptime::v1::flow::TaskId)}, + { 44, 52, -1, sizeof(::greptime::v1::flow::CreateRequest_TaskOptionsEntry_DoNotUse)}, + { 54, -1, -1, sizeof(::greptime::v1::flow::CreateRequest)}, + { 68, -1, -1, sizeof(::greptime::v1::flow::RemoveRequest)}, + { 75, -1, -1, sizeof(::greptime::v1::flow::TaskId)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -255,9 +257,9 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::flow::_FlowRequest_default_instance_._instance, &::greptime::v1::flow::_FlowResponse_ExtensionEntry_DoNotUse_default_instance_._instance, &::greptime::v1::flow::_FlowResponse_default_instance_._instance, - &::greptime::v1::flow::_FlowCreateRequest_TaskOptionsEntry_DoNotUse_default_instance_._instance, - &::greptime::v1::flow::_FlowCreateRequest_default_instance_._instance, - &::greptime::v1::flow::_FlowRemoveRequest_default_instance_._instance, + &::greptime::v1::flow::_CreateRequest_TaskOptionsEntry_DoNotUse_default_instance_._instance, + &::greptime::v1::flow::_CreateRequest_default_instance_._instance, + &::greptime::v1::flow::_RemoveRequest_default_instance_._instance, &::greptime::v1::flow::_TaskId_default_instance_._instance, }; @@ -268,34 +270,34 @@ const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PRO "o\"C\n\016InsertRequests\0221\n\010requests\030\001 \003(\0132\037." "greptime.v1.flow.InsertRequest\"C\n\rInsert" "Request\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\013" - "2\021.greptime.v1.Rows\"\203\001\n\013FlowRequest\0225\n\006c" - "reate\030\001 \001(\0132#.greptime.v1.flow.FlowCreat" - "eRequestH\000\0225\n\006remove\030\002 \001(\0132#.greptime.v1" - ".flow.FlowRemoveRequestH\000B\006\n\004body\"\370\001\n\014Fl" - "owResponse\022+\n\006header\030\001 \001(\0132\033.greptime.v1" - ".ResponseHeader\022\025\n\raffected_rows\030\002 \001(\004\022@" - "\n\textension\030\003 \003(\0132-.greptime.v1.flow.Flo" - "wResponse.ExtensionEntry\0220\n\016affected_tas" - "ks\030\004 \003(\0132\030.greptime.v1.flow.TaskId\0320\n\016Ex" - "tensionEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014" - ":\0028\001\"\276\002\n\021FlowCreateRequest\022)\n\007task_id\030\001 " - "\001(\0132\030.greptime.v1.flow.TaskId\022-\n\017output_" - "table_id\030\002 \001(\0132\024.greptime.v1.TableId\022\034\n\024" - "create_if_not_exists\030\003 \001(\010\022\023\n\013expire_whe" - "n\030\004 \001(\t\022\017\n\007comment\030\005 \001(\t\022\013\n\003sql\030\006 \001(\t\022J\n" - "\014task_options\030\007 \003(\01324.greptime.v1.flow.F" - "lowCreateRequest.TaskOptionsEntry\0322\n\020Tas" - "kOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - "\t:\0028\001\">\n\021FlowRemoveRequest\022)\n\007task_id\030\001 " - "\001(\0132\030.greptime.v1.flow.TaskId\"\024\n\006TaskId\022" - "\n\n\002id\030\001 \001(\0042\264\001\n\004Flow\022S\n\022HandleCreateRemo" - "ve\022\035.greptime.v1.flow.FlowRequest\032\036.grep" - "time.v1.flow.FlowResponse\022W\n\023HandleMirro" - "rRequest\022 .greptime.v1.flow.InsertReques" - "ts\032\036.greptime.v1.flow.FlowResponseBY\n\023io" - ".greptime.v1.flowB\006ServerZ:github.com/Gr" - "eptimeTeam/greptime-proto/go/greptime/v1" - "/flowb\006proto3" + "2\021.greptime.v1.Rows\"{\n\013FlowRequest\0221\n\006cr" + "eate\030\001 \001(\0132\037.greptime.v1.flow.CreateRequ" + "estH\000\0221\n\006remove\030\002 \001(\0132\037.greptime.v1.flow" + ".RemoveRequestH\000B\006\n\004body\"\370\001\n\014FlowRespons" + "e\022+\n\006header\030\001 \001(\0132\033.greptime.v1.Response" + "Header\022\025\n\raffected_rows\030\002 \001(\004\022@\n\textensi" + "on\030\003 \003(\0132-.greptime.v1.flow.FlowResponse" + ".ExtensionEntry\0220\n\016affected_tasks\030\004 \003(\0132" + "\030.greptime.v1.flow.TaskId\0320\n\016ExtensionEn" + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\344\002\n\r" + "CreateRequest\022)\n\007task_id\030\001 \001(\0132\030.greptim" + "e.v1.flow.TaskId\022.\n\020source_table_ids\030\002 \003" + "(\0132\024.greptime.v1.TableId\022+\n\rsink_table_i" + "d\030\003 \001(\0132\024.greptime.v1.TableId\022\034\n\024create_" + "if_not_exists\030\004 \001(\010\022\023\n\013expire_when\030\005 \001(\t" + "\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030\007 \001(\t\022F\n\014task_o" + "ptions\030\010 \003(\01320.greptime.v1.flow.CreateRe" + "quest.TaskOptionsEntry\0322\n\020TaskOptionsEnt" + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\rRe" + "moveRequest\022)\n\007task_id\030\001 \001(\0132\030.greptime." + "v1.flow.TaskId\"\024\n\006TaskId\022\n\n\002id\030\001 \001(\r2\264\001\n" + "\004Flow\022S\n\022HandleCreateRemove\022\035.greptime.v" + "1.flow.FlowRequest\032\036.greptime.v1.flow.Fl" + "owResponse\022W\n\023HandleMirrorRequest\022 .grep" + "time.v1.flow.InsertRequests\032\036.greptime.v" + "1.flow.FlowResponseBY\n\023io.greptime.v1.fl" + "owB\006ServerZ:github.com/GreptimeTeam/grep" + "time-proto/go/greptime/v1/flowb\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps[3] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, @@ -304,7 +306,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflo }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto = { - false, false, 1333, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto, + false, false, 1358, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto, "greptime/v1/flow/server.proto", &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps, 3, 9, schemas, file_default_instances, TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets, @@ -740,19 +742,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata InsertRequest::GetMetadata() const { class FlowRequest::_Internal { public: - static const ::greptime::v1::flow::FlowCreateRequest& create(const FlowRequest* msg); - static const ::greptime::v1::flow::FlowRemoveRequest& remove(const FlowRequest* msg); + static const ::greptime::v1::flow::CreateRequest& create(const FlowRequest* msg); + static const ::greptime::v1::flow::RemoveRequest& remove(const FlowRequest* msg); }; -const ::greptime::v1::flow::FlowCreateRequest& +const ::greptime::v1::flow::CreateRequest& FlowRequest::_Internal::create(const FlowRequest* msg) { return *msg->_impl_.body_.create_; } -const ::greptime::v1::flow::FlowRemoveRequest& +const ::greptime::v1::flow::RemoveRequest& FlowRequest::_Internal::remove(const FlowRequest* msg) { return *msg->_impl_.body_.remove_; } -void FlowRequest::set_allocated_create(::greptime::v1::flow::FlowCreateRequest* create) { +void FlowRequest::set_allocated_create(::greptime::v1::flow::CreateRequest* create) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_body(); if (create) { @@ -767,7 +769,7 @@ void FlowRequest::set_allocated_create(::greptime::v1::flow::FlowCreateRequest* } // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowRequest.create) } -void FlowRequest::set_allocated_remove(::greptime::v1::flow::FlowRemoveRequest* remove) { +void FlowRequest::set_allocated_remove(::greptime::v1::flow::RemoveRequest* remove) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_body(); if (remove) { @@ -800,12 +802,12 @@ FlowRequest::FlowRequest(const FlowRequest& from) clear_has_body(); switch (from.body_case()) { case kCreate: { - _this->_internal_mutable_create()->::greptime::v1::flow::FlowCreateRequest::MergeFrom( + _this->_internal_mutable_create()->::greptime::v1::flow::CreateRequest::MergeFrom( from._internal_create()); break; } case kRemove: { - _this->_internal_mutable_remove()->::greptime::v1::flow::FlowRemoveRequest::MergeFrom( + _this->_internal_mutable_remove()->::greptime::v1::flow::RemoveRequest::MergeFrom( from._internal_remove()); break; } @@ -887,7 +889,7 @@ const char* FlowRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // .greptime.v1.flow.FlowCreateRequest create = 1; + // .greptime.v1.flow.CreateRequest create = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_create(), ptr); @@ -895,7 +897,7 @@ const char* FlowRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c } else goto handle_unusual; continue; - // .greptime.v1.flow.FlowRemoveRequest remove = 2; + // .greptime.v1.flow.RemoveRequest remove = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_remove(), ptr); @@ -932,14 +934,14 @@ uint8_t* FlowRequest::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; - // .greptime.v1.flow.FlowCreateRequest create = 1; + // .greptime.v1.flow.CreateRequest create = 1; if (_internal_has_create()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::create(this), _Internal::create(this).GetCachedSize(), target, stream); } - // .greptime.v1.flow.FlowRemoveRequest remove = 2; + // .greptime.v1.flow.RemoveRequest remove = 2; if (_internal_has_remove()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::remove(this), @@ -963,14 +965,14 @@ size_t FlowRequest::ByteSizeLong() const { (void) cached_has_bits; switch (body_case()) { - // .greptime.v1.flow.FlowCreateRequest create = 1; + // .greptime.v1.flow.CreateRequest create = 1; case kCreate: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.body_.create_); break; } - // .greptime.v1.flow.FlowRemoveRequest remove = 2; + // .greptime.v1.flow.RemoveRequest remove = 2; case kRemove: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( @@ -1001,12 +1003,12 @@ void FlowRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR switch (from.body_case()) { case kCreate: { - _this->_internal_mutable_create()->::greptime::v1::flow::FlowCreateRequest::MergeFrom( + _this->_internal_mutable_create()->::greptime::v1::flow::CreateRequest::MergeFrom( from._internal_create()); break; } case kRemove: { - _this->_internal_mutable_remove()->::greptime::v1::flow::FlowRemoveRequest::MergeFrom( + _this->_internal_mutable_remove()->::greptime::v1::flow::RemoveRequest::MergeFrom( from._internal_remove()); break; } @@ -1385,13 +1387,13 @@ ::PROTOBUF_NAMESPACE_ID::Metadata FlowResponse::GetMetadata() const { // =================================================================== -FlowCreateRequest_TaskOptionsEntry_DoNotUse::FlowCreateRequest_TaskOptionsEntry_DoNotUse() {} -FlowCreateRequest_TaskOptionsEntry_DoNotUse::FlowCreateRequest_TaskOptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +CreateRequest_TaskOptionsEntry_DoNotUse::CreateRequest_TaskOptionsEntry_DoNotUse() {} +CreateRequest_TaskOptionsEntry_DoNotUse::CreateRequest_TaskOptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -void FlowCreateRequest_TaskOptionsEntry_DoNotUse::MergeFrom(const FlowCreateRequest_TaskOptionsEntry_DoNotUse& other) { +void CreateRequest_TaskOptionsEntry_DoNotUse::MergeFrom(const CreateRequest_TaskOptionsEntry_DoNotUse& other) { MergeFromInternal(other); } -::PROTOBUF_NAMESPACE_ID::Metadata FlowCreateRequest_TaskOptionsEntry_DoNotUse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest_TaskOptionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[5]); @@ -1399,45 +1401,49 @@ ::PROTOBUF_NAMESPACE_ID::Metadata FlowCreateRequest_TaskOptionsEntry_DoNotUse::G // =================================================================== -class FlowCreateRequest::_Internal { +class CreateRequest::_Internal { public: - static const ::greptime::v1::flow::TaskId& task_id(const FlowCreateRequest* msg); - static const ::greptime::v1::TableId& output_table_id(const FlowCreateRequest* msg); + static const ::greptime::v1::flow::TaskId& task_id(const CreateRequest* msg); + static const ::greptime::v1::TableId& sink_table_id(const CreateRequest* msg); }; const ::greptime::v1::flow::TaskId& -FlowCreateRequest::_Internal::task_id(const FlowCreateRequest* msg) { +CreateRequest::_Internal::task_id(const CreateRequest* msg) { return *msg->_impl_.task_id_; } const ::greptime::v1::TableId& -FlowCreateRequest::_Internal::output_table_id(const FlowCreateRequest* msg) { - return *msg->_impl_.output_table_id_; +CreateRequest::_Internal::sink_table_id(const CreateRequest* msg) { + return *msg->_impl_.sink_table_id_; } -void FlowCreateRequest::clear_output_table_id() { - if (GetArenaForAllocation() == nullptr && _impl_.output_table_id_ != nullptr) { - delete _impl_.output_table_id_; +void CreateRequest::clear_source_table_ids() { + _impl_.source_table_ids_.Clear(); +} +void CreateRequest::clear_sink_table_id() { + if (GetArenaForAllocation() == nullptr && _impl_.sink_table_id_ != nullptr) { + delete _impl_.sink_table_id_; } - _impl_.output_table_id_ = nullptr; + _impl_.sink_table_id_ = nullptr; } -FlowCreateRequest::FlowCreateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, +CreateRequest::CreateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &FlowCreateRequest::ArenaDtor); + arena->OwnCustomDestructor(this, &CreateRequest::ArenaDtor); } - // @@protoc_insertion_point(arena_constructor:greptime.v1.flow.FlowCreateRequest) + // @@protoc_insertion_point(arena_constructor:greptime.v1.flow.CreateRequest) } -FlowCreateRequest::FlowCreateRequest(const FlowCreateRequest& from) +CreateRequest::CreateRequest(const CreateRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - FlowCreateRequest* const _this = this; (void)_this; + CreateRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ - /*decltype(_impl_.task_options_)*/{} + decltype(_impl_.source_table_ids_){from._impl_.source_table_ids_} + , /*decltype(_impl_.task_options_)*/{} , decltype(_impl_.expire_when_){} , decltype(_impl_.comment_){} , decltype(_impl_.sql_){} , decltype(_impl_.task_id_){nullptr} - , decltype(_impl_.output_table_id_){nullptr} + , decltype(_impl_.sink_table_id_){nullptr} , decltype(_impl_.create_if_not_exists_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -1470,24 +1476,25 @@ FlowCreateRequest::FlowCreateRequest(const FlowCreateRequest& from) if (from._internal_has_task_id()) { _this->_impl_.task_id_ = new ::greptime::v1::flow::TaskId(*from._impl_.task_id_); } - if (from._internal_has_output_table_id()) { - _this->_impl_.output_table_id_ = new ::greptime::v1::TableId(*from._impl_.output_table_id_); + if (from._internal_has_sink_table_id()) { + _this->_impl_.sink_table_id_ = new ::greptime::v1::TableId(*from._impl_.sink_table_id_); } _this->_impl_.create_if_not_exists_ = from._impl_.create_if_not_exists_; - // @@protoc_insertion_point(copy_constructor:greptime.v1.flow.FlowCreateRequest) + // @@protoc_insertion_point(copy_constructor:greptime.v1.flow.CreateRequest) } -inline void FlowCreateRequest::SharedCtor( +inline void CreateRequest::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - /*decltype(_impl_.task_options_)*/{::_pbi::ArenaInitialized(), arena} + decltype(_impl_.source_table_ids_){arena} + , /*decltype(_impl_.task_options_)*/{::_pbi::ArenaInitialized(), arena} , decltype(_impl_.expire_when_){} , decltype(_impl_.comment_){} , decltype(_impl_.sql_){} , decltype(_impl_.task_id_){nullptr} - , decltype(_impl_.output_table_id_){nullptr} + , decltype(_impl_.sink_table_id_){nullptr} , decltype(_impl_.create_if_not_exists_){false} , /*decltype(_impl_._cached_size_)*/{} }; @@ -1505,8 +1512,8 @@ inline void FlowCreateRequest::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -FlowCreateRequest::~FlowCreateRequest() { - // @@protoc_insertion_point(destructor:greptime.v1.flow.FlowCreateRequest) +CreateRequest::~CreateRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.flow.CreateRequest) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; ArenaDtor(this); @@ -1515,31 +1522,33 @@ FlowCreateRequest::~FlowCreateRequest() { SharedDtor(); } -inline void FlowCreateRequest::SharedDtor() { +inline void CreateRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.source_table_ids_.~RepeatedPtrField(); _impl_.task_options_.Destruct(); _impl_.task_options_.~MapField(); _impl_.expire_when_.Destroy(); _impl_.comment_.Destroy(); _impl_.sql_.Destroy(); if (this != internal_default_instance()) delete _impl_.task_id_; - if (this != internal_default_instance()) delete _impl_.output_table_id_; + if (this != internal_default_instance()) delete _impl_.sink_table_id_; } -void FlowCreateRequest::ArenaDtor(void* object) { - FlowCreateRequest* _this = reinterpret_cast< FlowCreateRequest* >(object); +void CreateRequest::ArenaDtor(void* object) { + CreateRequest* _this = reinterpret_cast< CreateRequest* >(object); _this->_impl_.task_options_.Destruct(); } -void FlowCreateRequest::SetCachedSize(int size) const { +void CreateRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void FlowCreateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.flow.FlowCreateRequest) +void CreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.flow.CreateRequest) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.source_table_ids_.Clear(); _impl_.task_options_.Clear(); _impl_.expire_when_.ClearToEmpty(); _impl_.comment_.ClearToEmpty(); @@ -1548,15 +1557,15 @@ void FlowCreateRequest::Clear() { delete _impl_.task_id_; } _impl_.task_id_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.output_table_id_ != nullptr) { - delete _impl_.output_table_id_; + if (GetArenaForAllocation() == nullptr && _impl_.sink_table_id_ != nullptr) { + delete _impl_.sink_table_id_; } - _impl_.output_table_id_ = nullptr; + _impl_.sink_table_id_ = nullptr; _impl_.create_if_not_exists_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* FlowCreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* CreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1570,62 +1579,75 @@ const char* FlowCreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont } else goto handle_unusual; continue; - // .greptime.v1.TableId output_table_id = 2; + // repeated .greptime.v1.TableId source_table_ids = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_output_table_id(), ptr); - CHK_(ptr); + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_source_table_ids(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); } else goto handle_unusual; continue; - // bool create_if_not_exists = 3; + // .greptime.v1.TableId sink_table_id = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.create_if_not_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_sink_table_id(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // string expire_when = 4; + // bool create_if_not_exists = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_expire_when(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.create_if_not_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.flow.FlowCreateRequest.expire_when")); } else goto handle_unusual; continue; - // string comment = 5; + // string expire_when = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_comment(); + auto str = _internal_mutable_expire_when(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.flow.FlowCreateRequest.comment")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.flow.CreateRequest.expire_when")); } else goto handle_unusual; continue; - // string sql = 6; + // string comment = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_sql(); + auto str = _internal_mutable_comment(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.flow.FlowCreateRequest.sql")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.flow.CreateRequest.comment")); } else goto handle_unusual; continue; - // map task_options = 7; + // string sql = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_sql(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.flow.CreateRequest.sql")); + } else + goto handle_unusual; + continue; + // map task_options = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(&_impl_.task_options_, ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); } else goto handle_unusual; continue; @@ -1652,9 +1674,9 @@ const char* FlowCreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* FlowCreateRequest::_InternalSerialize( +uint8_t* CreateRequest::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.flow.FlowCreateRequest) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.flow.CreateRequest) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1665,74 +1687,82 @@ uint8_t* FlowCreateRequest::_InternalSerialize( _Internal::task_id(this).GetCachedSize(), target, stream); } - // .greptime.v1.TableId output_table_id = 2; - if (this->_internal_has_output_table_id()) { + // repeated .greptime.v1.TableId source_table_ids = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_source_table_ids_size()); i < n; i++) { + const auto& repfield = this->_internal_source_table_ids(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::output_table_id(this), - _Internal::output_table_id(this).GetCachedSize(), target, stream); + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } - // bool create_if_not_exists = 3; + // .greptime.v1.TableId sink_table_id = 3; + if (this->_internal_has_sink_table_id()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::sink_table_id(this), + _Internal::sink_table_id(this).GetCachedSize(), target, stream); + } + + // bool create_if_not_exists = 4; if (this->_internal_create_if_not_exists() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_create_if_not_exists(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_create_if_not_exists(), target); } - // string expire_when = 4; + // string expire_when = 5; if (!this->_internal_expire_when().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_expire_when().data(), static_cast(this->_internal_expire_when().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.flow.FlowCreateRequest.expire_when"); + "greptime.v1.flow.CreateRequest.expire_when"); target = stream->WriteStringMaybeAliased( - 4, this->_internal_expire_when(), target); + 5, this->_internal_expire_when(), target); } - // string comment = 5; + // string comment = 6; if (!this->_internal_comment().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_comment().data(), static_cast(this->_internal_comment().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.flow.FlowCreateRequest.comment"); + "greptime.v1.flow.CreateRequest.comment"); target = stream->WriteStringMaybeAliased( - 5, this->_internal_comment(), target); + 6, this->_internal_comment(), target); } - // string sql = 6; + // string sql = 7; if (!this->_internal_sql().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_sql().data(), static_cast(this->_internal_sql().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.flow.FlowCreateRequest.sql"); + "greptime.v1.flow.CreateRequest.sql"); target = stream->WriteStringMaybeAliased( - 6, this->_internal_sql(), target); + 7, this->_internal_sql(), target); } - // map task_options = 7; + // map task_options = 8; if (!this->_internal_task_options().empty()) { using MapType = ::_pb::Map; - using WireHelper = FlowCreateRequest_TaskOptionsEntry_DoNotUse::Funcs; + using WireHelper = CreateRequest_TaskOptionsEntry_DoNotUse::Funcs; const auto& map_field = this->_internal_task_options(); auto check_utf8 = [](const MapType::value_type& entry) { (void)entry; ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( entry.first.data(), static_cast(entry.first.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.flow.FlowCreateRequest.TaskOptionsEntry.key"); + "greptime.v1.flow.CreateRequest.TaskOptionsEntry.key"); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( entry.second.data(), static_cast(entry.second.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.flow.FlowCreateRequest.TaskOptionsEntry.value"); + "greptime.v1.flow.CreateRequest.TaskOptionsEntry.value"); }; if (stream->IsSerializationDeterministic() && map_field.size() > 1) { for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); + target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream); check_utf8(entry); } } else { for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); + target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream); check_utf8(entry); } } @@ -1742,42 +1772,49 @@ uint8_t* FlowCreateRequest::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.flow.FlowCreateRequest) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.flow.CreateRequest) return target; } -size_t FlowCreateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.flow.FlowCreateRequest) +size_t CreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.flow.CreateRequest) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // map task_options = 7; + // repeated .greptime.v1.TableId source_table_ids = 2; + total_size += 1UL * this->_internal_source_table_ids_size(); + for (const auto& msg : this->_impl_.source_table_ids_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // map task_options = 8; total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_task_options_size()); for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator it = this->_internal_task_options().begin(); it != this->_internal_task_options().end(); ++it) { - total_size += FlowCreateRequest_TaskOptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += CreateRequest_TaskOptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } - // string expire_when = 4; + // string expire_when = 5; if (!this->_internal_expire_when().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_expire_when()); } - // string comment = 5; + // string comment = 6; if (!this->_internal_comment().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_comment()); } - // string sql = 6; + // string sql = 7; if (!this->_internal_sql().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( @@ -1791,14 +1828,14 @@ size_t FlowCreateRequest::ByteSizeLong() const { *_impl_.task_id_); } - // .greptime.v1.TableId output_table_id = 2; - if (this->_internal_has_output_table_id()) { + // .greptime.v1.TableId sink_table_id = 3; + if (this->_internal_has_sink_table_id()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.output_table_id_); + *_impl_.sink_table_id_); } - // bool create_if_not_exists = 3; + // bool create_if_not_exists = 4; if (this->_internal_create_if_not_exists() != 0) { total_size += 1 + 1; } @@ -1806,21 +1843,22 @@ size_t FlowCreateRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlowCreateRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - FlowCreateRequest::MergeImpl + CreateRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlowCreateRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateRequest::GetClassData() const { return &_class_data_; } -void FlowCreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.flow.FlowCreateRequest) +void CreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.flow.CreateRequest) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_impl_.source_table_ids_.MergeFrom(from._impl_.source_table_ids_); _this->_impl_.task_options_.MergeFrom(from._impl_.task_options_); if (!from._internal_expire_when().empty()) { _this->_internal_set_expire_when(from._internal_expire_when()); @@ -1835,9 +1873,9 @@ void FlowCreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons _this->_internal_mutable_task_id()->::greptime::v1::flow::TaskId::MergeFrom( from._internal_task_id()); } - if (from._internal_has_output_table_id()) { - _this->_internal_mutable_output_table_id()->::greptime::v1::TableId::MergeFrom( - from._internal_output_table_id()); + if (from._internal_has_sink_table_id()) { + _this->_internal_mutable_sink_table_id()->::greptime::v1::TableId::MergeFrom( + from._internal_sink_table_id()); } if (from._internal_create_if_not_exists() != 0) { _this->_internal_set_create_if_not_exists(from._internal_create_if_not_exists()); @@ -1845,22 +1883,23 @@ void FlowCreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void FlowCreateRequest::CopyFrom(const FlowCreateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.flow.FlowCreateRequest) +void CreateRequest::CopyFrom(const CreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.flow.CreateRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool FlowCreateRequest::IsInitialized() const { +bool CreateRequest::IsInitialized() const { return true; } -void FlowCreateRequest::InternalSwap(FlowCreateRequest* other) { +void CreateRequest::InternalSwap(CreateRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.source_table_ids_.InternalSwap(&other->_impl_.source_table_ids_); _impl_.task_options_.InternalSwap(&other->_impl_.task_options_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.expire_when_, lhs_arena, @@ -1875,14 +1914,14 @@ void FlowCreateRequest::InternalSwap(FlowCreateRequest* other) { &other->_impl_.sql_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(FlowCreateRequest, _impl_.create_if_not_exists_) - + sizeof(FlowCreateRequest::_impl_.create_if_not_exists_) - - PROTOBUF_FIELD_OFFSET(FlowCreateRequest, _impl_.task_id_)>( + PROTOBUF_FIELD_OFFSET(CreateRequest, _impl_.create_if_not_exists_) + + sizeof(CreateRequest::_impl_.create_if_not_exists_) + - PROTOBUF_FIELD_OFFSET(CreateRequest, _impl_.task_id_)>( reinterpret_cast(&_impl_.task_id_), reinterpret_cast(&other->_impl_.task_id_)); } -::PROTOBUF_NAMESPACE_ID::Metadata FlowCreateRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[6]); @@ -1890,24 +1929,24 @@ ::PROTOBUF_NAMESPACE_ID::Metadata FlowCreateRequest::GetMetadata() const { // =================================================================== -class FlowRemoveRequest::_Internal { +class RemoveRequest::_Internal { public: - static const ::greptime::v1::flow::TaskId& task_id(const FlowRemoveRequest* msg); + static const ::greptime::v1::flow::TaskId& task_id(const RemoveRequest* msg); }; const ::greptime::v1::flow::TaskId& -FlowRemoveRequest::_Internal::task_id(const FlowRemoveRequest* msg) { +RemoveRequest::_Internal::task_id(const RemoveRequest* msg) { return *msg->_impl_.task_id_; } -FlowRemoveRequest::FlowRemoveRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, +RemoveRequest::RemoveRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:greptime.v1.flow.FlowRemoveRequest) + // @@protoc_insertion_point(arena_constructor:greptime.v1.flow.RemoveRequest) } -FlowRemoveRequest::FlowRemoveRequest(const FlowRemoveRequest& from) +RemoveRequest::RemoveRequest(const RemoveRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - FlowRemoveRequest* const _this = this; (void)_this; + RemoveRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.task_id_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; @@ -1916,10 +1955,10 @@ FlowRemoveRequest::FlowRemoveRequest(const FlowRemoveRequest& from) if (from._internal_has_task_id()) { _this->_impl_.task_id_ = new ::greptime::v1::flow::TaskId(*from._impl_.task_id_); } - // @@protoc_insertion_point(copy_constructor:greptime.v1.flow.FlowRemoveRequest) + // @@protoc_insertion_point(copy_constructor:greptime.v1.flow.RemoveRequest) } -inline void FlowRemoveRequest::SharedCtor( +inline void RemoveRequest::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -1929,8 +1968,8 @@ inline void FlowRemoveRequest::SharedCtor( }; } -FlowRemoveRequest::~FlowRemoveRequest() { - // @@protoc_insertion_point(destructor:greptime.v1.flow.FlowRemoveRequest) +RemoveRequest::~RemoveRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.flow.RemoveRequest) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -1938,17 +1977,17 @@ FlowRemoveRequest::~FlowRemoveRequest() { SharedDtor(); } -inline void FlowRemoveRequest::SharedDtor() { +inline void RemoveRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.task_id_; } -void FlowRemoveRequest::SetCachedSize(int size) const { +void RemoveRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void FlowRemoveRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.flow.FlowRemoveRequest) +void RemoveRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.flow.RemoveRequest) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1960,7 +1999,7 @@ void FlowRemoveRequest::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* FlowRemoveRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* RemoveRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1997,9 +2036,9 @@ const char* FlowRemoveRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* FlowRemoveRequest::_InternalSerialize( +uint8_t* RemoveRequest::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.flow.FlowRemoveRequest) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.flow.RemoveRequest) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2014,12 +2053,12 @@ uint8_t* FlowRemoveRequest::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.flow.FlowRemoveRequest) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.flow.RemoveRequest) return target; } -size_t FlowRemoveRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.flow.FlowRemoveRequest) +size_t RemoveRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.flow.RemoveRequest) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -2036,17 +2075,17 @@ size_t FlowRemoveRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlowRemoveRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - FlowRemoveRequest::MergeImpl + RemoveRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlowRemoveRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveRequest::GetClassData() const { return &_class_data_; } -void FlowRemoveRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.flow.FlowRemoveRequest) +void RemoveRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.flow.RemoveRequest) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2058,24 +2097,24 @@ void FlowRemoveRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void FlowRemoveRequest::CopyFrom(const FlowRemoveRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.flow.FlowRemoveRequest) +void RemoveRequest::CopyFrom(const RemoveRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.flow.RemoveRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool FlowRemoveRequest::IsInitialized() const { +bool RemoveRequest::IsInitialized() const { return true; } -void FlowRemoveRequest::InternalSwap(FlowRemoveRequest* other) { +void RemoveRequest::InternalSwap(RemoveRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.task_id_, other->_impl_.task_id_); } -::PROTOBUF_NAMESPACE_ID::Metadata FlowRemoveRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RemoveRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[7]); @@ -2110,7 +2149,7 @@ inline void TaskId::SharedCtor( (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.id_){uint64_t{0u}} + decltype(_impl_.id_){0u} , /*decltype(_impl_._cached_size_)*/{} }; } @@ -2138,7 +2177,7 @@ void TaskId::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_ = uint64_t{0u}; + _impl_.id_ = 0u; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2148,10 +2187,10 @@ const char* TaskId::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // uint64 id = 1; + // uint32 id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -2185,10 +2224,10 @@ uint8_t* TaskId::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; - // uint64 id = 1; + // uint32 id = 1; if (this->_internal_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_id(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2207,9 +2246,9 @@ size_t TaskId::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // uint64 id = 1; + // uint32 id = 1; if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_id()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); @@ -2284,17 +2323,17 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::flow::FlowResponse* Arena::CreateMaybeMessage< ::greptime::v1::flow::FlowResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::flow::FlowResponse >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::flow::FlowCreateRequest_TaskOptionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::greptime::v1::flow::FlowCreateRequest_TaskOptionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::flow::FlowCreateRequest_TaskOptionsEntry_DoNotUse >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::flow::CreateRequest_TaskOptionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::flow::CreateRequest_TaskOptionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::flow::CreateRequest_TaskOptionsEntry_DoNotUse >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::flow::FlowCreateRequest* -Arena::CreateMaybeMessage< ::greptime::v1::flow::FlowCreateRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::flow::FlowCreateRequest >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::flow::CreateRequest* +Arena::CreateMaybeMessage< ::greptime::v1::flow::CreateRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::flow::CreateRequest >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::flow::FlowRemoveRequest* -Arena::CreateMaybeMessage< ::greptime::v1::flow::FlowRemoveRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::flow::FlowRemoveRequest >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::flow::RemoveRequest* +Arena::CreateMaybeMessage< ::greptime::v1::flow::RemoveRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::flow::RemoveRequest >(arena); } template<> PROTOBUF_NOINLINE ::greptime::v1::flow::TaskId* Arena::CreateMaybeMessage< ::greptime::v1::flow::TaskId >(Arena* arena) { diff --git a/c++/greptime/v1/flow/server.pb.h b/c++/greptime/v1/flow/server.pb.h index 3302340d..caca21a3 100644 --- a/c++/greptime/v1/flow/server.pb.h +++ b/c++/greptime/v1/flow/server.pb.h @@ -53,15 +53,12 @@ extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table namespace greptime { namespace v1 { namespace flow { -class FlowCreateRequest; -struct FlowCreateRequestDefaultTypeInternal; -extern FlowCreateRequestDefaultTypeInternal _FlowCreateRequest_default_instance_; -class FlowCreateRequest_TaskOptionsEntry_DoNotUse; -struct FlowCreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal; -extern FlowCreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal _FlowCreateRequest_TaskOptionsEntry_DoNotUse_default_instance_; -class FlowRemoveRequest; -struct FlowRemoveRequestDefaultTypeInternal; -extern FlowRemoveRequestDefaultTypeInternal _FlowRemoveRequest_default_instance_; +class CreateRequest; +struct CreateRequestDefaultTypeInternal; +extern CreateRequestDefaultTypeInternal _CreateRequest_default_instance_; +class CreateRequest_TaskOptionsEntry_DoNotUse; +struct CreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal; +extern CreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal _CreateRequest_TaskOptionsEntry_DoNotUse_default_instance_; class FlowRequest; struct FlowRequestDefaultTypeInternal; extern FlowRequestDefaultTypeInternal _FlowRequest_default_instance_; @@ -77,6 +74,9 @@ extern InsertRequestDefaultTypeInternal _InsertRequest_default_instance_; class InsertRequests; struct InsertRequestsDefaultTypeInternal; extern InsertRequestsDefaultTypeInternal _InsertRequests_default_instance_; +class RemoveRequest; +struct RemoveRequestDefaultTypeInternal; +extern RemoveRequestDefaultTypeInternal _RemoveRequest_default_instance_; class TaskId; struct TaskIdDefaultTypeInternal; extern TaskIdDefaultTypeInternal _TaskId_default_instance_; @@ -84,14 +84,14 @@ extern TaskIdDefaultTypeInternal _TaskId_default_instance_; } // namespace v1 } // namespace greptime PROTOBUF_NAMESPACE_OPEN -template<> ::greptime::v1::flow::FlowCreateRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowCreateRequest>(Arena*); -template<> ::greptime::v1::flow::FlowCreateRequest_TaskOptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowCreateRequest_TaskOptionsEntry_DoNotUse>(Arena*); -template<> ::greptime::v1::flow::FlowRemoveRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowRemoveRequest>(Arena*); +template<> ::greptime::v1::flow::CreateRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::CreateRequest>(Arena*); +template<> ::greptime::v1::flow::CreateRequest_TaskOptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::CreateRequest_TaskOptionsEntry_DoNotUse>(Arena*); template<> ::greptime::v1::flow::FlowRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowRequest>(Arena*); template<> ::greptime::v1::flow::FlowResponse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowResponse>(Arena*); template<> ::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse>(Arena*); template<> ::greptime::v1::flow::InsertRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::InsertRequest>(Arena*); template<> ::greptime::v1::flow::InsertRequests* Arena::CreateMaybeMessage<::greptime::v1::flow::InsertRequests>(Arena*); +template<> ::greptime::v1::flow::RemoveRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::RemoveRequest>(Arena*); template<> ::greptime::v1::flow::TaskId* Arena::CreateMaybeMessage<::greptime::v1::flow::TaskId>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace greptime { @@ -555,41 +555,41 @@ class FlowRequest final : kCreateFieldNumber = 1, kRemoveFieldNumber = 2, }; - // .greptime.v1.flow.FlowCreateRequest create = 1; + // .greptime.v1.flow.CreateRequest create = 1; bool has_create() const; private: bool _internal_has_create() const; public: void clear_create(); - const ::greptime::v1::flow::FlowCreateRequest& create() const; - PROTOBUF_NODISCARD ::greptime::v1::flow::FlowCreateRequest* release_create(); - ::greptime::v1::flow::FlowCreateRequest* mutable_create(); - void set_allocated_create(::greptime::v1::flow::FlowCreateRequest* create); + const ::greptime::v1::flow::CreateRequest& create() const; + PROTOBUF_NODISCARD ::greptime::v1::flow::CreateRequest* release_create(); + ::greptime::v1::flow::CreateRequest* mutable_create(); + void set_allocated_create(::greptime::v1::flow::CreateRequest* create); private: - const ::greptime::v1::flow::FlowCreateRequest& _internal_create() const; - ::greptime::v1::flow::FlowCreateRequest* _internal_mutable_create(); + const ::greptime::v1::flow::CreateRequest& _internal_create() const; + ::greptime::v1::flow::CreateRequest* _internal_mutable_create(); public: void unsafe_arena_set_allocated_create( - ::greptime::v1::flow::FlowCreateRequest* create); - ::greptime::v1::flow::FlowCreateRequest* unsafe_arena_release_create(); + ::greptime::v1::flow::CreateRequest* create); + ::greptime::v1::flow::CreateRequest* unsafe_arena_release_create(); - // .greptime.v1.flow.FlowRemoveRequest remove = 2; + // .greptime.v1.flow.RemoveRequest remove = 2; bool has_remove() const; private: bool _internal_has_remove() const; public: void clear_remove(); - const ::greptime::v1::flow::FlowRemoveRequest& remove() const; - PROTOBUF_NODISCARD ::greptime::v1::flow::FlowRemoveRequest* release_remove(); - ::greptime::v1::flow::FlowRemoveRequest* mutable_remove(); - void set_allocated_remove(::greptime::v1::flow::FlowRemoveRequest* remove); + const ::greptime::v1::flow::RemoveRequest& remove() const; + PROTOBUF_NODISCARD ::greptime::v1::flow::RemoveRequest* release_remove(); + ::greptime::v1::flow::RemoveRequest* mutable_remove(); + void set_allocated_remove(::greptime::v1::flow::RemoveRequest* remove); private: - const ::greptime::v1::flow::FlowRemoveRequest& _internal_remove() const; - ::greptime::v1::flow::FlowRemoveRequest* _internal_mutable_remove(); + const ::greptime::v1::flow::RemoveRequest& _internal_remove() const; + ::greptime::v1::flow::RemoveRequest* _internal_mutable_remove(); public: void unsafe_arena_set_allocated_remove( - ::greptime::v1::flow::FlowRemoveRequest* remove); - ::greptime::v1::flow::FlowRemoveRequest* unsafe_arena_release_remove(); + ::greptime::v1::flow::RemoveRequest* remove); + ::greptime::v1::flow::RemoveRequest* unsafe_arena_release_remove(); void clear_body(); BodyCase body_case() const; @@ -609,8 +609,8 @@ class FlowRequest final : union BodyUnion { constexpr BodyUnion() : _constinit_{} {} ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::greptime::v1::flow::FlowCreateRequest* create_; - ::greptime::v1::flow::FlowRemoveRequest* remove_; + ::greptime::v1::flow::CreateRequest* create_; + ::greptime::v1::flow::RemoveRequest* remove_; } body_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -861,26 +861,26 @@ class FlowResponse final : }; // ------------------------------------------------------------------- -class FlowCreateRequest_TaskOptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - FlowCreateRequest_TaskOptionsEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR FlowCreateRequest_TaskOptionsEntry_DoNotUse( + CreateRequest_TaskOptionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR CreateRequest_TaskOptionsEntry_DoNotUse( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit FlowCreateRequest_TaskOptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const FlowCreateRequest_TaskOptionsEntry_DoNotUse& other); - static const FlowCreateRequest_TaskOptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_FlowCreateRequest_TaskOptionsEntry_DoNotUse_default_instance_); } + explicit CreateRequest_TaskOptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const CreateRequest_TaskOptionsEntry_DoNotUse& other); + static const CreateRequest_TaskOptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_CreateRequest_TaskOptionsEntry_DoNotUse_default_instance_); } static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.flow.FlowCreateRequest.TaskOptionsEntry.key"); + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.flow.CreateRequest.TaskOptionsEntry.key"); } static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.flow.FlowCreateRequest.TaskOptionsEntry.value"); + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.flow.CreateRequest.TaskOptionsEntry.value"); } using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -889,24 +889,24 @@ class FlowCreateRequest_TaskOptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ // ------------------------------------------------------------------- -class FlowCreateRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.flow.FlowCreateRequest) */ { +class CreateRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.flow.CreateRequest) */ { public: - inline FlowCreateRequest() : FlowCreateRequest(nullptr) {} - ~FlowCreateRequest() override; - explicit PROTOBUF_CONSTEXPR FlowCreateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline CreateRequest() : CreateRequest(nullptr) {} + ~CreateRequest() override; + explicit PROTOBUF_CONSTEXPR CreateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - FlowCreateRequest(const FlowCreateRequest& from); - FlowCreateRequest(FlowCreateRequest&& from) noexcept - : FlowCreateRequest() { + CreateRequest(const CreateRequest& from); + CreateRequest(CreateRequest&& from) noexcept + : CreateRequest() { *this = ::std::move(from); } - inline FlowCreateRequest& operator=(const FlowCreateRequest& from) { + inline CreateRequest& operator=(const CreateRequest& from) { CopyFrom(from); return *this; } - inline FlowCreateRequest& operator=(FlowCreateRequest&& from) noexcept { + inline CreateRequest& operator=(CreateRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -929,20 +929,20 @@ class FlowCreateRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlowCreateRequest& default_instance() { + static const CreateRequest& default_instance() { return *internal_default_instance(); } - static inline const FlowCreateRequest* internal_default_instance() { - return reinterpret_cast( - &_FlowCreateRequest_default_instance_); + static inline const CreateRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateRequest_default_instance_); } static constexpr int kIndexInFileMessages = 6; - friend void swap(FlowCreateRequest& a, FlowCreateRequest& b) { + friend void swap(CreateRequest& a, CreateRequest& b) { a.Swap(&b); } - inline void Swap(FlowCreateRequest* other) { + inline void Swap(CreateRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -955,7 +955,7 @@ class FlowCreateRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlowCreateRequest* other) { + void UnsafeArenaSwap(CreateRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -963,14 +963,14 @@ class FlowCreateRequest final : // implements Message ---------------------------------------------- - FlowCreateRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CreateRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const FlowCreateRequest& from); + void CopyFrom(const CreateRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FlowCreateRequest& from) { - FlowCreateRequest::MergeImpl(*this, from); + void MergeFrom( const CreateRequest& from) { + CreateRequest::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -988,15 +988,15 @@ class FlowCreateRequest final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(FlowCreateRequest* other); + void InternalSwap(CreateRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.flow.FlowCreateRequest"; + return "greptime.v1.flow.CreateRequest"; } protected: - explicit FlowCreateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit CreateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); @@ -1013,15 +1013,34 @@ class FlowCreateRequest final : // accessors ------------------------------------------------------- enum : int { - kTaskOptionsFieldNumber = 7, - kExpireWhenFieldNumber = 4, - kCommentFieldNumber = 5, - kSqlFieldNumber = 6, + kSourceTableIdsFieldNumber = 2, + kTaskOptionsFieldNumber = 8, + kExpireWhenFieldNumber = 5, + kCommentFieldNumber = 6, + kSqlFieldNumber = 7, kTaskIdFieldNumber = 1, - kOutputTableIdFieldNumber = 2, - kCreateIfNotExistsFieldNumber = 3, + kSinkTableIdFieldNumber = 3, + kCreateIfNotExistsFieldNumber = 4, }; - // map task_options = 7; + // repeated .greptime.v1.TableId source_table_ids = 2; + int source_table_ids_size() const; + private: + int _internal_source_table_ids_size() const; + public: + void clear_source_table_ids(); + ::greptime::v1::TableId* mutable_source_table_ids(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableId >* + mutable_source_table_ids(); + private: + const ::greptime::v1::TableId& _internal_source_table_ids(int index) const; + ::greptime::v1::TableId* _internal_add_source_table_ids(); + public: + const ::greptime::v1::TableId& source_table_ids(int index) const; + ::greptime::v1::TableId* add_source_table_ids(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableId >& + source_table_ids() const; + + // map task_options = 8; int task_options_size() const; private: int _internal_task_options_size() const; @@ -1038,7 +1057,7 @@ class FlowCreateRequest final : ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* mutable_task_options(); - // string expire_when = 4; + // string expire_when = 5; void clear_expire_when(); const std::string& expire_when() const; template @@ -1052,7 +1071,7 @@ class FlowCreateRequest final : std::string* _internal_mutable_expire_when(); public: - // string comment = 5; + // string comment = 6; void clear_comment(); const std::string& comment() const; template @@ -1066,7 +1085,7 @@ class FlowCreateRequest final : std::string* _internal_mutable_comment(); public: - // string sql = 6; + // string sql = 7; void clear_sql(); const std::string& sql() const; template @@ -1098,25 +1117,25 @@ class FlowCreateRequest final : ::greptime::v1::flow::TaskId* task_id); ::greptime::v1::flow::TaskId* unsafe_arena_release_task_id(); - // .greptime.v1.TableId output_table_id = 2; - bool has_output_table_id() const; + // .greptime.v1.TableId sink_table_id = 3; + bool has_sink_table_id() const; private: - bool _internal_has_output_table_id() const; + bool _internal_has_sink_table_id() const; public: - void clear_output_table_id(); - const ::greptime::v1::TableId& output_table_id() const; - PROTOBUF_NODISCARD ::greptime::v1::TableId* release_output_table_id(); - ::greptime::v1::TableId* mutable_output_table_id(); - void set_allocated_output_table_id(::greptime::v1::TableId* output_table_id); + void clear_sink_table_id(); + const ::greptime::v1::TableId& sink_table_id() const; + PROTOBUF_NODISCARD ::greptime::v1::TableId* release_sink_table_id(); + ::greptime::v1::TableId* mutable_sink_table_id(); + void set_allocated_sink_table_id(::greptime::v1::TableId* sink_table_id); private: - const ::greptime::v1::TableId& _internal_output_table_id() const; - ::greptime::v1::TableId* _internal_mutable_output_table_id(); + const ::greptime::v1::TableId& _internal_sink_table_id() const; + ::greptime::v1::TableId* _internal_mutable_sink_table_id(); public: - void unsafe_arena_set_allocated_output_table_id( - ::greptime::v1::TableId* output_table_id); - ::greptime::v1::TableId* unsafe_arena_release_output_table_id(); + void unsafe_arena_set_allocated_sink_table_id( + ::greptime::v1::TableId* sink_table_id); + ::greptime::v1::TableId* unsafe_arena_release_sink_table_id(); - // bool create_if_not_exists = 3; + // bool create_if_not_exists = 4; void clear_create_if_not_exists(); bool create_if_not_exists() const; void set_create_if_not_exists(bool value); @@ -1125,7 +1144,7 @@ class FlowCreateRequest final : void _internal_set_create_if_not_exists(bool value); public: - // @@protoc_insertion_point(class_scope:greptime.v1.flow.FlowCreateRequest) + // @@protoc_insertion_point(class_scope:greptime.v1.flow.CreateRequest) private: class _Internal; @@ -1133,8 +1152,9 @@ class FlowCreateRequest final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableId > source_table_ids_; ::PROTOBUF_NAMESPACE_ID::internal::MapField< - FlowCreateRequest_TaskOptionsEntry_DoNotUse, + CreateRequest_TaskOptionsEntry_DoNotUse, std::string, std::string, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> task_options_; @@ -1142,7 +1162,7 @@ class FlowCreateRequest final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_; ::greptime::v1::flow::TaskId* task_id_; - ::greptime::v1::TableId* output_table_id_; + ::greptime::v1::TableId* sink_table_id_; bool create_if_not_exists_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; @@ -1151,24 +1171,24 @@ class FlowCreateRequest final : }; // ------------------------------------------------------------------- -class FlowRemoveRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.flow.FlowRemoveRequest) */ { +class RemoveRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.flow.RemoveRequest) */ { public: - inline FlowRemoveRequest() : FlowRemoveRequest(nullptr) {} - ~FlowRemoveRequest() override; - explicit PROTOBUF_CONSTEXPR FlowRemoveRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RemoveRequest() : RemoveRequest(nullptr) {} + ~RemoveRequest() override; + explicit PROTOBUF_CONSTEXPR RemoveRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - FlowRemoveRequest(const FlowRemoveRequest& from); - FlowRemoveRequest(FlowRemoveRequest&& from) noexcept - : FlowRemoveRequest() { + RemoveRequest(const RemoveRequest& from); + RemoveRequest(RemoveRequest&& from) noexcept + : RemoveRequest() { *this = ::std::move(from); } - inline FlowRemoveRequest& operator=(const FlowRemoveRequest& from) { + inline RemoveRequest& operator=(const RemoveRequest& from) { CopyFrom(from); return *this; } - inline FlowRemoveRequest& operator=(FlowRemoveRequest&& from) noexcept { + inline RemoveRequest& operator=(RemoveRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1191,20 +1211,20 @@ class FlowRemoveRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlowRemoveRequest& default_instance() { + static const RemoveRequest& default_instance() { return *internal_default_instance(); } - static inline const FlowRemoveRequest* internal_default_instance() { - return reinterpret_cast( - &_FlowRemoveRequest_default_instance_); + static inline const RemoveRequest* internal_default_instance() { + return reinterpret_cast( + &_RemoveRequest_default_instance_); } static constexpr int kIndexInFileMessages = 7; - friend void swap(FlowRemoveRequest& a, FlowRemoveRequest& b) { + friend void swap(RemoveRequest& a, RemoveRequest& b) { a.Swap(&b); } - inline void Swap(FlowRemoveRequest* other) { + inline void Swap(RemoveRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1217,7 +1237,7 @@ class FlowRemoveRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlowRemoveRequest* other) { + void UnsafeArenaSwap(RemoveRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1225,14 +1245,14 @@ class FlowRemoveRequest final : // implements Message ---------------------------------------------- - FlowRemoveRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RemoveRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const FlowRemoveRequest& from); + void CopyFrom(const RemoveRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FlowRemoveRequest& from) { - FlowRemoveRequest::MergeImpl(*this, from); + void MergeFrom( const RemoveRequest& from) { + RemoveRequest::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -1250,15 +1270,15 @@ class FlowRemoveRequest final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(FlowRemoveRequest* other); + void InternalSwap(RemoveRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.flow.FlowRemoveRequest"; + return "greptime.v1.flow.RemoveRequest"; } protected: - explicit FlowRemoveRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit RemoveRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1292,7 +1312,7 @@ class FlowRemoveRequest final : ::greptime::v1::flow::TaskId* task_id); ::greptime::v1::flow::TaskId* unsafe_arena_release_task_id(); - // @@protoc_insertion_point(class_scope:greptime.v1.flow.FlowRemoveRequest) + // @@protoc_insertion_point(class_scope:greptime.v1.flow.RemoveRequest) private: class _Internal; @@ -1431,13 +1451,13 @@ class TaskId final : enum : int { kIdFieldNumber = 1, }; - // uint64 id = 1; + // uint32 id = 1; void clear_id(); - uint64_t id() const; - void set_id(uint64_t value); + uint32_t id() const; + void set_id(uint32_t value); private: - uint64_t _internal_id() const; - void _internal_set_id(uint64_t value); + uint32_t _internal_id() const; + void _internal_set_id(uint32_t value); public: // @@protoc_insertion_point(class_scope:greptime.v1.flow.TaskId) @@ -1448,7 +1468,7 @@ class TaskId final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - uint64_t id_; + uint32_t id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -1618,7 +1638,7 @@ inline void InsertRequest::set_allocated_rows(::greptime::v1::Rows* rows) { // FlowRequest -// .greptime.v1.flow.FlowCreateRequest create = 1; +// .greptime.v1.flow.CreateRequest create = 1; inline bool FlowRequest::_internal_has_create() const { return body_case() == kCreate; } @@ -1636,11 +1656,11 @@ inline void FlowRequest::clear_create() { clear_has_body(); } } -inline ::greptime::v1::flow::FlowCreateRequest* FlowRequest::release_create() { +inline ::greptime::v1::flow::CreateRequest* FlowRequest::release_create() { // @@protoc_insertion_point(field_release:greptime.v1.flow.FlowRequest.create) if (_internal_has_create()) { clear_has_body(); - ::greptime::v1::flow::FlowCreateRequest* temp = _impl_.body_.create_; + ::greptime::v1::flow::CreateRequest* temp = _impl_.body_.create_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } @@ -1650,27 +1670,27 @@ inline ::greptime::v1::flow::FlowCreateRequest* FlowRequest::release_create() { return nullptr; } } -inline const ::greptime::v1::flow::FlowCreateRequest& FlowRequest::_internal_create() const { +inline const ::greptime::v1::flow::CreateRequest& FlowRequest::_internal_create() const { return _internal_has_create() ? *_impl_.body_.create_ - : reinterpret_cast< ::greptime::v1::flow::FlowCreateRequest&>(::greptime::v1::flow::_FlowCreateRequest_default_instance_); + : reinterpret_cast< ::greptime::v1::flow::CreateRequest&>(::greptime::v1::flow::_CreateRequest_default_instance_); } -inline const ::greptime::v1::flow::FlowCreateRequest& FlowRequest::create() const { +inline const ::greptime::v1::flow::CreateRequest& FlowRequest::create() const { // @@protoc_insertion_point(field_get:greptime.v1.flow.FlowRequest.create) return _internal_create(); } -inline ::greptime::v1::flow::FlowCreateRequest* FlowRequest::unsafe_arena_release_create() { +inline ::greptime::v1::flow::CreateRequest* FlowRequest::unsafe_arena_release_create() { // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.flow.FlowRequest.create) if (_internal_has_create()) { clear_has_body(); - ::greptime::v1::flow::FlowCreateRequest* temp = _impl_.body_.create_; + ::greptime::v1::flow::CreateRequest* temp = _impl_.body_.create_; _impl_.body_.create_ = nullptr; return temp; } else { return nullptr; } } -inline void FlowRequest::unsafe_arena_set_allocated_create(::greptime::v1::flow::FlowCreateRequest* create) { +inline void FlowRequest::unsafe_arena_set_allocated_create(::greptime::v1::flow::CreateRequest* create) { clear_body(); if (create) { set_has_create(); @@ -1678,21 +1698,21 @@ inline void FlowRequest::unsafe_arena_set_allocated_create(::greptime::v1::flow: } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.FlowRequest.create) } -inline ::greptime::v1::flow::FlowCreateRequest* FlowRequest::_internal_mutable_create() { +inline ::greptime::v1::flow::CreateRequest* FlowRequest::_internal_mutable_create() { if (!_internal_has_create()) { clear_body(); set_has_create(); - _impl_.body_.create_ = CreateMaybeMessage< ::greptime::v1::flow::FlowCreateRequest >(GetArenaForAllocation()); + _impl_.body_.create_ = CreateMaybeMessage< ::greptime::v1::flow::CreateRequest >(GetArenaForAllocation()); } return _impl_.body_.create_; } -inline ::greptime::v1::flow::FlowCreateRequest* FlowRequest::mutable_create() { - ::greptime::v1::flow::FlowCreateRequest* _msg = _internal_mutable_create(); +inline ::greptime::v1::flow::CreateRequest* FlowRequest::mutable_create() { + ::greptime::v1::flow::CreateRequest* _msg = _internal_mutable_create(); // @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowRequest.create) return _msg; } -// .greptime.v1.flow.FlowRemoveRequest remove = 2; +// .greptime.v1.flow.RemoveRequest remove = 2; inline bool FlowRequest::_internal_has_remove() const { return body_case() == kRemove; } @@ -1710,11 +1730,11 @@ inline void FlowRequest::clear_remove() { clear_has_body(); } } -inline ::greptime::v1::flow::FlowRemoveRequest* FlowRequest::release_remove() { +inline ::greptime::v1::flow::RemoveRequest* FlowRequest::release_remove() { // @@protoc_insertion_point(field_release:greptime.v1.flow.FlowRequest.remove) if (_internal_has_remove()) { clear_has_body(); - ::greptime::v1::flow::FlowRemoveRequest* temp = _impl_.body_.remove_; + ::greptime::v1::flow::RemoveRequest* temp = _impl_.body_.remove_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } @@ -1724,27 +1744,27 @@ inline ::greptime::v1::flow::FlowRemoveRequest* FlowRequest::release_remove() { return nullptr; } } -inline const ::greptime::v1::flow::FlowRemoveRequest& FlowRequest::_internal_remove() const { +inline const ::greptime::v1::flow::RemoveRequest& FlowRequest::_internal_remove() const { return _internal_has_remove() ? *_impl_.body_.remove_ - : reinterpret_cast< ::greptime::v1::flow::FlowRemoveRequest&>(::greptime::v1::flow::_FlowRemoveRequest_default_instance_); + : reinterpret_cast< ::greptime::v1::flow::RemoveRequest&>(::greptime::v1::flow::_RemoveRequest_default_instance_); } -inline const ::greptime::v1::flow::FlowRemoveRequest& FlowRequest::remove() const { +inline const ::greptime::v1::flow::RemoveRequest& FlowRequest::remove() const { // @@protoc_insertion_point(field_get:greptime.v1.flow.FlowRequest.remove) return _internal_remove(); } -inline ::greptime::v1::flow::FlowRemoveRequest* FlowRequest::unsafe_arena_release_remove() { +inline ::greptime::v1::flow::RemoveRequest* FlowRequest::unsafe_arena_release_remove() { // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.flow.FlowRequest.remove) if (_internal_has_remove()) { clear_has_body(); - ::greptime::v1::flow::FlowRemoveRequest* temp = _impl_.body_.remove_; + ::greptime::v1::flow::RemoveRequest* temp = _impl_.body_.remove_; _impl_.body_.remove_ = nullptr; return temp; } else { return nullptr; } } -inline void FlowRequest::unsafe_arena_set_allocated_remove(::greptime::v1::flow::FlowRemoveRequest* remove) { +inline void FlowRequest::unsafe_arena_set_allocated_remove(::greptime::v1::flow::RemoveRequest* remove) { clear_body(); if (remove) { set_has_remove(); @@ -1752,16 +1772,16 @@ inline void FlowRequest::unsafe_arena_set_allocated_remove(::greptime::v1::flow: } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.FlowRequest.remove) } -inline ::greptime::v1::flow::FlowRemoveRequest* FlowRequest::_internal_mutable_remove() { +inline ::greptime::v1::flow::RemoveRequest* FlowRequest::_internal_mutable_remove() { if (!_internal_has_remove()) { clear_body(); set_has_remove(); - _impl_.body_.remove_ = CreateMaybeMessage< ::greptime::v1::flow::FlowRemoveRequest >(GetArenaForAllocation()); + _impl_.body_.remove_ = CreateMaybeMessage< ::greptime::v1::flow::RemoveRequest >(GetArenaForAllocation()); } return _impl_.body_.remove_; } -inline ::greptime::v1::flow::FlowRemoveRequest* FlowRequest::mutable_remove() { - ::greptime::v1::flow::FlowRemoveRequest* _msg = _internal_mutable_remove(); +inline ::greptime::v1::flow::RemoveRequest* FlowRequest::mutable_remove() { + ::greptime::v1::flow::RemoveRequest* _msg = _internal_mutable_remove(); // @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowRequest.remove) return _msg; } @@ -1959,31 +1979,31 @@ FlowResponse::affected_tasks() const { // ------------------------------------------------------------------- -// FlowCreateRequest +// CreateRequest // .greptime.v1.flow.TaskId task_id = 1; -inline bool FlowCreateRequest::_internal_has_task_id() const { +inline bool CreateRequest::_internal_has_task_id() const { return this != internal_default_instance() && _impl_.task_id_ != nullptr; } -inline bool FlowCreateRequest::has_task_id() const { +inline bool CreateRequest::has_task_id() const { return _internal_has_task_id(); } -inline void FlowCreateRequest::clear_task_id() { +inline void CreateRequest::clear_task_id() { if (GetArenaForAllocation() == nullptr && _impl_.task_id_ != nullptr) { delete _impl_.task_id_; } _impl_.task_id_ = nullptr; } -inline const ::greptime::v1::flow::TaskId& FlowCreateRequest::_internal_task_id() const { +inline const ::greptime::v1::flow::TaskId& CreateRequest::_internal_task_id() const { const ::greptime::v1::flow::TaskId* p = _impl_.task_id_; return p != nullptr ? *p : reinterpret_cast( ::greptime::v1::flow::_TaskId_default_instance_); } -inline const ::greptime::v1::flow::TaskId& FlowCreateRequest::task_id() const { - // @@protoc_insertion_point(field_get:greptime.v1.flow.FlowCreateRequest.task_id) +inline const ::greptime::v1::flow::TaskId& CreateRequest::task_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.flow.CreateRequest.task_id) return _internal_task_id(); } -inline void FlowCreateRequest::unsafe_arena_set_allocated_task_id( +inline void CreateRequest::unsafe_arena_set_allocated_task_id( ::greptime::v1::flow::TaskId* task_id) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.task_id_); @@ -1994,9 +2014,9 @@ inline void FlowCreateRequest::unsafe_arena_set_allocated_task_id( } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.FlowCreateRequest.task_id) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.CreateRequest.task_id) } -inline ::greptime::v1::flow::TaskId* FlowCreateRequest::release_task_id() { +inline ::greptime::v1::flow::TaskId* CreateRequest::release_task_id() { ::greptime::v1::flow::TaskId* temp = _impl_.task_id_; _impl_.task_id_ = nullptr; @@ -2011,14 +2031,14 @@ inline ::greptime::v1::flow::TaskId* FlowCreateRequest::release_task_id() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::greptime::v1::flow::TaskId* FlowCreateRequest::unsafe_arena_release_task_id() { - // @@protoc_insertion_point(field_release:greptime.v1.flow.FlowCreateRequest.task_id) +inline ::greptime::v1::flow::TaskId* CreateRequest::unsafe_arena_release_task_id() { + // @@protoc_insertion_point(field_release:greptime.v1.flow.CreateRequest.task_id) ::greptime::v1::flow::TaskId* temp = _impl_.task_id_; _impl_.task_id_ = nullptr; return temp; } -inline ::greptime::v1::flow::TaskId* FlowCreateRequest::_internal_mutable_task_id() { +inline ::greptime::v1::flow::TaskId* CreateRequest::_internal_mutable_task_id() { if (_impl_.task_id_ == nullptr) { auto* p = CreateMaybeMessage<::greptime::v1::flow::TaskId>(GetArenaForAllocation()); @@ -2026,12 +2046,12 @@ inline ::greptime::v1::flow::TaskId* FlowCreateRequest::_internal_mutable_task_i } return _impl_.task_id_; } -inline ::greptime::v1::flow::TaskId* FlowCreateRequest::mutable_task_id() { +inline ::greptime::v1::flow::TaskId* CreateRequest::mutable_task_id() { ::greptime::v1::flow::TaskId* _msg = _internal_mutable_task_id(); - // @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowCreateRequest.task_id) + // @@protoc_insertion_point(field_mutable:greptime.v1.flow.CreateRequest.task_id) return _msg; } -inline void FlowCreateRequest::set_allocated_task_id(::greptime::v1::flow::TaskId* task_id) { +inline void CreateRequest::set_allocated_task_id(::greptime::v1::flow::TaskId* task_id) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete _impl_.task_id_; @@ -2048,42 +2068,79 @@ inline void FlowCreateRequest::set_allocated_task_id(::greptime::v1::flow::TaskI } _impl_.task_id_ = task_id; - // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowCreateRequest.task_id) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.CreateRequest.task_id) +} + +// repeated .greptime.v1.TableId source_table_ids = 2; +inline int CreateRequest::_internal_source_table_ids_size() const { + return _impl_.source_table_ids_.size(); +} +inline int CreateRequest::source_table_ids_size() const { + return _internal_source_table_ids_size(); +} +inline ::greptime::v1::TableId* CreateRequest::mutable_source_table_ids(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.flow.CreateRequest.source_table_ids) + return _impl_.source_table_ids_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableId >* +CreateRequest::mutable_source_table_ids() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.flow.CreateRequest.source_table_ids) + return &_impl_.source_table_ids_; +} +inline const ::greptime::v1::TableId& CreateRequest::_internal_source_table_ids(int index) const { + return _impl_.source_table_ids_.Get(index); +} +inline const ::greptime::v1::TableId& CreateRequest::source_table_ids(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.flow.CreateRequest.source_table_ids) + return _internal_source_table_ids(index); +} +inline ::greptime::v1::TableId* CreateRequest::_internal_add_source_table_ids() { + return _impl_.source_table_ids_.Add(); +} +inline ::greptime::v1::TableId* CreateRequest::add_source_table_ids() { + ::greptime::v1::TableId* _add = _internal_add_source_table_ids(); + // @@protoc_insertion_point(field_add:greptime.v1.flow.CreateRequest.source_table_ids) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableId >& +CreateRequest::source_table_ids() const { + // @@protoc_insertion_point(field_list:greptime.v1.flow.CreateRequest.source_table_ids) + return _impl_.source_table_ids_; } -// .greptime.v1.TableId output_table_id = 2; -inline bool FlowCreateRequest::_internal_has_output_table_id() const { - return this != internal_default_instance() && _impl_.output_table_id_ != nullptr; +// .greptime.v1.TableId sink_table_id = 3; +inline bool CreateRequest::_internal_has_sink_table_id() const { + return this != internal_default_instance() && _impl_.sink_table_id_ != nullptr; } -inline bool FlowCreateRequest::has_output_table_id() const { - return _internal_has_output_table_id(); +inline bool CreateRequest::has_sink_table_id() const { + return _internal_has_sink_table_id(); } -inline const ::greptime::v1::TableId& FlowCreateRequest::_internal_output_table_id() const { - const ::greptime::v1::TableId* p = _impl_.output_table_id_; +inline const ::greptime::v1::TableId& CreateRequest::_internal_sink_table_id() const { + const ::greptime::v1::TableId* p = _impl_.sink_table_id_; return p != nullptr ? *p : reinterpret_cast( ::greptime::v1::_TableId_default_instance_); } -inline const ::greptime::v1::TableId& FlowCreateRequest::output_table_id() const { - // @@protoc_insertion_point(field_get:greptime.v1.flow.FlowCreateRequest.output_table_id) - return _internal_output_table_id(); +inline const ::greptime::v1::TableId& CreateRequest::sink_table_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.flow.CreateRequest.sink_table_id) + return _internal_sink_table_id(); } -inline void FlowCreateRequest::unsafe_arena_set_allocated_output_table_id( - ::greptime::v1::TableId* output_table_id) { +inline void CreateRequest::unsafe_arena_set_allocated_sink_table_id( + ::greptime::v1::TableId* sink_table_id) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.output_table_id_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sink_table_id_); } - _impl_.output_table_id_ = output_table_id; - if (output_table_id) { + _impl_.sink_table_id_ = sink_table_id; + if (sink_table_id) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.FlowCreateRequest.output_table_id) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.CreateRequest.sink_table_id) } -inline ::greptime::v1::TableId* FlowCreateRequest::release_output_table_id() { +inline ::greptime::v1::TableId* CreateRequest::release_sink_table_id() { - ::greptime::v1::TableId* temp = _impl_.output_table_id_; - _impl_.output_table_id_ = nullptr; + ::greptime::v1::TableId* temp = _impl_.sink_table_id_; + _impl_.sink_table_id_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -2095,103 +2152,103 @@ inline ::greptime::v1::TableId* FlowCreateRequest::release_output_table_id() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::greptime::v1::TableId* FlowCreateRequest::unsafe_arena_release_output_table_id() { - // @@protoc_insertion_point(field_release:greptime.v1.flow.FlowCreateRequest.output_table_id) +inline ::greptime::v1::TableId* CreateRequest::unsafe_arena_release_sink_table_id() { + // @@protoc_insertion_point(field_release:greptime.v1.flow.CreateRequest.sink_table_id) - ::greptime::v1::TableId* temp = _impl_.output_table_id_; - _impl_.output_table_id_ = nullptr; + ::greptime::v1::TableId* temp = _impl_.sink_table_id_; + _impl_.sink_table_id_ = nullptr; return temp; } -inline ::greptime::v1::TableId* FlowCreateRequest::_internal_mutable_output_table_id() { +inline ::greptime::v1::TableId* CreateRequest::_internal_mutable_sink_table_id() { - if (_impl_.output_table_id_ == nullptr) { + if (_impl_.sink_table_id_ == nullptr) { auto* p = CreateMaybeMessage<::greptime::v1::TableId>(GetArenaForAllocation()); - _impl_.output_table_id_ = p; + _impl_.sink_table_id_ = p; } - return _impl_.output_table_id_; + return _impl_.sink_table_id_; } -inline ::greptime::v1::TableId* FlowCreateRequest::mutable_output_table_id() { - ::greptime::v1::TableId* _msg = _internal_mutable_output_table_id(); - // @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowCreateRequest.output_table_id) +inline ::greptime::v1::TableId* CreateRequest::mutable_sink_table_id() { + ::greptime::v1::TableId* _msg = _internal_mutable_sink_table_id(); + // @@protoc_insertion_point(field_mutable:greptime.v1.flow.CreateRequest.sink_table_id) return _msg; } -inline void FlowCreateRequest::set_allocated_output_table_id(::greptime::v1::TableId* output_table_id) { +inline void CreateRequest::set_allocated_sink_table_id(::greptime::v1::TableId* sink_table_id) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.output_table_id_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sink_table_id_); } - if (output_table_id) { + if (sink_table_id) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(output_table_id)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sink_table_id)); if (message_arena != submessage_arena) { - output_table_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, output_table_id, submessage_arena); + sink_table_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sink_table_id, submessage_arena); } } else { } - _impl_.output_table_id_ = output_table_id; - // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowCreateRequest.output_table_id) + _impl_.sink_table_id_ = sink_table_id; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.CreateRequest.sink_table_id) } -// bool create_if_not_exists = 3; -inline void FlowCreateRequest::clear_create_if_not_exists() { +// bool create_if_not_exists = 4; +inline void CreateRequest::clear_create_if_not_exists() { _impl_.create_if_not_exists_ = false; } -inline bool FlowCreateRequest::_internal_create_if_not_exists() const { +inline bool CreateRequest::_internal_create_if_not_exists() const { return _impl_.create_if_not_exists_; } -inline bool FlowCreateRequest::create_if_not_exists() const { - // @@protoc_insertion_point(field_get:greptime.v1.flow.FlowCreateRequest.create_if_not_exists) +inline bool CreateRequest::create_if_not_exists() const { + // @@protoc_insertion_point(field_get:greptime.v1.flow.CreateRequest.create_if_not_exists) return _internal_create_if_not_exists(); } -inline void FlowCreateRequest::_internal_set_create_if_not_exists(bool value) { +inline void CreateRequest::_internal_set_create_if_not_exists(bool value) { _impl_.create_if_not_exists_ = value; } -inline void FlowCreateRequest::set_create_if_not_exists(bool value) { +inline void CreateRequest::set_create_if_not_exists(bool value) { _internal_set_create_if_not_exists(value); - // @@protoc_insertion_point(field_set:greptime.v1.flow.FlowCreateRequest.create_if_not_exists) + // @@protoc_insertion_point(field_set:greptime.v1.flow.CreateRequest.create_if_not_exists) } -// string expire_when = 4; -inline void FlowCreateRequest::clear_expire_when() { +// string expire_when = 5; +inline void CreateRequest::clear_expire_when() { _impl_.expire_when_.ClearToEmpty(); } -inline const std::string& FlowCreateRequest::expire_when() const { - // @@protoc_insertion_point(field_get:greptime.v1.flow.FlowCreateRequest.expire_when) +inline const std::string& CreateRequest::expire_when() const { + // @@protoc_insertion_point(field_get:greptime.v1.flow.CreateRequest.expire_when) return _internal_expire_when(); } template inline PROTOBUF_ALWAYS_INLINE -void FlowCreateRequest::set_expire_when(ArgT0&& arg0, ArgT... args) { +void CreateRequest::set_expire_when(ArgT0&& arg0, ArgT... args) { _impl_.expire_when_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.flow.FlowCreateRequest.expire_when) + // @@protoc_insertion_point(field_set:greptime.v1.flow.CreateRequest.expire_when) } -inline std::string* FlowCreateRequest::mutable_expire_when() { +inline std::string* CreateRequest::mutable_expire_when() { std::string* _s = _internal_mutable_expire_when(); - // @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowCreateRequest.expire_when) + // @@protoc_insertion_point(field_mutable:greptime.v1.flow.CreateRequest.expire_when) return _s; } -inline const std::string& FlowCreateRequest::_internal_expire_when() const { +inline const std::string& CreateRequest::_internal_expire_when() const { return _impl_.expire_when_.Get(); } -inline void FlowCreateRequest::_internal_set_expire_when(const std::string& value) { +inline void CreateRequest::_internal_set_expire_when(const std::string& value) { _impl_.expire_when_.Set(value, GetArenaForAllocation()); } -inline std::string* FlowCreateRequest::_internal_mutable_expire_when() { +inline std::string* CreateRequest::_internal_mutable_expire_when() { return _impl_.expire_when_.Mutable(GetArenaForAllocation()); } -inline std::string* FlowCreateRequest::release_expire_when() { - // @@protoc_insertion_point(field_release:greptime.v1.flow.FlowCreateRequest.expire_when) +inline std::string* CreateRequest::release_expire_when() { + // @@protoc_insertion_point(field_release:greptime.v1.flow.CreateRequest.expire_when) return _impl_.expire_when_.Release(); } -inline void FlowCreateRequest::set_allocated_expire_when(std::string* expire_when) { +inline void CreateRequest::set_allocated_expire_when(std::string* expire_when) { if (expire_when != nullptr) { } else { @@ -2203,45 +2260,45 @@ inline void FlowCreateRequest::set_allocated_expire_when(std::string* expire_whe _impl_.expire_when_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowCreateRequest.expire_when) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.CreateRequest.expire_when) } -// string comment = 5; -inline void FlowCreateRequest::clear_comment() { +// string comment = 6; +inline void CreateRequest::clear_comment() { _impl_.comment_.ClearToEmpty(); } -inline const std::string& FlowCreateRequest::comment() const { - // @@protoc_insertion_point(field_get:greptime.v1.flow.FlowCreateRequest.comment) +inline const std::string& CreateRequest::comment() const { + // @@protoc_insertion_point(field_get:greptime.v1.flow.CreateRequest.comment) return _internal_comment(); } template inline PROTOBUF_ALWAYS_INLINE -void FlowCreateRequest::set_comment(ArgT0&& arg0, ArgT... args) { +void CreateRequest::set_comment(ArgT0&& arg0, ArgT... args) { _impl_.comment_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.flow.FlowCreateRequest.comment) + // @@protoc_insertion_point(field_set:greptime.v1.flow.CreateRequest.comment) } -inline std::string* FlowCreateRequest::mutable_comment() { +inline std::string* CreateRequest::mutable_comment() { std::string* _s = _internal_mutable_comment(); - // @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowCreateRequest.comment) + // @@protoc_insertion_point(field_mutable:greptime.v1.flow.CreateRequest.comment) return _s; } -inline const std::string& FlowCreateRequest::_internal_comment() const { +inline const std::string& CreateRequest::_internal_comment() const { return _impl_.comment_.Get(); } -inline void FlowCreateRequest::_internal_set_comment(const std::string& value) { +inline void CreateRequest::_internal_set_comment(const std::string& value) { _impl_.comment_.Set(value, GetArenaForAllocation()); } -inline std::string* FlowCreateRequest::_internal_mutable_comment() { +inline std::string* CreateRequest::_internal_mutable_comment() { return _impl_.comment_.Mutable(GetArenaForAllocation()); } -inline std::string* FlowCreateRequest::release_comment() { - // @@protoc_insertion_point(field_release:greptime.v1.flow.FlowCreateRequest.comment) +inline std::string* CreateRequest::release_comment() { + // @@protoc_insertion_point(field_release:greptime.v1.flow.CreateRequest.comment) return _impl_.comment_.Release(); } -inline void FlowCreateRequest::set_allocated_comment(std::string* comment) { +inline void CreateRequest::set_allocated_comment(std::string* comment) { if (comment != nullptr) { } else { @@ -2253,45 +2310,45 @@ inline void FlowCreateRequest::set_allocated_comment(std::string* comment) { _impl_.comment_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowCreateRequest.comment) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.CreateRequest.comment) } -// string sql = 6; -inline void FlowCreateRequest::clear_sql() { +// string sql = 7; +inline void CreateRequest::clear_sql() { _impl_.sql_.ClearToEmpty(); } -inline const std::string& FlowCreateRequest::sql() const { - // @@protoc_insertion_point(field_get:greptime.v1.flow.FlowCreateRequest.sql) +inline const std::string& CreateRequest::sql() const { + // @@protoc_insertion_point(field_get:greptime.v1.flow.CreateRequest.sql) return _internal_sql(); } template inline PROTOBUF_ALWAYS_INLINE -void FlowCreateRequest::set_sql(ArgT0&& arg0, ArgT... args) { +void CreateRequest::set_sql(ArgT0&& arg0, ArgT... args) { _impl_.sql_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.flow.FlowCreateRequest.sql) + // @@protoc_insertion_point(field_set:greptime.v1.flow.CreateRequest.sql) } -inline std::string* FlowCreateRequest::mutable_sql() { +inline std::string* CreateRequest::mutable_sql() { std::string* _s = _internal_mutable_sql(); - // @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowCreateRequest.sql) + // @@protoc_insertion_point(field_mutable:greptime.v1.flow.CreateRequest.sql) return _s; } -inline const std::string& FlowCreateRequest::_internal_sql() const { +inline const std::string& CreateRequest::_internal_sql() const { return _impl_.sql_.Get(); } -inline void FlowCreateRequest::_internal_set_sql(const std::string& value) { +inline void CreateRequest::_internal_set_sql(const std::string& value) { _impl_.sql_.Set(value, GetArenaForAllocation()); } -inline std::string* FlowCreateRequest::_internal_mutable_sql() { +inline std::string* CreateRequest::_internal_mutable_sql() { return _impl_.sql_.Mutable(GetArenaForAllocation()); } -inline std::string* FlowCreateRequest::release_sql() { - // @@protoc_insertion_point(field_release:greptime.v1.flow.FlowCreateRequest.sql) +inline std::string* CreateRequest::release_sql() { + // @@protoc_insertion_point(field_release:greptime.v1.flow.CreateRequest.sql) return _impl_.sql_.Release(); } -inline void FlowCreateRequest::set_allocated_sql(std::string* sql) { +inline void CreateRequest::set_allocated_sql(std::string* sql) { if (sql != nullptr) { } else { @@ -2303,65 +2360,65 @@ inline void FlowCreateRequest::set_allocated_sql(std::string* sql) { _impl_.sql_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowCreateRequest.sql) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.CreateRequest.sql) } -// map task_options = 7; -inline int FlowCreateRequest::_internal_task_options_size() const { +// map task_options = 8; +inline int CreateRequest::_internal_task_options_size() const { return _impl_.task_options_.size(); } -inline int FlowCreateRequest::task_options_size() const { +inline int CreateRequest::task_options_size() const { return _internal_task_options_size(); } -inline void FlowCreateRequest::clear_task_options() { +inline void CreateRequest::clear_task_options() { _impl_.task_options_.Clear(); } inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -FlowCreateRequest::_internal_task_options() const { +CreateRequest::_internal_task_options() const { return _impl_.task_options_.GetMap(); } inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -FlowCreateRequest::task_options() const { - // @@protoc_insertion_point(field_map:greptime.v1.flow.FlowCreateRequest.task_options) +CreateRequest::task_options() const { + // @@protoc_insertion_point(field_map:greptime.v1.flow.CreateRequest.task_options) return _internal_task_options(); } inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -FlowCreateRequest::_internal_mutable_task_options() { +CreateRequest::_internal_mutable_task_options() { return _impl_.task_options_.MutableMap(); } inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -FlowCreateRequest::mutable_task_options() { - // @@protoc_insertion_point(field_mutable_map:greptime.v1.flow.FlowCreateRequest.task_options) +CreateRequest::mutable_task_options() { + // @@protoc_insertion_point(field_mutable_map:greptime.v1.flow.CreateRequest.task_options) return _internal_mutable_task_options(); } // ------------------------------------------------------------------- -// FlowRemoveRequest +// RemoveRequest // .greptime.v1.flow.TaskId task_id = 1; -inline bool FlowRemoveRequest::_internal_has_task_id() const { +inline bool RemoveRequest::_internal_has_task_id() const { return this != internal_default_instance() && _impl_.task_id_ != nullptr; } -inline bool FlowRemoveRequest::has_task_id() const { +inline bool RemoveRequest::has_task_id() const { return _internal_has_task_id(); } -inline void FlowRemoveRequest::clear_task_id() { +inline void RemoveRequest::clear_task_id() { if (GetArenaForAllocation() == nullptr && _impl_.task_id_ != nullptr) { delete _impl_.task_id_; } _impl_.task_id_ = nullptr; } -inline const ::greptime::v1::flow::TaskId& FlowRemoveRequest::_internal_task_id() const { +inline const ::greptime::v1::flow::TaskId& RemoveRequest::_internal_task_id() const { const ::greptime::v1::flow::TaskId* p = _impl_.task_id_; return p != nullptr ? *p : reinterpret_cast( ::greptime::v1::flow::_TaskId_default_instance_); } -inline const ::greptime::v1::flow::TaskId& FlowRemoveRequest::task_id() const { - // @@protoc_insertion_point(field_get:greptime.v1.flow.FlowRemoveRequest.task_id) +inline const ::greptime::v1::flow::TaskId& RemoveRequest::task_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.flow.RemoveRequest.task_id) return _internal_task_id(); } -inline void FlowRemoveRequest::unsafe_arena_set_allocated_task_id( +inline void RemoveRequest::unsafe_arena_set_allocated_task_id( ::greptime::v1::flow::TaskId* task_id) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.task_id_); @@ -2372,9 +2429,9 @@ inline void FlowRemoveRequest::unsafe_arena_set_allocated_task_id( } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.FlowRemoveRequest.task_id) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.RemoveRequest.task_id) } -inline ::greptime::v1::flow::TaskId* FlowRemoveRequest::release_task_id() { +inline ::greptime::v1::flow::TaskId* RemoveRequest::release_task_id() { ::greptime::v1::flow::TaskId* temp = _impl_.task_id_; _impl_.task_id_ = nullptr; @@ -2389,14 +2446,14 @@ inline ::greptime::v1::flow::TaskId* FlowRemoveRequest::release_task_id() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::greptime::v1::flow::TaskId* FlowRemoveRequest::unsafe_arena_release_task_id() { - // @@protoc_insertion_point(field_release:greptime.v1.flow.FlowRemoveRequest.task_id) +inline ::greptime::v1::flow::TaskId* RemoveRequest::unsafe_arena_release_task_id() { + // @@protoc_insertion_point(field_release:greptime.v1.flow.RemoveRequest.task_id) ::greptime::v1::flow::TaskId* temp = _impl_.task_id_; _impl_.task_id_ = nullptr; return temp; } -inline ::greptime::v1::flow::TaskId* FlowRemoveRequest::_internal_mutable_task_id() { +inline ::greptime::v1::flow::TaskId* RemoveRequest::_internal_mutable_task_id() { if (_impl_.task_id_ == nullptr) { auto* p = CreateMaybeMessage<::greptime::v1::flow::TaskId>(GetArenaForAllocation()); @@ -2404,12 +2461,12 @@ inline ::greptime::v1::flow::TaskId* FlowRemoveRequest::_internal_mutable_task_i } return _impl_.task_id_; } -inline ::greptime::v1::flow::TaskId* FlowRemoveRequest::mutable_task_id() { +inline ::greptime::v1::flow::TaskId* RemoveRequest::mutable_task_id() { ::greptime::v1::flow::TaskId* _msg = _internal_mutable_task_id(); - // @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowRemoveRequest.task_id) + // @@protoc_insertion_point(field_mutable:greptime.v1.flow.RemoveRequest.task_id) return _msg; } -inline void FlowRemoveRequest::set_allocated_task_id(::greptime::v1::flow::TaskId* task_id) { +inline void RemoveRequest::set_allocated_task_id(::greptime::v1::flow::TaskId* task_id) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete _impl_.task_id_; @@ -2426,29 +2483,29 @@ inline void FlowRemoveRequest::set_allocated_task_id(::greptime::v1::flow::TaskI } _impl_.task_id_ = task_id; - // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowRemoveRequest.task_id) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.RemoveRequest.task_id) } // ------------------------------------------------------------------- // TaskId -// uint64 id = 1; +// uint32 id = 1; inline void TaskId::clear_id() { - _impl_.id_ = uint64_t{0u}; + _impl_.id_ = 0u; } -inline uint64_t TaskId::_internal_id() const { +inline uint32_t TaskId::_internal_id() const { return _impl_.id_; } -inline uint64_t TaskId::id() const { +inline uint32_t TaskId::id() const { // @@protoc_insertion_point(field_get:greptime.v1.flow.TaskId.id) return _internal_id(); } -inline void TaskId::_internal_set_id(uint64_t value) { +inline void TaskId::_internal_set_id(uint32_t value) { _impl_.id_ = value; } -inline void TaskId::set_id(uint64_t value) { +inline void TaskId::set_id(uint32_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:greptime.v1.flow.TaskId.id) } diff --git a/c++/greptime/v1/meta/ddl.pb.cc b/c++/greptime/v1/meta/ddl.pb.cc index 7ef3cc43..074467d8 100644 --- a/c++/greptime/v1/meta/ddl.pb.cc +++ b/c++/greptime/v1/meta/ddl.pb.cc @@ -142,6 +142,32 @@ struct DropDatabaseTaskDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropDatabaseTaskDefaultTypeInternal _DropDatabaseTask_default_instance_; +PROTOBUF_CONSTEXPR CreateFlowTask::CreateFlowTask( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.create_flow_task_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CreateFlowTaskDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateFlowTaskDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateFlowTaskDefaultTypeInternal() {} + union { + CreateFlowTask _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFlowTaskDefaultTypeInternal _CreateFlowTask_default_instance_; +PROTOBUF_CONSTEXPR DropFlowTask::DropFlowTask( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.drop_flow_task_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DropFlowTaskDefaultTypeInternal { + PROTOBUF_CONSTEXPR DropFlowTaskDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DropFlowTaskDefaultTypeInternal() {} + union { + DropFlowTask _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropFlowTaskDefaultTypeInternal _DropFlowTask_default_instance_; PROTOBUF_CONSTEXPR DdlTaskRequest::DdlTaskRequest( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.header_)*/nullptr @@ -176,7 +202,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace meta } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[11]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[13]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto = nullptr; @@ -247,6 +273,20 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DropDatabaseTask, _impl_.drop_database_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::CreateFlowTask, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::CreateFlowTask, _impl_.create_flow_task_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DropFlowTask, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DropFlowTask, _impl_.drop_flow_task_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_._oneof_case_[0]), @@ -262,6 +302,8 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_.task_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _internal_metadata_), @@ -284,8 +326,10 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 44, -1, -1, sizeof(::greptime::v1::meta::AlterTableTasks)}, { 51, -1, -1, sizeof(::greptime::v1::meta::TruncateTableTask)}, { 58, -1, -1, sizeof(::greptime::v1::meta::DropDatabaseTask)}, - { 65, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)}, - { 82, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)}, + { 65, -1, -1, sizeof(::greptime::v1::meta::CreateFlowTask)}, + { 72, -1, -1, sizeof(::greptime::v1::meta::DropFlowTask)}, + { 79, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)}, + { 98, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -298,6 +342,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::meta::_AlterTableTasks_default_instance_._instance, &::greptime::v1::meta::_TruncateTableTask_default_instance_._instance, &::greptime::v1::meta::_DropDatabaseTask_default_instance_._instance, + &::greptime::v1::meta::_CreateFlowTask_default_instance_._instance, + &::greptime::v1::meta::_DropFlowTask_default_instance_._instance, &::greptime::v1::meta::_DdlTaskRequest_default_instance_._instance, &::greptime::v1::meta::_DdlTaskResponse_default_instance_._instance, }; @@ -323,32 +369,38 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto[] PROTOB "ask\"K\n\021TruncateTableTask\0226\n\016truncate_tab" "le\030\001 \001(\0132\036.greptime.v1.TruncateTableExpr" "\"H\n\020DropDatabaseTask\0224\n\rdrop_database\030\001 " - "\001(\0132\035.greptime.v1.DropDatabaseExpr\"\217\005\n\016D" - "dlTaskRequest\022/\n\006header\030\001 \001(\0132\037.greptime" - ".v1.meta.RequestHeader\022>\n\021create_table_t" - "ask\030\002 \001(\0132!.greptime.v1.meta.CreateTable" - "TaskH\000\022:\n\017drop_table_task\030\003 \001(\0132\037.grepti" - "me.v1.meta.DropTableTaskH\000\022<\n\020alter_tabl" - "e_task\030\004 \001(\0132 .greptime.v1.meta.AlterTab" - "leTaskH\000\022B\n\023truncate_table_task\030\005 \001(\0132#." - "greptime.v1.meta.TruncateTableTaskH\000\022@\n\022" - "create_table_tasks\030\006 \001(\0132\".greptime.v1.m" - "eta.CreateTableTasksH\000\022<\n\020drop_table_tas" - "ks\030\007 \001(\0132 .greptime.v1.meta.DropTableTas" - "ksH\000\022>\n\021alter_table_tasks\030\010 \001(\0132!.grepti" - "me.v1.meta.AlterTableTasksH\000\022@\n\022drop_dat" - "abase_task\030\t \001(\0132\".greptime.v1.meta.Drop" - "DatabaseTaskH\000\022D\n\024create_database_task\030\n" - " \001(\0132$.greptime.v1.meta.CreateDatabaseTa" - "skH\000B\006\n\004task\"\312\001\n\017DdlTaskResponse\0220\n\006head" - "er\030\001 \001(\0132 .greptime.v1.meta.ResponseHead" - "er\022*\n\003pid\030\002 \001(\0132\035.greptime.v1.meta.Proce" - "dureId\022+\n\010table_id\030\004 \001(\0132\031.greptime.v1.m" - "eta.TableId\022,\n\ttable_ids\030\005 \003(\0132\031.greptim" - "e.v1.meta.TableId*#\n\013DdlTaskType\022\n\n\006Crea" - "te\020\000\022\010\n\004Drop\020\001B\n\021create_table_task\030\002 \001(\0132!." + "greptime.v1.meta.CreateTableTaskH\000\022:\n\017dr" + "op_table_task\030\003 \001(\0132\037.greptime.v1.meta.D" + "ropTableTaskH\000\022<\n\020alter_table_task\030\004 \001(\013" + "2 .greptime.v1.meta.AlterTableTaskH\000\022B\n\023" + "truncate_table_task\030\005 \001(\0132#.greptime.v1." + "meta.TruncateTableTaskH\000\022@\n\022create_table" + "_tasks\030\006 \001(\0132\".greptime.v1.meta.CreateTa" + "bleTasksH\000\022<\n\020drop_table_tasks\030\007 \001(\0132 .g" + "reptime.v1.meta.DropTableTasksH\000\022>\n\021alte" + "r_table_tasks\030\010 \001(\0132!.greptime.v1.meta.A" + "lterTableTasksH\000\022@\n\022drop_database_task\030\t" + " \001(\0132\".greptime.v1.meta.DropDatabaseTask" + "H\000\022D\n\024create_database_task\030\n \001(\0132$.grept" + "ime.v1.meta.CreateDatabaseTaskH\000\022<\n\020crea" + "te_flow_task\030\013 \001(\0132 .greptime.v1.meta.Cr" + "eateFlowTaskH\000\0228\n\016drop_flow_task\030\014 \001(\0132\036" + ".greptime.v1.meta.DropFlowTaskH\000B\006\n\004task" + "\"\312\001\n\017DdlTaskResponse\0220\n\006header\030\001 \001(\0132 .g" + "reptime.v1.meta.ResponseHeader\022*\n\003pid\030\002 " + "\001(\0132\035.greptime.v1.meta.ProcedureId\022+\n\010ta" + "ble_id\030\004 \001(\0132\031.greptime.v1.meta.TableId\022" + ",\n\ttable_ids\030\005 \003(\0132\031.greptime.v1.meta.Ta" + "bleId*#\n\013DdlTaskType\022\n\n\006Create\020\000\022\010\n\004Drop" + "\020\001B_impl_.create_flow_task_; +} +void CreateFlowTask::clear_create_flow_task() { + if (GetArenaForAllocation() == nullptr && _impl_.create_flow_task_ != nullptr) { + delete _impl_.create_flow_task_; + } + _impl_.create_flow_task_ = nullptr; +} +CreateFlowTask::CreateFlowTask(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.CreateFlowTask) +} +CreateFlowTask::CreateFlowTask(const CreateFlowTask& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CreateFlowTask* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.create_flow_task_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_create_flow_task()) { + _this->_impl_.create_flow_task_ = new ::greptime::v1::CreateFlowTaskExpr(*from._impl_.create_flow_task_); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.CreateFlowTask) +} + +inline void CreateFlowTask::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.create_flow_task_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +CreateFlowTask::~CreateFlowTask() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.CreateFlowTask) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CreateFlowTask::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.create_flow_task_; +} + +void CreateFlowTask::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CreateFlowTask::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.CreateFlowTask) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.create_flow_task_ != nullptr) { + delete _impl_.create_flow_task_; + } + _impl_.create_flow_task_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateFlowTask::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_create_flow_task(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* CreateFlowTask::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.CreateFlowTask) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + if (this->_internal_has_create_flow_task()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::create_flow_task(this), + _Internal::create_flow_task(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.CreateFlowTask) + return target; +} + +size_t CreateFlowTask::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.CreateFlowTask) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + if (this->_internal_has_create_flow_task()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.create_flow_task_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateFlowTask::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CreateFlowTask::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateFlowTask::GetClassData() const { return &_class_data_; } + + +void CreateFlowTask::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.CreateFlowTask) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_create_flow_task()) { + _this->_internal_mutable_create_flow_task()->::greptime::v1::CreateFlowTaskExpr::MergeFrom( + from._internal_create_flow_task()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateFlowTask::CopyFrom(const CreateFlowTask& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.CreateFlowTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateFlowTask::IsInitialized() const { + return true; +} + +void CreateFlowTask::InternalSwap(CreateFlowTask* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.create_flow_task_, other->_impl_.create_flow_task_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateFlowTask::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[9]); +} + +// =================================================================== + +class DropFlowTask::_Internal { + public: + static const ::greptime::v1::DropFlowTaskExpr& drop_flow_task(const DropFlowTask* msg); +}; + +const ::greptime::v1::DropFlowTaskExpr& +DropFlowTask::_Internal::drop_flow_task(const DropFlowTask* msg) { + return *msg->_impl_.drop_flow_task_; +} +void DropFlowTask::clear_drop_flow_task() { + if (GetArenaForAllocation() == nullptr && _impl_.drop_flow_task_ != nullptr) { + delete _impl_.drop_flow_task_; + } + _impl_.drop_flow_task_ = nullptr; +} +DropFlowTask::DropFlowTask(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.DropFlowTask) +} +DropFlowTask::DropFlowTask(const DropFlowTask& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DropFlowTask* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.drop_flow_task_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_drop_flow_task()) { + _this->_impl_.drop_flow_task_ = new ::greptime::v1::DropFlowTaskExpr(*from._impl_.drop_flow_task_); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.DropFlowTask) +} + +inline void DropFlowTask::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.drop_flow_task_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DropFlowTask::~DropFlowTask() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.DropFlowTask) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DropFlowTask::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.drop_flow_task_; +} + +void DropFlowTask::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DropFlowTask::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.DropFlowTask) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.drop_flow_task_ != nullptr) { + delete _impl_.drop_flow_task_; + } + _impl_.drop_flow_task_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DropFlowTask::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_drop_flow_task(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DropFlowTask::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.DropFlowTask) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + if (this->_internal_has_drop_flow_task()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::drop_flow_task(this), + _Internal::drop_flow_task(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.DropFlowTask) + return target; +} + +size_t DropFlowTask::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.DropFlowTask) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + if (this->_internal_has_drop_flow_task()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.drop_flow_task_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropFlowTask::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DropFlowTask::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropFlowTask::GetClassData() const { return &_class_data_; } + + +void DropFlowTask::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.DropFlowTask) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_drop_flow_task()) { + _this->_internal_mutable_drop_flow_task()->::greptime::v1::DropFlowTaskExpr::MergeFrom( + from._internal_drop_flow_task()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DropFlowTask::CopyFrom(const DropFlowTask& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.DropFlowTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DropFlowTask::IsInitialized() const { + return true; +} + +void DropFlowTask::InternalSwap(DropFlowTask* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.drop_flow_task_, other->_impl_.drop_flow_task_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DropFlowTask::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[10]); +} + +// =================================================================== + class DdlTaskRequest::_Internal { public: static const ::greptime::v1::meta::RequestHeader& header(const DdlTaskRequest* msg); @@ -2235,6 +2685,8 @@ class DdlTaskRequest::_Internal { static const ::greptime::v1::meta::AlterTableTasks& alter_table_tasks(const DdlTaskRequest* msg); static const ::greptime::v1::meta::DropDatabaseTask& drop_database_task(const DdlTaskRequest* msg); static const ::greptime::v1::meta::CreateDatabaseTask& create_database_task(const DdlTaskRequest* msg); + static const ::greptime::v1::meta::CreateFlowTask& create_flow_task(const DdlTaskRequest* msg); + static const ::greptime::v1::meta::DropFlowTask& drop_flow_task(const DdlTaskRequest* msg); }; const ::greptime::v1::meta::RequestHeader& @@ -2277,6 +2729,14 @@ const ::greptime::v1::meta::CreateDatabaseTask& DdlTaskRequest::_Internal::create_database_task(const DdlTaskRequest* msg) { return *msg->_impl_.task_.create_database_task_; } +const ::greptime::v1::meta::CreateFlowTask& +DdlTaskRequest::_Internal::create_flow_task(const DdlTaskRequest* msg) { + return *msg->_impl_.task_.create_flow_task_; +} +const ::greptime::v1::meta::DropFlowTask& +DdlTaskRequest::_Internal::drop_flow_task(const DdlTaskRequest* msg) { + return *msg->_impl_.task_.drop_flow_task_; +} void DdlTaskRequest::clear_header() { if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; @@ -2418,6 +2878,36 @@ void DdlTaskRequest::set_allocated_create_database_task(::greptime::v1::meta::Cr } // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.create_database_task) } +void DdlTaskRequest::set_allocated_create_flow_task(::greptime::v1::meta::CreateFlowTask* create_flow_task) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_task(); + if (create_flow_task) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(create_flow_task); + if (message_arena != submessage_arena) { + create_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, create_flow_task, submessage_arena); + } + set_has_create_flow_task(); + _impl_.task_.create_flow_task_ = create_flow_task; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.create_flow_task) +} +void DdlTaskRequest::set_allocated_drop_flow_task(::greptime::v1::meta::DropFlowTask* drop_flow_task) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_task(); + if (drop_flow_task) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(drop_flow_task); + if (message_arena != submessage_arena) { + drop_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, drop_flow_task, submessage_arena); + } + set_has_drop_flow_task(); + _impl_.task_.drop_flow_task_ = drop_flow_task; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_flow_task) +} DdlTaskRequest::DdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -2484,6 +2974,16 @@ DdlTaskRequest::DdlTaskRequest(const DdlTaskRequest& from) from._internal_create_database_task()); break; } + case kCreateFlowTask: { + _this->_internal_mutable_create_flow_task()->::greptime::v1::meta::CreateFlowTask::MergeFrom( + from._internal_create_flow_task()); + break; + } + case kDropFlowTask: { + _this->_internal_mutable_drop_flow_task()->::greptime::v1::meta::DropFlowTask::MergeFrom( + from._internal_drop_flow_task()); + break; + } case TASK_NOT_SET: { break; } @@ -2582,6 +3082,18 @@ void DdlTaskRequest::clear_task() { } break; } + case kCreateFlowTask: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.task_.create_flow_task_; + } + break; + } + case kDropFlowTask: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.task_.drop_flow_task_; + } + break; + } case TASK_NOT_SET: { break; } @@ -2690,6 +3202,22 @@ const char* DdlTaskRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext } else goto handle_unusual; continue; + // .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_create_flow_task(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_drop_flow_task(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -2789,6 +3317,20 @@ uint8_t* DdlTaskRequest::_InternalSerialize( _Internal::create_database_task(this).GetCachedSize(), target, stream); } + // .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + if (_internal_has_create_flow_task()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::create_flow_task(this), + _Internal::create_flow_task(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + if (_internal_has_drop_flow_task()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(12, _Internal::drop_flow_task(this), + _Internal::drop_flow_task(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -2876,6 +3418,20 @@ size_t DdlTaskRequest::ByteSizeLong() const { *_impl_.task_.create_database_task_); break; } + // .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + case kCreateFlowTask: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.task_.create_flow_task_); + break; + } + // .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + case kDropFlowTask: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.task_.drop_flow_task_); + break; + } case TASK_NOT_SET: { break; } @@ -2948,6 +3504,16 @@ void DdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : from._internal_create_database_task()); break; } + case kCreateFlowTask: { + _this->_internal_mutable_create_flow_task()->::greptime::v1::meta::CreateFlowTask::MergeFrom( + from._internal_create_flow_task()); + break; + } + case kDropFlowTask: { + _this->_internal_mutable_drop_flow_task()->::greptime::v1::meta::DropFlowTask::MergeFrom( + from._internal_drop_flow_task()); + break; + } case TASK_NOT_SET: { break; } @@ -2977,7 +3543,7 @@ void DdlTaskRequest::InternalSwap(DdlTaskRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DdlTaskRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[9]); + file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[11]); } // =================================================================== @@ -3312,7 +3878,7 @@ void DdlTaskResponse::InternalSwap(DdlTaskResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DdlTaskResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[10]); + file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[12]); } // @@protoc_insertion_point(namespace_scope) @@ -3356,6 +3922,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DropDatabaseTask* Arena::CreateMaybeMessage< ::greptime::v1::meta::DropDatabaseTask >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::DropDatabaseTask >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::CreateFlowTask* +Arena::CreateMaybeMessage< ::greptime::v1::meta::CreateFlowTask >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::CreateFlowTask >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DropFlowTask* +Arena::CreateMaybeMessage< ::greptime::v1::meta::DropFlowTask >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::DropFlowTask >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DdlTaskRequest* Arena::CreateMaybeMessage< ::greptime::v1::meta::DdlTaskRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::DdlTaskRequest >(arena); diff --git a/c++/greptime/v1/meta/ddl.pb.h b/c++/greptime/v1/meta/ddl.pb.h index e8fc13ea..1acd84bf 100644 --- a/c++/greptime/v1/meta/ddl.pb.h +++ b/c++/greptime/v1/meta/ddl.pb.h @@ -60,6 +60,9 @@ extern AlterTableTasksDefaultTypeInternal _AlterTableTasks_default_instance_; class CreateDatabaseTask; struct CreateDatabaseTaskDefaultTypeInternal; extern CreateDatabaseTaskDefaultTypeInternal _CreateDatabaseTask_default_instance_; +class CreateFlowTask; +struct CreateFlowTaskDefaultTypeInternal; +extern CreateFlowTaskDefaultTypeInternal _CreateFlowTask_default_instance_; class CreateTableTask; struct CreateTableTaskDefaultTypeInternal; extern CreateTableTaskDefaultTypeInternal _CreateTableTask_default_instance_; @@ -75,6 +78,9 @@ extern DdlTaskResponseDefaultTypeInternal _DdlTaskResponse_default_instance_; class DropDatabaseTask; struct DropDatabaseTaskDefaultTypeInternal; extern DropDatabaseTaskDefaultTypeInternal _DropDatabaseTask_default_instance_; +class DropFlowTask; +struct DropFlowTaskDefaultTypeInternal; +extern DropFlowTaskDefaultTypeInternal _DropFlowTask_default_instance_; class DropTableTask; struct DropTableTaskDefaultTypeInternal; extern DropTableTaskDefaultTypeInternal _DropTableTask_default_instance_; @@ -91,11 +97,13 @@ PROTOBUF_NAMESPACE_OPEN template<> ::greptime::v1::meta::AlterTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::AlterTableTask>(Arena*); template<> ::greptime::v1::meta::AlterTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::AlterTableTasks>(Arena*); template<> ::greptime::v1::meta::CreateDatabaseTask* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateDatabaseTask>(Arena*); +template<> ::greptime::v1::meta::CreateFlowTask* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateFlowTask>(Arena*); template<> ::greptime::v1::meta::CreateTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateTableTask>(Arena*); template<> ::greptime::v1::meta::CreateTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateTableTasks>(Arena*); template<> ::greptime::v1::meta::DdlTaskRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::DdlTaskRequest>(Arena*); template<> ::greptime::v1::meta::DdlTaskResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::DdlTaskResponse>(Arena*); template<> ::greptime::v1::meta::DropDatabaseTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropDatabaseTask>(Arena*); +template<> ::greptime::v1::meta::DropFlowTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropFlowTask>(Arena*); template<> ::greptime::v1::meta::DropTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropTableTask>(Arena*); template<> ::greptime::v1::meta::DropTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::DropTableTasks>(Arena*); template<> ::greptime::v1::meta::TruncateTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::TruncateTableTask>(Arena*); @@ -1580,6 +1588,320 @@ class DropDatabaseTask final : }; // ------------------------------------------------------------------- +class CreateFlowTask final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.CreateFlowTask) */ { + public: + inline CreateFlowTask() : CreateFlowTask(nullptr) {} + ~CreateFlowTask() override; + explicit PROTOBUF_CONSTEXPR CreateFlowTask(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateFlowTask(const CreateFlowTask& from); + CreateFlowTask(CreateFlowTask&& from) noexcept + : CreateFlowTask() { + *this = ::std::move(from); + } + + inline CreateFlowTask& operator=(const CreateFlowTask& from) { + CopyFrom(from); + return *this; + } + inline CreateFlowTask& operator=(CreateFlowTask&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CreateFlowTask& default_instance() { + return *internal_default_instance(); + } + static inline const CreateFlowTask* internal_default_instance() { + return reinterpret_cast( + &_CreateFlowTask_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(CreateFlowTask& a, CreateFlowTask& b) { + a.Swap(&b); + } + inline void Swap(CreateFlowTask* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CreateFlowTask* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateFlowTask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateFlowTask& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CreateFlowTask& from) { + CreateFlowTask::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateFlowTask* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.CreateFlowTask"; + } + protected: + explicit CreateFlowTask(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCreateFlowTaskFieldNumber = 1, + }; + // .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + bool has_create_flow_task() const; + private: + bool _internal_has_create_flow_task() const; + public: + void clear_create_flow_task(); + const ::greptime::v1::CreateFlowTaskExpr& create_flow_task() const; + PROTOBUF_NODISCARD ::greptime::v1::CreateFlowTaskExpr* release_create_flow_task(); + ::greptime::v1::CreateFlowTaskExpr* mutable_create_flow_task(); + void set_allocated_create_flow_task(::greptime::v1::CreateFlowTaskExpr* create_flow_task); + private: + const ::greptime::v1::CreateFlowTaskExpr& _internal_create_flow_task() const; + ::greptime::v1::CreateFlowTaskExpr* _internal_mutable_create_flow_task(); + public: + void unsafe_arena_set_allocated_create_flow_task( + ::greptime::v1::CreateFlowTaskExpr* create_flow_task); + ::greptime::v1::CreateFlowTaskExpr* unsafe_arena_release_create_flow_task(); + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.CreateFlowTask) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::greptime::v1::CreateFlowTaskExpr* create_flow_task_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + +class DropFlowTask final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.DropFlowTask) */ { + public: + inline DropFlowTask() : DropFlowTask(nullptr) {} + ~DropFlowTask() override; + explicit PROTOBUF_CONSTEXPR DropFlowTask(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DropFlowTask(const DropFlowTask& from); + DropFlowTask(DropFlowTask&& from) noexcept + : DropFlowTask() { + *this = ::std::move(from); + } + + inline DropFlowTask& operator=(const DropFlowTask& from) { + CopyFrom(from); + return *this; + } + inline DropFlowTask& operator=(DropFlowTask&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DropFlowTask& default_instance() { + return *internal_default_instance(); + } + static inline const DropFlowTask* internal_default_instance() { + return reinterpret_cast( + &_DropFlowTask_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(DropFlowTask& a, DropFlowTask& b) { + a.Swap(&b); + } + inline void Swap(DropFlowTask* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DropFlowTask* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DropFlowTask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DropFlowTask& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DropFlowTask& from) { + DropFlowTask::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DropFlowTask* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.DropFlowTask"; + } + protected: + explicit DropFlowTask(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDropFlowTaskFieldNumber = 1, + }; + // .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + bool has_drop_flow_task() const; + private: + bool _internal_has_drop_flow_task() const; + public: + void clear_drop_flow_task(); + const ::greptime::v1::DropFlowTaskExpr& drop_flow_task() const; + PROTOBUF_NODISCARD ::greptime::v1::DropFlowTaskExpr* release_drop_flow_task(); + ::greptime::v1::DropFlowTaskExpr* mutable_drop_flow_task(); + void set_allocated_drop_flow_task(::greptime::v1::DropFlowTaskExpr* drop_flow_task); + private: + const ::greptime::v1::DropFlowTaskExpr& _internal_drop_flow_task() const; + ::greptime::v1::DropFlowTaskExpr* _internal_mutable_drop_flow_task(); + public: + void unsafe_arena_set_allocated_drop_flow_task( + ::greptime::v1::DropFlowTaskExpr* drop_flow_task); + ::greptime::v1::DropFlowTaskExpr* unsafe_arena_release_drop_flow_task(); + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.DropFlowTask) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::greptime::v1::DropFlowTaskExpr* drop_flow_task_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + class DdlTaskRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.DdlTaskRequest) */ { public: @@ -1633,6 +1955,8 @@ class DdlTaskRequest final : kAlterTableTasks = 8, kDropDatabaseTask = 9, kCreateDatabaseTask = 10, + kCreateFlowTask = 11, + kDropFlowTask = 12, TASK_NOT_SET = 0, }; @@ -1641,7 +1965,7 @@ class DdlTaskRequest final : &_DdlTaskRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 11; friend void swap(DdlTaskRequest& a, DdlTaskRequest& b) { a.Swap(&b); @@ -1724,6 +2048,8 @@ class DdlTaskRequest final : kAlterTableTasksFieldNumber = 8, kDropDatabaseTaskFieldNumber = 9, kCreateDatabaseTaskFieldNumber = 10, + kCreateFlowTaskFieldNumber = 11, + kDropFlowTaskFieldNumber = 12, }; // .greptime.v1.meta.RequestHeader header = 1; bool has_header() const; @@ -1905,6 +2231,42 @@ class DdlTaskRequest final : ::greptime::v1::meta::CreateDatabaseTask* create_database_task); ::greptime::v1::meta::CreateDatabaseTask* unsafe_arena_release_create_database_task(); + // .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + bool has_create_flow_task() const; + private: + bool _internal_has_create_flow_task() const; + public: + void clear_create_flow_task(); + const ::greptime::v1::meta::CreateFlowTask& create_flow_task() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::CreateFlowTask* release_create_flow_task(); + ::greptime::v1::meta::CreateFlowTask* mutable_create_flow_task(); + void set_allocated_create_flow_task(::greptime::v1::meta::CreateFlowTask* create_flow_task); + private: + const ::greptime::v1::meta::CreateFlowTask& _internal_create_flow_task() const; + ::greptime::v1::meta::CreateFlowTask* _internal_mutable_create_flow_task(); + public: + void unsafe_arena_set_allocated_create_flow_task( + ::greptime::v1::meta::CreateFlowTask* create_flow_task); + ::greptime::v1::meta::CreateFlowTask* unsafe_arena_release_create_flow_task(); + + // .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + bool has_drop_flow_task() const; + private: + bool _internal_has_drop_flow_task() const; + public: + void clear_drop_flow_task(); + const ::greptime::v1::meta::DropFlowTask& drop_flow_task() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::DropFlowTask* release_drop_flow_task(); + ::greptime::v1::meta::DropFlowTask* mutable_drop_flow_task(); + void set_allocated_drop_flow_task(::greptime::v1::meta::DropFlowTask* drop_flow_task); + private: + const ::greptime::v1::meta::DropFlowTask& _internal_drop_flow_task() const; + ::greptime::v1::meta::DropFlowTask* _internal_mutable_drop_flow_task(); + public: + void unsafe_arena_set_allocated_drop_flow_task( + ::greptime::v1::meta::DropFlowTask* drop_flow_task); + ::greptime::v1::meta::DropFlowTask* unsafe_arena_release_drop_flow_task(); + void clear_task(); TaskCase task_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.meta.DdlTaskRequest) @@ -1919,6 +2281,8 @@ class DdlTaskRequest final : void set_has_alter_table_tasks(); void set_has_drop_database_task(); void set_has_create_database_task(); + void set_has_create_flow_task(); + void set_has_drop_flow_task(); inline bool has_task() const; inline void clear_has_task(); @@ -1940,6 +2304,8 @@ class DdlTaskRequest final : ::greptime::v1::meta::AlterTableTasks* alter_table_tasks_; ::greptime::v1::meta::DropDatabaseTask* drop_database_task_; ::greptime::v1::meta::CreateDatabaseTask* create_database_task_; + ::greptime::v1::meta::CreateFlowTask* create_flow_task_; + ::greptime::v1::meta::DropFlowTask* drop_flow_task_; } task_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -1998,7 +2364,7 @@ class DdlTaskResponse final : &_DdlTaskResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 12; friend void swap(DdlTaskResponse& a, DdlTaskResponse& b) { a.Swap(&b); @@ -2927,6 +3293,184 @@ inline void DropDatabaseTask::set_allocated_drop_database(::greptime::v1::DropDa // ------------------------------------------------------------------- +// CreateFlowTask + +// .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; +inline bool CreateFlowTask::_internal_has_create_flow_task() const { + return this != internal_default_instance() && _impl_.create_flow_task_ != nullptr; +} +inline bool CreateFlowTask::has_create_flow_task() const { + return _internal_has_create_flow_task(); +} +inline const ::greptime::v1::CreateFlowTaskExpr& CreateFlowTask::_internal_create_flow_task() const { + const ::greptime::v1::CreateFlowTaskExpr* p = _impl_.create_flow_task_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_CreateFlowTaskExpr_default_instance_); +} +inline const ::greptime::v1::CreateFlowTaskExpr& CreateFlowTask::create_flow_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.CreateFlowTask.create_flow_task) + return _internal_create_flow_task(); +} +inline void CreateFlowTask::unsafe_arena_set_allocated_create_flow_task( + ::greptime::v1::CreateFlowTaskExpr* create_flow_task) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.create_flow_task_); + } + _impl_.create_flow_task_ = create_flow_task; + if (create_flow_task) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.CreateFlowTask.create_flow_task) +} +inline ::greptime::v1::CreateFlowTaskExpr* CreateFlowTask::release_create_flow_task() { + + ::greptime::v1::CreateFlowTaskExpr* temp = _impl_.create_flow_task_; + _impl_.create_flow_task_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::CreateFlowTaskExpr* CreateFlowTask::unsafe_arena_release_create_flow_task() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.CreateFlowTask.create_flow_task) + + ::greptime::v1::CreateFlowTaskExpr* temp = _impl_.create_flow_task_; + _impl_.create_flow_task_ = nullptr; + return temp; +} +inline ::greptime::v1::CreateFlowTaskExpr* CreateFlowTask::_internal_mutable_create_flow_task() { + + if (_impl_.create_flow_task_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::CreateFlowTaskExpr>(GetArenaForAllocation()); + _impl_.create_flow_task_ = p; + } + return _impl_.create_flow_task_; +} +inline ::greptime::v1::CreateFlowTaskExpr* CreateFlowTask::mutable_create_flow_task() { + ::greptime::v1::CreateFlowTaskExpr* _msg = _internal_mutable_create_flow_task(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.CreateFlowTask.create_flow_task) + return _msg; +} +inline void CreateFlowTask::set_allocated_create_flow_task(::greptime::v1::CreateFlowTaskExpr* create_flow_task) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.create_flow_task_); + } + if (create_flow_task) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(create_flow_task)); + if (message_arena != submessage_arena) { + create_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, create_flow_task, submessage_arena); + } + + } else { + + } + _impl_.create_flow_task_ = create_flow_task; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.CreateFlowTask.create_flow_task) +} + +// ------------------------------------------------------------------- + +// DropFlowTask + +// .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; +inline bool DropFlowTask::_internal_has_drop_flow_task() const { + return this != internal_default_instance() && _impl_.drop_flow_task_ != nullptr; +} +inline bool DropFlowTask::has_drop_flow_task() const { + return _internal_has_drop_flow_task(); +} +inline const ::greptime::v1::DropFlowTaskExpr& DropFlowTask::_internal_drop_flow_task() const { + const ::greptime::v1::DropFlowTaskExpr* p = _impl_.drop_flow_task_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_DropFlowTaskExpr_default_instance_); +} +inline const ::greptime::v1::DropFlowTaskExpr& DropFlowTask::drop_flow_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DropFlowTask.drop_flow_task) + return _internal_drop_flow_task(); +} +inline void DropFlowTask::unsafe_arena_set_allocated_drop_flow_task( + ::greptime::v1::DropFlowTaskExpr* drop_flow_task) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.drop_flow_task_); + } + _impl_.drop_flow_task_ = drop_flow_task; + if (drop_flow_task) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DropFlowTask.drop_flow_task) +} +inline ::greptime::v1::DropFlowTaskExpr* DropFlowTask::release_drop_flow_task() { + + ::greptime::v1::DropFlowTaskExpr* temp = _impl_.drop_flow_task_; + _impl_.drop_flow_task_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::DropFlowTaskExpr* DropFlowTask::unsafe_arena_release_drop_flow_task() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DropFlowTask.drop_flow_task) + + ::greptime::v1::DropFlowTaskExpr* temp = _impl_.drop_flow_task_; + _impl_.drop_flow_task_ = nullptr; + return temp; +} +inline ::greptime::v1::DropFlowTaskExpr* DropFlowTask::_internal_mutable_drop_flow_task() { + + if (_impl_.drop_flow_task_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::DropFlowTaskExpr>(GetArenaForAllocation()); + _impl_.drop_flow_task_ = p; + } + return _impl_.drop_flow_task_; +} +inline ::greptime::v1::DropFlowTaskExpr* DropFlowTask::mutable_drop_flow_task() { + ::greptime::v1::DropFlowTaskExpr* _msg = _internal_mutable_drop_flow_task(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DropFlowTask.drop_flow_task) + return _msg; +} +inline void DropFlowTask::set_allocated_drop_flow_task(::greptime::v1::DropFlowTaskExpr* drop_flow_task) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.drop_flow_task_); + } + if (drop_flow_task) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(drop_flow_task)); + if (message_arena != submessage_arena) { + drop_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, drop_flow_task, submessage_arena); + } + + } else { + + } + _impl_.drop_flow_task_ = drop_flow_task; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DropFlowTask.drop_flow_task) +} + +// ------------------------------------------------------------------- + // DdlTaskRequest // .greptime.v1.meta.RequestHeader header = 1; @@ -3680,6 +4224,154 @@ inline ::greptime::v1::meta::CreateDatabaseTask* DdlTaskRequest::mutable_create_ return _msg; } +// .greptime.v1.meta.CreateFlowTask create_flow_task = 11; +inline bool DdlTaskRequest::_internal_has_create_flow_task() const { + return task_case() == kCreateFlowTask; +} +inline bool DdlTaskRequest::has_create_flow_task() const { + return _internal_has_create_flow_task(); +} +inline void DdlTaskRequest::set_has_create_flow_task() { + _impl_._oneof_case_[0] = kCreateFlowTask; +} +inline void DdlTaskRequest::clear_create_flow_task() { + if (_internal_has_create_flow_task()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.task_.create_flow_task_; + } + clear_has_task(); + } +} +inline ::greptime::v1::meta::CreateFlowTask* DdlTaskRequest::release_create_flow_task() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.create_flow_task) + if (_internal_has_create_flow_task()) { + clear_has_task(); + ::greptime::v1::meta::CreateFlowTask* temp = _impl_.task_.create_flow_task_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.task_.create_flow_task_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::meta::CreateFlowTask& DdlTaskRequest::_internal_create_flow_task() const { + return _internal_has_create_flow_task() + ? *_impl_.task_.create_flow_task_ + : reinterpret_cast< ::greptime::v1::meta::CreateFlowTask&>(::greptime::v1::meta::_CreateFlowTask_default_instance_); +} +inline const ::greptime::v1::meta::CreateFlowTask& DdlTaskRequest::create_flow_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.create_flow_task) + return _internal_create_flow_task(); +} +inline ::greptime::v1::meta::CreateFlowTask* DdlTaskRequest::unsafe_arena_release_create_flow_task() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.create_flow_task) + if (_internal_has_create_flow_task()) { + clear_has_task(); + ::greptime::v1::meta::CreateFlowTask* temp = _impl_.task_.create_flow_task_; + _impl_.task_.create_flow_task_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void DdlTaskRequest::unsafe_arena_set_allocated_create_flow_task(::greptime::v1::meta::CreateFlowTask* create_flow_task) { + clear_task(); + if (create_flow_task) { + set_has_create_flow_task(); + _impl_.task_.create_flow_task_ = create_flow_task; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.create_flow_task) +} +inline ::greptime::v1::meta::CreateFlowTask* DdlTaskRequest::_internal_mutable_create_flow_task() { + if (!_internal_has_create_flow_task()) { + clear_task(); + set_has_create_flow_task(); + _impl_.task_.create_flow_task_ = CreateMaybeMessage< ::greptime::v1::meta::CreateFlowTask >(GetArenaForAllocation()); + } + return _impl_.task_.create_flow_task_; +} +inline ::greptime::v1::meta::CreateFlowTask* DdlTaskRequest::mutable_create_flow_task() { + ::greptime::v1::meta::CreateFlowTask* _msg = _internal_mutable_create_flow_task(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.create_flow_task) + return _msg; +} + +// .greptime.v1.meta.DropFlowTask drop_flow_task = 12; +inline bool DdlTaskRequest::_internal_has_drop_flow_task() const { + return task_case() == kDropFlowTask; +} +inline bool DdlTaskRequest::has_drop_flow_task() const { + return _internal_has_drop_flow_task(); +} +inline void DdlTaskRequest::set_has_drop_flow_task() { + _impl_._oneof_case_[0] = kDropFlowTask; +} +inline void DdlTaskRequest::clear_drop_flow_task() { + if (_internal_has_drop_flow_task()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.task_.drop_flow_task_; + } + clear_has_task(); + } +} +inline ::greptime::v1::meta::DropFlowTask* DdlTaskRequest::release_drop_flow_task() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.drop_flow_task) + if (_internal_has_drop_flow_task()) { + clear_has_task(); + ::greptime::v1::meta::DropFlowTask* temp = _impl_.task_.drop_flow_task_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.task_.drop_flow_task_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::meta::DropFlowTask& DdlTaskRequest::_internal_drop_flow_task() const { + return _internal_has_drop_flow_task() + ? *_impl_.task_.drop_flow_task_ + : reinterpret_cast< ::greptime::v1::meta::DropFlowTask&>(::greptime::v1::meta::_DropFlowTask_default_instance_); +} +inline const ::greptime::v1::meta::DropFlowTask& DdlTaskRequest::drop_flow_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.drop_flow_task) + return _internal_drop_flow_task(); +} +inline ::greptime::v1::meta::DropFlowTask* DdlTaskRequest::unsafe_arena_release_drop_flow_task() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.drop_flow_task) + if (_internal_has_drop_flow_task()) { + clear_has_task(); + ::greptime::v1::meta::DropFlowTask* temp = _impl_.task_.drop_flow_task_; + _impl_.task_.drop_flow_task_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void DdlTaskRequest::unsafe_arena_set_allocated_drop_flow_task(::greptime::v1::meta::DropFlowTask* drop_flow_task) { + clear_task(); + if (drop_flow_task) { + set_has_drop_flow_task(); + _impl_.task_.drop_flow_task_ = drop_flow_task; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_flow_task) +} +inline ::greptime::v1::meta::DropFlowTask* DdlTaskRequest::_internal_mutable_drop_flow_task() { + if (!_internal_has_drop_flow_task()) { + clear_task(); + set_has_drop_flow_task(); + _impl_.task_.drop_flow_task_ = CreateMaybeMessage< ::greptime::v1::meta::DropFlowTask >(GetArenaForAllocation()); + } + return _impl_.task_.drop_flow_task_; +} +inline ::greptime::v1::meta::DropFlowTask* DdlTaskRequest::mutable_drop_flow_task() { + ::greptime::v1::meta::DropFlowTask* _msg = _internal_mutable_drop_flow_task(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.drop_flow_task) + return _msg; +} + inline bool DdlTaskRequest::has_task() const { return task_case() != TASK_NOT_SET; } @@ -4008,6 +4700,10 @@ DdlTaskResponse::table_ids() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 67be5f1c..a0e84b65 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -77,7 +77,7 @@ func (x AddColumnLocation_LocationType) Number() protoreflect.EnumNumber { // Deprecated: Use AddColumnLocation_LocationType.Descriptor instead. func (AddColumnLocation_LocationType) EnumDescriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16, 0} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17, 0} } // "Data Definition Language" requests, that create, modify or delete the @@ -96,8 +96,8 @@ type DdlRequest struct { // *DdlRequest_Alter // *DdlRequest_DropTable // *DdlRequest_TruncateTable - // *DdlRequest_CreateTask - // *DdlRequest_RemoveTask + // *DdlRequest_CreateFlowTask + // *DdlRequest_DropFlowTask Expr isDdlRequest_Expr `protobuf_oneof:"expr"` } @@ -175,16 +175,16 @@ func (x *DdlRequest) GetTruncateTable() *TruncateTableExpr { return nil } -func (x *DdlRequest) GetCreateTask() *CreateTaskExpr { - if x, ok := x.GetExpr().(*DdlRequest_CreateTask); ok { - return x.CreateTask +func (x *DdlRequest) GetCreateFlowTask() *CreateFlowTaskExpr { + if x, ok := x.GetExpr().(*DdlRequest_CreateFlowTask); ok { + return x.CreateFlowTask } return nil } -func (x *DdlRequest) GetRemoveTask() *RemoveTaskExpr { - if x, ok := x.GetExpr().(*DdlRequest_RemoveTask); ok { - return x.RemoveTask +func (x *DdlRequest) GetDropFlowTask() *DropFlowTaskExpr { + if x, ok := x.GetExpr().(*DdlRequest_DropFlowTask); ok { + return x.DropFlowTask } return nil } @@ -213,12 +213,12 @@ type DdlRequest_TruncateTable struct { TruncateTable *TruncateTableExpr `protobuf:"bytes,7,opt,name=truncate_table,json=truncateTable,proto3,oneof"` } -type DdlRequest_CreateTask struct { - CreateTask *CreateTaskExpr `protobuf:"bytes,8,opt,name=create_task,json=createTask,proto3,oneof"` +type DdlRequest_CreateFlowTask struct { + CreateFlowTask *CreateFlowTaskExpr `protobuf:"bytes,8,opt,name=create_flow_task,json=createFlowTask,proto3,oneof"` } -type DdlRequest_RemoveTask struct { - RemoveTask *RemoveTaskExpr `protobuf:"bytes,9,opt,name=remove_task,json=removeTask,proto3,oneof"` +type DdlRequest_DropFlowTask struct { + DropFlowTask *DropFlowTaskExpr `protobuf:"bytes,9,opt,name=drop_flow_task,json=dropFlowTask,proto3,oneof"` } func (*DdlRequest_CreateDatabase) isDdlRequest_Expr() {} @@ -231,29 +231,29 @@ func (*DdlRequest_DropTable) isDdlRequest_Expr() {} func (*DdlRequest_TruncateTable) isDdlRequest_Expr() {} -func (*DdlRequest_CreateTask) isDdlRequest_Expr() {} +func (*DdlRequest_CreateFlowTask) isDdlRequest_Expr() {} -func (*DdlRequest_RemoveTask) isDdlRequest_Expr() {} +func (*DdlRequest_DropFlowTask) isDdlRequest_Expr() {} // Create a flow task to run the SQL when new data arrives. -type CreateTaskExpr struct { +type CreateFlowTaskExpr 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"` - TaskName string `protobuf:"bytes,2,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"` - OutputSchemaName string `protobuf:"bytes,3,opt,name=output_schema_name,json=outputSchemaName,proto3" json:"output_schema_name,omitempty"` - OutputTableName string `protobuf:"bytes,4,opt,name=output_table_name,json=outputTableName,proto3" json:"output_table_name,omitempty"` - CreateIfNotExists bool `protobuf:"varint,5,opt,name=create_if_not_exists,json=createIfNotExists,proto3" json:"create_if_not_exists,omitempty"` - ExpireWhen string `protobuf:"bytes,6,opt,name=expire_when,json=expireWhen,proto3" json:"expire_when,omitempty"` - Comment string `protobuf:"bytes,7,opt,name=comment,proto3" json:"comment,omitempty"` - Sql string `protobuf:"bytes,8,opt,name=sql,proto3" json:"sql,omitempty"` - TaskOptions map[string]string `protobuf:"bytes,9,rep,name=task_options,json=taskOptions,proto3" json:"task_options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *CreateTaskExpr) Reset() { - *x = CreateTaskExpr{} + CatalogName string `protobuf:"bytes,1,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"` + TaskName string `protobuf:"bytes,2,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"` + SourceTableNames []*SchemaScopedTableName `protobuf:"bytes,3,rep,name=source_table_names,json=sourceTableNames,proto3" json:"source_table_names,omitempty"` + SinkTableName *SchemaScopedTableName `protobuf:"bytes,4,opt,name=sink_table_name,json=sinkTableName,proto3" json:"sink_table_name,omitempty"` + CreateIfNotExists bool `protobuf:"varint,5,opt,name=create_if_not_exists,json=createIfNotExists,proto3" json:"create_if_not_exists,omitempty"` + ExpireWhen string `protobuf:"bytes,6,opt,name=expire_when,json=expireWhen,proto3" json:"expire_when,omitempty"` + Comment string `protobuf:"bytes,7,opt,name=comment,proto3" json:"comment,omitempty"` + Sql string `protobuf:"bytes,8,opt,name=sql,proto3" json:"sql,omitempty"` + TaskOptions map[string]string `protobuf:"bytes,9,rep,name=task_options,json=taskOptions,proto3" json:"task_options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *CreateFlowTaskExpr) Reset() { + *x = CreateFlowTaskExpr{} if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_ddl_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -261,13 +261,13 @@ func (x *CreateTaskExpr) Reset() { } } -func (x *CreateTaskExpr) String() string { +func (x *CreateFlowTaskExpr) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateTaskExpr) ProtoMessage() {} +func (*CreateFlowTaskExpr) ProtoMessage() {} -func (x *CreateTaskExpr) ProtoReflect() protoreflect.Message { +func (x *CreateFlowTaskExpr) ProtoReflect() protoreflect.Message { mi := &file_greptime_v1_ddl_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -279,86 +279,86 @@ func (x *CreateTaskExpr) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateTaskExpr.ProtoReflect.Descriptor instead. -func (*CreateTaskExpr) Descriptor() ([]byte, []int) { +// Deprecated: Use CreateFlowTaskExpr.ProtoReflect.Descriptor instead. +func (*CreateFlowTaskExpr) Descriptor() ([]byte, []int) { return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{1} } -func (x *CreateTaskExpr) GetCatalogName() string { +func (x *CreateFlowTaskExpr) GetCatalogName() string { if x != nil { return x.CatalogName } return "" } -func (x *CreateTaskExpr) GetTaskName() string { +func (x *CreateFlowTaskExpr) GetTaskName() string { if x != nil { return x.TaskName } return "" } -func (x *CreateTaskExpr) GetOutputSchemaName() string { +func (x *CreateFlowTaskExpr) GetSourceTableNames() []*SchemaScopedTableName { if x != nil { - return x.OutputSchemaName + return x.SourceTableNames } - return "" + return nil } -func (x *CreateTaskExpr) GetOutputTableName() string { +func (x *CreateFlowTaskExpr) GetSinkTableName() *SchemaScopedTableName { if x != nil { - return x.OutputTableName + return x.SinkTableName } - return "" + return nil } -func (x *CreateTaskExpr) GetCreateIfNotExists() bool { +func (x *CreateFlowTaskExpr) GetCreateIfNotExists() bool { if x != nil { return x.CreateIfNotExists } return false } -func (x *CreateTaskExpr) GetExpireWhen() string { +func (x *CreateFlowTaskExpr) GetExpireWhen() string { if x != nil { return x.ExpireWhen } return "" } -func (x *CreateTaskExpr) GetComment() string { +func (x *CreateFlowTaskExpr) GetComment() string { if x != nil { return x.Comment } return "" } -func (x *CreateTaskExpr) GetSql() string { +func (x *CreateFlowTaskExpr) GetSql() string { if x != nil { return x.Sql } return "" } -func (x *CreateTaskExpr) GetTaskOptions() map[string]string { +func (x *CreateFlowTaskExpr) GetTaskOptions() map[string]string { if x != nil { return x.TaskOptions } return nil } -// Remove a flow task. -type RemoveTaskExpr struct { +// Table name +type SchemaScopedTableName 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"` - TaskName string `protobuf:"bytes,2,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"` + SchemaName string `protobuf:"bytes,1,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` + TableName string `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` } -func (x *RemoveTaskExpr) Reset() { - *x = RemoveTaskExpr{} +func (x *SchemaScopedTableName) Reset() { + *x = SchemaScopedTableName{} if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_ddl_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -366,13 +366,13 @@ func (x *RemoveTaskExpr) Reset() { } } -func (x *RemoveTaskExpr) String() string { +func (x *SchemaScopedTableName) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RemoveTaskExpr) ProtoMessage() {} +func (*SchemaScopedTableName) ProtoMessage() {} -func (x *RemoveTaskExpr) ProtoReflect() protoreflect.Message { +func (x *SchemaScopedTableName) ProtoReflect() protoreflect.Message { mi := &file_greptime_v1_ddl_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -384,19 +384,75 @@ func (x *RemoveTaskExpr) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveTaskExpr.ProtoReflect.Descriptor instead. -func (*RemoveTaskExpr) Descriptor() ([]byte, []int) { +// Deprecated: Use SchemaScopedTableName.ProtoReflect.Descriptor instead. +func (*SchemaScopedTableName) Descriptor() ([]byte, []int) { return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{2} } -func (x *RemoveTaskExpr) GetCatalogName() string { +func (x *SchemaScopedTableName) GetSchemaName() string { + if x != nil { + return x.SchemaName + } + return "" +} + +func (x *SchemaScopedTableName) GetTableName() string { + if x != nil { + return x.TableName + } + return "" +} + +// Remove a flow task. +type DropFlowTaskExpr 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"` + TaskName string `protobuf:"bytes,2,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"` +} + +func (x *DropFlowTaskExpr) Reset() { + *x = DropFlowTaskExpr{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DropFlowTaskExpr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DropFlowTaskExpr) ProtoMessage() {} + +func (x *DropFlowTaskExpr) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[3] + 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 DropFlowTaskExpr.ProtoReflect.Descriptor instead. +func (*DropFlowTaskExpr) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{3} +} + +func (x *DropFlowTaskExpr) GetCatalogName() string { if x != nil { return x.CatalogName } return "" } -func (x *RemoveTaskExpr) GetTaskName() string { +func (x *DropFlowTaskExpr) GetTaskName() string { if x != nil { return x.TaskName } @@ -424,7 +480,7 @@ type CreateTableExpr struct { func (x *CreateTableExpr) Reset() { *x = CreateTableExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[3] + mi := &file_greptime_v1_ddl_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -437,7 +493,7 @@ func (x *CreateTableExpr) String() string { func (*CreateTableExpr) ProtoMessage() {} func (x *CreateTableExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[3] + mi := &file_greptime_v1_ddl_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -450,7 +506,7 @@ func (x *CreateTableExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateTableExpr.ProtoReflect.Descriptor instead. func (*CreateTableExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{3} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{4} } func (x *CreateTableExpr) GetCatalogName() string { @@ -549,7 +605,7 @@ type AlterExpr struct { func (x *AlterExpr) Reset() { *x = AlterExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[4] + mi := &file_greptime_v1_ddl_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -562,7 +618,7 @@ func (x *AlterExpr) String() string { func (*AlterExpr) ProtoMessage() {} func (x *AlterExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[4] + mi := &file_greptime_v1_ddl_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -575,7 +631,7 @@ func (x *AlterExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use AlterExpr.ProtoReflect.Descriptor instead. func (*AlterExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{4} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{5} } func (x *AlterExpr) GetCatalogName() string { @@ -664,7 +720,7 @@ type DropTableExpr struct { func (x *DropTableExpr) Reset() { *x = DropTableExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[5] + mi := &file_greptime_v1_ddl_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -677,7 +733,7 @@ func (x *DropTableExpr) String() string { func (*DropTableExpr) ProtoMessage() {} func (x *DropTableExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[5] + mi := &file_greptime_v1_ddl_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -690,7 +746,7 @@ func (x *DropTableExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use DropTableExpr.ProtoReflect.Descriptor instead. func (*DropTableExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{5} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{6} } func (x *DropTableExpr) GetCatalogName() string { @@ -742,7 +798,7 @@ type CreateDatabaseExpr struct { func (x *CreateDatabaseExpr) Reset() { *x = CreateDatabaseExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[6] + mi := &file_greptime_v1_ddl_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -755,7 +811,7 @@ func (x *CreateDatabaseExpr) String() string { func (*CreateDatabaseExpr) ProtoMessage() {} func (x *CreateDatabaseExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[6] + mi := &file_greptime_v1_ddl_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -768,7 +824,7 @@ func (x *CreateDatabaseExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateDatabaseExpr.ProtoReflect.Descriptor instead. func (*CreateDatabaseExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{6} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{7} } func (x *CreateDatabaseExpr) GetCatalogName() string { @@ -813,7 +869,7 @@ type TruncateTableExpr struct { func (x *TruncateTableExpr) Reset() { *x = TruncateTableExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[7] + mi := &file_greptime_v1_ddl_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -826,7 +882,7 @@ func (x *TruncateTableExpr) String() string { func (*TruncateTableExpr) ProtoMessage() {} func (x *TruncateTableExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[7] + mi := &file_greptime_v1_ddl_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -839,7 +895,7 @@ func (x *TruncateTableExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use TruncateTableExpr.ProtoReflect.Descriptor instead. func (*TruncateTableExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{7} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{8} } func (x *TruncateTableExpr) GetCatalogName() string { @@ -883,7 +939,7 @@ type DropDatabaseExpr struct { func (x *DropDatabaseExpr) Reset() { *x = DropDatabaseExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[8] + mi := &file_greptime_v1_ddl_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -896,7 +952,7 @@ func (x *DropDatabaseExpr) String() string { func (*DropDatabaseExpr) ProtoMessage() {} func (x *DropDatabaseExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[8] + mi := &file_greptime_v1_ddl_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -909,7 +965,7 @@ func (x *DropDatabaseExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use DropDatabaseExpr.ProtoReflect.Descriptor instead. func (*DropDatabaseExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{8} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9} } func (x *DropDatabaseExpr) GetCatalogName() string { @@ -944,7 +1000,7 @@ type AddColumns struct { func (x *AddColumns) Reset() { *x = AddColumns{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[9] + mi := &file_greptime_v1_ddl_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -957,7 +1013,7 @@ func (x *AddColumns) String() string { func (*AddColumns) ProtoMessage() {} func (x *AddColumns) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[9] + mi := &file_greptime_v1_ddl_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -970,7 +1026,7 @@ func (x *AddColumns) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumns.ProtoReflect.Descriptor instead. func (*AddColumns) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10} } func (x *AddColumns) GetAddColumns() []*AddColumn { @@ -991,7 +1047,7 @@ type DropColumns struct { func (x *DropColumns) Reset() { *x = DropColumns{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[10] + mi := &file_greptime_v1_ddl_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1004,7 +1060,7 @@ func (x *DropColumns) String() string { func (*DropColumns) ProtoMessage() {} func (x *DropColumns) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[10] + mi := &file_greptime_v1_ddl_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1017,7 +1073,7 @@ func (x *DropColumns) ProtoReflect() protoreflect.Message { // Deprecated: Use DropColumns.ProtoReflect.Descriptor instead. func (*DropColumns) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11} } func (x *DropColumns) GetDropColumns() []*DropColumn { @@ -1038,7 +1094,7 @@ type RenameTable struct { func (x *RenameTable) Reset() { *x = RenameTable{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[11] + mi := &file_greptime_v1_ddl_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1051,7 +1107,7 @@ func (x *RenameTable) String() string { func (*RenameTable) ProtoMessage() {} func (x *RenameTable) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[11] + mi := &file_greptime_v1_ddl_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1064,7 +1120,7 @@ func (x *RenameTable) ProtoReflect() protoreflect.Message { // Deprecated: Use RenameTable.ProtoReflect.Descriptor instead. func (*RenameTable) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12} } func (x *RenameTable) GetNewTableName() string { @@ -1086,7 +1142,7 @@ type AddColumn struct { func (x *AddColumn) Reset() { *x = AddColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[12] + mi := &file_greptime_v1_ddl_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1099,7 +1155,7 @@ func (x *AddColumn) String() string { func (*AddColumn) ProtoMessage() {} func (x *AddColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[12] + mi := &file_greptime_v1_ddl_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1112,7 +1168,7 @@ func (x *AddColumn) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumn.ProtoReflect.Descriptor instead. func (*AddColumn) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13} } func (x *AddColumn) GetColumnDef() *ColumnDef { @@ -1140,7 +1196,7 @@ type DropColumn struct { func (x *DropColumn) Reset() { *x = DropColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[13] + mi := &file_greptime_v1_ddl_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1153,7 +1209,7 @@ func (x *DropColumn) String() string { func (*DropColumn) ProtoMessage() {} func (x *DropColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[13] + mi := &file_greptime_v1_ddl_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1166,7 +1222,7 @@ func (x *DropColumn) ProtoReflect() protoreflect.Message { // Deprecated: Use DropColumn.ProtoReflect.Descriptor instead. func (*DropColumn) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} } func (x *DropColumn) GetName() string { @@ -1187,7 +1243,7 @@ type TableId struct { func (x *TableId) Reset() { *x = TableId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[14] + mi := &file_greptime_v1_ddl_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1200,7 +1256,7 @@ func (x *TableId) String() string { func (*TableId) ProtoMessage() {} func (x *TableId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[14] + mi := &file_greptime_v1_ddl_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1213,7 +1269,7 @@ func (x *TableId) ProtoReflect() protoreflect.Message { // Deprecated: Use TableId.ProtoReflect.Descriptor instead. func (*TableId) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} } func (x *TableId) GetId() uint32 { @@ -1241,7 +1297,7 @@ type ColumnDef struct { func (x *ColumnDef) Reset() { *x = ColumnDef{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[15] + mi := &file_greptime_v1_ddl_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1254,7 +1310,7 @@ func (x *ColumnDef) String() string { func (*ColumnDef) ProtoMessage() {} func (x *ColumnDef) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[15] + mi := &file_greptime_v1_ddl_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1267,7 +1323,7 @@ func (x *ColumnDef) ProtoReflect() protoreflect.Message { // Deprecated: Use ColumnDef.ProtoReflect.Descriptor instead. func (*ColumnDef) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} } func (x *ColumnDef) GetName() string { @@ -1331,7 +1387,7 @@ type AddColumnLocation struct { func (x *AddColumnLocation) Reset() { *x = AddColumnLocation{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[16] + mi := &file_greptime_v1_ddl_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1344,7 +1400,7 @@ func (x *AddColumnLocation) String() string { func (*AddColumnLocation) ProtoMessage() {} func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[16] + mi := &file_greptime_v1_ddl_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1357,7 +1413,7 @@ func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumnLocation.ProtoReflect.Descriptor instead. func (*AddColumnLocation) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17} } func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType { @@ -1380,7 +1436,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x0a, 0x15, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x64, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, - 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd9, + 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xed, 0x03, 0x0a, 0x0a, 0x44, 0x64, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, @@ -1402,212 +1458,223 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x73, - 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, - 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, - 0x73, 0x6b, 0x12, 0x3e, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x74, 0x61, 0x73, - 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, - 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, - 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72, 0x22, 0xb9, 0x03, 0x0a, 0x0e, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 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, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, - 0x12, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x6f, - 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, 0x61, - 0x62, 0x6c, 0x65, 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, - 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, - 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, - 0x72, 0x65, 0x5f, 0x77, 0x68, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, - 0x78, 0x70, 0x69, 0x72, 0x65, 0x57, 0x68, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, - 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, - 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, 0x4f, 0x0a, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x6c, 0x65, 0x12, 0x4b, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, + 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, + 0x45, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x61, 0x73, + 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, + 0x73, 0x6b, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x46, 0x6c, + 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72, 0x22, 0x85, + 0x04, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, + 0x6b, 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, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, + 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x0f, 0x73, 0x69, 0x6e, 0x6b, 0x5f, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0d, 0x73, 0x69, 0x6e, 0x6b, 0x54, 0x61, 0x62, 0x6c, 0x65, 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, 0x05, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, + 0x69, 0x73, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x77, + 0x68, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, + 0x65, 0x57, 0x68, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, + 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, + 0x6c, 0x12, 0x53, 0x0a, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x74, 0x61, 0x73, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x70, 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, 0x50, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x54, 0x61, 0x73, 0x6b, 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, 0x1b, 0x0a, 0x09, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x93, 0x04, 0x0a, 0x0f, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 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, - 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x57, 0x0a, 0x15, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x53, 0x63, 0x6f, 0x70, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, - 0x65, 0x73, 0x63, 0x12, 0x37, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, - 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, - 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x73, 0x12, 0x1d, 0x0a, 0x0a, - 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x70, - 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0b, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 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, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, - 0x53, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x45, 0x78, 0x70, 0x72, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x0a, 0x20, 0x01, 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, 0x07, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, - 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x1a, 0x3f, 0x0a, - 0x11, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 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, 0xb0, - 0x02, 0x0a, 0x09, 0x41, 0x6c, 0x74, 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, - 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x3a, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, - 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x64, - 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x64, - 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x72, 0x65, - 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, - 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, - 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, - 0x64, 0x22, 0xc9, 0x01, 0x0a, 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, + 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, + 0x52, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 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, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 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, 0x07, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, - 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x8d, 0x02, - 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, - 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, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 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, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, - 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 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, 0xa7, 0x01, - 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 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, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 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, 0x07, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44, - 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 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, 0x1f, - 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, - 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, - 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, - 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, - 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, - 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, - 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, - 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x0a, - 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, - 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0xd8, 0x02, 0x0a, 0x09, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, - 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, - 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, - 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, - 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, - 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, - 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, - 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, - 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, - 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, - 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, - 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, - 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 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, + 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4e, + 0x61, 0x6d, 0x65, 0x22, 0x93, 0x04, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, + 0x62, 0x6c, 0x65, 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, 0x1f, 0x0a, 0x0b, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, + 0x73, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12, 0x37, + 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x73, 0x18, 0x05, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x0a, 0x63, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, + 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 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, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, + 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x53, 0x0a, 0x0d, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 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, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, + 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x4f, 0x70, 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, 0xb0, 0x02, 0x0a, 0x09, 0x41, 0x6c, + 0x74, 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, 0x1f, 0x0a, 0x0b, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x61, 0x64, + 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, + 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xc9, 0x01, 0x0a, + 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 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, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, + 0x01, 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, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, + 0x69, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, + 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 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, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 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, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, + 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, + 0x4f, 0x70, 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, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, + 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 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, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, + 0x01, 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, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, + 0x73, 0x65, 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, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, + 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, + 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, + 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, + 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, + 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, + 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x02, 0x69, 0x64, 0x22, 0xd8, 0x02, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, + 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, + 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, + 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, + 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, + 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, + 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, + 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, + 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, + 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, + 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, + 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 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 ( @@ -1623,64 +1690,67 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte { } var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 21) var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType (*DdlRequest)(nil), // 1: greptime.v1.DdlRequest - (*CreateTaskExpr)(nil), // 2: greptime.v1.CreateTaskExpr - (*RemoveTaskExpr)(nil), // 3: greptime.v1.RemoveTaskExpr - (*CreateTableExpr)(nil), // 4: greptime.v1.CreateTableExpr - (*AlterExpr)(nil), // 5: greptime.v1.AlterExpr - (*DropTableExpr)(nil), // 6: greptime.v1.DropTableExpr - (*CreateDatabaseExpr)(nil), // 7: greptime.v1.CreateDatabaseExpr - (*TruncateTableExpr)(nil), // 8: greptime.v1.TruncateTableExpr - (*DropDatabaseExpr)(nil), // 9: greptime.v1.DropDatabaseExpr - (*AddColumns)(nil), // 10: greptime.v1.AddColumns - (*DropColumns)(nil), // 11: greptime.v1.DropColumns - (*RenameTable)(nil), // 12: greptime.v1.RenameTable - (*AddColumn)(nil), // 13: greptime.v1.AddColumn - (*DropColumn)(nil), // 14: greptime.v1.DropColumn - (*TableId)(nil), // 15: greptime.v1.TableId - (*ColumnDef)(nil), // 16: greptime.v1.ColumnDef - (*AddColumnLocation)(nil), // 17: greptime.v1.AddColumnLocation - nil, // 18: greptime.v1.CreateTaskExpr.TaskOptionsEntry - nil, // 19: greptime.v1.CreateTableExpr.TableOptionsEntry - nil, // 20: greptime.v1.CreateDatabaseExpr.OptionsEntry - (ColumnDataType)(0), // 21: greptime.v1.ColumnDataType - (SemanticType)(0), // 22: greptime.v1.SemanticType - (*ColumnDataTypeExtension)(nil), // 23: greptime.v1.ColumnDataTypeExtension + (*CreateFlowTaskExpr)(nil), // 2: greptime.v1.CreateFlowTaskExpr + (*SchemaScopedTableName)(nil), // 3: greptime.v1.SchemaScopedTableName + (*DropFlowTaskExpr)(nil), // 4: greptime.v1.DropFlowTaskExpr + (*CreateTableExpr)(nil), // 5: greptime.v1.CreateTableExpr + (*AlterExpr)(nil), // 6: greptime.v1.AlterExpr + (*DropTableExpr)(nil), // 7: greptime.v1.DropTableExpr + (*CreateDatabaseExpr)(nil), // 8: greptime.v1.CreateDatabaseExpr + (*TruncateTableExpr)(nil), // 9: greptime.v1.TruncateTableExpr + (*DropDatabaseExpr)(nil), // 10: greptime.v1.DropDatabaseExpr + (*AddColumns)(nil), // 11: greptime.v1.AddColumns + (*DropColumns)(nil), // 12: greptime.v1.DropColumns + (*RenameTable)(nil), // 13: greptime.v1.RenameTable + (*AddColumn)(nil), // 14: greptime.v1.AddColumn + (*DropColumn)(nil), // 15: greptime.v1.DropColumn + (*TableId)(nil), // 16: greptime.v1.TableId + (*ColumnDef)(nil), // 17: greptime.v1.ColumnDef + (*AddColumnLocation)(nil), // 18: greptime.v1.AddColumnLocation + nil, // 19: greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry + nil, // 20: greptime.v1.CreateTableExpr.TableOptionsEntry + nil, // 21: greptime.v1.CreateDatabaseExpr.OptionsEntry + (ColumnDataType)(0), // 22: greptime.v1.ColumnDataType + (SemanticType)(0), // 23: greptime.v1.SemanticType + (*ColumnDataTypeExtension)(nil), // 24: greptime.v1.ColumnDataTypeExtension } var file_greptime_v1_ddl_proto_depIdxs = []int32{ - 7, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr - 4, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr - 5, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr - 6, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr - 8, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr - 2, // 5: greptime.v1.DdlRequest.create_task:type_name -> greptime.v1.CreateTaskExpr - 3, // 6: greptime.v1.DdlRequest.remove_task:type_name -> greptime.v1.RemoveTaskExpr - 18, // 7: greptime.v1.CreateTaskExpr.task_options:type_name -> greptime.v1.CreateTaskExpr.TaskOptionsEntry - 16, // 8: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef - 19, // 9: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry - 15, // 10: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId - 10, // 11: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns - 11, // 12: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns - 12, // 13: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable - 15, // 14: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId - 20, // 15: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry - 15, // 16: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId - 13, // 17: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn - 14, // 18: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn - 16, // 19: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef - 17, // 20: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation - 21, // 21: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType - 22, // 22: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType - 23, // 23: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 0, // 24: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType - 25, // [25:25] is the sub-list for method output_type - 25, // [25:25] is the sub-list for method input_type - 25, // [25:25] is the sub-list for extension type_name - 25, // [25:25] is the sub-list for extension extendee - 0, // [0:25] is the sub-list for field type_name + 8, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr + 5, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr + 6, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr + 7, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr + 9, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr + 2, // 5: greptime.v1.DdlRequest.create_flow_task:type_name -> greptime.v1.CreateFlowTaskExpr + 4, // 6: greptime.v1.DdlRequest.drop_flow_task:type_name -> greptime.v1.DropFlowTaskExpr + 3, // 7: greptime.v1.CreateFlowTaskExpr.source_table_names:type_name -> greptime.v1.SchemaScopedTableName + 3, // 8: greptime.v1.CreateFlowTaskExpr.sink_table_name:type_name -> greptime.v1.SchemaScopedTableName + 19, // 9: greptime.v1.CreateFlowTaskExpr.task_options:type_name -> greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry + 17, // 10: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef + 20, // 11: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry + 16, // 12: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId + 11, // 13: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns + 12, // 14: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns + 13, // 15: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable + 16, // 16: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId + 21, // 17: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry + 16, // 18: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId + 14, // 19: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn + 15, // 20: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 17, // 21: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 18, // 22: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 22, // 23: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType + 23, // 24: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType + 24, // 25: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 0, // 26: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType + 27, // [27:27] is the sub-list for method output_type + 27, // [27:27] is the sub-list for method input_type + 27, // [27:27] is the sub-list for extension type_name + 27, // [27:27] is the sub-list for extension extendee + 0, // [0:27] is the sub-list for field type_name } func init() { file_greptime_v1_ddl_proto_init() } @@ -1703,7 +1773,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTaskExpr); i { + switch v := v.(*CreateFlowTaskExpr); i { case 0: return &v.state case 1: @@ -1715,7 +1785,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveTaskExpr); i { + switch v := v.(*SchemaScopedTableName); i { case 0: return &v.state case 1: @@ -1727,7 +1797,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTableExpr); i { + switch v := v.(*DropFlowTaskExpr); i { case 0: return &v.state case 1: @@ -1739,7 +1809,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AlterExpr); i { + switch v := v.(*CreateTableExpr); i { case 0: return &v.state case 1: @@ -1751,7 +1821,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DropTableExpr); i { + switch v := v.(*AlterExpr); i { case 0: return &v.state case 1: @@ -1763,7 +1833,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateDatabaseExpr); i { + switch v := v.(*DropTableExpr); i { case 0: return &v.state case 1: @@ -1775,7 +1845,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TruncateTableExpr); i { + switch v := v.(*CreateDatabaseExpr); i { case 0: return &v.state case 1: @@ -1787,7 +1857,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DropDatabaseExpr); i { + switch v := v.(*TruncateTableExpr); i { case 0: return &v.state case 1: @@ -1799,7 +1869,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddColumns); i { + switch v := v.(*DropDatabaseExpr); i { case 0: return &v.state case 1: @@ -1811,7 +1881,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DropColumns); i { + switch v := v.(*AddColumns); i { case 0: return &v.state case 1: @@ -1823,7 +1893,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RenameTable); i { + switch v := v.(*DropColumns); i { case 0: return &v.state case 1: @@ -1835,7 +1905,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddColumn); i { + switch v := v.(*RenameTable); i { case 0: return &v.state case 1: @@ -1847,7 +1917,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DropColumn); i { + switch v := v.(*AddColumn); i { case 0: return &v.state case 1: @@ -1859,7 +1929,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TableId); i { + switch v := v.(*DropColumn); i { case 0: return &v.state case 1: @@ -1871,7 +1941,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColumnDef); i { + switch v := v.(*TableId); i { case 0: return &v.state case 1: @@ -1883,6 +1953,18 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ColumnDef); 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[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddColumnLocation); i { case 0: return &v.state @@ -1901,10 +1983,10 @@ func file_greptime_v1_ddl_proto_init() { (*DdlRequest_Alter)(nil), (*DdlRequest_DropTable)(nil), (*DdlRequest_TruncateTable)(nil), - (*DdlRequest_CreateTask)(nil), - (*DdlRequest_RemoveTask)(nil), + (*DdlRequest_CreateFlowTask)(nil), + (*DdlRequest_DropFlowTask)(nil), } - file_greptime_v1_ddl_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_greptime_v1_ddl_proto_msgTypes[5].OneofWrappers = []interface{}{ (*AlterExpr_AddColumns)(nil), (*AlterExpr_DropColumns)(nil), (*AlterExpr_RenameTable)(nil), @@ -1915,7 +1997,7 @@ func file_greptime_v1_ddl_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, NumEnums: 1, - NumMessages: 20, + NumMessages: 21, NumExtensions: 0, NumServices: 0, }, diff --git a/go/greptime/v1/meta/ddl.pb.go b/go/greptime/v1/meta/ddl.pb.go index 6fb36be2..89c67a18 100644 --- a/go/greptime/v1/meta/ddl.pb.go +++ b/go/greptime/v1/meta/ddl.pb.go @@ -520,6 +520,100 @@ func (x *DropDatabaseTask) GetDropDatabase() *v1.DropDatabaseExpr { return nil } +type CreateFlowTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CreateFlowTask *v1.CreateFlowTaskExpr `protobuf:"bytes,1,opt,name=create_flow_task,json=createFlowTask,proto3" json:"create_flow_task,omitempty"` +} + +func (x *CreateFlowTask) Reset() { + *x = CreateFlowTask{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateFlowTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateFlowTask) ProtoMessage() {} + +func (x *CreateFlowTask) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateFlowTask.ProtoReflect.Descriptor instead. +func (*CreateFlowTask) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{9} +} + +func (x *CreateFlowTask) GetCreateFlowTask() *v1.CreateFlowTaskExpr { + if x != nil { + return x.CreateFlowTask + } + return nil +} + +type DropFlowTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DropFlowTask *v1.DropFlowTaskExpr `protobuf:"bytes,1,opt,name=drop_flow_task,json=dropFlowTask,proto3" json:"drop_flow_task,omitempty"` +} + +func (x *DropFlowTask) Reset() { + *x = DropFlowTask{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DropFlowTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DropFlowTask) ProtoMessage() {} + +func (x *DropFlowTask) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DropFlowTask.ProtoReflect.Descriptor instead. +func (*DropFlowTask) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{10} +} + +func (x *DropFlowTask) GetDropFlowTask() *v1.DropFlowTaskExpr { + if x != nil { + return x.DropFlowTask + } + return nil +} + type DdlTaskRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -537,13 +631,15 @@ type DdlTaskRequest struct { // *DdlTaskRequest_AlterTableTasks // *DdlTaskRequest_DropDatabaseTask // *DdlTaskRequest_CreateDatabaseTask + // *DdlTaskRequest_CreateFlowTask + // *DdlTaskRequest_DropFlowTask Task isDdlTaskRequest_Task `protobuf_oneof:"task"` } func (x *DdlTaskRequest) Reset() { *x = DdlTaskRequest{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_ddl_proto_msgTypes[9] + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -556,7 +652,7 @@ func (x *DdlTaskRequest) String() string { func (*DdlTaskRequest) ProtoMessage() {} func (x *DdlTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_ddl_proto_msgTypes[9] + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -569,7 +665,7 @@ func (x *DdlTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DdlTaskRequest.ProtoReflect.Descriptor instead. func (*DdlTaskRequest) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{9} + return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{11} } func (x *DdlTaskRequest) GetHeader() *RequestHeader { @@ -649,6 +745,20 @@ func (x *DdlTaskRequest) GetCreateDatabaseTask() *CreateDatabaseTask { return nil } +func (x *DdlTaskRequest) GetCreateFlowTask() *CreateFlowTask { + if x, ok := x.GetTask().(*DdlTaskRequest_CreateFlowTask); ok { + return x.CreateFlowTask + } + return nil +} + +func (x *DdlTaskRequest) GetDropFlowTask() *DropFlowTask { + if x, ok := x.GetTask().(*DdlTaskRequest_DropFlowTask); ok { + return x.DropFlowTask + } + return nil +} + type isDdlTaskRequest_Task interface { isDdlTaskRequest_Task() } @@ -689,6 +799,14 @@ type DdlTaskRequest_CreateDatabaseTask struct { CreateDatabaseTask *CreateDatabaseTask `protobuf:"bytes,10,opt,name=create_database_task,json=createDatabaseTask,proto3,oneof"` } +type DdlTaskRequest_CreateFlowTask struct { + CreateFlowTask *CreateFlowTask `protobuf:"bytes,11,opt,name=create_flow_task,json=createFlowTask,proto3,oneof"` +} + +type DdlTaskRequest_DropFlowTask struct { + DropFlowTask *DropFlowTask `protobuf:"bytes,12,opt,name=drop_flow_task,json=dropFlowTask,proto3,oneof"` +} + func (*DdlTaskRequest_CreateTableTask) isDdlTaskRequest_Task() {} func (*DdlTaskRequest_DropTableTask) isDdlTaskRequest_Task() {} @@ -707,6 +825,10 @@ func (*DdlTaskRequest_DropDatabaseTask) isDdlTaskRequest_Task() {} func (*DdlTaskRequest_CreateDatabaseTask) isDdlTaskRequest_Task() {} +func (*DdlTaskRequest_CreateFlowTask) isDdlTaskRequest_Task() {} + +func (*DdlTaskRequest_DropFlowTask) isDdlTaskRequest_Task() {} + type DdlTaskResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -724,7 +846,7 @@ type DdlTaskResponse struct { func (x *DdlTaskResponse) Reset() { *x = DdlTaskResponse{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_ddl_proto_msgTypes[10] + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -737,7 +859,7 @@ func (x *DdlTaskResponse) String() string { func (*DdlTaskResponse) ProtoMessage() {} func (x *DdlTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_ddl_proto_msgTypes[10] + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -750,7 +872,7 @@ func (x *DdlTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DdlTaskResponse.ProtoReflect.Descriptor instead. func (*DdlTaskResponse) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{10} + return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{12} } func (x *DdlTaskResponse) GetHeader() *ResponseHeader { @@ -844,79 +966,100 @@ var file_greptime_v1_meta_ddl_proto_rawDesc = []byte{ 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, - 0xb3, 0x06, 0x0a, 0x0e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x11, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0f, - 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x72, - 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, - 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, - 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x11, 0x74, 0x72, 0x75, 0x6e, 0x63, - 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x52, 0x0a, 0x12, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, - 0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x5b, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, + 0x6b, 0x12, 0x49, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0e, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x22, 0x53, 0x0a, 0x0c, + 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x43, 0x0a, 0x0e, + 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x45, + 0x78, 0x70, 0x72, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, + 0x6b, 0x22, 0xc9, 0x07, 0x0a, 0x0e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x4f, 0x0a, + 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, + 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x10, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, - 0x12, 0x4c, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, - 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, - 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0e, - 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4f, - 0x0a, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, - 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, - 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0f, - 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, - 0x52, 0x0a, 0x12, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, - 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, - 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, - 0x00, 0x52, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, - 0x61, 0x73, 0x6b, 0x12, 0x58, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, - 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, - 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, 0xea, 0x01, 0x0a, 0x0f, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, - 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, - 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, - 0x03, 0x70, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, - 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, + 0x0a, 0x0f, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, + 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, + 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, + 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x11, 0x74, 0x72, 0x75, + 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x52, + 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, + 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, + 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, + 0x6b, 0x73, 0x12, 0x4c, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, + 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, + 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, + 0x12, 0x4f, 0x0a, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, + 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, + 0x52, 0x0f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, + 0x73, 0x12, 0x52, 0x0a, 0x12, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, + 0x73, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, - 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, - 0x64, 0x73, 0x2a, 0x23, 0x0a, 0x0b, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, - 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10, 0x01, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, - 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, - 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, + 0x6b, 0x48, 0x00, 0x52, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, + 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x58, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, + 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, + 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x12, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, + 0x4c, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, + 0x61, 0x73, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x46, 0x0a, + 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, + 0x77, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, + 0x77, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, 0xea, 0x01, + 0x0a, 0x0f, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x03, 0x70, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, + 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, + 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x49, 0x64, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, + 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x2a, 0x23, 0x0a, 0x0b, 0x44, 0x64, + 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10, 0x01, 0x42, + 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -932,7 +1075,7 @@ func file_greptime_v1_meta_ddl_proto_rawDescGZIP() []byte { } var file_greptime_v1_meta_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_greptime_v1_meta_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_greptime_v1_meta_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{ (DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType (*CreateDatabaseTask)(nil), // 1: greptime.v1.meta.CreateDatabaseTask @@ -944,50 +1087,58 @@ var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{ (*AlterTableTasks)(nil), // 7: greptime.v1.meta.AlterTableTasks (*TruncateTableTask)(nil), // 8: greptime.v1.meta.TruncateTableTask (*DropDatabaseTask)(nil), // 9: greptime.v1.meta.DropDatabaseTask - (*DdlTaskRequest)(nil), // 10: greptime.v1.meta.DdlTaskRequest - (*DdlTaskResponse)(nil), // 11: greptime.v1.meta.DdlTaskResponse - (*v1.CreateDatabaseExpr)(nil), // 12: greptime.v1.CreateDatabaseExpr - (*v1.CreateTableExpr)(nil), // 13: greptime.v1.CreateTableExpr - (*Partition)(nil), // 14: greptime.v1.meta.Partition - (*v1.DropTableExpr)(nil), // 15: greptime.v1.DropTableExpr - (*v1.AlterExpr)(nil), // 16: greptime.v1.AlterExpr - (*v1.TruncateTableExpr)(nil), // 17: greptime.v1.TruncateTableExpr - (*v1.DropDatabaseExpr)(nil), // 18: greptime.v1.DropDatabaseExpr - (*RequestHeader)(nil), // 19: greptime.v1.meta.RequestHeader - (*ResponseHeader)(nil), // 20: greptime.v1.meta.ResponseHeader - (*ProcedureId)(nil), // 21: greptime.v1.meta.ProcedureId - (*TableId)(nil), // 22: greptime.v1.meta.TableId + (*CreateFlowTask)(nil), // 10: greptime.v1.meta.CreateFlowTask + (*DropFlowTask)(nil), // 11: greptime.v1.meta.DropFlowTask + (*DdlTaskRequest)(nil), // 12: greptime.v1.meta.DdlTaskRequest + (*DdlTaskResponse)(nil), // 13: greptime.v1.meta.DdlTaskResponse + (*v1.CreateDatabaseExpr)(nil), // 14: greptime.v1.CreateDatabaseExpr + (*v1.CreateTableExpr)(nil), // 15: greptime.v1.CreateTableExpr + (*Partition)(nil), // 16: greptime.v1.meta.Partition + (*v1.DropTableExpr)(nil), // 17: greptime.v1.DropTableExpr + (*v1.AlterExpr)(nil), // 18: greptime.v1.AlterExpr + (*v1.TruncateTableExpr)(nil), // 19: greptime.v1.TruncateTableExpr + (*v1.DropDatabaseExpr)(nil), // 20: greptime.v1.DropDatabaseExpr + (*v1.CreateFlowTaskExpr)(nil), // 21: greptime.v1.CreateFlowTaskExpr + (*v1.DropFlowTaskExpr)(nil), // 22: greptime.v1.DropFlowTaskExpr + (*RequestHeader)(nil), // 23: greptime.v1.meta.RequestHeader + (*ResponseHeader)(nil), // 24: greptime.v1.meta.ResponseHeader + (*ProcedureId)(nil), // 25: greptime.v1.meta.ProcedureId + (*TableId)(nil), // 26: greptime.v1.meta.TableId } var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{ - 12, // 0: greptime.v1.meta.CreateDatabaseTask.create_database:type_name -> greptime.v1.CreateDatabaseExpr - 13, // 1: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr - 14, // 2: greptime.v1.meta.CreateTableTask.partitions:type_name -> greptime.v1.meta.Partition + 14, // 0: greptime.v1.meta.CreateDatabaseTask.create_database:type_name -> greptime.v1.CreateDatabaseExpr + 15, // 1: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr + 16, // 2: greptime.v1.meta.CreateTableTask.partitions:type_name -> greptime.v1.meta.Partition 2, // 3: greptime.v1.meta.CreateTableTasks.tasks:type_name -> greptime.v1.meta.CreateTableTask - 15, // 4: greptime.v1.meta.DropTableTask.drop_table:type_name -> greptime.v1.DropTableExpr + 17, // 4: greptime.v1.meta.DropTableTask.drop_table:type_name -> greptime.v1.DropTableExpr 4, // 5: greptime.v1.meta.DropTableTasks.tasks:type_name -> greptime.v1.meta.DropTableTask - 16, // 6: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterExpr + 18, // 6: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterExpr 6, // 7: greptime.v1.meta.AlterTableTasks.tasks:type_name -> greptime.v1.meta.AlterTableTask - 17, // 8: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr - 18, // 9: greptime.v1.meta.DropDatabaseTask.drop_database:type_name -> greptime.v1.DropDatabaseExpr - 19, // 10: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader - 2, // 11: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask - 4, // 12: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask - 6, // 13: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask - 8, // 14: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask - 3, // 15: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks - 5, // 16: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks - 7, // 17: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks - 9, // 18: greptime.v1.meta.DdlTaskRequest.drop_database_task:type_name -> greptime.v1.meta.DropDatabaseTask - 1, // 19: greptime.v1.meta.DdlTaskRequest.create_database_task:type_name -> greptime.v1.meta.CreateDatabaseTask - 20, // 20: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 21, // 21: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId - 22, // 22: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId - 22, // 23: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId - 24, // [24:24] is the sub-list for method output_type - 24, // [24:24] is the sub-list for method input_type - 24, // [24:24] is the sub-list for extension type_name - 24, // [24:24] is the sub-list for extension extendee - 0, // [0:24] is the sub-list for field type_name + 19, // 8: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr + 20, // 9: greptime.v1.meta.DropDatabaseTask.drop_database:type_name -> greptime.v1.DropDatabaseExpr + 21, // 10: greptime.v1.meta.CreateFlowTask.create_flow_task:type_name -> greptime.v1.CreateFlowTaskExpr + 22, // 11: greptime.v1.meta.DropFlowTask.drop_flow_task:type_name -> greptime.v1.DropFlowTaskExpr + 23, // 12: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader + 2, // 13: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask + 4, // 14: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask + 6, // 15: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask + 8, // 16: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask + 3, // 17: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks + 5, // 18: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks + 7, // 19: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks + 9, // 20: greptime.v1.meta.DdlTaskRequest.drop_database_task:type_name -> greptime.v1.meta.DropDatabaseTask + 1, // 21: greptime.v1.meta.DdlTaskRequest.create_database_task:type_name -> greptime.v1.meta.CreateDatabaseTask + 10, // 22: greptime.v1.meta.DdlTaskRequest.create_flow_task:type_name -> greptime.v1.meta.CreateFlowTask + 11, // 23: greptime.v1.meta.DdlTaskRequest.drop_flow_task:type_name -> greptime.v1.meta.DropFlowTask + 24, // 24: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 25, // 25: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId + 26, // 26: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId + 26, // 27: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId + 28, // [28:28] is the sub-list for method output_type + 28, // [28:28] is the sub-list for method input_type + 28, // [28:28] is the sub-list for extension type_name + 28, // [28:28] is the sub-list for extension extendee + 0, // [0:28] is the sub-list for field type_name } func init() { file_greptime_v1_meta_ddl_proto_init() } @@ -1107,7 +1258,7 @@ func file_greptime_v1_meta_ddl_proto_init() { } } file_greptime_v1_meta_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DdlTaskRequest); i { + switch v := v.(*CreateFlowTask); i { case 0: return &v.state case 1: @@ -1119,6 +1270,30 @@ func file_greptime_v1_meta_ddl_proto_init() { } } file_greptime_v1_meta_ddl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DropFlowTask); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_meta_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DdlTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_meta_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DdlTaskResponse); i { case 0: return &v.state @@ -1131,7 +1306,7 @@ func file_greptime_v1_meta_ddl_proto_init() { } } } - file_greptime_v1_meta_ddl_proto_msgTypes[9].OneofWrappers = []interface{}{ + file_greptime_v1_meta_ddl_proto_msgTypes[11].OneofWrappers = []interface{}{ (*DdlTaskRequest_CreateTableTask)(nil), (*DdlTaskRequest_DropTableTask)(nil), (*DdlTaskRequest_AlterTableTask)(nil), @@ -1141,6 +1316,8 @@ func file_greptime_v1_meta_ddl_proto_init() { (*DdlTaskRequest_AlterTableTasks)(nil), (*DdlTaskRequest_DropDatabaseTask)(nil), (*DdlTaskRequest_CreateDatabaseTask)(nil), + (*DdlTaskRequest_CreateFlowTask)(nil), + (*DdlTaskRequest_DropFlowTask)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -1148,7 +1325,7 @@ func file_greptime_v1_meta_ddl_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_meta_ddl_proto_rawDesc, NumEnums: 1, - NumMessages: 11, + NumMessages: 13, NumExtensions: 0, NumServices: 0, }, diff --git a/java/src/main/java/greptime/v1/meta/Ddl.java b/java/src/main/java/greptime/v1/meta/Ddl.java index ea2fed4d..62664925 100644 --- a/java/src/main/java/greptime/v1/meta/Ddl.java +++ b/java/src/main/java/greptime/v1/meta/Ddl.java @@ -6694,6 +6694,1252 @@ public greptime.v1.meta.Ddl.DropDatabaseTask getDefaultInstanceForType() { } + public interface CreateFlowTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.CreateFlowTask) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + * @return Whether the createFlowTask field is set. + */ + boolean hasCreateFlowTask(); + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + * @return The createFlowTask. + */ + io.greptime.v1.Ddl.CreateFlowTaskExpr getCreateFlowTask(); + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + */ + io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder getCreateFlowTaskOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.meta.CreateFlowTask} + */ + public static final class CreateFlowTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.CreateFlowTask) + CreateFlowTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateFlowTask.newBuilder() to construct. + private CreateFlowTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateFlowTask() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateFlowTask(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateFlowTask( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder subBuilder = null; + if (createFlowTask_ != null) { + subBuilder = createFlowTask_.toBuilder(); + } + createFlowTask_ = input.readMessage(io.greptime.v1.Ddl.CreateFlowTaskExpr.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createFlowTask_); + createFlowTask_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_CreateFlowTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_CreateFlowTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Ddl.CreateFlowTask.class, greptime.v1.meta.Ddl.CreateFlowTask.Builder.class); + } + + public static final int CREATE_FLOW_TASK_FIELD_NUMBER = 1; + private io.greptime.v1.Ddl.CreateFlowTaskExpr createFlowTask_; + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + * @return Whether the createFlowTask field is set. + */ + @java.lang.Override + public boolean hasCreateFlowTask() { + return createFlowTask_ != null; + } + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + * @return The createFlowTask. + */ + @java.lang.Override + public io.greptime.v1.Ddl.CreateFlowTaskExpr getCreateFlowTask() { + return createFlowTask_ == null ? io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance() : createFlowTask_; + } + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder getCreateFlowTaskOrBuilder() { + return getCreateFlowTask(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createFlowTask_ != null) { + output.writeMessage(1, getCreateFlowTask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createFlowTask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateFlowTask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.Ddl.CreateFlowTask)) { + return super.equals(obj); + } + greptime.v1.meta.Ddl.CreateFlowTask other = (greptime.v1.meta.Ddl.CreateFlowTask) obj; + + if (hasCreateFlowTask() != other.hasCreateFlowTask()) return false; + if (hasCreateFlowTask()) { + if (!getCreateFlowTask() + .equals(other.getCreateFlowTask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateFlowTask()) { + hash = (37 * hash) + CREATE_FLOW_TASK_FIELD_NUMBER; + hash = (53 * hash) + getCreateFlowTask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Ddl.CreateFlowTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Ddl.CreateFlowTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Ddl.CreateFlowTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Ddl.CreateFlowTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Ddl.CreateFlowTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Ddl.CreateFlowTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Ddl.CreateFlowTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Ddl.CreateFlowTask parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Ddl.CreateFlowTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Ddl.CreateFlowTask parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Ddl.CreateFlowTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Ddl.CreateFlowTask parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.Ddl.CreateFlowTask prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.CreateFlowTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.CreateFlowTask) + greptime.v1.meta.Ddl.CreateFlowTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_CreateFlowTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_CreateFlowTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Ddl.CreateFlowTask.class, greptime.v1.meta.Ddl.CreateFlowTask.Builder.class); + } + + // Construct using greptime.v1.meta.Ddl.CreateFlowTask.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (createFlowTaskBuilder_ == null) { + createFlowTask_ = null; + } else { + createFlowTask_ = null; + createFlowTaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_CreateFlowTask_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Ddl.CreateFlowTask getDefaultInstanceForType() { + return greptime.v1.meta.Ddl.CreateFlowTask.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Ddl.CreateFlowTask build() { + greptime.v1.meta.Ddl.CreateFlowTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Ddl.CreateFlowTask buildPartial() { + greptime.v1.meta.Ddl.CreateFlowTask result = new greptime.v1.meta.Ddl.CreateFlowTask(this); + if (createFlowTaskBuilder_ == null) { + result.createFlowTask_ = createFlowTask_; + } else { + result.createFlowTask_ = createFlowTaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.Ddl.CreateFlowTask) { + return mergeFrom((greptime.v1.meta.Ddl.CreateFlowTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Ddl.CreateFlowTask other) { + if (other == greptime.v1.meta.Ddl.CreateFlowTask.getDefaultInstance()) return this; + if (other.hasCreateFlowTask()) { + mergeCreateFlowTask(other.getCreateFlowTask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.Ddl.CreateFlowTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Ddl.CreateFlowTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.greptime.v1.Ddl.CreateFlowTaskExpr createFlowTask_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.CreateFlowTaskExpr, io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder, io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder> createFlowTaskBuilder_; + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + * @return Whether the createFlowTask field is set. + */ + public boolean hasCreateFlowTask() { + return createFlowTaskBuilder_ != null || createFlowTask_ != null; + } + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + * @return The createFlowTask. + */ + public io.greptime.v1.Ddl.CreateFlowTaskExpr getCreateFlowTask() { + if (createFlowTaskBuilder_ == null) { + return createFlowTask_ == null ? io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance() : createFlowTask_; + } else { + return createFlowTaskBuilder_.getMessage(); + } + } + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + */ + public Builder setCreateFlowTask(io.greptime.v1.Ddl.CreateFlowTaskExpr value) { + if (createFlowTaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createFlowTask_ = value; + onChanged(); + } else { + createFlowTaskBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + */ + public Builder setCreateFlowTask( + io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder builderForValue) { + if (createFlowTaskBuilder_ == null) { + createFlowTask_ = builderForValue.build(); + onChanged(); + } else { + createFlowTaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + */ + public Builder mergeCreateFlowTask(io.greptime.v1.Ddl.CreateFlowTaskExpr value) { + if (createFlowTaskBuilder_ == null) { + if (createFlowTask_ != null) { + createFlowTask_ = + io.greptime.v1.Ddl.CreateFlowTaskExpr.newBuilder(createFlowTask_).mergeFrom(value).buildPartial(); + } else { + createFlowTask_ = value; + } + onChanged(); + } else { + createFlowTaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + */ + public Builder clearCreateFlowTask() { + if (createFlowTaskBuilder_ == null) { + createFlowTask_ = null; + onChanged(); + } else { + createFlowTask_ = null; + createFlowTaskBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + */ + public io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder getCreateFlowTaskBuilder() { + + onChanged(); + return getCreateFlowTaskFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + */ + public io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder getCreateFlowTaskOrBuilder() { + if (createFlowTaskBuilder_ != null) { + return createFlowTaskBuilder_.getMessageOrBuilder(); + } else { + return createFlowTask_ == null ? + io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance() : createFlowTask_; + } + } + /** + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.CreateFlowTaskExpr, io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder, io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder> + getCreateFlowTaskFieldBuilder() { + if (createFlowTaskBuilder_ == null) { + createFlowTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.CreateFlowTaskExpr, io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder, io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder>( + getCreateFlowTask(), + getParentForChildren(), + isClean()); + createFlowTask_ = null; + } + return createFlowTaskBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.CreateFlowTask) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.CreateFlowTask) + private static final greptime.v1.meta.Ddl.CreateFlowTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Ddl.CreateFlowTask(); + } + + public static greptime.v1.meta.Ddl.CreateFlowTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFlowTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFlowTask(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.Ddl.CreateFlowTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DropFlowTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.DropFlowTask) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + * @return Whether the dropFlowTask field is set. + */ + boolean hasDropFlowTask(); + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + * @return The dropFlowTask. + */ + io.greptime.v1.Ddl.DropFlowTaskExpr getDropFlowTask(); + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + */ + io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder getDropFlowTaskOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.meta.DropFlowTask} + */ + public static final class DropFlowTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.DropFlowTask) + DropFlowTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DropFlowTask.newBuilder() to construct. + private DropFlowTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DropFlowTask() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DropFlowTask(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DropFlowTask( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.greptime.v1.Ddl.DropFlowTaskExpr.Builder subBuilder = null; + if (dropFlowTask_ != null) { + subBuilder = dropFlowTask_.toBuilder(); + } + dropFlowTask_ = input.readMessage(io.greptime.v1.Ddl.DropFlowTaskExpr.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dropFlowTask_); + dropFlowTask_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DropFlowTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DropFlowTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Ddl.DropFlowTask.class, greptime.v1.meta.Ddl.DropFlowTask.Builder.class); + } + + public static final int DROP_FLOW_TASK_FIELD_NUMBER = 1; + private io.greptime.v1.Ddl.DropFlowTaskExpr dropFlowTask_; + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + * @return Whether the dropFlowTask field is set. + */ + @java.lang.Override + public boolean hasDropFlowTask() { + return dropFlowTask_ != null; + } + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + * @return The dropFlowTask. + */ + @java.lang.Override + public io.greptime.v1.Ddl.DropFlowTaskExpr getDropFlowTask() { + return dropFlowTask_ == null ? io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance() : dropFlowTask_; + } + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder getDropFlowTaskOrBuilder() { + return getDropFlowTask(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dropFlowTask_ != null) { + output.writeMessage(1, getDropFlowTask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dropFlowTask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDropFlowTask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.Ddl.DropFlowTask)) { + return super.equals(obj); + } + greptime.v1.meta.Ddl.DropFlowTask other = (greptime.v1.meta.Ddl.DropFlowTask) obj; + + if (hasDropFlowTask() != other.hasDropFlowTask()) return false; + if (hasDropFlowTask()) { + if (!getDropFlowTask() + .equals(other.getDropFlowTask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDropFlowTask()) { + hash = (37 * hash) + DROP_FLOW_TASK_FIELD_NUMBER; + hash = (53 * hash) + getDropFlowTask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Ddl.DropFlowTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Ddl.DropFlowTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Ddl.DropFlowTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Ddl.DropFlowTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Ddl.DropFlowTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Ddl.DropFlowTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Ddl.DropFlowTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Ddl.DropFlowTask parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Ddl.DropFlowTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Ddl.DropFlowTask parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Ddl.DropFlowTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Ddl.DropFlowTask parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.Ddl.DropFlowTask prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.DropFlowTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.DropFlowTask) + greptime.v1.meta.Ddl.DropFlowTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DropFlowTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DropFlowTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Ddl.DropFlowTask.class, greptime.v1.meta.Ddl.DropFlowTask.Builder.class); + } + + // Construct using greptime.v1.meta.Ddl.DropFlowTask.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (dropFlowTaskBuilder_ == null) { + dropFlowTask_ = null; + } else { + dropFlowTask_ = null; + dropFlowTaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DropFlowTask_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Ddl.DropFlowTask getDefaultInstanceForType() { + return greptime.v1.meta.Ddl.DropFlowTask.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Ddl.DropFlowTask build() { + greptime.v1.meta.Ddl.DropFlowTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Ddl.DropFlowTask buildPartial() { + greptime.v1.meta.Ddl.DropFlowTask result = new greptime.v1.meta.Ddl.DropFlowTask(this); + if (dropFlowTaskBuilder_ == null) { + result.dropFlowTask_ = dropFlowTask_; + } else { + result.dropFlowTask_ = dropFlowTaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.Ddl.DropFlowTask) { + return mergeFrom((greptime.v1.meta.Ddl.DropFlowTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Ddl.DropFlowTask other) { + if (other == greptime.v1.meta.Ddl.DropFlowTask.getDefaultInstance()) return this; + if (other.hasDropFlowTask()) { + mergeDropFlowTask(other.getDropFlowTask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.Ddl.DropFlowTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Ddl.DropFlowTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.greptime.v1.Ddl.DropFlowTaskExpr dropFlowTask_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.DropFlowTaskExpr, io.greptime.v1.Ddl.DropFlowTaskExpr.Builder, io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder> dropFlowTaskBuilder_; + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + * @return Whether the dropFlowTask field is set. + */ + public boolean hasDropFlowTask() { + return dropFlowTaskBuilder_ != null || dropFlowTask_ != null; + } + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + * @return The dropFlowTask. + */ + public io.greptime.v1.Ddl.DropFlowTaskExpr getDropFlowTask() { + if (dropFlowTaskBuilder_ == null) { + return dropFlowTask_ == null ? io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance() : dropFlowTask_; + } else { + return dropFlowTaskBuilder_.getMessage(); + } + } + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + */ + public Builder setDropFlowTask(io.greptime.v1.Ddl.DropFlowTaskExpr value) { + if (dropFlowTaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dropFlowTask_ = value; + onChanged(); + } else { + dropFlowTaskBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + */ + public Builder setDropFlowTask( + io.greptime.v1.Ddl.DropFlowTaskExpr.Builder builderForValue) { + if (dropFlowTaskBuilder_ == null) { + dropFlowTask_ = builderForValue.build(); + onChanged(); + } else { + dropFlowTaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + */ + public Builder mergeDropFlowTask(io.greptime.v1.Ddl.DropFlowTaskExpr value) { + if (dropFlowTaskBuilder_ == null) { + if (dropFlowTask_ != null) { + dropFlowTask_ = + io.greptime.v1.Ddl.DropFlowTaskExpr.newBuilder(dropFlowTask_).mergeFrom(value).buildPartial(); + } else { + dropFlowTask_ = value; + } + onChanged(); + } else { + dropFlowTaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + */ + public Builder clearDropFlowTask() { + if (dropFlowTaskBuilder_ == null) { + dropFlowTask_ = null; + onChanged(); + } else { + dropFlowTask_ = null; + dropFlowTaskBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + */ + public io.greptime.v1.Ddl.DropFlowTaskExpr.Builder getDropFlowTaskBuilder() { + + onChanged(); + return getDropFlowTaskFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + */ + public io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder getDropFlowTaskOrBuilder() { + if (dropFlowTaskBuilder_ != null) { + return dropFlowTaskBuilder_.getMessageOrBuilder(); + } else { + return dropFlowTask_ == null ? + io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance() : dropFlowTask_; + } + } + /** + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.DropFlowTaskExpr, io.greptime.v1.Ddl.DropFlowTaskExpr.Builder, io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder> + getDropFlowTaskFieldBuilder() { + if (dropFlowTaskBuilder_ == null) { + dropFlowTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.DropFlowTaskExpr, io.greptime.v1.Ddl.DropFlowTaskExpr.Builder, io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder>( + getDropFlowTask(), + getParentForChildren(), + isClean()); + dropFlowTask_ = null; + } + return dropFlowTaskBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.DropFlowTask) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.DropFlowTask) + private static final greptime.v1.meta.Ddl.DropFlowTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Ddl.DropFlowTask(); + } + + public static greptime.v1.meta.Ddl.DropFlowTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DropFlowTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DropFlowTask(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.Ddl.DropFlowTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface DdlTaskRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.meta.DdlTaskRequest) com.google.protobuf.MessageOrBuilder { @@ -6848,6 +8094,36 @@ public interface DdlTaskRequestOrBuilder extends */ greptime.v1.meta.Ddl.CreateDatabaseTaskOrBuilder getCreateDatabaseTaskOrBuilder(); + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + * @return Whether the createFlowTask field is set. + */ + boolean hasCreateFlowTask(); + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + * @return The createFlowTask. + */ + greptime.v1.meta.Ddl.CreateFlowTask getCreateFlowTask(); + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + */ + greptime.v1.meta.Ddl.CreateFlowTaskOrBuilder getCreateFlowTaskOrBuilder(); + + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + * @return Whether the dropFlowTask field is set. + */ + boolean hasDropFlowTask(); + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + * @return The dropFlowTask. + */ + greptime.v1.meta.Ddl.DropFlowTask getDropFlowTask(); + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + */ + greptime.v1.meta.Ddl.DropFlowTaskOrBuilder getDropFlowTaskOrBuilder(); + public greptime.v1.meta.Ddl.DdlTaskRequest.TaskCase getTaskCase(); } /** @@ -7034,6 +8310,34 @@ private DdlTaskRequest( taskCase_ = 10; break; } + case 90: { + greptime.v1.meta.Ddl.CreateFlowTask.Builder subBuilder = null; + if (taskCase_ == 11) { + subBuilder = ((greptime.v1.meta.Ddl.CreateFlowTask) task_).toBuilder(); + } + task_ = + input.readMessage(greptime.v1.meta.Ddl.CreateFlowTask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((greptime.v1.meta.Ddl.CreateFlowTask) task_); + task_ = subBuilder.buildPartial(); + } + taskCase_ = 11; + break; + } + case 98: { + greptime.v1.meta.Ddl.DropFlowTask.Builder subBuilder = null; + if (taskCase_ == 12) { + subBuilder = ((greptime.v1.meta.Ddl.DropFlowTask) task_).toBuilder(); + } + task_ = + input.readMessage(greptime.v1.meta.Ddl.DropFlowTask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((greptime.v1.meta.Ddl.DropFlowTask) task_); + task_ = subBuilder.buildPartial(); + } + taskCase_ = 12; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -7082,6 +8386,8 @@ public enum TaskCase ALTER_TABLE_TASKS(8), DROP_DATABASE_TASK(9), CREATE_DATABASE_TASK(10), + CREATE_FLOW_TASK(11), + DROP_FLOW_TASK(12), TASK_NOT_SET(0); private final int value; private TaskCase(int value) { @@ -7108,6 +8414,8 @@ public static TaskCase forNumber(int value) { case 8: return ALTER_TABLE_TASKS; case 9: return DROP_DATABASE_TASK; case 10: return CREATE_DATABASE_TASK; + case 11: return CREATE_FLOW_TASK; + case 12: return DROP_FLOW_TASK; case 0: return TASK_NOT_SET; default: return null; } @@ -7428,6 +8736,68 @@ public greptime.v1.meta.Ddl.CreateDatabaseTaskOrBuilder getCreateDatabaseTaskOrB return greptime.v1.meta.Ddl.CreateDatabaseTask.getDefaultInstance(); } + public static final int CREATE_FLOW_TASK_FIELD_NUMBER = 11; + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + * @return Whether the createFlowTask field is set. + */ + @java.lang.Override + public boolean hasCreateFlowTask() { + return taskCase_ == 11; + } + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + * @return The createFlowTask. + */ + @java.lang.Override + public greptime.v1.meta.Ddl.CreateFlowTask getCreateFlowTask() { + if (taskCase_ == 11) { + return (greptime.v1.meta.Ddl.CreateFlowTask) task_; + } + return greptime.v1.meta.Ddl.CreateFlowTask.getDefaultInstance(); + } + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + */ + @java.lang.Override + public greptime.v1.meta.Ddl.CreateFlowTaskOrBuilder getCreateFlowTaskOrBuilder() { + if (taskCase_ == 11) { + return (greptime.v1.meta.Ddl.CreateFlowTask) task_; + } + return greptime.v1.meta.Ddl.CreateFlowTask.getDefaultInstance(); + } + + public static final int DROP_FLOW_TASK_FIELD_NUMBER = 12; + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + * @return Whether the dropFlowTask field is set. + */ + @java.lang.Override + public boolean hasDropFlowTask() { + return taskCase_ == 12; + } + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + * @return The dropFlowTask. + */ + @java.lang.Override + public greptime.v1.meta.Ddl.DropFlowTask getDropFlowTask() { + if (taskCase_ == 12) { + return (greptime.v1.meta.Ddl.DropFlowTask) task_; + } + return greptime.v1.meta.Ddl.DropFlowTask.getDefaultInstance(); + } + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + */ + @java.lang.Override + public greptime.v1.meta.Ddl.DropFlowTaskOrBuilder getDropFlowTaskOrBuilder() { + if (taskCase_ == 12) { + return (greptime.v1.meta.Ddl.DropFlowTask) task_; + } + return greptime.v1.meta.Ddl.DropFlowTask.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -7472,6 +8842,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (taskCase_ == 10) { output.writeMessage(10, (greptime.v1.meta.Ddl.CreateDatabaseTask) task_); } + if (taskCase_ == 11) { + output.writeMessage(11, (greptime.v1.meta.Ddl.CreateFlowTask) task_); + } + if (taskCase_ == 12) { + output.writeMessage(12, (greptime.v1.meta.Ddl.DropFlowTask) task_); + } unknownFields.writeTo(output); } @@ -7521,6 +8897,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (greptime.v1.meta.Ddl.CreateDatabaseTask) task_); } + if (taskCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (greptime.v1.meta.Ddl.CreateFlowTask) task_); + } + if (taskCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (greptime.v1.meta.Ddl.DropFlowTask) task_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -7579,6 +8963,14 @@ public boolean equals(final java.lang.Object obj) { if (!getCreateDatabaseTask() .equals(other.getCreateDatabaseTask())) return false; break; + case 11: + if (!getCreateFlowTask() + .equals(other.getCreateFlowTask())) return false; + break; + case 12: + if (!getDropFlowTask() + .equals(other.getDropFlowTask())) return false; + break; case 0: default: } @@ -7634,6 +9026,14 @@ public int hashCode() { hash = (37 * hash) + CREATE_DATABASE_TASK_FIELD_NUMBER; hash = (53 * hash) + getCreateDatabaseTask().hashCode(); break; + case 11: + hash = (37 * hash) + CREATE_FLOW_TASK_FIELD_NUMBER; + hash = (53 * hash) + getCreateFlowTask().hashCode(); + break; + case 12: + hash = (37 * hash) + DROP_FLOW_TASK_FIELD_NUMBER; + hash = (53 * hash) + getDropFlowTask().hashCode(); + break; case 0: default: } @@ -7872,6 +9272,20 @@ public greptime.v1.meta.Ddl.DdlTaskRequest buildPartial() { result.task_ = createDatabaseTaskBuilder_.build(); } } + if (taskCase_ == 11) { + if (createFlowTaskBuilder_ == null) { + result.task_ = task_; + } else { + result.task_ = createFlowTaskBuilder_.build(); + } + } + if (taskCase_ == 12) { + if (dropFlowTaskBuilder_ == null) { + result.task_ = task_; + } else { + result.task_ = dropFlowTaskBuilder_.build(); + } + } result.taskCase_ = taskCase_; onBuilt(); return result; @@ -7961,6 +9375,14 @@ public Builder mergeFrom(greptime.v1.meta.Ddl.DdlTaskRequest other) { mergeCreateDatabaseTask(other.getCreateDatabaseTask()); break; } + case CREATE_FLOW_TASK: { + mergeCreateFlowTask(other.getCreateFlowTask()); + break; + } + case DROP_FLOW_TASK: { + mergeDropFlowTask(other.getDropFlowTask()); + break; + } case TASK_NOT_SET: { break; } @@ -9405,6 +10827,290 @@ public greptime.v1.meta.Ddl.CreateDatabaseTaskOrBuilder getCreateDatabaseTaskOrB onChanged();; return createDatabaseTaskBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Ddl.CreateFlowTask, greptime.v1.meta.Ddl.CreateFlowTask.Builder, greptime.v1.meta.Ddl.CreateFlowTaskOrBuilder> createFlowTaskBuilder_; + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + * @return Whether the createFlowTask field is set. + */ + @java.lang.Override + public boolean hasCreateFlowTask() { + return taskCase_ == 11; + } + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + * @return The createFlowTask. + */ + @java.lang.Override + public greptime.v1.meta.Ddl.CreateFlowTask getCreateFlowTask() { + if (createFlowTaskBuilder_ == null) { + if (taskCase_ == 11) { + return (greptime.v1.meta.Ddl.CreateFlowTask) task_; + } + return greptime.v1.meta.Ddl.CreateFlowTask.getDefaultInstance(); + } else { + if (taskCase_ == 11) { + return createFlowTaskBuilder_.getMessage(); + } + return greptime.v1.meta.Ddl.CreateFlowTask.getDefaultInstance(); + } + } + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + */ + public Builder setCreateFlowTask(greptime.v1.meta.Ddl.CreateFlowTask value) { + if (createFlowTaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + task_ = value; + onChanged(); + } else { + createFlowTaskBuilder_.setMessage(value); + } + taskCase_ = 11; + return this; + } + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + */ + public Builder setCreateFlowTask( + greptime.v1.meta.Ddl.CreateFlowTask.Builder builderForValue) { + if (createFlowTaskBuilder_ == null) { + task_ = builderForValue.build(); + onChanged(); + } else { + createFlowTaskBuilder_.setMessage(builderForValue.build()); + } + taskCase_ = 11; + return this; + } + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + */ + public Builder mergeCreateFlowTask(greptime.v1.meta.Ddl.CreateFlowTask value) { + if (createFlowTaskBuilder_ == null) { + if (taskCase_ == 11 && + task_ != greptime.v1.meta.Ddl.CreateFlowTask.getDefaultInstance()) { + task_ = greptime.v1.meta.Ddl.CreateFlowTask.newBuilder((greptime.v1.meta.Ddl.CreateFlowTask) task_) + .mergeFrom(value).buildPartial(); + } else { + task_ = value; + } + onChanged(); + } else { + if (taskCase_ == 11) { + createFlowTaskBuilder_.mergeFrom(value); + } else { + createFlowTaskBuilder_.setMessage(value); + } + } + taskCase_ = 11; + return this; + } + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + */ + public Builder clearCreateFlowTask() { + if (createFlowTaskBuilder_ == null) { + if (taskCase_ == 11) { + taskCase_ = 0; + task_ = null; + onChanged(); + } + } else { + if (taskCase_ == 11) { + taskCase_ = 0; + task_ = null; + } + createFlowTaskBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + */ + public greptime.v1.meta.Ddl.CreateFlowTask.Builder getCreateFlowTaskBuilder() { + return getCreateFlowTaskFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + */ + @java.lang.Override + public greptime.v1.meta.Ddl.CreateFlowTaskOrBuilder getCreateFlowTaskOrBuilder() { + if ((taskCase_ == 11) && (createFlowTaskBuilder_ != null)) { + return createFlowTaskBuilder_.getMessageOrBuilder(); + } else { + if (taskCase_ == 11) { + return (greptime.v1.meta.Ddl.CreateFlowTask) task_; + } + return greptime.v1.meta.Ddl.CreateFlowTask.getDefaultInstance(); + } + } + /** + * .greptime.v1.meta.CreateFlowTask create_flow_task = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Ddl.CreateFlowTask, greptime.v1.meta.Ddl.CreateFlowTask.Builder, greptime.v1.meta.Ddl.CreateFlowTaskOrBuilder> + getCreateFlowTaskFieldBuilder() { + if (createFlowTaskBuilder_ == null) { + if (!(taskCase_ == 11)) { + task_ = greptime.v1.meta.Ddl.CreateFlowTask.getDefaultInstance(); + } + createFlowTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Ddl.CreateFlowTask, greptime.v1.meta.Ddl.CreateFlowTask.Builder, greptime.v1.meta.Ddl.CreateFlowTaskOrBuilder>( + (greptime.v1.meta.Ddl.CreateFlowTask) task_, + getParentForChildren(), + isClean()); + task_ = null; + } + taskCase_ = 11; + onChanged();; + return createFlowTaskBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Ddl.DropFlowTask, greptime.v1.meta.Ddl.DropFlowTask.Builder, greptime.v1.meta.Ddl.DropFlowTaskOrBuilder> dropFlowTaskBuilder_; + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + * @return Whether the dropFlowTask field is set. + */ + @java.lang.Override + public boolean hasDropFlowTask() { + return taskCase_ == 12; + } + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + * @return The dropFlowTask. + */ + @java.lang.Override + public greptime.v1.meta.Ddl.DropFlowTask getDropFlowTask() { + if (dropFlowTaskBuilder_ == null) { + if (taskCase_ == 12) { + return (greptime.v1.meta.Ddl.DropFlowTask) task_; + } + return greptime.v1.meta.Ddl.DropFlowTask.getDefaultInstance(); + } else { + if (taskCase_ == 12) { + return dropFlowTaskBuilder_.getMessage(); + } + return greptime.v1.meta.Ddl.DropFlowTask.getDefaultInstance(); + } + } + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + */ + public Builder setDropFlowTask(greptime.v1.meta.Ddl.DropFlowTask value) { + if (dropFlowTaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + task_ = value; + onChanged(); + } else { + dropFlowTaskBuilder_.setMessage(value); + } + taskCase_ = 12; + return this; + } + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + */ + public Builder setDropFlowTask( + greptime.v1.meta.Ddl.DropFlowTask.Builder builderForValue) { + if (dropFlowTaskBuilder_ == null) { + task_ = builderForValue.build(); + onChanged(); + } else { + dropFlowTaskBuilder_.setMessage(builderForValue.build()); + } + taskCase_ = 12; + return this; + } + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + */ + public Builder mergeDropFlowTask(greptime.v1.meta.Ddl.DropFlowTask value) { + if (dropFlowTaskBuilder_ == null) { + if (taskCase_ == 12 && + task_ != greptime.v1.meta.Ddl.DropFlowTask.getDefaultInstance()) { + task_ = greptime.v1.meta.Ddl.DropFlowTask.newBuilder((greptime.v1.meta.Ddl.DropFlowTask) task_) + .mergeFrom(value).buildPartial(); + } else { + task_ = value; + } + onChanged(); + } else { + if (taskCase_ == 12) { + dropFlowTaskBuilder_.mergeFrom(value); + } else { + dropFlowTaskBuilder_.setMessage(value); + } + } + taskCase_ = 12; + return this; + } + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + */ + public Builder clearDropFlowTask() { + if (dropFlowTaskBuilder_ == null) { + if (taskCase_ == 12) { + taskCase_ = 0; + task_ = null; + onChanged(); + } + } else { + if (taskCase_ == 12) { + taskCase_ = 0; + task_ = null; + } + dropFlowTaskBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + */ + public greptime.v1.meta.Ddl.DropFlowTask.Builder getDropFlowTaskBuilder() { + return getDropFlowTaskFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + */ + @java.lang.Override + public greptime.v1.meta.Ddl.DropFlowTaskOrBuilder getDropFlowTaskOrBuilder() { + if ((taskCase_ == 12) && (dropFlowTaskBuilder_ != null)) { + return dropFlowTaskBuilder_.getMessageOrBuilder(); + } else { + if (taskCase_ == 12) { + return (greptime.v1.meta.Ddl.DropFlowTask) task_; + } + return greptime.v1.meta.Ddl.DropFlowTask.getDefaultInstance(); + } + } + /** + * .greptime.v1.meta.DropFlowTask drop_flow_task = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Ddl.DropFlowTask, greptime.v1.meta.Ddl.DropFlowTask.Builder, greptime.v1.meta.Ddl.DropFlowTaskOrBuilder> + getDropFlowTaskFieldBuilder() { + if (dropFlowTaskBuilder_ == null) { + if (!(taskCase_ == 12)) { + task_ = greptime.v1.meta.Ddl.DropFlowTask.getDefaultInstance(); + } + dropFlowTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Ddl.DropFlowTask, greptime.v1.meta.Ddl.DropFlowTask.Builder, greptime.v1.meta.Ddl.DropFlowTaskOrBuilder>( + (greptime.v1.meta.Ddl.DropFlowTask) task_, + getParentForChildren(), + isClean()); + task_ = null; + } + taskCase_ = 12; + onChanged();; + return dropFlowTaskBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11094,6 +12800,16 @@ public greptime.v1.meta.Ddl.DdlTaskResponse getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_meta_DropDatabaseTask_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_CreateFlowTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_CreateFlowTask_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_DropFlowTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_DropFlowTask_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_meta_DdlTaskRequest_descriptor; private static final @@ -11133,32 +12849,38 @@ public greptime.v1.meta.Ddl.DdlTaskResponse getDefaultInstanceForType() { "ask\"K\n\021TruncateTableTask\0226\n\016truncate_tab" + "le\030\001 \001(\0132\036.greptime.v1.TruncateTableExpr" + "\"H\n\020DropDatabaseTask\0224\n\rdrop_database\030\001 " + - "\001(\0132\035.greptime.v1.DropDatabaseExpr\"\217\005\n\016D" + - "dlTaskRequest\022/\n\006header\030\001 \001(\0132\037.greptime" + - ".v1.meta.RequestHeader\022>\n\021create_table_t" + - "ask\030\002 \001(\0132!.greptime.v1.meta.CreateTable" + - "TaskH\000\022:\n\017drop_table_task\030\003 \001(\0132\037.grepti" + - "me.v1.meta.DropTableTaskH\000\022<\n\020alter_tabl" + - "e_task\030\004 \001(\0132 .greptime.v1.meta.AlterTab" + - "leTaskH\000\022B\n\023truncate_table_task\030\005 \001(\0132#." + - "greptime.v1.meta.TruncateTableTaskH\000\022@\n\022" + - "create_table_tasks\030\006 \001(\0132\".greptime.v1.m" + - "eta.CreateTableTasksH\000\022<\n\020drop_table_tas" + - "ks\030\007 \001(\0132 .greptime.v1.meta.DropTableTas" + - "ksH\000\022>\n\021alter_table_tasks\030\010 \001(\0132!.grepti" + - "me.v1.meta.AlterTableTasksH\000\022@\n\022drop_dat" + - "abase_task\030\t \001(\0132\".greptime.v1.meta.Drop" + - "DatabaseTaskH\000\022D\n\024create_database_task\030\n" + - " \001(\0132$.greptime.v1.meta.CreateDatabaseTa" + - "skH\000B\006\n\004task\"\312\001\n\017DdlTaskResponse\0220\n\006head" + - "er\030\001 \001(\0132 .greptime.v1.meta.ResponseHead" + - "er\022*\n\003pid\030\002 \001(\0132\035.greptime.v1.meta.Proce" + - "dureId\022+\n\010table_id\030\004 \001(\0132\031.greptime.v1.m" + - "eta.TableId\022,\n\ttable_ids\030\005 \003(\0132\031.greptim" + - "e.v1.meta.TableId*#\n\013DdlTaskType\022\n\n\006Crea" + - "te\020\000\022\010\n\004Drop\020\001B\n\021create_table_task\030\002 \001(\0132!." + + "greptime.v1.meta.CreateTableTaskH\000\022:\n\017dr" + + "op_table_task\030\003 \001(\0132\037.greptime.v1.meta.D" + + "ropTableTaskH\000\022<\n\020alter_table_task\030\004 \001(\013" + + "2 .greptime.v1.meta.AlterTableTaskH\000\022B\n\023" + + "truncate_table_task\030\005 \001(\0132#.greptime.v1." + + "meta.TruncateTableTaskH\000\022@\n\022create_table" + + "_tasks\030\006 \001(\0132\".greptime.v1.meta.CreateTa" + + "bleTasksH\000\022<\n\020drop_table_tasks\030\007 \001(\0132 .g" + + "reptime.v1.meta.DropTableTasksH\000\022>\n\021alte" + + "r_table_tasks\030\010 \001(\0132!.greptime.v1.meta.A" + + "lterTableTasksH\000\022@\n\022drop_database_task\030\t" + + " \001(\0132\".greptime.v1.meta.DropDatabaseTask" + + "H\000\022D\n\024create_database_task\030\n \001(\0132$.grept" + + "ime.v1.meta.CreateDatabaseTaskH\000\022<\n\020crea" + + "te_flow_task\030\013 \001(\0132 .greptime.v1.meta.Cr" + + "eateFlowTaskH\000\0228\n\016drop_flow_task\030\014 \001(\0132\036" + + ".greptime.v1.meta.DropFlowTaskH\000B\006\n\004task" + + "\"\312\001\n\017DdlTaskResponse\0220\n\006header\030\001 \001(\0132 .g" + + "reptime.v1.meta.ResponseHeader\022*\n\003pid\030\002 " + + "\001(\0132\035.greptime.v1.meta.ProcedureId\022+\n\010ta" + + "ble_id\030\004 \001(\0132\031.greptime.v1.meta.TableId\022" + + ",\n\ttable_ids\030\005 \003(\0132\031.greptime.v1.meta.Ta" + + "bleId*#\n\013DdlTaskType\022\n\n\006Create\020\000\022\010\n\004Drop" + + "\020\001B.greptime.v1.CreateTaskExpr create_task = 8; - * @return Whether the createTask field is set. + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; + * @return Whether the createFlowTask field is set. */ - boolean hasCreateTask(); + boolean hasCreateFlowTask(); /** - * .greptime.v1.CreateTaskExpr create_task = 8; - * @return The createTask. + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; + * @return The createFlowTask. */ - io.greptime.v1.Ddl.CreateTaskExpr getCreateTask(); + io.greptime.v1.Ddl.CreateFlowTaskExpr getCreateFlowTask(); /** - * .greptime.v1.CreateTaskExpr create_task = 8; + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; */ - io.greptime.v1.Ddl.CreateTaskExprOrBuilder getCreateTaskOrBuilder(); + io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder getCreateFlowTaskOrBuilder(); /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; - * @return Whether the removeTask field is set. + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + * @return Whether the dropFlowTask field is set. */ - boolean hasRemoveTask(); + boolean hasDropFlowTask(); /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; - * @return The removeTask. + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + * @return The dropFlowTask. */ - io.greptime.v1.Ddl.RemoveTaskExpr getRemoveTask(); + io.greptime.v1.Ddl.DropFlowTaskExpr getDropFlowTask(); /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ - io.greptime.v1.Ddl.RemoveTaskExprOrBuilder getRemoveTaskOrBuilder(); + io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder getDropFlowTaskOrBuilder(); public io.greptime.v1.Ddl.DdlRequest.ExprCase getExprCase(); } @@ -248,28 +248,28 @@ private DdlRequest( break; } case 66: { - io.greptime.v1.Ddl.CreateTaskExpr.Builder subBuilder = null; + io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder subBuilder = null; if (exprCase_ == 8) { - subBuilder = ((io.greptime.v1.Ddl.CreateTaskExpr) expr_).toBuilder(); + subBuilder = ((io.greptime.v1.Ddl.CreateFlowTaskExpr) expr_).toBuilder(); } expr_ = - input.readMessage(io.greptime.v1.Ddl.CreateTaskExpr.parser(), extensionRegistry); + input.readMessage(io.greptime.v1.Ddl.CreateFlowTaskExpr.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((io.greptime.v1.Ddl.CreateTaskExpr) expr_); + subBuilder.mergeFrom((io.greptime.v1.Ddl.CreateFlowTaskExpr) expr_); expr_ = subBuilder.buildPartial(); } exprCase_ = 8; break; } case 74: { - io.greptime.v1.Ddl.RemoveTaskExpr.Builder subBuilder = null; + io.greptime.v1.Ddl.DropFlowTaskExpr.Builder subBuilder = null; if (exprCase_ == 9) { - subBuilder = ((io.greptime.v1.Ddl.RemoveTaskExpr) expr_).toBuilder(); + subBuilder = ((io.greptime.v1.Ddl.DropFlowTaskExpr) expr_).toBuilder(); } expr_ = - input.readMessage(io.greptime.v1.Ddl.RemoveTaskExpr.parser(), extensionRegistry); + input.readMessage(io.greptime.v1.Ddl.DropFlowTaskExpr.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((io.greptime.v1.Ddl.RemoveTaskExpr) expr_); + subBuilder.mergeFrom((io.greptime.v1.Ddl.DropFlowTaskExpr) expr_); expr_ = subBuilder.buildPartial(); } exprCase_ = 9; @@ -319,8 +319,8 @@ public enum ExprCase ALTER(3), DROP_TABLE(4), TRUNCATE_TABLE(7), - CREATE_TASK(8), - REMOVE_TASK(9), + CREATE_FLOW_TASK(8), + DROP_FLOW_TASK(9), EXPR_NOT_SET(0); private final int value; private ExprCase(int value) { @@ -343,8 +343,8 @@ public static ExprCase forNumber(int value) { case 3: return ALTER; case 4: return DROP_TABLE; case 7: return TRUNCATE_TABLE; - case 8: return CREATE_TASK; - case 9: return REMOVE_TASK; + case 8: return CREATE_FLOW_TASK; + case 9: return DROP_FLOW_TASK; case 0: return EXPR_NOT_SET; default: return null; } @@ -515,66 +515,66 @@ public io.greptime.v1.Ddl.TruncateTableExprOrBuilder getTruncateTableOrBuilder() return io.greptime.v1.Ddl.TruncateTableExpr.getDefaultInstance(); } - public static final int CREATE_TASK_FIELD_NUMBER = 8; + public static final int CREATE_FLOW_TASK_FIELD_NUMBER = 8; /** - * .greptime.v1.CreateTaskExpr create_task = 8; - * @return Whether the createTask field is set. + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; + * @return Whether the createFlowTask field is set. */ @java.lang.Override - public boolean hasCreateTask() { + public boolean hasCreateFlowTask() { return exprCase_ == 8; } /** - * .greptime.v1.CreateTaskExpr create_task = 8; - * @return The createTask. + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; + * @return The createFlowTask. */ @java.lang.Override - public io.greptime.v1.Ddl.CreateTaskExpr getCreateTask() { + public io.greptime.v1.Ddl.CreateFlowTaskExpr getCreateFlowTask() { if (exprCase_ == 8) { - return (io.greptime.v1.Ddl.CreateTaskExpr) expr_; + return (io.greptime.v1.Ddl.CreateFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.CreateTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance(); } /** - * .greptime.v1.CreateTaskExpr create_task = 8; + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; */ @java.lang.Override - public io.greptime.v1.Ddl.CreateTaskExprOrBuilder getCreateTaskOrBuilder() { + public io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder getCreateFlowTaskOrBuilder() { if (exprCase_ == 8) { - return (io.greptime.v1.Ddl.CreateTaskExpr) expr_; + return (io.greptime.v1.Ddl.CreateFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.CreateTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance(); } - public static final int REMOVE_TASK_FIELD_NUMBER = 9; + public static final int DROP_FLOW_TASK_FIELD_NUMBER = 9; /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; - * @return Whether the removeTask field is set. + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + * @return Whether the dropFlowTask field is set. */ @java.lang.Override - public boolean hasRemoveTask() { + public boolean hasDropFlowTask() { return exprCase_ == 9; } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; - * @return The removeTask. + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + * @return The dropFlowTask. */ @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExpr getRemoveTask() { + public io.greptime.v1.Ddl.DropFlowTaskExpr getDropFlowTask() { if (exprCase_ == 9) { - return (io.greptime.v1.Ddl.RemoveTaskExpr) expr_; + return (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExprOrBuilder getRemoveTaskOrBuilder() { + public io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder getDropFlowTaskOrBuilder() { if (exprCase_ == 9) { - return (io.greptime.v1.Ddl.RemoveTaskExpr) expr_; + return (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -607,10 +607,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(7, (io.greptime.v1.Ddl.TruncateTableExpr) expr_); } if (exprCase_ == 8) { - output.writeMessage(8, (io.greptime.v1.Ddl.CreateTaskExpr) expr_); + output.writeMessage(8, (io.greptime.v1.Ddl.CreateFlowTaskExpr) expr_); } if (exprCase_ == 9) { - output.writeMessage(9, (io.greptime.v1.Ddl.RemoveTaskExpr) expr_); + output.writeMessage(9, (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_); } unknownFields.writeTo(output); } @@ -643,11 +643,11 @@ public int getSerializedSize() { } if (exprCase_ == 8) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (io.greptime.v1.Ddl.CreateTaskExpr) expr_); + .computeMessageSize(8, (io.greptime.v1.Ddl.CreateFlowTaskExpr) expr_); } if (exprCase_ == 9) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (io.greptime.v1.Ddl.RemoveTaskExpr) expr_); + .computeMessageSize(9, (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -687,12 +687,12 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getTruncateTable())) return false; break; case 8: - if (!getCreateTask() - .equals(other.getCreateTask())) return false; + if (!getCreateFlowTask() + .equals(other.getCreateFlowTask())) return false; break; case 9: - if (!getRemoveTask() - .equals(other.getRemoveTask())) return false; + if (!getDropFlowTask() + .equals(other.getDropFlowTask())) return false; break; case 0: default: @@ -730,12 +730,12 @@ public int hashCode() { hash = (53 * hash) + getTruncateTable().hashCode(); break; case 8: - hash = (37 * hash) + CREATE_TASK_FIELD_NUMBER; - hash = (53 * hash) + getCreateTask().hashCode(); + hash = (37 * hash) + CREATE_FLOW_TASK_FIELD_NUMBER; + hash = (53 * hash) + getCreateFlowTask().hashCode(); break; case 9: - hash = (37 * hash) + REMOVE_TASK_FIELD_NUMBER; - hash = (53 * hash) + getRemoveTask().hashCode(); + hash = (37 * hash) + DROP_FLOW_TASK_FIELD_NUMBER; + hash = (53 * hash) + getDropFlowTask().hashCode(); break; case 0: default: @@ -944,17 +944,17 @@ public io.greptime.v1.Ddl.DdlRequest buildPartial() { } } if (exprCase_ == 8) { - if (createTaskBuilder_ == null) { + if (createFlowTaskBuilder_ == null) { result.expr_ = expr_; } else { - result.expr_ = createTaskBuilder_.build(); + result.expr_ = createFlowTaskBuilder_.build(); } } if (exprCase_ == 9) { - if (removeTaskBuilder_ == null) { + if (dropFlowTaskBuilder_ == null) { result.expr_ = expr_; } else { - result.expr_ = removeTaskBuilder_.build(); + result.expr_ = dropFlowTaskBuilder_.build(); } } result.exprCase_ = exprCase_; @@ -1027,12 +1027,12 @@ public Builder mergeFrom(io.greptime.v1.Ddl.DdlRequest other) { mergeTruncateTable(other.getTruncateTable()); break; } - case CREATE_TASK: { - mergeCreateTask(other.getCreateTask()); + case CREATE_FLOW_TASK: { + mergeCreateFlowTask(other.getCreateFlowTask()); break; } - case REMOVE_TASK: { - mergeRemoveTask(other.getRemoveTask()); + case DROP_FLOW_TASK: { + mergeDropFlowTask(other.getDropFlowTask()); break; } case EXPR_NOT_SET: { @@ -1794,71 +1794,71 @@ public io.greptime.v1.Ddl.TruncateTableExprOrBuilder getTruncateTableOrBuilder() } private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.CreateTaskExpr, io.greptime.v1.Ddl.CreateTaskExpr.Builder, io.greptime.v1.Ddl.CreateTaskExprOrBuilder> createTaskBuilder_; + io.greptime.v1.Ddl.CreateFlowTaskExpr, io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder, io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder> createFlowTaskBuilder_; /** - * .greptime.v1.CreateTaskExpr create_task = 8; - * @return Whether the createTask field is set. + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; + * @return Whether the createFlowTask field is set. */ @java.lang.Override - public boolean hasCreateTask() { + public boolean hasCreateFlowTask() { return exprCase_ == 8; } /** - * .greptime.v1.CreateTaskExpr create_task = 8; - * @return The createTask. + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; + * @return The createFlowTask. */ @java.lang.Override - public io.greptime.v1.Ddl.CreateTaskExpr getCreateTask() { - if (createTaskBuilder_ == null) { + public io.greptime.v1.Ddl.CreateFlowTaskExpr getCreateFlowTask() { + if (createFlowTaskBuilder_ == null) { if (exprCase_ == 8) { - return (io.greptime.v1.Ddl.CreateTaskExpr) expr_; + return (io.greptime.v1.Ddl.CreateFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.CreateTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance(); } else { if (exprCase_ == 8) { - return createTaskBuilder_.getMessage(); + return createFlowTaskBuilder_.getMessage(); } - return io.greptime.v1.Ddl.CreateTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance(); } } /** - * .greptime.v1.CreateTaskExpr create_task = 8; + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; */ - public Builder setCreateTask(io.greptime.v1.Ddl.CreateTaskExpr value) { - if (createTaskBuilder_ == null) { + public Builder setCreateFlowTask(io.greptime.v1.Ddl.CreateFlowTaskExpr value) { + if (createFlowTaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { - createTaskBuilder_.setMessage(value); + createFlowTaskBuilder_.setMessage(value); } exprCase_ = 8; return this; } /** - * .greptime.v1.CreateTaskExpr create_task = 8; + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; */ - public Builder setCreateTask( - io.greptime.v1.Ddl.CreateTaskExpr.Builder builderForValue) { - if (createTaskBuilder_ == null) { + public Builder setCreateFlowTask( + io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder builderForValue) { + if (createFlowTaskBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { - createTaskBuilder_.setMessage(builderForValue.build()); + createFlowTaskBuilder_.setMessage(builderForValue.build()); } exprCase_ = 8; return this; } /** - * .greptime.v1.CreateTaskExpr create_task = 8; + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; */ - public Builder mergeCreateTask(io.greptime.v1.Ddl.CreateTaskExpr value) { - if (createTaskBuilder_ == null) { + public Builder mergeCreateFlowTask(io.greptime.v1.Ddl.CreateFlowTaskExpr value) { + if (createFlowTaskBuilder_ == null) { if (exprCase_ == 8 && - expr_ != io.greptime.v1.Ddl.CreateTaskExpr.getDefaultInstance()) { - expr_ = io.greptime.v1.Ddl.CreateTaskExpr.newBuilder((io.greptime.v1.Ddl.CreateTaskExpr) expr_) + expr_ != io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance()) { + expr_ = io.greptime.v1.Ddl.CreateFlowTaskExpr.newBuilder((io.greptime.v1.Ddl.CreateFlowTaskExpr) expr_) .mergeFrom(value).buildPartial(); } else { expr_ = value; @@ -1866,19 +1866,19 @@ public Builder mergeCreateTask(io.greptime.v1.Ddl.CreateTaskExpr value) { onChanged(); } else { if (exprCase_ == 8) { - createTaskBuilder_.mergeFrom(value); + createFlowTaskBuilder_.mergeFrom(value); } else { - createTaskBuilder_.setMessage(value); + createFlowTaskBuilder_.setMessage(value); } } exprCase_ = 8; return this; } /** - * .greptime.v1.CreateTaskExpr create_task = 8; + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; */ - public Builder clearCreateTask() { - if (createTaskBuilder_ == null) { + public Builder clearCreateFlowTask() { + if (createFlowTaskBuilder_ == null) { if (exprCase_ == 8) { exprCase_ = 0; expr_ = null; @@ -1889,118 +1889,118 @@ public Builder clearCreateTask() { exprCase_ = 0; expr_ = null; } - createTaskBuilder_.clear(); + createFlowTaskBuilder_.clear(); } return this; } /** - * .greptime.v1.CreateTaskExpr create_task = 8; + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; */ - public io.greptime.v1.Ddl.CreateTaskExpr.Builder getCreateTaskBuilder() { - return getCreateTaskFieldBuilder().getBuilder(); + public io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder getCreateFlowTaskBuilder() { + return getCreateFlowTaskFieldBuilder().getBuilder(); } /** - * .greptime.v1.CreateTaskExpr create_task = 8; + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; */ @java.lang.Override - public io.greptime.v1.Ddl.CreateTaskExprOrBuilder getCreateTaskOrBuilder() { - if ((exprCase_ == 8) && (createTaskBuilder_ != null)) { - return createTaskBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder getCreateFlowTaskOrBuilder() { + if ((exprCase_ == 8) && (createFlowTaskBuilder_ != null)) { + return createFlowTaskBuilder_.getMessageOrBuilder(); } else { if (exprCase_ == 8) { - return (io.greptime.v1.Ddl.CreateTaskExpr) expr_; + return (io.greptime.v1.Ddl.CreateFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.CreateTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance(); } } /** - * .greptime.v1.CreateTaskExpr create_task = 8; + * .greptime.v1.CreateFlowTaskExpr create_flow_task = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.CreateTaskExpr, io.greptime.v1.Ddl.CreateTaskExpr.Builder, io.greptime.v1.Ddl.CreateTaskExprOrBuilder> - getCreateTaskFieldBuilder() { - if (createTaskBuilder_ == null) { + io.greptime.v1.Ddl.CreateFlowTaskExpr, io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder, io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder> + getCreateFlowTaskFieldBuilder() { + if (createFlowTaskBuilder_ == null) { if (!(exprCase_ == 8)) { - expr_ = io.greptime.v1.Ddl.CreateTaskExpr.getDefaultInstance(); + expr_ = io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance(); } - createTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.CreateTaskExpr, io.greptime.v1.Ddl.CreateTaskExpr.Builder, io.greptime.v1.Ddl.CreateTaskExprOrBuilder>( - (io.greptime.v1.Ddl.CreateTaskExpr) expr_, + createFlowTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.CreateFlowTaskExpr, io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder, io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder>( + (io.greptime.v1.Ddl.CreateFlowTaskExpr) expr_, getParentForChildren(), isClean()); expr_ = null; } exprCase_ = 8; onChanged();; - return createTaskBuilder_; + return createFlowTaskBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.RemoveTaskExpr, io.greptime.v1.Ddl.RemoveTaskExpr.Builder, io.greptime.v1.Ddl.RemoveTaskExprOrBuilder> removeTaskBuilder_; + io.greptime.v1.Ddl.DropFlowTaskExpr, io.greptime.v1.Ddl.DropFlowTaskExpr.Builder, io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder> dropFlowTaskBuilder_; /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; - * @return Whether the removeTask field is set. + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + * @return Whether the dropFlowTask field is set. */ @java.lang.Override - public boolean hasRemoveTask() { + public boolean hasDropFlowTask() { return exprCase_ == 9; } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; - * @return The removeTask. + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + * @return The dropFlowTask. */ @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExpr getRemoveTask() { - if (removeTaskBuilder_ == null) { + public io.greptime.v1.Ddl.DropFlowTaskExpr getDropFlowTask() { + if (dropFlowTaskBuilder_ == null) { if (exprCase_ == 9) { - return (io.greptime.v1.Ddl.RemoveTaskExpr) expr_; + return (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } else { if (exprCase_ == 9) { - return removeTaskBuilder_.getMessage(); + return dropFlowTaskBuilder_.getMessage(); } - return io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ - public Builder setRemoveTask(io.greptime.v1.Ddl.RemoveTaskExpr value) { - if (removeTaskBuilder_ == null) { + public Builder setDropFlowTask(io.greptime.v1.Ddl.DropFlowTaskExpr value) { + if (dropFlowTaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { - removeTaskBuilder_.setMessage(value); + dropFlowTaskBuilder_.setMessage(value); } exprCase_ = 9; return this; } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ - public Builder setRemoveTask( - io.greptime.v1.Ddl.RemoveTaskExpr.Builder builderForValue) { - if (removeTaskBuilder_ == null) { + public Builder setDropFlowTask( + io.greptime.v1.Ddl.DropFlowTaskExpr.Builder builderForValue) { + if (dropFlowTaskBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { - removeTaskBuilder_.setMessage(builderForValue.build()); + dropFlowTaskBuilder_.setMessage(builderForValue.build()); } exprCase_ = 9; return this; } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ - public Builder mergeRemoveTask(io.greptime.v1.Ddl.RemoveTaskExpr value) { - if (removeTaskBuilder_ == null) { + public Builder mergeDropFlowTask(io.greptime.v1.Ddl.DropFlowTaskExpr value) { + if (dropFlowTaskBuilder_ == null) { if (exprCase_ == 9 && - expr_ != io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance()) { - expr_ = io.greptime.v1.Ddl.RemoveTaskExpr.newBuilder((io.greptime.v1.Ddl.RemoveTaskExpr) expr_) + expr_ != io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance()) { + expr_ = io.greptime.v1.Ddl.DropFlowTaskExpr.newBuilder((io.greptime.v1.Ddl.DropFlowTaskExpr) expr_) .mergeFrom(value).buildPartial(); } else { expr_ = value; @@ -2008,19 +2008,19 @@ public Builder mergeRemoveTask(io.greptime.v1.Ddl.RemoveTaskExpr value) { onChanged(); } else { if (exprCase_ == 9) { - removeTaskBuilder_.mergeFrom(value); + dropFlowTaskBuilder_.mergeFrom(value); } else { - removeTaskBuilder_.setMessage(value); + dropFlowTaskBuilder_.setMessage(value); } } exprCase_ = 9; return this; } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ - public Builder clearRemoveTask() { - if (removeTaskBuilder_ == null) { + public Builder clearDropFlowTask() { + if (dropFlowTaskBuilder_ == null) { if (exprCase_ == 9) { exprCase_ = 0; expr_ = null; @@ -2031,50 +2031,50 @@ public Builder clearRemoveTask() { exprCase_ = 0; expr_ = null; } - removeTaskBuilder_.clear(); + dropFlowTaskBuilder_.clear(); } return this; } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ - public io.greptime.v1.Ddl.RemoveTaskExpr.Builder getRemoveTaskBuilder() { - return getRemoveTaskFieldBuilder().getBuilder(); + public io.greptime.v1.Ddl.DropFlowTaskExpr.Builder getDropFlowTaskBuilder() { + return getDropFlowTaskFieldBuilder().getBuilder(); } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExprOrBuilder getRemoveTaskOrBuilder() { - if ((exprCase_ == 9) && (removeTaskBuilder_ != null)) { - return removeTaskBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder getDropFlowTaskOrBuilder() { + if ((exprCase_ == 9) && (dropFlowTaskBuilder_ != null)) { + return dropFlowTaskBuilder_.getMessageOrBuilder(); } else { if (exprCase_ == 9) { - return (io.greptime.v1.Ddl.RemoveTaskExpr) expr_; + return (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.RemoveTaskExpr, io.greptime.v1.Ddl.RemoveTaskExpr.Builder, io.greptime.v1.Ddl.RemoveTaskExprOrBuilder> - getRemoveTaskFieldBuilder() { - if (removeTaskBuilder_ == null) { + io.greptime.v1.Ddl.DropFlowTaskExpr, io.greptime.v1.Ddl.DropFlowTaskExpr.Builder, io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder> + getDropFlowTaskFieldBuilder() { + if (dropFlowTaskBuilder_ == null) { if (!(exprCase_ == 9)) { - expr_ = io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + expr_ = io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } - removeTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.RemoveTaskExpr, io.greptime.v1.Ddl.RemoveTaskExpr.Builder, io.greptime.v1.Ddl.RemoveTaskExprOrBuilder>( - (io.greptime.v1.Ddl.RemoveTaskExpr) expr_, + dropFlowTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.DropFlowTaskExpr, io.greptime.v1.Ddl.DropFlowTaskExpr.Builder, io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder>( + (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_, getParentForChildren(), isClean()); expr_ = null; } exprCase_ = 9; onChanged();; - return removeTaskBuilder_; + return dropFlowTaskBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -2129,8 +2129,8 @@ public io.greptime.v1.Ddl.DdlRequest getDefaultInstanceForType() { } - public interface CreateTaskExprOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.CreateTaskExpr) + public interface CreateFlowTaskExprOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.CreateFlowTaskExpr) com.google.protobuf.MessageOrBuilder { /** @@ -2158,28 +2158,43 @@ public interface CreateTaskExprOrBuilder extends getTaskNameBytes(); /** - * string output_schema_name = 3; - * @return The outputSchemaName. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - java.lang.String getOutputSchemaName(); + java.util.List + getSourceTableNamesList(); /** - * string output_schema_name = 3; - * @return The bytes for outputSchemaName. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - com.google.protobuf.ByteString - getOutputSchemaNameBytes(); + io.greptime.v1.Ddl.SchemaScopedTableName getSourceTableNames(int index); + /** + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + */ + int getSourceTableNamesCount(); + /** + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + */ + java.util.List + getSourceTableNamesOrBuilderList(); + /** + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + */ + io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBuilder( + int index); /** - * string output_table_name = 4; - * @return The outputTableName. + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * @return Whether the sinkTableName field is set. */ - java.lang.String getOutputTableName(); + boolean hasSinkTableName(); /** - * string output_table_name = 4; - * @return The bytes for outputTableName. + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * @return The sinkTableName. */ - com.google.protobuf.ByteString - getOutputTableNameBytes(); + io.greptime.v1.Ddl.SchemaScopedTableName getSinkTableName(); + /** + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + */ + io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSinkTableNameOrBuilder(); /** * bool create_if_not_exists = 5; @@ -2264,22 +2279,21 @@ java.lang.String getTaskOptionsOrThrow( * Create a flow task to run the SQL when new data arrives. * * - * Protobuf type {@code greptime.v1.CreateTaskExpr} + * Protobuf type {@code greptime.v1.CreateFlowTaskExpr} */ - public static final class CreateTaskExpr extends + public static final class CreateFlowTaskExpr extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.CreateTaskExpr) - CreateTaskExprOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.CreateFlowTaskExpr) + CreateFlowTaskExprOrBuilder { private static final long serialVersionUID = 0L; - // Use CreateTaskExpr.newBuilder() to construct. - private CreateTaskExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use CreateFlowTaskExpr.newBuilder() to construct. + private CreateFlowTaskExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateTaskExpr() { + private CreateFlowTaskExpr() { catalogName_ = ""; taskName_ = ""; - outputSchemaName_ = ""; - outputTableName_ = ""; + sourceTableNames_ = java.util.Collections.emptyList(); expireWhen_ = ""; comment_ = ""; sql_ = ""; @@ -2289,7 +2303,7 @@ private CreateTaskExpr() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new CreateTaskExpr(); + return new CreateFlowTaskExpr(); } @java.lang.Override @@ -2297,7 +2311,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private CreateTaskExpr( + private CreateFlowTaskExpr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2329,15 +2343,25 @@ private CreateTaskExpr( break; } case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - outputSchemaName_ = s; + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sourceTableNames_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sourceTableNames_.add( + input.readMessage(io.greptime.v1.Ddl.SchemaScopedTableName.parser(), extensionRegistry)); break; } case 34: { - java.lang.String s = input.readStringRequireUtf8(); + io.greptime.v1.Ddl.SchemaScopedTableName.Builder subBuilder = null; + if (sinkTableName_ != null) { + subBuilder = sinkTableName_.toBuilder(); + } + sinkTableName_ = input.readMessage(io.greptime.v1.Ddl.SchemaScopedTableName.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sinkTableName_); + sinkTableName_ = subBuilder.buildPartial(); + } - outputTableName_ = s; break; } case 40: { @@ -2364,10 +2388,10 @@ private CreateTaskExpr( break; } case 74: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { taskOptions_ = com.google.protobuf.MapField.newMapField( TaskOptionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry taskOptions__ = input.readMessage( @@ -2393,13 +2417,16 @@ private CreateTaskExpr( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + sourceTableNames_ = java.util.Collections.unmodifiableList(sourceTableNames_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateTaskExpr_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateFlowTaskExpr_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -2417,9 +2444,9 @@ protected com.google.protobuf.MapField internalGetMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateTaskExpr_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateFlowTaskExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.CreateTaskExpr.class, io.greptime.v1.Ddl.CreateTaskExpr.Builder.class); + io.greptime.v1.Ddl.CreateFlowTaskExpr.class, io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder.class); } public static final int CATALOG_NAME_FIELD_NUMBER = 1; @@ -2498,80 +2525,70 @@ public java.lang.String getTaskName() { } } - public static final int OUTPUT_SCHEMA_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object outputSchemaName_; + public static final int SOURCE_TABLE_NAMES_FIELD_NUMBER = 3; + private java.util.List sourceTableNames_; /** - * string output_schema_name = 3; - * @return The outputSchemaName. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ @java.lang.Override - public java.lang.String getOutputSchemaName() { - java.lang.Object ref = outputSchemaName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputSchemaName_ = s; - return s; - } + public java.util.List getSourceTableNamesList() { + return sourceTableNames_; } /** - * string output_schema_name = 3; - * @return The bytes for outputSchemaName. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputSchemaNameBytes() { - java.lang.Object ref = outputSchemaName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputSchemaName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public java.util.List + getSourceTableNamesOrBuilderList() { + return sourceTableNames_; + } + /** + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + */ + @java.lang.Override + public int getSourceTableNamesCount() { + return sourceTableNames_.size(); + } + /** + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + */ + @java.lang.Override + public io.greptime.v1.Ddl.SchemaScopedTableName getSourceTableNames(int index) { + return sourceTableNames_.get(index); + } + /** + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + */ + @java.lang.Override + public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBuilder( + int index) { + return sourceTableNames_.get(index); } - public static final int OUTPUT_TABLE_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object outputTableName_; + public static final int SINK_TABLE_NAME_FIELD_NUMBER = 4; + private io.greptime.v1.Ddl.SchemaScopedTableName sinkTableName_; /** - * string output_table_name = 4; - * @return The outputTableName. + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * @return Whether the sinkTableName field is set. */ @java.lang.Override - public java.lang.String getOutputTableName() { - java.lang.Object ref = outputTableName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputTableName_ = s; - return s; - } + public boolean hasSinkTableName() { + return sinkTableName_ != null; } /** - * string output_table_name = 4; - * @return The bytes for outputTableName. + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * @return The sinkTableName. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputTableNameBytes() { - java.lang.Object ref = outputTableName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputTableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public io.greptime.v1.Ddl.SchemaScopedTableName getSinkTableName() { + return sinkTableName_ == null ? io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : sinkTableName_; + } + /** + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + */ + @java.lang.Override + public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSinkTableNameOrBuilder() { + return getSinkTableName(); } public static final int CREATE_IF_NOT_EXISTS_FIELD_NUMBER = 5; @@ -2705,7 +2722,7 @@ private static final class TaskOptionsDefaultEntryHolder { java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - io.greptime.v1.Ddl.internal_static_greptime_v1_CreateTaskExpr_TaskOptionsEntry_descriptor, + io.greptime.v1.Ddl.internal_static_greptime_v1_CreateFlowTaskExpr_TaskOptionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, @@ -2800,11 +2817,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, taskName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputSchemaName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputSchemaName_); + for (int i = 0; i < sourceTableNames_.size(); i++) { + output.writeMessage(3, sourceTableNames_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputTableName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outputTableName_); + if (sinkTableName_ != null) { + output.writeMessage(4, getSinkTableName()); } if (createIfNotExists_ != false) { output.writeBool(5, createIfNotExists_); @@ -2839,11 +2856,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, taskName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputSchemaName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputSchemaName_); + for (int i = 0; i < sourceTableNames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, sourceTableNames_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputTableName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputTableName_); + if (sinkTableName_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSinkTableName()); } if (createIfNotExists_ != false) { size += com.google.protobuf.CodedOutputStream @@ -2878,19 +2897,22 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.CreateTaskExpr)) { + if (!(obj instanceof io.greptime.v1.Ddl.CreateFlowTaskExpr)) { return super.equals(obj); } - io.greptime.v1.Ddl.CreateTaskExpr other = (io.greptime.v1.Ddl.CreateTaskExpr) obj; + io.greptime.v1.Ddl.CreateFlowTaskExpr other = (io.greptime.v1.Ddl.CreateFlowTaskExpr) obj; if (!getCatalogName() .equals(other.getCatalogName())) return false; if (!getTaskName() .equals(other.getTaskName())) return false; - if (!getOutputSchemaName() - .equals(other.getOutputSchemaName())) return false; - if (!getOutputTableName() - .equals(other.getOutputTableName())) return false; + if (!getSourceTableNamesList() + .equals(other.getSourceTableNamesList())) return false; + if (hasSinkTableName() != other.hasSinkTableName()) return false; + if (hasSinkTableName()) { + if (!getSinkTableName() + .equals(other.getSinkTableName())) return false; + } if (getCreateIfNotExists() != other.getCreateIfNotExists()) return false; if (!getExpireWhen() @@ -2916,10 +2938,14 @@ public int hashCode() { hash = (53 * hash) + getCatalogName().hashCode(); hash = (37 * hash) + TASK_NAME_FIELD_NUMBER; hash = (53 * hash) + getTaskName().hashCode(); - hash = (37 * hash) + OUTPUT_SCHEMA_NAME_FIELD_NUMBER; - hash = (53 * hash) + getOutputSchemaName().hashCode(); - hash = (37 * hash) + OUTPUT_TABLE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getOutputTableName().hashCode(); + if (getSourceTableNamesCount() > 0) { + hash = (37 * hash) + SOURCE_TABLE_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getSourceTableNamesList().hashCode(); + } + if (hasSinkTableName()) { + hash = (37 * hash) + SINK_TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSinkTableName().hashCode(); + } hash = (37 * hash) + CREATE_IF_NOT_EXISTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCreateIfNotExists()); @@ -2938,69 +2964,69 @@ public int hashCode() { return hash; } - public static io.greptime.v1.Ddl.CreateTaskExpr parseFrom( + public static io.greptime.v1.Ddl.CreateFlowTaskExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.CreateTaskExpr parseFrom( + public static io.greptime.v1.Ddl.CreateFlowTaskExpr parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.CreateTaskExpr parseFrom( + public static io.greptime.v1.Ddl.CreateFlowTaskExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.CreateTaskExpr parseFrom( + public static io.greptime.v1.Ddl.CreateFlowTaskExpr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.CreateTaskExpr parseFrom(byte[] data) + public static io.greptime.v1.Ddl.CreateFlowTaskExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.CreateTaskExpr parseFrom( + public static io.greptime.v1.Ddl.CreateFlowTaskExpr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.CreateTaskExpr parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.CreateFlowTaskExpr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.CreateTaskExpr parseFrom( + public static io.greptime.v1.Ddl.CreateFlowTaskExpr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.CreateTaskExpr parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.CreateFlowTaskExpr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.CreateTaskExpr parseDelimitedFrom( + public static io.greptime.v1.Ddl.CreateFlowTaskExpr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.CreateTaskExpr parseFrom( + public static io.greptime.v1.Ddl.CreateFlowTaskExpr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.CreateTaskExpr parseFrom( + public static io.greptime.v1.Ddl.CreateFlowTaskExpr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3013,7 +3039,7 @@ public static io.greptime.v1.Ddl.CreateTaskExpr parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.CreateTaskExpr prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.CreateFlowTaskExpr prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -3033,15 +3059,15 @@ protected Builder newBuilderForType( * Create a flow task to run the SQL when new data arrives. * * - * Protobuf type {@code greptime.v1.CreateTaskExpr} + * Protobuf type {@code greptime.v1.CreateFlowTaskExpr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.CreateTaskExpr) - io.greptime.v1.Ddl.CreateTaskExprOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.CreateFlowTaskExpr) + io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateTaskExpr_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateFlowTaskExpr_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -3069,12 +3095,12 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateTaskExpr_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateFlowTaskExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.CreateTaskExpr.class, io.greptime.v1.Ddl.CreateTaskExpr.Builder.class); + io.greptime.v1.Ddl.CreateFlowTaskExpr.class, io.greptime.v1.Ddl.CreateFlowTaskExpr.Builder.class); } - // Construct using io.greptime.v1.Ddl.CreateTaskExpr.newBuilder() + // Construct using io.greptime.v1.Ddl.CreateFlowTaskExpr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3087,6 +3113,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getSourceTableNamesFieldBuilder(); } } @java.lang.Override @@ -3096,10 +3123,18 @@ public Builder clear() { taskName_ = ""; - outputSchemaName_ = ""; - - outputTableName_ = ""; - + if (sourceTableNamesBuilder_ == null) { + sourceTableNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + sourceTableNamesBuilder_.clear(); + } + if (sinkTableNameBuilder_ == null) { + sinkTableName_ = null; + } else { + sinkTableName_ = null; + sinkTableNameBuilder_ = null; + } createIfNotExists_ = false; expireWhen_ = ""; @@ -3115,17 +3150,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateTaskExpr_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateFlowTaskExpr_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.CreateTaskExpr getDefaultInstanceForType() { - return io.greptime.v1.Ddl.CreateTaskExpr.getDefaultInstance(); + public io.greptime.v1.Ddl.CreateFlowTaskExpr getDefaultInstanceForType() { + return io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.CreateTaskExpr build() { - io.greptime.v1.Ddl.CreateTaskExpr result = buildPartial(); + public io.greptime.v1.Ddl.CreateFlowTaskExpr build() { + io.greptime.v1.Ddl.CreateFlowTaskExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3133,13 +3168,25 @@ public io.greptime.v1.Ddl.CreateTaskExpr build() { } @java.lang.Override - public io.greptime.v1.Ddl.CreateTaskExpr buildPartial() { - io.greptime.v1.Ddl.CreateTaskExpr result = new io.greptime.v1.Ddl.CreateTaskExpr(this); + public io.greptime.v1.Ddl.CreateFlowTaskExpr buildPartial() { + io.greptime.v1.Ddl.CreateFlowTaskExpr result = new io.greptime.v1.Ddl.CreateFlowTaskExpr(this); int from_bitField0_ = bitField0_; result.catalogName_ = catalogName_; result.taskName_ = taskName_; - result.outputSchemaName_ = outputSchemaName_; - result.outputTableName_ = outputTableName_; + if (sourceTableNamesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sourceTableNames_ = java.util.Collections.unmodifiableList(sourceTableNames_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sourceTableNames_ = sourceTableNames_; + } else { + result.sourceTableNames_ = sourceTableNamesBuilder_.build(); + } + if (sinkTableNameBuilder_ == null) { + result.sinkTableName_ = sinkTableName_; + } else { + result.sinkTableName_ = sinkTableNameBuilder_.build(); + } result.createIfNotExists_ = createIfNotExists_; result.expireWhen_ = expireWhen_; result.comment_ = comment_; @@ -3184,16 +3231,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.CreateTaskExpr) { - return mergeFrom((io.greptime.v1.Ddl.CreateTaskExpr)other); + if (other instanceof io.greptime.v1.Ddl.CreateFlowTaskExpr) { + return mergeFrom((io.greptime.v1.Ddl.CreateFlowTaskExpr)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.CreateTaskExpr other) { - if (other == io.greptime.v1.Ddl.CreateTaskExpr.getDefaultInstance()) return this; + public Builder mergeFrom(io.greptime.v1.Ddl.CreateFlowTaskExpr other) { + if (other == io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance()) return this; if (!other.getCatalogName().isEmpty()) { catalogName_ = other.catalogName_; onChanged(); @@ -3202,13 +3249,34 @@ public Builder mergeFrom(io.greptime.v1.Ddl.CreateTaskExpr other) { taskName_ = other.taskName_; onChanged(); } - if (!other.getOutputSchemaName().isEmpty()) { - outputSchemaName_ = other.outputSchemaName_; - onChanged(); + if (sourceTableNamesBuilder_ == null) { + if (!other.sourceTableNames_.isEmpty()) { + if (sourceTableNames_.isEmpty()) { + sourceTableNames_ = other.sourceTableNames_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSourceTableNamesIsMutable(); + sourceTableNames_.addAll(other.sourceTableNames_); + } + onChanged(); + } + } else { + if (!other.sourceTableNames_.isEmpty()) { + if (sourceTableNamesBuilder_.isEmpty()) { + sourceTableNamesBuilder_.dispose(); + sourceTableNamesBuilder_ = null; + sourceTableNames_ = other.sourceTableNames_; + bitField0_ = (bitField0_ & ~0x00000001); + sourceTableNamesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSourceTableNamesFieldBuilder() : null; + } else { + sourceTableNamesBuilder_.addAllMessages(other.sourceTableNames_); + } + } } - if (!other.getOutputTableName().isEmpty()) { - outputTableName_ = other.outputTableName_; - onChanged(); + if (other.hasSinkTableName()) { + mergeSinkTableName(other.getSinkTableName()); } if (other.getCreateIfNotExists() != false) { setCreateIfNotExists(other.getCreateIfNotExists()); @@ -3242,11 +3310,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.CreateTaskExpr parsedMessage = null; + io.greptime.v1.Ddl.CreateFlowTaskExpr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.CreateTaskExpr) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.CreateFlowTaskExpr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3409,204 +3477,411 @@ public Builder setTaskNameBytes( return this; } - private java.lang.Object outputSchemaName_ = ""; + private java.util.List sourceTableNames_ = + java.util.Collections.emptyList(); + private void ensureSourceTableNamesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sourceTableNames_ = new java.util.ArrayList(sourceTableNames_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder> sourceTableNamesBuilder_; + /** - * string output_schema_name = 3; - * @return The outputSchemaName. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public java.lang.String getOutputSchemaName() { - java.lang.Object ref = outputSchemaName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputSchemaName_ = s; - return s; + public java.util.List getSourceTableNamesList() { + if (sourceTableNamesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sourceTableNames_); } else { - return (java.lang.String) ref; + return sourceTableNamesBuilder_.getMessageList(); } } /** - * string output_schema_name = 3; - * @return The bytes for outputSchemaName. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public com.google.protobuf.ByteString - getOutputSchemaNameBytes() { - java.lang.Object ref = outputSchemaName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputSchemaName_ = b; - return b; + public int getSourceTableNamesCount() { + if (sourceTableNamesBuilder_ == null) { + return sourceTableNames_.size(); } else { - return (com.google.protobuf.ByteString) ref; + return sourceTableNamesBuilder_.getCount(); } } /** - * string output_schema_name = 3; - * @param value The outputSchemaName to set. - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder setOutputSchemaName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputSchemaName_ = value; - onChanged(); - return this; + public io.greptime.v1.Ddl.SchemaScopedTableName getSourceTableNames(int index) { + if (sourceTableNamesBuilder_ == null) { + return sourceTableNames_.get(index); + } else { + return sourceTableNamesBuilder_.getMessage(index); + } } /** - * string output_schema_name = 3; - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder clearOutputSchemaName() { - - outputSchemaName_ = getDefaultInstance().getOutputSchemaName(); - onChanged(); + public Builder setSourceTableNames( + int index, io.greptime.v1.Ddl.SchemaScopedTableName value) { + if (sourceTableNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceTableNamesIsMutable(); + sourceTableNames_.set(index, value); + onChanged(); + } else { + sourceTableNamesBuilder_.setMessage(index, value); + } return this; } /** - * string output_schema_name = 3; - * @param value The bytes for outputSchemaName to set. - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder setOutputSchemaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputSchemaName_ = value; - onChanged(); + public Builder setSourceTableNames( + int index, io.greptime.v1.Ddl.SchemaScopedTableName.Builder builderForValue) { + if (sourceTableNamesBuilder_ == null) { + ensureSourceTableNamesIsMutable(); + sourceTableNames_.set(index, builderForValue.build()); + onChanged(); + } else { + sourceTableNamesBuilder_.setMessage(index, builderForValue.build()); + } return this; } - - private java.lang.Object outputTableName_ = ""; /** - * string output_table_name = 4; - * @return The outputTableName. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public java.lang.String getOutputTableName() { - java.lang.Object ref = outputTableName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputTableName_ = s; - return s; + public Builder addSourceTableNames(io.greptime.v1.Ddl.SchemaScopedTableName value) { + if (sourceTableNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceTableNamesIsMutable(); + sourceTableNames_.add(value); + onChanged(); } else { - return (java.lang.String) ref; + sourceTableNamesBuilder_.addMessage(value); } + return this; } /** - * string output_table_name = 4; - * @return The bytes for outputTableName. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public com.google.protobuf.ByteString - getOutputTableNameBytes() { - java.lang.Object ref = outputTableName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputTableName_ = b; - return b; + public Builder addSourceTableNames( + int index, io.greptime.v1.Ddl.SchemaScopedTableName value) { + if (sourceTableNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceTableNamesIsMutable(); + sourceTableNames_.add(index, value); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + sourceTableNamesBuilder_.addMessage(index, value); } + return this; } /** - * string output_table_name = 4; - * @param value The outputTableName to set. - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder setOutputTableName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputTableName_ = value; - onChanged(); + public Builder addSourceTableNames( + io.greptime.v1.Ddl.SchemaScopedTableName.Builder builderForValue) { + if (sourceTableNamesBuilder_ == null) { + ensureSourceTableNamesIsMutable(); + sourceTableNames_.add(builderForValue.build()); + onChanged(); + } else { + sourceTableNamesBuilder_.addMessage(builderForValue.build()); + } return this; } /** - * string output_table_name = 4; - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder clearOutputTableName() { - - outputTableName_ = getDefaultInstance().getOutputTableName(); - onChanged(); + public Builder addSourceTableNames( + int index, io.greptime.v1.Ddl.SchemaScopedTableName.Builder builderForValue) { + if (sourceTableNamesBuilder_ == null) { + ensureSourceTableNamesIsMutable(); + sourceTableNames_.add(index, builderForValue.build()); + onChanged(); + } else { + sourceTableNamesBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** - * string output_table_name = 4; - * @param value The bytes for outputTableName to set. - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder setOutputTableNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputTableName_ = value; - onChanged(); + public Builder addAllSourceTableNames( + java.lang.Iterable values) { + if (sourceTableNamesBuilder_ == null) { + ensureSourceTableNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sourceTableNames_); + onChanged(); + } else { + sourceTableNamesBuilder_.addAllMessages(values); + } return this; } - - private boolean createIfNotExists_ ; /** - * bool create_if_not_exists = 5; - * @return The createIfNotExists. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - @java.lang.Override - public boolean getCreateIfNotExists() { - return createIfNotExists_; + public Builder clearSourceTableNames() { + if (sourceTableNamesBuilder_ == null) { + sourceTableNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sourceTableNamesBuilder_.clear(); + } + return this; } /** - * bool create_if_not_exists = 5; - * @param value The createIfNotExists to set. - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder setCreateIfNotExists(boolean value) { - - createIfNotExists_ = value; - onChanged(); + public Builder removeSourceTableNames(int index) { + if (sourceTableNamesBuilder_ == null) { + ensureSourceTableNamesIsMutable(); + sourceTableNames_.remove(index); + onChanged(); + } else { + sourceTableNamesBuilder_.remove(index); + } return this; } /** - * bool create_if_not_exists = 5; - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder clearCreateIfNotExists() { - - createIfNotExists_ = false; - onChanged(); - return this; + public io.greptime.v1.Ddl.SchemaScopedTableName.Builder getSourceTableNamesBuilder( + int index) { + return getSourceTableNamesFieldBuilder().getBuilder(index); } - - private java.lang.Object expireWhen_ = ""; /** - * string expire_when = 6; - * @return The expireWhen. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public java.lang.String getExpireWhen() { - java.lang.Object ref = expireWhen_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expireWhen_ = s; - return s; - } else { - return (java.lang.String) ref; + public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBuilder( + int index) { + if (sourceTableNamesBuilder_ == null) { + return sourceTableNames_.get(index); } else { + return sourceTableNamesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + */ + public java.util.List + getSourceTableNamesOrBuilderList() { + if (sourceTableNamesBuilder_ != null) { + return sourceTableNamesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sourceTableNames_); + } + } + /** + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + */ + public io.greptime.v1.Ddl.SchemaScopedTableName.Builder addSourceTableNamesBuilder() { + return getSourceTableNamesFieldBuilder().addBuilder( + io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance()); + } + /** + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + */ + public io.greptime.v1.Ddl.SchemaScopedTableName.Builder addSourceTableNamesBuilder( + int index) { + return getSourceTableNamesFieldBuilder().addBuilder( + index, io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance()); + } + /** + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + */ + public java.util.List + getSourceTableNamesBuilderList() { + return getSourceTableNamesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder> + getSourceTableNamesFieldBuilder() { + if (sourceTableNamesBuilder_ == null) { + sourceTableNamesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder>( + sourceTableNames_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sourceTableNames_ = null; + } + return sourceTableNamesBuilder_; + } + + private io.greptime.v1.Ddl.SchemaScopedTableName sinkTableName_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder> sinkTableNameBuilder_; + /** + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * @return Whether the sinkTableName field is set. + */ + public boolean hasSinkTableName() { + return sinkTableNameBuilder_ != null || sinkTableName_ != null; + } + /** + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * @return The sinkTableName. + */ + public io.greptime.v1.Ddl.SchemaScopedTableName getSinkTableName() { + if (sinkTableNameBuilder_ == null) { + return sinkTableName_ == null ? io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : sinkTableName_; + } else { + return sinkTableNameBuilder_.getMessage(); + } + } + /** + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + */ + public Builder setSinkTableName(io.greptime.v1.Ddl.SchemaScopedTableName value) { + if (sinkTableNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sinkTableName_ = value; + onChanged(); + } else { + sinkTableNameBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + */ + public Builder setSinkTableName( + io.greptime.v1.Ddl.SchemaScopedTableName.Builder builderForValue) { + if (sinkTableNameBuilder_ == null) { + sinkTableName_ = builderForValue.build(); + onChanged(); + } else { + sinkTableNameBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + */ + public Builder mergeSinkTableName(io.greptime.v1.Ddl.SchemaScopedTableName value) { + if (sinkTableNameBuilder_ == null) { + if (sinkTableName_ != null) { + sinkTableName_ = + io.greptime.v1.Ddl.SchemaScopedTableName.newBuilder(sinkTableName_).mergeFrom(value).buildPartial(); + } else { + sinkTableName_ = value; + } + onChanged(); + } else { + sinkTableNameBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + */ + public Builder clearSinkTableName() { + if (sinkTableNameBuilder_ == null) { + sinkTableName_ = null; + onChanged(); + } else { + sinkTableName_ = null; + sinkTableNameBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + */ + public io.greptime.v1.Ddl.SchemaScopedTableName.Builder getSinkTableNameBuilder() { + + onChanged(); + return getSinkTableNameFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + */ + public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSinkTableNameOrBuilder() { + if (sinkTableNameBuilder_ != null) { + return sinkTableNameBuilder_.getMessageOrBuilder(); + } else { + return sinkTableName_ == null ? + io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : sinkTableName_; + } + } + /** + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder> + getSinkTableNameFieldBuilder() { + if (sinkTableNameBuilder_ == null) { + sinkTableNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder>( + getSinkTableName(), + getParentForChildren(), + isClean()); + sinkTableName_ = null; + } + return sinkTableNameBuilder_; + } + + private boolean createIfNotExists_ ; + /** + * bool create_if_not_exists = 5; + * @return The createIfNotExists. + */ + @java.lang.Override + public boolean getCreateIfNotExists() { + return createIfNotExists_; + } + /** + * bool create_if_not_exists = 5; + * @param value The createIfNotExists to set. + * @return This builder for chaining. + */ + public Builder setCreateIfNotExists(boolean value) { + + createIfNotExists_ = value; + onChanged(); + return this; + } + /** + * bool create_if_not_exists = 5; + * @return This builder for chaining. + */ + public Builder clearCreateIfNotExists() { + + createIfNotExists_ = false; + onChanged(); + return this; + } + + private java.lang.Object expireWhen_ = ""; + /** + * string expire_when = 6; + * @return The expireWhen. + */ + public java.lang.String getExpireWhen() { + java.lang.Object ref = expireWhen_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expireWhen_ = s; + return s; + } else { + return (java.lang.String) ref; } } /** @@ -3668,288 +3943,1016 @@ public Builder setExpireWhenBytes( return this; } - private java.lang.Object comment_ = ""; + private java.lang.Object comment_ = ""; + /** + * string comment = 7; + * @return The comment. + */ + public java.lang.String getComment() { + java.lang.Object ref = comment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string comment = 7; + * @return The bytes for comment. + */ + public com.google.protobuf.ByteString + getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string comment = 7; + * @param value The comment to set. + * @return This builder for chaining. + */ + public Builder setComment( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + comment_ = value; + onChanged(); + return this; + } + /** + * string comment = 7; + * @return This builder for chaining. + */ + public Builder clearComment() { + + comment_ = getDefaultInstance().getComment(); + onChanged(); + return this; + } + /** + * string comment = 7; + * @param value The bytes for comment to set. + * @return This builder for chaining. + */ + public Builder setCommentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + comment_ = value; + onChanged(); + return this; + } + + private java.lang.Object sql_ = ""; + /** + * string sql = 8; + * @return The sql. + */ + public java.lang.String getSql() { + java.lang.Object ref = sql_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sql_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string sql = 8; + * @return The bytes for sql. + */ + public com.google.protobuf.ByteString + getSqlBytes() { + java.lang.Object ref = sql_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sql_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string sql = 8; + * @param value The sql to set. + * @return This builder for chaining. + */ + public Builder setSql( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sql_ = value; + onChanged(); + return this; + } + /** + * string sql = 8; + * @return This builder for chaining. + */ + public Builder clearSql() { + + sql_ = getDefaultInstance().getSql(); + onChanged(); + return this; + } + /** + * string sql = 8; + * @param value The bytes for sql to set. + * @return This builder for chaining. + */ + public Builder setSqlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sql_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> taskOptions_; + private com.google.protobuf.MapField + internalGetTaskOptions() { + if (taskOptions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TaskOptionsDefaultEntryHolder.defaultEntry); + } + return taskOptions_; + } + private com.google.protobuf.MapField + internalGetMutableTaskOptions() { + onChanged();; + if (taskOptions_ == null) { + taskOptions_ = com.google.protobuf.MapField.newMapField( + TaskOptionsDefaultEntryHolder.defaultEntry); + } + if (!taskOptions_.isMutable()) { + taskOptions_ = taskOptions_.copy(); + } + return taskOptions_; + } + + public int getTaskOptionsCount() { + return internalGetTaskOptions().getMap().size(); + } + /** + * map<string, string> task_options = 9; + */ + + @java.lang.Override + public boolean containsTaskOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetTaskOptions().getMap().containsKey(key); + } + /** + * Use {@link #getTaskOptionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTaskOptions() { + return getTaskOptionsMap(); + } + /** + * map<string, string> task_options = 9; + */ + @java.lang.Override + + public java.util.Map getTaskOptionsMap() { + return internalGetTaskOptions().getMap(); + } + /** + * map<string, string> task_options = 9; + */ + @java.lang.Override + + public java.lang.String getTaskOptionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTaskOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> task_options = 9; + */ + @java.lang.Override + + public java.lang.String getTaskOptionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTaskOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTaskOptions() { + internalGetMutableTaskOptions().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> task_options = 9; + */ + + public Builder removeTaskOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableTaskOptions().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableTaskOptions() { + return internalGetMutableTaskOptions().getMutableMap(); + } + /** + * map<string, string> task_options = 9; + */ + public Builder putTaskOptions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableTaskOptions().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, string> task_options = 9; + */ + + public Builder putAllTaskOptions( + java.util.Map values) { + internalGetMutableTaskOptions().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.CreateFlowTaskExpr) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.CreateFlowTaskExpr) + private static final io.greptime.v1.Ddl.CreateFlowTaskExpr DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.CreateFlowTaskExpr(); + } + + public static io.greptime.v1.Ddl.CreateFlowTaskExpr getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFlowTaskExpr parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFlowTaskExpr(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.Ddl.CreateFlowTaskExpr getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SchemaScopedTableNameOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.SchemaScopedTableName) + com.google.protobuf.MessageOrBuilder { + + /** + * string schema_name = 1; + * @return The schemaName. + */ + java.lang.String getSchemaName(); + /** + * string schema_name = 1; + * @return The bytes for schemaName. + */ + com.google.protobuf.ByteString + getSchemaNameBytes(); + + /** + * string table_name = 2; + * @return The tableName. + */ + java.lang.String getTableName(); + /** + * string table_name = 2; + * @return The bytes for tableName. + */ + com.google.protobuf.ByteString + getTableNameBytes(); + } + /** + *
+   * Table name
+   * 
+ * + * Protobuf type {@code greptime.v1.SchemaScopedTableName} + */ + public static final class SchemaScopedTableName extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.SchemaScopedTableName) + SchemaScopedTableNameOrBuilder { + private static final long serialVersionUID = 0L; + // Use SchemaScopedTableName.newBuilder() to construct. + private SchemaScopedTableName(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SchemaScopedTableName() { + schemaName_ = ""; + tableName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SchemaScopedTableName(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SchemaScopedTableName( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + schemaName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + tableName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SchemaScopedTableName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SchemaScopedTableName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.SchemaScopedTableName.class, io.greptime.v1.Ddl.SchemaScopedTableName.Builder.class); + } + + public static final int SCHEMA_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object schemaName_; + /** + * string schema_name = 1; + * @return The schemaName. + */ + @java.lang.Override + public java.lang.String getSchemaName() { + java.lang.Object ref = schemaName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaName_ = s; + return s; + } + } + /** + * string schema_name = 1; + * @return The bytes for schemaName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schemaName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object tableName_; + /** + * string table_name = 2; + * @return The tableName. + */ + @java.lang.Override + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } + } + /** + * string table_name = 2; + * @return The bytes for tableName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schemaName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tableName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schemaName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Ddl.SchemaScopedTableName)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.SchemaScopedTableName other = (io.greptime.v1.Ddl.SchemaScopedTableName) obj; + + if (!getSchemaName() + .equals(other.getSchemaName())) return false; + if (!getTableName() + .equals(other.getTableName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSchemaName().hashCode(); + hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTableName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.SchemaScopedTableName parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.SchemaScopedTableName parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Ddl.SchemaScopedTableName prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Table name
+     * 
+ * + * Protobuf type {@code greptime.v1.SchemaScopedTableName} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.SchemaScopedTableName) + io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SchemaScopedTableName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SchemaScopedTableName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.SchemaScopedTableName.class, io.greptime.v1.Ddl.SchemaScopedTableName.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.SchemaScopedTableName.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + schemaName_ = ""; + + tableName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SchemaScopedTableName_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.SchemaScopedTableName getDefaultInstanceForType() { + return io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.SchemaScopedTableName build() { + io.greptime.v1.Ddl.SchemaScopedTableName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.SchemaScopedTableName buildPartial() { + io.greptime.v1.Ddl.SchemaScopedTableName result = new io.greptime.v1.Ddl.SchemaScopedTableName(this); + result.schemaName_ = schemaName_; + result.tableName_ = tableName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Ddl.SchemaScopedTableName) { + return mergeFrom((io.greptime.v1.Ddl.SchemaScopedTableName)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.SchemaScopedTableName other) { + if (other == io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance()) return this; + if (!other.getSchemaName().isEmpty()) { + schemaName_ = other.schemaName_; + onChanged(); + } + if (!other.getTableName().isEmpty()) { + tableName_ = other.tableName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Ddl.SchemaScopedTableName parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.SchemaScopedTableName) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object schemaName_ = ""; /** - * string comment = 7; - * @return The comment. + * string schema_name = 1; + * @return The schemaName. */ - public java.lang.String getComment() { - java.lang.Object ref = comment_; + public java.lang.String getSchemaName() { + java.lang.Object ref = schemaName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - comment_ = s; + schemaName_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string comment = 7; - * @return The bytes for comment. + * string schema_name = 1; + * @return The bytes for schemaName. */ public com.google.protobuf.ByteString - getCommentBytes() { - java.lang.Object ref = comment_; + getSchemaNameBytes() { + java.lang.Object ref = schemaName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - comment_ = b; + schemaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string comment = 7; - * @param value The comment to set. + * string schema_name = 1; + * @param value The schemaName to set. * @return This builder for chaining. */ - public Builder setComment( + public Builder setSchemaName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - comment_ = value; + schemaName_ = value; onChanged(); return this; } /** - * string comment = 7; + * string schema_name = 1; * @return This builder for chaining. */ - public Builder clearComment() { + public Builder clearSchemaName() { - comment_ = getDefaultInstance().getComment(); + schemaName_ = getDefaultInstance().getSchemaName(); onChanged(); return this; } /** - * string comment = 7; - * @param value The bytes for comment to set. + * string schema_name = 1; + * @param value The bytes for schemaName to set. * @return This builder for chaining. */ - public Builder setCommentBytes( + public Builder setSchemaNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - comment_ = value; + schemaName_ = value; onChanged(); return this; } - private java.lang.Object sql_ = ""; + private java.lang.Object tableName_ = ""; /** - * string sql = 8; - * @return The sql. + * string table_name = 2; + * @return The tableName. */ - public java.lang.String getSql() { - java.lang.Object ref = sql_; + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - sql_ = s; + tableName_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string sql = 8; - * @return The bytes for sql. + * string table_name = 2; + * @return The bytes for tableName. */ public com.google.protobuf.ByteString - getSqlBytes() { - java.lang.Object ref = sql_; + getTableNameBytes() { + java.lang.Object ref = tableName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - sql_ = b; + tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string sql = 8; - * @param value The sql to set. + * string table_name = 2; + * @param value The tableName to set. * @return This builder for chaining. */ - public Builder setSql( + public Builder setTableName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - sql_ = value; + tableName_ = value; onChanged(); return this; } /** - * string sql = 8; + * string table_name = 2; * @return This builder for chaining. */ - public Builder clearSql() { + public Builder clearTableName() { - sql_ = getDefaultInstance().getSql(); + tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } /** - * string sql = 8; - * @param value The bytes for sql to set. + * string table_name = 2; + * @param value The bytes for tableName to set. * @return This builder for chaining. */ - public Builder setSqlBytes( + public Builder setTableNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - sql_ = value; + tableName_ = value; onChanged(); return this; } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> taskOptions_; - private com.google.protobuf.MapField - internalGetTaskOptions() { - if (taskOptions_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TaskOptionsDefaultEntryHolder.defaultEntry); - } - return taskOptions_; - } - private com.google.protobuf.MapField - internalGetMutableTaskOptions() { - onChanged();; - if (taskOptions_ == null) { - taskOptions_ = com.google.protobuf.MapField.newMapField( - TaskOptionsDefaultEntryHolder.defaultEntry); - } - if (!taskOptions_.isMutable()) { - taskOptions_ = taskOptions_.copy(); - } - return taskOptions_; - } - - public int getTaskOptionsCount() { - return internalGetTaskOptions().getMap().size(); - } - /** - * map<string, string> task_options = 9; - */ - - @java.lang.Override - public boolean containsTaskOptions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetTaskOptions().getMap().containsKey(key); - } - /** - * Use {@link #getTaskOptionsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTaskOptions() { - return getTaskOptionsMap(); - } - /** - * map<string, string> task_options = 9; - */ - @java.lang.Override - - public java.util.Map getTaskOptionsMap() { - return internalGetTaskOptions().getMap(); - } - /** - * map<string, string> task_options = 9; - */ - @java.lang.Override - - public java.lang.String getTaskOptionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTaskOptions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> task_options = 9; - */ - @java.lang.Override - - public java.lang.String getTaskOptionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTaskOptions().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTaskOptions() { - internalGetMutableTaskOptions().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> task_options = 9; - */ - - public Builder removeTaskOptions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableTaskOptions().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableTaskOptions() { - return internalGetMutableTaskOptions().getMutableMap(); - } - /** - * map<string, string> task_options = 9; - */ - public Builder putTaskOptions( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableTaskOptions().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, string> task_options = 9; - */ - - public Builder putAllTaskOptions( - java.util.Map values) { - internalGetMutableTaskOptions().getMutableMap() - .putAll(values); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3963,48 +4966,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.CreateTaskExpr) + // @@protoc_insertion_point(builder_scope:greptime.v1.SchemaScopedTableName) } - // @@protoc_insertion_point(class_scope:greptime.v1.CreateTaskExpr) - private static final io.greptime.v1.Ddl.CreateTaskExpr DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.SchemaScopedTableName) + private static final io.greptime.v1.Ddl.SchemaScopedTableName DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.CreateTaskExpr(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.SchemaScopedTableName(); } - public static io.greptime.v1.Ddl.CreateTaskExpr getDefaultInstance() { + public static io.greptime.v1.Ddl.SchemaScopedTableName getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public CreateTaskExpr parsePartialFrom( + public SchemaScopedTableName parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTaskExpr(input, extensionRegistry); + return new SchemaScopedTableName(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.CreateTaskExpr getDefaultInstanceForType() { + public io.greptime.v1.Ddl.SchemaScopedTableName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface RemoveTaskExprOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.RemoveTaskExpr) + public interface DropFlowTaskExprOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.DropFlowTaskExpr) com.google.protobuf.MessageOrBuilder { /** @@ -4036,18 +5039,18 @@ public interface RemoveTaskExprOrBuilder extends * Remove a flow task. * * - * Protobuf type {@code greptime.v1.RemoveTaskExpr} + * Protobuf type {@code greptime.v1.DropFlowTaskExpr} */ - public static final class RemoveTaskExpr extends + public static final class DropFlowTaskExpr extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.RemoveTaskExpr) - RemoveTaskExprOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.DropFlowTaskExpr) + DropFlowTaskExprOrBuilder { private static final long serialVersionUID = 0L; - // Use RemoveTaskExpr.newBuilder() to construct. - private RemoveTaskExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use DropFlowTaskExpr.newBuilder() to construct. + private DropFlowTaskExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RemoveTaskExpr() { + private DropFlowTaskExpr() { catalogName_ = ""; taskName_ = ""; } @@ -4056,7 +5059,7 @@ private RemoveTaskExpr() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new RemoveTaskExpr(); + return new DropFlowTaskExpr(); } @java.lang.Override @@ -4064,7 +5067,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private RemoveTaskExpr( + private DropFlowTaskExpr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4117,15 +5120,15 @@ private RemoveTaskExpr( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RemoveTaskExpr_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropFlowTaskExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RemoveTaskExpr_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropFlowTaskExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.RemoveTaskExpr.class, io.greptime.v1.Ddl.RemoveTaskExpr.Builder.class); + io.greptime.v1.Ddl.DropFlowTaskExpr.class, io.greptime.v1.Ddl.DropFlowTaskExpr.Builder.class); } public static final int CATALOG_NAME_FIELD_NUMBER = 1; @@ -4249,10 +5252,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.RemoveTaskExpr)) { + if (!(obj instanceof io.greptime.v1.Ddl.DropFlowTaskExpr)) { return super.equals(obj); } - io.greptime.v1.Ddl.RemoveTaskExpr other = (io.greptime.v1.Ddl.RemoveTaskExpr) obj; + io.greptime.v1.Ddl.DropFlowTaskExpr other = (io.greptime.v1.Ddl.DropFlowTaskExpr) obj; if (!getCatalogName() .equals(other.getCatalogName())) return false; @@ -4278,69 +5281,69 @@ public int hashCode() { return hash; } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseFrom( + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseFrom( + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseFrom( + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseFrom( + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseFrom(byte[] data) + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseFrom( + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseFrom( + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseDelimitedFrom( + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseFrom( + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseFrom( + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4353,7 +5356,7 @@ public static io.greptime.v1.Ddl.RemoveTaskExpr parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.RemoveTaskExpr prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.DropFlowTaskExpr prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4373,26 +5376,26 @@ protected Builder newBuilderForType( * Remove a flow task. * * - * Protobuf type {@code greptime.v1.RemoveTaskExpr} + * Protobuf type {@code greptime.v1.DropFlowTaskExpr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.RemoveTaskExpr) - io.greptime.v1.Ddl.RemoveTaskExprOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.DropFlowTaskExpr) + io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RemoveTaskExpr_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropFlowTaskExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RemoveTaskExpr_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropFlowTaskExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.RemoveTaskExpr.class, io.greptime.v1.Ddl.RemoveTaskExpr.Builder.class); + io.greptime.v1.Ddl.DropFlowTaskExpr.class, io.greptime.v1.Ddl.DropFlowTaskExpr.Builder.class); } - // Construct using io.greptime.v1.Ddl.RemoveTaskExpr.newBuilder() + // Construct using io.greptime.v1.Ddl.DropFlowTaskExpr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -4420,17 +5423,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RemoveTaskExpr_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropFlowTaskExpr_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExpr getDefaultInstanceForType() { - return io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + public io.greptime.v1.Ddl.DropFlowTaskExpr getDefaultInstanceForType() { + return io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExpr build() { - io.greptime.v1.Ddl.RemoveTaskExpr result = buildPartial(); + public io.greptime.v1.Ddl.DropFlowTaskExpr build() { + io.greptime.v1.Ddl.DropFlowTaskExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4438,8 +5441,8 @@ public io.greptime.v1.Ddl.RemoveTaskExpr build() { } @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExpr buildPartial() { - io.greptime.v1.Ddl.RemoveTaskExpr result = new io.greptime.v1.Ddl.RemoveTaskExpr(this); + public io.greptime.v1.Ddl.DropFlowTaskExpr buildPartial() { + io.greptime.v1.Ddl.DropFlowTaskExpr result = new io.greptime.v1.Ddl.DropFlowTaskExpr(this); result.catalogName_ = catalogName_; result.taskName_ = taskName_; onBuilt(); @@ -4480,16 +5483,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.RemoveTaskExpr) { - return mergeFrom((io.greptime.v1.Ddl.RemoveTaskExpr)other); + if (other instanceof io.greptime.v1.Ddl.DropFlowTaskExpr) { + return mergeFrom((io.greptime.v1.Ddl.DropFlowTaskExpr)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.RemoveTaskExpr other) { - if (other == io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance()) return this; + public Builder mergeFrom(io.greptime.v1.Ddl.DropFlowTaskExpr other) { + if (other == io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance()) return this; if (!other.getCatalogName().isEmpty()) { catalogName_ = other.catalogName_; onChanged(); @@ -4513,11 +5516,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.RemoveTaskExpr parsedMessage = null; + io.greptime.v1.Ddl.DropFlowTaskExpr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.RemoveTaskExpr) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.DropFlowTaskExpr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4691,41 +5694,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.RemoveTaskExpr) + // @@protoc_insertion_point(builder_scope:greptime.v1.DropFlowTaskExpr) } - // @@protoc_insertion_point(class_scope:greptime.v1.RemoveTaskExpr) - private static final io.greptime.v1.Ddl.RemoveTaskExpr DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.DropFlowTaskExpr) + private static final io.greptime.v1.Ddl.DropFlowTaskExpr DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.RemoveTaskExpr(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.DropFlowTaskExpr(); } - public static io.greptime.v1.Ddl.RemoveTaskExpr getDefaultInstance() { + public static io.greptime.v1.Ddl.DropFlowTaskExpr getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public RemoveTaskExpr parsePartialFrom( + public DropFlowTaskExpr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RemoveTaskExpr(input, extensionRegistry); + return new DropFlowTaskExpr(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExpr getDefaultInstanceForType() { + public io.greptime.v1.Ddl.DropFlowTaskExpr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -19173,20 +20176,25 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_DdlRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateTaskExpr_descriptor; + internal_static_greptime_v1_CreateFlowTaskExpr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateTaskExpr_fieldAccessorTable; + internal_static_greptime_v1_CreateFlowTaskExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateTaskExpr_TaskOptionsEntry_descriptor; + internal_static_greptime_v1_CreateFlowTaskExpr_TaskOptionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateTaskExpr_TaskOptionsEntry_fieldAccessorTable; + internal_static_greptime_v1_CreateFlowTaskExpr_TaskOptionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_RemoveTaskExpr_descriptor; + internal_static_greptime_v1_SchemaScopedTableName_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_RemoveTaskExpr_fieldAccessorTable; + internal_static_greptime_v1_SchemaScopedTableName_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DropFlowTaskExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DropFlowTaskExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_CreateTableExpr_descriptor; private static final @@ -19277,25 +20285,29 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { static { java.lang.String[] descriptorData = { "\n\025greptime/v1/ddl.proto\022\013greptime.v1\032\030gr" + - "eptime/v1/common.proto\"\203\003\n\nDdlRequest\022:\n" + + "eptime/v1/common.proto\"\221\003\n\nDdlRequest\022:\n" + "\017create_database\030\001 \001(\0132\037.greptime.v1.Cre" + "ateDatabaseExprH\000\0224\n\014create_table\030\002 \001(\0132" + "\034.greptime.v1.CreateTableExprH\000\022\'\n\005alter" + "\030\003 \001(\0132\026.greptime.v1.AlterExprH\000\0220\n\ndrop" + "_table\030\004 \001(\0132\032.greptime.v1.DropTableExpr" + "H\000\0228\n\016truncate_table\030\007 \001(\0132\036.greptime.v1" + - ".TruncateTableExprH\000\0222\n\013create_task\030\010 \001(" + - "\0132\033.greptime.v1.CreateTaskExprH\000\0222\n\013remo" + - "ve_task\030\t \001(\0132\033.greptime.v1.RemoveTaskEx" + - "prH\000B\006\n\004expr\"\271\002\n\016CreateTaskExpr\022\024\n\014catal" + - "og_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\022\032\n\022outp" + - "ut_schema_name\030\003 \001(\t\022\031\n\021output_table_nam" + - "e\030\004 \001(\t\022\034\n\024create_if_not_exists\030\005 \001(\010\022\023\n" + - "\013expire_when\030\006 \001(\t\022\017\n\007comment\030\007 \001(\t\022\013\n\003s" + - "ql\030\010 \001(\t\022B\n\014task_options\030\t \003(\0132,.greptim" + - "e.v1.CreateTaskExpr.TaskOptionsEntry\0322\n\020" + - "TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + - " \001(\t:\0028\001\"9\n\016RemoveTaskExpr\022\024\n\014catalog_na" + + ".TruncateTableExprH\000\022;\n\020create_flow_task" + + "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" + + "\000\0227\n\016drop_flow_task\030\t \001(\0132\035.greptime.v1." + + "DropFlowTaskExprH\000B\006\n\004expr\"\207\003\n\022CreateFlo" + + "wTaskExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\ttask_" + + "name\030\002 \001(\t\022>\n\022source_table_names\030\003 \003(\0132\"" + + ".greptime.v1.SchemaScopedTableName\022;\n\017si" + + "nk_table_name\030\004 \001(\0132\".greptime.v1.Schema" + + "ScopedTableName\022\034\n\024create_if_not_exists\030" + + "\005 \001(\010\022\023\n\013expire_when\030\006 \001(\t\022\017\n\007comment\030\007 " + + "\001(\t\022\013\n\003sql\030\010 \001(\t\022F\n\014task_options\030\t \003(\01320" + + ".greptime.v1.CreateFlowTaskExpr.TaskOpti" + + "onsEntry\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\025SchemaScopedTabl" + + "eName\022\023\n\013schema_name\030\001 \001(\t\022\022\n\ntable_name" + + "\030\002 \001(\t\";\n\020DropFlowTaskExpr\022\024\n\014catalog_na" + "me\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003\n\017CreateTa" + "bleExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_" + "name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\014\n\004desc\030\004" + @@ -19358,27 +20370,33 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { internal_static_greptime_v1_DdlRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DdlRequest_descriptor, - new java.lang.String[] { "CreateDatabase", "CreateTable", "Alter", "DropTable", "TruncateTable", "CreateTask", "RemoveTask", "Expr", }); - internal_static_greptime_v1_CreateTaskExpr_descriptor = + new java.lang.String[] { "CreateDatabase", "CreateTable", "Alter", "DropTable", "TruncateTable", "CreateFlowTask", "DropFlowTask", "Expr", }); + internal_static_greptime_v1_CreateFlowTaskExpr_descriptor = getDescriptor().getMessageTypes().get(1); - internal_static_greptime_v1_CreateTaskExpr_fieldAccessorTable = new + internal_static_greptime_v1_CreateFlowTaskExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_CreateTaskExpr_descriptor, - new java.lang.String[] { "CatalogName", "TaskName", "OutputSchemaName", "OutputTableName", "CreateIfNotExists", "ExpireWhen", "Comment", "Sql", "TaskOptions", }); - internal_static_greptime_v1_CreateTaskExpr_TaskOptionsEntry_descriptor = - internal_static_greptime_v1_CreateTaskExpr_descriptor.getNestedTypes().get(0); - internal_static_greptime_v1_CreateTaskExpr_TaskOptionsEntry_fieldAccessorTable = new + internal_static_greptime_v1_CreateFlowTaskExpr_descriptor, + new java.lang.String[] { "CatalogName", "TaskName", "SourceTableNames", "SinkTableName", "CreateIfNotExists", "ExpireWhen", "Comment", "Sql", "TaskOptions", }); + internal_static_greptime_v1_CreateFlowTaskExpr_TaskOptionsEntry_descriptor = + internal_static_greptime_v1_CreateFlowTaskExpr_descriptor.getNestedTypes().get(0); + internal_static_greptime_v1_CreateFlowTaskExpr_TaskOptionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_CreateTaskExpr_TaskOptionsEntry_descriptor, + internal_static_greptime_v1_CreateFlowTaskExpr_TaskOptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_greptime_v1_RemoveTaskExpr_descriptor = + internal_static_greptime_v1_SchemaScopedTableName_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_greptime_v1_RemoveTaskExpr_fieldAccessorTable = new + internal_static_greptime_v1_SchemaScopedTableName_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_SchemaScopedTableName_descriptor, + new java.lang.String[] { "SchemaName", "TableName", }); + internal_static_greptime_v1_DropFlowTaskExpr_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_greptime_v1_DropFlowTaskExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_RemoveTaskExpr_descriptor, + internal_static_greptime_v1_DropFlowTaskExpr_descriptor, new java.lang.String[] { "CatalogName", "TaskName", }); internal_static_greptime_v1_CreateTableExpr_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_greptime_v1_CreateTableExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_CreateTableExpr_descriptor, @@ -19390,19 +20408,19 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { internal_static_greptime_v1_CreateTableExpr_TableOptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_AlterExpr_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_greptime_v1_AlterExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AlterExpr_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "AddColumns", "DropColumns", "RenameTable", "Kind", }); internal_static_greptime_v1_DropTableExpr_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_greptime_v1_DropTableExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropTableExpr_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "TableId", "DropIfExists", }); internal_static_greptime_v1_CreateDatabaseExpr_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_CreateDatabaseExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_CreateDatabaseExpr_descriptor, @@ -19414,61 +20432,61 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_TruncateTableExpr_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_greptime_v1_TruncateTableExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_TruncateTableExpr_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "TableId", }); internal_static_greptime_v1_DropDatabaseExpr_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropDatabaseExpr_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "DropIfExists", }); internal_static_greptime_v1_AddColumns_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_greptime_v1_AddColumns_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumns_descriptor, new java.lang.String[] { "AddColumns", }); internal_static_greptime_v1_DropColumns_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_greptime_v1_DropColumns_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropColumns_descriptor, new java.lang.String[] { "DropColumns", }); internal_static_greptime_v1_RenameTable_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_greptime_v1_RenameTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_RenameTable_descriptor, new java.lang.String[] { "NewTableName", }); internal_static_greptime_v1_AddColumn_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_greptime_v1_AddColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumn_descriptor, new java.lang.String[] { "ColumnDef", "Location", }); internal_static_greptime_v1_DropColumn_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_greptime_v1_DropColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropColumn_descriptor, new java.lang.String[] { "Name", }); internal_static_greptime_v1_TableId_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_greptime_v1_TableId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_TableId_descriptor, new java.lang.String[] { "Id", }); internal_static_greptime_v1_ColumnDef_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_greptime_v1_ColumnDef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnDef_descriptor, new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", }); internal_static_greptime_v1_AddColumnLocation_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_greptime_v1_AddColumnLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumnLocation_descriptor, diff --git a/java/src/main/java/io/greptime/v1/flow/Server.java b/java/src/main/java/io/greptime/v1/flow/Server.java index bbd271c1..0dfe7e78 100644 --- a/java/src/main/java/io/greptime/v1/flow/Server.java +++ b/java/src/main/java/io/greptime/v1/flow/Server.java @@ -1508,34 +1508,34 @@ public interface FlowRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; * @return Whether the create field is set. */ boolean hasCreate(); /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; * @return The create. */ - io.greptime.v1.flow.Server.FlowCreateRequest getCreate(); + io.greptime.v1.flow.Server.CreateRequest getCreate(); /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; */ - io.greptime.v1.flow.Server.FlowCreateRequestOrBuilder getCreateOrBuilder(); + io.greptime.v1.flow.Server.CreateRequestOrBuilder getCreateOrBuilder(); /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; * @return Whether the remove field is set. */ boolean hasRemove(); /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; * @return The remove. */ - io.greptime.v1.flow.Server.FlowRemoveRequest getRemove(); + io.greptime.v1.flow.Server.RemoveRequest getRemove(); /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; */ - io.greptime.v1.flow.Server.FlowRemoveRequestOrBuilder getRemoveOrBuilder(); + io.greptime.v1.flow.Server.RemoveRequestOrBuilder getRemoveOrBuilder(); public io.greptime.v1.flow.Server.FlowRequest.BodyCase getBodyCase(); } @@ -1585,28 +1585,28 @@ private FlowRequest( done = true; break; case 10: { - io.greptime.v1.flow.Server.FlowCreateRequest.Builder subBuilder = null; + io.greptime.v1.flow.Server.CreateRequest.Builder subBuilder = null; if (bodyCase_ == 1) { - subBuilder = ((io.greptime.v1.flow.Server.FlowCreateRequest) body_).toBuilder(); + subBuilder = ((io.greptime.v1.flow.Server.CreateRequest) body_).toBuilder(); } body_ = - input.readMessage(io.greptime.v1.flow.Server.FlowCreateRequest.parser(), extensionRegistry); + input.readMessage(io.greptime.v1.flow.Server.CreateRequest.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((io.greptime.v1.flow.Server.FlowCreateRequest) body_); + subBuilder.mergeFrom((io.greptime.v1.flow.Server.CreateRequest) body_); body_ = subBuilder.buildPartial(); } bodyCase_ = 1; break; } case 18: { - io.greptime.v1.flow.Server.FlowRemoveRequest.Builder subBuilder = null; + io.greptime.v1.flow.Server.RemoveRequest.Builder subBuilder = null; if (bodyCase_ == 2) { - subBuilder = ((io.greptime.v1.flow.Server.FlowRemoveRequest) body_).toBuilder(); + subBuilder = ((io.greptime.v1.flow.Server.RemoveRequest) body_).toBuilder(); } body_ = - input.readMessage(io.greptime.v1.flow.Server.FlowRemoveRequest.parser(), extensionRegistry); + input.readMessage(io.greptime.v1.flow.Server.RemoveRequest.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((io.greptime.v1.flow.Server.FlowRemoveRequest) body_); + subBuilder.mergeFrom((io.greptime.v1.flow.Server.RemoveRequest) body_); body_ = subBuilder.buildPartial(); } bodyCase_ = 2; @@ -1689,7 +1689,7 @@ public int getNumber() { public static final int CREATE_FIELD_NUMBER = 1; /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; * @return Whether the create field is set. */ @java.lang.Override @@ -1697,30 +1697,30 @@ public boolean hasCreate() { return bodyCase_ == 1; } /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; * @return The create. */ @java.lang.Override - public io.greptime.v1.flow.Server.FlowCreateRequest getCreate() { + public io.greptime.v1.flow.Server.CreateRequest getCreate() { if (bodyCase_ == 1) { - return (io.greptime.v1.flow.Server.FlowCreateRequest) body_; + return (io.greptime.v1.flow.Server.CreateRequest) body_; } - return io.greptime.v1.flow.Server.FlowCreateRequest.getDefaultInstance(); + return io.greptime.v1.flow.Server.CreateRequest.getDefaultInstance(); } /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; */ @java.lang.Override - public io.greptime.v1.flow.Server.FlowCreateRequestOrBuilder getCreateOrBuilder() { + public io.greptime.v1.flow.Server.CreateRequestOrBuilder getCreateOrBuilder() { if (bodyCase_ == 1) { - return (io.greptime.v1.flow.Server.FlowCreateRequest) body_; + return (io.greptime.v1.flow.Server.CreateRequest) body_; } - return io.greptime.v1.flow.Server.FlowCreateRequest.getDefaultInstance(); + return io.greptime.v1.flow.Server.CreateRequest.getDefaultInstance(); } public static final int REMOVE_FIELD_NUMBER = 2; /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; * @return Whether the remove field is set. */ @java.lang.Override @@ -1728,25 +1728,25 @@ public boolean hasRemove() { return bodyCase_ == 2; } /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; * @return The remove. */ @java.lang.Override - public io.greptime.v1.flow.Server.FlowRemoveRequest getRemove() { + public io.greptime.v1.flow.Server.RemoveRequest getRemove() { if (bodyCase_ == 2) { - return (io.greptime.v1.flow.Server.FlowRemoveRequest) body_; + return (io.greptime.v1.flow.Server.RemoveRequest) body_; } - return io.greptime.v1.flow.Server.FlowRemoveRequest.getDefaultInstance(); + return io.greptime.v1.flow.Server.RemoveRequest.getDefaultInstance(); } /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; */ @java.lang.Override - public io.greptime.v1.flow.Server.FlowRemoveRequestOrBuilder getRemoveOrBuilder() { + public io.greptime.v1.flow.Server.RemoveRequestOrBuilder getRemoveOrBuilder() { if (bodyCase_ == 2) { - return (io.greptime.v1.flow.Server.FlowRemoveRequest) body_; + return (io.greptime.v1.flow.Server.RemoveRequest) body_; } - return io.greptime.v1.flow.Server.FlowRemoveRequest.getDefaultInstance(); + return io.greptime.v1.flow.Server.RemoveRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -1764,10 +1764,10 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (bodyCase_ == 1) { - output.writeMessage(1, (io.greptime.v1.flow.Server.FlowCreateRequest) body_); + output.writeMessage(1, (io.greptime.v1.flow.Server.CreateRequest) body_); } if (bodyCase_ == 2) { - output.writeMessage(2, (io.greptime.v1.flow.Server.FlowRemoveRequest) body_); + output.writeMessage(2, (io.greptime.v1.flow.Server.RemoveRequest) body_); } unknownFields.writeTo(output); } @@ -1780,11 +1780,11 @@ public int getSerializedSize() { size = 0; if (bodyCase_ == 1) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (io.greptime.v1.flow.Server.FlowCreateRequest) body_); + .computeMessageSize(1, (io.greptime.v1.flow.Server.CreateRequest) body_); } if (bodyCase_ == 2) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (io.greptime.v1.flow.Server.FlowRemoveRequest) body_); + .computeMessageSize(2, (io.greptime.v1.flow.Server.RemoveRequest) body_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2119,9 +2119,9 @@ public Builder clearBody() { private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.flow.Server.FlowCreateRequest, io.greptime.v1.flow.Server.FlowCreateRequest.Builder, io.greptime.v1.flow.Server.FlowCreateRequestOrBuilder> createBuilder_; + io.greptime.v1.flow.Server.CreateRequest, io.greptime.v1.flow.Server.CreateRequest.Builder, io.greptime.v1.flow.Server.CreateRequestOrBuilder> createBuilder_; /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; * @return Whether the create field is set. */ @java.lang.Override @@ -2129,27 +2129,27 @@ public boolean hasCreate() { return bodyCase_ == 1; } /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; * @return The create. */ @java.lang.Override - public io.greptime.v1.flow.Server.FlowCreateRequest getCreate() { + public io.greptime.v1.flow.Server.CreateRequest getCreate() { if (createBuilder_ == null) { if (bodyCase_ == 1) { - return (io.greptime.v1.flow.Server.FlowCreateRequest) body_; + return (io.greptime.v1.flow.Server.CreateRequest) body_; } - return io.greptime.v1.flow.Server.FlowCreateRequest.getDefaultInstance(); + return io.greptime.v1.flow.Server.CreateRequest.getDefaultInstance(); } else { if (bodyCase_ == 1) { return createBuilder_.getMessage(); } - return io.greptime.v1.flow.Server.FlowCreateRequest.getDefaultInstance(); + return io.greptime.v1.flow.Server.CreateRequest.getDefaultInstance(); } } /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; */ - public Builder setCreate(io.greptime.v1.flow.Server.FlowCreateRequest value) { + public Builder setCreate(io.greptime.v1.flow.Server.CreateRequest value) { if (createBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2163,10 +2163,10 @@ public Builder setCreate(io.greptime.v1.flow.Server.FlowCreateRequest value) { return this; } /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; */ public Builder setCreate( - io.greptime.v1.flow.Server.FlowCreateRequest.Builder builderForValue) { + io.greptime.v1.flow.Server.CreateRequest.Builder builderForValue) { if (createBuilder_ == null) { body_ = builderForValue.build(); onChanged(); @@ -2177,13 +2177,13 @@ public Builder setCreate( return this; } /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; */ - public Builder mergeCreate(io.greptime.v1.flow.Server.FlowCreateRequest value) { + public Builder mergeCreate(io.greptime.v1.flow.Server.CreateRequest value) { if (createBuilder_ == null) { if (bodyCase_ == 1 && - body_ != io.greptime.v1.flow.Server.FlowCreateRequest.getDefaultInstance()) { - body_ = io.greptime.v1.flow.Server.FlowCreateRequest.newBuilder((io.greptime.v1.flow.Server.FlowCreateRequest) body_) + body_ != io.greptime.v1.flow.Server.CreateRequest.getDefaultInstance()) { + body_ = io.greptime.v1.flow.Server.CreateRequest.newBuilder((io.greptime.v1.flow.Server.CreateRequest) body_) .mergeFrom(value).buildPartial(); } else { body_ = value; @@ -2200,7 +2200,7 @@ public Builder mergeCreate(io.greptime.v1.flow.Server.FlowCreateRequest value) { return this; } /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; */ public Builder clearCreate() { if (createBuilder_ == null) { @@ -2219,38 +2219,38 @@ public Builder clearCreate() { return this; } /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; */ - public io.greptime.v1.flow.Server.FlowCreateRequest.Builder getCreateBuilder() { + public io.greptime.v1.flow.Server.CreateRequest.Builder getCreateBuilder() { return getCreateFieldBuilder().getBuilder(); } /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; */ @java.lang.Override - public io.greptime.v1.flow.Server.FlowCreateRequestOrBuilder getCreateOrBuilder() { + public io.greptime.v1.flow.Server.CreateRequestOrBuilder getCreateOrBuilder() { if ((bodyCase_ == 1) && (createBuilder_ != null)) { return createBuilder_.getMessageOrBuilder(); } else { if (bodyCase_ == 1) { - return (io.greptime.v1.flow.Server.FlowCreateRequest) body_; + return (io.greptime.v1.flow.Server.CreateRequest) body_; } - return io.greptime.v1.flow.Server.FlowCreateRequest.getDefaultInstance(); + return io.greptime.v1.flow.Server.CreateRequest.getDefaultInstance(); } } /** - * .greptime.v1.flow.FlowCreateRequest create = 1; + * .greptime.v1.flow.CreateRequest create = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.flow.Server.FlowCreateRequest, io.greptime.v1.flow.Server.FlowCreateRequest.Builder, io.greptime.v1.flow.Server.FlowCreateRequestOrBuilder> + io.greptime.v1.flow.Server.CreateRequest, io.greptime.v1.flow.Server.CreateRequest.Builder, io.greptime.v1.flow.Server.CreateRequestOrBuilder> getCreateFieldBuilder() { if (createBuilder_ == null) { if (!(bodyCase_ == 1)) { - body_ = io.greptime.v1.flow.Server.FlowCreateRequest.getDefaultInstance(); + body_ = io.greptime.v1.flow.Server.CreateRequest.getDefaultInstance(); } createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.flow.Server.FlowCreateRequest, io.greptime.v1.flow.Server.FlowCreateRequest.Builder, io.greptime.v1.flow.Server.FlowCreateRequestOrBuilder>( - (io.greptime.v1.flow.Server.FlowCreateRequest) body_, + io.greptime.v1.flow.Server.CreateRequest, io.greptime.v1.flow.Server.CreateRequest.Builder, io.greptime.v1.flow.Server.CreateRequestOrBuilder>( + (io.greptime.v1.flow.Server.CreateRequest) body_, getParentForChildren(), isClean()); body_ = null; @@ -2261,9 +2261,9 @@ public io.greptime.v1.flow.Server.FlowCreateRequestOrBuilder getCreateOrBuilder( } private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.flow.Server.FlowRemoveRequest, io.greptime.v1.flow.Server.FlowRemoveRequest.Builder, io.greptime.v1.flow.Server.FlowRemoveRequestOrBuilder> removeBuilder_; + io.greptime.v1.flow.Server.RemoveRequest, io.greptime.v1.flow.Server.RemoveRequest.Builder, io.greptime.v1.flow.Server.RemoveRequestOrBuilder> removeBuilder_; /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; * @return Whether the remove field is set. */ @java.lang.Override @@ -2271,27 +2271,27 @@ public boolean hasRemove() { return bodyCase_ == 2; } /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; * @return The remove. */ @java.lang.Override - public io.greptime.v1.flow.Server.FlowRemoveRequest getRemove() { + public io.greptime.v1.flow.Server.RemoveRequest getRemove() { if (removeBuilder_ == null) { if (bodyCase_ == 2) { - return (io.greptime.v1.flow.Server.FlowRemoveRequest) body_; + return (io.greptime.v1.flow.Server.RemoveRequest) body_; } - return io.greptime.v1.flow.Server.FlowRemoveRequest.getDefaultInstance(); + return io.greptime.v1.flow.Server.RemoveRequest.getDefaultInstance(); } else { if (bodyCase_ == 2) { return removeBuilder_.getMessage(); } - return io.greptime.v1.flow.Server.FlowRemoveRequest.getDefaultInstance(); + return io.greptime.v1.flow.Server.RemoveRequest.getDefaultInstance(); } } /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; */ - public Builder setRemove(io.greptime.v1.flow.Server.FlowRemoveRequest value) { + public Builder setRemove(io.greptime.v1.flow.Server.RemoveRequest value) { if (removeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2305,10 +2305,10 @@ public Builder setRemove(io.greptime.v1.flow.Server.FlowRemoveRequest value) { return this; } /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; */ public Builder setRemove( - io.greptime.v1.flow.Server.FlowRemoveRequest.Builder builderForValue) { + io.greptime.v1.flow.Server.RemoveRequest.Builder builderForValue) { if (removeBuilder_ == null) { body_ = builderForValue.build(); onChanged(); @@ -2319,13 +2319,13 @@ public Builder setRemove( return this; } /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; */ - public Builder mergeRemove(io.greptime.v1.flow.Server.FlowRemoveRequest value) { + public Builder mergeRemove(io.greptime.v1.flow.Server.RemoveRequest value) { if (removeBuilder_ == null) { if (bodyCase_ == 2 && - body_ != io.greptime.v1.flow.Server.FlowRemoveRequest.getDefaultInstance()) { - body_ = io.greptime.v1.flow.Server.FlowRemoveRequest.newBuilder((io.greptime.v1.flow.Server.FlowRemoveRequest) body_) + body_ != io.greptime.v1.flow.Server.RemoveRequest.getDefaultInstance()) { + body_ = io.greptime.v1.flow.Server.RemoveRequest.newBuilder((io.greptime.v1.flow.Server.RemoveRequest) body_) .mergeFrom(value).buildPartial(); } else { body_ = value; @@ -2342,7 +2342,7 @@ public Builder mergeRemove(io.greptime.v1.flow.Server.FlowRemoveRequest value) { return this; } /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; */ public Builder clearRemove() { if (removeBuilder_ == null) { @@ -2361,38 +2361,38 @@ public Builder clearRemove() { return this; } /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; */ - public io.greptime.v1.flow.Server.FlowRemoveRequest.Builder getRemoveBuilder() { + public io.greptime.v1.flow.Server.RemoveRequest.Builder getRemoveBuilder() { return getRemoveFieldBuilder().getBuilder(); } /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; */ @java.lang.Override - public io.greptime.v1.flow.Server.FlowRemoveRequestOrBuilder getRemoveOrBuilder() { + public io.greptime.v1.flow.Server.RemoveRequestOrBuilder getRemoveOrBuilder() { if ((bodyCase_ == 2) && (removeBuilder_ != null)) { return removeBuilder_.getMessageOrBuilder(); } else { if (bodyCase_ == 2) { - return (io.greptime.v1.flow.Server.FlowRemoveRequest) body_; + return (io.greptime.v1.flow.Server.RemoveRequest) body_; } - return io.greptime.v1.flow.Server.FlowRemoveRequest.getDefaultInstance(); + return io.greptime.v1.flow.Server.RemoveRequest.getDefaultInstance(); } } /** - * .greptime.v1.flow.FlowRemoveRequest remove = 2; + * .greptime.v1.flow.RemoveRequest remove = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.flow.Server.FlowRemoveRequest, io.greptime.v1.flow.Server.FlowRemoveRequest.Builder, io.greptime.v1.flow.Server.FlowRemoveRequestOrBuilder> + io.greptime.v1.flow.Server.RemoveRequest, io.greptime.v1.flow.Server.RemoveRequest.Builder, io.greptime.v1.flow.Server.RemoveRequestOrBuilder> getRemoveFieldBuilder() { if (removeBuilder_ == null) { if (!(bodyCase_ == 2)) { - body_ = io.greptime.v1.flow.Server.FlowRemoveRequest.getDefaultInstance(); + body_ = io.greptime.v1.flow.Server.RemoveRequest.getDefaultInstance(); } removeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.flow.Server.FlowRemoveRequest, io.greptime.v1.flow.Server.FlowRemoveRequest.Builder, io.greptime.v1.flow.Server.FlowRemoveRequestOrBuilder>( - (io.greptime.v1.flow.Server.FlowRemoveRequest) body_, + io.greptime.v1.flow.Server.RemoveRequest, io.greptime.v1.flow.Server.RemoveRequest.Builder, io.greptime.v1.flow.Server.RemoveRequestOrBuilder>( + (io.greptime.v1.flow.Server.RemoveRequest) body_, getParentForChildren(), isClean()); body_ = null; @@ -3957,8 +3957,8 @@ public io.greptime.v1.flow.Server.FlowResponse getDefaultInstanceForType() { } - public interface FlowCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.flow.FlowCreateRequest) + public interface CreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.flow.CreateRequest) com.google.protobuf.MessageOrBuilder { /** @@ -3977,68 +3977,92 @@ public interface FlowCreateRequestOrBuilder extends io.greptime.v1.flow.Server.TaskIdOrBuilder getTaskIdOrBuilder(); /** - * .greptime.v1.TableId output_table_id = 2; - * @return Whether the outputTableId field is set. + * repeated .greptime.v1.TableId source_table_ids = 2; */ - boolean hasOutputTableId(); + java.util.List + getSourceTableIdsList(); /** - * .greptime.v1.TableId output_table_id = 2; - * @return The outputTableId. + * repeated .greptime.v1.TableId source_table_ids = 2; */ - io.greptime.v1.Ddl.TableId getOutputTableId(); + io.greptime.v1.Ddl.TableId getSourceTableIds(int index); /** - * .greptime.v1.TableId output_table_id = 2; + * repeated .greptime.v1.TableId source_table_ids = 2; */ - io.greptime.v1.Ddl.TableIdOrBuilder getOutputTableIdOrBuilder(); + int getSourceTableIdsCount(); + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + java.util.List + getSourceTableIdsOrBuilderList(); + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + io.greptime.v1.Ddl.TableIdOrBuilder getSourceTableIdsOrBuilder( + int index); + + /** + * .greptime.v1.TableId sink_table_id = 3; + * @return Whether the sinkTableId field is set. + */ + boolean hasSinkTableId(); + /** + * .greptime.v1.TableId sink_table_id = 3; + * @return The sinkTableId. + */ + io.greptime.v1.Ddl.TableId getSinkTableId(); + /** + * .greptime.v1.TableId sink_table_id = 3; + */ + io.greptime.v1.Ddl.TableIdOrBuilder getSinkTableIdOrBuilder(); /** - * bool create_if_not_exists = 3; + * bool create_if_not_exists = 4; * @return The createIfNotExists. */ boolean getCreateIfNotExists(); /** - * string expire_when = 4; + * string expire_when = 5; * @return The expireWhen. */ java.lang.String getExpireWhen(); /** - * string expire_when = 4; + * string expire_when = 5; * @return The bytes for expireWhen. */ com.google.protobuf.ByteString getExpireWhenBytes(); /** - * string comment = 5; + * string comment = 6; * @return The comment. */ java.lang.String getComment(); /** - * string comment = 5; + * string comment = 6; * @return The bytes for comment. */ com.google.protobuf.ByteString getCommentBytes(); /** - * string sql = 6; + * string sql = 7; * @return The sql. */ java.lang.String getSql(); /** - * string sql = 6; + * string sql = 7; * @return The bytes for sql. */ com.google.protobuf.ByteString getSqlBytes(); /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ int getTaskOptionsCount(); /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ boolean containsTaskOptions( java.lang.String key); @@ -4049,12 +4073,12 @@ boolean containsTaskOptions( java.util.Map getTaskOptions(); /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ java.util.Map getTaskOptionsMap(); /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ /* nullable */ @@ -4063,7 +4087,7 @@ java.lang.String getTaskOptionsOrDefault( /* nullable */ java.lang.String defaultValue); /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ java.lang.String getTaskOptionsOrThrow( @@ -4074,18 +4098,19 @@ java.lang.String getTaskOptionsOrThrow( * very similar to `ddl.CreateTaskExpr` just replace `task_name` with `task_id` * * - * Protobuf type {@code greptime.v1.flow.FlowCreateRequest} + * Protobuf type {@code greptime.v1.flow.CreateRequest} */ - public static final class FlowCreateRequest extends + public static final class CreateRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.flow.FlowCreateRequest) - FlowCreateRequestOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.flow.CreateRequest) + CreateRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use FlowCreateRequest.newBuilder() to construct. - private FlowCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use CreateRequest.newBuilder() to construct. + private CreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FlowCreateRequest() { + private CreateRequest() { + sourceTableIds_ = java.util.Collections.emptyList(); expireWhen_ = ""; comment_ = ""; sql_ = ""; @@ -4095,7 +4120,7 @@ private FlowCreateRequest() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new FlowCreateRequest(); + return new CreateRequest(); } @java.lang.Override @@ -4103,7 +4128,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private FlowCreateRequest( + private CreateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4136,46 +4161,55 @@ private FlowCreateRequest( break; } case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sourceTableIds_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sourceTableIds_.add( + input.readMessage(io.greptime.v1.Ddl.TableId.parser(), extensionRegistry)); + break; + } + case 26: { io.greptime.v1.Ddl.TableId.Builder subBuilder = null; - if (outputTableId_ != null) { - subBuilder = outputTableId_.toBuilder(); + if (sinkTableId_ != null) { + subBuilder = sinkTableId_.toBuilder(); } - outputTableId_ = input.readMessage(io.greptime.v1.Ddl.TableId.parser(), extensionRegistry); + sinkTableId_ = input.readMessage(io.greptime.v1.Ddl.TableId.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(outputTableId_); - outputTableId_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(sinkTableId_); + sinkTableId_ = subBuilder.buildPartial(); } break; } - case 24: { + case 32: { createIfNotExists_ = input.readBool(); break; } - case 34: { + case 42: { java.lang.String s = input.readStringRequireUtf8(); expireWhen_ = s; break; } - case 42: { + case 50: { java.lang.String s = input.readStringRequireUtf8(); comment_ = s; break; } - case 50: { + case 58: { java.lang.String s = input.readStringRequireUtf8(); sql_ = s; break; } - case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + case 66: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { taskOptions_ = com.google.protobuf.MapField.newMapField( TaskOptionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry taskOptions__ = input.readMessage( @@ -4201,13 +4235,16 @@ private FlowCreateRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + sourceTableIds_ = java.util.Collections.unmodifiableList(sourceTableIds_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowCreateRequest_descriptor; + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_CreateRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -4215,7 +4252,7 @@ private FlowCreateRequest( protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { - case 7: + case 8: return internalGetTaskOptions(); default: throw new RuntimeException( @@ -4225,9 +4262,9 @@ protected com.google.protobuf.MapField internalGetMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowCreateRequest_fieldAccessorTable + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_CreateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.flow.Server.FlowCreateRequest.class, io.greptime.v1.flow.Server.FlowCreateRequest.Builder.class); + io.greptime.v1.flow.Server.CreateRequest.class, io.greptime.v1.flow.Server.CreateRequest.Builder.class); } public static final int TASK_ID_FIELD_NUMBER = 1; @@ -4256,36 +4293,76 @@ public io.greptime.v1.flow.Server.TaskIdOrBuilder getTaskIdOrBuilder() { return getTaskId(); } - public static final int OUTPUT_TABLE_ID_FIELD_NUMBER = 2; - private io.greptime.v1.Ddl.TableId outputTableId_; + public static final int SOURCE_TABLE_IDS_FIELD_NUMBER = 2; + private java.util.List sourceTableIds_; + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + @java.lang.Override + public java.util.List getSourceTableIdsList() { + return sourceTableIds_; + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + @java.lang.Override + public java.util.List + getSourceTableIdsOrBuilderList() { + return sourceTableIds_; + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + @java.lang.Override + public int getSourceTableIdsCount() { + return sourceTableIds_.size(); + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + @java.lang.Override + public io.greptime.v1.Ddl.TableId getSourceTableIds(int index) { + return sourceTableIds_.get(index); + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + @java.lang.Override + public io.greptime.v1.Ddl.TableIdOrBuilder getSourceTableIdsOrBuilder( + int index) { + return sourceTableIds_.get(index); + } + + public static final int SINK_TABLE_ID_FIELD_NUMBER = 3; + private io.greptime.v1.Ddl.TableId sinkTableId_; /** - * .greptime.v1.TableId output_table_id = 2; - * @return Whether the outputTableId field is set. + * .greptime.v1.TableId sink_table_id = 3; + * @return Whether the sinkTableId field is set. */ @java.lang.Override - public boolean hasOutputTableId() { - return outputTableId_ != null; + public boolean hasSinkTableId() { + return sinkTableId_ != null; } /** - * .greptime.v1.TableId output_table_id = 2; - * @return The outputTableId. + * .greptime.v1.TableId sink_table_id = 3; + * @return The sinkTableId. */ @java.lang.Override - public io.greptime.v1.Ddl.TableId getOutputTableId() { - return outputTableId_ == null ? io.greptime.v1.Ddl.TableId.getDefaultInstance() : outputTableId_; + public io.greptime.v1.Ddl.TableId getSinkTableId() { + return sinkTableId_ == null ? io.greptime.v1.Ddl.TableId.getDefaultInstance() : sinkTableId_; } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId sink_table_id = 3; */ @java.lang.Override - public io.greptime.v1.Ddl.TableIdOrBuilder getOutputTableIdOrBuilder() { - return getOutputTableId(); + public io.greptime.v1.Ddl.TableIdOrBuilder getSinkTableIdOrBuilder() { + return getSinkTableId(); } - public static final int CREATE_IF_NOT_EXISTS_FIELD_NUMBER = 3; + public static final int CREATE_IF_NOT_EXISTS_FIELD_NUMBER = 4; private boolean createIfNotExists_; /** - * bool create_if_not_exists = 3; + * bool create_if_not_exists = 4; * @return The createIfNotExists. */ @java.lang.Override @@ -4293,10 +4370,10 @@ public boolean getCreateIfNotExists() { return createIfNotExists_; } - public static final int EXPIRE_WHEN_FIELD_NUMBER = 4; + public static final int EXPIRE_WHEN_FIELD_NUMBER = 5; private volatile java.lang.Object expireWhen_; /** - * string expire_when = 4; + * string expire_when = 5; * @return The expireWhen. */ @java.lang.Override @@ -4313,7 +4390,7 @@ public java.lang.String getExpireWhen() { } } /** - * string expire_when = 4; + * string expire_when = 5; * @return The bytes for expireWhen. */ @java.lang.Override @@ -4331,10 +4408,10 @@ public java.lang.String getExpireWhen() { } } - public static final int COMMENT_FIELD_NUMBER = 5; + public static final int COMMENT_FIELD_NUMBER = 6; private volatile java.lang.Object comment_; /** - * string comment = 5; + * string comment = 6; * @return The comment. */ @java.lang.Override @@ -4351,7 +4428,7 @@ public java.lang.String getComment() { } } /** - * string comment = 5; + * string comment = 6; * @return The bytes for comment. */ @java.lang.Override @@ -4369,10 +4446,10 @@ public java.lang.String getComment() { } } - public static final int SQL_FIELD_NUMBER = 6; + public static final int SQL_FIELD_NUMBER = 7; private volatile java.lang.Object sql_; /** - * string sql = 6; + * string sql = 7; * @return The sql. */ @java.lang.Override @@ -4389,7 +4466,7 @@ public java.lang.String getSql() { } } /** - * string sql = 6; + * string sql = 7; * @return The bytes for sql. */ @java.lang.Override @@ -4407,13 +4484,13 @@ public java.lang.String getSql() { } } - public static final int TASK_OPTIONS_FIELD_NUMBER = 7; + public static final int TASK_OPTIONS_FIELD_NUMBER = 8; private static final class TaskOptionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowCreateRequest_TaskOptionsEntry_descriptor, + io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_CreateRequest_TaskOptionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, @@ -4434,7 +4511,7 @@ public int getTaskOptionsCount() { return internalGetTaskOptions().getMap().size(); } /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ @java.lang.Override @@ -4452,7 +4529,7 @@ public java.util.Map getTaskOptions() { return getTaskOptionsMap(); } /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ @java.lang.Override @@ -4460,7 +4537,7 @@ public java.util.Map getTaskOptionsMap() { return internalGetTaskOptions().getMap(); } /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ @java.lang.Override @@ -4473,7 +4550,7 @@ public java.lang.String getTaskOptionsOrDefault( return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ @java.lang.Override @@ -4505,27 +4582,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (taskId_ != null) { output.writeMessage(1, getTaskId()); } - if (outputTableId_ != null) { - output.writeMessage(2, getOutputTableId()); + for (int i = 0; i < sourceTableIds_.size(); i++) { + output.writeMessage(2, sourceTableIds_.get(i)); + } + if (sinkTableId_ != null) { + output.writeMessage(3, getSinkTableId()); } if (createIfNotExists_ != false) { - output.writeBool(3, createIfNotExists_); + output.writeBool(4, createIfNotExists_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireWhen_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, expireWhen_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, expireWhen_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, comment_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, comment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sql_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, sql_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetTaskOptions(), TaskOptionsDefaultEntryHolder.defaultEntry, - 7); + 8); unknownFields.writeTo(output); } @@ -4539,22 +4619,26 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTaskId()); } - if (outputTableId_ != null) { + for (int i = 0; i < sourceTableIds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, sourceTableIds_.get(i)); + } + if (sinkTableId_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputTableId()); + .computeMessageSize(3, getSinkTableId()); } if (createIfNotExists_ != false) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, createIfNotExists_); + .computeBoolSize(4, createIfNotExists_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireWhen_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, expireWhen_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, expireWhen_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, comment_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, comment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sql_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, sql_); } for (java.util.Map.Entry entry : internalGetTaskOptions().getMap().entrySet()) { @@ -4564,7 +4648,7 @@ public int getSerializedSize() { .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, taskOptions__); + .computeMessageSize(8, taskOptions__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4576,20 +4660,22 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.flow.Server.FlowCreateRequest)) { + if (!(obj instanceof io.greptime.v1.flow.Server.CreateRequest)) { return super.equals(obj); } - io.greptime.v1.flow.Server.FlowCreateRequest other = (io.greptime.v1.flow.Server.FlowCreateRequest) obj; + io.greptime.v1.flow.Server.CreateRequest other = (io.greptime.v1.flow.Server.CreateRequest) obj; if (hasTaskId() != other.hasTaskId()) return false; if (hasTaskId()) { if (!getTaskId() .equals(other.getTaskId())) return false; } - if (hasOutputTableId() != other.hasOutputTableId()) return false; - if (hasOutputTableId()) { - if (!getOutputTableId() - .equals(other.getOutputTableId())) return false; + if (!getSourceTableIdsList() + .equals(other.getSourceTableIdsList())) return false; + if (hasSinkTableId() != other.hasSinkTableId()) return false; + if (hasSinkTableId()) { + if (!getSinkTableId() + .equals(other.getSinkTableId())) return false; } if (getCreateIfNotExists() != other.getCreateIfNotExists()) return false; @@ -4616,9 +4702,13 @@ public int hashCode() { hash = (37 * hash) + TASK_ID_FIELD_NUMBER; hash = (53 * hash) + getTaskId().hashCode(); } - if (hasOutputTableId()) { - hash = (37 * hash) + OUTPUT_TABLE_ID_FIELD_NUMBER; - hash = (53 * hash) + getOutputTableId().hashCode(); + if (getSourceTableIdsCount() > 0) { + hash = (37 * hash) + SOURCE_TABLE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getSourceTableIdsList().hashCode(); + } + if (hasSinkTableId()) { + hash = (37 * hash) + SINK_TABLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getSinkTableId().hashCode(); } hash = (37 * hash) + CREATE_IF_NOT_EXISTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( @@ -4638,69 +4728,69 @@ public int hashCode() { return hash; } - public static io.greptime.v1.flow.Server.FlowCreateRequest parseFrom( + public static io.greptime.v1.flow.Server.CreateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.flow.Server.FlowCreateRequest parseFrom( + public static io.greptime.v1.flow.Server.CreateRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.flow.Server.FlowCreateRequest parseFrom( + public static io.greptime.v1.flow.Server.CreateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.flow.Server.FlowCreateRequest parseFrom( + public static io.greptime.v1.flow.Server.CreateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.flow.Server.FlowCreateRequest parseFrom(byte[] data) + public static io.greptime.v1.flow.Server.CreateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.flow.Server.FlowCreateRequest parseFrom( + public static io.greptime.v1.flow.Server.CreateRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.flow.Server.FlowCreateRequest parseFrom(java.io.InputStream input) + public static io.greptime.v1.flow.Server.CreateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.flow.Server.FlowCreateRequest parseFrom( + public static io.greptime.v1.flow.Server.CreateRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.flow.Server.FlowCreateRequest parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.flow.Server.CreateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.flow.Server.FlowCreateRequest parseDelimitedFrom( + public static io.greptime.v1.flow.Server.CreateRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.flow.Server.FlowCreateRequest parseFrom( + public static io.greptime.v1.flow.Server.CreateRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.flow.Server.FlowCreateRequest parseFrom( + public static io.greptime.v1.flow.Server.CreateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4713,7 +4803,7 @@ public static io.greptime.v1.flow.Server.FlowCreateRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.flow.Server.FlowCreateRequest prototype) { + public static Builder newBuilder(io.greptime.v1.flow.Server.CreateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4733,22 +4823,22 @@ protected Builder newBuilderForType( * very similar to `ddl.CreateTaskExpr` just replace `task_name` with `task_id` * * - * Protobuf type {@code greptime.v1.flow.FlowCreateRequest} + * Protobuf type {@code greptime.v1.flow.CreateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.flow.FlowCreateRequest) - io.greptime.v1.flow.Server.FlowCreateRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.flow.CreateRequest) + io.greptime.v1.flow.Server.CreateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowCreateRequest_descriptor; + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_CreateRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { - case 7: + case 8: return internalGetTaskOptions(); default: throw new RuntimeException( @@ -4759,7 +4849,7 @@ protected com.google.protobuf.MapField internalGetMapField( protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { - case 7: + case 8: return internalGetMutableTaskOptions(); default: throw new RuntimeException( @@ -4769,12 +4859,12 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowCreateRequest_fieldAccessorTable + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_CreateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.flow.Server.FlowCreateRequest.class, io.greptime.v1.flow.Server.FlowCreateRequest.Builder.class); + io.greptime.v1.flow.Server.CreateRequest.class, io.greptime.v1.flow.Server.CreateRequest.Builder.class); } - // Construct using io.greptime.v1.flow.Server.FlowCreateRequest.newBuilder() + // Construct using io.greptime.v1.flow.Server.CreateRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -4787,6 +4877,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getSourceTableIdsFieldBuilder(); } } @java.lang.Override @@ -4798,11 +4889,17 @@ public Builder clear() { taskId_ = null; taskIdBuilder_ = null; } - if (outputTableIdBuilder_ == null) { - outputTableId_ = null; + if (sourceTableIdsBuilder_ == null) { + sourceTableIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + sourceTableIdsBuilder_.clear(); + } + if (sinkTableIdBuilder_ == null) { + sinkTableId_ = null; } else { - outputTableId_ = null; - outputTableIdBuilder_ = null; + sinkTableId_ = null; + sinkTableIdBuilder_ = null; } createIfNotExists_ = false; @@ -4819,17 +4916,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowCreateRequest_descriptor; + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_CreateRequest_descriptor; } @java.lang.Override - public io.greptime.v1.flow.Server.FlowCreateRequest getDefaultInstanceForType() { - return io.greptime.v1.flow.Server.FlowCreateRequest.getDefaultInstance(); + public io.greptime.v1.flow.Server.CreateRequest getDefaultInstanceForType() { + return io.greptime.v1.flow.Server.CreateRequest.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.flow.Server.FlowCreateRequest build() { - io.greptime.v1.flow.Server.FlowCreateRequest result = buildPartial(); + public io.greptime.v1.flow.Server.CreateRequest build() { + io.greptime.v1.flow.Server.CreateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4837,18 +4934,27 @@ public io.greptime.v1.flow.Server.FlowCreateRequest build() { } @java.lang.Override - public io.greptime.v1.flow.Server.FlowCreateRequest buildPartial() { - io.greptime.v1.flow.Server.FlowCreateRequest result = new io.greptime.v1.flow.Server.FlowCreateRequest(this); + public io.greptime.v1.flow.Server.CreateRequest buildPartial() { + io.greptime.v1.flow.Server.CreateRequest result = new io.greptime.v1.flow.Server.CreateRequest(this); int from_bitField0_ = bitField0_; if (taskIdBuilder_ == null) { result.taskId_ = taskId_; } else { result.taskId_ = taskIdBuilder_.build(); } - if (outputTableIdBuilder_ == null) { - result.outputTableId_ = outputTableId_; + if (sourceTableIdsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sourceTableIds_ = java.util.Collections.unmodifiableList(sourceTableIds_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sourceTableIds_ = sourceTableIds_; } else { - result.outputTableId_ = outputTableIdBuilder_.build(); + result.sourceTableIds_ = sourceTableIdsBuilder_.build(); + } + if (sinkTableIdBuilder_ == null) { + result.sinkTableId_ = sinkTableId_; + } else { + result.sinkTableId_ = sinkTableIdBuilder_.build(); } result.createIfNotExists_ = createIfNotExists_; result.expireWhen_ = expireWhen_; @@ -4894,21 +5000,47 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.flow.Server.FlowCreateRequest) { - return mergeFrom((io.greptime.v1.flow.Server.FlowCreateRequest)other); + if (other instanceof io.greptime.v1.flow.Server.CreateRequest) { + return mergeFrom((io.greptime.v1.flow.Server.CreateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.flow.Server.FlowCreateRequest other) { - if (other == io.greptime.v1.flow.Server.FlowCreateRequest.getDefaultInstance()) return this; + public Builder mergeFrom(io.greptime.v1.flow.Server.CreateRequest other) { + if (other == io.greptime.v1.flow.Server.CreateRequest.getDefaultInstance()) return this; if (other.hasTaskId()) { mergeTaskId(other.getTaskId()); } - if (other.hasOutputTableId()) { - mergeOutputTableId(other.getOutputTableId()); + if (sourceTableIdsBuilder_ == null) { + if (!other.sourceTableIds_.isEmpty()) { + if (sourceTableIds_.isEmpty()) { + sourceTableIds_ = other.sourceTableIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSourceTableIdsIsMutable(); + sourceTableIds_.addAll(other.sourceTableIds_); + } + onChanged(); + } + } else { + if (!other.sourceTableIds_.isEmpty()) { + if (sourceTableIdsBuilder_.isEmpty()) { + sourceTableIdsBuilder_.dispose(); + sourceTableIdsBuilder_ = null; + sourceTableIds_ = other.sourceTableIds_; + bitField0_ = (bitField0_ & ~0x00000001); + sourceTableIdsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSourceTableIdsFieldBuilder() : null; + } else { + sourceTableIdsBuilder_.addAllMessages(other.sourceTableIds_); + } + } + } + if (other.hasSinkTableId()) { + mergeSinkTableId(other.getSinkTableId()); } if (other.getCreateIfNotExists() != false) { setCreateIfNotExists(other.getCreateIfNotExists()); @@ -4942,11 +5074,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.flow.Server.FlowCreateRequest parsedMessage = null; + io.greptime.v1.flow.Server.CreateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.flow.Server.FlowCreateRequest) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.flow.Server.CreateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5076,128 +5208,368 @@ public io.greptime.v1.flow.Server.TaskIdOrBuilder getTaskIdOrBuilder() { return taskIdBuilder_; } - private io.greptime.v1.Ddl.TableId outputTableId_; + private java.util.List sourceTableIds_ = + java.util.Collections.emptyList(); + private void ensureSourceTableIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sourceTableIds_ = new java.util.ArrayList(sourceTableIds_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.TableId, io.greptime.v1.Ddl.TableId.Builder, io.greptime.v1.Ddl.TableIdOrBuilder> sourceTableIdsBuilder_; + + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public java.util.List getSourceTableIdsList() { + if (sourceTableIdsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sourceTableIds_); + } else { + return sourceTableIdsBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public int getSourceTableIdsCount() { + if (sourceTableIdsBuilder_ == null) { + return sourceTableIds_.size(); + } else { + return sourceTableIdsBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public io.greptime.v1.Ddl.TableId getSourceTableIds(int index) { + if (sourceTableIdsBuilder_ == null) { + return sourceTableIds_.get(index); + } else { + return sourceTableIdsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public Builder setSourceTableIds( + int index, io.greptime.v1.Ddl.TableId value) { + if (sourceTableIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceTableIdsIsMutable(); + sourceTableIds_.set(index, value); + onChanged(); + } else { + sourceTableIdsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public Builder setSourceTableIds( + int index, io.greptime.v1.Ddl.TableId.Builder builderForValue) { + if (sourceTableIdsBuilder_ == null) { + ensureSourceTableIdsIsMutable(); + sourceTableIds_.set(index, builderForValue.build()); + onChanged(); + } else { + sourceTableIdsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public Builder addSourceTableIds(io.greptime.v1.Ddl.TableId value) { + if (sourceTableIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceTableIdsIsMutable(); + sourceTableIds_.add(value); + onChanged(); + } else { + sourceTableIdsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public Builder addSourceTableIds( + int index, io.greptime.v1.Ddl.TableId value) { + if (sourceTableIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceTableIdsIsMutable(); + sourceTableIds_.add(index, value); + onChanged(); + } else { + sourceTableIdsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public Builder addSourceTableIds( + io.greptime.v1.Ddl.TableId.Builder builderForValue) { + if (sourceTableIdsBuilder_ == null) { + ensureSourceTableIdsIsMutable(); + sourceTableIds_.add(builderForValue.build()); + onChanged(); + } else { + sourceTableIdsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public Builder addSourceTableIds( + int index, io.greptime.v1.Ddl.TableId.Builder builderForValue) { + if (sourceTableIdsBuilder_ == null) { + ensureSourceTableIdsIsMutable(); + sourceTableIds_.add(index, builderForValue.build()); + onChanged(); + } else { + sourceTableIdsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public Builder addAllSourceTableIds( + java.lang.Iterable values) { + if (sourceTableIdsBuilder_ == null) { + ensureSourceTableIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sourceTableIds_); + onChanged(); + } else { + sourceTableIdsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public Builder clearSourceTableIds() { + if (sourceTableIdsBuilder_ == null) { + sourceTableIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sourceTableIdsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public Builder removeSourceTableIds(int index) { + if (sourceTableIdsBuilder_ == null) { + ensureSourceTableIdsIsMutable(); + sourceTableIds_.remove(index); + onChanged(); + } else { + sourceTableIdsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public io.greptime.v1.Ddl.TableId.Builder getSourceTableIdsBuilder( + int index) { + return getSourceTableIdsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public io.greptime.v1.Ddl.TableIdOrBuilder getSourceTableIdsOrBuilder( + int index) { + if (sourceTableIdsBuilder_ == null) { + return sourceTableIds_.get(index); } else { + return sourceTableIdsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public java.util.List + getSourceTableIdsOrBuilderList() { + if (sourceTableIdsBuilder_ != null) { + return sourceTableIdsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sourceTableIds_); + } + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public io.greptime.v1.Ddl.TableId.Builder addSourceTableIdsBuilder() { + return getSourceTableIdsFieldBuilder().addBuilder( + io.greptime.v1.Ddl.TableId.getDefaultInstance()); + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public io.greptime.v1.Ddl.TableId.Builder addSourceTableIdsBuilder( + int index) { + return getSourceTableIdsFieldBuilder().addBuilder( + index, io.greptime.v1.Ddl.TableId.getDefaultInstance()); + } + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + public java.util.List + getSourceTableIdsBuilderList() { + return getSourceTableIdsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.TableId, io.greptime.v1.Ddl.TableId.Builder, io.greptime.v1.Ddl.TableIdOrBuilder> + getSourceTableIdsFieldBuilder() { + if (sourceTableIdsBuilder_ == null) { + sourceTableIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.TableId, io.greptime.v1.Ddl.TableId.Builder, io.greptime.v1.Ddl.TableIdOrBuilder>( + sourceTableIds_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sourceTableIds_ = null; + } + return sourceTableIdsBuilder_; + } + + private io.greptime.v1.Ddl.TableId sinkTableId_; private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.TableId, io.greptime.v1.Ddl.TableId.Builder, io.greptime.v1.Ddl.TableIdOrBuilder> outputTableIdBuilder_; + io.greptime.v1.Ddl.TableId, io.greptime.v1.Ddl.TableId.Builder, io.greptime.v1.Ddl.TableIdOrBuilder> sinkTableIdBuilder_; /** - * .greptime.v1.TableId output_table_id = 2; - * @return Whether the outputTableId field is set. + * .greptime.v1.TableId sink_table_id = 3; + * @return Whether the sinkTableId field is set. */ - public boolean hasOutputTableId() { - return outputTableIdBuilder_ != null || outputTableId_ != null; + public boolean hasSinkTableId() { + return sinkTableIdBuilder_ != null || sinkTableId_ != null; } /** - * .greptime.v1.TableId output_table_id = 2; - * @return The outputTableId. + * .greptime.v1.TableId sink_table_id = 3; + * @return The sinkTableId. */ - public io.greptime.v1.Ddl.TableId getOutputTableId() { - if (outputTableIdBuilder_ == null) { - return outputTableId_ == null ? io.greptime.v1.Ddl.TableId.getDefaultInstance() : outputTableId_; + public io.greptime.v1.Ddl.TableId getSinkTableId() { + if (sinkTableIdBuilder_ == null) { + return sinkTableId_ == null ? io.greptime.v1.Ddl.TableId.getDefaultInstance() : sinkTableId_; } else { - return outputTableIdBuilder_.getMessage(); + return sinkTableIdBuilder_.getMessage(); } } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId sink_table_id = 3; */ - public Builder setOutputTableId(io.greptime.v1.Ddl.TableId value) { - if (outputTableIdBuilder_ == null) { + public Builder setSinkTableId(io.greptime.v1.Ddl.TableId value) { + if (sinkTableIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - outputTableId_ = value; + sinkTableId_ = value; onChanged(); } else { - outputTableIdBuilder_.setMessage(value); + sinkTableIdBuilder_.setMessage(value); } return this; } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId sink_table_id = 3; */ - public Builder setOutputTableId( + public Builder setSinkTableId( io.greptime.v1.Ddl.TableId.Builder builderForValue) { - if (outputTableIdBuilder_ == null) { - outputTableId_ = builderForValue.build(); + if (sinkTableIdBuilder_ == null) { + sinkTableId_ = builderForValue.build(); onChanged(); } else { - outputTableIdBuilder_.setMessage(builderForValue.build()); + sinkTableIdBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId sink_table_id = 3; */ - public Builder mergeOutputTableId(io.greptime.v1.Ddl.TableId value) { - if (outputTableIdBuilder_ == null) { - if (outputTableId_ != null) { - outputTableId_ = - io.greptime.v1.Ddl.TableId.newBuilder(outputTableId_).mergeFrom(value).buildPartial(); + public Builder mergeSinkTableId(io.greptime.v1.Ddl.TableId value) { + if (sinkTableIdBuilder_ == null) { + if (sinkTableId_ != null) { + sinkTableId_ = + io.greptime.v1.Ddl.TableId.newBuilder(sinkTableId_).mergeFrom(value).buildPartial(); } else { - outputTableId_ = value; + sinkTableId_ = value; } onChanged(); } else { - outputTableIdBuilder_.mergeFrom(value); + sinkTableIdBuilder_.mergeFrom(value); } return this; } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId sink_table_id = 3; */ - public Builder clearOutputTableId() { - if (outputTableIdBuilder_ == null) { - outputTableId_ = null; + public Builder clearSinkTableId() { + if (sinkTableIdBuilder_ == null) { + sinkTableId_ = null; onChanged(); } else { - outputTableId_ = null; - outputTableIdBuilder_ = null; + sinkTableId_ = null; + sinkTableIdBuilder_ = null; } return this; } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId sink_table_id = 3; */ - public io.greptime.v1.Ddl.TableId.Builder getOutputTableIdBuilder() { + public io.greptime.v1.Ddl.TableId.Builder getSinkTableIdBuilder() { onChanged(); - return getOutputTableIdFieldBuilder().getBuilder(); + return getSinkTableIdFieldBuilder().getBuilder(); } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId sink_table_id = 3; */ - public io.greptime.v1.Ddl.TableIdOrBuilder getOutputTableIdOrBuilder() { - if (outputTableIdBuilder_ != null) { - return outputTableIdBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Ddl.TableIdOrBuilder getSinkTableIdOrBuilder() { + if (sinkTableIdBuilder_ != null) { + return sinkTableIdBuilder_.getMessageOrBuilder(); } else { - return outputTableId_ == null ? - io.greptime.v1.Ddl.TableId.getDefaultInstance() : outputTableId_; + return sinkTableId_ == null ? + io.greptime.v1.Ddl.TableId.getDefaultInstance() : sinkTableId_; } } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId sink_table_id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.greptime.v1.Ddl.TableId, io.greptime.v1.Ddl.TableId.Builder, io.greptime.v1.Ddl.TableIdOrBuilder> - getOutputTableIdFieldBuilder() { - if (outputTableIdBuilder_ == null) { - outputTableIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getSinkTableIdFieldBuilder() { + if (sinkTableIdBuilder_ == null) { + sinkTableIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.greptime.v1.Ddl.TableId, io.greptime.v1.Ddl.TableId.Builder, io.greptime.v1.Ddl.TableIdOrBuilder>( - getOutputTableId(), + getSinkTableId(), getParentForChildren(), isClean()); - outputTableId_ = null; + sinkTableId_ = null; } - return outputTableIdBuilder_; + return sinkTableIdBuilder_; } private boolean createIfNotExists_ ; /** - * bool create_if_not_exists = 3; + * bool create_if_not_exists = 4; * @return The createIfNotExists. */ @java.lang.Override @@ -5205,7 +5577,7 @@ public boolean getCreateIfNotExists() { return createIfNotExists_; } /** - * bool create_if_not_exists = 3; + * bool create_if_not_exists = 4; * @param value The createIfNotExists to set. * @return This builder for chaining. */ @@ -5216,7 +5588,7 @@ public Builder setCreateIfNotExists(boolean value) { return this; } /** - * bool create_if_not_exists = 3; + * bool create_if_not_exists = 4; * @return This builder for chaining. */ public Builder clearCreateIfNotExists() { @@ -5228,7 +5600,7 @@ public Builder clearCreateIfNotExists() { private java.lang.Object expireWhen_ = ""; /** - * string expire_when = 4; + * string expire_when = 5; * @return The expireWhen. */ public java.lang.String getExpireWhen() { @@ -5244,7 +5616,7 @@ public java.lang.String getExpireWhen() { } } /** - * string expire_when = 4; + * string expire_when = 5; * @return The bytes for expireWhen. */ public com.google.protobuf.ByteString @@ -5261,7 +5633,7 @@ public java.lang.String getExpireWhen() { } } /** - * string expire_when = 4; + * string expire_when = 5; * @param value The expireWhen to set. * @return This builder for chaining. */ @@ -5276,7 +5648,7 @@ public Builder setExpireWhen( return this; } /** - * string expire_when = 4; + * string expire_when = 5; * @return This builder for chaining. */ public Builder clearExpireWhen() { @@ -5286,7 +5658,7 @@ public Builder clearExpireWhen() { return this; } /** - * string expire_when = 4; + * string expire_when = 5; * @param value The bytes for expireWhen to set. * @return This builder for chaining. */ @@ -5304,7 +5676,7 @@ public Builder setExpireWhenBytes( private java.lang.Object comment_ = ""; /** - * string comment = 5; + * string comment = 6; * @return The comment. */ public java.lang.String getComment() { @@ -5320,7 +5692,7 @@ public java.lang.String getComment() { } } /** - * string comment = 5; + * string comment = 6; * @return The bytes for comment. */ public com.google.protobuf.ByteString @@ -5337,7 +5709,7 @@ public java.lang.String getComment() { } } /** - * string comment = 5; + * string comment = 6; * @param value The comment to set. * @return This builder for chaining. */ @@ -5352,7 +5724,7 @@ public Builder setComment( return this; } /** - * string comment = 5; + * string comment = 6; * @return This builder for chaining. */ public Builder clearComment() { @@ -5362,7 +5734,7 @@ public Builder clearComment() { return this; } /** - * string comment = 5; + * string comment = 6; * @param value The bytes for comment to set. * @return This builder for chaining. */ @@ -5380,7 +5752,7 @@ public Builder setCommentBytes( private java.lang.Object sql_ = ""; /** - * string sql = 6; + * string sql = 7; * @return The sql. */ public java.lang.String getSql() { @@ -5396,7 +5768,7 @@ public java.lang.String getSql() { } } /** - * string sql = 6; + * string sql = 7; * @return The bytes for sql. */ public com.google.protobuf.ByteString @@ -5413,7 +5785,7 @@ public java.lang.String getSql() { } } /** - * string sql = 6; + * string sql = 7; * @param value The sql to set. * @return This builder for chaining. */ @@ -5428,7 +5800,7 @@ public Builder setSql( return this; } /** - * string sql = 6; + * string sql = 7; * @return This builder for chaining. */ public Builder clearSql() { @@ -5438,7 +5810,7 @@ public Builder clearSql() { return this; } /** - * string sql = 6; + * string sql = 7; * @param value The bytes for sql to set. * @return This builder for chaining. */ @@ -5481,7 +5853,7 @@ public int getTaskOptionsCount() { return internalGetTaskOptions().getMap().size(); } /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ @java.lang.Override @@ -5499,7 +5871,7 @@ public java.util.Map getTaskOptions() { return getTaskOptionsMap(); } /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ @java.lang.Override @@ -5507,7 +5879,7 @@ public java.util.Map getTaskOptionsMap() { return internalGetTaskOptions().getMap(); } /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ @java.lang.Override @@ -5520,7 +5892,7 @@ public java.lang.String getTaskOptionsOrDefault( return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ @java.lang.Override @@ -5541,7 +5913,7 @@ public Builder clearTaskOptions() { return this; } /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ public Builder removeTaskOptions( @@ -5560,7 +5932,7 @@ public Builder removeTaskOptions( return internalGetMutableTaskOptions().getMutableMap(); } /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ public Builder putTaskOptions( java.lang.String key, @@ -5575,7 +5947,7 @@ public Builder putTaskOptions( return this; } /** - * map<string, string> task_options = 7; + * map<string, string> task_options = 8; */ public Builder putAllTaskOptions( @@ -5597,48 +5969,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.flow.FlowCreateRequest) + // @@protoc_insertion_point(builder_scope:greptime.v1.flow.CreateRequest) } - // @@protoc_insertion_point(class_scope:greptime.v1.flow.FlowCreateRequest) - private static final io.greptime.v1.flow.Server.FlowCreateRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.flow.CreateRequest) + private static final io.greptime.v1.flow.Server.CreateRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.flow.Server.FlowCreateRequest(); + DEFAULT_INSTANCE = new io.greptime.v1.flow.Server.CreateRequest(); } - public static io.greptime.v1.flow.Server.FlowCreateRequest getDefaultInstance() { + public static io.greptime.v1.flow.Server.CreateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public FlowCreateRequest parsePartialFrom( + public CreateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FlowCreateRequest(input, extensionRegistry); + return new CreateRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.flow.Server.FlowCreateRequest getDefaultInstanceForType() { + public io.greptime.v1.flow.Server.CreateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface FlowRemoveRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.flow.FlowRemoveRequest) + public interface RemoveRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.flow.RemoveRequest) com.google.protobuf.MessageOrBuilder { /** @@ -5657,25 +6029,25 @@ public interface FlowRemoveRequestOrBuilder extends io.greptime.v1.flow.Server.TaskIdOrBuilder getTaskIdOrBuilder(); } /** - * Protobuf type {@code greptime.v1.flow.FlowRemoveRequest} + * Protobuf type {@code greptime.v1.flow.RemoveRequest} */ - public static final class FlowRemoveRequest extends + public static final class RemoveRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.flow.FlowRemoveRequest) - FlowRemoveRequestOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.flow.RemoveRequest) + RemoveRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use FlowRemoveRequest.newBuilder() to construct. - private FlowRemoveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use RemoveRequest.newBuilder() to construct. + private RemoveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FlowRemoveRequest() { + private RemoveRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new FlowRemoveRequest(); + return new RemoveRequest(); } @java.lang.Override @@ -5683,7 +6055,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private FlowRemoveRequest( + private RemoveRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5737,15 +6109,15 @@ private FlowRemoveRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowRemoveRequest_descriptor; + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_RemoveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowRemoveRequest_fieldAccessorTable + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_RemoveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.flow.Server.FlowRemoveRequest.class, io.greptime.v1.flow.Server.FlowRemoveRequest.Builder.class); + io.greptime.v1.flow.Server.RemoveRequest.class, io.greptime.v1.flow.Server.RemoveRequest.Builder.class); } public static final int TASK_ID_FIELD_NUMBER = 1; @@ -5814,10 +6186,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.flow.Server.FlowRemoveRequest)) { + if (!(obj instanceof io.greptime.v1.flow.Server.RemoveRequest)) { return super.equals(obj); } - io.greptime.v1.flow.Server.FlowRemoveRequest other = (io.greptime.v1.flow.Server.FlowRemoveRequest) obj; + io.greptime.v1.flow.Server.RemoveRequest other = (io.greptime.v1.flow.Server.RemoveRequest) obj; if (hasTaskId() != other.hasTaskId()) return false; if (hasTaskId()) { @@ -5844,69 +6216,69 @@ public int hashCode() { return hash; } - public static io.greptime.v1.flow.Server.FlowRemoveRequest parseFrom( + public static io.greptime.v1.flow.Server.RemoveRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.flow.Server.FlowRemoveRequest parseFrom( + public static io.greptime.v1.flow.Server.RemoveRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.flow.Server.FlowRemoveRequest parseFrom( + public static io.greptime.v1.flow.Server.RemoveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.flow.Server.FlowRemoveRequest parseFrom( + public static io.greptime.v1.flow.Server.RemoveRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.flow.Server.FlowRemoveRequest parseFrom(byte[] data) + public static io.greptime.v1.flow.Server.RemoveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.flow.Server.FlowRemoveRequest parseFrom( + public static io.greptime.v1.flow.Server.RemoveRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.flow.Server.FlowRemoveRequest parseFrom(java.io.InputStream input) + public static io.greptime.v1.flow.Server.RemoveRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.flow.Server.FlowRemoveRequest parseFrom( + public static io.greptime.v1.flow.Server.RemoveRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.flow.Server.FlowRemoveRequest parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.flow.Server.RemoveRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.flow.Server.FlowRemoveRequest parseDelimitedFrom( + public static io.greptime.v1.flow.Server.RemoveRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.flow.Server.FlowRemoveRequest parseFrom( + public static io.greptime.v1.flow.Server.RemoveRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.flow.Server.FlowRemoveRequest parseFrom( + public static io.greptime.v1.flow.Server.RemoveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5919,7 +6291,7 @@ public static io.greptime.v1.flow.Server.FlowRemoveRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.flow.Server.FlowRemoveRequest prototype) { + public static Builder newBuilder(io.greptime.v1.flow.Server.RemoveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -5935,26 +6307,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.flow.FlowRemoveRequest} + * Protobuf type {@code greptime.v1.flow.RemoveRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.flow.FlowRemoveRequest) - io.greptime.v1.flow.Server.FlowRemoveRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.flow.RemoveRequest) + io.greptime.v1.flow.Server.RemoveRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowRemoveRequest_descriptor; + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_RemoveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowRemoveRequest_fieldAccessorTable + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_RemoveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.flow.Server.FlowRemoveRequest.class, io.greptime.v1.flow.Server.FlowRemoveRequest.Builder.class); + io.greptime.v1.flow.Server.RemoveRequest.class, io.greptime.v1.flow.Server.RemoveRequest.Builder.class); } - // Construct using io.greptime.v1.flow.Server.FlowRemoveRequest.newBuilder() + // Construct using io.greptime.v1.flow.Server.RemoveRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -5984,17 +6356,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowRemoveRequest_descriptor; + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_RemoveRequest_descriptor; } @java.lang.Override - public io.greptime.v1.flow.Server.FlowRemoveRequest getDefaultInstanceForType() { - return io.greptime.v1.flow.Server.FlowRemoveRequest.getDefaultInstance(); + public io.greptime.v1.flow.Server.RemoveRequest getDefaultInstanceForType() { + return io.greptime.v1.flow.Server.RemoveRequest.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.flow.Server.FlowRemoveRequest build() { - io.greptime.v1.flow.Server.FlowRemoveRequest result = buildPartial(); + public io.greptime.v1.flow.Server.RemoveRequest build() { + io.greptime.v1.flow.Server.RemoveRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6002,8 +6374,8 @@ public io.greptime.v1.flow.Server.FlowRemoveRequest build() { } @java.lang.Override - public io.greptime.v1.flow.Server.FlowRemoveRequest buildPartial() { - io.greptime.v1.flow.Server.FlowRemoveRequest result = new io.greptime.v1.flow.Server.FlowRemoveRequest(this); + public io.greptime.v1.flow.Server.RemoveRequest buildPartial() { + io.greptime.v1.flow.Server.RemoveRequest result = new io.greptime.v1.flow.Server.RemoveRequest(this); if (taskIdBuilder_ == null) { result.taskId_ = taskId_; } else { @@ -6047,16 +6419,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.flow.Server.FlowRemoveRequest) { - return mergeFrom((io.greptime.v1.flow.Server.FlowRemoveRequest)other); + if (other instanceof io.greptime.v1.flow.Server.RemoveRequest) { + return mergeFrom((io.greptime.v1.flow.Server.RemoveRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.flow.Server.FlowRemoveRequest other) { - if (other == io.greptime.v1.flow.Server.FlowRemoveRequest.getDefaultInstance()) return this; + public Builder mergeFrom(io.greptime.v1.flow.Server.RemoveRequest other) { + if (other == io.greptime.v1.flow.Server.RemoveRequest.getDefaultInstance()) return this; if (other.hasTaskId()) { mergeTaskId(other.getTaskId()); } @@ -6075,11 +6447,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.flow.Server.FlowRemoveRequest parsedMessage = null; + io.greptime.v1.flow.Server.RemoveRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.flow.Server.FlowRemoveRequest) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.flow.Server.RemoveRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6220,41 +6592,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.flow.FlowRemoveRequest) + // @@protoc_insertion_point(builder_scope:greptime.v1.flow.RemoveRequest) } - // @@protoc_insertion_point(class_scope:greptime.v1.flow.FlowRemoveRequest) - private static final io.greptime.v1.flow.Server.FlowRemoveRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.flow.RemoveRequest) + private static final io.greptime.v1.flow.Server.RemoveRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.flow.Server.FlowRemoveRequest(); + DEFAULT_INSTANCE = new io.greptime.v1.flow.Server.RemoveRequest(); } - public static io.greptime.v1.flow.Server.FlowRemoveRequest getDefaultInstance() { + public static io.greptime.v1.flow.Server.RemoveRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public FlowRemoveRequest parsePartialFrom( + public RemoveRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FlowRemoveRequest(input, extensionRegistry); + return new RemoveRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.flow.Server.FlowRemoveRequest getDefaultInstanceForType() { + public io.greptime.v1.flow.Server.RemoveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -6265,10 +6637,10 @@ public interface TaskIdOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * uint64 id = 1; + * uint32 id = 1; * @return The id. */ - long getId(); + int getId(); } /** * Protobuf type {@code greptime.v1.flow.TaskId} @@ -6317,7 +6689,7 @@ private TaskId( break; case 8: { - id_ = input.readUInt64(); + id_ = input.readUInt32(); break; } default: { @@ -6355,13 +6727,13 @@ private TaskId( } public static final int ID_FIELD_NUMBER = 1; - private long id_; + private int id_; /** - * uint64 id = 1; + * uint32 id = 1; * @return The id. */ @java.lang.Override - public long getId() { + public int getId() { return id_; } @@ -6379,8 +6751,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (id_ != 0L) { - output.writeUInt64(1, id_); + if (id_ != 0) { + output.writeUInt32(1, id_); } unknownFields.writeTo(output); } @@ -6391,9 +6763,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (id_ != 0L) { + if (id_ != 0) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, id_); + .computeUInt32Size(1, id_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6424,8 +6796,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getId()); + hash = (53 * hash) + getId(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -6559,7 +6930,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - id_ = 0L; + id_ = 0; return this; } @@ -6636,7 +7007,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.greptime.v1.flow.Server.TaskId other) { if (other == io.greptime.v1.flow.Server.TaskId.getDefaultInstance()) return this; - if (other.getId() != 0L) { + if (other.getId() != 0) { setId(other.getId()); } this.mergeUnknownFields(other.unknownFields); @@ -6668,33 +7039,33 @@ public Builder mergeFrom( return this; } - private long id_ ; + private int id_ ; /** - * uint64 id = 1; + * uint32 id = 1; * @return The id. */ @java.lang.Override - public long getId() { + public int getId() { return id_; } /** - * uint64 id = 1; + * uint32 id = 1; * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(long value) { + public Builder setId(int value) { id_ = value; onChanged(); return this; } /** - * uint64 id = 1; + * uint32 id = 1; * @return This builder for chaining. */ public Builder clearId() { - id_ = 0L; + id_ = 0; onChanged(); return this; } @@ -6777,20 +7148,20 @@ public io.greptime.v1.flow.Server.TaskId getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_flow_FlowResponse_ExtensionEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_flow_FlowCreateRequest_descriptor; + internal_static_greptime_v1_flow_CreateRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_flow_FlowCreateRequest_fieldAccessorTable; + internal_static_greptime_v1_flow_CreateRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_flow_FlowCreateRequest_TaskOptionsEntry_descriptor; + internal_static_greptime_v1_flow_CreateRequest_TaskOptionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_flow_FlowCreateRequest_TaskOptionsEntry_fieldAccessorTable; + internal_static_greptime_v1_flow_CreateRequest_TaskOptionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_flow_FlowRemoveRequest_descriptor; + internal_static_greptime_v1_flow_RemoveRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_flow_FlowRemoveRequest_fieldAccessorTable; + internal_static_greptime_v1_flow_RemoveRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_flow_TaskId_descriptor; private static final @@ -6811,34 +7182,34 @@ public io.greptime.v1.flow.Server.TaskId getDefaultInstanceForType() { "o\"C\n\016InsertRequests\0221\n\010requests\030\001 \003(\0132\037." + "greptime.v1.flow.InsertRequest\"C\n\rInsert" + "Request\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\013" + - "2\021.greptime.v1.Rows\"\203\001\n\013FlowRequest\0225\n\006c" + - "reate\030\001 \001(\0132#.greptime.v1.flow.FlowCreat" + - "eRequestH\000\0225\n\006remove\030\002 \001(\0132#.greptime.v1" + - ".flow.FlowRemoveRequestH\000B\006\n\004body\"\370\001\n\014Fl" + - "owResponse\022+\n\006header\030\001 \001(\0132\033.greptime.v1" + - ".ResponseHeader\022\025\n\raffected_rows\030\002 \001(\004\022@" + - "\n\textension\030\003 \003(\0132-.greptime.v1.flow.Flo" + - "wResponse.ExtensionEntry\0220\n\016affected_tas" + - "ks\030\004 \003(\0132\030.greptime.v1.flow.TaskId\0320\n\016Ex" + - "tensionEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014" + - ":\0028\001\"\276\002\n\021FlowCreateRequest\022)\n\007task_id\030\001 " + - "\001(\0132\030.greptime.v1.flow.TaskId\022-\n\017output_" + - "table_id\030\002 \001(\0132\024.greptime.v1.TableId\022\034\n\024" + - "create_if_not_exists\030\003 \001(\010\022\023\n\013expire_whe" + - "n\030\004 \001(\t\022\017\n\007comment\030\005 \001(\t\022\013\n\003sql\030\006 \001(\t\022J\n" + - "\014task_options\030\007 \003(\01324.greptime.v1.flow.F" + - "lowCreateRequest.TaskOptionsEntry\0322\n\020Tas" + - "kOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + - "\t:\0028\001\">\n\021FlowRemoveRequest\022)\n\007task_id\030\001 " + - "\001(\0132\030.greptime.v1.flow.TaskId\"\024\n\006TaskId\022" + - "\n\n\002id\030\001 \001(\0042\264\001\n\004Flow\022S\n\022HandleCreateRemo" + - "ve\022\035.greptime.v1.flow.FlowRequest\032\036.grep" + - "time.v1.flow.FlowResponse\022W\n\023HandleMirro" + - "rRequest\022 .greptime.v1.flow.InsertReques" + - "ts\032\036.greptime.v1.flow.FlowResponseBY\n\023io" + - ".greptime.v1.flowB\006ServerZ:github.com/Gr" + - "eptimeTeam/greptime-proto/go/greptime/v1" + - "/flowb\006proto3" + "2\021.greptime.v1.Rows\"{\n\013FlowRequest\0221\n\006cr" + + "eate\030\001 \001(\0132\037.greptime.v1.flow.CreateRequ" + + "estH\000\0221\n\006remove\030\002 \001(\0132\037.greptime.v1.flow" + + ".RemoveRequestH\000B\006\n\004body\"\370\001\n\014FlowRespons" + + "e\022+\n\006header\030\001 \001(\0132\033.greptime.v1.Response" + + "Header\022\025\n\raffected_rows\030\002 \001(\004\022@\n\textensi" + + "on\030\003 \003(\0132-.greptime.v1.flow.FlowResponse" + + ".ExtensionEntry\0220\n\016affected_tasks\030\004 \003(\0132" + + "\030.greptime.v1.flow.TaskId\0320\n\016ExtensionEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\344\002\n\r" + + "CreateRequest\022)\n\007task_id\030\001 \001(\0132\030.greptim" + + "e.v1.flow.TaskId\022.\n\020source_table_ids\030\002 \003" + + "(\0132\024.greptime.v1.TableId\022+\n\rsink_table_i" + + "d\030\003 \001(\0132\024.greptime.v1.TableId\022\034\n\024create_" + + "if_not_exists\030\004 \001(\010\022\023\n\013expire_when\030\005 \001(\t" + + "\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030\007 \001(\t\022F\n\014task_o" + + "ptions\030\010 \003(\01320.greptime.v1.flow.CreateRe" + + "quest.TaskOptionsEntry\0322\n\020TaskOptionsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\rRe" + + "moveRequest\022)\n\007task_id\030\001 \001(\0132\030.greptime." + + "v1.flow.TaskId\"\024\n\006TaskId\022\n\n\002id\030\001 \001(\r2\264\001\n" + + "\004Flow\022S\n\022HandleCreateRemove\022\035.greptime.v" + + "1.flow.FlowRequest\032\036.greptime.v1.flow.Fl" + + "owResponse\022W\n\023HandleMirrorRequest\022 .grep" + + "time.v1.flow.InsertRequests\032\036.greptime.v" + + "1.flow.FlowResponseBY\n\023io.greptime.v1.fl" + + "owB\006ServerZ:github.com/GreptimeTeam/grep" + + "time-proto/go/greptime/v1/flowb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -6877,23 +7248,23 @@ public io.greptime.v1.flow.Server.TaskId getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_FlowResponse_ExtensionEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_greptime_v1_flow_FlowCreateRequest_descriptor = + internal_static_greptime_v1_flow_CreateRequest_descriptor = getDescriptor().getMessageTypes().get(4); - internal_static_greptime_v1_flow_FlowCreateRequest_fieldAccessorTable = new + internal_static_greptime_v1_flow_CreateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_flow_FlowCreateRequest_descriptor, - new java.lang.String[] { "TaskId", "OutputTableId", "CreateIfNotExists", "ExpireWhen", "Comment", "Sql", "TaskOptions", }); - internal_static_greptime_v1_flow_FlowCreateRequest_TaskOptionsEntry_descriptor = - internal_static_greptime_v1_flow_FlowCreateRequest_descriptor.getNestedTypes().get(0); - internal_static_greptime_v1_flow_FlowCreateRequest_TaskOptionsEntry_fieldAccessorTable = new + internal_static_greptime_v1_flow_CreateRequest_descriptor, + new java.lang.String[] { "TaskId", "SourceTableIds", "SinkTableId", "CreateIfNotExists", "ExpireWhen", "Comment", "Sql", "TaskOptions", }); + internal_static_greptime_v1_flow_CreateRequest_TaskOptionsEntry_descriptor = + internal_static_greptime_v1_flow_CreateRequest_descriptor.getNestedTypes().get(0); + internal_static_greptime_v1_flow_CreateRequest_TaskOptionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_flow_FlowCreateRequest_TaskOptionsEntry_descriptor, + internal_static_greptime_v1_flow_CreateRequest_TaskOptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_greptime_v1_flow_FlowRemoveRequest_descriptor = + internal_static_greptime_v1_flow_RemoveRequest_descriptor = getDescriptor().getMessageTypes().get(5); - internal_static_greptime_v1_flow_FlowRemoveRequest_fieldAccessorTable = new + internal_static_greptime_v1_flow_RemoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_flow_FlowRemoveRequest_descriptor, + internal_static_greptime_v1_flow_RemoveRequest_descriptor, new java.lang.String[] { "TaskId", }); internal_static_greptime_v1_flow_TaskId_descriptor = getDescriptor().getMessageTypes().get(6); diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index b89b4a8e..c391266d 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -33,17 +33,17 @@ message DdlRequest { AlterExpr alter = 3; DropTableExpr drop_table = 4; TruncateTableExpr truncate_table = 7; - CreateTaskExpr create_task = 8; - RemoveTaskExpr remove_task = 9; + CreateFlowTaskExpr create_flow_task = 8; + DropFlowTaskExpr drop_flow_task = 9; } } // Create a flow task to run the SQL when new data arrives. -message CreateTaskExpr { +message CreateFlowTaskExpr { string catalog_name = 1; string task_name = 2; - string output_schema_name = 3; - string output_table_name = 4; + repeated SchemaScopedTableName source_table_names = 3; + SchemaScopedTableName sink_table_name = 4; bool create_if_not_exists = 5; string expire_when = 6; string comment = 7; @@ -51,8 +51,14 @@ message CreateTaskExpr { map task_options = 9; } +// Table name +message SchemaScopedTableName { + string schema_name = 1; + string table_name = 2; +} + // Remove a flow task. -message RemoveTaskExpr { +message DropFlowTaskExpr { string catalog_name = 1; string task_name = 2; } diff --git a/proto/greptime/v1/flow/server.proto b/proto/greptime/v1/flow/server.proto index 578c1fc6..7846576d 100644 --- a/proto/greptime/v1/flow/server.proto +++ b/proto/greptime/v1/flow/server.proto @@ -42,8 +42,8 @@ message InsertRequest { message FlowRequest { oneof body { - FlowCreateRequest create = 1; - FlowRemoveRequest remove = 2; + CreateRequest create = 1; + RemoveRequest remove = 2; } } @@ -56,16 +56,17 @@ message FlowResponse { } // very similar to `ddl.CreateTaskExpr` just replace `task_name` with `task_id` -message FlowCreateRequest { - TaskId task_id = 1; - TableId output_table_id = 2; - bool create_if_not_exists = 3; - string expire_when = 4; - string comment = 5; - string sql = 6; - map task_options = 7; +message CreateRequest { + TaskId task_id = 1; + repeated TableId source_table_ids = 2; + TableId sink_table_id = 3; + bool create_if_not_exists = 4; + string expire_when = 5; + string comment = 6; + string sql = 7; + map task_options = 8; } -message FlowRemoveRequest { TaskId task_id = 1; } +message RemoveRequest { TaskId task_id = 1; } message TaskId { uint32 id = 1; } diff --git a/proto/greptime/v1/meta/ddl.proto b/proto/greptime/v1/meta/ddl.proto index 9e926679..c2ca420e 100644 --- a/proto/greptime/v1/meta/ddl.proto +++ b/proto/greptime/v1/meta/ddl.proto @@ -59,6 +59,14 @@ message DropDatabaseTask { DropDatabaseExpr drop_database = 1; } +message CreateFlowTask { + CreateFlowTaskExpr create_flow_task = 1; +} + +message DropFlowTask { + DropFlowTaskExpr drop_flow_task = 1; +} + message DdlTaskRequest { RequestHeader header = 1; @@ -72,6 +80,8 @@ message DdlTaskRequest { AlterTableTasks alter_table_tasks = 8; DropDatabaseTask drop_database_task = 9; CreateDatabaseTask create_database_task = 10; + CreateFlowTask create_flow_task = 11; + DropFlowTask drop_flow_task = 12; } } diff --git a/src/v1.rs b/src/v1.rs index 1913ddea..1dcd6936 100644 --- a/src/v1.rs +++ b/src/v1.rs @@ -18,6 +18,7 @@ use crate::v1::value::ValueData; pub const GREPTIME_GRPC_DESC: &[u8] = tonic::include_file_descriptor_set!("greptime_grpc_desc"); +pub mod flow; pub mod index; pub mod meta; pub mod region; diff --git a/src/v1/flow.rs b/src/v1/flow.rs new file mode 100644 index 00000000..7a3ed28a --- /dev/null +++ b/src/v1/flow.rs @@ -0,0 +1,15 @@ +// Copyright 2023 Greptime Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +tonic::include_proto!("greptime.v1.flow");