From c1ab7ea94e7f926eb05cdad003b48b172fc8b409 Mon Sep 17 00:00:00 2001 From: WenyXu Date: Thu, 25 Apr 2024 07:20:04 +0000 Subject: [PATCH 1/5] feat: add `source_tables` --- c++/greptime/v1/ddl.pb.cc | 691 +++++----- c++/greptime/v1/ddl.pb.h | 811 +++++++----- c++/greptime/v1/flow/server.pb.cc | 178 ++- c++/greptime/v1/flow/server.pb.h | 117 +- go/greptime/v1/ddl.pb.go | 538 ++++---- java/src/main/java/io/greptime/v1/Ddl.java | 1173 ++++++++++------- .../main/java/io/greptime/v1/flow/Server.java | 634 +++++++-- proto/greptime/v1/ddl.proto | 23 +- proto/greptime/v1/flow/server.proto | 15 +- 9 files changed, 2513 insertions(+), 1667 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 1b2a660a..14aa7270 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -36,20 +36,21 @@ 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_tables_)*/{} + , /*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{}} @@ -59,29 +60,29 @@ PROTOBUF_CONSTEXPR CreateTaskExpr::CreateTaskExpr( , /*decltype(_impl_.sql_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*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 RemoveFlowTaskExpr::RemoveFlowTaskExpr( ::_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 RemoveFlowTaskExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR RemoveFlowTaskExprDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoveTaskExprDefaultTypeInternal() {} + ~RemoveFlowTaskExprDefaultTypeInternal() {} union { - RemoveTaskExpr _instance; + RemoveFlowTaskExpr _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 RemoveFlowTaskExprDefaultTypeInternal _RemoveFlowTaskExpr_default_instance_; PROTOBUF_CONSTEXPR CreateTableExpr_TableOptionsEntry_DoNotUse::CreateTableExpr_TableOptionsEntry_DoNotUse( ::_pbi::ConstantInitialized) {} struct CreateTableExpr_TableOptionsEntry_DoNotUseDefaultTypeInternal { @@ -341,39 +342,40 @@ 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::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::CreateFlowTaskExpr, _impl_.catalog_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.task_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.source_tables_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.output_schema_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.output_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::RemoveTaskExpr, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::RemoveFlowTaskExpr, _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::RemoveFlowTaskExpr, _impl_.catalog_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::RemoveFlowTaskExpr, _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 +533,32 @@ 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)}, + { 40, -1, -1, sizeof(::greptime::v1::RemoveFlowTaskExpr)}, + { 48, 56, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, + { 58, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, + { 75, -1, -1, sizeof(::greptime::v1::AlterExpr)}, + { 88, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, + { 99, 107, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, + { 109, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, + { 119, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, + { 129, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, + { 138, -1, -1, sizeof(::greptime::v1::AddColumns)}, + { 145, -1, -1, sizeof(::greptime::v1::DropColumns)}, + { 152, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 159, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 167, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 174, -1, -1, sizeof(::greptime::v1::TableId)}, + { 181, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 194, -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::_RemoveFlowTaskExpr_default_instance_._instance, &::greptime::v1::_CreateTableExpr_TableOptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateTableExpr_default_instance_._instance, &::greptime::v1::_AlterExpr_default_instance_._instance, @@ -577,83 +579,85 @@ 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\"\225\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" - "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" - " \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.greptime.v1." - "ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014primary" - "_keys\030\007 \003(\t\022\034\n\024create_if_not_exists\030\010 \001(" - "\010\022E\n\rtable_options\030\t \003(\0132..greptime.v1.C" - "reateTableExpr.TableOptionsEntry\022&\n\010tabl" - "e_id\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006engi" - "ne\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003key\030\001 \001" - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterExpr\022\024\n\014c" - "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022" - "\n\ntable_name\030\003 \001(\t\022.\n\013add_columns\030\004 \001(\0132" - "\027.greptime.v1.AddColumnsH\000\0220\n\014drop_colum" - "ns\030\005 \001(\0132\030.greptime.v1.DropColumnsH\000\0220\n\014" - "rename_table\030\006 \001(\0132\030.greptime.v1.RenameT" - "ableH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014cata" - "log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nt" - "able_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grep" - "time.v1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010\"" - "\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_name\030\001" - " \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_n" - "ot_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.grept" - "ime.v1.CreateDatabaseExpr.OptionsEntry\032." - "\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - "(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_n" - "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_" - "name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime." - "v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014catalo" - "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dro" - "p_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_c" - "olumns\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n\013" - "DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.grep" - "time.v1.DropColumn\"%\n\013RenameTable\022\026\n\016new" - "_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn" - "_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010lo" - "cation\030\003 \001(\0132\036.greptime.v1.AddColumnLoca" - "tion\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007Tabl" - "eId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 " - "\001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1.Col" - "umnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022defa" - "ult_constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 " - "\001(\0162\031.greptime.v1.SemanticType\022\017\n\007commen" - "t\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.gr" - "eptime.v1.ColumnDataTypeExtension\"\230\001\n\021Ad" - "dColumnLocation\022B\n\rlocation_type\030\001 \001(\0162+" - ".greptime.v1.AddColumnLocation.LocationT" - "ype\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locati" - "onType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.grept" - "ime.v1B\003DdlZ5github.com/GreptimeTeam/gre" - "ptime-proto/go/greptime/v1b\006proto3" + ".TruncateTableExprH\000\022;\n\020create_flow_task" + "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" + "\000\022;\n\020remove_flow_task\030\t \001(\0132\037.greptime.v" + "1.RemoveFlowTaskExprH\000B\006\n\004expr\"\330\002\n\022Creat" + "eFlowTaskExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tt" + "ask_name\030\002 \001(\t\022\025\n\rsource_tables\030\003 \003(\t\022\032\n" + "\022output_schema_name\030\004 \001(\t\022\031\n\021output_tabl" + "e_name\030\005 \001(\t\022\034\n\024create_if_not_exists\030\006 \001" + "(\010\022\023\n\013expire_when\030\007 \001(\t\022\017\n\007comment\030\010 \001(\t" + "\022\013\n\003sql\030\t \001(\t\022F\n\014task_options\030\n \003(\01320.gr" + "eptime.v1.CreateFlowTaskExpr.TaskOptions" + "Entry\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r" + "\n\005value\030\002 \001(\t:\0028\001\"=\n\022RemoveFlowTaskExpr\022" + "\024\n\014catalog_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t" + "\"\207\003\n\017CreateTableExpr\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 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026" + ".greptime.v1.ColumnDef\022\022\n\ntime_index\030\006 \001" + "(\t\022\024\n\014primary_keys\030\007 \003(\t\022\034\n\024create_if_no" + "t_exists\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132.." + "greptime.v1.CreateTableExpr.TableOptions" + "Entry\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.Ta" + "bleId\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEnt" + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tA" + "lterExpr\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.\n\013add_c" + "olumns\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\022" + "0\n\014drop_columns\030\005 \001(\0132\030.greptime.v1.Drop" + "ColumnsH\000\0220\n\014rename_table\030\006 \001(\0132\030.grepti" + "me.v1.RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTabl" + "eExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_na" + "me\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id" + "\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_" + "exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014c" + "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034" + "\n\024create_if_not_exists\030\003 \001(\010\022=\n\007options\030" + "\004 \003(\0132,.greptime.v1.CreateDatabaseExpr.O" + "ptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t" + "\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr" + "\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&\n\010table_id\030\004 \001(" + "\0132\024.greptime.v1.TableId\"U\n\020DropDatabaseE" + "xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" + "\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddCol" + "umns\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1." + "AddColumn\"<\n\013DropColumns\022-\n\014drop_columns" + "\030\001 \003(\0132\027.greptime.v1.DropColumn\"%\n\013Renam" + "eTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddCol" + "umn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Co" + "lumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1." + "AddColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030" + "\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnD" + "ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr" + "eptime.v1.ColumnDataType\022\023\n\013is_nullable\030" + "\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem" + "antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT" + "ype\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extensi" + "on\030\007 \001(\0132$.greptime.v1.ColumnDataTypeExt" + "ension\"\230\001\n\021AddColumnLocation\022B\n\rlocation" + "_type\030\001 \001(\0162+.greptime.v1.AddColumnLocat" + "ion.LocationType\022\031\n\021after_column_name\030\002 " + "\001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020" + "\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gre" + "ptimeTeam/greptime-proto/go/greptime/v1b" + "\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; 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, 2887, 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, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, @@ -699,8 +703,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::RemoveFlowTaskExpr& remove_flow_task(const DdlRequest* msg); }; const ::greptime::v1::CreateDatabaseExpr& @@ -723,13 +727,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::RemoveFlowTaskExpr& +DdlRequest::_Internal::remove_flow_task(const DdlRequest* msg) { + return *msg->_impl_.expr_.remove_flow_task_; } void DdlRequest::set_allocated_create_database(::greptime::v1::CreateDatabaseExpr* create_database) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); @@ -806,35 +810,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_remove_flow_task(::greptime::v1::RemoveFlowTaskExpr* remove_flow_task) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr(); - if (remove_task) { + if (remove_flow_task) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(remove_task); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(remove_flow_task); if (message_arena != submessage_arena) { - remove_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, remove_task, submessage_arena); + remove_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, remove_flow_task, submessage_arena); } - set_has_remove_task(); - _impl_.expr_.remove_task_ = remove_task; + set_has_remove_flow_task(); + _impl_.expr_.remove_flow_task_ = remove_flow_task; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.remove_task) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.remove_flow_task) } DdlRequest::DdlRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) @@ -878,14 +882,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 kRemoveFlowTask: { + _this->_internal_mutable_remove_flow_task()->::greptime::v1::RemoveFlowTaskExpr::MergeFrom( + from._internal_remove_flow_task()); break; } case EXPR_NOT_SET: { @@ -960,15 +964,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 kRemoveFlowTask: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.expr_.remove_task_; + delete _impl_.expr_.remove_flow_task_; } break; } @@ -1036,18 +1040,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.RemoveFlowTaskExpr remove_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_remove_flow_task(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -1116,18 +1120,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.RemoveFlowTaskExpr remove_flow_task = 9; + if (_internal_has_remove_flow_task()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(9, _Internal::remove_task(this), - _Internal::remove_task(this).GetCachedSize(), target, stream); + InternalWriteMessage(9, _Internal::remove_flow_task(this), + _Internal::remove_flow_task(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1182,18 +1186,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.RemoveFlowTaskExpr remove_flow_task = 9; + case kRemoveFlowTask: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.expr_.remove_task_); + *_impl_.expr_.remove_flow_task_); break; } case EXPR_NOT_SET: { @@ -1244,14 +1248,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 kRemoveFlowTask: { + _this->_internal_mutable_remove_flow_task()->::greptime::v1::RemoveFlowTaskExpr::MergeFrom( + from._internal_remove_flow_task()); break; } case EXPR_NOT_SET: { @@ -1287,13 +1291,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,24 +1305,25 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateTaskExpr_TaskOptionsEntry_DoNotUse::GetM // =================================================================== -class CreateTaskExpr::_Internal { +class CreateFlowTaskExpr::_Internal { public: }; -CreateTaskExpr::CreateTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, +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_tables_){from._impl_.source_tables_} + , /*decltype(_impl_.task_options_)*/{} , decltype(_impl_.catalog_name_){} , decltype(_impl_.task_name_){} , decltype(_impl_.output_schema_name_){} @@ -1388,15 +1393,16 @@ CreateTaskExpr::CreateTaskExpr(const CreateTaskExpr& from) _this->GetArenaForAllocation()); } _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_tables_){arena} + , /*decltype(_impl_.task_options_)*/{::_pbi::ArenaInitialized(), arena} , decltype(_impl_.catalog_name_){} , decltype(_impl_.task_name_){} , decltype(_impl_.output_schema_name_){} @@ -1437,8 +1443,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,8 +1453,9 @@ CreateTaskExpr::~CreateTaskExpr() { SharedDtor(); } -inline void CreateTaskExpr::SharedDtor() { +inline void CreateFlowTaskExpr::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.source_tables_.~RepeatedPtrField(); _impl_.task_options_.Destruct(); _impl_.task_options_.~MapField(); _impl_.catalog_name_.Destroy(); @@ -1460,20 +1467,21 @@ inline void CreateTaskExpr::SharedDtor() { _impl_.sql_.Destroy(); } -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_tables_.Clear(); _impl_.task_options_.Clear(); _impl_.catalog_name_.ClearToEmpty(); _impl_.task_name_.ClearToEmpty(); @@ -1486,7 +1494,7 @@ void CreateTaskExpr::Clear() { _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 +1506,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,78 +1516,93 @@ 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 string source_tables = 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; + auto str = _internal_add_source_tables(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.source_tables")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); } else goto handle_unusual; continue; - // string output_table_name = 4; + // string output_schema_name = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_output_table_name(); + auto str = _internal_mutable_output_schema_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateTaskExpr.output_table_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.output_schema_name")); } else goto handle_unusual; continue; - // bool create_if_not_exists = 5; + // string output_table_name = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _impl_.create_if_not_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_output_table_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.output_table_name")); } else goto handle_unusual; continue; - // string expire_when = 6; + // bool create_if_not_exists = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_expire_when(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.create_if_not_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateTaskExpr.expire_when")); } else goto handle_unusual; continue; - // string comment = 7; + // string expire_when = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - 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.CreateTaskExpr.comment")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.expire_when")); } else goto handle_unusual; continue; - // string sql = 8; + // string comment = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_sql(); + auto str = _internal_mutable_comment(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateTaskExpr.sql")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.comment")); } else goto handle_unusual; continue; - // map task_options = 9; + // string sql = 9; case 9: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_sql(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.sql")); + } else + goto handle_unusual; + continue; + // map task_options = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { 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<74>(ptr)); + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr)); } else goto handle_unusual; continue; @@ -1606,9 +1629,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 +1640,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,92 +1650,102 @@ 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; + // repeated string source_tables = 3; + for (int i = 0, n = this->_internal_source_tables_size(); i < n; i++) { + const auto& s = this->_internal_source_tables(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.CreateFlowTaskExpr.source_tables"); + target = stream->WriteString(3, s, target); + } + + // string output_schema_name = 4; 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"); + "greptime.v1.CreateFlowTaskExpr.output_schema_name"); target = stream->WriteStringMaybeAliased( - 3, this->_internal_output_schema_name(), target); + 4, this->_internal_output_schema_name(), target); } - // string output_table_name = 4; + // string output_table_name = 5; 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"); + "greptime.v1.CreateFlowTaskExpr.output_table_name"); target = stream->WriteStringMaybeAliased( - 4, this->_internal_output_table_name(), target); + 5, this->_internal_output_table_name(), target); } - // bool create_if_not_exists = 5; + // bool create_if_not_exists = 6; if (this->_internal_create_if_not_exists() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_create_if_not_exists(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_create_if_not_exists(), target); } - // string expire_when = 6; + // string expire_when = 7; 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.CreateTaskExpr.expire_when"); + "greptime.v1.CreateFlowTaskExpr.expire_when"); target = stream->WriteStringMaybeAliased( - 6, this->_internal_expire_when(), target); + 7, this->_internal_expire_when(), target); } - // string comment = 7; + // string comment = 8; 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.CreateTaskExpr.comment"); + "greptime.v1.CreateFlowTaskExpr.comment"); target = stream->WriteStringMaybeAliased( - 7, this->_internal_comment(), target); + 8, this->_internal_comment(), target); } - // string sql = 8; + // string sql = 9; 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.CreateTaskExpr.sql"); + "greptime.v1.CreateFlowTaskExpr.sql"); target = stream->WriteStringMaybeAliased( - 8, this->_internal_sql(), target); + 9, this->_internal_sql(), target); } - // map task_options = 9; + // map task_options = 10; 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) { for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); + target = WireHelper::InternalSerialize(10, entry.first, entry.second, target, stream); check_utf8(entry); } } else { for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); + target = WireHelper::InternalSerialize(10, entry.first, entry.second, target, stream); check_utf8(entry); } } @@ -1722,25 +1755,33 @@ 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; - // map task_options = 9; + // repeated string source_tables = 3; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.source_tables_.size()); + for (int i = 0, n = _impl_.source_tables_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.source_tables_.Get(i)); + } + + // map task_options = 10; 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,42 +1798,42 @@ size_t CreateTaskExpr::ByteSizeLong() const { this->_internal_task_name()); } - // string output_schema_name = 3; + // string output_schema_name = 4; 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; + // string output_table_name = 5; 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; + // string expire_when = 7; if (!this->_internal_expire_when().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_expire_when()); } - // string comment = 7; + // string comment = 8; if (!this->_internal_comment().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_comment()); } - // string sql = 8; + // string sql = 9; if (!this->_internal_sql().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sql()); } - // bool create_if_not_exists = 5; + // bool create_if_not_exists = 6; if (this->_internal_create_if_not_exists() != 0) { total_size += 1 + 1; } @@ -1800,21 +1841,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_tables_.MergeFrom(from._impl_.source_tables_); _this->_impl_.task_options_.MergeFrom(from._impl_.task_options_); if (!from._internal_catalog_name().empty()) { _this->_internal_set_catalog_name(from._internal_catalog_name()); @@ -1843,22 +1885,23 @@ void CreateTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : _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_tables_.InternalSwap(&other->_impl_.source_tables_); _impl_.task_options_.InternalSwap(&other->_impl_.task_options_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.catalog_name_, lhs_arena, @@ -1891,7 +1934,7 @@ void CreateTaskExpr::InternalSwap(CreateTaskExpr* other) { swap(_impl_.create_if_not_exists_, other->_impl_.create_if_not_exists_); } -::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 +1942,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateTaskExpr::GetMetadata() const { // =================================================================== -class RemoveTaskExpr::_Internal { +class RemoveFlowTaskExpr::_Internal { public: }; -RemoveTaskExpr::RemoveTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, +RemoveFlowTaskExpr::RemoveFlowTaskExpr(::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.RemoveFlowTaskExpr) } -RemoveTaskExpr::RemoveTaskExpr(const RemoveTaskExpr& from) +RemoveFlowTaskExpr::RemoveFlowTaskExpr(const RemoveFlowTaskExpr& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - RemoveTaskExpr* const _this = this; (void)_this; + RemoveFlowTaskExpr* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.catalog_name_){} , decltype(_impl_.task_name_){} @@ -1934,10 +1977,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.RemoveFlowTaskExpr) } -inline void RemoveTaskExpr::SharedCtor( +inline void RemoveFlowTaskExpr::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -1956,8 +1999,8 @@ inline void RemoveTaskExpr::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -RemoveTaskExpr::~RemoveTaskExpr() { - // @@protoc_insertion_point(destructor:greptime.v1.RemoveTaskExpr) +RemoveFlowTaskExpr::~RemoveFlowTaskExpr() { + // @@protoc_insertion_point(destructor:greptime.v1.RemoveFlowTaskExpr) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -1965,18 +2008,18 @@ RemoveTaskExpr::~RemoveTaskExpr() { SharedDtor(); } -inline void RemoveTaskExpr::SharedDtor() { +inline void RemoveFlowTaskExpr::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.catalog_name_.Destroy(); _impl_.task_name_.Destroy(); } -void RemoveTaskExpr::SetCachedSize(int size) const { +void RemoveFlowTaskExpr::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void RemoveTaskExpr::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.RemoveTaskExpr) +void RemoveFlowTaskExpr::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.RemoveFlowTaskExpr) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1986,7 +2029,7 @@ void RemoveTaskExpr::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RemoveTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* RemoveFlowTaskExpr::_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 +2041,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.RemoveFlowTaskExpr.catalog_name")); } else goto handle_unusual; continue; @@ -2008,7 +2051,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.RemoveFlowTaskExpr.task_name")); } else goto handle_unusual; continue; @@ -2035,9 +2078,9 @@ const char* RemoveTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* RemoveTaskExpr::_InternalSerialize( +uint8_t* RemoveFlowTaskExpr::_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.RemoveFlowTaskExpr) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2046,7 +2089,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.RemoveFlowTaskExpr.catalog_name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_catalog_name(), target); } @@ -2056,7 +2099,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.RemoveFlowTaskExpr.task_name"); target = stream->WriteStringMaybeAliased( 2, this->_internal_task_name(), target); } @@ -2065,12 +2108,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.RemoveFlowTaskExpr) return target; } -size_t RemoveTaskExpr::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.RemoveTaskExpr) +size_t RemoveFlowTaskExpr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.RemoveFlowTaskExpr) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -2094,17 +2137,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 RemoveFlowTaskExpr::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - RemoveTaskExpr::MergeImpl + RemoveFlowTaskExpr::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveTaskExpr::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveFlowTaskExpr::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 RemoveFlowTaskExpr::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.RemoveFlowTaskExpr) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2118,18 +2161,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 RemoveFlowTaskExpr::CopyFrom(const RemoveFlowTaskExpr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.RemoveFlowTaskExpr) if (&from == this) return; Clear(); MergeFrom(from); } -bool RemoveTaskExpr::IsInitialized() const { +bool RemoveFlowTaskExpr::IsInitialized() const { return true; } -void RemoveTaskExpr::InternalSwap(RemoveTaskExpr* other) { +void RemoveFlowTaskExpr::InternalSwap(RemoveFlowTaskExpr* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -2144,7 +2187,7 @@ void RemoveTaskExpr::InternalSwap(RemoveTaskExpr* other) { ); } -::PROTOBUF_NAMESPACE_ID::Metadata RemoveTaskExpr::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RemoveFlowTaskExpr::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]); @@ -6578,17 +6621,17 @@ 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::CreateTaskExpr* -Arena::CreateMaybeMessage< ::greptime::v1::CreateTaskExpr >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::CreateTaskExpr >(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::RemoveTaskExpr* -Arena::CreateMaybeMessage< ::greptime::v1::RemoveTaskExpr >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::RemoveTaskExpr >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::RemoveFlowTaskExpr* +Arena::CreateMaybeMessage< ::greptime::v1::RemoveFlowTaskExpr >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::RemoveFlowTaskExpr >(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..af898c7d 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_; @@ -99,9 +99,9 @@ extern DropDatabaseExprDefaultTypeInternal _DropDatabaseExpr_default_instance_; class DropTableExpr; struct DropTableExprDefaultTypeInternal; extern DropTableExprDefaultTypeInternal _DropTableExpr_default_instance_; -class RemoveTaskExpr; -struct RemoveTaskExprDefaultTypeInternal; -extern RemoveTaskExprDefaultTypeInternal _RemoveTaskExpr_default_instance_; +class RemoveFlowTaskExpr; +struct RemoveFlowTaskExprDefaultTypeInternal; +extern RemoveFlowTaskExprDefaultTypeInternal _RemoveFlowTaskExpr_default_instance_; class RenameTable; struct RenameTableDefaultTypeInternal; extern RenameTableDefaultTypeInternal _RenameTable_default_instance_; @@ -121,16 +121,16 @@ 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::DropTableExpr* Arena::CreateMaybeMessage<::greptime::v1::DropTableExpr>(Arena*); -template<> ::greptime::v1::RemoveTaskExpr* Arena::CreateMaybeMessage<::greptime::v1::RemoveTaskExpr>(Arena*); +template<> ::greptime::v1::RemoveFlowTaskExpr* Arena::CreateMaybeMessage<::greptime::v1::RemoveFlowTaskExpr>(Arena*); template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*); template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*); template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*); @@ -214,8 +214,8 @@ class DdlRequest final : kAlter = 3, kDropTable = 4, kTruncateTable = 7, - kCreateTask = 8, - kRemoveTask = 9, + kCreateFlowTask = 8, + kRemoveFlowTask = 9, EXPR_NOT_SET = 0, }; @@ -302,8 +302,8 @@ class DdlRequest final : kAlterFieldNumber = 3, kDropTableFieldNumber = 4, kTruncateTableFieldNumber = 7, - kCreateTaskFieldNumber = 8, - kRemoveTaskFieldNumber = 9, + kCreateFlowTaskFieldNumber = 8, + kRemoveFlowTaskFieldNumber = 9, }; // .greptime.v1.CreateDatabaseExpr create_database = 1; bool has_create_database() const; @@ -395,41 +395,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.RemoveFlowTaskExpr remove_flow_task = 9; + bool has_remove_flow_task() const; private: - bool _internal_has_remove_task() const; + bool _internal_has_remove_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_remove_flow_task(); + const ::greptime::v1::RemoveFlowTaskExpr& remove_flow_task() const; + PROTOBUF_NODISCARD ::greptime::v1::RemoveFlowTaskExpr* release_remove_flow_task(); + ::greptime::v1::RemoveFlowTaskExpr* mutable_remove_flow_task(); + void set_allocated_remove_flow_task(::greptime::v1::RemoveFlowTaskExpr* remove_flow_task); + private: + const ::greptime::v1::RemoveFlowTaskExpr& _internal_remove_flow_task() const; + ::greptime::v1::RemoveFlowTaskExpr* _internal_mutable_remove_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_remove_flow_task( + ::greptime::v1::RemoveFlowTaskExpr* remove_flow_task); + ::greptime::v1::RemoveFlowTaskExpr* unsafe_arena_release_remove_flow_task(); void clear_expr(); ExprCase expr_case() const; @@ -441,8 +441,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_remove_flow_task(); inline bool has_expr() const; inline void clear_has_expr(); @@ -459,8 +459,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::RemoveFlowTaskExpr* remove_flow_task_; } expr_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -471,26 +471,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 +499,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 +539,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 +565,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 +573,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 +598,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,17 +623,42 @@ class CreateTaskExpr final : // accessors ------------------------------------------------------- enum : int { - kTaskOptionsFieldNumber = 9, + kSourceTablesFieldNumber = 3, + kTaskOptionsFieldNumber = 10, kCatalogNameFieldNumber = 1, kTaskNameFieldNumber = 2, - kOutputSchemaNameFieldNumber = 3, - kOutputTableNameFieldNumber = 4, - kExpireWhenFieldNumber = 6, - kCommentFieldNumber = 7, - kSqlFieldNumber = 8, - kCreateIfNotExistsFieldNumber = 5, + kOutputSchemaNameFieldNumber = 4, + kOutputTableNameFieldNumber = 5, + kExpireWhenFieldNumber = 7, + kCommentFieldNumber = 8, + kSqlFieldNumber = 9, + kCreateIfNotExistsFieldNumber = 6, }; - // map task_options = 9; + // repeated string source_tables = 3; + int source_tables_size() const; + private: + int _internal_source_tables_size() const; + public: + void clear_source_tables(); + const std::string& source_tables(int index) const; + std::string* mutable_source_tables(int index); + void set_source_tables(int index, const std::string& value); + void set_source_tables(int index, std::string&& value); + void set_source_tables(int index, const char* value); + void set_source_tables(int index, const char* value, size_t size); + std::string* add_source_tables(); + void add_source_tables(const std::string& value); + void add_source_tables(std::string&& value); + void add_source_tables(const char* value); + void add_source_tables(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& source_tables() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_source_tables(); + private: + const std::string& _internal_source_tables(int index) const; + std::string* _internal_add_source_tables(); + public: + + // map task_options = 10; int task_options_size() const; private: int _internal_task_options_size() const; @@ -678,7 +703,7 @@ class CreateTaskExpr final : std::string* _internal_mutable_task_name(); public: - // string output_schema_name = 3; + // string output_schema_name = 4; void clear_output_schema_name(); const std::string& output_schema_name() const; template @@ -692,7 +717,7 @@ class CreateTaskExpr final : std::string* _internal_mutable_output_schema_name(); public: - // string output_table_name = 4; + // string output_table_name = 5; void clear_output_table_name(); const std::string& output_table_name() const; template @@ -706,7 +731,7 @@ class CreateTaskExpr final : std::string* _internal_mutable_output_table_name(); public: - // string expire_when = 6; + // string expire_when = 7; void clear_expire_when(); const std::string& expire_when() const; template @@ -720,7 +745,7 @@ class CreateTaskExpr final : std::string* _internal_mutable_expire_when(); public: - // string comment = 7; + // string comment = 8; void clear_comment(); const std::string& comment() const; template @@ -734,7 +759,7 @@ class CreateTaskExpr final : std::string* _internal_mutable_comment(); public: - // string sql = 8; + // string sql = 9; void clear_sql(); const std::string& sql() const; template @@ -748,7 +773,7 @@ class CreateTaskExpr final : std::string* _internal_mutable_sql(); public: - // bool create_if_not_exists = 5; + // bool create_if_not_exists = 6; void clear_create_if_not_exists(); bool create_if_not_exists() const; void set_create_if_not_exists(bool value); @@ -757,7 +782,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,8 +790,9 @@ class CreateTaskExpr final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField source_tables_; ::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_; @@ -785,24 +811,24 @@ class CreateTaskExpr final : }; // ------------------------------------------------------------------- -class RemoveTaskExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RemoveTaskExpr) */ { +class RemoveFlowTaskExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RemoveFlowTaskExpr) */ { public: - inline RemoveTaskExpr() : RemoveTaskExpr(nullptr) {} - ~RemoveTaskExpr() override; - explicit PROTOBUF_CONSTEXPR RemoveTaskExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RemoveFlowTaskExpr() : RemoveFlowTaskExpr(nullptr) {} + ~RemoveFlowTaskExpr() override; + explicit PROTOBUF_CONSTEXPR RemoveFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - RemoveTaskExpr(const RemoveTaskExpr& from); - RemoveTaskExpr(RemoveTaskExpr&& from) noexcept - : RemoveTaskExpr() { + RemoveFlowTaskExpr(const RemoveFlowTaskExpr& from); + RemoveFlowTaskExpr(RemoveFlowTaskExpr&& from) noexcept + : RemoveFlowTaskExpr() { *this = ::std::move(from); } - inline RemoveTaskExpr& operator=(const RemoveTaskExpr& from) { + inline RemoveFlowTaskExpr& operator=(const RemoveFlowTaskExpr& from) { CopyFrom(from); return *this; } - inline RemoveTaskExpr& operator=(RemoveTaskExpr&& from) noexcept { + inline RemoveFlowTaskExpr& operator=(RemoveFlowTaskExpr&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -825,20 +851,20 @@ class RemoveTaskExpr final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RemoveTaskExpr& default_instance() { + static const RemoveFlowTaskExpr& default_instance() { return *internal_default_instance(); } - static inline const RemoveTaskExpr* internal_default_instance() { - return reinterpret_cast( - &_RemoveTaskExpr_default_instance_); + static inline const RemoveFlowTaskExpr* internal_default_instance() { + return reinterpret_cast( + &_RemoveFlowTaskExpr_default_instance_); } static constexpr int kIndexInFileMessages = 3; - friend void swap(RemoveTaskExpr& a, RemoveTaskExpr& b) { + friend void swap(RemoveFlowTaskExpr& a, RemoveFlowTaskExpr& b) { a.Swap(&b); } - inline void Swap(RemoveTaskExpr* other) { + inline void Swap(RemoveFlowTaskExpr* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -851,7 +877,7 @@ class RemoveTaskExpr final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoveTaskExpr* other) { + void UnsafeArenaSwap(RemoveFlowTaskExpr* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -859,14 +885,14 @@ class RemoveTaskExpr final : // implements Message ---------------------------------------------- - RemoveTaskExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RemoveFlowTaskExpr* 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 RemoveFlowTaskExpr& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RemoveTaskExpr& from) { - RemoveTaskExpr::MergeImpl(*this, from); + void MergeFrom( const RemoveFlowTaskExpr& from) { + RemoveFlowTaskExpr::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -884,15 +910,15 @@ 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(RemoveFlowTaskExpr* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.RemoveTaskExpr"; + return "greptime.v1.RemoveFlowTaskExpr"; } protected: - explicit RemoveTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit RemoveFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -937,7 +963,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.RemoveFlowTaskExpr) private: class _Internal; @@ -4175,151 +4201,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.RemoveFlowTaskExpr remove_flow_task = 9; +inline bool DdlRequest::_internal_has_remove_flow_task() const { + return expr_case() == kRemoveFlowTask; } -inline bool DdlRequest::has_remove_task() const { - return _internal_has_remove_task(); +inline bool DdlRequest::has_remove_flow_task() const { + return _internal_has_remove_flow_task(); } -inline void DdlRequest::set_has_remove_task() { - _impl_._oneof_case_[0] = kRemoveTask; +inline void DdlRequest::set_has_remove_flow_task() { + _impl_._oneof_case_[0] = kRemoveFlowTask; } -inline void DdlRequest::clear_remove_task() { - if (_internal_has_remove_task()) { +inline void DdlRequest::clear_remove_flow_task() { + if (_internal_has_remove_flow_task()) { if (GetArenaForAllocation() == nullptr) { - delete _impl_.expr_.remove_task_; + delete _impl_.expr_.remove_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::RemoveFlowTaskExpr* DdlRequest::release_remove_flow_task() { + // @@protoc_insertion_point(field_release:greptime.v1.DdlRequest.remove_flow_task) + if (_internal_has_remove_flow_task()) { clear_has_expr(); - ::greptime::v1::RemoveTaskExpr* temp = _impl_.expr_.remove_task_; + ::greptime::v1::RemoveFlowTaskExpr* temp = _impl_.expr_.remove_flow_task_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_.remove_task_ = nullptr; + _impl_.expr_.remove_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::RemoveFlowTaskExpr& DdlRequest::_internal_remove_flow_task() const { + return _internal_has_remove_flow_task() + ? *_impl_.expr_.remove_flow_task_ + : reinterpret_cast< ::greptime::v1::RemoveFlowTaskExpr&>(::greptime::v1::_RemoveFlowTaskExpr_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::RemoveFlowTaskExpr& DdlRequest::remove_flow_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.DdlRequest.remove_flow_task) + return _internal_remove_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::RemoveFlowTaskExpr* DdlRequest::unsafe_arena_release_remove_flow_task() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.DdlRequest.remove_flow_task) + if (_internal_has_remove_flow_task()) { clear_has_expr(); - ::greptime::v1::RemoveTaskExpr* temp = _impl_.expr_.remove_task_; - _impl_.expr_.remove_task_ = nullptr; + ::greptime::v1::RemoveFlowTaskExpr* temp = _impl_.expr_.remove_flow_task_; + _impl_.expr_.remove_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_remove_flow_task(::greptime::v1::RemoveFlowTaskExpr* remove_flow_task) { clear_expr(); - if (remove_task) { - set_has_remove_task(); - _impl_.expr_.remove_task_ = remove_task; + if (remove_flow_task) { + set_has_remove_flow_task(); + _impl_.expr_.remove_flow_task_ = remove_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.remove_flow_task) } -inline ::greptime::v1::RemoveTaskExpr* DdlRequest::_internal_mutable_remove_task() { - if (!_internal_has_remove_task()) { +inline ::greptime::v1::RemoveFlowTaskExpr* DdlRequest::_internal_mutable_remove_flow_task() { + if (!_internal_has_remove_flow_task()) { clear_expr(); - set_has_remove_task(); - _impl_.expr_.remove_task_ = CreateMaybeMessage< ::greptime::v1::RemoveTaskExpr >(GetArenaForAllocation()); + set_has_remove_flow_task(); + _impl_.expr_.remove_flow_task_ = CreateMaybeMessage< ::greptime::v1::RemoveFlowTaskExpr >(GetArenaForAllocation()); } - return _impl_.expr_.remove_task_; + return _impl_.expr_.remove_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::RemoveFlowTaskExpr* DdlRequest::mutable_remove_flow_task() { + ::greptime::v1::RemoveFlowTaskExpr* _msg = _internal_mutable_remove_flow_task(); + // @@protoc_insertion_point(field_mutable:greptime.v1.DdlRequest.remove_flow_task) return _msg; } @@ -4336,44 +4362,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 +4411,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,45 +4461,120 @@ 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) +} + +// repeated string source_tables = 3; +inline int CreateFlowTaskExpr::_internal_source_tables_size() const { + return _impl_.source_tables_.size(); +} +inline int CreateFlowTaskExpr::source_tables_size() const { + return _internal_source_tables_size(); +} +inline void CreateFlowTaskExpr::clear_source_tables() { + _impl_.source_tables_.Clear(); +} +inline std::string* CreateFlowTaskExpr::add_source_tables() { + std::string* _s = _internal_add_source_tables(); + // @@protoc_insertion_point(field_add_mutable:greptime.v1.CreateFlowTaskExpr.source_tables) + return _s; +} +inline const std::string& CreateFlowTaskExpr::_internal_source_tables(int index) const { + return _impl_.source_tables_.Get(index); +} +inline const std::string& CreateFlowTaskExpr::source_tables(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.source_tables) + return _internal_source_tables(index); +} +inline std::string* CreateFlowTaskExpr::mutable_source_tables(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.source_tables) + return _impl_.source_tables_.Mutable(index); +} +inline void CreateFlowTaskExpr::set_source_tables(int index, const std::string& value) { + _impl_.source_tables_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.source_tables) +} +inline void CreateFlowTaskExpr::set_source_tables(int index, std::string&& value) { + _impl_.source_tables_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.source_tables) +} +inline void CreateFlowTaskExpr::set_source_tables(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.source_tables_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:greptime.v1.CreateFlowTaskExpr.source_tables) +} +inline void CreateFlowTaskExpr::set_source_tables(int index, const char* value, size_t size) { + _impl_.source_tables_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:greptime.v1.CreateFlowTaskExpr.source_tables) +} +inline std::string* CreateFlowTaskExpr::_internal_add_source_tables() { + return _impl_.source_tables_.Add(); +} +inline void CreateFlowTaskExpr::add_source_tables(const std::string& value) { + _impl_.source_tables_.Add()->assign(value); + // @@protoc_insertion_point(field_add:greptime.v1.CreateFlowTaskExpr.source_tables) +} +inline void CreateFlowTaskExpr::add_source_tables(std::string&& value) { + _impl_.source_tables_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:greptime.v1.CreateFlowTaskExpr.source_tables) +} +inline void CreateFlowTaskExpr::add_source_tables(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.source_tables_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:greptime.v1.CreateFlowTaskExpr.source_tables) +} +inline void CreateFlowTaskExpr::add_source_tables(const char* value, size_t size) { + _impl_.source_tables_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:greptime.v1.CreateFlowTaskExpr.source_tables) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +CreateFlowTaskExpr::source_tables() const { + // @@protoc_insertion_point(field_list:greptime.v1.CreateFlowTaskExpr.source_tables) + return _impl_.source_tables_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +CreateFlowTaskExpr::mutable_source_tables() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.CreateFlowTaskExpr.source_tables) + return &_impl_.source_tables_; } -// string output_schema_name = 3; -inline void CreateTaskExpr::clear_output_schema_name() { +// string output_schema_name = 4; +inline void CreateFlowTaskExpr::clear_output_schema_name() { _impl_.output_schema_name_.ClearToEmpty(); } -inline const std::string& CreateTaskExpr::output_schema_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateTaskExpr.output_schema_name) +inline const std::string& CreateFlowTaskExpr::output_schema_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.output_schema_name) return _internal_output_schema_name(); } template inline PROTOBUF_ALWAYS_INLINE -void CreateTaskExpr::set_output_schema_name(ArgT0&& arg0, ArgT... args) { +void CreateFlowTaskExpr::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) + // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.output_schema_name) } -inline std::string* CreateTaskExpr::mutable_output_schema_name() { +inline std::string* CreateFlowTaskExpr::mutable_output_schema_name() { std::string* _s = _internal_mutable_output_schema_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateTaskExpr.output_schema_name) + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.output_schema_name) return _s; } -inline const std::string& CreateTaskExpr::_internal_output_schema_name() const { +inline const std::string& CreateFlowTaskExpr::_internal_output_schema_name() const { return _impl_.output_schema_name_.Get(); } -inline void CreateTaskExpr::_internal_set_output_schema_name(const std::string& value) { +inline void CreateFlowTaskExpr::_internal_set_output_schema_name(const std::string& value) { _impl_.output_schema_name_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::_internal_mutable_output_schema_name() { +inline std::string* CreateFlowTaskExpr::_internal_mutable_output_schema_name() { return _impl_.output_schema_name_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::release_output_schema_name() { - // @@protoc_insertion_point(field_release:greptime.v1.CreateTaskExpr.output_schema_name) +inline std::string* CreateFlowTaskExpr::release_output_schema_name() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.output_schema_name) return _impl_.output_schema_name_.Release(); } -inline void CreateTaskExpr::set_allocated_output_schema_name(std::string* output_schema_name) { +inline void CreateFlowTaskExpr::set_allocated_output_schema_name(std::string* output_schema_name) { if (output_schema_name != nullptr) { } else { @@ -4485,45 +4586,45 @@ inline void CreateTaskExpr::set_allocated_output_schema_name(std::string* output _impl_.output_schema_name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateTaskExpr.output_schema_name) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.output_schema_name) } -// string output_table_name = 4; -inline void CreateTaskExpr::clear_output_table_name() { +// string output_table_name = 5; +inline void CreateFlowTaskExpr::clear_output_table_name() { _impl_.output_table_name_.ClearToEmpty(); } -inline const std::string& CreateTaskExpr::output_table_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateTaskExpr.output_table_name) +inline const std::string& CreateFlowTaskExpr::output_table_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.output_table_name) return _internal_output_table_name(); } template inline PROTOBUF_ALWAYS_INLINE -void CreateTaskExpr::set_output_table_name(ArgT0&& arg0, ArgT... args) { +void CreateFlowTaskExpr::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) + // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.output_table_name) } -inline std::string* CreateTaskExpr::mutable_output_table_name() { +inline std::string* CreateFlowTaskExpr::mutable_output_table_name() { std::string* _s = _internal_mutable_output_table_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateTaskExpr.output_table_name) + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.output_table_name) return _s; } -inline const std::string& CreateTaskExpr::_internal_output_table_name() const { +inline const std::string& CreateFlowTaskExpr::_internal_output_table_name() const { return _impl_.output_table_name_.Get(); } -inline void CreateTaskExpr::_internal_set_output_table_name(const std::string& value) { +inline void CreateFlowTaskExpr::_internal_set_output_table_name(const std::string& value) { _impl_.output_table_name_.Set(value, GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::_internal_mutable_output_table_name() { +inline std::string* CreateFlowTaskExpr::_internal_mutable_output_table_name() { return _impl_.output_table_name_.Mutable(GetArenaForAllocation()); } -inline std::string* CreateTaskExpr::release_output_table_name() { - // @@protoc_insertion_point(field_release:greptime.v1.CreateTaskExpr.output_table_name) +inline std::string* CreateFlowTaskExpr::release_output_table_name() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.output_table_name) return _impl_.output_table_name_.Release(); } -inline void CreateTaskExpr::set_allocated_output_table_name(std::string* output_table_name) { +inline void CreateFlowTaskExpr::set_allocated_output_table_name(std::string* output_table_name) { if (output_table_name != nullptr) { } else { @@ -4535,65 +4636,65 @@ inline void CreateTaskExpr::set_allocated_output_table_name(std::string* output_ _impl_.output_table_name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateTaskExpr.output_table_name) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.output_table_name) } -// bool create_if_not_exists = 5; -inline void CreateTaskExpr::clear_create_if_not_exists() { +// bool create_if_not_exists = 6; +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() { +// string expire_when = 7; +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 +4706,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() { +// string comment = 8; +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 +4756,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() { +// string sql = 9; +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 +4806,78 @@ 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 { +// map task_options = 10; +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 +// RemoveFlowTaskExpr // string catalog_name = 1; -inline void RemoveTaskExpr::clear_catalog_name() { +inline void RemoveFlowTaskExpr::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& RemoveFlowTaskExpr::catalog_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.RemoveFlowTaskExpr.catalog_name) return _internal_catalog_name(); } template inline PROTOBUF_ALWAYS_INLINE -void RemoveTaskExpr::set_catalog_name(ArgT0&& arg0, ArgT... args) { +void RemoveFlowTaskExpr::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.RemoveFlowTaskExpr.catalog_name) } -inline std::string* RemoveTaskExpr::mutable_catalog_name() { +inline std::string* RemoveFlowTaskExpr::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.RemoveFlowTaskExpr.catalog_name) return _s; } -inline const std::string& RemoveTaskExpr::_internal_catalog_name() const { +inline const std::string& RemoveFlowTaskExpr::_internal_catalog_name() const { return _impl_.catalog_name_.Get(); } -inline void RemoveTaskExpr::_internal_set_catalog_name(const std::string& value) { +inline void RemoveFlowTaskExpr::_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* RemoveFlowTaskExpr::_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* RemoveFlowTaskExpr::release_catalog_name() { + // @@protoc_insertion_point(field_release:greptime.v1.RemoveFlowTaskExpr.catalog_name) return _impl_.catalog_name_.Release(); } -inline void RemoveTaskExpr::set_allocated_catalog_name(std::string* catalog_name) { +inline void RemoveFlowTaskExpr::set_allocated_catalog_name(std::string* catalog_name) { if (catalog_name != nullptr) { } else { @@ -4788,45 +4889,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.RemoveFlowTaskExpr.catalog_name) } // string task_name = 2; -inline void RemoveTaskExpr::clear_task_name() { +inline void RemoveFlowTaskExpr::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& RemoveFlowTaskExpr::task_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.RemoveFlowTaskExpr.task_name) return _internal_task_name(); } template inline PROTOBUF_ALWAYS_INLINE -void RemoveTaskExpr::set_task_name(ArgT0&& arg0, ArgT... args) { +void RemoveFlowTaskExpr::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.RemoveFlowTaskExpr.task_name) } -inline std::string* RemoveTaskExpr::mutable_task_name() { +inline std::string* RemoveFlowTaskExpr::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.RemoveFlowTaskExpr.task_name) return _s; } -inline const std::string& RemoveTaskExpr::_internal_task_name() const { +inline const std::string& RemoveFlowTaskExpr::_internal_task_name() const { return _impl_.task_name_.Get(); } -inline void RemoveTaskExpr::_internal_set_task_name(const std::string& value) { +inline void RemoveFlowTaskExpr::_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* RemoveFlowTaskExpr::_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* RemoveFlowTaskExpr::release_task_name() { + // @@protoc_insertion_point(field_release:greptime.v1.RemoveFlowTaskExpr.task_name) return _impl_.task_name_.Release(); } -inline void RemoveTaskExpr::set_allocated_task_name(std::string* task_name) { +inline void RemoveFlowTaskExpr::set_allocated_task_name(std::string* task_name) { if (task_name != nullptr) { } else { @@ -4838,7 +4939,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.RemoveFlowTaskExpr.task_name) } // ------------------------------------------------------------------- diff --git a/c++/greptime/v1/flow/server.pb.cc b/c++/greptime/v1/flow/server.pb.cc index d42d7c80..b8c42b13 100644 --- a/c++/greptime/v1/flow/server.pb.cc +++ b/c++/greptime/v1/flow/server.pb.cc @@ -104,7 +104,8 @@ struct FlowCreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowCreateRequest_TaskOptionsEntry_DoNotUseDefaultTypeInternal _FlowCreateRequest_TaskOptionsEntry_DoNotUse_default_instance_; PROTOBUF_CONSTEXPR FlowCreateRequest::FlowCreateRequest( ::_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{}} @@ -136,7 +137,7 @@ struct FlowRemoveRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowRemoveRequestDefaultTypeInternal _FlowRemoveRequest_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() @@ -216,6 +217,7 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT ~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_.source_table_ids_), 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_), @@ -245,8 +247,8 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 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)}, + { 68, -1, -1, sizeof(::greptime::v1::flow::FlowRemoveRequest)}, + { 75, -1, -1, sizeof(::greptime::v1::flow::TaskId)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -278,24 +280,25 @@ const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PRO "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" + ":\0028\001\"\356\002\n\021FlowCreateRequest\022)\n\007task_id\030\001 " + "\001(\0132\030.greptime.v1.flow.TaskId\022.\n\020source_" + "table_ids\030\002 \003(\0132\024.greptime.v1.TableId\022-\n" + "\017output_table_id\030\003 \001(\0132\024.greptime.v1.Tab" + "leId\022\034\n\024create_if_not_exists\030\004 \001(\010\022\023\n\013ex" + "pire_when\030\005 \001(\t\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030" + "\007 \001(\t\022J\n\014task_options\030\010 \003(\01324.greptime.v" + "1.flow.FlowCreateRequest.TaskOptionsEntr" + "y\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\030\002 \001(\t:\0028\001\">\n\021FlowRemoveRequest\022)\n\007ta" + "sk_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\022HandleCr" + "eateRemove\022\035.greptime.v1.flow.FlowReques" + "t\032\036.greptime.v1.flow.FlowResponse\022W\n\023Han" + "dleMirrorRequest\022 .greptime.v1.flow.Inse" + "rtRequests\032\036.greptime.v1.flow.FlowRespon" + "seBY\n\023io.greptime.v1.flowB\006ServerZ:githu" + "b.com/GreptimeTeam/greptime-proto/go/gre" + "ptime/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 +307,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, 1381, 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, @@ -1413,6 +1416,9 @@ const ::greptime::v1::TableId& FlowCreateRequest::_Internal::output_table_id(const FlowCreateRequest* msg) { return *msg->_impl_.output_table_id_; } +void FlowCreateRequest::clear_source_table_ids() { + _impl_.source_table_ids_.Clear(); +} void FlowCreateRequest::clear_output_table_id() { if (GetArenaForAllocation() == nullptr && _impl_.output_table_id_ != nullptr) { delete _impl_.output_table_id_; @@ -1432,7 +1438,8 @@ FlowCreateRequest::FlowCreateRequest(const FlowCreateRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { FlowCreateRequest* 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_){} @@ -1482,7 +1489,8 @@ inline void FlowCreateRequest::SharedCtor( (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_){} @@ -1517,6 +1525,7 @@ FlowCreateRequest::~FlowCreateRequest() { inline void FlowCreateRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.source_table_ids_.~RepeatedPtrField(); _impl_.task_options_.Destruct(); _impl_.task_options_.~MapField(); _impl_.expire_when_.Destroy(); @@ -1540,6 +1549,7 @@ void FlowCreateRequest::Clear() { // 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(); @@ -1570,25 +1580,38 @@ 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 -= 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; + // .greptime.v1.TableId output_table_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_output_table_id(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // bool create_if_not_exists = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + // bool create_if_not_exists = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { _impl_.create_if_not_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // string expire_when = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + // string expire_when = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { auto str = _internal_mutable_expire_when(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); @@ -1596,9 +1619,9 @@ const char* FlowCreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont } else goto handle_unusual; continue; - // string comment = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + // string comment = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { auto str = _internal_mutable_comment(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); @@ -1606,9 +1629,9 @@ const char* FlowCreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont } else goto handle_unusual; continue; - // string sql = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + // 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); @@ -1616,16 +1639,16 @@ const char* FlowCreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont } else goto handle_unusual; continue; - // map task_options = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + // 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; @@ -1665,50 +1688,58 @@ uint8_t* FlowCreateRequest::_InternalSerialize( _Internal::task_id(this).GetCachedSize(), target, stream); } - // .greptime.v1.TableId output_table_id = 2; + // 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, repfield, repfield.GetCachedSize(), target, stream); + } + + // .greptime.v1.TableId output_table_id = 3; if (this->_internal_has_output_table_id()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::output_table_id(this), + InternalWriteMessage(3, _Internal::output_table_id(this), _Internal::output_table_id(this).GetCachedSize(), target, stream); } - // bool create_if_not_exists = 3; + // 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"); 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"); 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"); 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; @@ -1727,12 +1758,12 @@ uint8_t* FlowCreateRequest::_InternalSerialize( 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); } } @@ -1754,7 +1785,14 @@ size_t FlowCreateRequest::ByteSizeLong() const { // 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 @@ -1763,21 +1801,21 @@ size_t FlowCreateRequest::ByteSizeLong() const { total_size += FlowCreateRequest_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 +1829,14 @@ size_t FlowCreateRequest::ByteSizeLong() const { *_impl_.task_id_); } - // .greptime.v1.TableId output_table_id = 2; + // .greptime.v1.TableId output_table_id = 3; if (this->_internal_has_output_table_id()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.output_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; } @@ -1821,6 +1859,7 @@ void FlowCreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons 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()); @@ -1861,6 +1900,7 @@ void FlowCreateRequest::InternalSwap(FlowCreateRequest* other) { 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, @@ -2110,7 +2150,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 +2178,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 +2188,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 +2225,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 +2247,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_); diff --git a/c++/greptime/v1/flow/server.pb.h b/c++/greptime/v1/flow/server.pb.h index 3302340d..89710025 100644 --- a/c++/greptime/v1/flow/server.pb.h +++ b/c++/greptime/v1/flow/server.pb.h @@ -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, + kOutputTableIdFieldNumber = 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,7 +1117,7 @@ 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; + // .greptime.v1.TableId output_table_id = 3; bool has_output_table_id() const; private: bool _internal_has_output_table_id() const; @@ -1116,7 +1135,7 @@ class FlowCreateRequest final : ::greptime::v1::TableId* output_table_id); ::greptime::v1::TableId* unsafe_arena_release_output_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); @@ -1133,6 +1152,7 @@ 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, std::string, std::string, @@ -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_; }; @@ -2051,7 +2071,44 @@ inline void FlowCreateRequest::set_allocated_task_id(::greptime::v1::flow::TaskI // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowCreateRequest.task_id) } -// .greptime.v1.TableId output_table_id = 2; +// repeated .greptime.v1.TableId source_table_ids = 2; +inline int FlowCreateRequest::_internal_source_table_ids_size() const { + return _impl_.source_table_ids_.size(); +} +inline int FlowCreateRequest::source_table_ids_size() const { + return _internal_source_table_ids_size(); +} +inline ::greptime::v1::TableId* FlowCreateRequest::mutable_source_table_ids(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowCreateRequest.source_table_ids) + return _impl_.source_table_ids_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableId >* +FlowCreateRequest::mutable_source_table_ids() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.flow.FlowCreateRequest.source_table_ids) + return &_impl_.source_table_ids_; +} +inline const ::greptime::v1::TableId& FlowCreateRequest::_internal_source_table_ids(int index) const { + return _impl_.source_table_ids_.Get(index); +} +inline const ::greptime::v1::TableId& FlowCreateRequest::source_table_ids(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.flow.FlowCreateRequest.source_table_ids) + return _internal_source_table_ids(index); +} +inline ::greptime::v1::TableId* FlowCreateRequest::_internal_add_source_table_ids() { + return _impl_.source_table_ids_.Add(); +} +inline ::greptime::v1::TableId* FlowCreateRequest::add_source_table_ids() { + ::greptime::v1::TableId* _add = _internal_add_source_table_ids(); + // @@protoc_insertion_point(field_add:greptime.v1.flow.FlowCreateRequest.source_table_ids) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableId >& +FlowCreateRequest::source_table_ids() const { + // @@protoc_insertion_point(field_list:greptime.v1.flow.FlowCreateRequest.source_table_ids) + return _impl_.source_table_ids_; +} + +// .greptime.v1.TableId output_table_id = 3; inline bool FlowCreateRequest::_internal_has_output_table_id() const { return this != internal_default_instance() && _impl_.output_table_id_ != nullptr; } @@ -2136,7 +2193,7 @@ inline void FlowCreateRequest::set_allocated_output_table_id(::greptime::v1::Tab // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowCreateRequest.output_table_id) } -// bool create_if_not_exists = 3; +// bool create_if_not_exists = 4; inline void FlowCreateRequest::clear_create_if_not_exists() { _impl_.create_if_not_exists_ = false; } @@ -2156,7 +2213,7 @@ inline void FlowCreateRequest::set_create_if_not_exists(bool value) { // @@protoc_insertion_point(field_set:greptime.v1.flow.FlowCreateRequest.create_if_not_exists) } -// string expire_when = 4; +// string expire_when = 5; inline void FlowCreateRequest::clear_expire_when() { _impl_.expire_when_.ClearToEmpty(); } @@ -2206,7 +2263,7 @@ inline void FlowCreateRequest::set_allocated_expire_when(std::string* expire_whe // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowCreateRequest.expire_when) } -// string comment = 5; +// string comment = 6; inline void FlowCreateRequest::clear_comment() { _impl_.comment_.ClearToEmpty(); } @@ -2256,7 +2313,7 @@ inline void FlowCreateRequest::set_allocated_comment(std::string* comment) { // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowCreateRequest.comment) } -// string sql = 6; +// string sql = 7; inline void FlowCreateRequest::clear_sql() { _impl_.sql_.ClearToEmpty(); } @@ -2306,7 +2363,7 @@ inline void FlowCreateRequest::set_allocated_sql(std::string* sql) { // @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowCreateRequest.sql) } -// map task_options = 7; +// map task_options = 8; inline int FlowCreateRequest::_internal_task_options_size() const { return _impl_.task_options_.size(); } @@ -2433,22 +2490,22 @@ inline void FlowRemoveRequest::set_allocated_task_id(::greptime::v1::flow::TaskI // 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/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 67be5f1c..b411c0a3 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -96,8 +96,8 @@ type DdlRequest struct { // *DdlRequest_Alter // *DdlRequest_DropTable // *DdlRequest_TruncateTable - // *DdlRequest_CreateTask - // *DdlRequest_RemoveTask + // *DdlRequest_CreateFlowTask + // *DdlRequest_RemoveFlowTask 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) GetRemoveFlowTask() *RemoveFlowTaskExpr { + if x, ok := x.GetExpr().(*DdlRequest_RemoveFlowTask); ok { + return x.RemoveFlowTask } 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_RemoveFlowTask struct { + RemoveFlowTask *RemoveFlowTaskExpr `protobuf:"bytes,9,opt,name=remove_flow_task,json=removeFlowTask,proto3,oneof"` } func (*DdlRequest_CreateDatabase) isDdlRequest_Expr() {} @@ -231,29 +231,30 @@ 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_RemoveFlowTask) 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{} + SourceTables []string `protobuf:"bytes,3,rep,name=source_tables,json=sourceTables,proto3" json:"source_tables,omitempty"` + OutputSchemaName string `protobuf:"bytes,4,opt,name=output_schema_name,json=outputSchemaName,proto3" json:"output_schema_name,omitempty"` + OutputTableName string `protobuf:"bytes,5,opt,name=output_table_name,json=outputTableName,proto3" json:"output_table_name,omitempty"` + CreateIfNotExists bool `protobuf:"varint,6,opt,name=create_if_not_exists,json=createIfNotExists,proto3" json:"create_if_not_exists,omitempty"` + ExpireWhen string `protobuf:"bytes,7,opt,name=expire_when,json=expireWhen,proto3" json:"expire_when,omitempty"` + Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"` + Sql string `protobuf:"bytes,9,opt,name=sql,proto3" json:"sql,omitempty"` + TaskOptions map[string]string `protobuf:"bytes,10,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 +262,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,68 +280,75 @@ 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) GetSourceTables() []string { + if x != nil { + return x.SourceTables + } + return nil +} + +func (x *CreateFlowTaskExpr) GetOutputSchemaName() string { if x != nil { return x.OutputSchemaName } return "" } -func (x *CreateTaskExpr) GetOutputTableName() string { +func (x *CreateFlowTaskExpr) GetOutputTableName() string { if x != nil { return x.OutputTableName } return "" } -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 } @@ -348,7 +356,7 @@ func (x *CreateTaskExpr) GetTaskOptions() map[string]string { } // Remove a flow task. -type RemoveTaskExpr struct { +type RemoveFlowTaskExpr struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -357,8 +365,8 @@ type RemoveTaskExpr struct { TaskName string `protobuf:"bytes,2,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"` } -func (x *RemoveTaskExpr) Reset() { - *x = RemoveTaskExpr{} +func (x *RemoveFlowTaskExpr) Reset() { + *x = RemoveFlowTaskExpr{} if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_ddl_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -366,13 +374,13 @@ func (x *RemoveTaskExpr) Reset() { } } -func (x *RemoveTaskExpr) String() string { +func (x *RemoveFlowTaskExpr) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RemoveTaskExpr) ProtoMessage() {} +func (*RemoveFlowTaskExpr) ProtoMessage() {} -func (x *RemoveTaskExpr) ProtoReflect() protoreflect.Message { +func (x *RemoveFlowTaskExpr) 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 +392,19 @@ func (x *RemoveTaskExpr) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveTaskExpr.ProtoReflect.Descriptor instead. -func (*RemoveTaskExpr) Descriptor() ([]byte, []int) { +// Deprecated: Use RemoveFlowTaskExpr.ProtoReflect.Descriptor instead. +func (*RemoveFlowTaskExpr) Descriptor() ([]byte, []int) { return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{2} } -func (x *RemoveTaskExpr) GetCatalogName() string { +func (x *RemoveFlowTaskExpr) GetCatalogName() string { if x != nil { return x.CatalogName } return "" } -func (x *RemoveTaskExpr) GetTaskName() string { +func (x *RemoveFlowTaskExpr) GetTaskName() string { if x != nil { return x.TaskName } @@ -1380,7 +1388,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, 0xf3, 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 +1410,216 @@ 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, - 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, - 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, + 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, + 0x4b, 0x0a, 0x10, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, + 0x61, 0x73, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x6c, + 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, + 0x65, 0x78, 0x70, 0x72, 0x22, 0xe6, 0x03, 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, 0x23, 0x0a, 0x0d, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, + 0x12, 0x2c, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 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, 0x05, 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, 0x06, 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, 0x07, 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, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x09, 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, 0x0a, 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, 0xa7, 0x01, - 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x54, 0x0a, + 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 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, 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 ( @@ -1627,8 +1639,8 @@ var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 20) 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 + (*CreateFlowTaskExpr)(nil), // 2: greptime.v1.CreateFlowTaskExpr + (*RemoveFlowTaskExpr)(nil), // 3: greptime.v1.RemoveFlowTaskExpr (*CreateTableExpr)(nil), // 4: greptime.v1.CreateTableExpr (*AlterExpr)(nil), // 5: greptime.v1.AlterExpr (*DropTableExpr)(nil), // 6: greptime.v1.DropTableExpr @@ -1643,7 +1655,7 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*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, // 18: greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry nil, // 19: greptime.v1.CreateTableExpr.TableOptionsEntry nil, // 20: greptime.v1.CreateDatabaseExpr.OptionsEntry (ColumnDataType)(0), // 21: greptime.v1.ColumnDataType @@ -1656,9 +1668,9 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 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 + 2, // 5: greptime.v1.DdlRequest.create_flow_task:type_name -> greptime.v1.CreateFlowTaskExpr + 3, // 6: greptime.v1.DdlRequest.remove_flow_task:type_name -> greptime.v1.RemoveFlowTaskExpr + 18, // 7: greptime.v1.CreateFlowTaskExpr.task_options:type_name -> greptime.v1.CreateFlowTaskExpr.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 @@ -1703,7 +1715,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 +1727,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.(*RemoveFlowTaskExpr); i { case 0: return &v.state case 1: @@ -1901,8 +1913,8 @@ 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_RemoveFlowTask)(nil), } file_greptime_v1_ddl_proto_msgTypes[4].OneofWrappers = []interface{}{ (*AlterExpr_AddColumns)(nil), diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index 0bf61026..aecb0672 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -94,34 +94,34 @@ public interface DdlRequestOrBuilder extends io.greptime.v1.Ddl.TruncateTableExprOrBuilder getTruncateTableOrBuilder(); /** - * .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.RemoveFlowTaskExpr remove_flow_task = 9; + * @return Whether the removeFlowTask field is set. */ - boolean hasRemoveTask(); + boolean hasRemoveFlowTask(); /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; - * @return The removeTask. + * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * @return The removeFlowTask. */ - io.greptime.v1.Ddl.RemoveTaskExpr getRemoveTask(); + io.greptime.v1.Ddl.RemoveFlowTaskExpr getRemoveFlowTask(); /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; */ - io.greptime.v1.Ddl.RemoveTaskExprOrBuilder getRemoveTaskOrBuilder(); + io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder getRemoveFlowTaskOrBuilder(); 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.RemoveFlowTaskExpr.Builder subBuilder = null; if (exprCase_ == 9) { - subBuilder = ((io.greptime.v1.Ddl.RemoveTaskExpr) expr_).toBuilder(); + subBuilder = ((io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_).toBuilder(); } expr_ = - input.readMessage(io.greptime.v1.Ddl.RemoveTaskExpr.parser(), extensionRegistry); + input.readMessage(io.greptime.v1.Ddl.RemoveFlowTaskExpr.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((io.greptime.v1.Ddl.RemoveTaskExpr) expr_); + subBuilder.mergeFrom((io.greptime.v1.Ddl.RemoveFlowTaskExpr) 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), + REMOVE_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 REMOVE_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 REMOVE_FLOW_TASK_FIELD_NUMBER = 9; /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; - * @return Whether the removeTask field is set. + * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * @return Whether the removeFlowTask field is set. */ @java.lang.Override - public boolean hasRemoveTask() { + public boolean hasRemoveFlowTask() { return exprCase_ == 9; } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; - * @return The removeTask. + * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * @return The removeFlowTask. */ @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExpr getRemoveTask() { + public io.greptime.v1.Ddl.RemoveFlowTaskExpr getRemoveFlowTask() { if (exprCase_ == 9) { - return (io.greptime.v1.Ddl.RemoveTaskExpr) expr_; + return (io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance(); } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; */ @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExprOrBuilder getRemoveTaskOrBuilder() { + public io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder getRemoveFlowTaskOrBuilder() { if (exprCase_ == 9) { - return (io.greptime.v1.Ddl.RemoveTaskExpr) expr_; + return (io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.RemoveFlowTaskExpr.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.RemoveFlowTaskExpr) 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.RemoveFlowTaskExpr) 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 (!getRemoveFlowTask() + .equals(other.getRemoveFlowTask())) 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) + REMOVE_FLOW_TASK_FIELD_NUMBER; + hash = (53 * hash) + getRemoveFlowTask().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 (removeFlowTaskBuilder_ == null) { result.expr_ = expr_; } else { - result.expr_ = removeTaskBuilder_.build(); + result.expr_ = removeFlowTaskBuilder_.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 REMOVE_FLOW_TASK: { + mergeRemoveFlowTask(other.getRemoveFlowTask()); 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.RemoveFlowTaskExpr, io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder, io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder> removeFlowTaskBuilder_; /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; - * @return Whether the removeTask field is set. + * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * @return Whether the removeFlowTask field is set. */ @java.lang.Override - public boolean hasRemoveTask() { + public boolean hasRemoveFlowTask() { return exprCase_ == 9; } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; - * @return The removeTask. + * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * @return The removeFlowTask. */ @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExpr getRemoveTask() { - if (removeTaskBuilder_ == null) { + public io.greptime.v1.Ddl.RemoveFlowTaskExpr getRemoveFlowTask() { + if (removeFlowTaskBuilder_ == null) { if (exprCase_ == 9) { - return (io.greptime.v1.Ddl.RemoveTaskExpr) expr_; + return (io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance(); } else { if (exprCase_ == 9) { - return removeTaskBuilder_.getMessage(); + return removeFlowTaskBuilder_.getMessage(); } - return io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance(); } } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; */ - public Builder setRemoveTask(io.greptime.v1.Ddl.RemoveTaskExpr value) { - if (removeTaskBuilder_ == null) { + public Builder setRemoveFlowTask(io.greptime.v1.Ddl.RemoveFlowTaskExpr value) { + if (removeFlowTaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { - removeTaskBuilder_.setMessage(value); + removeFlowTaskBuilder_.setMessage(value); } exprCase_ = 9; return this; } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; */ - public Builder setRemoveTask( - io.greptime.v1.Ddl.RemoveTaskExpr.Builder builderForValue) { - if (removeTaskBuilder_ == null) { + public Builder setRemoveFlowTask( + io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder builderForValue) { + if (removeFlowTaskBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { - removeTaskBuilder_.setMessage(builderForValue.build()); + removeFlowTaskBuilder_.setMessage(builderForValue.build()); } exprCase_ = 9; return this; } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; */ - public Builder mergeRemoveTask(io.greptime.v1.Ddl.RemoveTaskExpr value) { - if (removeTaskBuilder_ == null) { + public Builder mergeRemoveFlowTask(io.greptime.v1.Ddl.RemoveFlowTaskExpr value) { + if (removeFlowTaskBuilder_ == 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.RemoveFlowTaskExpr.getDefaultInstance()) { + expr_ = io.greptime.v1.Ddl.RemoveFlowTaskExpr.newBuilder((io.greptime.v1.Ddl.RemoveFlowTaskExpr) 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); + removeFlowTaskBuilder_.mergeFrom(value); } else { - removeTaskBuilder_.setMessage(value); + removeFlowTaskBuilder_.setMessage(value); } } exprCase_ = 9; return this; } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; */ - public Builder clearRemoveTask() { - if (removeTaskBuilder_ == null) { + public Builder clearRemoveFlowTask() { + if (removeFlowTaskBuilder_ == null) { if (exprCase_ == 9) { exprCase_ = 0; expr_ = null; @@ -2031,50 +2031,50 @@ public Builder clearRemoveTask() { exprCase_ = 0; expr_ = null; } - removeTaskBuilder_.clear(); + removeFlowTaskBuilder_.clear(); } return this; } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; */ - public io.greptime.v1.Ddl.RemoveTaskExpr.Builder getRemoveTaskBuilder() { - return getRemoveTaskFieldBuilder().getBuilder(); + public io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder getRemoveFlowTaskBuilder() { + return getRemoveFlowTaskFieldBuilder().getBuilder(); } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.RemoveFlowTaskExpr remove_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.RemoveFlowTaskExprOrBuilder getRemoveFlowTaskOrBuilder() { + if ((exprCase_ == 9) && (removeFlowTaskBuilder_ != null)) { + return removeFlowTaskBuilder_.getMessageOrBuilder(); } else { if (exprCase_ == 9) { - return (io.greptime.v1.Ddl.RemoveTaskExpr) expr_; + return (io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance(); } } /** - * .greptime.v1.RemoveTaskExpr remove_task = 9; + * .greptime.v1.RemoveFlowTaskExpr remove_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.RemoveFlowTaskExpr, io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder, io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder> + getRemoveFlowTaskFieldBuilder() { + if (removeFlowTaskBuilder_ == null) { if (!(exprCase_ == 9)) { - expr_ = io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + expr_ = io.greptime.v1.Ddl.RemoveFlowTaskExpr.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_, + removeFlowTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.RemoveFlowTaskExpr, io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder, io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder>( + (io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_, getParentForChildren(), isClean()); expr_ = null; } exprCase_ = 9; onChanged();; - return removeTaskBuilder_; + return removeFlowTaskBuilder_; } @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,77 +2158,102 @@ public interface CreateTaskExprOrBuilder extends getTaskNameBytes(); /** - * string output_schema_name = 3; + * repeated string source_tables = 3; + * @return A list containing the sourceTables. + */ + java.util.List + getSourceTablesList(); + /** + * repeated string source_tables = 3; + * @return The count of sourceTables. + */ + int getSourceTablesCount(); + /** + * repeated string source_tables = 3; + * @param index The index of the element to return. + * @return The sourceTables at the given index. + */ + java.lang.String getSourceTables(int index); + /** + * repeated string source_tables = 3; + * @param index The index of the value to return. + * @return The bytes of the sourceTables at the given index. + */ + com.google.protobuf.ByteString + getSourceTablesBytes(int index); + + /** + * string output_schema_name = 4; * @return The outputSchemaName. */ java.lang.String getOutputSchemaName(); /** - * string output_schema_name = 3; + * string output_schema_name = 4; * @return The bytes for outputSchemaName. */ com.google.protobuf.ByteString getOutputSchemaNameBytes(); /** - * string output_table_name = 4; + * string output_table_name = 5; * @return The outputTableName. */ java.lang.String getOutputTableName(); /** - * string output_table_name = 4; + * string output_table_name = 5; * @return The bytes for outputTableName. */ com.google.protobuf.ByteString getOutputTableNameBytes(); /** - * bool create_if_not_exists = 5; + * bool create_if_not_exists = 6; * @return The createIfNotExists. */ boolean getCreateIfNotExists(); /** - * string expire_when = 6; + * string expire_when = 7; * @return The expireWhen. */ java.lang.String getExpireWhen(); /** - * string expire_when = 6; + * string expire_when = 7; * @return The bytes for expireWhen. */ com.google.protobuf.ByteString getExpireWhenBytes(); /** - * string comment = 7; + * string comment = 8; * @return The comment. */ java.lang.String getComment(); /** - * string comment = 7; + * string comment = 8; * @return The bytes for comment. */ com.google.protobuf.ByteString getCommentBytes(); /** - * string sql = 8; + * string sql = 9; * @return The sql. */ java.lang.String getSql(); /** - * string sql = 8; + * string sql = 9; * @return The bytes for sql. */ com.google.protobuf.ByteString getSqlBytes(); /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ int getTaskOptionsCount(); /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ boolean containsTaskOptions( java.lang.String key); @@ -2239,12 +2264,12 @@ boolean containsTaskOptions( java.util.Map getTaskOptions(); /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ java.util.Map getTaskOptionsMap(); /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ /* nullable */ @@ -2253,7 +2278,7 @@ java.lang.String getTaskOptionsOrDefault( /* nullable */ java.lang.String defaultValue); /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ java.lang.String getTaskOptionsOrThrow( @@ -2264,20 +2289,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_ = ""; + sourceTables_ = com.google.protobuf.LazyStringArrayList.EMPTY; outputSchemaName_ = ""; outputTableName_ = ""; expireWhen_ = ""; @@ -2289,7 +2315,7 @@ private CreateTaskExpr() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new CreateTaskExpr(); + return new CreateFlowTaskExpr(); } @java.lang.Override @@ -2297,7 +2323,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 { @@ -2330,44 +2356,53 @@ private CreateTaskExpr( } case 26: { java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sourceTables_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sourceTables_.add(s); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); outputSchemaName_ = s; break; } - case 34: { + case 42: { java.lang.String s = input.readStringRequireUtf8(); outputTableName_ = s; break; } - case 40: { + case 48: { createIfNotExists_ = input.readBool(); break; } - case 50: { + case 58: { java.lang.String s = input.readStringRequireUtf8(); expireWhen_ = s; break; } - case 58: { + case 66: { java.lang.String s = input.readStringRequireUtf8(); comment_ = s; break; } - case 66: { + case 74: { java.lang.String s = input.readStringRequireUtf8(); sql_ = s; break; } - case 74: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + case 82: { + 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 +2428,16 @@ private CreateTaskExpr( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + sourceTables_ = sourceTables_.getUnmodifiableView(); + } 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"}) @@ -2407,7 +2445,7 @@ private CreateTaskExpr( protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { - case 9: + case 10: return internalGetTaskOptions(); default: throw new RuntimeException( @@ -2417,9 +2455,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,10 +2536,45 @@ public java.lang.String getTaskName() { } } - public static final int OUTPUT_SCHEMA_NAME_FIELD_NUMBER = 3; + public static final int SOURCE_TABLES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList sourceTables_; + /** + * repeated string source_tables = 3; + * @return A list containing the sourceTables. + */ + public com.google.protobuf.ProtocolStringList + getSourceTablesList() { + return sourceTables_; + } + /** + * repeated string source_tables = 3; + * @return The count of sourceTables. + */ + public int getSourceTablesCount() { + return sourceTables_.size(); + } + /** + * repeated string source_tables = 3; + * @param index The index of the element to return. + * @return The sourceTables at the given index. + */ + public java.lang.String getSourceTables(int index) { + return sourceTables_.get(index); + } + /** + * repeated string source_tables = 3; + * @param index The index of the value to return. + * @return The bytes of the sourceTables at the given index. + */ + public com.google.protobuf.ByteString + getSourceTablesBytes(int index) { + return sourceTables_.getByteString(index); + } + + public static final int OUTPUT_SCHEMA_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object outputSchemaName_; /** - * string output_schema_name = 3; + * string output_schema_name = 4; * @return The outputSchemaName. */ @java.lang.Override @@ -2518,7 +2591,7 @@ public java.lang.String getOutputSchemaName() { } } /** - * string output_schema_name = 3; + * string output_schema_name = 4; * @return The bytes for outputSchemaName. */ @java.lang.Override @@ -2536,10 +2609,10 @@ public java.lang.String getOutputSchemaName() { } } - public static final int OUTPUT_TABLE_NAME_FIELD_NUMBER = 4; + public static final int OUTPUT_TABLE_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object outputTableName_; /** - * string output_table_name = 4; + * string output_table_name = 5; * @return The outputTableName. */ @java.lang.Override @@ -2556,7 +2629,7 @@ public java.lang.String getOutputTableName() { } } /** - * string output_table_name = 4; + * string output_table_name = 5; * @return The bytes for outputTableName. */ @java.lang.Override @@ -2574,10 +2647,10 @@ public java.lang.String getOutputTableName() { } } - public static final int CREATE_IF_NOT_EXISTS_FIELD_NUMBER = 5; + public static final int CREATE_IF_NOT_EXISTS_FIELD_NUMBER = 6; private boolean createIfNotExists_; /** - * bool create_if_not_exists = 5; + * bool create_if_not_exists = 6; * @return The createIfNotExists. */ @java.lang.Override @@ -2585,10 +2658,10 @@ public boolean getCreateIfNotExists() { return createIfNotExists_; } - public static final int EXPIRE_WHEN_FIELD_NUMBER = 6; + public static final int EXPIRE_WHEN_FIELD_NUMBER = 7; private volatile java.lang.Object expireWhen_; /** - * string expire_when = 6; + * string expire_when = 7; * @return The expireWhen. */ @java.lang.Override @@ -2605,7 +2678,7 @@ public java.lang.String getExpireWhen() { } } /** - * string expire_when = 6; + * string expire_when = 7; * @return The bytes for expireWhen. */ @java.lang.Override @@ -2623,10 +2696,10 @@ public java.lang.String getExpireWhen() { } } - public static final int COMMENT_FIELD_NUMBER = 7; + public static final int COMMENT_FIELD_NUMBER = 8; private volatile java.lang.Object comment_; /** - * string comment = 7; + * string comment = 8; * @return The comment. */ @java.lang.Override @@ -2643,7 +2716,7 @@ public java.lang.String getComment() { } } /** - * string comment = 7; + * string comment = 8; * @return The bytes for comment. */ @java.lang.Override @@ -2661,10 +2734,10 @@ public java.lang.String getComment() { } } - public static final int SQL_FIELD_NUMBER = 8; + public static final int SQL_FIELD_NUMBER = 9; private volatile java.lang.Object sql_; /** - * string sql = 8; + * string sql = 9; * @return The sql. */ @java.lang.Override @@ -2681,7 +2754,7 @@ public java.lang.String getSql() { } } /** - * string sql = 8; + * string sql = 9; * @return The bytes for sql. */ @java.lang.Override @@ -2699,13 +2772,13 @@ public java.lang.String getSql() { } } - public static final int TASK_OPTIONS_FIELD_NUMBER = 9; + public static final int TASK_OPTIONS_FIELD_NUMBER = 10; 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.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, @@ -2726,7 +2799,7 @@ public int getTaskOptionsCount() { return internalGetTaskOptions().getMap().size(); } /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ @java.lang.Override @@ -2744,7 +2817,7 @@ public java.util.Map getTaskOptions() { return getTaskOptionsMap(); } /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ @java.lang.Override @@ -2752,7 +2825,7 @@ public java.util.Map getTaskOptionsMap() { return internalGetTaskOptions().getMap(); } /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ @java.lang.Override @@ -2765,7 +2838,7 @@ public java.lang.String getTaskOptionsOrDefault( return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ @java.lang.Override @@ -2800,30 +2873,33 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, taskName_); } + for (int i = 0; i < sourceTables_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceTables_.getRaw(i)); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputSchemaName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputSchemaName_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outputSchemaName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputTableName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outputTableName_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputTableName_); } if (createIfNotExists_ != false) { - output.writeBool(5, createIfNotExists_); + output.writeBool(6, createIfNotExists_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireWhen_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, expireWhen_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, expireWhen_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, comment_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, comment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, sql_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sql_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetTaskOptions(), TaskOptionsDefaultEntryHolder.defaultEntry, - 9); + 10); unknownFields.writeTo(output); } @@ -2839,24 +2915,32 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, taskName_); } + { + int dataSize = 0; + for (int i = 0; i < sourceTables_.size(); i++) { + dataSize += computeStringSizeNoTag(sourceTables_.getRaw(i)); + } + size += dataSize; + size += 1 * getSourceTablesList().size(); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputSchemaName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputSchemaName_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputSchemaName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputTableName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputTableName_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputTableName_); } if (createIfNotExists_ != false) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, createIfNotExists_); + .computeBoolSize(6, createIfNotExists_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireWhen_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, expireWhen_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, expireWhen_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, comment_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, comment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sql_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sql_); } for (java.util.Map.Entry entry : internalGetTaskOptions().getMap().entrySet()) { @@ -2866,7 +2950,7 @@ public int getSerializedSize() { .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, taskOptions__); + .computeMessageSize(10, taskOptions__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2878,15 +2962,17 @@ 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 (!getSourceTablesList() + .equals(other.getSourceTablesList())) return false; if (!getOutputSchemaName() .equals(other.getOutputSchemaName())) return false; if (!getOutputTableName() @@ -2916,6 +3002,10 @@ public int hashCode() { hash = (53 * hash) + getCatalogName().hashCode(); hash = (37 * hash) + TASK_NAME_FIELD_NUMBER; hash = (53 * hash) + getTaskName().hashCode(); + if (getSourceTablesCount() > 0) { + hash = (37 * hash) + SOURCE_TABLES_FIELD_NUMBER; + hash = (53 * hash) + getSourceTablesList().hashCode(); + } hash = (37 * hash) + OUTPUT_SCHEMA_NAME_FIELD_NUMBER; hash = (53 * hash) + getOutputSchemaName().hashCode(); hash = (37 * hash) + OUTPUT_TABLE_NAME_FIELD_NUMBER; @@ -2938,69 +3028,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 +3103,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,22 +3123,22 @@ 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"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { - case 9: + case 10: return internalGetTaskOptions(); default: throw new RuntimeException( @@ -3059,7 +3149,7 @@ protected com.google.protobuf.MapField internalGetMapField( protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { - case 9: + case 10: return internalGetMutableTaskOptions(); default: throw new RuntimeException( @@ -3069,12 +3159,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(); } @@ -3096,6 +3186,8 @@ public Builder clear() { taskName_ = ""; + sourceTables_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); outputSchemaName_ = ""; outputTableName_ = ""; @@ -3115,17 +3207,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,11 +3225,16 @@ 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_; + if (((bitField0_ & 0x00000001) != 0)) { + sourceTables_ = sourceTables_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sourceTables_ = sourceTables_; result.outputSchemaName_ = outputSchemaName_; result.outputTableName_ = outputTableName_; result.createIfNotExists_ = createIfNotExists_; @@ -3184,16 +3281,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,6 +3299,16 @@ public Builder mergeFrom(io.greptime.v1.Ddl.CreateTaskExpr other) { taskName_ = other.taskName_; onChanged(); } + if (!other.sourceTables_.isEmpty()) { + if (sourceTables_.isEmpty()) { + sourceTables_ = other.sourceTables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSourceTablesIsMutable(); + sourceTables_.addAll(other.sourceTables_); + } + onChanged(); + } if (!other.getOutputSchemaName().isEmpty()) { outputSchemaName_ = other.outputSchemaName_; onChanged(); @@ -3242,11 +3349,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,9 +3516,119 @@ public Builder setTaskNameBytes( return this; } + private com.google.protobuf.LazyStringList sourceTables_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSourceTablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sourceTables_ = new com.google.protobuf.LazyStringArrayList(sourceTables_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string source_tables = 3; + * @return A list containing the sourceTables. + */ + public com.google.protobuf.ProtocolStringList + getSourceTablesList() { + return sourceTables_.getUnmodifiableView(); + } + /** + * repeated string source_tables = 3; + * @return The count of sourceTables. + */ + public int getSourceTablesCount() { + return sourceTables_.size(); + } + /** + * repeated string source_tables = 3; + * @param index The index of the element to return. + * @return The sourceTables at the given index. + */ + public java.lang.String getSourceTables(int index) { + return sourceTables_.get(index); + } + /** + * repeated string source_tables = 3; + * @param index The index of the value to return. + * @return The bytes of the sourceTables at the given index. + */ + public com.google.protobuf.ByteString + getSourceTablesBytes(int index) { + return sourceTables_.getByteString(index); + } + /** + * repeated string source_tables = 3; + * @param index The index to set the value at. + * @param value The sourceTables to set. + * @return This builder for chaining. + */ + public Builder setSourceTables( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceTablesIsMutable(); + sourceTables_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string source_tables = 3; + * @param value The sourceTables to add. + * @return This builder for chaining. + */ + public Builder addSourceTables( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceTablesIsMutable(); + sourceTables_.add(value); + onChanged(); + return this; + } + /** + * repeated string source_tables = 3; + * @param values The sourceTables to add. + * @return This builder for chaining. + */ + public Builder addAllSourceTables( + java.lang.Iterable values) { + ensureSourceTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sourceTables_); + onChanged(); + return this; + } + /** + * repeated string source_tables = 3; + * @return This builder for chaining. + */ + public Builder clearSourceTables() { + sourceTables_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string source_tables = 3; + * @param value The bytes of the sourceTables to add. + * @return This builder for chaining. + */ + public Builder addSourceTablesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSourceTablesIsMutable(); + sourceTables_.add(value); + onChanged(); + return this; + } + private java.lang.Object outputSchemaName_ = ""; /** - * string output_schema_name = 3; + * string output_schema_name = 4; * @return The outputSchemaName. */ public java.lang.String getOutputSchemaName() { @@ -3427,7 +3644,7 @@ public java.lang.String getOutputSchemaName() { } } /** - * string output_schema_name = 3; + * string output_schema_name = 4; * @return The bytes for outputSchemaName. */ public com.google.protobuf.ByteString @@ -3444,7 +3661,7 @@ public java.lang.String getOutputSchemaName() { } } /** - * string output_schema_name = 3; + * string output_schema_name = 4; * @param value The outputSchemaName to set. * @return This builder for chaining. */ @@ -3459,7 +3676,7 @@ public Builder setOutputSchemaName( return this; } /** - * string output_schema_name = 3; + * string output_schema_name = 4; * @return This builder for chaining. */ public Builder clearOutputSchemaName() { @@ -3469,7 +3686,7 @@ public Builder clearOutputSchemaName() { return this; } /** - * string output_schema_name = 3; + * string output_schema_name = 4; * @param value The bytes for outputSchemaName to set. * @return This builder for chaining. */ @@ -3487,7 +3704,7 @@ public Builder setOutputSchemaNameBytes( private java.lang.Object outputTableName_ = ""; /** - * string output_table_name = 4; + * string output_table_name = 5; * @return The outputTableName. */ public java.lang.String getOutputTableName() { @@ -3503,7 +3720,7 @@ public java.lang.String getOutputTableName() { } } /** - * string output_table_name = 4; + * string output_table_name = 5; * @return The bytes for outputTableName. */ public com.google.protobuf.ByteString @@ -3520,7 +3737,7 @@ public java.lang.String getOutputTableName() { } } /** - * string output_table_name = 4; + * string output_table_name = 5; * @param value The outputTableName to set. * @return This builder for chaining. */ @@ -3535,7 +3752,7 @@ public Builder setOutputTableName( return this; } /** - * string output_table_name = 4; + * string output_table_name = 5; * @return This builder for chaining. */ public Builder clearOutputTableName() { @@ -3545,7 +3762,7 @@ public Builder clearOutputTableName() { return this; } /** - * string output_table_name = 4; + * string output_table_name = 5; * @param value The bytes for outputTableName to set. * @return This builder for chaining. */ @@ -3563,7 +3780,7 @@ public Builder setOutputTableNameBytes( private boolean createIfNotExists_ ; /** - * bool create_if_not_exists = 5; + * bool create_if_not_exists = 6; * @return The createIfNotExists. */ @java.lang.Override @@ -3571,7 +3788,7 @@ public boolean getCreateIfNotExists() { return createIfNotExists_; } /** - * bool create_if_not_exists = 5; + * bool create_if_not_exists = 6; * @param value The createIfNotExists to set. * @return This builder for chaining. */ @@ -3582,7 +3799,7 @@ public Builder setCreateIfNotExists(boolean value) { return this; } /** - * bool create_if_not_exists = 5; + * bool create_if_not_exists = 6; * @return This builder for chaining. */ public Builder clearCreateIfNotExists() { @@ -3594,7 +3811,7 @@ public Builder clearCreateIfNotExists() { private java.lang.Object expireWhen_ = ""; /** - * string expire_when = 6; + * string expire_when = 7; * @return The expireWhen. */ public java.lang.String getExpireWhen() { @@ -3610,7 +3827,7 @@ public java.lang.String getExpireWhen() { } } /** - * string expire_when = 6; + * string expire_when = 7; * @return The bytes for expireWhen. */ public com.google.protobuf.ByteString @@ -3627,7 +3844,7 @@ public java.lang.String getExpireWhen() { } } /** - * string expire_when = 6; + * string expire_when = 7; * @param value The expireWhen to set. * @return This builder for chaining. */ @@ -3642,7 +3859,7 @@ public Builder setExpireWhen( return this; } /** - * string expire_when = 6; + * string expire_when = 7; * @return This builder for chaining. */ public Builder clearExpireWhen() { @@ -3652,7 +3869,7 @@ public Builder clearExpireWhen() { return this; } /** - * string expire_when = 6; + * string expire_when = 7; * @param value The bytes for expireWhen to set. * @return This builder for chaining. */ @@ -3670,7 +3887,7 @@ public Builder setExpireWhenBytes( private java.lang.Object comment_ = ""; /** - * string comment = 7; + * string comment = 8; * @return The comment. */ public java.lang.String getComment() { @@ -3686,7 +3903,7 @@ public java.lang.String getComment() { } } /** - * string comment = 7; + * string comment = 8; * @return The bytes for comment. */ public com.google.protobuf.ByteString @@ -3703,7 +3920,7 @@ public java.lang.String getComment() { } } /** - * string comment = 7; + * string comment = 8; * @param value The comment to set. * @return This builder for chaining. */ @@ -3718,7 +3935,7 @@ public Builder setComment( return this; } /** - * string comment = 7; + * string comment = 8; * @return This builder for chaining. */ public Builder clearComment() { @@ -3728,7 +3945,7 @@ public Builder clearComment() { return this; } /** - * string comment = 7; + * string comment = 8; * @param value The bytes for comment to set. * @return This builder for chaining. */ @@ -3746,7 +3963,7 @@ public Builder setCommentBytes( private java.lang.Object sql_ = ""; /** - * string sql = 8; + * string sql = 9; * @return The sql. */ public java.lang.String getSql() { @@ -3762,7 +3979,7 @@ public java.lang.String getSql() { } } /** - * string sql = 8; + * string sql = 9; * @return The bytes for sql. */ public com.google.protobuf.ByteString @@ -3779,7 +3996,7 @@ public java.lang.String getSql() { } } /** - * string sql = 8; + * string sql = 9; * @param value The sql to set. * @return This builder for chaining. */ @@ -3794,7 +4011,7 @@ public Builder setSql( return this; } /** - * string sql = 8; + * string sql = 9; * @return This builder for chaining. */ public Builder clearSql() { @@ -3804,7 +4021,7 @@ public Builder clearSql() { return this; } /** - * string sql = 8; + * string sql = 9; * @param value The bytes for sql to set. * @return This builder for chaining. */ @@ -3847,7 +4064,7 @@ public int getTaskOptionsCount() { return internalGetTaskOptions().getMap().size(); } /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ @java.lang.Override @@ -3865,7 +4082,7 @@ public java.util.Map getTaskOptions() { return getTaskOptionsMap(); } /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ @java.lang.Override @@ -3873,7 +4090,7 @@ public java.util.Map getTaskOptionsMap() { return internalGetTaskOptions().getMap(); } /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ @java.lang.Override @@ -3886,7 +4103,7 @@ public java.lang.String getTaskOptionsOrDefault( return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ @java.lang.Override @@ -3907,7 +4124,7 @@ public Builder clearTaskOptions() { return this; } /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ public Builder removeTaskOptions( @@ -3926,7 +4143,7 @@ public Builder removeTaskOptions( return internalGetMutableTaskOptions().getMutableMap(); } /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ public Builder putTaskOptions( java.lang.String key, @@ -3941,7 +4158,7 @@ public Builder putTaskOptions( return this; } /** - * map<string, string> task_options = 9; + * map<string, string> task_options = 10; */ public Builder putAllTaskOptions( @@ -3963,48 +4180,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.CreateTaskExpr) + // @@protoc_insertion_point(builder_scope:greptime.v1.CreateFlowTaskExpr) } - // @@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.CreateFlowTaskExpr) + private static final io.greptime.v1.Ddl.CreateFlowTaskExpr DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.CreateTaskExpr(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.CreateFlowTaskExpr(); } - public static io.greptime.v1.Ddl.CreateTaskExpr getDefaultInstance() { + public static io.greptime.v1.Ddl.CreateFlowTaskExpr 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 CreateFlowTaskExpr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTaskExpr(input, extensionRegistry); + return new CreateFlowTaskExpr(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.CreateFlowTaskExpr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface RemoveTaskExprOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.RemoveTaskExpr) + public interface RemoveFlowTaskExprOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.RemoveFlowTaskExpr) com.google.protobuf.MessageOrBuilder { /** @@ -4036,18 +4253,18 @@ public interface RemoveTaskExprOrBuilder extends * Remove a flow task. * * - * Protobuf type {@code greptime.v1.RemoveTaskExpr} + * Protobuf type {@code greptime.v1.RemoveFlowTaskExpr} */ - public static final class RemoveTaskExpr extends + public static final class RemoveFlowTaskExpr extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.RemoveTaskExpr) - RemoveTaskExprOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.RemoveFlowTaskExpr) + RemoveFlowTaskExprOrBuilder { private static final long serialVersionUID = 0L; - // Use RemoveTaskExpr.newBuilder() to construct. - private RemoveTaskExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use RemoveFlowTaskExpr.newBuilder() to construct. + private RemoveFlowTaskExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RemoveTaskExpr() { + private RemoveFlowTaskExpr() { catalogName_ = ""; taskName_ = ""; } @@ -4056,7 +4273,7 @@ private RemoveTaskExpr() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new RemoveTaskExpr(); + return new RemoveFlowTaskExpr(); } @java.lang.Override @@ -4064,7 +4281,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private RemoveTaskExpr( + private RemoveFlowTaskExpr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4117,15 +4334,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_RemoveFlowTaskExpr_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_RemoveFlowTaskExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.RemoveTaskExpr.class, io.greptime.v1.Ddl.RemoveTaskExpr.Builder.class); + io.greptime.v1.Ddl.RemoveFlowTaskExpr.class, io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder.class); } public static final int CATALOG_NAME_FIELD_NUMBER = 1; @@ -4249,10 +4466,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.RemoveFlowTaskExpr)) { return super.equals(obj); } - io.greptime.v1.Ddl.RemoveTaskExpr other = (io.greptime.v1.Ddl.RemoveTaskExpr) obj; + io.greptime.v1.Ddl.RemoveFlowTaskExpr other = (io.greptime.v1.Ddl.RemoveFlowTaskExpr) obj; if (!getCatalogName() .equals(other.getCatalogName())) return false; @@ -4278,69 +4495,69 @@ public int hashCode() { return hash; } - public static io.greptime.v1.Ddl.RemoveTaskExpr parseFrom( + public static io.greptime.v1.Ddl.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4353,7 +4570,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.RemoveFlowTaskExpr prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4373,26 +4590,26 @@ protected Builder newBuilderForType( * Remove a flow task. * * - * Protobuf type {@code greptime.v1.RemoveTaskExpr} + * Protobuf type {@code greptime.v1.RemoveFlowTaskExpr} */ 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.RemoveFlowTaskExpr) + io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder { 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_RemoveFlowTaskExpr_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_RemoveFlowTaskExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.RemoveTaskExpr.class, io.greptime.v1.Ddl.RemoveTaskExpr.Builder.class); + io.greptime.v1.Ddl.RemoveFlowTaskExpr.class, io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder.class); } - // Construct using io.greptime.v1.Ddl.RemoveTaskExpr.newBuilder() + // Construct using io.greptime.v1.Ddl.RemoveFlowTaskExpr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -4420,17 +4637,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_RemoveFlowTaskExpr_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExpr getDefaultInstanceForType() { - return io.greptime.v1.Ddl.RemoveTaskExpr.getDefaultInstance(); + public io.greptime.v1.Ddl.RemoveFlowTaskExpr getDefaultInstanceForType() { + return io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.RemoveTaskExpr build() { - io.greptime.v1.Ddl.RemoveTaskExpr result = buildPartial(); + public io.greptime.v1.Ddl.RemoveFlowTaskExpr build() { + io.greptime.v1.Ddl.RemoveFlowTaskExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4438,8 +4655,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.RemoveFlowTaskExpr buildPartial() { + io.greptime.v1.Ddl.RemoveFlowTaskExpr result = new io.greptime.v1.Ddl.RemoveFlowTaskExpr(this); result.catalogName_ = catalogName_; result.taskName_ = taskName_; onBuilt(); @@ -4480,16 +4697,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.RemoveFlowTaskExpr) { + return mergeFrom((io.greptime.v1.Ddl.RemoveFlowTaskExpr)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.RemoveFlowTaskExpr other) { + if (other == io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance()) return this; if (!other.getCatalogName().isEmpty()) { catalogName_ = other.catalogName_; onChanged(); @@ -4513,11 +4730,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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4691,41 +4908,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.RemoveTaskExpr) + // @@protoc_insertion_point(builder_scope:greptime.v1.RemoveFlowTaskExpr) } - // @@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.RemoveFlowTaskExpr) + private static final io.greptime.v1.Ddl.RemoveFlowTaskExpr DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.RemoveTaskExpr(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.RemoveFlowTaskExpr(); } - public static io.greptime.v1.Ddl.RemoveTaskExpr getDefaultInstance() { + public static io.greptime.v1.Ddl.RemoveFlowTaskExpr 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 RemoveFlowTaskExpr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RemoveTaskExpr(input, extensionRegistry); + return new RemoveFlowTaskExpr(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.RemoveFlowTaskExpr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -19173,20 +19390,20 @@ 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_RemoveFlowTaskExpr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_RemoveTaskExpr_fieldAccessorTable; + internal_static_greptime_v1_RemoveFlowTaskExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_CreateTableExpr_descriptor; private static final @@ -19277,76 +19494,78 @@ 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\"\225\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" + - "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" + - " \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.greptime.v1." + - "ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014primary" + - "_keys\030\007 \003(\t\022\034\n\024create_if_not_exists\030\010 \001(" + - "\010\022E\n\rtable_options\030\t \003(\0132..greptime.v1.C" + - "reateTableExpr.TableOptionsEntry\022&\n\010tabl" + - "e_id\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006engi" + - "ne\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterExpr\022\024\n\014c" + - "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022" + - "\n\ntable_name\030\003 \001(\t\022.\n\013add_columns\030\004 \001(\0132" + - "\027.greptime.v1.AddColumnsH\000\0220\n\014drop_colum" + - "ns\030\005 \001(\0132\030.greptime.v1.DropColumnsH\000\0220\n\014" + - "rename_table\030\006 \001(\0132\030.greptime.v1.RenameT" + - "ableH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014cata" + - "log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nt" + - "able_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grep" + - "time.v1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010\"" + - "\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_name\030\001" + - " \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_n" + - "ot_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.grept" + - "ime.v1.CreateDatabaseExpr.OptionsEntry\032." + - "\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_n" + - "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_" + - "name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime." + - "v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014catalo" + - "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dro" + - "p_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_c" + - "olumns\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n\013" + - "DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.grep" + - "time.v1.DropColumn\"%\n\013RenameTable\022\026\n\016new" + - "_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn" + - "_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010lo" + - "cation\030\003 \001(\0132\036.greptime.v1.AddColumnLoca" + - "tion\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007Tabl" + - "eId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 " + - "\001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1.Col" + - "umnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022defa" + - "ult_constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 " + - "\001(\0162\031.greptime.v1.SemanticType\022\017\n\007commen" + - "t\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.gr" + - "eptime.v1.ColumnDataTypeExtension\"\230\001\n\021Ad" + - "dColumnLocation\022B\n\rlocation_type\030\001 \001(\0162+" + - ".greptime.v1.AddColumnLocation.LocationT" + - "ype\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locati" + - "onType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.grept" + - "ime.v1B\003DdlZ5github.com/GreptimeTeam/gre" + - "ptime-proto/go/greptime/v1b\006proto3" + ".TruncateTableExprH\000\022;\n\020create_flow_task" + + "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" + + "\000\022;\n\020remove_flow_task\030\t \001(\0132\037.greptime.v" + + "1.RemoveFlowTaskExprH\000B\006\n\004expr\"\330\002\n\022Creat" + + "eFlowTaskExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tt" + + "ask_name\030\002 \001(\t\022\025\n\rsource_tables\030\003 \003(\t\022\032\n" + + "\022output_schema_name\030\004 \001(\t\022\031\n\021output_tabl" + + "e_name\030\005 \001(\t\022\034\n\024create_if_not_exists\030\006 \001" + + "(\010\022\023\n\013expire_when\030\007 \001(\t\022\017\n\007comment\030\010 \001(\t" + + "\022\013\n\003sql\030\t \001(\t\022F\n\014task_options\030\n \003(\01320.gr" + + "eptime.v1.CreateFlowTaskExpr.TaskOptions" + + "Entry\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"=\n\022RemoveFlowTaskExpr\022" + + "\024\n\014catalog_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t" + + "\"\207\003\n\017CreateTableExpr\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 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026" + + ".greptime.v1.ColumnDef\022\022\n\ntime_index\030\006 \001" + + "(\t\022\024\n\014primary_keys\030\007 \003(\t\022\034\n\024create_if_no" + + "t_exists\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132.." + + "greptime.v1.CreateTableExpr.TableOptions" + + "Entry\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.Ta" + + "bleId\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tA" + + "lterExpr\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.\n\013add_c" + + "olumns\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\022" + + "0\n\014drop_columns\030\005 \001(\0132\030.greptime.v1.Drop" + + "ColumnsH\000\0220\n\014rename_table\030\006 \001(\0132\030.grepti" + + "me.v1.RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTabl" + + "eExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_na" + + "me\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id" + + "\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_" + + "exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014c" + + "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034" + + "\n\024create_if_not_exists\030\003 \001(\010\022=\n\007options\030" + + "\004 \003(\0132,.greptime.v1.CreateDatabaseExpr.O" + + "ptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr" + + "\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&\n\010table_id\030\004 \001(" + + "\0132\024.greptime.v1.TableId\"U\n\020DropDatabaseE" + + "xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" + + "\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddCol" + + "umns\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1." + + "AddColumn\"<\n\013DropColumns\022-\n\014drop_columns" + + "\030\001 \003(\0132\027.greptime.v1.DropColumn\"%\n\013Renam" + + "eTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddCol" + + "umn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Co" + + "lumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1." + + "AddColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030" + + "\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnD" + + "ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr" + + "eptime.v1.ColumnDataType\022\023\n\013is_nullable\030" + + "\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem" + + "antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT" + + "ype\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extensi" + + "on\030\007 \001(\0132$.greptime.v1.ColumnDataTypeExt" + + "ension\"\230\001\n\021AddColumnLocation\022B\n\rlocation" + + "_type\030\001 \001(\0162+.greptime.v1.AddColumnLocat" + + "ion.LocationType\022\031\n\021after_column_name\030\002 " + + "\001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020" + + "\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gre" + + "ptimeTeam/greptime-proto/go/greptime/v1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -19358,24 +19577,24 @@ 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", "RemoveFlowTask", "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", "SourceTables", "OutputSchemaName", "OutputTableName", "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_RemoveFlowTaskExpr_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_greptime_v1_RemoveTaskExpr_fieldAccessorTable = new + internal_static_greptime_v1_RemoveFlowTaskExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_RemoveTaskExpr_descriptor, + internal_static_greptime_v1_RemoveFlowTaskExpr_descriptor, new java.lang.String[] { "CatalogName", "TaskName", }); internal_static_greptime_v1_CreateTableExpr_descriptor = getDescriptor().getMessageTypes().get(3); 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..fbe2b619 100644 --- a/java/src/main/java/io/greptime/v1/flow/Server.java +++ b/java/src/main/java/io/greptime/v1/flow/Server.java @@ -3977,68 +3977,92 @@ public interface FlowCreateRequestOrBuilder extends io.greptime.v1.flow.Server.TaskIdOrBuilder getTaskIdOrBuilder(); /** - * .greptime.v1.TableId output_table_id = 2; + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + java.util.List + getSourceTableIdsList(); + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + io.greptime.v1.Ddl.TableId getSourceTableIds(int index); + /** + * repeated .greptime.v1.TableId source_table_ids = 2; + */ + 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 output_table_id = 3; * @return Whether the outputTableId field is set. */ boolean hasOutputTableId(); /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; * @return The outputTableId. */ io.greptime.v1.Ddl.TableId getOutputTableId(); /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; */ io.greptime.v1.Ddl.TableIdOrBuilder getOutputTableIdOrBuilder(); /** - * 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( @@ -4086,6 +4110,7 @@ private FlowCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder buil super(builder); } private FlowCreateRequest() { + sourceTableIds_ = java.util.Collections.emptyList(); expireWhen_ = ""; comment_ = ""; sql_ = ""; @@ -4136,6 +4161,15 @@ 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(); @@ -4148,34 +4182,34 @@ private FlowCreateRequest( 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,6 +4235,9 @@ 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(); } @@ -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( @@ -4256,10 +4293,50 @@ public io.greptime.v1.flow.Server.TaskIdOrBuilder getTaskIdOrBuilder() { return getTaskId(); } - public static final int OUTPUT_TABLE_ID_FIELD_NUMBER = 2; + 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 OUTPUT_TABLE_ID_FIELD_NUMBER = 3; private io.greptime.v1.Ddl.TableId outputTableId_; /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; * @return Whether the outputTableId field is set. */ @java.lang.Override @@ -4267,7 +4344,7 @@ public boolean hasOutputTableId() { return outputTableId_ != null; } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; * @return The outputTableId. */ @java.lang.Override @@ -4275,17 +4352,17 @@ public io.greptime.v1.Ddl.TableId getOutputTableId() { return outputTableId_ == null ? io.greptime.v1.Ddl.TableId.getDefaultInstance() : outputTableId_; } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; */ @java.lang.Override public io.greptime.v1.Ddl.TableIdOrBuilder getOutputTableIdOrBuilder() { return getOutputTableId(); } - 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,7 +4484,7 @@ 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 = @@ -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()); } + for (int i = 0; i < sourceTableIds_.size(); i++) { + output.writeMessage(2, sourceTableIds_.get(i)); + } if (outputTableId_ != null) { - output.writeMessage(2, getOutputTableId()); + output.writeMessage(3, getOutputTableId()); } 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()); } + for (int i = 0; i < sourceTableIds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, sourceTableIds_.get(i)); + } if (outputTableId_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputTableId()); + .computeMessageSize(3, getOutputTableId()); } 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; @@ -4586,6 +4670,8 @@ public boolean equals(final java.lang.Object obj) { if (!getTaskId() .equals(other.getTaskId())) return false; } + if (!getSourceTableIdsList() + .equals(other.getSourceTableIdsList())) return false; if (hasOutputTableId() != other.hasOutputTableId()) return false; if (hasOutputTableId()) { if (!getOutputTableId() @@ -4616,6 +4702,10 @@ public int hashCode() { hash = (37 * hash) + TASK_ID_FIELD_NUMBER; hash = (53 * hash) + getTaskId().hashCode(); } + if (getSourceTableIdsCount() > 0) { + hash = (37 * hash) + SOURCE_TABLE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getSourceTableIdsList().hashCode(); + } if (hasOutputTableId()) { hash = (37 * hash) + OUTPUT_TABLE_ID_FIELD_NUMBER; hash = (53 * hash) + getOutputTableId().hashCode(); @@ -4748,7 +4838,7 @@ public static final class Builder extends 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( @@ -4787,6 +4877,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getSourceTableIdsFieldBuilder(); } } @java.lang.Override @@ -4798,6 +4889,12 @@ public Builder clear() { taskId_ = null; taskIdBuilder_ = null; } + if (sourceTableIdsBuilder_ == null) { + sourceTableIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + sourceTableIdsBuilder_.clear(); + } if (outputTableIdBuilder_ == null) { outputTableId_ = null; } else { @@ -4845,6 +4942,15 @@ public io.greptime.v1.flow.Server.FlowCreateRequest buildPartial() { } else { result.taskId_ = taskIdBuilder_.build(); } + if (sourceTableIdsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sourceTableIds_ = java.util.Collections.unmodifiableList(sourceTableIds_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sourceTableIds_ = sourceTableIds_; + } else { + result.sourceTableIds_ = sourceTableIdsBuilder_.build(); + } if (outputTableIdBuilder_ == null) { result.outputTableId_ = outputTableId_; } else { @@ -4907,6 +5013,32 @@ public Builder mergeFrom(io.greptime.v1.flow.Server.FlowCreateRequest other) { if (other.hasTaskId()) { mergeTaskId(other.getTaskId()); } + 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.hasOutputTableId()) { mergeOutputTableId(other.getOutputTableId()); } @@ -5076,18 +5208,258 @@ public io.greptime.v1.flow.Server.TaskIdOrBuilder getTaskIdOrBuilder() { return taskIdBuilder_; } + 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 outputTableId_; private com.google.protobuf.SingleFieldBuilderV3< io.greptime.v1.Ddl.TableId, io.greptime.v1.Ddl.TableId.Builder, io.greptime.v1.Ddl.TableIdOrBuilder> outputTableIdBuilder_; /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; * @return Whether the outputTableId field is set. */ public boolean hasOutputTableId() { return outputTableIdBuilder_ != null || outputTableId_ != null; } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; * @return The outputTableId. */ public io.greptime.v1.Ddl.TableId getOutputTableId() { @@ -5098,7 +5470,7 @@ public io.greptime.v1.Ddl.TableId getOutputTableId() { } } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; */ public Builder setOutputTableId(io.greptime.v1.Ddl.TableId value) { if (outputTableIdBuilder_ == null) { @@ -5114,7 +5486,7 @@ public Builder setOutputTableId(io.greptime.v1.Ddl.TableId value) { return this; } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; */ public Builder setOutputTableId( io.greptime.v1.Ddl.TableId.Builder builderForValue) { @@ -5128,7 +5500,7 @@ public Builder setOutputTableId( return this; } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; */ public Builder mergeOutputTableId(io.greptime.v1.Ddl.TableId value) { if (outputTableIdBuilder_ == null) { @@ -5146,7 +5518,7 @@ public Builder mergeOutputTableId(io.greptime.v1.Ddl.TableId value) { return this; } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; */ public Builder clearOutputTableId() { if (outputTableIdBuilder_ == null) { @@ -5160,7 +5532,7 @@ public Builder clearOutputTableId() { return this; } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; */ public io.greptime.v1.Ddl.TableId.Builder getOutputTableIdBuilder() { @@ -5168,7 +5540,7 @@ public io.greptime.v1.Ddl.TableId.Builder getOutputTableIdBuilder() { return getOutputTableIdFieldBuilder().getBuilder(); } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; */ public io.greptime.v1.Ddl.TableIdOrBuilder getOutputTableIdOrBuilder() { if (outputTableIdBuilder_ != null) { @@ -5179,7 +5551,7 @@ public io.greptime.v1.Ddl.TableIdOrBuilder getOutputTableIdOrBuilder() { } } /** - * .greptime.v1.TableId output_table_id = 2; + * .greptime.v1.TableId output_table_id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.greptime.v1.Ddl.TableId, io.greptime.v1.Ddl.TableId.Builder, io.greptime.v1.Ddl.TableIdOrBuilder> @@ -5197,7 +5569,7 @@ public io.greptime.v1.Ddl.TableIdOrBuilder getOutputTableIdOrBuilder() { 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( @@ -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; } @@ -6821,24 +7192,25 @@ public io.greptime.v1.flow.Server.TaskId getDefaultInstanceForType() { "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" + ":\0028\001\"\356\002\n\021FlowCreateRequest\022)\n\007task_id\030\001 " + + "\001(\0132\030.greptime.v1.flow.TaskId\022.\n\020source_" + + "table_ids\030\002 \003(\0132\024.greptime.v1.TableId\022-\n" + + "\017output_table_id\030\003 \001(\0132\024.greptime.v1.Tab" + + "leId\022\034\n\024create_if_not_exists\030\004 \001(\010\022\023\n\013ex" + + "pire_when\030\005 \001(\t\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030" + + "\007 \001(\t\022J\n\014task_options\030\010 \003(\01324.greptime.v" + + "1.flow.FlowCreateRequest.TaskOptionsEntr" + + "y\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\">\n\021FlowRemoveRequest\022)\n\007ta" + + "sk_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\022HandleCr" + + "eateRemove\022\035.greptime.v1.flow.FlowReques" + + "t\032\036.greptime.v1.flow.FlowResponse\022W\n\023Han" + + "dleMirrorRequest\022 .greptime.v1.flow.Inse" + + "rtRequests\032\036.greptime.v1.flow.FlowRespon" + + "seBY\n\023io.greptime.v1.flowB\006ServerZ:githu" + + "b.com/GreptimeTeam/greptime-proto/go/gre" + + "ptime/v1/flowb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -6882,7 +7254,7 @@ public io.greptime.v1.flow.Server.TaskId getDefaultInstanceForType() { internal_static_greptime_v1_flow_FlowCreateRequest_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", }); + new java.lang.String[] { "TaskId", "SourceTableIds", "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 diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index b89b4a8e..909849d4 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -33,26 +33,27 @@ 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; + RemoveFlowTaskExpr remove_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; - bool create_if_not_exists = 5; - string expire_when = 6; - string comment = 7; - string sql = 8; - map task_options = 9; + repeated string source_tables = 3; + string output_schema_name = 4; + string output_table_name = 5; + bool create_if_not_exists = 6; + string expire_when = 7; + string comment = 8; + string sql = 9; + map task_options = 10; } // Remove a flow task. -message RemoveTaskExpr { +message RemoveFlowTaskExpr { 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..8a245cf8 100644 --- a/proto/greptime/v1/flow/server.proto +++ b/proto/greptime/v1/flow/server.proto @@ -57,13 +57,14 @@ 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; + TaskId task_id = 1; + repeated TableId source_table_ids = 2; + TableId output_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; } From 86b0eb289322f309d2f9b8591406e9792ca70158 Mon Sep 17 00:00:00 2001 From: WenyXu Date: Thu, 25 Apr 2024 07:31:00 +0000 Subject: [PATCH 2/5] feat: use `SchemaScopedTableName` --- c++/greptime/v1/ddl.pb.cc | 721 ++++--- c++/greptime/v1/ddl.pb.h | 674 +++--- go/greptime/v1/ddl.pb.go | 727 ++++--- java/src/main/java/io/greptime/v1/Ddl.java | 2172 +++++++++++++------- proto/greptime/v1/ddl.proto | 21 +- 5 files changed, 2815 insertions(+), 1500 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 14aa7270..901903b5 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -49,15 +49,14 @@ struct CreateFlowTaskExpr_TaskOptionsEntry_DoNotUseDefaultTypeInternal { 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_.source_tables_)*/{} + /*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_.output_table_name_)*/nullptr , /*decltype(_impl_.create_if_not_exists_)*/false , /*decltype(_impl_._cached_size_)*/{}} {} struct CreateFlowTaskExprDefaultTypeInternal { @@ -69,6 +68,20 @@ struct CreateFlowTaskExprDefaultTypeInternal { }; }; 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 RemoveFlowTaskExpr::RemoveFlowTaskExpr( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -323,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; @@ -360,8 +373,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~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_tables_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.output_schema_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.source_table_names_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.output_table_name_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.create_if_not_exists_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.expire_when_), @@ -369,6 +381,14 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI 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::SchemaScopedTableName, _impl_.schema_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SchemaScopedTableName, _impl_.table_name_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::RemoveFlowTaskExpr, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -535,29 +555,31 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 0, -1, -1, sizeof(::greptime::v1::DdlRequest)}, { 14, 22, -1, sizeof(::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse)}, { 24, -1, -1, sizeof(::greptime::v1::CreateFlowTaskExpr)}, - { 40, -1, -1, sizeof(::greptime::v1::RemoveFlowTaskExpr)}, - { 48, 56, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, - { 58, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, - { 75, -1, -1, sizeof(::greptime::v1::AlterExpr)}, - { 88, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, - { 99, 107, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, - { 109, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, - { 119, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, - { 129, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, - { 138, -1, -1, sizeof(::greptime::v1::AddColumns)}, - { 145, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 152, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 159, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 167, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 174, -1, -1, sizeof(::greptime::v1::TableId)}, - { 181, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 194, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 39, -1, -1, sizeof(::greptime::v1::SchemaScopedTableName)}, + { 47, -1, -1, sizeof(::greptime::v1::RemoveFlowTaskExpr)}, + { 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::_CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateFlowTaskExpr_default_instance_._instance, + &::greptime::v1::_SchemaScopedTableName_default_instance_._instance, &::greptime::v1::_RemoveFlowTaskExpr_default_instance_._instance, &::greptime::v1::_CreateTableExpr_TableOptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateTableExpr_default_instance_._instance, @@ -589,77 +611,80 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT ".TruncateTableExprH\000\022;\n\020create_flow_task" "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" "\000\022;\n\020remove_flow_task\030\t \001(\0132\037.greptime.v" - "1.RemoveFlowTaskExprH\000B\006\n\004expr\"\330\002\n\022Creat" + "1.RemoveFlowTaskExprH\000B\006\n\004expr\"\211\003\n\022Creat" "eFlowTaskExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tt" - "ask_name\030\002 \001(\t\022\025\n\rsource_tables\030\003 \003(\t\022\032\n" - "\022output_schema_name\030\004 \001(\t\022\031\n\021output_tabl" - "e_name\030\005 \001(\t\022\034\n\024create_if_not_exists\030\006 \001" - "(\010\022\023\n\013expire_when\030\007 \001(\t\022\017\n\007comment\030\010 \001(\t" - "\022\013\n\003sql\030\t \001(\t\022F\n\014task_options\030\n \003(\01320.gr" - "eptime.v1.CreateFlowTaskExpr.TaskOptions" - "Entry\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r" - "\n\005value\030\002 \001(\t:\0028\001\"=\n\022RemoveFlowTaskExpr\022" - "\024\n\014catalog_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t" - "\"\207\003\n\017CreateTableExpr\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 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026" - ".greptime.v1.ColumnDef\022\022\n\ntime_index\030\006 \001" - "(\t\022\024\n\014primary_keys\030\007 \003(\t\022\034\n\024create_if_no" - "t_exists\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132.." - "greptime.v1.CreateTableExpr.TableOptions" - "Entry\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.Ta" - "bleId\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEnt" - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tA" - "lterExpr\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.\n\013add_c" - "olumns\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\022" - "0\n\014drop_columns\030\005 \001(\0132\030.greptime.v1.Drop" - "ColumnsH\000\0220\n\014rename_table\030\006 \001(\0132\030.grepti" - "me.v1.RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTabl" - "eExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_na" - "me\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id" - "\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_" - "exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014c" - "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034" - "\n\024create_if_not_exists\030\003 \001(\010\022=\n\007options\030" - "\004 \003(\0132,.greptime.v1.CreateDatabaseExpr.O" - "ptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t" - "\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr" + "ask_name\030\002 \001(\t\022>\n\022source_table_names\030\003 \003" + "(\0132\".greptime.v1.SchemaScopedTableName\022=" + "\n\021output_table_name\030\004 \001(\0132\".greptime.v1." + "SchemaScopedTableName\022\034\n\024create_if_not_e" + "xists\030\005 \001(\010\022\023\n\013expire_when\030\006 \001(\t\022\017\n\007comm" + "ent\030\007 \001(\t\022\013\n\003sql\030\010 \001(\t\022F\n\014task_options\030\t" + " \003(\01320.greptime.v1.CreateFlowTaskExpr.Ta" + "skOptionsEntry\0322\n\020TaskOptionsEntry\022\013\n\003ke" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\025SchemaScop" + "edTableName\022\023\n\013schema_name\030\001 \001(\t\022\022\n\ntabl" + "e_name\030\002 \001(\t\"=\n\022RemoveFlowTaskExpr\022\024\n\014ca" + "talog_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003\n\017" + "CreateTableExpr\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 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.grep" + "time.v1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n" + "\014primary_keys\030\007 \003(\t\022\034\n\024create_if_not_exi" + "sts\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132..grept" + "ime.v1.CreateTableExpr.TableOptionsEntry" + "\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.TableId" + "\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterE" + "xpr\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.\n\013add_column" + "s\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014dr" + "op_columns\030\005 \001(\0132\030.greptime.v1.DropColum" + "nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1" + ".RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTableExpr" "\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&\n\010table_id\030\004 \001(" - "\0132\024.greptime.v1.TableId\"U\n\020DropDatabaseE" - "xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" - "\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddCol" - "umns\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1." - "AddColumn\"<\n\013DropColumns\022-\n\014drop_columns" - "\030\001 \003(\0132\027.greptime.v1.DropColumn\"%\n\013Renam" - "eTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddCol" - "umn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Co" - "lumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1." - "AddColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030" - "\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnD" - "ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr" - "eptime.v1.ColumnDataType\022\023\n\013is_nullable\030" - "\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem" - "antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT" - "ype\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extensi" - "on\030\007 \001(\0132$.greptime.v1.ColumnDataTypeExt" - "ension\"\230\001\n\021AddColumnLocation\022B\n\rlocation" - "_type\030\001 \001(\0162+.greptime.v1.AddColumnLocat" - "ion.LocationType\022\031\n\021after_column_name\030\002 " - "\001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020" - "\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gre" - "ptimeTeam/greptime-proto/go/greptime/v1b" - "\006proto3" + "\0132\024.greptime.v1.TableId\022\026\n\016drop_if_exist" + "s\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalo" + "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024cre" + "ate_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\013" + "2,.greptime.v1.CreateDatabaseExpr.Option" + "sEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + "alue\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014c" + "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022" + "\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.g" + "reptime.v1.TableId\"U\n\020DropDatabaseExpr\022\024" + "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" + "\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022" + "+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.AddCo" + "lumn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(" + "\0132\027.greptime.v1.DropColumn\"%\n\013RenameTabl" + "e\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*" + "\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.ColumnD" + "ef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddCo" + "lumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t" + "\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n" + "\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptim" + "e.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010" + "\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic" + "_type\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017" + "\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 " + "\001(\0132$.greptime.v1.ColumnDataTypeExtensio" + "n\"\230\001\n\021AddColumnLocation\022B\n\rlocation_type" + "\030\001 \001(\0162+.greptime.v1.AddColumnLocation.L" + "ocationType\022\031\n\021after_column_name\030\002 \001(\t\"$" + "\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016" + "io.greptime.v1B\003DdlZ5github.com/Greptime" + "Team/greptime-proto/go/greptime/v1b\006prot" + "o3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { - false, false, 2887, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 3002, 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, @@ -1307,8 +1332,13 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse:: class CreateFlowTaskExpr::_Internal { public: + static const ::greptime::v1::SchemaScopedTableName& output_table_name(const CreateFlowTaskExpr* msg); }; +const ::greptime::v1::SchemaScopedTableName& +CreateFlowTaskExpr::_Internal::output_table_name(const CreateFlowTaskExpr* msg) { + return *msg->_impl_.output_table_name_; +} CreateFlowTaskExpr::CreateFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -1322,15 +1352,14 @@ CreateFlowTaskExpr::CreateFlowTaskExpr(const CreateFlowTaskExpr& from) : ::PROTOBUF_NAMESPACE_ID::Message() { CreateFlowTaskExpr* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.source_tables_){from._impl_.source_tables_} + 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_.output_table_name_){nullptr} , decltype(_impl_.create_if_not_exists_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -1352,22 +1381,6 @@ CreateFlowTaskExpr::CreateFlowTaskExpr(const CreateFlowTaskExpr& 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()); @@ -1392,6 +1405,9 @@ CreateFlowTaskExpr::CreateFlowTaskExpr(const CreateFlowTaskExpr& from) _this->_impl_.sql_.Set(from._internal_sql(), _this->GetArenaForAllocation()); } + if (from._internal_has_output_table_name()) { + _this->_impl_.output_table_name_ = new ::greptime::v1::SchemaScopedTableName(*from._impl_.output_table_name_); + } _this->_impl_.create_if_not_exists_ = from._impl_.create_if_not_exists_; // @@protoc_insertion_point(copy_constructor:greptime.v1.CreateFlowTaskExpr) } @@ -1401,15 +1417,14 @@ inline void CreateFlowTaskExpr::SharedCtor( (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.source_tables_){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_.output_table_name_){nullptr} , decltype(_impl_.create_if_not_exists_){false} , /*decltype(_impl_._cached_size_)*/{} }; @@ -1421,14 +1436,6 @@ inline void CreateFlowTaskExpr::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()); @@ -1455,16 +1462,15 @@ CreateFlowTaskExpr::~CreateFlowTaskExpr() { inline void CreateFlowTaskExpr::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.source_tables_.~RepeatedPtrField(); + _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_.output_table_name_; } void CreateFlowTaskExpr::ArenaDtor(void* object) { @@ -1481,15 +1487,17 @@ void CreateFlowTaskExpr::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.source_tables_.Clear(); + _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_.output_table_name_ != nullptr) { + delete _impl_.output_table_name_; + } + _impl_.output_table_name_ = nullptr; _impl_.create_if_not_exists_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -1520,52 +1528,38 @@ const char* CreateFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon } else goto handle_unusual; continue; - // repeated string source_tables = 3; + // repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr -= 1; do { ptr += 1; - auto str = _internal_add_source_tables(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ctx->ParseMessage(_internal_add_source_table_names(), ptr); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.source_tables")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); } else goto handle_unusual; continue; - // string output_schema_name = 4; + // .greptime.v1.SchemaScopedTableName output_table_name = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_output_schema_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ctx->ParseMessage(_internal_mutable_output_table_name(), ptr); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.output_schema_name")); } else goto handle_unusual; continue; - // string output_table_name = 5; + // bool create_if_not_exists = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_output_table_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowTaskExpr.output_table_name")); - } else - goto handle_unusual; - continue; - // bool create_if_not_exists = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { _impl_.create_if_not_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // string expire_when = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + // string expire_when = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { auto str = _internal_mutable_expire_when(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); @@ -1573,9 +1567,9 @@ const char* CreateFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon } else goto handle_unusual; continue; - // string comment = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + // string comment = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { auto str = _internal_mutable_comment(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); @@ -1583,9 +1577,9 @@ const char* CreateFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon } else goto handle_unusual; continue; - // string sql = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + // string sql = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { auto str = _internal_mutable_sql(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); @@ -1593,16 +1587,16 @@ const char* CreateFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon } else goto handle_unusual; continue; - // map task_options = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + // map task_options = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { 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<82>(ptr)); + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); } else goto handle_unusual; continue; @@ -1655,73 +1649,58 @@ uint8_t* CreateFlowTaskExpr::_InternalSerialize( 2, this->_internal_task_name(), target); } - // repeated string source_tables = 3; - for (int i = 0, n = this->_internal_source_tables_size(); i < n; i++) { - const auto& s = this->_internal_source_tables(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateFlowTaskExpr.source_tables"); - target = stream->WriteString(3, s, target); - } - - // string output_schema_name = 4; - 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.CreateFlowTaskExpr.output_schema_name"); - target = stream->WriteStringMaybeAliased( - 4, 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 = 5; - 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.CreateFlowTaskExpr.output_table_name"); - target = stream->WriteStringMaybeAliased( - 5, this->_internal_output_table_name(), target); + // .greptime.v1.SchemaScopedTableName output_table_name = 4; + if (this->_internal_has_output_table_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::output_table_name(this), + _Internal::output_table_name(this).GetCachedSize(), target, stream); } - // bool create_if_not_exists = 6; + // bool create_if_not_exists = 5; if (this->_internal_create_if_not_exists() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_create_if_not_exists(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_create_if_not_exists(), target); } - // string expire_when = 7; + // string expire_when = 6; 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.CreateFlowTaskExpr.expire_when"); target = stream->WriteStringMaybeAliased( - 7, this->_internal_expire_when(), target); + 6, this->_internal_expire_when(), target); } - // string comment = 8; + // string comment = 7; 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.CreateFlowTaskExpr.comment"); target = stream->WriteStringMaybeAliased( - 8, this->_internal_comment(), target); + 7, this->_internal_comment(), target); } - // string sql = 9; + // string sql = 8; 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.CreateFlowTaskExpr.sql"); target = stream->WriteStringMaybeAliased( - 9, this->_internal_sql(), target); + 8, this->_internal_sql(), target); } - // map task_options = 10; + // map task_options = 9; if (!this->_internal_task_options().empty()) { using MapType = ::_pb::Map; using WireHelper = CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse::Funcs; @@ -1740,12 +1719,12 @@ uint8_t* CreateFlowTaskExpr::_InternalSerialize( if (stream->IsSerializationDeterministic() && map_field.size() > 1) { for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(10, entry.first, entry.second, target, stream); + target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); check_utf8(entry); } } else { for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(10, entry.first, entry.second, target, stream); + target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); check_utf8(entry); } } @@ -1767,15 +1746,14 @@ size_t CreateFlowTaskExpr::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated string source_tables = 3; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.source_tables_.size()); - for (int i = 0, n = _impl_.source_tables_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.source_tables_.Get(i)); + // 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 = 10; + // 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 @@ -1798,42 +1776,35 @@ size_t CreateFlowTaskExpr::ByteSizeLong() const { this->_internal_task_name()); } - // string output_schema_name = 4; - 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 = 5; - if (!this->_internal_output_table_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_output_table_name()); - } - - // string expire_when = 7; + // string expire_when = 6; if (!this->_internal_expire_when().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_expire_when()); } - // string comment = 8; + // string comment = 7; if (!this->_internal_comment().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_comment()); } - // string sql = 9; + // string sql = 8; if (!this->_internal_sql().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sql()); } - // bool create_if_not_exists = 6; + // .greptime.v1.SchemaScopedTableName output_table_name = 4; + if (this->_internal_has_output_table_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.output_table_name_); + } + + // bool create_if_not_exists = 5; if (this->_internal_create_if_not_exists() != 0) { total_size += 1 + 1; } @@ -1856,7 +1827,7 @@ void CreateFlowTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.source_tables_.MergeFrom(from._impl_.source_tables_); + _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()); @@ -1864,12 +1835,6 @@ void CreateFlowTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con 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()); } @@ -1879,6 +1844,10 @@ void CreateFlowTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con if (!from._internal_sql().empty()) { _this->_internal_set_sql(from._internal_sql()); } + if (from._internal_has_output_table_name()) { + _this->_internal_mutable_output_table_name()->::greptime::v1::SchemaScopedTableName::MergeFrom( + from._internal_output_table_name()); + } if (from._internal_create_if_not_exists() != 0) { _this->_internal_set_create_if_not_exists(from._internal_create_if_not_exists()); } @@ -1901,7 +1870,7 @@ void CreateFlowTaskExpr::InternalSwap(CreateFlowTaskExpr* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.source_tables_.InternalSwap(&other->_impl_.source_tables_); + _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, @@ -1911,14 +1880,6 @@ void CreateFlowTaskExpr::InternalSwap(CreateFlowTaskExpr* 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 @@ -1931,7 +1892,12 @@ void CreateFlowTaskExpr::InternalSwap(CreateFlowTaskExpr* 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_.output_table_name_)>( + reinterpret_cast(&_impl_.output_table_name_), + reinterpret_cast(&other->_impl_.output_table_name_)); } ::PROTOBUF_NAMESPACE_ID::Metadata CreateFlowTaskExpr::GetMetadata() const { @@ -1942,6 +1908,259 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateFlowTaskExpr::GetMetadata() const { // =================================================================== +class SchemaScopedTableName::_Internal { + public: +}; + +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.SchemaScopedTableName) +} +SchemaScopedTableName::SchemaScopedTableName(const SchemaScopedTableName& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + 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 RemoveFlowTaskExpr::_Internal { public: }; @@ -2190,7 +2409,7 @@ void RemoveFlowTaskExpr::InternalSwap(RemoveFlowTaskExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RemoveFlowTaskExpr::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]); } // =================================================================== @@ -2204,7 +2423,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]); } // =================================================================== @@ -2871,7 +3090,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]); } // =================================================================== @@ -3386,7 +3605,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]); } // =================================================================== @@ -3762,7 +3981,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]); } // =================================================================== @@ -3776,7 +3995,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]); } // =================================================================== @@ -4124,7 +4343,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]); } // =================================================================== @@ -4469,7 +4688,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]); } // =================================================================== @@ -4749,7 +4968,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]); } // =================================================================== @@ -4934,7 +5153,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]); } // =================================================================== @@ -5119,7 +5338,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]); } // =================================================================== @@ -5322,7 +5541,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]); } // =================================================================== @@ -5561,7 +5780,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]); } // =================================================================== @@ -5764,7 +5983,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]); } // =================================================================== @@ -5942,7 +6161,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]); } // =================================================================== @@ -6377,7 +6596,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]); } // =================================================================== @@ -6610,7 +6829,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) @@ -6629,6 +6848,10 @@ 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::SchemaScopedTableName* +Arena::CreateMaybeMessage< ::greptime::v1::SchemaScopedTableName >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::SchemaScopedTableName >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::RemoveFlowTaskExpr* Arena::CreateMaybeMessage< ::greptime::v1::RemoveFlowTaskExpr >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::RemoveFlowTaskExpr >(arena); diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index af898c7d..e2282340 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -105,6 +105,9 @@ extern RemoveFlowTaskExprDefaultTypeInternal _RemoveFlowTaskExpr_default_instanc 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_; @@ -132,6 +135,7 @@ template<> ::greptime::v1::DropDatabaseExpr* Arena::CreateMaybeMessage<::greptim template<> ::greptime::v1::DropTableExpr* Arena::CreateMaybeMessage<::greptime::v1::DropTableExpr>(Arena*); template<> ::greptime::v1::RemoveFlowTaskExpr* Arena::CreateMaybeMessage<::greptime::v1::RemoveFlowTaskExpr>(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 @@ -623,42 +627,35 @@ class CreateFlowTaskExpr final : // accessors ------------------------------------------------------- enum : int { - kSourceTablesFieldNumber = 3, - kTaskOptionsFieldNumber = 10, + kSourceTableNamesFieldNumber = 3, + kTaskOptionsFieldNumber = 9, kCatalogNameFieldNumber = 1, kTaskNameFieldNumber = 2, - kOutputSchemaNameFieldNumber = 4, - kOutputTableNameFieldNumber = 5, - kExpireWhenFieldNumber = 7, - kCommentFieldNumber = 8, - kSqlFieldNumber = 9, - kCreateIfNotExistsFieldNumber = 6, + kExpireWhenFieldNumber = 6, + kCommentFieldNumber = 7, + kSqlFieldNumber = 8, + kOutputTableNameFieldNumber = 4, + kCreateIfNotExistsFieldNumber = 5, }; - // repeated string source_tables = 3; - int source_tables_size() const; - private: - int _internal_source_tables_size() const; - public: - void clear_source_tables(); - const std::string& source_tables(int index) const; - std::string* mutable_source_tables(int index); - void set_source_tables(int index, const std::string& value); - void set_source_tables(int index, std::string&& value); - void set_source_tables(int index, const char* value); - void set_source_tables(int index, const char* value, size_t size); - std::string* add_source_tables(); - void add_source_tables(const std::string& value); - void add_source_tables(std::string&& value); - void add_source_tables(const char* value); - void add_source_tables(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& source_tables() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_source_tables(); - private: - const std::string& _internal_source_tables(int index) const; - std::string* _internal_add_source_tables(); - public: - - // map task_options = 10; + // 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: int _internal_task_options_size() const; @@ -703,35 +700,7 @@ class CreateFlowTaskExpr final : std::string* _internal_mutable_task_name(); public: - // string output_schema_name = 4; - 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 = 5; - 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 = 7; + // string expire_when = 6; void clear_expire_when(); const std::string& expire_when() const; template @@ -745,7 +714,7 @@ class CreateFlowTaskExpr final : std::string* _internal_mutable_expire_when(); public: - // string comment = 8; + // string comment = 7; void clear_comment(); const std::string& comment() const; template @@ -759,7 +728,7 @@ class CreateFlowTaskExpr final : std::string* _internal_mutable_comment(); public: - // string sql = 9; + // string sql = 8; void clear_sql(); const std::string& sql() const; template @@ -773,7 +742,25 @@ class CreateFlowTaskExpr final : std::string* _internal_mutable_sql(); public: - // bool create_if_not_exists = 6; + // .greptime.v1.SchemaScopedTableName output_table_name = 4; + bool has_output_table_name() const; + private: + bool _internal_has_output_table_name() const; + public: + void clear_output_table_name(); + const ::greptime::v1::SchemaScopedTableName& output_table_name() const; + PROTOBUF_NODISCARD ::greptime::v1::SchemaScopedTableName* release_output_table_name(); + ::greptime::v1::SchemaScopedTableName* mutable_output_table_name(); + void set_allocated_output_table_name(::greptime::v1::SchemaScopedTableName* output_table_name); + private: + const ::greptime::v1::SchemaScopedTableName& _internal_output_table_name() const; + ::greptime::v1::SchemaScopedTableName* _internal_mutable_output_table_name(); + public: + void unsafe_arena_set_allocated_output_table_name( + ::greptime::v1::SchemaScopedTableName* output_table_name); + ::greptime::v1::SchemaScopedTableName* unsafe_arena_release_output_table_name(); + + // bool create_if_not_exists = 5; void clear_create_if_not_exists(); bool create_if_not_exists() const; void set_create_if_not_exists(bool value); @@ -790,7 +777,7 @@ class CreateFlowTaskExpr final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField source_tables_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName > source_table_names_; ::PROTOBUF_NAMESPACE_ID::internal::MapField< CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse, std::string, std::string, @@ -798,11 +785,10 @@ class CreateFlowTaskExpr final : ::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* output_table_name_; bool create_if_not_exists_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; @@ -811,6 +797,175 @@ class CreateFlowTaskExpr final : }; // ------------------------------------------------------------------- +class SchemaScopedTableName final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SchemaScopedTableName) */ { + public: + inline SchemaScopedTableName() : SchemaScopedTableName(nullptr) {} + ~SchemaScopedTableName() override; + explicit PROTOBUF_CONSTEXPR SchemaScopedTableName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SchemaScopedTableName(const SchemaScopedTableName& from); + SchemaScopedTableName(SchemaScopedTableName&& from) noexcept + : SchemaScopedTableName() { + *this = ::std::move(from); + } + + inline SchemaScopedTableName& operator=(const SchemaScopedTableName& from) { + CopyFrom(from); + return *this; + } + inline SchemaScopedTableName& operator=(SchemaScopedTableName&& 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 SchemaScopedTableName& default_instance() { + return *internal_default_instance(); + } + static inline const SchemaScopedTableName* internal_default_instance() { + return reinterpret_cast( + &_SchemaScopedTableName_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(SchemaScopedTableName& a, SchemaScopedTableName& b) { + a.Swap(&b); + } + inline void Swap(SchemaScopedTableName* 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(SchemaScopedTableName* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SchemaScopedTableName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SchemaScopedTableName& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + 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); + 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(SchemaScopedTableName* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.SchemaScopedTableName"; + } + protected: + 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 RemoveFlowTaskExpr final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RemoveFlowTaskExpr) */ { public: @@ -859,7 +1014,7 @@ class RemoveFlowTaskExpr final : &_RemoveFlowTaskExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 4; friend void swap(RemoveFlowTaskExpr& a, RemoveFlowTaskExpr& b) { a.Swap(&b); @@ -1056,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); @@ -1399,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); @@ -1658,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); @@ -1902,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); @@ -2108,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); @@ -2313,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); @@ -2493,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); @@ -2650,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); @@ -2807,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); @@ -2960,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); @@ -3137,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); @@ -3290,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); @@ -3438,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); @@ -3676,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); @@ -4464,182 +4619,137 @@ inline void CreateFlowTaskExpr::set_allocated_task_name(std::string* task_name) // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.task_name) } -// repeated string source_tables = 3; -inline int CreateFlowTaskExpr::_internal_source_tables_size() const { - return _impl_.source_tables_.size(); -} -inline int CreateFlowTaskExpr::source_tables_size() const { - return _internal_source_tables_size(); -} -inline void CreateFlowTaskExpr::clear_source_tables() { - _impl_.source_tables_.Clear(); -} -inline std::string* CreateFlowTaskExpr::add_source_tables() { - std::string* _s = _internal_add_source_tables(); - // @@protoc_insertion_point(field_add_mutable:greptime.v1.CreateFlowTaskExpr.source_tables) - return _s; -} -inline const std::string& CreateFlowTaskExpr::_internal_source_tables(int index) const { - return _impl_.source_tables_.Get(index); -} -inline const std::string& CreateFlowTaskExpr::source_tables(int index) const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.source_tables) - return _internal_source_tables(index); +// repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; +inline int CreateFlowTaskExpr::_internal_source_table_names_size() const { + return _impl_.source_table_names_.size(); } -inline std::string* CreateFlowTaskExpr::mutable_source_tables(int index) { - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.source_tables) - return _impl_.source_tables_.Mutable(index); +inline int CreateFlowTaskExpr::source_table_names_size() const { + return _internal_source_table_names_size(); } -inline void CreateFlowTaskExpr::set_source_tables(int index, const std::string& value) { - _impl_.source_tables_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.source_tables) +inline void CreateFlowTaskExpr::clear_source_table_names() { + _impl_.source_table_names_.Clear(); } -inline void CreateFlowTaskExpr::set_source_tables(int index, std::string&& value) { - _impl_.source_tables_.Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.source_tables) +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 void CreateFlowTaskExpr::set_source_tables(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.source_tables_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:greptime.v1.CreateFlowTaskExpr.source_tables) -} -inline void CreateFlowTaskExpr::set_source_tables(int index, const char* value, size_t size) { - _impl_.source_tables_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:greptime.v1.CreateFlowTaskExpr.source_tables) +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 std::string* CreateFlowTaskExpr::_internal_add_source_tables() { - return _impl_.source_tables_.Add(); +inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::_internal_source_table_names(int index) const { + return _impl_.source_table_names_.Get(index); } -inline void CreateFlowTaskExpr::add_source_tables(const std::string& value) { - _impl_.source_tables_.Add()->assign(value); - // @@protoc_insertion_point(field_add:greptime.v1.CreateFlowTaskExpr.source_tables) +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 void CreateFlowTaskExpr::add_source_tables(std::string&& value) { - _impl_.source_tables_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:greptime.v1.CreateFlowTaskExpr.source_tables) +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::_internal_add_source_table_names() { + return _impl_.source_table_names_.Add(); } -inline void CreateFlowTaskExpr::add_source_tables(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.source_tables_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:greptime.v1.CreateFlowTaskExpr.source_tables) +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 void CreateFlowTaskExpr::add_source_tables(const char* value, size_t size) { - _impl_.source_tables_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:greptime.v1.CreateFlowTaskExpr.source_tables) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -CreateFlowTaskExpr::source_tables() const { - // @@protoc_insertion_point(field_list:greptime.v1.CreateFlowTaskExpr.source_tables) - return _impl_.source_tables_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -CreateFlowTaskExpr::mutable_source_tables() { - // @@protoc_insertion_point(field_mutable_list:greptime.v1.CreateFlowTaskExpr.source_tables) - return &_impl_.source_tables_; +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_schema_name = 4; -inline void CreateFlowTaskExpr::clear_output_schema_name() { - _impl_.output_schema_name_.ClearToEmpty(); -} -inline const std::string& CreateFlowTaskExpr::output_schema_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.output_schema_name) - return _internal_output_schema_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateFlowTaskExpr::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.CreateFlowTaskExpr.output_schema_name) -} -inline std::string* CreateFlowTaskExpr::mutable_output_schema_name() { - std::string* _s = _internal_mutable_output_schema_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.output_schema_name) - return _s; +// .greptime.v1.SchemaScopedTableName output_table_name = 4; +inline bool CreateFlowTaskExpr::_internal_has_output_table_name() const { + return this != internal_default_instance() && _impl_.output_table_name_ != nullptr; } -inline const std::string& CreateFlowTaskExpr::_internal_output_schema_name() const { - return _impl_.output_schema_name_.Get(); +inline bool CreateFlowTaskExpr::has_output_table_name() const { + return _internal_has_output_table_name(); } -inline void CreateFlowTaskExpr::_internal_set_output_schema_name(const std::string& value) { - - _impl_.output_schema_name_.Set(value, GetArenaForAllocation()); +inline void CreateFlowTaskExpr::clear_output_table_name() { + if (GetArenaForAllocation() == nullptr && _impl_.output_table_name_ != nullptr) { + delete _impl_.output_table_name_; + } + _impl_.output_table_name_ = nullptr; } -inline std::string* CreateFlowTaskExpr::_internal_mutable_output_schema_name() { - - return _impl_.output_schema_name_.Mutable(GetArenaForAllocation()); +inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::_internal_output_table_name() const { + const ::greptime::v1::SchemaScopedTableName* p = _impl_.output_table_name_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_SchemaScopedTableName_default_instance_); } -inline std::string* CreateFlowTaskExpr::release_output_schema_name() { - // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.output_schema_name) - return _impl_.output_schema_name_.Release(); +inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::output_table_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.output_table_name) + return _internal_output_table_name(); } -inline void CreateFlowTaskExpr::set_allocated_output_schema_name(std::string* output_schema_name) { - if (output_schema_name != nullptr) { +inline void CreateFlowTaskExpr::unsafe_arena_set_allocated_output_table_name( + ::greptime::v1::SchemaScopedTableName* output_table_name) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.output_table_name_); + } + _impl_.output_table_name_ = output_table_name; + if (output_table_name) { } 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.CreateFlowTaskExpr.output_schema_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.CreateFlowTaskExpr.output_table_name) } - -// string output_table_name = 5; -inline void CreateFlowTaskExpr::clear_output_table_name() { - _impl_.output_table_name_.ClearToEmpty(); -} -inline const std::string& CreateFlowTaskExpr::output_table_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.output_table_name) - return _internal_output_table_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateFlowTaskExpr::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.CreateFlowTaskExpr.output_table_name) -} -inline std::string* CreateFlowTaskExpr::mutable_output_table_name() { - std::string* _s = _internal_mutable_output_table_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.output_table_name) - return _s; -} -inline const std::string& CreateFlowTaskExpr::_internal_output_table_name() const { - return _impl_.output_table_name_.Get(); +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::release_output_table_name() { + + ::greptime::v1::SchemaScopedTableName* temp = _impl_.output_table_name_; + _impl_.output_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 CreateFlowTaskExpr::_internal_set_output_table_name(const std::string& value) { +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::unsafe_arena_release_output_table_name() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.output_table_name) - _impl_.output_table_name_.Set(value, GetArenaForAllocation()); + ::greptime::v1::SchemaScopedTableName* temp = _impl_.output_table_name_; + _impl_.output_table_name_ = nullptr; + return temp; } -inline std::string* CreateFlowTaskExpr::_internal_mutable_output_table_name() { +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::_internal_mutable_output_table_name() { - return _impl_.output_table_name_.Mutable(GetArenaForAllocation()); + if (_impl_.output_table_name_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::SchemaScopedTableName>(GetArenaForAllocation()); + _impl_.output_table_name_ = p; + } + return _impl_.output_table_name_; } -inline std::string* CreateFlowTaskExpr::release_output_table_name() { - // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.output_table_name) - return _impl_.output_table_name_.Release(); +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::mutable_output_table_name() { + ::greptime::v1::SchemaScopedTableName* _msg = _internal_mutable_output_table_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.output_table_name) + return _msg; } -inline void CreateFlowTaskExpr::set_allocated_output_table_name(std::string* output_table_name) { - if (output_table_name != nullptr) { +inline void CreateFlowTaskExpr::set_allocated_output_table_name(::greptime::v1::SchemaScopedTableName* output_table_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.output_table_name_; + } + if (output_table_name) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(output_table_name); + if (message_arena != submessage_arena) { + output_table_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, output_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 + _impl_.output_table_name_ = output_table_name; // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.output_table_name) } -// bool create_if_not_exists = 6; +// bool create_if_not_exists = 5; inline void CreateFlowTaskExpr::clear_create_if_not_exists() { _impl_.create_if_not_exists_ = false; } @@ -4659,7 +4769,7 @@ inline void CreateFlowTaskExpr::set_create_if_not_exists(bool value) { // @@protoc_insertion_point(field_set:greptime.v1.CreateFlowTaskExpr.create_if_not_exists) } -// string expire_when = 7; +// string expire_when = 6; inline void CreateFlowTaskExpr::clear_expire_when() { _impl_.expire_when_.ClearToEmpty(); } @@ -4709,7 +4819,7 @@ inline void CreateFlowTaskExpr::set_allocated_expire_when(std::string* expire_wh // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.expire_when) } -// string comment = 8; +// string comment = 7; inline void CreateFlowTaskExpr::clear_comment() { _impl_.comment_.ClearToEmpty(); } @@ -4759,7 +4869,7 @@ inline void CreateFlowTaskExpr::set_allocated_comment(std::string* comment) { // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.comment) } -// string sql = 9; +// string sql = 8; inline void CreateFlowTaskExpr::clear_sql() { _impl_.sql_.ClearToEmpty(); } @@ -4809,7 +4919,7 @@ inline void CreateFlowTaskExpr::set_allocated_sql(std::string* sql) { // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.sql) } -// map task_options = 10; +// map task_options = 9; inline int CreateFlowTaskExpr::_internal_task_options_size() const { return _impl_.task_options_.size(); } @@ -4840,6 +4950,110 @@ CreateFlowTaskExpr::mutable_task_options() { // ------------------------------------------------------------------- +// 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) +} + +// ------------------------------------------------------------------- + // RemoveFlowTaskExpr // string catalog_name = 1; @@ -7492,6 +7706,8 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index b411c0a3..15f86aa1 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 @@ -241,16 +241,15 @@ type CreateFlowTaskExpr struct { 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"` - SourceTables []string `protobuf:"bytes,3,rep,name=source_tables,json=sourceTables,proto3" json:"source_tables,omitempty"` - OutputSchemaName string `protobuf:"bytes,4,opt,name=output_schema_name,json=outputSchemaName,proto3" json:"output_schema_name,omitempty"` - OutputTableName string `protobuf:"bytes,5,opt,name=output_table_name,json=outputTableName,proto3" json:"output_table_name,omitempty"` - CreateIfNotExists bool `protobuf:"varint,6,opt,name=create_if_not_exists,json=createIfNotExists,proto3" json:"create_if_not_exists,omitempty"` - ExpireWhen string `protobuf:"bytes,7,opt,name=expire_when,json=expireWhen,proto3" json:"expire_when,omitempty"` - Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"` - Sql string `protobuf:"bytes,9,opt,name=sql,proto3" json:"sql,omitempty"` - TaskOptions map[string]string `protobuf:"bytes,10,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"` + 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"` + OutputTableName *SchemaScopedTableName `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 *CreateFlowTaskExpr) Reset() { @@ -299,25 +298,18 @@ func (x *CreateFlowTaskExpr) GetTaskName() string { return "" } -func (x *CreateFlowTaskExpr) GetSourceTables() []string { +func (x *CreateFlowTaskExpr) GetSourceTableNames() []*SchemaScopedTableName { if x != nil { - return x.SourceTables + return x.SourceTableNames } return nil } -func (x *CreateFlowTaskExpr) GetOutputSchemaName() string { - if x != nil { - return x.OutputSchemaName - } - return "" -} - -func (x *CreateFlowTaskExpr) GetOutputTableName() string { +func (x *CreateFlowTaskExpr) GetOutputTableName() *SchemaScopedTableName { if x != nil { return x.OutputTableName } - return "" + return nil } func (x *CreateFlowTaskExpr) GetCreateIfNotExists() bool { @@ -355,6 +347,62 @@ func (x *CreateFlowTaskExpr) GetTaskOptions() map[string]string { return nil } +// Table name +type SchemaScopedTableName struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + 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 *SchemaScopedTableName) Reset() { + *x = SchemaScopedTableName{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchemaScopedTableName) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchemaScopedTableName) ProtoMessage() {} + +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)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchemaScopedTableName.ProtoReflect.Descriptor instead. +func (*SchemaScopedTableName) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{2} +} + +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 RemoveFlowTaskExpr struct { state protoimpl.MessageState @@ -368,7 +416,7 @@ type RemoveFlowTaskExpr struct { func (x *RemoveFlowTaskExpr) Reset() { *x = RemoveFlowTaskExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[2] + mi := &file_greptime_v1_ddl_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -381,7 +429,7 @@ func (x *RemoveFlowTaskExpr) String() string { func (*RemoveFlowTaskExpr) ProtoMessage() {} func (x *RemoveFlowTaskExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[2] + mi := &file_greptime_v1_ddl_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -394,7 +442,7 @@ func (x *RemoveFlowTaskExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveFlowTaskExpr.ProtoReflect.Descriptor instead. func (*RemoveFlowTaskExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{2} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{3} } func (x *RemoveFlowTaskExpr) GetCatalogName() string { @@ -432,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) } @@ -445,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 { @@ -458,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 { @@ -557,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) } @@ -570,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 { @@ -583,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 { @@ -672,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) } @@ -685,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 { @@ -698,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 { @@ -750,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) } @@ -763,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 { @@ -776,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 { @@ -821,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) } @@ -834,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 { @@ -847,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 { @@ -891,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) } @@ -904,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 { @@ -917,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 { @@ -952,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) } @@ -965,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 { @@ -978,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 { @@ -999,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) } @@ -1012,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 { @@ -1025,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 { @@ -1046,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) } @@ -1059,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 { @@ -1072,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 { @@ -1094,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) } @@ -1107,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 { @@ -1120,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 { @@ -1148,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) } @@ -1161,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 { @@ -1174,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 { @@ -1195,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) } @@ -1208,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 { @@ -1221,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 { @@ -1249,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) } @@ -1262,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 { @@ -1275,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 { @@ -1339,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) } @@ -1352,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 { @@ -1365,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 { @@ -1420,206 +1468,214 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, - 0x65, 0x78, 0x70, 0x72, 0x22, 0xe6, 0x03, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, + 0x65, 0x78, 0x70, 0x72, 0x22, 0x89, 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, 0x23, 0x0a, 0x0d, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, - 0x12, 0x2c, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 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, 0x05, 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, 0x06, 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, 0x07, 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, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x09, 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, 0x0a, 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, 0x54, 0x0a, - 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 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, 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, + 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, 0x4e, 0x0a, + 0x11, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 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, 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, 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, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x54, 0x0a, 0x12, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 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, 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, + 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 ( @@ -1635,64 +1691,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 (*CreateFlowTaskExpr)(nil), // 2: greptime.v1.CreateFlowTaskExpr - (*RemoveFlowTaskExpr)(nil), // 3: greptime.v1.RemoveFlowTaskExpr - (*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.CreateFlowTaskExpr.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 + (*SchemaScopedTableName)(nil), // 3: greptime.v1.SchemaScopedTableName + (*RemoveFlowTaskExpr)(nil), // 4: greptime.v1.RemoveFlowTaskExpr + (*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 + 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 - 3, // 6: greptime.v1.DdlRequest.remove_flow_task:type_name -> greptime.v1.RemoveFlowTaskExpr - 18, // 7: greptime.v1.CreateFlowTaskExpr.task_options:type_name -> greptime.v1.CreateFlowTaskExpr.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 + 4, // 6: greptime.v1.DdlRequest.remove_flow_task:type_name -> greptime.v1.RemoveFlowTaskExpr + 3, // 7: greptime.v1.CreateFlowTaskExpr.source_table_names:type_name -> greptime.v1.SchemaScopedTableName + 3, // 8: greptime.v1.CreateFlowTaskExpr.output_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() } @@ -1727,7 +1786,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.(*RemoveFlowTaskExpr); i { + switch v := v.(*SchemaScopedTableName); i { case 0: return &v.state case 1: @@ -1739,7 +1798,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.(*RemoveFlowTaskExpr); i { case 0: return &v.state case 1: @@ -1751,7 +1810,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: @@ -1763,7 +1822,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: @@ -1775,7 +1834,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: @@ -1787,7 +1846,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: @@ -1799,7 +1858,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: @@ -1811,7 +1870,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: @@ -1823,7 +1882,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: @@ -1835,7 +1894,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: @@ -1847,7 +1906,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: @@ -1859,7 +1918,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: @@ -1871,7 +1930,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: @@ -1883,7 +1942,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: @@ -1895,6 +1954,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 @@ -1916,7 +1987,7 @@ func file_greptime_v1_ddl_proto_init() { (*DdlRequest_CreateFlowTask)(nil), (*DdlRequest_RemoveFlowTask)(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), @@ -1927,7 +1998,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/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index aecb0672..d11c1a2e 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -2158,102 +2158,92 @@ public interface CreateFlowTaskExprOrBuilder extends getTaskNameBytes(); /** - * repeated string source_tables = 3; - * @return A list containing the sourceTables. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - java.util.List - getSourceTablesList(); + java.util.List + getSourceTableNamesList(); /** - * repeated string source_tables = 3; - * @return The count of sourceTables. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - int getSourceTablesCount(); + io.greptime.v1.Ddl.SchemaScopedTableName getSourceTableNames(int index); /** - * repeated string source_tables = 3; - * @param index The index of the element to return. - * @return The sourceTables at the given index. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - java.lang.String getSourceTables(int index); + int getSourceTableNamesCount(); /** - * repeated string source_tables = 3; - * @param index The index of the value to return. - * @return The bytes of the sourceTables at the given index. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - com.google.protobuf.ByteString - getSourceTablesBytes(int index); - + java.util.List + getSourceTableNamesOrBuilderList(); /** - * string output_schema_name = 4; - * @return The outputSchemaName. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - java.lang.String getOutputSchemaName(); + io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBuilder( + int index); + /** - * string output_schema_name = 4; - * @return The bytes for outputSchemaName. + * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * @return Whether the outputTableName field is set. */ - com.google.protobuf.ByteString - getOutputSchemaNameBytes(); - + boolean hasOutputTableName(); /** - * string output_table_name = 5; + * .greptime.v1.SchemaScopedTableName output_table_name = 4; * @return The outputTableName. */ - java.lang.String getOutputTableName(); + io.greptime.v1.Ddl.SchemaScopedTableName getOutputTableName(); /** - * string output_table_name = 5; - * @return The bytes for outputTableName. + * .greptime.v1.SchemaScopedTableName output_table_name = 4; */ - com.google.protobuf.ByteString - getOutputTableNameBytes(); + io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getOutputTableNameOrBuilder(); /** - * bool create_if_not_exists = 6; + * bool create_if_not_exists = 5; * @return The createIfNotExists. */ boolean getCreateIfNotExists(); /** - * string expire_when = 7; + * string expire_when = 6; * @return The expireWhen. */ java.lang.String getExpireWhen(); /** - * string expire_when = 7; + * string expire_when = 6; * @return The bytes for expireWhen. */ com.google.protobuf.ByteString getExpireWhenBytes(); /** - * string comment = 8; + * string comment = 7; * @return The comment. */ java.lang.String getComment(); /** - * string comment = 8; + * string comment = 7; * @return The bytes for comment. */ com.google.protobuf.ByteString getCommentBytes(); /** - * string sql = 9; + * string sql = 8; * @return The sql. */ java.lang.String getSql(); /** - * string sql = 9; + * string sql = 8; * @return The bytes for sql. */ com.google.protobuf.ByteString getSqlBytes(); /** - * map<string, string> task_options = 10; + * map<string, string> task_options = 9; */ int getTaskOptionsCount(); /** - * map<string, string> task_options = 10; + * map<string, string> task_options = 9; */ boolean containsTaskOptions( java.lang.String key); @@ -2264,12 +2254,12 @@ boolean containsTaskOptions( java.util.Map getTaskOptions(); /** - * map<string, string> task_options = 10; + * map<string, string> task_options = 9; */ java.util.Map getTaskOptionsMap(); /** - * map<string, string> task_options = 10; + * map<string, string> task_options = 9; */ /* nullable */ @@ -2278,7 +2268,7 @@ java.lang.String getTaskOptionsOrDefault( /* nullable */ java.lang.String defaultValue); /** - * map<string, string> task_options = 10; + * map<string, string> task_options = 9; */ java.lang.String getTaskOptionsOrThrow( @@ -2303,9 +2293,7 @@ private CreateFlowTaskExpr(com.google.protobuf.GeneratedMessageV3.Builder bui private CreateFlowTaskExpr() { catalogName_ = ""; taskName_ = ""; - sourceTables_ = com.google.protobuf.LazyStringArrayList.EMPTY; - outputSchemaName_ = ""; - outputTableName_ = ""; + sourceTableNames_ = java.util.Collections.emptyList(); expireWhen_ = ""; comment_ = ""; sql_ = ""; @@ -2355,50 +2343,51 @@ private CreateFlowTaskExpr( break; } case 26: { - java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sourceTables_ = new com.google.protobuf.LazyStringArrayList(); + sourceTableNames_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } - sourceTables_.add(s); + sourceTableNames_.add( + input.readMessage(io.greptime.v1.Ddl.SchemaScopedTableName.parser(), extensionRegistry)); break; } case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - outputSchemaName_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + io.greptime.v1.Ddl.SchemaScopedTableName.Builder subBuilder = null; + if (outputTableName_ != null) { + subBuilder = outputTableName_.toBuilder(); + } + outputTableName_ = input.readMessage(io.greptime.v1.Ddl.SchemaScopedTableName.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputTableName_); + outputTableName_ = subBuilder.buildPartial(); + } - outputTableName_ = s; break; } - case 48: { + case 40: { createIfNotExists_ = input.readBool(); break; } - case 58: { + case 50: { java.lang.String s = input.readStringRequireUtf8(); expireWhen_ = s; break; } - case 66: { + case 58: { java.lang.String s = input.readStringRequireUtf8(); comment_ = s; break; } - case 74: { + case 66: { java.lang.String s = input.readStringRequireUtf8(); sql_ = s; break; } - case 82: { + case 74: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { taskOptions_ = com.google.protobuf.MapField.newMapField( TaskOptionsDefaultEntryHolder.defaultEntry); @@ -2429,7 +2418,7 @@ private CreateFlowTaskExpr( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - sourceTables_ = sourceTables_.getUnmodifiableView(); + sourceTableNames_ = java.util.Collections.unmodifiableList(sourceTableNames_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -2445,7 +2434,7 @@ private CreateFlowTaskExpr( protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { - case 10: + case 9: return internalGetTaskOptions(); default: throw new RuntimeException( @@ -2536,121 +2525,76 @@ public java.lang.String getTaskName() { } } - public static final int SOURCE_TABLES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList sourceTables_; + public static final int SOURCE_TABLE_NAMES_FIELD_NUMBER = 3; + private java.util.List sourceTableNames_; /** - * repeated string source_tables = 3; - * @return A list containing the sourceTables. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public com.google.protobuf.ProtocolStringList - getSourceTablesList() { - return sourceTables_; + @java.lang.Override + public java.util.List getSourceTableNamesList() { + return sourceTableNames_; } /** - * repeated string source_tables = 3; - * @return The count of sourceTables. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public int getSourceTablesCount() { - return sourceTables_.size(); + @java.lang.Override + public java.util.List + getSourceTableNamesOrBuilderList() { + return sourceTableNames_; } /** - * repeated string source_tables = 3; - * @param index The index of the element to return. - * @return The sourceTables at the given index. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public java.lang.String getSourceTables(int index) { - return sourceTables_.get(index); + @java.lang.Override + public int getSourceTableNamesCount() { + return sourceTableNames_.size(); } /** - * repeated string source_tables = 3; - * @param index The index of the value to return. - * @return The bytes of the sourceTables at the given index. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public com.google.protobuf.ByteString - getSourceTablesBytes(int index) { - return sourceTables_.getByteString(index); + @java.lang.Override + public io.greptime.v1.Ddl.SchemaScopedTableName getSourceTableNames(int index) { + return sourceTableNames_.get(index); } - - public static final int OUTPUT_SCHEMA_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object outputSchemaName_; /** - * string output_schema_name = 4; - * @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 io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBuilder( + int index) { + return sourceTableNames_.get(index); } + + public static final int OUTPUT_TABLE_NAME_FIELD_NUMBER = 4; + private io.greptime.v1.Ddl.SchemaScopedTableName outputTableName_; /** - * string output_schema_name = 4; - * @return The bytes for outputSchemaName. + * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * @return Whether the outputTableName field is set. */ @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 boolean hasOutputTableName() { + return outputTableName_ != null; } - - public static final int OUTPUT_TABLE_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object outputTableName_; /** - * string output_table_name = 5; + * .greptime.v1.SchemaScopedTableName output_table_name = 4; * @return The outputTableName. */ @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 io.greptime.v1.Ddl.SchemaScopedTableName getOutputTableName() { + return outputTableName_ == null ? io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : outputTableName_; } /** - * string output_table_name = 5; - * @return The bytes for outputTableName. + * .greptime.v1.SchemaScopedTableName output_table_name = 4; */ @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.SchemaScopedTableNameOrBuilder getOutputTableNameOrBuilder() { + return getOutputTableName(); } - public static final int CREATE_IF_NOT_EXISTS_FIELD_NUMBER = 6; + public static final int CREATE_IF_NOT_EXISTS_FIELD_NUMBER = 5; private boolean createIfNotExists_; /** - * bool create_if_not_exists = 6; + * bool create_if_not_exists = 5; * @return The createIfNotExists. */ @java.lang.Override @@ -2658,10 +2602,10 @@ public boolean getCreateIfNotExists() { return createIfNotExists_; } - public static final int EXPIRE_WHEN_FIELD_NUMBER = 7; + public static final int EXPIRE_WHEN_FIELD_NUMBER = 6; private volatile java.lang.Object expireWhen_; /** - * string expire_when = 7; + * string expire_when = 6; * @return The expireWhen. */ @java.lang.Override @@ -2678,7 +2622,7 @@ public java.lang.String getExpireWhen() { } } /** - * string expire_when = 7; + * string expire_when = 6; * @return The bytes for expireWhen. */ @java.lang.Override @@ -2696,10 +2640,10 @@ public java.lang.String getExpireWhen() { } } - public static final int COMMENT_FIELD_NUMBER = 8; + public static final int COMMENT_FIELD_NUMBER = 7; private volatile java.lang.Object comment_; /** - * string comment = 8; + * string comment = 7; * @return The comment. */ @java.lang.Override @@ -2716,7 +2660,7 @@ public java.lang.String getComment() { } } /** - * string comment = 8; + * string comment = 7; * @return The bytes for comment. */ @java.lang.Override @@ -2734,10 +2678,10 @@ public java.lang.String getComment() { } } - public static final int SQL_FIELD_NUMBER = 9; + public static final int SQL_FIELD_NUMBER = 8; private volatile java.lang.Object sql_; /** - * string sql = 9; + * string sql = 8; * @return The sql. */ @java.lang.Override @@ -2754,7 +2698,7 @@ public java.lang.String getSql() { } } /** - * string sql = 9; + * string sql = 8; * @return The bytes for sql. */ @java.lang.Override @@ -2772,7 +2716,7 @@ public java.lang.String getSql() { } } - public static final int TASK_OPTIONS_FIELD_NUMBER = 10; + public static final int TASK_OPTIONS_FIELD_NUMBER = 9; private static final class TaskOptionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = @@ -2799,7 +2743,7 @@ public int getTaskOptionsCount() { return internalGetTaskOptions().getMap().size(); } /** - * map<string, string> task_options = 10; + * map<string, string> task_options = 9; */ @java.lang.Override @@ -2817,7 +2761,7 @@ public java.util.Map getTaskOptions() { return getTaskOptionsMap(); } /** - * map<string, string> task_options = 10; + * map<string, string> task_options = 9; */ @java.lang.Override @@ -2825,7 +2769,7 @@ public java.util.Map getTaskOptionsMap() { return internalGetTaskOptions().getMap(); } /** - * map<string, string> task_options = 10; + * map<string, string> task_options = 9; */ @java.lang.Override @@ -2838,7 +2782,7 @@ public java.lang.String getTaskOptionsOrDefault( return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, string> task_options = 10; + * map<string, string> task_options = 9; */ @java.lang.Override @@ -2873,33 +2817,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, taskName_); } - for (int i = 0; i < sourceTables_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceTables_.getRaw(i)); + for (int i = 0; i < sourceTableNames_.size(); i++) { + output.writeMessage(3, sourceTableNames_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputSchemaName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outputSchemaName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputTableName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputTableName_); + if (outputTableName_ != null) { + output.writeMessage(4, getOutputTableName()); } if (createIfNotExists_ != false) { - output.writeBool(6, createIfNotExists_); + output.writeBool(5, createIfNotExists_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireWhen_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, expireWhen_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, expireWhen_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, comment_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, comment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sql_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, sql_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetTaskOptions(), TaskOptionsDefaultEntryHolder.defaultEntry, - 10); + 9); unknownFields.writeTo(output); } @@ -2915,32 +2856,26 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, taskName_); } - { - int dataSize = 0; - for (int i = 0; i < sourceTables_.size(); i++) { - dataSize += computeStringSizeNoTag(sourceTables_.getRaw(i)); - } - size += dataSize; - size += 1 * getSourceTablesList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputSchemaName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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(5, outputTableName_); + if (outputTableName_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOutputTableName()); } if (createIfNotExists_ != false) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, createIfNotExists_); + .computeBoolSize(5, createIfNotExists_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireWhen_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, expireWhen_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, expireWhen_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, comment_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, comment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sql_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sql_); } for (java.util.Map.Entry entry : internalGetTaskOptions().getMap().entrySet()) { @@ -2950,7 +2885,7 @@ public int getSerializedSize() { .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, taskOptions__); + .computeMessageSize(9, taskOptions__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2971,12 +2906,13 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCatalogName())) return false; if (!getTaskName() .equals(other.getTaskName())) return false; - if (!getSourceTablesList() - .equals(other.getSourceTablesList())) return false; - if (!getOutputSchemaName() - .equals(other.getOutputSchemaName())) return false; - if (!getOutputTableName() - .equals(other.getOutputTableName())) return false; + if (!getSourceTableNamesList() + .equals(other.getSourceTableNamesList())) return false; + if (hasOutputTableName() != other.hasOutputTableName()) return false; + if (hasOutputTableName()) { + if (!getOutputTableName() + .equals(other.getOutputTableName())) return false; + } if (getCreateIfNotExists() != other.getCreateIfNotExists()) return false; if (!getExpireWhen() @@ -3002,14 +2938,14 @@ public int hashCode() { hash = (53 * hash) + getCatalogName().hashCode(); hash = (37 * hash) + TASK_NAME_FIELD_NUMBER; hash = (53 * hash) + getTaskName().hashCode(); - if (getSourceTablesCount() > 0) { - hash = (37 * hash) + SOURCE_TABLES_FIELD_NUMBER; - hash = (53 * hash) + getSourceTablesList().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 (hasOutputTableName()) { + hash = (37 * hash) + OUTPUT_TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOutputTableName().hashCode(); + } hash = (37 * hash) + CREATE_IF_NOT_EXISTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCreateIfNotExists()); @@ -3138,7 +3074,7 @@ public static final class Builder extends protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { - case 10: + case 9: return internalGetTaskOptions(); default: throw new RuntimeException( @@ -3149,7 +3085,7 @@ protected com.google.protobuf.MapField internalGetMapField( protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { - case 10: + case 9: return internalGetMutableTaskOptions(); default: throw new RuntimeException( @@ -3177,6 +3113,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getSourceTableNamesFieldBuilder(); } } @java.lang.Override @@ -3186,12 +3123,18 @@ public Builder clear() { taskName_ = ""; - sourceTables_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - outputSchemaName_ = ""; - - outputTableName_ = ""; - + if (sourceTableNamesBuilder_ == null) { + sourceTableNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + sourceTableNamesBuilder_.clear(); + } + if (outputTableNameBuilder_ == null) { + outputTableName_ = null; + } else { + outputTableName_ = null; + outputTableNameBuilder_ = null; + } createIfNotExists_ = false; expireWhen_ = ""; @@ -3230,13 +3173,20 @@ public io.greptime.v1.Ddl.CreateFlowTaskExpr buildPartial() { int from_bitField0_ = bitField0_; result.catalogName_ = catalogName_; result.taskName_ = taskName_; - if (((bitField0_ & 0x00000001) != 0)) { - sourceTables_ = sourceTables_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + 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 (outputTableNameBuilder_ == null) { + result.outputTableName_ = outputTableName_; + } else { + result.outputTableName_ = outputTableNameBuilder_.build(); } - result.sourceTables_ = sourceTables_; - result.outputSchemaName_ = outputSchemaName_; - result.outputTableName_ = outputTableName_; result.createIfNotExists_ = createIfNotExists_; result.expireWhen_ = expireWhen_; result.comment_ = comment_; @@ -3299,23 +3249,34 @@ public Builder mergeFrom(io.greptime.v1.Ddl.CreateFlowTaskExpr other) { taskName_ = other.taskName_; onChanged(); } - if (!other.sourceTables_.isEmpty()) { - if (sourceTables_.isEmpty()) { - sourceTables_ = other.sourceTables_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSourceTablesIsMutable(); - sourceTables_.addAll(other.sourceTables_); + 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_); + } } - onChanged(); - } - if (!other.getOutputSchemaName().isEmpty()) { - outputSchemaName_ = other.outputSchemaName_; - onChanged(); } - if (!other.getOutputTableName().isEmpty()) { - outputTableName_ = other.outputTableName_; - onChanged(); + if (other.hasOutputTableName()) { + mergeOutputTableName(other.getOutputTableName()); } if (other.getCreateIfNotExists() != false) { setCreateIfNotExists(other.getCreateIfNotExists()); @@ -3516,271 +3477,368 @@ public Builder setTaskNameBytes( return this; } - private com.google.protobuf.LazyStringList sourceTables_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureSourceTablesIsMutable() { + private java.util.List sourceTableNames_ = + java.util.Collections.emptyList(); + private void ensureSourceTableNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - sourceTables_ = new com.google.protobuf.LazyStringArrayList(sourceTables_); + 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_; + /** - * repeated string source_tables = 3; - * @return A list containing the sourceTables. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public com.google.protobuf.ProtocolStringList - getSourceTablesList() { - return sourceTables_.getUnmodifiableView(); + public java.util.List getSourceTableNamesList() { + if (sourceTableNamesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sourceTableNames_); + } else { + return sourceTableNamesBuilder_.getMessageList(); + } } /** - * repeated string source_tables = 3; - * @return The count of sourceTables. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public int getSourceTablesCount() { - return sourceTables_.size(); + public int getSourceTableNamesCount() { + if (sourceTableNamesBuilder_ == null) { + return sourceTableNames_.size(); + } else { + return sourceTableNamesBuilder_.getCount(); + } } /** - * repeated string source_tables = 3; - * @param index The index of the element to return. - * @return The sourceTables at the given index. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public java.lang.String getSourceTables(int index) { - return sourceTables_.get(index); + public io.greptime.v1.Ddl.SchemaScopedTableName getSourceTableNames(int index) { + if (sourceTableNamesBuilder_ == null) { + return sourceTableNames_.get(index); + } else { + return sourceTableNamesBuilder_.getMessage(index); + } } /** - * repeated string source_tables = 3; - * @param index The index of the value to return. - * @return The bytes of the sourceTables at the given index. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public com.google.protobuf.ByteString - getSourceTablesBytes(int index) { - return sourceTables_.getByteString(index); + 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; } /** - * repeated string source_tables = 3; - * @param index The index to set the value at. - * @param value The sourceTables to set. - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder setSourceTables( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSourceTablesIsMutable(); - sourceTables_.set(index, 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; } /** - * repeated string source_tables = 3; - * @param value The sourceTables to add. - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder addSourceTables( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSourceTablesIsMutable(); - sourceTables_.add(value); - onChanged(); + public Builder addSourceTableNames(io.greptime.v1.Ddl.SchemaScopedTableName value) { + if (sourceTableNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceTableNamesIsMutable(); + sourceTableNames_.add(value); + onChanged(); + } else { + sourceTableNamesBuilder_.addMessage(value); + } return this; } /** - * repeated string source_tables = 3; - * @param values The sourceTables to add. - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder addAllSourceTables( - java.lang.Iterable values) { - ensureSourceTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sourceTables_); - onChanged(); + 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 { + sourceTableNamesBuilder_.addMessage(index, value); + } return this; } /** - * repeated string source_tables = 3; - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder clearSourceTables() { - sourceTables_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - 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; } /** - * repeated string source_tables = 3; - * @param value The bytes of the sourceTables to add. - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder addSourceTablesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSourceTablesIsMutable(); - sourceTables_.add(value); - 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; } - - private java.lang.Object outputSchemaName_ = ""; /** - * string output_schema_name = 4; - * @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 Builder addAllSourceTableNames( + java.lang.Iterable values) { + if (sourceTableNamesBuilder_ == null) { + ensureSourceTableNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sourceTableNames_); + onChanged(); } else { - return (java.lang.String) ref; + sourceTableNamesBuilder_.addAllMessages(values); } + return this; } /** - * string output_schema_name = 4; - * @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 Builder clearSourceTableNames() { + if (sourceTableNamesBuilder_ == null) { + sourceTableNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + sourceTableNamesBuilder_.clear(); } + return this; } /** - * string output_schema_name = 4; - * @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(); + public Builder removeSourceTableNames(int index) { + if (sourceTableNamesBuilder_ == null) { + ensureSourceTableNamesIsMutable(); + sourceTableNames_.remove(index); + onChanged(); + } else { + sourceTableNamesBuilder_.remove(index); + } return this; } /** - * string output_schema_name = 4; - * @return This builder for chaining. + * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; */ - public Builder clearOutputSchemaName() { - - outputSchemaName_ = getDefaultInstance().getOutputSchemaName(); - onChanged(); - return this; + public io.greptime.v1.Ddl.SchemaScopedTableName.Builder getSourceTableNamesBuilder( + int index) { + return getSourceTableNamesFieldBuilder().getBuilder(index); } /** - * string output_schema_name = 4; - * @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(); - return this; + public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBuilder( + int index) { + if (sourceTableNamesBuilder_ == null) { + return sourceTableNames_.get(index); } else { + return sourceTableNamesBuilder_.getMessageOrBuilder(index); + } } - - private java.lang.Object outputTableName_ = ""; /** - * string output_table_name = 5; - * @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 java.util.List + getSourceTableNamesOrBuilderList() { + if (sourceTableNamesBuilder_ != null) { + return sourceTableNamesBuilder_.getMessageOrBuilderList(); } else { - return (java.lang.String) ref; + return java.util.Collections.unmodifiableList(sourceTableNames_); } } /** - * string output_table_name = 5; - * @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; - } else { - return (com.google.protobuf.ByteString) ref; - } + public io.greptime.v1.Ddl.SchemaScopedTableName.Builder addSourceTableNamesBuilder() { + return getSourceTableNamesFieldBuilder().addBuilder( + io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance()); } /** - * string output_table_name = 5; - * @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 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 outputTableName_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder> outputTableNameBuilder_; + /** + * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * @return Whether the outputTableName field is set. + */ + public boolean hasOutputTableName() { + return outputTableNameBuilder_ != null || outputTableName_ != null; + } + /** + * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * @return The outputTableName. + */ + public io.greptime.v1.Ddl.SchemaScopedTableName getOutputTableName() { + if (outputTableNameBuilder_ == null) { + return outputTableName_ == null ? io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : outputTableName_; + } else { + return outputTableNameBuilder_.getMessage(); + } + } + /** + * .greptime.v1.SchemaScopedTableName output_table_name = 4; + */ + public Builder setOutputTableName(io.greptime.v1.Ddl.SchemaScopedTableName value) { + if (outputTableNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputTableName_ = value; + onChanged(); + } else { + outputTableNameBuilder_.setMessage(value); + } + return this; } /** - * string output_table_name = 5; - * @return This builder for chaining. + * .greptime.v1.SchemaScopedTableName output_table_name = 4; + */ + public Builder setOutputTableName( + io.greptime.v1.Ddl.SchemaScopedTableName.Builder builderForValue) { + if (outputTableNameBuilder_ == null) { + outputTableName_ = builderForValue.build(); + onChanged(); + } else { + outputTableNameBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.SchemaScopedTableName output_table_name = 4; + */ + public Builder mergeOutputTableName(io.greptime.v1.Ddl.SchemaScopedTableName value) { + if (outputTableNameBuilder_ == null) { + if (outputTableName_ != null) { + outputTableName_ = + io.greptime.v1.Ddl.SchemaScopedTableName.newBuilder(outputTableName_).mergeFrom(value).buildPartial(); + } else { + outputTableName_ = value; + } + onChanged(); + } else { + outputTableNameBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.SchemaScopedTableName output_table_name = 4; */ public Builder clearOutputTableName() { - - outputTableName_ = getDefaultInstance().getOutputTableName(); - onChanged(); + if (outputTableNameBuilder_ == null) { + outputTableName_ = null; + onChanged(); + } else { + outputTableName_ = null; + outputTableNameBuilder_ = null; + } + return this; } /** - * string output_table_name = 5; - * @param value The bytes for outputTableName to set. - * @return This builder for chaining. + * .greptime.v1.SchemaScopedTableName output_table_name = 4; */ - public Builder setOutputTableNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public io.greptime.v1.Ddl.SchemaScopedTableName.Builder getOutputTableNameBuilder() { - outputTableName_ = value; onChanged(); - return this; + return getOutputTableNameFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.SchemaScopedTableName output_table_name = 4; + */ + public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getOutputTableNameOrBuilder() { + if (outputTableNameBuilder_ != null) { + return outputTableNameBuilder_.getMessageOrBuilder(); + } else { + return outputTableName_ == null ? + io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : outputTableName_; + } + } + /** + * .greptime.v1.SchemaScopedTableName output_table_name = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder> + getOutputTableNameFieldBuilder() { + if (outputTableNameBuilder_ == null) { + outputTableNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder>( + getOutputTableName(), + getParentForChildren(), + isClean()); + outputTableName_ = null; + } + return outputTableNameBuilder_; } private boolean createIfNotExists_ ; /** - * bool create_if_not_exists = 6; + * bool create_if_not_exists = 5; * @return The createIfNotExists. */ @java.lang.Override @@ -3788,7 +3846,7 @@ public boolean getCreateIfNotExists() { return createIfNotExists_; } /** - * bool create_if_not_exists = 6; + * bool create_if_not_exists = 5; * @param value The createIfNotExists to set. * @return This builder for chaining. */ @@ -3799,7 +3857,7 @@ public Builder setCreateIfNotExists(boolean value) { return this; } /** - * bool create_if_not_exists = 6; + * bool create_if_not_exists = 5; * @return This builder for chaining. */ public Builder clearCreateIfNotExists() { @@ -3811,7 +3869,7 @@ public Builder clearCreateIfNotExists() { private java.lang.Object expireWhen_ = ""; /** - * string expire_when = 7; + * string expire_when = 6; * @return The expireWhen. */ public java.lang.String getExpireWhen() { @@ -3827,7 +3885,7 @@ public java.lang.String getExpireWhen() { } } /** - * string expire_when = 7; + * string expire_when = 6; * @return The bytes for expireWhen. */ public com.google.protobuf.ByteString @@ -3844,7 +3902,7 @@ public java.lang.String getExpireWhen() { } } /** - * string expire_when = 7; + * string expire_when = 6; * @param value The expireWhen to set. * @return This builder for chaining. */ @@ -3859,7 +3917,7 @@ public Builder setExpireWhen( return this; } /** - * string expire_when = 7; + * string expire_when = 6; * @return This builder for chaining. */ public Builder clearExpireWhen() { @@ -3869,7 +3927,7 @@ public Builder clearExpireWhen() { return this; } /** - * string expire_when = 7; + * string expire_when = 6; * @param value The bytes for expireWhen to set. * @return This builder for chaining. */ @@ -3885,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 = 8; - * @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 = 8; - * @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 = 8; - * @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 = 8; + * 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 = 8; - * @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 = 9; - * @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 = 9; - * @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 = 9; - * @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 = 9; + * 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 = 9; - * @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 = 10; - */ - - @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 = 10; - */ - @java.lang.Override - - public java.util.Map getTaskOptionsMap() { - return internalGetTaskOptions().getMap(); - } - /** - * map<string, string> task_options = 10; - */ - @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 = 10; - */ - @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 = 10; - */ - - 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 = 10; - */ - 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 = 10; - */ - - 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) { @@ -4180,41 +4966,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.CreateFlowTaskExpr) + // @@protoc_insertion_point(builder_scope:greptime.v1.SchemaScopedTableName) } - // @@protoc_insertion_point(class_scope:greptime.v1.CreateFlowTaskExpr) - private static final io.greptime.v1.Ddl.CreateFlowTaskExpr 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.CreateFlowTaskExpr(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.SchemaScopedTableName(); } - public static io.greptime.v1.Ddl.CreateFlowTaskExpr 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 CreateFlowTaskExpr parsePartialFrom( + public SchemaScopedTableName parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFlowTaskExpr(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.CreateFlowTaskExpr getDefaultInstanceForType() { + public io.greptime.v1.Ddl.SchemaScopedTableName getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -19399,6 +20185,11 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_CreateFlowTaskExpr_TaskOptionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_SchemaScopedTableName_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_SchemaScopedTableName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_RemoveFlowTaskExpr_descriptor; private static final @@ -19504,68 +20295,71 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { ".TruncateTableExprH\000\022;\n\020create_flow_task" + "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" + "\000\022;\n\020remove_flow_task\030\t \001(\0132\037.greptime.v" + - "1.RemoveFlowTaskExprH\000B\006\n\004expr\"\330\002\n\022Creat" + + "1.RemoveFlowTaskExprH\000B\006\n\004expr\"\211\003\n\022Creat" + "eFlowTaskExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tt" + - "ask_name\030\002 \001(\t\022\025\n\rsource_tables\030\003 \003(\t\022\032\n" + - "\022output_schema_name\030\004 \001(\t\022\031\n\021output_tabl" + - "e_name\030\005 \001(\t\022\034\n\024create_if_not_exists\030\006 \001" + - "(\010\022\023\n\013expire_when\030\007 \001(\t\022\017\n\007comment\030\010 \001(\t" + - "\022\013\n\003sql\030\t \001(\t\022F\n\014task_options\030\n \003(\01320.gr" + - "eptime.v1.CreateFlowTaskExpr.TaskOptions" + - "Entry\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r" + - "\n\005value\030\002 \001(\t:\0028\001\"=\n\022RemoveFlowTaskExpr\022" + - "\024\n\014catalog_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t" + - "\"\207\003\n\017CreateTableExpr\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 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026" + - ".greptime.v1.ColumnDef\022\022\n\ntime_index\030\006 \001" + - "(\t\022\024\n\014primary_keys\030\007 \003(\t\022\034\n\024create_if_no" + - "t_exists\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132.." + - "greptime.v1.CreateTableExpr.TableOptions" + - "Entry\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.Ta" + - "bleId\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tA" + - "lterExpr\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.\n\013add_c" + - "olumns\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\022" + - "0\n\014drop_columns\030\005 \001(\0132\030.greptime.v1.Drop" + - "ColumnsH\000\0220\n\014rename_table\030\006 \001(\0132\030.grepti" + - "me.v1.RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTabl" + - "eExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_na" + - "me\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id" + - "\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_" + - "exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014c" + - "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034" + - "\n\024create_if_not_exists\030\003 \001(\010\022=\n\007options\030" + - "\004 \003(\0132,.greptime.v1.CreateDatabaseExpr.O" + - "ptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr" + + "ask_name\030\002 \001(\t\022>\n\022source_table_names\030\003 \003" + + "(\0132\".greptime.v1.SchemaScopedTableName\022=" + + "\n\021output_table_name\030\004 \001(\0132\".greptime.v1." + + "SchemaScopedTableName\022\034\n\024create_if_not_e" + + "xists\030\005 \001(\010\022\023\n\013expire_when\030\006 \001(\t\022\017\n\007comm" + + "ent\030\007 \001(\t\022\013\n\003sql\030\010 \001(\t\022F\n\014task_options\030\t" + + " \003(\01320.greptime.v1.CreateFlowTaskExpr.Ta" + + "skOptionsEntry\0322\n\020TaskOptionsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\025SchemaScop" + + "edTableName\022\023\n\013schema_name\030\001 \001(\t\022\022\n\ntabl" + + "e_name\030\002 \001(\t\"=\n\022RemoveFlowTaskExpr\022\024\n\014ca" + + "talog_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003\n\017" + + "CreateTableExpr\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 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.grep" + + "time.v1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n" + + "\014primary_keys\030\007 \003(\t\022\034\n\024create_if_not_exi" + + "sts\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132..grept" + + "ime.v1.CreateTableExpr.TableOptionsEntry" + + "\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.TableId" + + "\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterE" + + "xpr\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.\n\013add_column" + + "s\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014dr" + + "op_columns\030\005 \001(\0132\030.greptime.v1.DropColum" + + "nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1" + + ".RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTableExpr" + "\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&\n\010table_id\030\004 \001(" + - "\0132\024.greptime.v1.TableId\"U\n\020DropDatabaseE" + - "xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" + - "\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddCol" + - "umns\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1." + - "AddColumn\"<\n\013DropColumns\022-\n\014drop_columns" + - "\030\001 \003(\0132\027.greptime.v1.DropColumn\"%\n\013Renam" + - "eTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddCol" + - "umn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Co" + - "lumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1." + - "AddColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030" + - "\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnD" + - "ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr" + - "eptime.v1.ColumnDataType\022\023\n\013is_nullable\030" + - "\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem" + - "antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT" + - "ype\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extensi" + - "on\030\007 \001(\0132$.greptime.v1.ColumnDataTypeExt" + - "ension\"\230\001\n\021AddColumnLocation\022B\n\rlocation" + - "_type\030\001 \001(\0162+.greptime.v1.AddColumnLocat" + - "ion.LocationType\022\031\n\021after_column_name\030\002 " + - "\001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020" + - "\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gre" + - "ptimeTeam/greptime-proto/go/greptime/v1b" + - "\006proto3" + "\0132\024.greptime.v1.TableId\022\026\n\016drop_if_exist" + + "s\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalo" + + "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024cre" + + "ate_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\013" + + "2,.greptime.v1.CreateDatabaseExpr.Option" + + "sEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014c" + + "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022" + + "\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.g" + + "reptime.v1.TableId\"U\n\020DropDatabaseExpr\022\024" + + "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" + + "\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022" + + "+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.AddCo" + + "lumn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(" + + "\0132\027.greptime.v1.DropColumn\"%\n\013RenameTabl" + + "e\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*" + + "\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.ColumnD" + + "ef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddCo" + + "lumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t" + + "\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n" + + "\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptim" + + "e.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010" + + "\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic" + + "_type\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017" + + "\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 " + + "\001(\0132$.greptime.v1.ColumnDataTypeExtensio" + + "n\"\230\001\n\021AddColumnLocation\022B\n\rlocation_type" + + "\030\001 \001(\0162+.greptime.v1.AddColumnLocation.L" + + "ocationType\022\031\n\021after_column_name\030\002 \001(\t\"$" + + "\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016" + + "io.greptime.v1B\003DdlZ5github.com/Greptime" + + "Team/greptime-proto/go/greptime/v1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -19583,21 +20377,27 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { internal_static_greptime_v1_CreateFlowTaskExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_CreateFlowTaskExpr_descriptor, - new java.lang.String[] { "CatalogName", "TaskName", "SourceTables", "OutputSchemaName", "OutputTableName", "CreateIfNotExists", "ExpireWhen", "Comment", "Sql", "TaskOptions", }); + new java.lang.String[] { "CatalogName", "TaskName", "SourceTableNames", "OutputTableName", "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_CreateFlowTaskExpr_TaskOptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_greptime_v1_RemoveFlowTaskExpr_descriptor = + internal_static_greptime_v1_SchemaScopedTableName_descriptor = getDescriptor().getMessageTypes().get(2); + 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_RemoveFlowTaskExpr_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_greptime_v1_RemoveFlowTaskExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_RemoveFlowTaskExpr_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, @@ -19609,19 +20409,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, @@ -19633,61 +20433,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/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index 909849d4..7db78b2e 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -42,14 +42,19 @@ message DdlRequest { message CreateFlowTaskExpr { string catalog_name = 1; string task_name = 2; - repeated string source_tables = 3; - string output_schema_name = 4; - string output_table_name = 5; - bool create_if_not_exists = 6; - string expire_when = 7; - string comment = 8; - string sql = 9; - map task_options = 10; + repeated SchemaScopedTableName source_table_names = 3; + SchemaScopedTableName output_table_name = 4; + bool create_if_not_exists = 5; + string expire_when = 6; + string comment = 7; + string sql = 8; + map task_options = 9; +} + +// Table name +message SchemaScopedTableName { + string schema_name = 1; + string table_name = 2; } // Remove a flow task. From 84b2bb706cecaa4b393acd73e0de485583888dac Mon Sep 17 00:00:00 2001 From: WenyXu Date: Thu, 25 Apr 2024 07:38:00 +0000 Subject: [PATCH 3/5] chore: include flow proto --- build.rs | 1 + src/v1.rs | 1 + src/v1/flow.rs | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 src/v1/flow.rs 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/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"); From 2cc49961cbce4c613822748fc7ba5b3aa50fc740 Mon Sep 17 00:00:00 2001 From: WenyXu Date: Thu, 25 Apr 2024 07:57:15 +0000 Subject: [PATCH 4/5] chore: rename --- c++/greptime/v1/ddl.pb.cc | 181 +++-- c++/greptime/v1/ddl.pb.h | 114 +-- c++/greptime/v1/flow/server.pb.cc | 417 +++++----- c++/greptime/v1/flow/server.pb.h | 558 +++++++------- go/greptime/v1/ddl.pb.go | 396 +++++----- java/src/main/java/io/greptime/v1/Ddl.java | 321 ++++---- .../main/java/io/greptime/v1/flow/Server.java | 721 +++++++++--------- proto/greptime/v1/ddl.proto | 2 +- proto/greptime/v1/flow/server.proto | 10 +- 9 files changed, 1358 insertions(+), 1362 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 901903b5..47a63b06 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -56,7 +56,7 @@ PROTOBUF_CONSTEXPR CreateFlowTaskExpr::CreateFlowTaskExpr( , /*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_.output_table_name_)*/nullptr + , /*decltype(_impl_.sink_table_name_)*/nullptr , /*decltype(_impl_.create_if_not_exists_)*/false , /*decltype(_impl_._cached_size_)*/{}} {} struct CreateFlowTaskExprDefaultTypeInternal { @@ -374,7 +374,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI 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_.output_table_name_), + 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_), @@ -611,78 +611,77 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT ".TruncateTableExprH\000\022;\n\020create_flow_task" "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" "\000\022;\n\020remove_flow_task\030\t \001(\0132\037.greptime.v" - "1.RemoveFlowTaskExprH\000B\006\n\004expr\"\211\003\n\022Creat" + "1.RemoveFlowTaskExprH\000B\006\n\004expr\"\207\003\n\022Creat" "eFlowTaskExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tt" "ask_name\030\002 \001(\t\022>\n\022source_table_names\030\003 \003" - "(\0132\".greptime.v1.SchemaScopedTableName\022=" - "\n\021output_table_name\030\004 \001(\0132\".greptime.v1." - "SchemaScopedTableName\022\034\n\024create_if_not_e" - "xists\030\005 \001(\010\022\023\n\013expire_when\030\006 \001(\t\022\017\n\007comm" - "ent\030\007 \001(\t\022\013\n\003sql\030\010 \001(\t\022F\n\014task_options\030\t" - " \003(\01320.greptime.v1.CreateFlowTaskExpr.Ta" - "skOptionsEntry\0322\n\020TaskOptionsEntry\022\013\n\003ke" - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\025SchemaScop" - "edTableName\022\023\n\013schema_name\030\001 \001(\t\022\022\n\ntabl" - "e_name\030\002 \001(\t\"=\n\022RemoveFlowTaskExpr\022\024\n\014ca" - "talog_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003\n\017" - "CreateTableExpr\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 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.grep" - "time.v1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n" - "\014primary_keys\030\007 \003(\t\022\034\n\024create_if_not_exi" - "sts\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132..grept" - "ime.v1.CreateTableExpr.TableOptionsEntry" - "\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.TableId" - "\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n" - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterE" - "xpr\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.\n\013add_column" - "s\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014dr" - "op_columns\030\005 \001(\0132\030.greptime.v1.DropColum" - "nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1" - ".RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTableExpr" - "\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&\n\010table_id\030\004 \001(" - "\0132\024.greptime.v1.TableId\022\026\n\016drop_if_exist" - "s\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalo" - "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024cre" - "ate_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\013" - "2,.greptime.v1.CreateDatabaseExpr.Option" - "sEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - "alue\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014c" - "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022" - "\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.g" - "reptime.v1.TableId\"U\n\020DropDatabaseExpr\022\024" + "(\0132\".greptime.v1.SchemaScopedTableName\022;" + "\n\017sink_table_name\030\004 \001(\0132\".greptime.v1.Sc" + "hemaScopedTableName\022\034\n\024create_if_not_exi" + "sts\030\005 \001(\010\022\023\n\013expire_when\030\006 \001(\t\022\017\n\007commen" + "t\030\007 \001(\t\022\013\n\003sql\030\010 \001(\t\022F\n\014task_options\030\t \003" + "(\01320.greptime.v1.CreateFlowTaskExpr.Task" + "OptionsEntry\0322\n\020TaskOptionsEntry\022\013\n\003key\030" + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\025SchemaScoped" + "TableName\022\023\n\013schema_name\030\001 \001(\t\022\022\n\ntable_" + "name\030\002 \001(\t\"=\n\022RemoveFlowTaskExpr\022\024\n\014cata" + "log_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003\n\017Cr" + "eateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" + "chema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\014\n\004" + "desc\030\004 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.grepti" + "me.v1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014p" + "rimary_keys\030\007 \003(\t\022\034\n\024create_if_not_exist" + "s\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132..greptim" + "e.v1.CreateTableExpr.TableOptionsEntry\022&" + "\n\010table_id\030\n \001(\0132\024.greptime.v1.TableId\022\016" + "\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003k" + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterExp" + "r\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.\n\013add_columns\030" + "\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014drop" + "_columns\030\005 \001(\0132\030.greptime.v1.DropColumns" + "H\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1.R" + "enameTableH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024" "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" - "\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022" - "+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.AddCo" - "lumn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(" - "\0132\027.greptime.v1.DropColumn\"%\n\013RenameTabl" - "e\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*" - "\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.ColumnD" - "ef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddCo" - "lumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t" - "\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n" - "\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptim" - "e.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010" - "\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic" - "_type\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017" - "\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 " - "\001(\0132$.greptime.v1.ColumnDataTypeExtensio" - "n\"\230\001\n\021AddColumnLocation\022B\n\rlocation_type" - "\030\001 \001(\0162+.greptime.v1.AddColumnLocation.L" - "ocationType\022\031\n\021after_column_name\030\002 \001(\t\"$" - "\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016" - "io.greptime.v1B\003DdlZ5github.com/Greptime" - "Team/greptime-proto/go/greptime/v1b\006prot" - "o3" + "\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132" + "\024.greptime.v1.TableId\022\026\n\016drop_if_exists\030" + "\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_" + "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024creat" + "e_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132," + ".greptime.v1.CreateDatabaseExpr.OptionsE" + "ntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + "ue\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014cat" + "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\n" + "table_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gre" + "ptime.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014" + "catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022" + "\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n" + "\013add_columns\030\001 \003(\0132\026.greptime.v1.AddColu" + "mn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132" + "\027.greptime.v1.DropColumn\"%\n\013RenameTable\022" + "\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\n" + "column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef" + "\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddColu" + "mnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025" + "\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004n" + "ame\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime." + "v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032" + "\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic_t" + "ype\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007" + "comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(" + "\0132$.greptime.v1.ColumnDataTypeExtension\"" + "\230\001\n\021AddColumnLocation\022B\n\rlocation_type\030\001" + " \001(\0162+.greptime.v1.AddColumnLocation.Loc" + "ationType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014" + "LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io" + ".greptime.v1B\003DdlZ5github.com/GreptimeTe" + "am/greptime-proto/go/greptime/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { - false, false, 3002, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 3000, 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, 21, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, @@ -1332,12 +1331,12 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse:: class CreateFlowTaskExpr::_Internal { public: - static const ::greptime::v1::SchemaScopedTableName& output_table_name(const CreateFlowTaskExpr* msg); + static const ::greptime::v1::SchemaScopedTableName& sink_table_name(const CreateFlowTaskExpr* msg); }; const ::greptime::v1::SchemaScopedTableName& -CreateFlowTaskExpr::_Internal::output_table_name(const CreateFlowTaskExpr* msg) { - return *msg->_impl_.output_table_name_; +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) @@ -1359,7 +1358,7 @@ CreateFlowTaskExpr::CreateFlowTaskExpr(const CreateFlowTaskExpr& from) , decltype(_impl_.expire_when_){} , decltype(_impl_.comment_){} , decltype(_impl_.sql_){} - , decltype(_impl_.output_table_name_){nullptr} + , decltype(_impl_.sink_table_name_){nullptr} , decltype(_impl_.create_if_not_exists_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -1405,8 +1404,8 @@ CreateFlowTaskExpr::CreateFlowTaskExpr(const CreateFlowTaskExpr& from) _this->_impl_.sql_.Set(from._internal_sql(), _this->GetArenaForAllocation()); } - if (from._internal_has_output_table_name()) { - _this->_impl_.output_table_name_ = new ::greptime::v1::SchemaScopedTableName(*from._impl_.output_table_name_); + 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.CreateFlowTaskExpr) @@ -1424,7 +1423,7 @@ inline void CreateFlowTaskExpr::SharedCtor( , decltype(_impl_.expire_when_){} , decltype(_impl_.comment_){} , decltype(_impl_.sql_){} - , decltype(_impl_.output_table_name_){nullptr} + , decltype(_impl_.sink_table_name_){nullptr} , decltype(_impl_.create_if_not_exists_){false} , /*decltype(_impl_._cached_size_)*/{} }; @@ -1470,7 +1469,7 @@ inline void CreateFlowTaskExpr::SharedDtor() { _impl_.expire_when_.Destroy(); _impl_.comment_.Destroy(); _impl_.sql_.Destroy(); - if (this != internal_default_instance()) delete _impl_.output_table_name_; + if (this != internal_default_instance()) delete _impl_.sink_table_name_; } void CreateFlowTaskExpr::ArenaDtor(void* object) { @@ -1494,10 +1493,10 @@ void CreateFlowTaskExpr::Clear() { _impl_.expire_when_.ClearToEmpty(); _impl_.comment_.ClearToEmpty(); _impl_.sql_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.output_table_name_ != nullptr) { - delete _impl_.output_table_name_; + if (GetArenaForAllocation() == nullptr && _impl_.sink_table_name_ != nullptr) { + delete _impl_.sink_table_name_; } - _impl_.output_table_name_ = nullptr; + _impl_.sink_table_name_ = nullptr; _impl_.create_if_not_exists_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -1541,10 +1540,10 @@ const char* CreateFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon } else goto handle_unusual; continue; - // .greptime.v1.SchemaScopedTableName output_table_name = 4; + // .greptime.v1.SchemaScopedTableName sink_table_name = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_output_table_name(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_sink_table_name(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -1657,11 +1656,11 @@ uint8_t* CreateFlowTaskExpr::_InternalSerialize( InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } - // .greptime.v1.SchemaScopedTableName output_table_name = 4; - if (this->_internal_has_output_table_name()) { + // .greptime.v1.SchemaScopedTableName sink_table_name = 4; + if (this->_internal_has_sink_table_name()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::output_table_name(this), - _Internal::output_table_name(this).GetCachedSize(), target, stream); + InternalWriteMessage(4, _Internal::sink_table_name(this), + _Internal::sink_table_name(this).GetCachedSize(), target, stream); } // bool create_if_not_exists = 5; @@ -1797,11 +1796,11 @@ size_t CreateFlowTaskExpr::ByteSizeLong() const { this->_internal_sql()); } - // .greptime.v1.SchemaScopedTableName output_table_name = 4; - if (this->_internal_has_output_table_name()) { + // .greptime.v1.SchemaScopedTableName sink_table_name = 4; + if (this->_internal_has_sink_table_name()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.output_table_name_); + *_impl_.sink_table_name_); } // bool create_if_not_exists = 5; @@ -1844,9 +1843,9 @@ void CreateFlowTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con if (!from._internal_sql().empty()) { _this->_internal_set_sql(from._internal_sql()); } - if (from._internal_has_output_table_name()) { - _this->_internal_mutable_output_table_name()->::greptime::v1::SchemaScopedTableName::MergeFrom( - from._internal_output_table_name()); + 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()); @@ -1895,9 +1894,9 @@ void CreateFlowTaskExpr::InternalSwap(CreateFlowTaskExpr* other) { ::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_.output_table_name_)>( - reinterpret_cast(&_impl_.output_table_name_), - reinterpret_cast(&other->_impl_.output_table_name_)); + - 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 CreateFlowTaskExpr::GetMetadata() const { diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index e2282340..4139e3e1 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -634,7 +634,7 @@ class CreateFlowTaskExpr final : kExpireWhenFieldNumber = 6, kCommentFieldNumber = 7, kSqlFieldNumber = 8, - kOutputTableNameFieldNumber = 4, + kSinkTableNameFieldNumber = 4, kCreateIfNotExistsFieldNumber = 5, }; // repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; @@ -742,23 +742,23 @@ class CreateFlowTaskExpr final : std::string* _internal_mutable_sql(); public: - // .greptime.v1.SchemaScopedTableName output_table_name = 4; - bool has_output_table_name() const; + // .greptime.v1.SchemaScopedTableName sink_table_name = 4; + bool has_sink_table_name() const; private: - bool _internal_has_output_table_name() const; + bool _internal_has_sink_table_name() const; public: - void clear_output_table_name(); - const ::greptime::v1::SchemaScopedTableName& output_table_name() const; - PROTOBUF_NODISCARD ::greptime::v1::SchemaScopedTableName* release_output_table_name(); - ::greptime::v1::SchemaScopedTableName* mutable_output_table_name(); - void set_allocated_output_table_name(::greptime::v1::SchemaScopedTableName* output_table_name); + 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_output_table_name() const; - ::greptime::v1::SchemaScopedTableName* _internal_mutable_output_table_name(); + const ::greptime::v1::SchemaScopedTableName& _internal_sink_table_name() const; + ::greptime::v1::SchemaScopedTableName* _internal_mutable_sink_table_name(); public: - void unsafe_arena_set_allocated_output_table_name( - ::greptime::v1::SchemaScopedTableName* output_table_name); - ::greptime::v1::SchemaScopedTableName* unsafe_arena_release_output_table_name(); + 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(); @@ -788,7 +788,7 @@ class CreateFlowTaskExpr final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr expire_when_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_; - ::greptime::v1::SchemaScopedTableName* output_table_name_; + ::greptime::v1::SchemaScopedTableName* sink_table_name_; bool create_if_not_exists_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; @@ -4659,45 +4659,45 @@ CreateFlowTaskExpr::source_table_names() const { return _impl_.source_table_names_; } -// .greptime.v1.SchemaScopedTableName output_table_name = 4; -inline bool CreateFlowTaskExpr::_internal_has_output_table_name() const { - return this != internal_default_instance() && _impl_.output_table_name_ != nullptr; +// .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 bool CreateFlowTaskExpr::has_output_table_name() const { - return _internal_has_output_table_name(); +inline bool CreateFlowTaskExpr::has_sink_table_name() const { + return _internal_has_sink_table_name(); } -inline void CreateFlowTaskExpr::clear_output_table_name() { - if (GetArenaForAllocation() == nullptr && _impl_.output_table_name_ != nullptr) { - delete _impl_.output_table_name_; +inline void CreateFlowTaskExpr::clear_sink_table_name() { + if (GetArenaForAllocation() == nullptr && _impl_.sink_table_name_ != nullptr) { + delete _impl_.sink_table_name_; } - _impl_.output_table_name_ = nullptr; + _impl_.sink_table_name_ = nullptr; } -inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::_internal_output_table_name() const { - const ::greptime::v1::SchemaScopedTableName* p = _impl_.output_table_name_; +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 ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::output_table_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.output_table_name) - return _internal_output_table_name(); +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_output_table_name( - ::greptime::v1::SchemaScopedTableName* output_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_.output_table_name_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sink_table_name_); } - _impl_.output_table_name_ = output_table_name; - if (output_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.output_table_name) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.CreateFlowTaskExpr.sink_table_name) } -inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::release_output_table_name() { +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::release_sink_table_name() { - ::greptime::v1::SchemaScopedTableName* temp = _impl_.output_table_name_; - _impl_.output_table_name_ = nullptr; + ::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); @@ -4709,44 +4709,44 @@ inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::release_output #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::unsafe_arena_release_output_table_name() { - // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.output_table_name) +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::unsafe_arena_release_sink_table_name() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.sink_table_name) - ::greptime::v1::SchemaScopedTableName* temp = _impl_.output_table_name_; - _impl_.output_table_name_ = nullptr; + ::greptime::v1::SchemaScopedTableName* temp = _impl_.sink_table_name_; + _impl_.sink_table_name_ = nullptr; return temp; } -inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::_internal_mutable_output_table_name() { +inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::_internal_mutable_sink_table_name() { - if (_impl_.output_table_name_ == nullptr) { + if (_impl_.sink_table_name_ == nullptr) { auto* p = CreateMaybeMessage<::greptime::v1::SchemaScopedTableName>(GetArenaForAllocation()); - _impl_.output_table_name_ = p; + _impl_.sink_table_name_ = p; } - return _impl_.output_table_name_; + return _impl_.sink_table_name_; } -inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::mutable_output_table_name() { - ::greptime::v1::SchemaScopedTableName* _msg = _internal_mutable_output_table_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.output_table_name) +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 CreateFlowTaskExpr::set_allocated_output_table_name(::greptime::v1::SchemaScopedTableName* output_table_name) { +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_.output_table_name_; + delete _impl_.sink_table_name_; } - if (output_table_name) { + if (sink_table_name) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(output_table_name); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sink_table_name); if (message_arena != submessage_arena) { - output_table_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, output_table_name, submessage_arena); + sink_table_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sink_table_name, submessage_arena); } } else { } - _impl_.output_table_name_ = output_table_name; - // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.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; diff --git a/c++/greptime/v1/flow/server.pb.cc b/c++/greptime/v1/flow/server.pb.cc index b8c42b13..0a3d9526 100644 --- a/c++/greptime/v1/flow/server.pb.cc +++ b/c++/greptime/v1/flow/server.pb.cc @@ -91,18 +91,18 @@ 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_.source_table_ids_)*/{} , /*decltype(_impl_.task_options_)*/{::_pbi::ConstantInitialized()} @@ -110,31 +110,31 @@ PROTOBUF_CONSTEXPR FlowCreateRequest::FlowCreateRequest( , /*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_)*/0u @@ -200,37 +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_.source_table_ids_), - 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_ @@ -245,9 +245,9 @@ 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)}, - { 68, -1, -1, sizeof(::greptime::v1::flow::FlowRemoveRequest)}, + { 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)}, }; @@ -257,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, }; @@ -270,35 +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\"\356\002\n\021FlowCreateRequest\022)\n\007task_id\030\001 " - "\001(\0132\030.greptime.v1.flow.TaskId\022.\n\020source_" - "table_ids\030\002 \003(\0132\024.greptime.v1.TableId\022-\n" - "\017output_table_id\030\003 \001(\0132\024.greptime.v1.Tab" - "leId\022\034\n\024create_if_not_exists\030\004 \001(\010\022\023\n\013ex" - "pire_when\030\005 \001(\t\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030" - "\007 \001(\t\022J\n\014task_options\030\010 \003(\01324.greptime.v" - "1.flow.FlowCreateRequest.TaskOptionsEntr" - "y\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - "lue\030\002 \001(\t:\0028\001\">\n\021FlowRemoveRequest\022)\n\007ta" - "sk_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\022HandleCr" - "eateRemove\022\035.greptime.v1.flow.FlowReques" - "t\032\036.greptime.v1.flow.FlowResponse\022W\n\023Han" - "dleMirrorRequest\022 .greptime.v1.flow.Inse" - "rtRequests\032\036.greptime.v1.flow.FlowRespon" - "seBY\n\023io.greptime.v1.flowB\006ServerZ:githu" - "b.com/GreptimeTeam/greptime-proto/go/gre" - "ptime/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, @@ -307,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, 1381, 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, @@ -743,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) { @@ -770,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) { @@ -803,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; } @@ -890,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); @@ -898,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); @@ -935,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), @@ -966,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( @@ -1004,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; } @@ -1388,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]); @@ -1402,41 +1401,41 @@ ::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_source_table_ids() { +void CreateRequest::clear_source_table_ids() { _impl_.source_table_ids_.Clear(); } -void FlowCreateRequest::clear_output_table_id() { - if (GetArenaForAllocation() == nullptr && _impl_.output_table_id_ != nullptr) { - delete _impl_.output_table_id_; +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_.source_table_ids_){from._impl_.source_table_ids_} , /*decltype(_impl_.task_options_)*/{} @@ -1444,7 +1443,7 @@ FlowCreateRequest::FlowCreateRequest(const FlowCreateRequest& from) , 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_)*/{}}; @@ -1477,14 +1476,14 @@ 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; @@ -1495,7 +1494,7 @@ inline void FlowCreateRequest::SharedCtor( , 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_)*/{} }; @@ -1513,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); @@ -1523,7 +1522,7 @@ FlowCreateRequest::~FlowCreateRequest() { SharedDtor(); } -inline void FlowCreateRequest::SharedDtor() { +inline void CreateRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.source_table_ids_.~RepeatedPtrField(); _impl_.task_options_.Destruct(); @@ -1532,19 +1531,19 @@ inline void FlowCreateRequest::SharedDtor() { _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; @@ -1558,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; @@ -1593,10 +1592,10 @@ const char* FlowCreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont } else goto handle_unusual; continue; - // .greptime.v1.TableId output_table_id = 3; + // .greptime.v1.TableId sink_table_id = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_output_table_id(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_sink_table_id(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -1615,7 +1614,7 @@ const char* FlowCreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont auto str = _internal_mutable_expire_when(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.flow.FlowCreateRequest.expire_when")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.flow.CreateRequest.expire_when")); } else goto handle_unusual; continue; @@ -1625,7 +1624,7 @@ const char* FlowCreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont auto str = _internal_mutable_comment(); 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.comment")); } else goto handle_unusual; continue; @@ -1635,7 +1634,7 @@ const char* FlowCreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont auto str = _internal_mutable_sql(); 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.sql")); } else goto handle_unusual; continue; @@ -1675,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; @@ -1696,11 +1695,11 @@ uint8_t* FlowCreateRequest::_InternalSerialize( InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } - // .greptime.v1.TableId output_table_id = 3; - if (this->_internal_has_output_table_id()) { + // .greptime.v1.TableId sink_table_id = 3; + if (this->_internal_has_sink_table_id()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::output_table_id(this), - _Internal::output_table_id(this).GetCachedSize(), target, stream); + InternalWriteMessage(3, _Internal::sink_table_id(this), + _Internal::sink_table_id(this).GetCachedSize(), target, stream); } // bool create_if_not_exists = 4; @@ -1714,7 +1713,7 @@ uint8_t* FlowCreateRequest::_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.flow.FlowCreateRequest.expire_when"); + "greptime.v1.flow.CreateRequest.expire_when"); target = stream->WriteStringMaybeAliased( 5, this->_internal_expire_when(), target); } @@ -1724,7 +1723,7 @@ uint8_t* FlowCreateRequest::_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.flow.FlowCreateRequest.comment"); + "greptime.v1.flow.CreateRequest.comment"); target = stream->WriteStringMaybeAliased( 6, this->_internal_comment(), target); } @@ -1734,7 +1733,7 @@ uint8_t* FlowCreateRequest::_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.flow.FlowCreateRequest.sql"); + "greptime.v1.flow.CreateRequest.sql"); target = stream->WriteStringMaybeAliased( 7, this->_internal_sql(), target); } @@ -1742,18 +1741,18 @@ uint8_t* FlowCreateRequest::_InternalSerialize( // 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) { @@ -1773,12 +1772,12 @@ 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; @@ -1798,7 +1797,7 @@ size_t FlowCreateRequest::ByteSizeLong() const { 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 = 5; @@ -1829,11 +1828,11 @@ size_t FlowCreateRequest::ByteSizeLong() const { *_impl_.task_id_); } - // .greptime.v1.TableId output_table_id = 3; - 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 = 4; @@ -1844,17 +1843,17 @@ 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; @@ -1874,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()); @@ -1884,18 +1883,18 @@ 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(); @@ -1915,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]); @@ -1930,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_)*/{}}; @@ -1956,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; @@ -1969,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; @@ -1978,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; @@ -2000,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; @@ -2037,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; @@ -2054,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; @@ -2076,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; @@ -2098,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]); @@ -2324,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 89710025..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); @@ -1019,7 +1019,7 @@ class FlowCreateRequest final : kCommentFieldNumber = 6, kSqlFieldNumber = 7, kTaskIdFieldNumber = 1, - kOutputTableIdFieldNumber = 3, + kSinkTableIdFieldNumber = 3, kCreateIfNotExistsFieldNumber = 4, }; // repeated .greptime.v1.TableId source_table_ids = 2; @@ -1117,23 +1117,23 @@ class FlowCreateRequest final : ::greptime::v1::flow::TaskId* task_id); ::greptime::v1::flow::TaskId* unsafe_arena_release_task_id(); - // .greptime.v1.TableId output_table_id = 3; - 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 = 4; void clear_create_if_not_exists(); @@ -1144,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; @@ -1154,7 +1154,7 @@ class FlowCreateRequest final : 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_; @@ -1162,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_; }; @@ -1171,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 @@ -1211,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 && @@ -1237,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); @@ -1245,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); @@ -1270,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: @@ -1312,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; @@ -1638,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; } @@ -1656,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); } @@ -1670,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(); @@ -1698,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; } @@ -1730,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); } @@ -1744,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(); @@ -1772,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; } @@ -1979,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_); @@ -2014,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; @@ -2031,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()); @@ -2046,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_; @@ -2068,79 +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 FlowCreateRequest::_internal_source_table_ids_size() const { +inline int CreateRequest::_internal_source_table_ids_size() const { return _impl_.source_table_ids_.size(); } -inline int FlowCreateRequest::source_table_ids_size() const { +inline int CreateRequest::source_table_ids_size() const { return _internal_source_table_ids_size(); } -inline ::greptime::v1::TableId* FlowCreateRequest::mutable_source_table_ids(int index) { - // @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowCreateRequest.source_table_ids) +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 >* -FlowCreateRequest::mutable_source_table_ids() { - // @@protoc_insertion_point(field_mutable_list:greptime.v1.flow.FlowCreateRequest.source_table_ids) +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& FlowCreateRequest::_internal_source_table_ids(int index) const { +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& FlowCreateRequest::source_table_ids(int index) const { - // @@protoc_insertion_point(field_get:greptime.v1.flow.FlowCreateRequest.source_table_ids) +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* FlowCreateRequest::_internal_add_source_table_ids() { +inline ::greptime::v1::TableId* CreateRequest::_internal_add_source_table_ids() { return _impl_.source_table_ids_.Add(); } -inline ::greptime::v1::TableId* FlowCreateRequest::add_source_table_ids() { +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.FlowCreateRequest.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 >& -FlowCreateRequest::source_table_ids() const { - // @@protoc_insertion_point(field_list:greptime.v1.flow.FlowCreateRequest.source_table_ids) +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 = 3; -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); @@ -2152,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 = 4; -inline void FlowCreateRequest::clear_create_if_not_exists() { +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 = 5; -inline void FlowCreateRequest::clear_expire_when() { +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 { @@ -2260,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 = 6; -inline void FlowCreateRequest::clear_comment() { +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 { @@ -2310,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 = 7; -inline void FlowCreateRequest::clear_sql() { +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 { @@ -2360,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 = 8; -inline int FlowCreateRequest::_internal_task_options_size() const { +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_); @@ -2429,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; @@ -2446,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()); @@ -2461,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_; @@ -2483,7 +2483,7 @@ 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) } // ------------------------------------------------------------------- diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 15f86aa1..397ff4bc 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -244,7 +244,7 @@ type CreateFlowTaskExpr struct { 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"` - OutputTableName *SchemaScopedTableName `protobuf:"bytes,4,opt,name=output_table_name,json=outputTableName,proto3" json:"output_table_name,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"` @@ -305,9 +305,9 @@ func (x *CreateFlowTaskExpr) GetSourceTableNames() []*SchemaScopedTableName { return nil } -func (x *CreateFlowTaskExpr) GetOutputTableName() *SchemaScopedTableName { +func (x *CreateFlowTaskExpr) GetSinkTableName() *SchemaScopedTableName { if x != nil { - return x.OutputTableName + return x.SinkTableName } return nil } @@ -1468,7 +1468,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, - 0x65, 0x78, 0x70, 0x72, 0x22, 0x89, 0x04, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, + 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, @@ -1478,204 +1478,204 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 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, 0x4e, 0x0a, - 0x11, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 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, 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, 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, + 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, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x54, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 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, 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, 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, + 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x54, 0x0a, 0x12, 0x52, 0x65, 0x6d, - 0x6f, 0x76, 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, 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, + 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, 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, + 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 ( @@ -1728,7 +1728,7 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 2, // 5: greptime.v1.DdlRequest.create_flow_task:type_name -> greptime.v1.CreateFlowTaskExpr 4, // 6: greptime.v1.DdlRequest.remove_flow_task:type_name -> greptime.v1.RemoveFlowTaskExpr 3, // 7: greptime.v1.CreateFlowTaskExpr.source_table_names:type_name -> greptime.v1.SchemaScopedTableName - 3, // 8: greptime.v1.CreateFlowTaskExpr.output_table_name: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 diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index d11c1a2e..215066b4 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -2182,19 +2182,19 @@ io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBuilder( int index); /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; - * @return Whether the outputTableName field is set. + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * @return Whether the sinkTableName field is set. */ - boolean hasOutputTableName(); + boolean hasSinkTableName(); /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; - * @return The outputTableName. + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * @return The sinkTableName. */ - io.greptime.v1.Ddl.SchemaScopedTableName getOutputTableName(); + io.greptime.v1.Ddl.SchemaScopedTableName getSinkTableName(); /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; */ - io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getOutputTableNameOrBuilder(); + io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSinkTableNameOrBuilder(); /** * bool create_if_not_exists = 5; @@ -2353,13 +2353,13 @@ private CreateFlowTaskExpr( } case 34: { io.greptime.v1.Ddl.SchemaScopedTableName.Builder subBuilder = null; - if (outputTableName_ != null) { - subBuilder = outputTableName_.toBuilder(); + if (sinkTableName_ != null) { + subBuilder = sinkTableName_.toBuilder(); } - outputTableName_ = input.readMessage(io.greptime.v1.Ddl.SchemaScopedTableName.parser(), extensionRegistry); + sinkTableName_ = input.readMessage(io.greptime.v1.Ddl.SchemaScopedTableName.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(outputTableName_); - outputTableName_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(sinkTableName_); + sinkTableName_ = subBuilder.buildPartial(); } break; @@ -2565,30 +2565,30 @@ public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBu return sourceTableNames_.get(index); } - public static final int OUTPUT_TABLE_NAME_FIELD_NUMBER = 4; - private io.greptime.v1.Ddl.SchemaScopedTableName outputTableName_; + public static final int SINK_TABLE_NAME_FIELD_NUMBER = 4; + private io.greptime.v1.Ddl.SchemaScopedTableName sinkTableName_; /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; - * @return Whether the outputTableName field is set. + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * @return Whether the sinkTableName field is set. */ @java.lang.Override - public boolean hasOutputTableName() { - return outputTableName_ != null; + public boolean hasSinkTableName() { + return sinkTableName_ != null; } /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; - * @return The outputTableName. + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * @return The sinkTableName. */ @java.lang.Override - public io.greptime.v1.Ddl.SchemaScopedTableName getOutputTableName() { - return outputTableName_ == null ? io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : outputTableName_; + public io.greptime.v1.Ddl.SchemaScopedTableName getSinkTableName() { + return sinkTableName_ == null ? io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : sinkTableName_; } /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; */ @java.lang.Override - public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getOutputTableNameOrBuilder() { - return getOutputTableName(); + public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSinkTableNameOrBuilder() { + return getSinkTableName(); } public static final int CREATE_IF_NOT_EXISTS_FIELD_NUMBER = 5; @@ -2820,8 +2820,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < sourceTableNames_.size(); i++) { output.writeMessage(3, sourceTableNames_.get(i)); } - if (outputTableName_ != null) { - output.writeMessage(4, getOutputTableName()); + if (sinkTableName_ != null) { + output.writeMessage(4, getSinkTableName()); } if (createIfNotExists_ != false) { output.writeBool(5, createIfNotExists_); @@ -2860,9 +2860,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, sourceTableNames_.get(i)); } - if (outputTableName_ != null) { + if (sinkTableName_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputTableName()); + .computeMessageSize(4, getSinkTableName()); } if (createIfNotExists_ != false) { size += com.google.protobuf.CodedOutputStream @@ -2908,10 +2908,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getTaskName())) return false; if (!getSourceTableNamesList() .equals(other.getSourceTableNamesList())) return false; - if (hasOutputTableName() != other.hasOutputTableName()) return false; - if (hasOutputTableName()) { - if (!getOutputTableName() - .equals(other.getOutputTableName())) return false; + if (hasSinkTableName() != other.hasSinkTableName()) return false; + if (hasSinkTableName()) { + if (!getSinkTableName() + .equals(other.getSinkTableName())) return false; } if (getCreateIfNotExists() != other.getCreateIfNotExists()) return false; @@ -2942,9 +2942,9 @@ public int hashCode() { hash = (37 * hash) + SOURCE_TABLE_NAMES_FIELD_NUMBER; hash = (53 * hash) + getSourceTableNamesList().hashCode(); } - if (hasOutputTableName()) { - hash = (37 * hash) + OUTPUT_TABLE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getOutputTableName().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( @@ -3129,11 +3129,11 @@ public Builder clear() { } else { sourceTableNamesBuilder_.clear(); } - if (outputTableNameBuilder_ == null) { - outputTableName_ = null; + if (sinkTableNameBuilder_ == null) { + sinkTableName_ = null; } else { - outputTableName_ = null; - outputTableNameBuilder_ = null; + sinkTableName_ = null; + sinkTableNameBuilder_ = null; } createIfNotExists_ = false; @@ -3182,10 +3182,10 @@ public io.greptime.v1.Ddl.CreateFlowTaskExpr buildPartial() { } else { result.sourceTableNames_ = sourceTableNamesBuilder_.build(); } - if (outputTableNameBuilder_ == null) { - result.outputTableName_ = outputTableName_; + if (sinkTableNameBuilder_ == null) { + result.sinkTableName_ = sinkTableName_; } else { - result.outputTableName_ = outputTableNameBuilder_.build(); + result.sinkTableName_ = sinkTableNameBuilder_.build(); } result.createIfNotExists_ = createIfNotExists_; result.expireWhen_ = expireWhen_; @@ -3275,8 +3275,8 @@ public Builder mergeFrom(io.greptime.v1.Ddl.CreateFlowTaskExpr other) { } } } - if (other.hasOutputTableName()) { - mergeOutputTableName(other.getOutputTableName()); + if (other.hasSinkTableName()) { + mergeSinkTableName(other.getSinkTableName()); } if (other.getCreateIfNotExists() != false) { setCreateIfNotExists(other.getCreateIfNotExists()); @@ -3717,123 +3717,123 @@ public io.greptime.v1.Ddl.SchemaScopedTableName.Builder addSourceTableNamesBuild return sourceTableNamesBuilder_; } - private io.greptime.v1.Ddl.SchemaScopedTableName outputTableName_; + 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> outputTableNameBuilder_; + io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder> sinkTableNameBuilder_; /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; - * @return Whether the outputTableName field is set. + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * @return Whether the sinkTableName field is set. */ - public boolean hasOutputTableName() { - return outputTableNameBuilder_ != null || outputTableName_ != null; + public boolean hasSinkTableName() { + return sinkTableNameBuilder_ != null || sinkTableName_ != null; } /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; - * @return The outputTableName. + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * @return The sinkTableName. */ - public io.greptime.v1.Ddl.SchemaScopedTableName getOutputTableName() { - if (outputTableNameBuilder_ == null) { - return outputTableName_ == null ? io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : outputTableName_; + public io.greptime.v1.Ddl.SchemaScopedTableName getSinkTableName() { + if (sinkTableNameBuilder_ == null) { + return sinkTableName_ == null ? io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : sinkTableName_; } else { - return outputTableNameBuilder_.getMessage(); + return sinkTableNameBuilder_.getMessage(); } } /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; */ - public Builder setOutputTableName(io.greptime.v1.Ddl.SchemaScopedTableName value) { - if (outputTableNameBuilder_ == null) { + public Builder setSinkTableName(io.greptime.v1.Ddl.SchemaScopedTableName value) { + if (sinkTableNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - outputTableName_ = value; + sinkTableName_ = value; onChanged(); } else { - outputTableNameBuilder_.setMessage(value); + sinkTableNameBuilder_.setMessage(value); } return this; } /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; */ - public Builder setOutputTableName( + public Builder setSinkTableName( io.greptime.v1.Ddl.SchemaScopedTableName.Builder builderForValue) { - if (outputTableNameBuilder_ == null) { - outputTableName_ = builderForValue.build(); + if (sinkTableNameBuilder_ == null) { + sinkTableName_ = builderForValue.build(); onChanged(); } else { - outputTableNameBuilder_.setMessage(builderForValue.build()); + sinkTableNameBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; */ - public Builder mergeOutputTableName(io.greptime.v1.Ddl.SchemaScopedTableName value) { - if (outputTableNameBuilder_ == null) { - if (outputTableName_ != null) { - outputTableName_ = - io.greptime.v1.Ddl.SchemaScopedTableName.newBuilder(outputTableName_).mergeFrom(value).buildPartial(); + 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 { - outputTableName_ = value; + sinkTableName_ = value; } onChanged(); } else { - outputTableNameBuilder_.mergeFrom(value); + sinkTableNameBuilder_.mergeFrom(value); } return this; } /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; */ - public Builder clearOutputTableName() { - if (outputTableNameBuilder_ == null) { - outputTableName_ = null; + public Builder clearSinkTableName() { + if (sinkTableNameBuilder_ == null) { + sinkTableName_ = null; onChanged(); } else { - outputTableName_ = null; - outputTableNameBuilder_ = null; + sinkTableName_ = null; + sinkTableNameBuilder_ = null; } return this; } /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; */ - public io.greptime.v1.Ddl.SchemaScopedTableName.Builder getOutputTableNameBuilder() { + public io.greptime.v1.Ddl.SchemaScopedTableName.Builder getSinkTableNameBuilder() { onChanged(); - return getOutputTableNameFieldBuilder().getBuilder(); + return getSinkTableNameFieldBuilder().getBuilder(); } /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * .greptime.v1.SchemaScopedTableName sink_table_name = 4; */ - public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getOutputTableNameOrBuilder() { - if (outputTableNameBuilder_ != null) { - return outputTableNameBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSinkTableNameOrBuilder() { + if (sinkTableNameBuilder_ != null) { + return sinkTableNameBuilder_.getMessageOrBuilder(); } else { - return outputTableName_ == null ? - io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : outputTableName_; + return sinkTableName_ == null ? + io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : sinkTableName_; } } /** - * .greptime.v1.SchemaScopedTableName output_table_name = 4; + * .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> - getOutputTableNameFieldBuilder() { - if (outputTableNameBuilder_ == null) { - outputTableNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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>( - getOutputTableName(), + getSinkTableName(), getParentForChildren(), isClean()); - outputTableName_ = null; + sinkTableName_ = null; } - return outputTableNameBuilder_; + return sinkTableNameBuilder_; } private boolean createIfNotExists_ ; @@ -20295,71 +20295,70 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { ".TruncateTableExprH\000\022;\n\020create_flow_task" + "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" + "\000\022;\n\020remove_flow_task\030\t \001(\0132\037.greptime.v" + - "1.RemoveFlowTaskExprH\000B\006\n\004expr\"\211\003\n\022Creat" + + "1.RemoveFlowTaskExprH\000B\006\n\004expr\"\207\003\n\022Creat" + "eFlowTaskExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tt" + "ask_name\030\002 \001(\t\022>\n\022source_table_names\030\003 \003" + - "(\0132\".greptime.v1.SchemaScopedTableName\022=" + - "\n\021output_table_name\030\004 \001(\0132\".greptime.v1." + - "SchemaScopedTableName\022\034\n\024create_if_not_e" + - "xists\030\005 \001(\010\022\023\n\013expire_when\030\006 \001(\t\022\017\n\007comm" + - "ent\030\007 \001(\t\022\013\n\003sql\030\010 \001(\t\022F\n\014task_options\030\t" + - " \003(\01320.greptime.v1.CreateFlowTaskExpr.Ta" + - "skOptionsEntry\0322\n\020TaskOptionsEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\025SchemaScop" + - "edTableName\022\023\n\013schema_name\030\001 \001(\t\022\022\n\ntabl" + - "e_name\030\002 \001(\t\"=\n\022RemoveFlowTaskExpr\022\024\n\014ca" + - "talog_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003\n\017" + - "CreateTableExpr\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 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.grep" + - "time.v1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n" + - "\014primary_keys\030\007 \003(\t\022\034\n\024create_if_not_exi" + - "sts\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132..grept" + - "ime.v1.CreateTableExpr.TableOptionsEntry" + - "\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.TableId" + - "\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterE" + - "xpr\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.\n\013add_column" + - "s\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014dr" + - "op_columns\030\005 \001(\0132\030.greptime.v1.DropColum" + - "nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1" + - ".RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTableExpr" + - "\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&\n\010table_id\030\004 \001(" + - "\0132\024.greptime.v1.TableId\022\026\n\016drop_if_exist" + - "s\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalo" + - "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024cre" + - "ate_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\013" + - "2,.greptime.v1.CreateDatabaseExpr.Option" + - "sEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014c" + - "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022" + - "\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.g" + - "reptime.v1.TableId\"U\n\020DropDatabaseExpr\022\024" + + "(\0132\".greptime.v1.SchemaScopedTableName\022;" + + "\n\017sink_table_name\030\004 \001(\0132\".greptime.v1.Sc" + + "hemaScopedTableName\022\034\n\024create_if_not_exi" + + "sts\030\005 \001(\010\022\023\n\013expire_when\030\006 \001(\t\022\017\n\007commen" + + "t\030\007 \001(\t\022\013\n\003sql\030\010 \001(\t\022F\n\014task_options\030\t \003" + + "(\01320.greptime.v1.CreateFlowTaskExpr.Task" + + "OptionsEntry\0322\n\020TaskOptionsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\025SchemaScoped" + + "TableName\022\023\n\013schema_name\030\001 \001(\t\022\022\n\ntable_" + + "name\030\002 \001(\t\"=\n\022RemoveFlowTaskExpr\022\024\n\014cata" + + "log_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003\n\017Cr" + + "eateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" + + "chema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\014\n\004" + + "desc\030\004 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.grepti" + + "me.v1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014p" + + "rimary_keys\030\007 \003(\t\022\034\n\024create_if_not_exist" + + "s\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132..greptim" + + "e.v1.CreateTableExpr.TableOptionsEntry\022&" + + "\n\010table_id\030\n \001(\0132\024.greptime.v1.TableId\022\016" + + "\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterExp" + + "r\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.\n\013add_columns\030" + + "\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014drop" + + "_columns\030\005 \001(\0132\030.greptime.v1.DropColumns" + + "H\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1.R" + + "enameTableH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024" + "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" + - "\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022" + - "+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.AddCo" + - "lumn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(" + - "\0132\027.greptime.v1.DropColumn\"%\n\013RenameTabl" + - "e\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*" + - "\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.ColumnD" + - "ef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddCo" + - "lumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t" + - "\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n" + - "\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptim" + - "e.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010" + - "\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic" + - "_type\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017" + - "\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 " + - "\001(\0132$.greptime.v1.ColumnDataTypeExtensio" + - "n\"\230\001\n\021AddColumnLocation\022B\n\rlocation_type" + - "\030\001 \001(\0162+.greptime.v1.AddColumnLocation.L" + - "ocationType\022\031\n\021after_column_name\030\002 \001(\t\"$" + - "\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016" + - "io.greptime.v1B\003DdlZ5github.com/Greptime" + - "Team/greptime-proto/go/greptime/v1b\006prot" + - "o3" + "\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132" + + "\024.greptime.v1.TableId\022\026\n\016drop_if_exists\030" + + "\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_" + + "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024creat" + + "e_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132," + + ".greptime.v1.CreateDatabaseExpr.OptionsE" + + "ntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014cat" + + "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\n" + + "table_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gre" + + "ptime.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014" + + "catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022" + + "\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n" + + "\013add_columns\030\001 \003(\0132\026.greptime.v1.AddColu" + + "mn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132" + + "\027.greptime.v1.DropColumn\"%\n\013RenameTable\022" + + "\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\n" + + "column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef" + + "\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddColu" + + "mnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025" + + "\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004n" + + "ame\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime." + + "v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032" + + "\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic_t" + + "ype\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007" + + "comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(" + + "\0132$.greptime.v1.ColumnDataTypeExtension\"" + + "\230\001\n\021AddColumnLocation\022B\n\rlocation_type\030\001" + + " \001(\0162+.greptime.v1.AddColumnLocation.Loc" + + "ationType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014" + + "LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io" + + ".greptime.v1B\003DdlZ5github.com/GreptimeTe" + + "am/greptime-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -20377,7 +20376,7 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { internal_static_greptime_v1_CreateFlowTaskExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_CreateFlowTaskExpr_descriptor, - new java.lang.String[] { "CatalogName", "TaskName", "SourceTableNames", "OutputTableName", "CreateIfNotExists", "ExpireWhen", "Comment", "Sql", "TaskOptions", }); + 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 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 fbe2b619..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 { /** @@ -4001,19 +4001,19 @@ io.greptime.v1.Ddl.TableIdOrBuilder getSourceTableIdsOrBuilder( int index); /** - * .greptime.v1.TableId output_table_id = 3; - * @return Whether the outputTableId field is set. + * .greptime.v1.TableId sink_table_id = 3; + * @return Whether the sinkTableId field is set. */ - boolean hasOutputTableId(); + boolean hasSinkTableId(); /** - * .greptime.v1.TableId output_table_id = 3; - * @return The outputTableId. + * .greptime.v1.TableId sink_table_id = 3; + * @return The sinkTableId. */ - io.greptime.v1.Ddl.TableId getOutputTableId(); + io.greptime.v1.Ddl.TableId getSinkTableId(); /** - * .greptime.v1.TableId output_table_id = 3; + * .greptime.v1.TableId sink_table_id = 3; */ - io.greptime.v1.Ddl.TableIdOrBuilder getOutputTableIdOrBuilder(); + io.greptime.v1.Ddl.TableIdOrBuilder getSinkTableIdOrBuilder(); /** * bool create_if_not_exists = 4; @@ -4098,18 +4098,18 @@ 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_ = ""; @@ -4120,7 +4120,7 @@ private FlowCreateRequest() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new FlowCreateRequest(); + return new CreateRequest(); } @java.lang.Override @@ -4128,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 { @@ -4171,13 +4171,13 @@ private FlowCreateRequest( } 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; @@ -4244,7 +4244,7 @@ private FlowCreateRequest( } 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"}) @@ -4262,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; @@ -4333,30 +4333,30 @@ public io.greptime.v1.Ddl.TableIdOrBuilder getSourceTableIdsOrBuilder( return sourceTableIds_.get(index); } - public static final int OUTPUT_TABLE_ID_FIELD_NUMBER = 3; - private io.greptime.v1.Ddl.TableId outputTableId_; + public static final int SINK_TABLE_ID_FIELD_NUMBER = 3; + private io.greptime.v1.Ddl.TableId sinkTableId_; /** - * .greptime.v1.TableId output_table_id = 3; - * @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 = 3; - * @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 = 3; + * .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 = 4; @@ -4490,7 +4490,7 @@ private static final class TaskOptionsDefaultEntryHolder { 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, @@ -4585,8 +4585,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < sourceTableIds_.size(); i++) { output.writeMessage(2, sourceTableIds_.get(i)); } - if (outputTableId_ != null) { - output.writeMessage(3, getOutputTableId()); + if (sinkTableId_ != null) { + output.writeMessage(3, getSinkTableId()); } if (createIfNotExists_ != false) { output.writeBool(4, createIfNotExists_); @@ -4623,9 +4623,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, sourceTableIds_.get(i)); } - if (outputTableId_ != null) { + if (sinkTableId_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOutputTableId()); + .computeMessageSize(3, getSinkTableId()); } if (createIfNotExists_ != false) { size += com.google.protobuf.CodedOutputStream @@ -4660,10 +4660,10 @@ 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()) { @@ -4672,10 +4672,10 @@ public boolean equals(final java.lang.Object obj) { } if (!getSourceTableIdsList() .equals(other.getSourceTableIdsList())) return false; - if (hasOutputTableId() != other.hasOutputTableId()) return false; - if (hasOutputTableId()) { - if (!getOutputTableId() - .equals(other.getOutputTableId())) return false; + if (hasSinkTableId() != other.hasSinkTableId()) return false; + if (hasSinkTableId()) { + if (!getSinkTableId() + .equals(other.getSinkTableId())) return false; } if (getCreateIfNotExists() != other.getCreateIfNotExists()) return false; @@ -4706,9 +4706,9 @@ public int hashCode() { hash = (37 * hash) + SOURCE_TABLE_IDS_FIELD_NUMBER; hash = (53 * hash) + getSourceTableIdsList().hashCode(); } - if (hasOutputTableId()) { - hash = (37 * hash) + OUTPUT_TABLE_ID_FIELD_NUMBER; - hash = (53 * hash) + getOutputTableId().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( @@ -4728,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 { @@ -4803,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 @@ -4823,15 +4823,15 @@ 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"}) @@ -4859,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(); } @@ -4895,11 +4895,11 @@ public Builder clear() { } else { sourceTableIdsBuilder_.clear(); } - if (outputTableIdBuilder_ == null) { - outputTableId_ = null; + if (sinkTableIdBuilder_ == null) { + sinkTableId_ = null; } else { - outputTableId_ = null; - outputTableIdBuilder_ = null; + sinkTableId_ = null; + sinkTableIdBuilder_ = null; } createIfNotExists_ = false; @@ -4916,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); } @@ -4934,8 +4934,8 @@ 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_; @@ -4951,10 +4951,10 @@ public io.greptime.v1.flow.Server.FlowCreateRequest buildPartial() { } else { result.sourceTableIds_ = sourceTableIdsBuilder_.build(); } - if (outputTableIdBuilder_ == null) { - result.outputTableId_ = outputTableId_; + if (sinkTableIdBuilder_ == null) { + result.sinkTableId_ = sinkTableId_; } else { - result.outputTableId_ = outputTableIdBuilder_.build(); + result.sinkTableId_ = sinkTableIdBuilder_.build(); } result.createIfNotExists_ = createIfNotExists_; result.expireWhen_ = expireWhen_; @@ -5000,16 +5000,16 @@ 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()); } @@ -5039,8 +5039,8 @@ public Builder mergeFrom(io.greptime.v1.flow.Server.FlowCreateRequest other) { } } } - if (other.hasOutputTableId()) { - mergeOutputTableId(other.getOutputTableId()); + if (other.hasSinkTableId()) { + mergeSinkTableId(other.getSinkTableId()); } if (other.getCreateIfNotExists() != false) { setCreateIfNotExists(other.getCreateIfNotExists()); @@ -5074,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) { @@ -5448,123 +5448,123 @@ public io.greptime.v1.Ddl.TableId.Builder addSourceTableIdsBuilder( return sourceTableIdsBuilder_; } - private io.greptime.v1.Ddl.TableId outputTableId_; + 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 = 3; - * @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 = 3; - * @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 = 3; + * .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 = 3; + * .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 = 3; + * .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 = 3; + * .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 = 3; + * .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 = 3; + * .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 = 3; + * .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_ ; @@ -5969,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 { /** @@ -6029,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 @@ -6055,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 { @@ -6109,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; @@ -6186,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()) { @@ -6216,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 { @@ -6291,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 @@ -6307,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(); } @@ -6356,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); } @@ -6374,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 { @@ -6419,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()); } @@ -6447,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) { @@ -6592,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; } @@ -7148,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 @@ -7182,35 +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\"\356\002\n\021FlowCreateRequest\022)\n\007task_id\030\001 " + - "\001(\0132\030.greptime.v1.flow.TaskId\022.\n\020source_" + - "table_ids\030\002 \003(\0132\024.greptime.v1.TableId\022-\n" + - "\017output_table_id\030\003 \001(\0132\024.greptime.v1.Tab" + - "leId\022\034\n\024create_if_not_exists\030\004 \001(\010\022\023\n\013ex" + - "pire_when\030\005 \001(\t\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030" + - "\007 \001(\t\022J\n\014task_options\030\010 \003(\01324.greptime.v" + - "1.flow.FlowCreateRequest.TaskOptionsEntr" + - "y\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001\">\n\021FlowRemoveRequest\022)\n\007ta" + - "sk_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\022HandleCr" + - "eateRemove\022\035.greptime.v1.flow.FlowReques" + - "t\032\036.greptime.v1.flow.FlowResponse\022W\n\023Han" + - "dleMirrorRequest\022 .greptime.v1.flow.Inse" + - "rtRequests\032\036.greptime.v1.flow.FlowRespon" + - "seBY\n\023io.greptime.v1.flowB\006ServerZ:githu" + - "b.com/GreptimeTeam/greptime-proto/go/gre" + - "ptime/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, @@ -7249,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", "SourceTableIds", "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 7db78b2e..966a5ad1 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -43,7 +43,7 @@ message CreateFlowTaskExpr { string catalog_name = 1; string task_name = 2; repeated SchemaScopedTableName source_table_names = 3; - SchemaScopedTableName output_table_name = 4; + SchemaScopedTableName sink_table_name = 4; bool create_if_not_exists = 5; string expire_when = 6; string comment = 7; diff --git a/proto/greptime/v1/flow/server.proto b/proto/greptime/v1/flow/server.proto index 8a245cf8..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,10 +56,10 @@ message FlowResponse { } // very similar to `ddl.CreateTaskExpr` just replace `task_name` with `task_id` -message FlowCreateRequest { +message CreateRequest { TaskId task_id = 1; repeated TableId source_table_ids = 2; - TableId output_table_id = 3; + TableId sink_table_id = 3; bool create_if_not_exists = 4; string expire_when = 5; string comment = 6; @@ -67,6 +67,6 @@ message FlowCreateRequest { map task_options = 8; } -message FlowRemoveRequest { TaskId task_id = 1; } +message RemoveRequest { TaskId task_id = 1; } message TaskId { uint32 id = 1; } From cefc73f697d8c738daadaeadc10f4743abf30f62 Mon Sep 17 00:00:00 2001 From: WenyXu Date: Thu, 25 Apr 2024 08:36:41 +0000 Subject: [PATCH 5/5] feat: add `CreateFlowTask` and `DropFlowTask` --- c++/greptime/v1/ddl.pb.cc | 290 +-- c++/greptime/v1/ddl.pb.h | 232 +-- c++/greptime/v1/meta/ddl.pb.cc | 640 ++++++- c++/greptime/v1/meta/ddl.pb.h | 700 ++++++- go/greptime/v1/ddl.pb.go | 451 +++-- go/greptime/v1/meta/ddl.pb.go | 417 ++-- java/src/main/java/greptime/v1/meta/Ddl.java | 1792 +++++++++++++++++- java/src/main/java/io/greptime/v1/Ddl.java | 440 ++--- proto/greptime/v1/ddl.proto | 4 +- proto/greptime/v1/meta/ddl.proto | 10 + 10 files changed, 4083 insertions(+), 893 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 47a63b06..7f8a69c1 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -82,20 +82,20 @@ struct SchemaScopedTableNameDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SchemaScopedTableNameDefaultTypeInternal _SchemaScopedTableName_default_instance_; -PROTOBUF_CONSTEXPR RemoveFlowTaskExpr::RemoveFlowTaskExpr( +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 RemoveFlowTaskExprDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoveFlowTaskExprDefaultTypeInternal() +struct DropFlowTaskExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR DropFlowTaskExprDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoveFlowTaskExprDefaultTypeInternal() {} + ~DropFlowTaskExprDefaultTypeInternal() {} union { - RemoveFlowTaskExpr _instance; + DropFlowTaskExpr _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveFlowTaskExprDefaultTypeInternal _RemoveFlowTaskExpr_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 { @@ -389,13 +389,13 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI 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::RemoveFlowTaskExpr, _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::RemoveFlowTaskExpr, _impl_.catalog_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::RemoveFlowTaskExpr, _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_ @@ -556,7 +556,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 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::RemoveFlowTaskExpr)}, + { 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)}, @@ -580,7 +580,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateFlowTaskExpr_default_instance_._instance, &::greptime::v1::_SchemaScopedTableName_default_instance_._instance, - &::greptime::v1::_RemoveFlowTaskExpr_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, @@ -601,7 +601,7 @@ 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\"\225\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" @@ -610,78 +610,78 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "H\000\0228\n\016truncate_table\030\007 \001(\0132\036.greptime.v1" ".TruncateTableExprH\000\022;\n\020create_flow_task" "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" - "\000\022;\n\020remove_flow_task\030\t \001(\0132\037.greptime.v" - "1.RemoveFlowTaskExprH\000B\006\n\004expr\"\207\003\n\022Creat" - "eFlowTaskExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tt" - "ask_name\030\002 \001(\t\022>\n\022source_table_names\030\003 \003" - "(\0132\".greptime.v1.SchemaScopedTableName\022;" - "\n\017sink_table_name\030\004 \001(\0132\".greptime.v1.Sc" - "hemaScopedTableName\022\034\n\024create_if_not_exi" - "sts\030\005 \001(\010\022\023\n\013expire_when\030\006 \001(\t\022\017\n\007commen" - "t\030\007 \001(\t\022\013\n\003sql\030\010 \001(\t\022F\n\014task_options\030\t \003" - "(\01320.greptime.v1.CreateFlowTaskExpr.Task" - "OptionsEntry\0322\n\020TaskOptionsEntry\022\013\n\003key\030" - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\025SchemaScoped" - "TableName\022\023\n\013schema_name\030\001 \001(\t\022\022\n\ntable_" - "name\030\002 \001(\t\"=\n\022RemoveFlowTaskExpr\022\024\n\014cata" - "log_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003\n\017Cr" - "eateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" - "chema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\014\n\004" - "desc\030\004 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.grepti" - "me.v1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014p" - "rimary_keys\030\007 \003(\t\022\034\n\024create_if_not_exist" - "s\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132..greptim" - "e.v1.CreateTableExpr.TableOptionsEntry\022&" - "\n\010table_id\030\n \001(\0132\024.greptime.v1.TableId\022\016" - "\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003k" - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterExp" - "r\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.\n\013add_columns\030" - "\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014drop" - "_columns\030\005 \001(\0132\030.greptime.v1.DropColumns" - "H\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1.R" - "enameTableH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\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&\n\010table_id\030\004 \001(\0132" - "\024.greptime.v1.TableId\022\026\n\016drop_if_exists\030" - "\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_" - "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024creat" - "e_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132," - ".greptime.v1.CreateDatabaseExpr.OptionsE" - "ntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - "ue\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014cat" - "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\n" - "table_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gre" - "ptime.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014" - "catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022" - "\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n" - "\013add_columns\030\001 \003(\0132\026.greptime.v1.AddColu" - "mn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132" - "\027.greptime.v1.DropColumn\"%\n\013RenameTable\022" - "\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\n" - "column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef" - "\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddColu" - "mnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025" - "\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004n" - "ame\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime." - "v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032" - "\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic_t" - "ype\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007" - "comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(" - "\0132$.greptime.v1.ColumnDataTypeExtension\"" - "\230\001\n\021AddColumnLocation\022B\n\rlocation_type\030\001" - " \001(\0162+.greptime.v1.AddColumnLocation.Loc" - "ationType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014" - "LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io" - ".greptime.v1B\003DdlZ5github.com/GreptimeTe" - "am/greptime-proto/go/greptime/v1b\006proto3" + "\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" + " \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.greptime.v1." + "ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014primary" + "_keys\030\007 \003(\t\022\034\n\024create_if_not_exists\030\010 \001(" + "\010\022E\n\rtable_options\030\t \003(\0132..greptime.v1.C" + "reateTableExpr.TableOptionsEntry\022&\n\010tabl" + "e_id\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006engi" + "ne\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003key\030\001 \001" + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterExpr\022\024\n\014c" + "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022" + "\n\ntable_name\030\003 \001(\t\022.\n\013add_columns\030\004 \001(\0132" + "\027.greptime.v1.AddColumnsH\000\0220\n\014drop_colum" + "ns\030\005 \001(\0132\030.greptime.v1.DropColumnsH\000\0220\n\014" + "rename_table\030\006 \001(\0132\030.greptime.v1.RenameT" + "ableH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014cata" + "log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nt" + "able_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grep" + "time.v1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010\"" + "\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_name\030\001" + " \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_n" + "ot_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.grept" + "ime.v1.CreateDatabaseExpr.OptionsEntry\032." + "\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + "(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_n" + "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_" + "name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime." + "v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014catalo" + "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dro" + "p_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_c" + "olumns\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n\013" + "DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.grep" + "time.v1.DropColumn\"%\n\013RenameTable\022\026\n\016new" + "_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn" + "_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010lo" + "cation\030\003 \001(\0132\036.greptime.v1.AddColumnLoca" + "tion\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007Tabl" + "eId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 " + "\001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1.Col" + "umnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022defa" + "ult_constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 " + "\001(\0162\031.greptime.v1.SemanticType\022\017\n\007commen" + "t\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.gr" + "eptime.v1.ColumnDataTypeExtension\"\230\001\n\021Ad" + "dColumnLocation\022B\n\rlocation_type\030\001 \001(\0162+" + ".greptime.v1.AddColumnLocation.LocationT" + "ype\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locati" + "onType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.grept" + "ime.v1B\003DdlZ5github.com/GreptimeTeam/gre" + "ptime-proto/go/greptime/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { - false, false, 3000, 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, 21, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, @@ -728,7 +728,7 @@ class DdlRequest::_Internal { static const ::greptime::v1::DropTableExpr& drop_table(const DdlRequest* msg); static const ::greptime::v1::TruncateTableExpr& truncate_table(const DdlRequest* msg); static const ::greptime::v1::CreateFlowTaskExpr& create_flow_task(const DdlRequest* msg); - static const ::greptime::v1::RemoveFlowTaskExpr& remove_flow_task(const DdlRequest* msg); + static const ::greptime::v1::DropFlowTaskExpr& drop_flow_task(const DdlRequest* msg); }; const ::greptime::v1::CreateDatabaseExpr& @@ -755,9 +755,9 @@ const ::greptime::v1::CreateFlowTaskExpr& DdlRequest::_Internal::create_flow_task(const DdlRequest* msg) { return *msg->_impl_.expr_.create_flow_task_; } -const ::greptime::v1::RemoveFlowTaskExpr& -DdlRequest::_Internal::remove_flow_task(const DdlRequest* msg) { - return *msg->_impl_.expr_.remove_flow_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(); @@ -849,20 +849,20 @@ void DdlRequest::set_allocated_create_flow_task(::greptime::v1::CreateFlowTaskEx } // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.create_flow_task) } -void DdlRequest::set_allocated_remove_flow_task(::greptime::v1::RemoveFlowTaskExpr* remove_flow_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_flow_task) { + if (drop_flow_task) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(remove_flow_task); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(drop_flow_task); if (message_arena != submessage_arena) { - remove_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, remove_flow_task, submessage_arena); + drop_flow_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, drop_flow_task, submessage_arena); } - set_has_remove_flow_task(); - _impl_.expr_.remove_flow_task_ = remove_flow_task; + set_has_drop_flow_task(); + _impl_.expr_.drop_flow_task_ = drop_flow_task; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.remove_flow_task) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.drop_flow_task) } DdlRequest::DdlRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) @@ -911,9 +911,9 @@ DdlRequest::DdlRequest(const DdlRequest& from) from._internal_create_flow_task()); break; } - case kRemoveFlowTask: { - _this->_internal_mutable_remove_flow_task()->::greptime::v1::RemoveFlowTaskExpr::MergeFrom( - from._internal_remove_flow_task()); + case kDropFlowTask: { + _this->_internal_mutable_drop_flow_task()->::greptime::v1::DropFlowTaskExpr::MergeFrom( + from._internal_drop_flow_task()); break; } case EXPR_NOT_SET: { @@ -994,9 +994,9 @@ void DdlRequest::clear_expr() { } break; } - case kRemoveFlowTask: { + case kDropFlowTask: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.expr_.remove_flow_task_; + delete _impl_.expr_.drop_flow_task_; } break; } @@ -1072,10 +1072,10 @@ const char* DdlRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct } else goto handle_unusual; continue; - // .greptime.v1.RemoveFlowTaskExpr remove_flow_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_flow_task(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_drop_flow_task(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -1151,11 +1151,11 @@ uint8_t* DdlRequest::_InternalSerialize( _Internal::create_flow_task(this).GetCachedSize(), target, stream); } - // .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; - if (_internal_has_remove_flow_task()) { + // .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + if (_internal_has_drop_flow_task()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(9, _Internal::remove_flow_task(this), - _Internal::remove_flow_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())) { @@ -1217,11 +1217,11 @@ size_t DdlRequest::ByteSizeLong() const { *_impl_.expr_.create_flow_task_); break; } - // .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; - case kRemoveFlowTask: { + // .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + case kDropFlowTask: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.expr_.remove_flow_task_); + *_impl_.expr_.drop_flow_task_); break; } case EXPR_NOT_SET: { @@ -1277,9 +1277,9 @@ void DdlRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PRO from._internal_create_flow_task()); break; } - case kRemoveFlowTask: { - _this->_internal_mutable_remove_flow_task()->::greptime::v1::RemoveFlowTaskExpr::MergeFrom( - from._internal_remove_flow_task()); + case kDropFlowTask: { + _this->_internal_mutable_drop_flow_task()->::greptime::v1::DropFlowTaskExpr::MergeFrom( + from._internal_drop_flow_task()); break; } case EXPR_NOT_SET: { @@ -2160,19 +2160,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SchemaScopedTableName::GetMetadata() const { // =================================================================== -class RemoveFlowTaskExpr::_Internal { +class DropFlowTaskExpr::_Internal { public: }; -RemoveFlowTaskExpr::RemoveFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, +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.RemoveFlowTaskExpr) + // @@protoc_insertion_point(arena_constructor:greptime.v1.DropFlowTaskExpr) } -RemoveFlowTaskExpr::RemoveFlowTaskExpr(const RemoveFlowTaskExpr& from) +DropFlowTaskExpr::DropFlowTaskExpr(const DropFlowTaskExpr& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - RemoveFlowTaskExpr* const _this = this; (void)_this; + DropFlowTaskExpr* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.catalog_name_){} , decltype(_impl_.task_name_){} @@ -2195,10 +2195,10 @@ RemoveFlowTaskExpr::RemoveFlowTaskExpr(const RemoveFlowTaskExpr& from) _this->_impl_.task_name_.Set(from._internal_task_name(), _this->GetArenaForAllocation()); } - // @@protoc_insertion_point(copy_constructor:greptime.v1.RemoveFlowTaskExpr) + // @@protoc_insertion_point(copy_constructor:greptime.v1.DropFlowTaskExpr) } -inline void RemoveFlowTaskExpr::SharedCtor( +inline void DropFlowTaskExpr::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -2217,8 +2217,8 @@ inline void RemoveFlowTaskExpr::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -RemoveFlowTaskExpr::~RemoveFlowTaskExpr() { - // @@protoc_insertion_point(destructor:greptime.v1.RemoveFlowTaskExpr) +DropFlowTaskExpr::~DropFlowTaskExpr() { + // @@protoc_insertion_point(destructor:greptime.v1.DropFlowTaskExpr) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -2226,18 +2226,18 @@ RemoveFlowTaskExpr::~RemoveFlowTaskExpr() { SharedDtor(); } -inline void RemoveFlowTaskExpr::SharedDtor() { +inline void DropFlowTaskExpr::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.catalog_name_.Destroy(); _impl_.task_name_.Destroy(); } -void RemoveFlowTaskExpr::SetCachedSize(int size) const { +void DropFlowTaskExpr::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void RemoveFlowTaskExpr::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.RemoveFlowTaskExpr) +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; @@ -2247,7 +2247,7 @@ void RemoveFlowTaskExpr::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RemoveFlowTaskExpr::_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; @@ -2259,7 +2259,7 @@ const char* RemoveFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon auto str = _internal_mutable_catalog_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.RemoveFlowTaskExpr.catalog_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropFlowTaskExpr.catalog_name")); } else goto handle_unusual; continue; @@ -2269,7 +2269,7 @@ const char* RemoveFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon auto str = _internal_mutable_task_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.RemoveFlowTaskExpr.task_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropFlowTaskExpr.task_name")); } else goto handle_unusual; continue; @@ -2296,9 +2296,9 @@ const char* RemoveFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon #undef CHK_ } -uint8_t* RemoveFlowTaskExpr::_InternalSerialize( +uint8_t* DropFlowTaskExpr::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.RemoveFlowTaskExpr) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DropFlowTaskExpr) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2307,7 +2307,7 @@ uint8_t* RemoveFlowTaskExpr::_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.RemoveFlowTaskExpr.catalog_name"); + "greptime.v1.DropFlowTaskExpr.catalog_name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_catalog_name(), target); } @@ -2317,7 +2317,7 @@ uint8_t* RemoveFlowTaskExpr::_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.RemoveFlowTaskExpr.task_name"); + "greptime.v1.DropFlowTaskExpr.task_name"); target = stream->WriteStringMaybeAliased( 2, this->_internal_task_name(), target); } @@ -2326,12 +2326,12 @@ uint8_t* RemoveFlowTaskExpr::_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.RemoveFlowTaskExpr) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.DropFlowTaskExpr) return target; } -size_t RemoveFlowTaskExpr::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.RemoveFlowTaskExpr) +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; @@ -2355,17 +2355,17 @@ size_t RemoveFlowTaskExpr::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RemoveFlowTaskExpr::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropFlowTaskExpr::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - RemoveFlowTaskExpr::MergeImpl + DropFlowTaskExpr::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RemoveFlowTaskExpr::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropFlowTaskExpr::GetClassData() const { return &_class_data_; } -void RemoveFlowTaskExpr::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.RemoveFlowTaskExpr) +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; @@ -2379,18 +2379,18 @@ void RemoveFlowTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void RemoveFlowTaskExpr::CopyFrom(const RemoveFlowTaskExpr& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.RemoveFlowTaskExpr) +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 RemoveFlowTaskExpr::IsInitialized() const { +bool DropFlowTaskExpr::IsInitialized() const { return true; } -void RemoveFlowTaskExpr::InternalSwap(RemoveFlowTaskExpr* other) { +void DropFlowTaskExpr::InternalSwap(DropFlowTaskExpr* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -2405,7 +2405,7 @@ void RemoveFlowTaskExpr::InternalSwap(RemoveFlowTaskExpr* other) { ); } -::PROTOBUF_NAMESPACE_ID::Metadata RemoveFlowTaskExpr::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[4]); @@ -6851,9 +6851,9 @@ 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::RemoveFlowTaskExpr* -Arena::CreateMaybeMessage< ::greptime::v1::RemoveFlowTaskExpr >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::RemoveFlowTaskExpr >(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 4139e3e1..5a9f21d6 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -96,12 +96,12 @@ 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 RemoveFlowTaskExpr; -struct RemoveFlowTaskExprDefaultTypeInternal; -extern RemoveFlowTaskExprDefaultTypeInternal _RemoveFlowTaskExpr_default_instance_; class RenameTable; struct RenameTableDefaultTypeInternal; extern RenameTableDefaultTypeInternal _RenameTable_default_instance_; @@ -132,8 +132,8 @@ template<> ::greptime::v1::DdlRequest* Arena::CreateMaybeMessage<::greptime::v1: 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::RemoveFlowTaskExpr* Arena::CreateMaybeMessage<::greptime::v1::RemoveFlowTaskExpr>(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*); @@ -219,7 +219,7 @@ class DdlRequest final : kDropTable = 4, kTruncateTable = 7, kCreateFlowTask = 8, - kRemoveFlowTask = 9, + kDropFlowTask = 9, EXPR_NOT_SET = 0, }; @@ -307,7 +307,7 @@ class DdlRequest final : kDropTableFieldNumber = 4, kTruncateTableFieldNumber = 7, kCreateFlowTaskFieldNumber = 8, - kRemoveFlowTaskFieldNumber = 9, + kDropFlowTaskFieldNumber = 9, }; // .greptime.v1.CreateDatabaseExpr create_database = 1; bool has_create_database() const; @@ -417,23 +417,23 @@ class DdlRequest final : ::greptime::v1::CreateFlowTaskExpr* create_flow_task); ::greptime::v1::CreateFlowTaskExpr* unsafe_arena_release_create_flow_task(); - // .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; - bool has_remove_flow_task() const; + // .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + bool has_drop_flow_task() const; private: - bool _internal_has_remove_flow_task() const; + bool _internal_has_drop_flow_task() const; public: - void clear_remove_flow_task(); - const ::greptime::v1::RemoveFlowTaskExpr& remove_flow_task() const; - PROTOBUF_NODISCARD ::greptime::v1::RemoveFlowTaskExpr* release_remove_flow_task(); - ::greptime::v1::RemoveFlowTaskExpr* mutable_remove_flow_task(); - void set_allocated_remove_flow_task(::greptime::v1::RemoveFlowTaskExpr* remove_flow_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::RemoveFlowTaskExpr& _internal_remove_flow_task() const; - ::greptime::v1::RemoveFlowTaskExpr* _internal_mutable_remove_flow_task(); + const ::greptime::v1::DropFlowTaskExpr& _internal_drop_flow_task() const; + ::greptime::v1::DropFlowTaskExpr* _internal_mutable_drop_flow_task(); public: - void unsafe_arena_set_allocated_remove_flow_task( - ::greptime::v1::RemoveFlowTaskExpr* remove_flow_task); - ::greptime::v1::RemoveFlowTaskExpr* unsafe_arena_release_remove_flow_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; @@ -446,7 +446,7 @@ class DdlRequest final : void set_has_drop_table(); void set_has_truncate_table(); void set_has_create_flow_task(); - void set_has_remove_flow_task(); + void set_has_drop_flow_task(); inline bool has_expr() const; inline void clear_has_expr(); @@ -464,7 +464,7 @@ class DdlRequest final : ::greptime::v1::DropTableExpr* drop_table_; ::greptime::v1::TruncateTableExpr* truncate_table_; ::greptime::v1::CreateFlowTaskExpr* create_flow_task_; - ::greptime::v1::RemoveFlowTaskExpr* remove_flow_task_; + ::greptime::v1::DropFlowTaskExpr* drop_flow_task_; } expr_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -966,24 +966,24 @@ class SchemaScopedTableName final : }; // ------------------------------------------------------------------- -class RemoveFlowTaskExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RemoveFlowTaskExpr) */ { +class DropFlowTaskExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropFlowTaskExpr) */ { public: - inline RemoveFlowTaskExpr() : RemoveFlowTaskExpr(nullptr) {} - ~RemoveFlowTaskExpr() override; - explicit PROTOBUF_CONSTEXPR RemoveFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DropFlowTaskExpr() : DropFlowTaskExpr(nullptr) {} + ~DropFlowTaskExpr() override; + explicit PROTOBUF_CONSTEXPR DropFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - RemoveFlowTaskExpr(const RemoveFlowTaskExpr& from); - RemoveFlowTaskExpr(RemoveFlowTaskExpr&& from) noexcept - : RemoveFlowTaskExpr() { + DropFlowTaskExpr(const DropFlowTaskExpr& from); + DropFlowTaskExpr(DropFlowTaskExpr&& from) noexcept + : DropFlowTaskExpr() { *this = ::std::move(from); } - inline RemoveFlowTaskExpr& operator=(const RemoveFlowTaskExpr& from) { + inline DropFlowTaskExpr& operator=(const DropFlowTaskExpr& from) { CopyFrom(from); return *this; } - inline RemoveFlowTaskExpr& operator=(RemoveFlowTaskExpr&& from) noexcept { + inline DropFlowTaskExpr& operator=(DropFlowTaskExpr&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1006,20 +1006,20 @@ class RemoveFlowTaskExpr final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RemoveFlowTaskExpr& default_instance() { + static const DropFlowTaskExpr& default_instance() { return *internal_default_instance(); } - static inline const RemoveFlowTaskExpr* internal_default_instance() { - return reinterpret_cast( - &_RemoveFlowTaskExpr_default_instance_); + static inline const DropFlowTaskExpr* internal_default_instance() { + return reinterpret_cast( + &_DropFlowTaskExpr_default_instance_); } static constexpr int kIndexInFileMessages = 4; - friend void swap(RemoveFlowTaskExpr& a, RemoveFlowTaskExpr& b) { + friend void swap(DropFlowTaskExpr& a, DropFlowTaskExpr& b) { a.Swap(&b); } - inline void Swap(RemoveFlowTaskExpr* other) { + inline void Swap(DropFlowTaskExpr* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1032,7 +1032,7 @@ class RemoveFlowTaskExpr final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoveFlowTaskExpr* other) { + void UnsafeArenaSwap(DropFlowTaskExpr* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1040,14 +1040,14 @@ class RemoveFlowTaskExpr final : // implements Message ---------------------------------------------- - RemoveFlowTaskExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DropFlowTaskExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RemoveFlowTaskExpr& from); + void CopyFrom(const DropFlowTaskExpr& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RemoveFlowTaskExpr& from) { - RemoveFlowTaskExpr::MergeImpl(*this, from); + 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); @@ -1065,15 +1065,15 @@ class RemoveFlowTaskExpr final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(RemoveFlowTaskExpr* other); + void InternalSwap(DropFlowTaskExpr* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.RemoveFlowTaskExpr"; + return "greptime.v1.DropFlowTaskExpr"; } protected: - explicit RemoveFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit DropFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1118,7 +1118,7 @@ class RemoveFlowTaskExpr final : std::string* _internal_mutable_task_name(); public: - // @@protoc_insertion_point(class_scope:greptime.v1.RemoveFlowTaskExpr) + // @@protoc_insertion_point(class_scope:greptime.v1.DropFlowTaskExpr) private: class _Internal; @@ -4430,77 +4430,77 @@ inline ::greptime::v1::CreateFlowTaskExpr* DdlRequest::mutable_create_flow_task( return _msg; } -// .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; -inline bool DdlRequest::_internal_has_remove_flow_task() const { - return expr_case() == kRemoveFlowTask; +// .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_flow_task() const { - return _internal_has_remove_flow_task(); +inline bool DdlRequest::has_drop_flow_task() const { + return _internal_has_drop_flow_task(); } -inline void DdlRequest::set_has_remove_flow_task() { - _impl_._oneof_case_[0] = kRemoveFlowTask; +inline void DdlRequest::set_has_drop_flow_task() { + _impl_._oneof_case_[0] = kDropFlowTask; } -inline void DdlRequest::clear_remove_flow_task() { - if (_internal_has_remove_flow_task()) { +inline void DdlRequest::clear_drop_flow_task() { + if (_internal_has_drop_flow_task()) { if (GetArenaForAllocation() == nullptr) { - delete _impl_.expr_.remove_flow_task_; + delete _impl_.expr_.drop_flow_task_; } clear_has_expr(); } } -inline ::greptime::v1::RemoveFlowTaskExpr* DdlRequest::release_remove_flow_task() { - // @@protoc_insertion_point(field_release:greptime.v1.DdlRequest.remove_flow_task) - if (_internal_has_remove_flow_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::RemoveFlowTaskExpr* temp = _impl_.expr_.remove_flow_task_; + ::greptime::v1::DropFlowTaskExpr* temp = _impl_.expr_.drop_flow_task_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.expr_.remove_flow_task_ = nullptr; + _impl_.expr_.drop_flow_task_ = nullptr; return temp; } else { return nullptr; } } -inline const ::greptime::v1::RemoveFlowTaskExpr& DdlRequest::_internal_remove_flow_task() const { - return _internal_has_remove_flow_task() - ? *_impl_.expr_.remove_flow_task_ - : reinterpret_cast< ::greptime::v1::RemoveFlowTaskExpr&>(::greptime::v1::_RemoveFlowTaskExpr_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::RemoveFlowTaskExpr& DdlRequest::remove_flow_task() const { - // @@protoc_insertion_point(field_get:greptime.v1.DdlRequest.remove_flow_task) - return _internal_remove_flow_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::RemoveFlowTaskExpr* DdlRequest::unsafe_arena_release_remove_flow_task() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.DdlRequest.remove_flow_task) - if (_internal_has_remove_flow_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::RemoveFlowTaskExpr* temp = _impl_.expr_.remove_flow_task_; - _impl_.expr_.remove_flow_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_flow_task(::greptime::v1::RemoveFlowTaskExpr* remove_flow_task) { +inline void DdlRequest::unsafe_arena_set_allocated_drop_flow_task(::greptime::v1::DropFlowTaskExpr* drop_flow_task) { clear_expr(); - if (remove_flow_task) { - set_has_remove_flow_task(); - _impl_.expr_.remove_flow_task_ = remove_flow_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_flow_task) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.DdlRequest.drop_flow_task) } -inline ::greptime::v1::RemoveFlowTaskExpr* DdlRequest::_internal_mutable_remove_flow_task() { - if (!_internal_has_remove_flow_task()) { +inline ::greptime::v1::DropFlowTaskExpr* DdlRequest::_internal_mutable_drop_flow_task() { + if (!_internal_has_drop_flow_task()) { clear_expr(); - set_has_remove_flow_task(); - _impl_.expr_.remove_flow_task_ = CreateMaybeMessage< ::greptime::v1::RemoveFlowTaskExpr >(GetArenaForAllocation()); + set_has_drop_flow_task(); + _impl_.expr_.drop_flow_task_ = CreateMaybeMessage< ::greptime::v1::DropFlowTaskExpr >(GetArenaForAllocation()); } - return _impl_.expr_.remove_flow_task_; + return _impl_.expr_.drop_flow_task_; } -inline ::greptime::v1::RemoveFlowTaskExpr* DdlRequest::mutable_remove_flow_task() { - ::greptime::v1::RemoveFlowTaskExpr* _msg = _internal_mutable_remove_flow_task(); - // @@protoc_insertion_point(field_mutable:greptime.v1.DdlRequest.remove_flow_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; } @@ -5054,44 +5054,44 @@ inline void SchemaScopedTableName::set_allocated_table_name(std::string* table_n // ------------------------------------------------------------------- -// RemoveFlowTaskExpr +// DropFlowTaskExpr // string catalog_name = 1; -inline void RemoveFlowTaskExpr::clear_catalog_name() { +inline void DropFlowTaskExpr::clear_catalog_name() { _impl_.catalog_name_.ClearToEmpty(); } -inline const std::string& RemoveFlowTaskExpr::catalog_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.RemoveFlowTaskExpr.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 RemoveFlowTaskExpr::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.RemoveFlowTaskExpr.catalog_name) + // @@protoc_insertion_point(field_set:greptime.v1.DropFlowTaskExpr.catalog_name) } -inline std::string* RemoveFlowTaskExpr::mutable_catalog_name() { +inline std::string* DropFlowTaskExpr::mutable_catalog_name() { std::string* _s = _internal_mutable_catalog_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.RemoveFlowTaskExpr.catalog_name) + // @@protoc_insertion_point(field_mutable:greptime.v1.DropFlowTaskExpr.catalog_name) return _s; } -inline const std::string& RemoveFlowTaskExpr::_internal_catalog_name() const { +inline const std::string& DropFlowTaskExpr::_internal_catalog_name() const { return _impl_.catalog_name_.Get(); } -inline void RemoveFlowTaskExpr::_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* RemoveFlowTaskExpr::_internal_mutable_catalog_name() { +inline std::string* DropFlowTaskExpr::_internal_mutable_catalog_name() { return _impl_.catalog_name_.Mutable(GetArenaForAllocation()); } -inline std::string* RemoveFlowTaskExpr::release_catalog_name() { - // @@protoc_insertion_point(field_release:greptime.v1.RemoveFlowTaskExpr.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 RemoveFlowTaskExpr::set_allocated_catalog_name(std::string* catalog_name) { +inline void DropFlowTaskExpr::set_allocated_catalog_name(std::string* catalog_name) { if (catalog_name != nullptr) { } else { @@ -5103,45 +5103,45 @@ inline void RemoveFlowTaskExpr::set_allocated_catalog_name(std::string* catalog_ _impl_.catalog_name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.RemoveFlowTaskExpr.catalog_name) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DropFlowTaskExpr.catalog_name) } // string task_name = 2; -inline void RemoveFlowTaskExpr::clear_task_name() { +inline void DropFlowTaskExpr::clear_task_name() { _impl_.task_name_.ClearToEmpty(); } -inline const std::string& RemoveFlowTaskExpr::task_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.RemoveFlowTaskExpr.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 RemoveFlowTaskExpr::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.RemoveFlowTaskExpr.task_name) + // @@protoc_insertion_point(field_set:greptime.v1.DropFlowTaskExpr.task_name) } -inline std::string* RemoveFlowTaskExpr::mutable_task_name() { +inline std::string* DropFlowTaskExpr::mutable_task_name() { std::string* _s = _internal_mutable_task_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.RemoveFlowTaskExpr.task_name) + // @@protoc_insertion_point(field_mutable:greptime.v1.DropFlowTaskExpr.task_name) return _s; } -inline const std::string& RemoveFlowTaskExpr::_internal_task_name() const { +inline const std::string& DropFlowTaskExpr::_internal_task_name() const { return _impl_.task_name_.Get(); } -inline void RemoveFlowTaskExpr::_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* RemoveFlowTaskExpr::_internal_mutable_task_name() { +inline std::string* DropFlowTaskExpr::_internal_mutable_task_name() { return _impl_.task_name_.Mutable(GetArenaForAllocation()); } -inline std::string* RemoveFlowTaskExpr::release_task_name() { - // @@protoc_insertion_point(field_release:greptime.v1.RemoveFlowTaskExpr.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 RemoveFlowTaskExpr::set_allocated_task_name(std::string* task_name) { +inline void DropFlowTaskExpr::set_allocated_task_name(std::string* task_name) { if (task_name != nullptr) { } else { @@ -5153,7 +5153,7 @@ inline void RemoveFlowTaskExpr::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.RemoveFlowTaskExpr.task_name) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DropFlowTaskExpr.task_name) } // ------------------------------------------------------------------- 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 397ff4bc..a0e84b65 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -97,7 +97,7 @@ type DdlRequest struct { // *DdlRequest_DropTable // *DdlRequest_TruncateTable // *DdlRequest_CreateFlowTask - // *DdlRequest_RemoveFlowTask + // *DdlRequest_DropFlowTask Expr isDdlRequest_Expr `protobuf_oneof:"expr"` } @@ -182,9 +182,9 @@ func (x *DdlRequest) GetCreateFlowTask() *CreateFlowTaskExpr { return nil } -func (x *DdlRequest) GetRemoveFlowTask() *RemoveFlowTaskExpr { - if x, ok := x.GetExpr().(*DdlRequest_RemoveFlowTask); ok { - return x.RemoveFlowTask +func (x *DdlRequest) GetDropFlowTask() *DropFlowTaskExpr { + if x, ok := x.GetExpr().(*DdlRequest_DropFlowTask); ok { + return x.DropFlowTask } return nil } @@ -217,8 +217,8 @@ type DdlRequest_CreateFlowTask struct { CreateFlowTask *CreateFlowTaskExpr `protobuf:"bytes,8,opt,name=create_flow_task,json=createFlowTask,proto3,oneof"` } -type DdlRequest_RemoveFlowTask struct { - RemoveFlowTask *RemoveFlowTaskExpr `protobuf:"bytes,9,opt,name=remove_flow_task,json=removeFlowTask,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() {} @@ -233,7 +233,7 @@ func (*DdlRequest_TruncateTable) isDdlRequest_Expr() {} func (*DdlRequest_CreateFlowTask) isDdlRequest_Expr() {} -func (*DdlRequest_RemoveFlowTask) isDdlRequest_Expr() {} +func (*DdlRequest_DropFlowTask) isDdlRequest_Expr() {} // Create a flow task to run the SQL when new data arrives. type CreateFlowTaskExpr struct { @@ -404,7 +404,7 @@ func (x *SchemaScopedTableName) GetTableName() string { } // Remove a flow task. -type RemoveFlowTaskExpr struct { +type DropFlowTaskExpr struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -413,8 +413,8 @@ type RemoveFlowTaskExpr struct { TaskName string `protobuf:"bytes,2,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"` } -func (x *RemoveFlowTaskExpr) Reset() { - *x = RemoveFlowTaskExpr{} +func (x *DropFlowTaskExpr) Reset() { + *x = DropFlowTaskExpr{} if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_ddl_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -422,13 +422,13 @@ func (x *RemoveFlowTaskExpr) Reset() { } } -func (x *RemoveFlowTaskExpr) String() string { +func (x *DropFlowTaskExpr) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RemoveFlowTaskExpr) ProtoMessage() {} +func (*DropFlowTaskExpr) ProtoMessage() {} -func (x *RemoveFlowTaskExpr) ProtoReflect() protoreflect.Message { +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)) @@ -440,19 +440,19 @@ func (x *RemoveFlowTaskExpr) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveFlowTaskExpr.ProtoReflect.Descriptor instead. -func (*RemoveFlowTaskExpr) Descriptor() ([]byte, []int) { +// Deprecated: Use DropFlowTaskExpr.ProtoReflect.Descriptor instead. +func (*DropFlowTaskExpr) Descriptor() ([]byte, []int) { return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{3} } -func (x *RemoveFlowTaskExpr) GetCatalogName() string { +func (x *DropFlowTaskExpr) GetCatalogName() string { if x != nil { return x.CatalogName } return "" } -func (x *RemoveFlowTaskExpr) GetTaskName() string { +func (x *DropFlowTaskExpr) GetTaskName() string { if x != nil { return x.TaskName } @@ -1436,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, 0xf3, + 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, @@ -1463,219 +1463,218 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 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, - 0x4b, 0x0a, 0x10, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, - 0x61, 0x73, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x6c, - 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 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, 0x57, 0x0a, 0x15, + 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, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x54, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 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, 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, + 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, 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, 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, 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, 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, + 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, 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, + 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 ( @@ -1697,7 +1696,7 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*DdlRequest)(nil), // 1: greptime.v1.DdlRequest (*CreateFlowTaskExpr)(nil), // 2: greptime.v1.CreateFlowTaskExpr (*SchemaScopedTableName)(nil), // 3: greptime.v1.SchemaScopedTableName - (*RemoveFlowTaskExpr)(nil), // 4: greptime.v1.RemoveFlowTaskExpr + (*DropFlowTaskExpr)(nil), // 4: greptime.v1.DropFlowTaskExpr (*CreateTableExpr)(nil), // 5: greptime.v1.CreateTableExpr (*AlterExpr)(nil), // 6: greptime.v1.AlterExpr (*DropTableExpr)(nil), // 7: greptime.v1.DropTableExpr @@ -1726,7 +1725,7 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 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.remove_flow_task:type_name -> greptime.v1.RemoveFlowTaskExpr + 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 @@ -1798,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.(*RemoveFlowTaskExpr); i { + switch v := v.(*DropFlowTaskExpr); i { case 0: return &v.state case 1: @@ -1985,7 +1984,7 @@ func file_greptime_v1_ddl_proto_init() { (*DdlRequest_DropTable)(nil), (*DdlRequest_TruncateTable)(nil), (*DdlRequest_CreateFlowTask)(nil), - (*DdlRequest_RemoveFlowTask)(nil), + (*DdlRequest_DropFlowTask)(nil), } file_greptime_v1_ddl_proto_msgTypes[5].OneofWrappers = []interface{}{ (*AlterExpr_AddColumns)(nil), 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.RemoveFlowTaskExpr remove_flow_task = 9; - * @return Whether the removeFlowTask field is set. + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + * @return Whether the dropFlowTask field is set. */ - boolean hasRemoveFlowTask(); + boolean hasDropFlowTask(); /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; - * @return The removeFlowTask. + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + * @return The dropFlowTask. */ - io.greptime.v1.Ddl.RemoveFlowTaskExpr getRemoveFlowTask(); + io.greptime.v1.Ddl.DropFlowTaskExpr getDropFlowTask(); /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ - io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder getRemoveFlowTaskOrBuilder(); + io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder getDropFlowTaskOrBuilder(); public io.greptime.v1.Ddl.DdlRequest.ExprCase getExprCase(); } @@ -262,14 +262,14 @@ private DdlRequest( break; } case 74: { - io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder subBuilder = null; + io.greptime.v1.Ddl.DropFlowTaskExpr.Builder subBuilder = null; if (exprCase_ == 9) { - subBuilder = ((io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_).toBuilder(); + subBuilder = ((io.greptime.v1.Ddl.DropFlowTaskExpr) expr_).toBuilder(); } expr_ = - input.readMessage(io.greptime.v1.Ddl.RemoveFlowTaskExpr.parser(), extensionRegistry); + input.readMessage(io.greptime.v1.Ddl.DropFlowTaskExpr.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_); + subBuilder.mergeFrom((io.greptime.v1.Ddl.DropFlowTaskExpr) expr_); expr_ = subBuilder.buildPartial(); } exprCase_ = 9; @@ -320,7 +320,7 @@ public enum ExprCase DROP_TABLE(4), TRUNCATE_TABLE(7), CREATE_FLOW_TASK(8), - REMOVE_FLOW_TASK(9), + DROP_FLOW_TASK(9), EXPR_NOT_SET(0); private final int value; private ExprCase(int value) { @@ -344,7 +344,7 @@ public static ExprCase forNumber(int value) { case 4: return DROP_TABLE; case 7: return TRUNCATE_TABLE; case 8: return CREATE_FLOW_TASK; - case 9: return REMOVE_FLOW_TASK; + case 9: return DROP_FLOW_TASK; case 0: return EXPR_NOT_SET; default: return null; } @@ -546,35 +546,35 @@ public io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder getCreateFlowTaskOrBuilder return io.greptime.v1.Ddl.CreateFlowTaskExpr.getDefaultInstance(); } - public static final int REMOVE_FLOW_TASK_FIELD_NUMBER = 9; + public static final int DROP_FLOW_TASK_FIELD_NUMBER = 9; /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; - * @return Whether the removeFlowTask field is set. + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + * @return Whether the dropFlowTask field is set. */ @java.lang.Override - public boolean hasRemoveFlowTask() { + public boolean hasDropFlowTask() { return exprCase_ == 9; } /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; - * @return The removeFlowTask. + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + * @return The dropFlowTask. */ @java.lang.Override - public io.greptime.v1.Ddl.RemoveFlowTaskExpr getRemoveFlowTask() { + public io.greptime.v1.Ddl.DropFlowTaskExpr getDropFlowTask() { if (exprCase_ == 9) { - return (io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_; + return (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ @java.lang.Override - public io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder getRemoveFlowTaskOrBuilder() { + public io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder getDropFlowTaskOrBuilder() { if (exprCase_ == 9) { - return (io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_; + return (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -610,7 +610,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(8, (io.greptime.v1.Ddl.CreateFlowTaskExpr) expr_); } if (exprCase_ == 9) { - output.writeMessage(9, (io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_); + output.writeMessage(9, (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_); } unknownFields.writeTo(output); } @@ -647,7 +647,7 @@ public int getSerializedSize() { } if (exprCase_ == 9) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_); + .computeMessageSize(9, (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -691,8 +691,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCreateFlowTask())) return false; break; case 9: - if (!getRemoveFlowTask() - .equals(other.getRemoveFlowTask())) return false; + if (!getDropFlowTask() + .equals(other.getDropFlowTask())) return false; break; case 0: default: @@ -734,8 +734,8 @@ public int hashCode() { hash = (53 * hash) + getCreateFlowTask().hashCode(); break; case 9: - hash = (37 * hash) + REMOVE_FLOW_TASK_FIELD_NUMBER; - hash = (53 * hash) + getRemoveFlowTask().hashCode(); + hash = (37 * hash) + DROP_FLOW_TASK_FIELD_NUMBER; + hash = (53 * hash) + getDropFlowTask().hashCode(); break; case 0: default: @@ -951,10 +951,10 @@ public io.greptime.v1.Ddl.DdlRequest buildPartial() { } } if (exprCase_ == 9) { - if (removeFlowTaskBuilder_ == null) { + if (dropFlowTaskBuilder_ == null) { result.expr_ = expr_; } else { - result.expr_ = removeFlowTaskBuilder_.build(); + result.expr_ = dropFlowTaskBuilder_.build(); } } result.exprCase_ = exprCase_; @@ -1031,8 +1031,8 @@ public Builder mergeFrom(io.greptime.v1.Ddl.DdlRequest other) { mergeCreateFlowTask(other.getCreateFlowTask()); break; } - case REMOVE_FLOW_TASK: { - mergeRemoveFlowTask(other.getRemoveFlowTask()); + case DROP_FLOW_TASK: { + mergeDropFlowTask(other.getDropFlowTask()); break; } case EXPR_NOT_SET: { @@ -1936,71 +1936,71 @@ public io.greptime.v1.Ddl.CreateFlowTaskExprOrBuilder getCreateFlowTaskOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.RemoveFlowTaskExpr, io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder, io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder> removeFlowTaskBuilder_; + io.greptime.v1.Ddl.DropFlowTaskExpr, io.greptime.v1.Ddl.DropFlowTaskExpr.Builder, io.greptime.v1.Ddl.DropFlowTaskExprOrBuilder> dropFlowTaskBuilder_; /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; - * @return Whether the removeFlowTask field is set. + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + * @return Whether the dropFlowTask field is set. */ @java.lang.Override - public boolean hasRemoveFlowTask() { + public boolean hasDropFlowTask() { return exprCase_ == 9; } /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; - * @return The removeFlowTask. + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; + * @return The dropFlowTask. */ @java.lang.Override - public io.greptime.v1.Ddl.RemoveFlowTaskExpr getRemoveFlowTask() { - if (removeFlowTaskBuilder_ == null) { + public io.greptime.v1.Ddl.DropFlowTaskExpr getDropFlowTask() { + if (dropFlowTaskBuilder_ == null) { if (exprCase_ == 9) { - return (io.greptime.v1.Ddl.RemoveFlowTaskExpr) expr_; + return (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } else { if (exprCase_ == 9) { - return removeFlowTaskBuilder_.getMessage(); + return dropFlowTaskBuilder_.getMessage(); } - return io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } } /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ - public Builder setRemoveFlowTask(io.greptime.v1.Ddl.RemoveFlowTaskExpr value) { - if (removeFlowTaskBuilder_ == null) { + public Builder setDropFlowTask(io.greptime.v1.Ddl.DropFlowTaskExpr value) { + if (dropFlowTaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { - removeFlowTaskBuilder_.setMessage(value); + dropFlowTaskBuilder_.setMessage(value); } exprCase_ = 9; return this; } /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ - public Builder setRemoveFlowTask( - io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder builderForValue) { - if (removeFlowTaskBuilder_ == null) { + public Builder setDropFlowTask( + io.greptime.v1.Ddl.DropFlowTaskExpr.Builder builderForValue) { + if (dropFlowTaskBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { - removeFlowTaskBuilder_.setMessage(builderForValue.build()); + dropFlowTaskBuilder_.setMessage(builderForValue.build()); } exprCase_ = 9; return this; } /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ - public Builder mergeRemoveFlowTask(io.greptime.v1.Ddl.RemoveFlowTaskExpr value) { - if (removeFlowTaskBuilder_ == null) { + public Builder mergeDropFlowTask(io.greptime.v1.Ddl.DropFlowTaskExpr value) { + if (dropFlowTaskBuilder_ == null) { if (exprCase_ == 9 && - expr_ != io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance()) { - expr_ = io.greptime.v1.Ddl.RemoveFlowTaskExpr.newBuilder((io.greptime.v1.Ddl.RemoveFlowTaskExpr) 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 mergeRemoveFlowTask(io.greptime.v1.Ddl.RemoveFlowTaskExpr value) onChanged(); } else { if (exprCase_ == 9) { - removeFlowTaskBuilder_.mergeFrom(value); + dropFlowTaskBuilder_.mergeFrom(value); } else { - removeFlowTaskBuilder_.setMessage(value); + dropFlowTaskBuilder_.setMessage(value); } } exprCase_ = 9; return this; } /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ - public Builder clearRemoveFlowTask() { - if (removeFlowTaskBuilder_ == null) { + public Builder clearDropFlowTask() { + if (dropFlowTaskBuilder_ == null) { if (exprCase_ == 9) { exprCase_ = 0; expr_ = null; @@ -2031,50 +2031,50 @@ public Builder clearRemoveFlowTask() { exprCase_ = 0; expr_ = null; } - removeFlowTaskBuilder_.clear(); + dropFlowTaskBuilder_.clear(); } return this; } /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ - public io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder getRemoveFlowTaskBuilder() { - return getRemoveFlowTaskFieldBuilder().getBuilder(); + public io.greptime.v1.Ddl.DropFlowTaskExpr.Builder getDropFlowTaskBuilder() { + return getDropFlowTaskFieldBuilder().getBuilder(); } /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ @java.lang.Override - public io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder getRemoveFlowTaskOrBuilder() { - if ((exprCase_ == 9) && (removeFlowTaskBuilder_ != null)) { - return removeFlowTaskBuilder_.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.RemoveFlowTaskExpr) expr_; + return (io.greptime.v1.Ddl.DropFlowTaskExpr) expr_; } - return io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance(); + return io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } } /** - * .greptime.v1.RemoveFlowTaskExpr remove_flow_task = 9; + * .greptime.v1.DropFlowTaskExpr drop_flow_task = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.RemoveFlowTaskExpr, io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder, io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder> - getRemoveFlowTaskFieldBuilder() { - if (removeFlowTaskBuilder_ == 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.RemoveFlowTaskExpr.getDefaultInstance(); + expr_ = io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } - removeFlowTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.RemoveFlowTaskExpr, io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder, io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder>( - (io.greptime.v1.Ddl.RemoveFlowTaskExpr) 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 removeFlowTaskBuilder_; + return dropFlowTaskBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -5006,8 +5006,8 @@ public io.greptime.v1.Ddl.SchemaScopedTableName getDefaultInstanceForType() { } - public interface RemoveFlowTaskExprOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.RemoveFlowTaskExpr) + public interface DropFlowTaskExprOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.DropFlowTaskExpr) com.google.protobuf.MessageOrBuilder { /** @@ -5039,18 +5039,18 @@ public interface RemoveFlowTaskExprOrBuilder extends * Remove a flow task. * * - * Protobuf type {@code greptime.v1.RemoveFlowTaskExpr} + * Protobuf type {@code greptime.v1.DropFlowTaskExpr} */ - public static final class RemoveFlowTaskExpr extends + public static final class DropFlowTaskExpr extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.RemoveFlowTaskExpr) - RemoveFlowTaskExprOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.DropFlowTaskExpr) + DropFlowTaskExprOrBuilder { private static final long serialVersionUID = 0L; - // Use RemoveFlowTaskExpr.newBuilder() to construct. - private RemoveFlowTaskExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use DropFlowTaskExpr.newBuilder() to construct. + private DropFlowTaskExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RemoveFlowTaskExpr() { + private DropFlowTaskExpr() { catalogName_ = ""; taskName_ = ""; } @@ -5059,7 +5059,7 @@ private RemoveFlowTaskExpr() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new RemoveFlowTaskExpr(); + return new DropFlowTaskExpr(); } @java.lang.Override @@ -5067,7 +5067,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private RemoveFlowTaskExpr( + private DropFlowTaskExpr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5120,15 +5120,15 @@ private RemoveFlowTaskExpr( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RemoveFlowTaskExpr_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_RemoveFlowTaskExpr_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropFlowTaskExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.RemoveFlowTaskExpr.class, io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder.class); + io.greptime.v1.Ddl.DropFlowTaskExpr.class, io.greptime.v1.Ddl.DropFlowTaskExpr.Builder.class); } public static final int CATALOG_NAME_FIELD_NUMBER = 1; @@ -5252,10 +5252,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.RemoveFlowTaskExpr)) { + if (!(obj instanceof io.greptime.v1.Ddl.DropFlowTaskExpr)) { return super.equals(obj); } - io.greptime.v1.Ddl.RemoveFlowTaskExpr other = (io.greptime.v1.Ddl.RemoveFlowTaskExpr) obj; + io.greptime.v1.Ddl.DropFlowTaskExpr other = (io.greptime.v1.Ddl.DropFlowTaskExpr) obj; if (!getCatalogName() .equals(other.getCatalogName())) return false; @@ -5281,69 +5281,69 @@ public int hashCode() { return hash; } - public static io.greptime.v1.Ddl.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr parseFrom( + public static io.greptime.v1.Ddl.DropFlowTaskExpr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5356,7 +5356,7 @@ public static io.greptime.v1.Ddl.RemoveFlowTaskExpr parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.RemoveFlowTaskExpr prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.DropFlowTaskExpr prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -5376,26 +5376,26 @@ protected Builder newBuilderForType( * Remove a flow task. * * - * Protobuf type {@code greptime.v1.RemoveFlowTaskExpr} + * 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.RemoveFlowTaskExpr) - io.greptime.v1.Ddl.RemoveFlowTaskExprOrBuilder { + // @@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_RemoveFlowTaskExpr_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_RemoveFlowTaskExpr_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropFlowTaskExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.RemoveFlowTaskExpr.class, io.greptime.v1.Ddl.RemoveFlowTaskExpr.Builder.class); + io.greptime.v1.Ddl.DropFlowTaskExpr.class, io.greptime.v1.Ddl.DropFlowTaskExpr.Builder.class); } - // Construct using io.greptime.v1.Ddl.RemoveFlowTaskExpr.newBuilder() + // Construct using io.greptime.v1.Ddl.DropFlowTaskExpr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -5423,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_RemoveFlowTaskExpr_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropFlowTaskExpr_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.RemoveFlowTaskExpr getDefaultInstanceForType() { - return io.greptime.v1.Ddl.RemoveFlowTaskExpr.getDefaultInstance(); + public io.greptime.v1.Ddl.DropFlowTaskExpr getDefaultInstanceForType() { + return io.greptime.v1.Ddl.DropFlowTaskExpr.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.RemoveFlowTaskExpr build() { - io.greptime.v1.Ddl.RemoveFlowTaskExpr result = buildPartial(); + public io.greptime.v1.Ddl.DropFlowTaskExpr build() { + io.greptime.v1.Ddl.DropFlowTaskExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5441,8 +5441,8 @@ public io.greptime.v1.Ddl.RemoveFlowTaskExpr build() { } @java.lang.Override - public io.greptime.v1.Ddl.RemoveFlowTaskExpr buildPartial() { - io.greptime.v1.Ddl.RemoveFlowTaskExpr result = new io.greptime.v1.Ddl.RemoveFlowTaskExpr(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(); @@ -5483,16 +5483,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.RemoveFlowTaskExpr) { - return mergeFrom((io.greptime.v1.Ddl.RemoveFlowTaskExpr)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.RemoveFlowTaskExpr other) { - if (other == io.greptime.v1.Ddl.RemoveFlowTaskExpr.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(); @@ -5516,11 +5516,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.DropFlowTaskExpr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5694,41 +5694,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.RemoveFlowTaskExpr) + // @@protoc_insertion_point(builder_scope:greptime.v1.DropFlowTaskExpr) } - // @@protoc_insertion_point(class_scope:greptime.v1.RemoveFlowTaskExpr) - private static final io.greptime.v1.Ddl.RemoveFlowTaskExpr 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.RemoveFlowTaskExpr(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.DropFlowTaskExpr(); } - public static io.greptime.v1.Ddl.RemoveFlowTaskExpr 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 RemoveFlowTaskExpr parsePartialFrom( + public DropFlowTaskExpr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RemoveFlowTaskExpr(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.RemoveFlowTaskExpr getDefaultInstanceForType() { + public io.greptime.v1.Ddl.DropFlowTaskExpr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -20191,10 +20191,10 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_SchemaScopedTableName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_RemoveFlowTaskExpr_descriptor; + internal_static_greptime_v1_DropFlowTaskExpr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_RemoveFlowTaskExpr_fieldAccessorTable; + internal_static_greptime_v1_DropFlowTaskExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_CreateTableExpr_descriptor; private static final @@ -20285,7 +20285,7 @@ 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\"\225\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" + @@ -20294,71 +20294,71 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { "H\000\0228\n\016truncate_table\030\007 \001(\0132\036.greptime.v1" + ".TruncateTableExprH\000\022;\n\020create_flow_task" + "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" + - "\000\022;\n\020remove_flow_task\030\t \001(\0132\037.greptime.v" + - "1.RemoveFlowTaskExprH\000B\006\n\004expr\"\207\003\n\022Creat" + - "eFlowTaskExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tt" + - "ask_name\030\002 \001(\t\022>\n\022source_table_names\030\003 \003" + - "(\0132\".greptime.v1.SchemaScopedTableName\022;" + - "\n\017sink_table_name\030\004 \001(\0132\".greptime.v1.Sc" + - "hemaScopedTableName\022\034\n\024create_if_not_exi" + - "sts\030\005 \001(\010\022\023\n\013expire_when\030\006 \001(\t\022\017\n\007commen" + - "t\030\007 \001(\t\022\013\n\003sql\030\010 \001(\t\022F\n\014task_options\030\t \003" + - "(\01320.greptime.v1.CreateFlowTaskExpr.Task" + - "OptionsEntry\0322\n\020TaskOptionsEntry\022\013\n\003key\030" + - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\025SchemaScoped" + - "TableName\022\023\n\013schema_name\030\001 \001(\t\022\022\n\ntable_" + - "name\030\002 \001(\t\"=\n\022RemoveFlowTaskExpr\022\024\n\014cata" + - "log_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003\n\017Cr" + - "eateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" + - "chema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\014\n\004" + - "desc\030\004 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.grepti" + - "me.v1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014p" + - "rimary_keys\030\007 \003(\t\022\034\n\024create_if_not_exist" + - "s\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132..greptim" + - "e.v1.CreateTableExpr.TableOptionsEntry\022&" + - "\n\010table_id\030\n \001(\0132\024.greptime.v1.TableId\022\016" + - "\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterExp" + - "r\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.\n\013add_columns\030" + - "\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014drop" + - "_columns\030\005 \001(\0132\030.greptime.v1.DropColumns" + - "H\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1.R" + - "enameTableH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\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&\n\010table_id\030\004 \001(\0132" + - "\024.greptime.v1.TableId\022\026\n\016drop_if_exists\030" + - "\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_" + - "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024creat" + - "e_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132," + - ".greptime.v1.CreateDatabaseExpr.OptionsE" + - "ntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014cat" + - "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\n" + - "table_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gre" + - "ptime.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014" + - "catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022" + - "\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n" + - "\013add_columns\030\001 \003(\0132\026.greptime.v1.AddColu" + - "mn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132" + - "\027.greptime.v1.DropColumn\"%\n\013RenameTable\022" + - "\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\n" + - "column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef" + - "\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddColu" + - "mnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025" + - "\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004n" + - "ame\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime." + - "v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032" + - "\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic_t" + - "ype\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007" + - "comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(" + - "\0132$.greptime.v1.ColumnDataTypeExtension\"" + - "\230\001\n\021AddColumnLocation\022B\n\rlocation_type\030\001" + - " \001(\0162+.greptime.v1.AddColumnLocation.Loc" + - "ationType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014" + - "LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io" + - ".greptime.v1B\003DdlZ5github.com/GreptimeTe" + - "am/greptime-proto/go/greptime/v1b\006proto3" + "\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" + + " \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.greptime.v1." + + "ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014primary" + + "_keys\030\007 \003(\t\022\034\n\024create_if_not_exists\030\010 \001(" + + "\010\022E\n\rtable_options\030\t \003(\0132..greptime.v1.C" + + "reateTableExpr.TableOptionsEntry\022&\n\010tabl" + + "e_id\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006engi" + + "ne\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterExpr\022\024\n\014c" + + "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022" + + "\n\ntable_name\030\003 \001(\t\022.\n\013add_columns\030\004 \001(\0132" + + "\027.greptime.v1.AddColumnsH\000\0220\n\014drop_colum" + + "ns\030\005 \001(\0132\030.greptime.v1.DropColumnsH\000\0220\n\014" + + "rename_table\030\006 \001(\0132\030.greptime.v1.RenameT" + + "ableH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014cata" + + "log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nt" + + "able_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grep" + + "time.v1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010\"" + + "\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_name\030\001" + + " \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_n" + + "ot_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.grept" + + "ime.v1.CreateDatabaseExpr.OptionsEntry\032." + + "\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_n" + + "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_" + + "name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime." + + "v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014catalo" + + "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dro" + + "p_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_c" + + "olumns\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n\013" + + "DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.grep" + + "time.v1.DropColumn\"%\n\013RenameTable\022\026\n\016new" + + "_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn" + + "_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010lo" + + "cation\030\003 \001(\0132\036.greptime.v1.AddColumnLoca" + + "tion\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007Tabl" + + "eId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 " + + "\001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1.Col" + + "umnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022defa" + + "ult_constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 " + + "\001(\0162\031.greptime.v1.SemanticType\022\017\n\007commen" + + "t\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.gr" + + "eptime.v1.ColumnDataTypeExtension\"\230\001\n\021Ad" + + "dColumnLocation\022B\n\rlocation_type\030\001 \001(\0162+" + + ".greptime.v1.AddColumnLocation.LocationT" + + "ype\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locati" + + "onType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.grept" + + "ime.v1B\003DdlZ5github.com/GreptimeTeam/gre" + + "ptime-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -20370,7 +20370,7 @@ 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", "CreateFlowTask", "RemoveFlowTask", "Expr", }); + 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_CreateFlowTaskExpr_fieldAccessorTable = new @@ -20389,11 +20389,11 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SchemaScopedTableName_descriptor, new java.lang.String[] { "SchemaName", "TableName", }); - internal_static_greptime_v1_RemoveFlowTaskExpr_descriptor = + internal_static_greptime_v1_DropFlowTaskExpr_descriptor = getDescriptor().getMessageTypes().get(3); - internal_static_greptime_v1_RemoveFlowTaskExpr_fieldAccessorTable = new + internal_static_greptime_v1_DropFlowTaskExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_RemoveFlowTaskExpr_descriptor, + internal_static_greptime_v1_DropFlowTaskExpr_descriptor, new java.lang.String[] { "CatalogName", "TaskName", }); internal_static_greptime_v1_CreateTableExpr_descriptor = getDescriptor().getMessageTypes().get(4); diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index 966a5ad1..c391266d 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -34,7 +34,7 @@ message DdlRequest { DropTableExpr drop_table = 4; TruncateTableExpr truncate_table = 7; CreateFlowTaskExpr create_flow_task = 8; - RemoveFlowTaskExpr remove_flow_task = 9; + DropFlowTaskExpr drop_flow_task = 9; } } @@ -58,7 +58,7 @@ message SchemaScopedTableName { } // Remove a flow task. -message RemoveFlowTaskExpr { +message DropFlowTaskExpr { string catalog_name = 1; string task_name = 2; } 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; } }