From a11db14b8502f55ca5348917fd18e6fcf140f55e Mon Sep 17 00:00:00 2001 From: dennis zhuang Date: Tue, 14 May 2024 16:54:19 +0800 Subject: [PATCH] feat: adds view expressions (#165) * feat: adds view expressions * feat: adds meta tasks for view * feat: adds view_info to CreateViewTask * chore: rename create_or_replace to or_replace --- c++/greptime/v1/ddl.pb.cc | 1213 +++++++- c++/greptime/v1/ddl.pb.h | 1185 ++++++- c++/greptime/v1/meta/ddl.pb.cc | 696 ++++- c++/greptime/v1/meta/ddl.pb.h | 766 ++++- go/greptime/v1/ddl.pb.go | 978 +++--- go/greptime/v1/meta/ddl.pb.go | 469 ++- java/src/main/java/greptime/v1/meta/Ddl.java | 1889 +++++++++++- java/src/main/java/io/greptime/v1/Ddl.java | 2917 +++++++++++++++++- proto/greptime/v1/ddl.proto | 21 + proto/greptime/v1/meta/ddl.proto | 13 + 10 files changed, 9355 insertions(+), 792 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 42ca304..372bff1 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -85,6 +85,41 @@ struct DropFlowExprDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropFlowExprDefaultTypeInternal _DropFlowExpr_default_instance_; +PROTOBUF_CONSTEXPR CreateViewExpr::CreateViewExpr( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.view_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.logical_plan_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.create_if_not_exists_)*/false + , /*decltype(_impl_.or_replace_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CreateViewExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateViewExprDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateViewExprDefaultTypeInternal() {} + union { + CreateViewExpr _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateViewExprDefaultTypeInternal _CreateViewExpr_default_instance_; +PROTOBUF_CONSTEXPR DropViewExpr::DropViewExpr( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.view_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.view_id_)*/nullptr + , /*decltype(_impl_.drop_if_exists_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DropViewExprDefaultTypeInternal { + PROTOBUF_CONSTEXPR DropViewExprDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DropViewExprDefaultTypeInternal() {} + union { + DropViewExpr _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropViewExprDefaultTypeInternal _DropViewExpr_default_instance_; PROTOBUF_CONSTEXPR CreateTableExpr_TableOptionsEntry_DoNotUse::CreateTableExpr_TableOptionsEntry_DoNotUse( ::_pbi::ConstantInitialized) {} struct CreateTableExpr_TableOptionsEntry_DoNotUseDefaultTypeInternal { @@ -366,7 +401,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[23]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[25]; 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; @@ -384,6 +419,8 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::DdlRequest, _impl_.expr_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr_FlowOptionsEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr_FlowOptionsEntry_DoNotUse, _internal_metadata_), @@ -421,6 +458,29 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::DropFlowExpr, _impl_.flow_name_), PROTOBUF_FIELD_OFFSET(::greptime::v1::DropFlowExpr, _impl_.flow_id_), PROTOBUF_FIELD_OFFSET(::greptime::v1::DropFlowExpr, _impl_.drop_if_exists_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateViewExpr, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateViewExpr, _impl_.catalog_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateViewExpr, _impl_.schema_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateViewExpr, _impl_.view_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateViewExpr, _impl_.logical_plan_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateViewExpr, _impl_.create_if_not_exists_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateViewExpr, _impl_.or_replace_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::DropViewExpr, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::DropViewExpr, _impl_.catalog_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::DropViewExpr, _impl_.schema_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::DropViewExpr, _impl_.view_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::DropViewExpr, _impl_.view_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::DropViewExpr, _impl_.drop_if_exists_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -602,28 +662,30 @@ 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::CreateFlowExpr_FlowOptionsEntry_DoNotUse)}, - { 24, -1, -1, sizeof(::greptime::v1::CreateFlowExpr)}, - { 40, -1, -1, sizeof(::greptime::v1::DropFlowExpr)}, - { 50, 58, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, - { 60, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, - { 77, -1, -1, sizeof(::greptime::v1::AlterExpr)}, - { 91, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, - { 102, 110, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, - { 112, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, - { 122, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, - { 132, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, - { 141, -1, -1, sizeof(::greptime::v1::AddColumns)}, - { 148, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 155, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)}, - { 162, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 169, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 177, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, - { 186, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 193, -1, -1, sizeof(::greptime::v1::TableId)}, - { 200, -1, -1, sizeof(::greptime::v1::FlowId)}, - { 207, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 220, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 16, 24, -1, sizeof(::greptime::v1::CreateFlowExpr_FlowOptionsEntry_DoNotUse)}, + { 26, -1, -1, sizeof(::greptime::v1::CreateFlowExpr)}, + { 42, -1, -1, sizeof(::greptime::v1::DropFlowExpr)}, + { 52, -1, -1, sizeof(::greptime::v1::CreateViewExpr)}, + { 64, -1, -1, sizeof(::greptime::v1::DropViewExpr)}, + { 75, 83, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, + { 85, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, + { 102, -1, -1, sizeof(::greptime::v1::AlterExpr)}, + { 116, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, + { 127, 135, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, + { 137, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, + { 147, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, + { 157, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, + { 166, -1, -1, sizeof(::greptime::v1::AddColumns)}, + { 173, -1, -1, sizeof(::greptime::v1::DropColumns)}, + { 180, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)}, + { 187, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 194, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 202, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, + { 211, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 218, -1, -1, sizeof(::greptime::v1::TableId)}, + { 225, -1, -1, sizeof(::greptime::v1::FlowId)}, + { 232, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 245, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -631,6 +693,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_CreateFlowExpr_FlowOptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateFlowExpr_default_instance_._instance, &::greptime::v1::_DropFlowExpr_default_instance_._instance, + &::greptime::v1::_CreateViewExpr_default_instance_._instance, + &::greptime::v1::_DropViewExpr_default_instance_._instance, &::greptime::v1::_CreateTableExpr_TableOptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateTableExpr_default_instance_._instance, &::greptime::v1::_AlterExpr_default_instance_._instance, @@ -654,7 +718,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\"\377\002\n\nDdlRequest\022:\n" + "eptime/v1/common.proto\"\343\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" @@ -664,87 +728,96 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT ".TruncateTableExprH\000\0222\n\013create_flow\030\010 \001(" "\0132\033.greptime.v1.CreateFlowExprH\000\022.\n\tdrop" "_flow\030\t \001(\0132\031.greptime.v1.DropFlowExprH\000" - "B\006\n\004expr\"\373\002\n\016CreateFlowExpr\022\024\n\014catalog_n" - "ame\030\001 \001(\t\022\021\n\tflow_name\030\002 \001(\t\0222\n\022source_t" - "able_names\030\003 \003(\0132\026.greptime.v1.TableName" - "\022/\n\017sink_table_name\030\004 \001(\0132\026.greptime.v1." - "TableName\022\022\n\nor_replace\030\005 \001(\010\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\022B\n\014flow_o" - "ptions\030\n \003(\0132,.greptime.v1.CreateFlowExp" - "r.FlowOptionsEntry\0322\n\020FlowOptionsEntry\022\013" - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\014DropFl" - "owExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tflow_nam" - "e\030\002 \001(\t\022$\n\007flow_id\030\003 \001(\0132\023.greptime.v1.F" - "lowId\022\026\n\016drop_if_exists\030\005 \001(\010\"\207\003\n\017Create" - "TableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schem" - "a_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.v" - "1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014prima" - "ry_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" - ".CreateTableExpr.TableOptionsEntry\022&\n\010ta" - "ble_id\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006en" - "gine\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\"\245\002\n\tAlterExpr\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_col" - "umns\030\005 \001(\0132\030.greptime.v1.DropColumnsH\000\0220" - "\n\014rename_table\030\006 \001(\0132\030.greptime.v1.Renam" - "eTableH\000\022=\n\023change_column_types\030\007 \001(\0132\036." - "greptime.v1.ChangeColumnTypesH\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\022CreateDatab" - "aseExpr\022\024\n\014catalog_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.CreateDa" - "tabaseExpr.OptionsEntry\032.\n\014OptionsEntry\022" - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021Trunc" - "ateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sc" + "\0222\n\013create_view\030\n \001(\0132\033.greptime.v1.Crea" + "teViewExprH\000\022.\n\tdrop_view\030\013 \001(\0132\031.grepti" + "me.v1.DropViewExprH\000B\006\n\004expr\"\373\002\n\016CreateF" + "lowExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tflow_na" + "me\030\002 \001(\t\0222\n\022source_table_names\030\003 \003(\0132\026.g" + "reptime.v1.TableName\022/\n\017sink_table_name\030" + "\004 \001(\0132\026.greptime.v1.TableName\022\022\n\nor_repl" + "ace\030\005 \001(\010\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\022B\n\014flow_options\030\n \003(\0132,.grept" + "ime.v1.CreateFlowExpr.FlowOptionsEntry\0322" + "\n\020FlowOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + "\030\002 \001(\t:\0028\001\"u\n\014DropFlowExpr\022\024\n\014catalog_na" + "me\030\001 \001(\t\022\021\n\tflow_name\030\002 \001(\t\022$\n\007flow_id\030\003" + " \001(\0132\023.greptime.v1.FlowId\022\026\n\016drop_if_exi" + "sts\030\005 \001(\010\"\226\001\n\016CreateViewExpr\022\024\n\014catalog_" + "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\021\n\tview_" + "name\030\003 \001(\t\022\024\n\014logical_plan\030\004 \001(\014\022\034\n\024crea" + "te_if_not_exists\030\005 \001(\010\022\022\n\nor_replace\030\006 \001" + "(\010\"\213\001\n\014DropViewExpr\022\024\n\014catalog_name\030\001 \001(" + "\t\022\023\n\013schema_name\030\002 \001(\t\022\021\n\tview_name\030\003 \001(" + "\t\022%\n\007view_id\030\004 \001(\0132\024.greptime.v1.TableId" + "\022\026\n\016drop_if_exists\030\005 \001(\010\"\207\003\n\017CreateTable" + "Expr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_nam" + "e\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.Col" + "umnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014primary_ke" + "ys\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.Crea" + "teTableExpr.TableOptionsEntry\022&\n\010table_i" + "d\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\"\245\002\n\tAlterExpr\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\013add_columns\030\004 \001(\0132\027.g" + "reptime.v1.AddColumnsH\000\0220\n\014drop_columns\030" + "\005 \001(\0132\030.greptime.v1.DropColumnsH\000\0220\n\014ren" + "ame_table\030\006 \001(\0132\030.greptime.v1.RenameTabl" + "eH\000\022=\n\023change_column_types\030\007 \001(\0132\036.grept" + "ime.v1.ChangeColumnTypesH\000B\006\n\004kind\"\216\001\n\rD" + "ropTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sc" "hema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010t" - "able_id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020D" - "ropDatabaseExpr\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.AddColumn\"<\n\013DropColumns\022-\n\014" - "drop_columns\030\001 \003(\0132\027.greptime.v1.DropCol" - "umn\"O\n\021ChangeColumnTypes\022:\n\023change_colum" - "n_types\030\001 \003(\0132\035.greptime.v1.ChangeColumn" - "Type\"%\n\013RenameTable\022\026\n\016new_table_name\030\001 " - "\001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.g" - "reptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036" - ".greptime.v1.AddColumnLocation\"\236\001\n\020Chang" - "eColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013targ" - "et_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTy" - "pe\022C\n\025target_type_extension\030\003 \001(\0132$.grep" - "time.v1.ColumnDataTypeExtension\"\032\n\nDropC" - "olumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001" - "(\r\"\024\n\006FlowId\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.grepti" - "me.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(" - "\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemanti" - "c_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.ColumnDataTypeExtensi" - "on\"\230\001\n\021AddColumnLocation\022B\n\rlocation_typ" - "e\030\001 \001(\0162+.greptime.v1.AddColumnLocation." - "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/Greptim" - "eTeam/greptime-proto/go/greptime/v1b\006pro" - "to3" + "able_id\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016d" + "rop_if_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseEx" + "pr\022\024\n\014catalog_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\007o" + "ptions\030\004 \003(\0132,.greptime.v1.CreateDatabas" + "eExpr.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTa" + "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&\n\010table_" + "id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020DropDa" + "tabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sche" + "ma_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.grept" + "ime.v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_" + "columns\030\001 \003(\0132\027.greptime.v1.DropColumn\"O" + "\n\021ChangeColumnTypes\022:\n\023change_column_typ" + "es\030\001 \003(\0132\035.greptime.v1.ChangeColumnType\"" + "%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t\"i" + "\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.grepti" + "me.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.grep" + "time.v1.AddColumnLocation\"\236\001\n\020ChangeColu" + "mnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_ty" + "pe\030\002 \001(\0162\033.greptime.v1.ColumnDataType\022C\n" + "\025target_type_extension\030\003 \001(\0132$.greptime." + "v1.ColumnDataTypeExtension\"\032\n\nDropColumn" + "\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n" + "\006FlowId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004nam" + "e\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\022" + "default_constraint\030\004 \001(\014\0220\n\rsemantic_typ" + "e\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007co" + "mment\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.Locat" + "ionType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Lo" + "cationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.g" + "reptime.v1B\003DdlZ5github.com/GreptimeTeam" + "/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, 3283, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 3678, 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, 23, + &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 25, 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, @@ -790,6 +863,8 @@ class DdlRequest::_Internal { static const ::greptime::v1::TruncateTableExpr& truncate_table(const DdlRequest* msg); static const ::greptime::v1::CreateFlowExpr& create_flow(const DdlRequest* msg); static const ::greptime::v1::DropFlowExpr& drop_flow(const DdlRequest* msg); + static const ::greptime::v1::CreateViewExpr& create_view(const DdlRequest* msg); + static const ::greptime::v1::DropViewExpr& drop_view(const DdlRequest* msg); }; const ::greptime::v1::CreateDatabaseExpr& @@ -820,6 +895,14 @@ const ::greptime::v1::DropFlowExpr& DdlRequest::_Internal::drop_flow(const DdlRequest* msg) { return *msg->_impl_.expr_.drop_flow_; } +const ::greptime::v1::CreateViewExpr& +DdlRequest::_Internal::create_view(const DdlRequest* msg) { + return *msg->_impl_.expr_.create_view_; +} +const ::greptime::v1::DropViewExpr& +DdlRequest::_Internal::drop_view(const DdlRequest* msg) { + return *msg->_impl_.expr_.drop_view_; +} void DdlRequest::set_allocated_create_database(::greptime::v1::CreateDatabaseExpr* create_database) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_expr(); @@ -925,6 +1008,36 @@ void DdlRequest::set_allocated_drop_flow(::greptime::v1::DropFlowExpr* drop_flow } // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.drop_flow) } +void DdlRequest::set_allocated_create_view(::greptime::v1::CreateViewExpr* create_view) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr(); + if (create_view) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(create_view); + if (message_arena != submessage_arena) { + create_view = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, create_view, submessage_arena); + } + set_has_create_view(); + _impl_.expr_.create_view_ = create_view; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.create_view) +} +void DdlRequest::set_allocated_drop_view(::greptime::v1::DropViewExpr* drop_view) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_expr(); + if (drop_view) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(drop_view); + if (message_arena != submessage_arena) { + drop_view = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, drop_view, submessage_arena); + } + set_has_drop_view(); + _impl_.expr_.drop_view_ = drop_view; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.drop_view) +} DdlRequest::DdlRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -977,6 +1090,16 @@ DdlRequest::DdlRequest(const DdlRequest& from) from._internal_drop_flow()); break; } + case kCreateView: { + _this->_internal_mutable_create_view()->::greptime::v1::CreateViewExpr::MergeFrom( + from._internal_create_view()); + break; + } + case kDropView: { + _this->_internal_mutable_drop_view()->::greptime::v1::DropViewExpr::MergeFrom( + from._internal_drop_view()); + break; + } case EXPR_NOT_SET: { break; } @@ -1061,6 +1184,18 @@ void DdlRequest::clear_expr() { } break; } + case kCreateView: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_.create_view_; + } + break; + } + case kDropView: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_.drop_view_; + } + break; + } case EXPR_NOT_SET: { break; } @@ -1141,6 +1276,22 @@ const char* DdlRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct } else goto handle_unusual; continue; + // .greptime.v1.CreateViewExpr create_view = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_create_view(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.DropViewExpr drop_view = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_drop_view(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1219,6 +1370,20 @@ uint8_t* DdlRequest::_InternalSerialize( _Internal::drop_flow(this).GetCachedSize(), target, stream); } + // .greptime.v1.CreateViewExpr create_view = 10; + if (_internal_has_create_view()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(10, _Internal::create_view(this), + _Internal::create_view(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.DropViewExpr drop_view = 11; + if (_internal_has_drop_view()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::drop_view(this), + _Internal::drop_view(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); @@ -1285,6 +1450,20 @@ size_t DdlRequest::ByteSizeLong() const { *_impl_.expr_.drop_flow_); break; } + // .greptime.v1.CreateViewExpr create_view = 10; + case kCreateView: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_.create_view_); + break; + } + // .greptime.v1.DropViewExpr drop_view = 11; + case kDropView: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.expr_.drop_view_); + break; + } case EXPR_NOT_SET: { break; } @@ -1343,6 +1522,16 @@ void DdlRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PRO from._internal_drop_flow()); break; } + case kCreateView: { + _this->_internal_mutable_create_view()->::greptime::v1::CreateViewExpr::MergeFrom( + from._internal_create_view()); + break; + } + case kDropView: { + _this->_internal_mutable_drop_view()->::greptime::v1::DropViewExpr::MergeFrom( + from._internal_drop_view()); + break; + } case EXPR_NOT_SET: { break; } @@ -2331,6 +2520,790 @@ void DropFlowExpr::InternalSwap(DropFlowExpr* other) { // =================================================================== +class CreateViewExpr::_Internal { + public: +}; + +CreateViewExpr::CreateViewExpr(::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.CreateViewExpr) +} +CreateViewExpr::CreateViewExpr(const CreateViewExpr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CreateViewExpr* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.view_name_){} + , decltype(_impl_.logical_plan_){} + , decltype(_impl_.create_if_not_exists_){} + , decltype(_impl_.or_replace_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_catalog_name().empty()) { + _this->_impl_.catalog_name_.Set(from._internal_catalog_name(), + _this->GetArenaForAllocation()); + } + _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_.view_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.view_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_view_name().empty()) { + _this->_impl_.view_name_.Set(from._internal_view_name(), + _this->GetArenaForAllocation()); + } + _impl_.logical_plan_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.logical_plan_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logical_plan().empty()) { + _this->_impl_.logical_plan_.Set(from._internal_logical_plan(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.create_if_not_exists_, &from._impl_.create_if_not_exists_, + static_cast(reinterpret_cast(&_impl_.or_replace_) - + reinterpret_cast(&_impl_.create_if_not_exists_)) + sizeof(_impl_.or_replace_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.CreateViewExpr) +} + +inline void CreateViewExpr::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.view_name_){} + , decltype(_impl_.logical_plan_){} + , decltype(_impl_.create_if_not_exists_){false} + , decltype(_impl_.or_replace_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.view_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.view_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.logical_plan_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.logical_plan_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CreateViewExpr::~CreateViewExpr() { + // @@protoc_insertion_point(destructor:greptime.v1.CreateViewExpr) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CreateViewExpr::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.catalog_name_.Destroy(); + _impl_.schema_name_.Destroy(); + _impl_.view_name_.Destroy(); + _impl_.logical_plan_.Destroy(); +} + +void CreateViewExpr::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CreateViewExpr::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.CreateViewExpr) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.catalog_name_.ClearToEmpty(); + _impl_.schema_name_.ClearToEmpty(); + _impl_.view_name_.ClearToEmpty(); + _impl_.logical_plan_.ClearToEmpty(); + ::memset(&_impl_.create_if_not_exists_, 0, static_cast( + reinterpret_cast(&_impl_.or_replace_) - + reinterpret_cast(&_impl_.create_if_not_exists_)) + sizeof(_impl_.or_replace_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateViewExpr::_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 catalog_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_catalog_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateViewExpr.catalog_name")); + } else + goto handle_unusual; + continue; + // string schema_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_schema_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateViewExpr.schema_name")); + } else + goto handle_unusual; + continue; + // string view_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_view_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateViewExpr.view_name")); + } else + goto handle_unusual; + continue; + // bytes logical_plan = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_logical_plan(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool create_if_not_exists = 5; + case 5: + 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; + // bool or_replace = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.or_replace_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* CreateViewExpr::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.CreateViewExpr) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string catalog_name = 1; + if (!this->_internal_catalog_name().empty()) { + ::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.CreateViewExpr.catalog_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_catalog_name(), target); + } + + // string schema_name = 2; + 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.CreateViewExpr.schema_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_schema_name(), target); + } + + // string view_name = 3; + if (!this->_internal_view_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_view_name().data(), static_cast(this->_internal_view_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.CreateViewExpr.view_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_view_name(), target); + } + + // bytes logical_plan = 4; + if (!this->_internal_logical_plan().empty()) { + target = stream->WriteBytesMaybeAliased( + 4, this->_internal_logical_plan(), target); + } + + // bool create_if_not_exists = 5; + if (this->_internal_create_if_not_exists() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_create_if_not_exists(), target); + } + + // bool or_replace = 6; + if (this->_internal_or_replace() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_or_replace(), 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.CreateViewExpr) + return target; +} + +size_t CreateViewExpr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.CreateViewExpr) + 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 catalog_name = 1; + if (!this->_internal_catalog_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_catalog_name()); + } + + // string schema_name = 2; + if (!this->_internal_schema_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_schema_name()); + } + + // string view_name = 3; + if (!this->_internal_view_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_view_name()); + } + + // bytes logical_plan = 4; + if (!this->_internal_logical_plan().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_logical_plan()); + } + + // bool create_if_not_exists = 5; + if (this->_internal_create_if_not_exists() != 0) { + total_size += 1 + 1; + } + + // bool or_replace = 6; + if (this->_internal_or_replace() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateViewExpr::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CreateViewExpr::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateViewExpr::GetClassData() const { return &_class_data_; } + + +void CreateViewExpr::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.CreateViewExpr) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_catalog_name().empty()) { + _this->_internal_set_catalog_name(from._internal_catalog_name()); + } + if (!from._internal_schema_name().empty()) { + _this->_internal_set_schema_name(from._internal_schema_name()); + } + if (!from._internal_view_name().empty()) { + _this->_internal_set_view_name(from._internal_view_name()); + } + if (!from._internal_logical_plan().empty()) { + _this->_internal_set_logical_plan(from._internal_logical_plan()); + } + if (from._internal_create_if_not_exists() != 0) { + _this->_internal_set_create_if_not_exists(from._internal_create_if_not_exists()); + } + if (from._internal_or_replace() != 0) { + _this->_internal_set_or_replace(from._internal_or_replace()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateViewExpr::CopyFrom(const CreateViewExpr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.CreateViewExpr) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateViewExpr::IsInitialized() const { + return true; +} + +void CreateViewExpr::InternalSwap(CreateViewExpr* 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_.catalog_name_, lhs_arena, + &other->_impl_.catalog_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.schema_name_, lhs_arena, + &other->_impl_.schema_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.view_name_, lhs_arena, + &other->_impl_.view_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.logical_plan_, lhs_arena, + &other->_impl_.logical_plan_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CreateViewExpr, _impl_.or_replace_) + + sizeof(CreateViewExpr::_impl_.or_replace_) + - PROTOBUF_FIELD_OFFSET(CreateViewExpr, _impl_.create_if_not_exists_)>( + reinterpret_cast(&_impl_.create_if_not_exists_), + reinterpret_cast(&other->_impl_.create_if_not_exists_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateViewExpr::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]); +} + +// =================================================================== + +class DropViewExpr::_Internal { + public: + static const ::greptime::v1::TableId& view_id(const DropViewExpr* msg); +}; + +const ::greptime::v1::TableId& +DropViewExpr::_Internal::view_id(const DropViewExpr* msg) { + return *msg->_impl_.view_id_; +} +DropViewExpr::DropViewExpr(::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.DropViewExpr) +} +DropViewExpr::DropViewExpr(const DropViewExpr& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DropViewExpr* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.view_name_){} + , decltype(_impl_.view_id_){nullptr} + , decltype(_impl_.drop_if_exists_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_catalog_name().empty()) { + _this->_impl_.catalog_name_.Set(from._internal_catalog_name(), + _this->GetArenaForAllocation()); + } + _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_.view_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.view_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_view_name().empty()) { + _this->_impl_.view_name_.Set(from._internal_view_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_view_id()) { + _this->_impl_.view_id_ = new ::greptime::v1::TableId(*from._impl_.view_id_); + } + _this->_impl_.drop_if_exists_ = from._impl_.drop_if_exists_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.DropViewExpr) +} + +inline void DropViewExpr::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.view_name_){} + , decltype(_impl_.view_id_){nullptr} + , decltype(_impl_.drop_if_exists_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.view_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.view_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DropViewExpr::~DropViewExpr() { + // @@protoc_insertion_point(destructor:greptime.v1.DropViewExpr) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DropViewExpr::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.catalog_name_.Destroy(); + _impl_.schema_name_.Destroy(); + _impl_.view_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.view_id_; +} + +void DropViewExpr::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DropViewExpr::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.DropViewExpr) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.catalog_name_.ClearToEmpty(); + _impl_.schema_name_.ClearToEmpty(); + _impl_.view_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.view_id_ != nullptr) { + delete _impl_.view_id_; + } + _impl_.view_id_ = nullptr; + _impl_.drop_if_exists_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DropViewExpr::_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 catalog_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_catalog_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropViewExpr.catalog_name")); + } else + goto handle_unusual; + continue; + // string schema_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_schema_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropViewExpr.schema_name")); + } else + goto handle_unusual; + continue; + // string view_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_view_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropViewExpr.view_name")); + } else + goto handle_unusual; + continue; + // .greptime.v1.TableId view_id = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_view_id(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool drop_if_exists = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.drop_if_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* DropViewExpr::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DropViewExpr) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string catalog_name = 1; + if (!this->_internal_catalog_name().empty()) { + ::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.DropViewExpr.catalog_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_catalog_name(), target); + } + + // string schema_name = 2; + 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.DropViewExpr.schema_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_schema_name(), target); + } + + // string view_name = 3; + if (!this->_internal_view_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_view_name().data(), static_cast(this->_internal_view_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.DropViewExpr.view_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_view_name(), target); + } + + // .greptime.v1.TableId view_id = 4; + if (this->_internal_has_view_id()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::view_id(this), + _Internal::view_id(this).GetCachedSize(), target, stream); + } + + // bool drop_if_exists = 5; + if (this->_internal_drop_if_exists() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_drop_if_exists(), 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.DropViewExpr) + return target; +} + +size_t DropViewExpr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DropViewExpr) + 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 catalog_name = 1; + if (!this->_internal_catalog_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_catalog_name()); + } + + // string schema_name = 2; + if (!this->_internal_schema_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_schema_name()); + } + + // string view_name = 3; + if (!this->_internal_view_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_view_name()); + } + + // .greptime.v1.TableId view_id = 4; + if (this->_internal_has_view_id()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.view_id_); + } + + // bool drop_if_exists = 5; + if (this->_internal_drop_if_exists() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropViewExpr::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DropViewExpr::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropViewExpr::GetClassData() const { return &_class_data_; } + + +void DropViewExpr::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.DropViewExpr) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_catalog_name().empty()) { + _this->_internal_set_catalog_name(from._internal_catalog_name()); + } + if (!from._internal_schema_name().empty()) { + _this->_internal_set_schema_name(from._internal_schema_name()); + } + if (!from._internal_view_name().empty()) { + _this->_internal_set_view_name(from._internal_view_name()); + } + if (from._internal_has_view_id()) { + _this->_internal_mutable_view_id()->::greptime::v1::TableId::MergeFrom( + from._internal_view_id()); + } + if (from._internal_drop_if_exists() != 0) { + _this->_internal_set_drop_if_exists(from._internal_drop_if_exists()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DropViewExpr::CopyFrom(const DropViewExpr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DropViewExpr) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DropViewExpr::IsInitialized() const { + return true; +} + +void DropViewExpr::InternalSwap(DropViewExpr* 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_.catalog_name_, lhs_arena, + &other->_impl_.catalog_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.schema_name_, lhs_arena, + &other->_impl_.schema_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.view_name_, lhs_arena, + &other->_impl_.view_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(DropViewExpr, _impl_.drop_if_exists_) + + sizeof(DropViewExpr::_impl_.drop_if_exists_) + - PROTOBUF_FIELD_OFFSET(DropViewExpr, _impl_.view_id_)>( + reinterpret_cast(&_impl_.view_id_), + reinterpret_cast(&other->_impl_.view_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DropViewExpr::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]); +} + +// =================================================================== + CreateTableExpr_TableOptionsEntry_DoNotUse::CreateTableExpr_TableOptionsEntry_DoNotUse() {} CreateTableExpr_TableOptionsEntry_DoNotUse::CreateTableExpr_TableOptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} @@ -2340,7 +3313,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[6]); } // =================================================================== @@ -3007,7 +3980,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[7]); } // =================================================================== @@ -3580,7 +4553,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[8]); } // =================================================================== @@ -3956,7 +4929,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[9]); } // =================================================================== @@ -3970,7 +4943,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[10]); } // =================================================================== @@ -4318,7 +5291,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[11]); } // =================================================================== @@ -4663,7 +5636,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[12]); } // =================================================================== @@ -4943,7 +5916,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[13]); } // =================================================================== @@ -5128,7 +6101,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[14]); } // =================================================================== @@ -5313,7 +6286,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[15]); } // =================================================================== @@ -5498,7 +6471,7 @@ void ChangeColumnTypes::InternalSwap(ChangeColumnTypes* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnTypes::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[16]); } // =================================================================== @@ -5701,7 +6674,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[15]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); } // =================================================================== @@ -5940,7 +6913,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[16]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); } // =================================================================== @@ -6225,7 +7198,7 @@ void ChangeColumnType::InternalSwap(ChangeColumnType* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnType::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[19]); } // =================================================================== @@ -6428,7 +7401,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[18]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[20]); } // =================================================================== @@ -6606,7 +7579,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[19]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[21]); } // =================================================================== @@ -6784,7 +7757,7 @@ void FlowId::InternalSwap(FlowId* other) { ::PROTOBUF_NAMESPACE_ID::Metadata FlowId::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[20]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[22]); } // =================================================================== @@ -7219,7 +8192,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[21]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[23]); } // =================================================================== @@ -7452,7 +8425,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[22]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[24]); } // @@protoc_insertion_point(namespace_scope) @@ -7475,6 +8448,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::DropFlowExpr* Arena::CreateMaybeMessage< ::greptime::v1::DropFlowExpr >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::DropFlowExpr >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::CreateViewExpr* +Arena::CreateMaybeMessage< ::greptime::v1::CreateViewExpr >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::CreateViewExpr >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::DropViewExpr* +Arena::CreateMaybeMessage< ::greptime::v1::DropViewExpr >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::DropViewExpr >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse* Arena::CreateMaybeMessage< ::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse >(arena); diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index ea519e6..956f3dc 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -90,6 +90,9 @@ extern CreateTableExprDefaultTypeInternal _CreateTableExpr_default_instance_; class CreateTableExpr_TableOptionsEntry_DoNotUse; struct CreateTableExpr_TableOptionsEntry_DoNotUseDefaultTypeInternal; extern CreateTableExpr_TableOptionsEntry_DoNotUseDefaultTypeInternal _CreateTableExpr_TableOptionsEntry_DoNotUse_default_instance_; +class CreateViewExpr; +struct CreateViewExprDefaultTypeInternal; +extern CreateViewExprDefaultTypeInternal _CreateViewExpr_default_instance_; class DdlRequest; struct DdlRequestDefaultTypeInternal; extern DdlRequestDefaultTypeInternal _DdlRequest_default_instance_; @@ -108,6 +111,9 @@ extern DropFlowExprDefaultTypeInternal _DropFlowExpr_default_instance_; class DropTableExpr; struct DropTableExprDefaultTypeInternal; extern DropTableExprDefaultTypeInternal _DropTableExpr_default_instance_; +class DropViewExpr; +struct DropViewExprDefaultTypeInternal; +extern DropViewExprDefaultTypeInternal _DropViewExpr_default_instance_; class FlowId; struct FlowIdDefaultTypeInternal; extern FlowIdDefaultTypeInternal _FlowId_default_instance_; @@ -136,12 +142,14 @@ template<> ::greptime::v1::CreateFlowExpr* Arena::CreateMaybeMessage<::greptime: template<> ::greptime::v1::CreateFlowExpr_FlowOptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::CreateFlowExpr_FlowOptionsEntry_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::CreateViewExpr* Arena::CreateMaybeMessage<::greptime::v1::CreateViewExpr>(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::DropFlowExpr* Arena::CreateMaybeMessage<::greptime::v1::DropFlowExpr>(Arena*); template<> ::greptime::v1::DropTableExpr* Arena::CreateMaybeMessage<::greptime::v1::DropTableExpr>(Arena*); +template<> ::greptime::v1::DropViewExpr* Arena::CreateMaybeMessage<::greptime::v1::DropViewExpr>(Arena*); template<> ::greptime::v1::FlowId* Arena::CreateMaybeMessage<::greptime::v1::FlowId>(Arena*); template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*); template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*); @@ -228,6 +236,8 @@ class DdlRequest final : kTruncateTable = 7, kCreateFlow = 8, kDropFlow = 9, + kCreateView = 10, + kDropView = 11, EXPR_NOT_SET = 0, }; @@ -316,6 +326,8 @@ class DdlRequest final : kTruncateTableFieldNumber = 7, kCreateFlowFieldNumber = 8, kDropFlowFieldNumber = 9, + kCreateViewFieldNumber = 10, + kDropViewFieldNumber = 11, }; // .greptime.v1.CreateDatabaseExpr create_database = 1; bool has_create_database() const; @@ -443,6 +455,42 @@ class DdlRequest final : ::greptime::v1::DropFlowExpr* drop_flow); ::greptime::v1::DropFlowExpr* unsafe_arena_release_drop_flow(); + // .greptime.v1.CreateViewExpr create_view = 10; + bool has_create_view() const; + private: + bool _internal_has_create_view() const; + public: + void clear_create_view(); + const ::greptime::v1::CreateViewExpr& create_view() const; + PROTOBUF_NODISCARD ::greptime::v1::CreateViewExpr* release_create_view(); + ::greptime::v1::CreateViewExpr* mutable_create_view(); + void set_allocated_create_view(::greptime::v1::CreateViewExpr* create_view); + private: + const ::greptime::v1::CreateViewExpr& _internal_create_view() const; + ::greptime::v1::CreateViewExpr* _internal_mutable_create_view(); + public: + void unsafe_arena_set_allocated_create_view( + ::greptime::v1::CreateViewExpr* create_view); + ::greptime::v1::CreateViewExpr* unsafe_arena_release_create_view(); + + // .greptime.v1.DropViewExpr drop_view = 11; + bool has_drop_view() const; + private: + bool _internal_has_drop_view() const; + public: + void clear_drop_view(); + const ::greptime::v1::DropViewExpr& drop_view() const; + PROTOBUF_NODISCARD ::greptime::v1::DropViewExpr* release_drop_view(); + ::greptime::v1::DropViewExpr* mutable_drop_view(); + void set_allocated_drop_view(::greptime::v1::DropViewExpr* drop_view); + private: + const ::greptime::v1::DropViewExpr& _internal_drop_view() const; + ::greptime::v1::DropViewExpr* _internal_mutable_drop_view(); + public: + void unsafe_arena_set_allocated_drop_view( + ::greptime::v1::DropViewExpr* drop_view); + ::greptime::v1::DropViewExpr* unsafe_arena_release_drop_view(); + void clear_expr(); ExprCase expr_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.DdlRequest) @@ -455,6 +503,8 @@ class DdlRequest final : void set_has_truncate_table(); void set_has_create_flow(); void set_has_drop_flow(); + void set_has_create_view(); + void set_has_drop_view(); inline bool has_expr() const; inline void clear_has_expr(); @@ -473,6 +523,8 @@ class DdlRequest final : ::greptime::v1::TruncateTableExpr* truncate_table_; ::greptime::v1::CreateFlowExpr* create_flow_; ::greptime::v1::DropFlowExpr* drop_flow_; + ::greptime::v1::CreateViewExpr* create_view_; + ::greptime::v1::DropViewExpr* drop_view_; } expr_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -1016,6 +1068,445 @@ class DropFlowExpr final : }; // ------------------------------------------------------------------- +class CreateViewExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.CreateViewExpr) */ { + public: + inline CreateViewExpr() : CreateViewExpr(nullptr) {} + ~CreateViewExpr() override; + explicit PROTOBUF_CONSTEXPR CreateViewExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateViewExpr(const CreateViewExpr& from); + CreateViewExpr(CreateViewExpr&& from) noexcept + : CreateViewExpr() { + *this = ::std::move(from); + } + + inline CreateViewExpr& operator=(const CreateViewExpr& from) { + CopyFrom(from); + return *this; + } + inline CreateViewExpr& operator=(CreateViewExpr&& 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 CreateViewExpr& default_instance() { + return *internal_default_instance(); + } + static inline const CreateViewExpr* internal_default_instance() { + return reinterpret_cast( + &_CreateViewExpr_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(CreateViewExpr& a, CreateViewExpr& b) { + a.Swap(&b); + } + inline void Swap(CreateViewExpr* 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(CreateViewExpr* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateViewExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateViewExpr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CreateViewExpr& from) { + CreateViewExpr::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(CreateViewExpr* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.CreateViewExpr"; + } + protected: + explicit CreateViewExpr(::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 { + kCatalogNameFieldNumber = 1, + kSchemaNameFieldNumber = 2, + kViewNameFieldNumber = 3, + kLogicalPlanFieldNumber = 4, + kCreateIfNotExistsFieldNumber = 5, + kOrReplaceFieldNumber = 6, + }; + // string catalog_name = 1; + void clear_catalog_name(); + const std::string& catalog_name() const; + template + void set_catalog_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_catalog_name(); + PROTOBUF_NODISCARD std::string* release_catalog_name(); + void set_allocated_catalog_name(std::string* catalog_name); + private: + const std::string& _internal_catalog_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog_name(const std::string& value); + std::string* _internal_mutable_catalog_name(); + public: + + // string schema_name = 2; + 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 view_name = 3; + void clear_view_name(); + const std::string& view_name() const; + template + void set_view_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_view_name(); + PROTOBUF_NODISCARD std::string* release_view_name(); + void set_allocated_view_name(std::string* view_name); + private: + const std::string& _internal_view_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_view_name(const std::string& value); + std::string* _internal_mutable_view_name(); + public: + + // bytes logical_plan = 4; + void clear_logical_plan(); + const std::string& logical_plan() const; + template + void set_logical_plan(ArgT0&& arg0, ArgT... args); + std::string* mutable_logical_plan(); + PROTOBUF_NODISCARD std::string* release_logical_plan(); + void set_allocated_logical_plan(std::string* logical_plan); + private: + const std::string& _internal_logical_plan() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logical_plan(const std::string& value); + std::string* _internal_mutable_logical_plan(); + public: + + // 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); + private: + bool _internal_create_if_not_exists() const; + void _internal_set_create_if_not_exists(bool value); + public: + + // bool or_replace = 6; + void clear_or_replace(); + bool or_replace() const; + void set_or_replace(bool value); + private: + bool _internal_or_replace() const; + void _internal_set_or_replace(bool value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.CreateViewExpr) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr view_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logical_plan_; + bool create_if_not_exists_; + bool or_replace_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + +class DropViewExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropViewExpr) */ { + public: + inline DropViewExpr() : DropViewExpr(nullptr) {} + ~DropViewExpr() override; + explicit PROTOBUF_CONSTEXPR DropViewExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DropViewExpr(const DropViewExpr& from); + DropViewExpr(DropViewExpr&& from) noexcept + : DropViewExpr() { + *this = ::std::move(from); + } + + inline DropViewExpr& operator=(const DropViewExpr& from) { + CopyFrom(from); + return *this; + } + inline DropViewExpr& operator=(DropViewExpr&& 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 DropViewExpr& default_instance() { + return *internal_default_instance(); + } + static inline const DropViewExpr* internal_default_instance() { + return reinterpret_cast( + &_DropViewExpr_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(DropViewExpr& a, DropViewExpr& b) { + a.Swap(&b); + } + inline void Swap(DropViewExpr* 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(DropViewExpr* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DropViewExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DropViewExpr& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DropViewExpr& from) { + DropViewExpr::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(DropViewExpr* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.DropViewExpr"; + } + protected: + explicit DropViewExpr(::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 { + kCatalogNameFieldNumber = 1, + kSchemaNameFieldNumber = 2, + kViewNameFieldNumber = 3, + kViewIdFieldNumber = 4, + kDropIfExistsFieldNumber = 5, + }; + // string catalog_name = 1; + void clear_catalog_name(); + const std::string& catalog_name() const; + template + void set_catalog_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_catalog_name(); + PROTOBUF_NODISCARD std::string* release_catalog_name(); + void set_allocated_catalog_name(std::string* catalog_name); + private: + const std::string& _internal_catalog_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog_name(const std::string& value); + std::string* _internal_mutable_catalog_name(); + public: + + // string schema_name = 2; + 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 view_name = 3; + void clear_view_name(); + const std::string& view_name() const; + template + void set_view_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_view_name(); + PROTOBUF_NODISCARD std::string* release_view_name(); + void set_allocated_view_name(std::string* view_name); + private: + const std::string& _internal_view_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_view_name(const std::string& value); + std::string* _internal_mutable_view_name(); + public: + + // .greptime.v1.TableId view_id = 4; + bool has_view_id() const; + private: + bool _internal_has_view_id() const; + public: + void clear_view_id(); + const ::greptime::v1::TableId& view_id() const; + PROTOBUF_NODISCARD ::greptime::v1::TableId* release_view_id(); + ::greptime::v1::TableId* mutable_view_id(); + void set_allocated_view_id(::greptime::v1::TableId* view_id); + private: + const ::greptime::v1::TableId& _internal_view_id() const; + ::greptime::v1::TableId* _internal_mutable_view_id(); + public: + void unsafe_arena_set_allocated_view_id( + ::greptime::v1::TableId* view_id); + ::greptime::v1::TableId* unsafe_arena_release_view_id(); + + // bool drop_if_exists = 5; + void clear_drop_if_exists(); + bool drop_if_exists() const; + void set_drop_if_exists(bool value); + private: + bool _internal_drop_if_exists() const; + void _internal_set_drop_if_exists(bool value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.DropViewExpr) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr view_name_; + ::greptime::v1::TableId* view_id_; + bool drop_if_exists_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + class CreateTableExpr_TableOptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry(::greptime::v1::_CreateViewExpr_default_instance_); +} +inline const ::greptime::v1::CreateViewExpr& DdlRequest::create_view() const { + // @@protoc_insertion_point(field_get:greptime.v1.DdlRequest.create_view) + return _internal_create_view(); +} +inline ::greptime::v1::CreateViewExpr* DdlRequest::unsafe_arena_release_create_view() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.DdlRequest.create_view) + if (_internal_has_create_view()) { + clear_has_expr(); + ::greptime::v1::CreateViewExpr* temp = _impl_.expr_.create_view_; + _impl_.expr_.create_view_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void DdlRequest::unsafe_arena_set_allocated_create_view(::greptime::v1::CreateViewExpr* create_view) { + clear_expr(); + if (create_view) { + set_has_create_view(); + _impl_.expr_.create_view_ = create_view; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.DdlRequest.create_view) +} +inline ::greptime::v1::CreateViewExpr* DdlRequest::_internal_mutable_create_view() { + if (!_internal_has_create_view()) { + clear_expr(); + set_has_create_view(); + _impl_.expr_.create_view_ = CreateMaybeMessage< ::greptime::v1::CreateViewExpr >(GetArenaForAllocation()); + } + return _impl_.expr_.create_view_; +} +inline ::greptime::v1::CreateViewExpr* DdlRequest::mutable_create_view() { + ::greptime::v1::CreateViewExpr* _msg = _internal_mutable_create_view(); + // @@protoc_insertion_point(field_mutable:greptime.v1.DdlRequest.create_view) + return _msg; +} + +// .greptime.v1.DropViewExpr drop_view = 11; +inline bool DdlRequest::_internal_has_drop_view() const { + return expr_case() == kDropView; +} +inline bool DdlRequest::has_drop_view() const { + return _internal_has_drop_view(); +} +inline void DdlRequest::set_has_drop_view() { + _impl_._oneof_case_[0] = kDropView; +} +inline void DdlRequest::clear_drop_view() { + if (_internal_has_drop_view()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.expr_.drop_view_; + } + clear_has_expr(); + } +} +inline ::greptime::v1::DropViewExpr* DdlRequest::release_drop_view() { + // @@protoc_insertion_point(field_release:greptime.v1.DdlRequest.drop_view) + if (_internal_has_drop_view()) { + clear_has_expr(); + ::greptime::v1::DropViewExpr* temp = _impl_.expr_.drop_view_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.expr_.drop_view_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::DropViewExpr& DdlRequest::_internal_drop_view() const { + return _internal_has_drop_view() + ? *_impl_.expr_.drop_view_ + : reinterpret_cast< ::greptime::v1::DropViewExpr&>(::greptime::v1::_DropViewExpr_default_instance_); +} +inline const ::greptime::v1::DropViewExpr& DdlRequest::drop_view() const { + // @@protoc_insertion_point(field_get:greptime.v1.DdlRequest.drop_view) + return _internal_drop_view(); +} +inline ::greptime::v1::DropViewExpr* DdlRequest::unsafe_arena_release_drop_view() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.DdlRequest.drop_view) + if (_internal_has_drop_view()) { + clear_has_expr(); + ::greptime::v1::DropViewExpr* temp = _impl_.expr_.drop_view_; + _impl_.expr_.drop_view_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void DdlRequest::unsafe_arena_set_allocated_drop_view(::greptime::v1::DropViewExpr* drop_view) { + clear_expr(); + if (drop_view) { + set_has_drop_view(); + _impl_.expr_.drop_view_ = drop_view; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.DdlRequest.drop_view) +} +inline ::greptime::v1::DropViewExpr* DdlRequest::_internal_mutable_drop_view() { + if (!_internal_has_drop_view()) { + clear_expr(); + set_has_drop_view(); + _impl_.expr_.drop_view_ = CreateMaybeMessage< ::greptime::v1::DropViewExpr >(GetArenaForAllocation()); + } + return _impl_.expr_.drop_view_; +} +inline ::greptime::v1::DropViewExpr* DdlRequest::mutable_drop_view() { + ::greptime::v1::DropViewExpr* _msg = _internal_mutable_drop_view(); + // @@protoc_insertion_point(field_mutable:greptime.v1.DdlRequest.drop_view) + return _msg; +} + inline bool DdlRequest::has_expr() const { return expr_case() != EXPR_NOT_SET; } @@ -5568,6 +6207,514 @@ inline void DropFlowExpr::set_drop_if_exists(bool value) { // ------------------------------------------------------------------- +// CreateViewExpr + +// string catalog_name = 1; +inline void CreateViewExpr::clear_catalog_name() { + _impl_.catalog_name_.ClearToEmpty(); +} +inline const std::string& CreateViewExpr::catalog_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateViewExpr.catalog_name) + return _internal_catalog_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateViewExpr::set_catalog_name(ArgT0&& arg0, ArgT... args) { + + _impl_.catalog_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.CreateViewExpr.catalog_name) +} +inline std::string* CreateViewExpr::mutable_catalog_name() { + std::string* _s = _internal_mutable_catalog_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateViewExpr.catalog_name) + return _s; +} +inline const std::string& CreateViewExpr::_internal_catalog_name() const { + return _impl_.catalog_name_.Get(); +} +inline void CreateViewExpr::_internal_set_catalog_name(const std::string& value) { + + _impl_.catalog_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateViewExpr::_internal_mutable_catalog_name() { + + return _impl_.catalog_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* CreateViewExpr::release_catalog_name() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateViewExpr.catalog_name) + return _impl_.catalog_name_.Release(); +} +inline void CreateViewExpr::set_allocated_catalog_name(std::string* catalog_name) { + if (catalog_name != nullptr) { + + } else { + + } + _impl_.catalog_name_.SetAllocated(catalog_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.catalog_name_.IsDefault()) { + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateViewExpr.catalog_name) +} + +// string schema_name = 2; +inline void CreateViewExpr::clear_schema_name() { + _impl_.schema_name_.ClearToEmpty(); +} +inline const std::string& CreateViewExpr::schema_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateViewExpr.schema_name) + return _internal_schema_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateViewExpr::set_schema_name(ArgT0&& arg0, ArgT... args) { + + _impl_.schema_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.CreateViewExpr.schema_name) +} +inline std::string* CreateViewExpr::mutable_schema_name() { + std::string* _s = _internal_mutable_schema_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateViewExpr.schema_name) + return _s; +} +inline const std::string& CreateViewExpr::_internal_schema_name() const { + return _impl_.schema_name_.Get(); +} +inline void CreateViewExpr::_internal_set_schema_name(const std::string& value) { + + _impl_.schema_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateViewExpr::_internal_mutable_schema_name() { + + return _impl_.schema_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* CreateViewExpr::release_schema_name() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateViewExpr.schema_name) + return _impl_.schema_name_.Release(); +} +inline void CreateViewExpr::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.CreateViewExpr.schema_name) +} + +// string view_name = 3; +inline void CreateViewExpr::clear_view_name() { + _impl_.view_name_.ClearToEmpty(); +} +inline const std::string& CreateViewExpr::view_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateViewExpr.view_name) + return _internal_view_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateViewExpr::set_view_name(ArgT0&& arg0, ArgT... args) { + + _impl_.view_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.CreateViewExpr.view_name) +} +inline std::string* CreateViewExpr::mutable_view_name() { + std::string* _s = _internal_mutable_view_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateViewExpr.view_name) + return _s; +} +inline const std::string& CreateViewExpr::_internal_view_name() const { + return _impl_.view_name_.Get(); +} +inline void CreateViewExpr::_internal_set_view_name(const std::string& value) { + + _impl_.view_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateViewExpr::_internal_mutable_view_name() { + + return _impl_.view_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* CreateViewExpr::release_view_name() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateViewExpr.view_name) + return _impl_.view_name_.Release(); +} +inline void CreateViewExpr::set_allocated_view_name(std::string* view_name) { + if (view_name != nullptr) { + + } else { + + } + _impl_.view_name_.SetAllocated(view_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.view_name_.IsDefault()) { + _impl_.view_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateViewExpr.view_name) +} + +// bytes logical_plan = 4; +inline void CreateViewExpr::clear_logical_plan() { + _impl_.logical_plan_.ClearToEmpty(); +} +inline const std::string& CreateViewExpr::logical_plan() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateViewExpr.logical_plan) + return _internal_logical_plan(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateViewExpr::set_logical_plan(ArgT0&& arg0, ArgT... args) { + + _impl_.logical_plan_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.CreateViewExpr.logical_plan) +} +inline std::string* CreateViewExpr::mutable_logical_plan() { + std::string* _s = _internal_mutable_logical_plan(); + // @@protoc_insertion_point(field_mutable:greptime.v1.CreateViewExpr.logical_plan) + return _s; +} +inline const std::string& CreateViewExpr::_internal_logical_plan() const { + return _impl_.logical_plan_.Get(); +} +inline void CreateViewExpr::_internal_set_logical_plan(const std::string& value) { + + _impl_.logical_plan_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateViewExpr::_internal_mutable_logical_plan() { + + return _impl_.logical_plan_.Mutable(GetArenaForAllocation()); +} +inline std::string* CreateViewExpr::release_logical_plan() { + // @@protoc_insertion_point(field_release:greptime.v1.CreateViewExpr.logical_plan) + return _impl_.logical_plan_.Release(); +} +inline void CreateViewExpr::set_allocated_logical_plan(std::string* logical_plan) { + if (logical_plan != nullptr) { + + } else { + + } + _impl_.logical_plan_.SetAllocated(logical_plan, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.logical_plan_.IsDefault()) { + _impl_.logical_plan_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateViewExpr.logical_plan) +} + +// bool create_if_not_exists = 5; +inline void CreateViewExpr::clear_create_if_not_exists() { + _impl_.create_if_not_exists_ = false; +} +inline bool CreateViewExpr::_internal_create_if_not_exists() const { + return _impl_.create_if_not_exists_; +} +inline bool CreateViewExpr::create_if_not_exists() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateViewExpr.create_if_not_exists) + return _internal_create_if_not_exists(); +} +inline void CreateViewExpr::_internal_set_create_if_not_exists(bool value) { + + _impl_.create_if_not_exists_ = value; +} +inline void CreateViewExpr::set_create_if_not_exists(bool value) { + _internal_set_create_if_not_exists(value); + // @@protoc_insertion_point(field_set:greptime.v1.CreateViewExpr.create_if_not_exists) +} + +// bool or_replace = 6; +inline void CreateViewExpr::clear_or_replace() { + _impl_.or_replace_ = false; +} +inline bool CreateViewExpr::_internal_or_replace() const { + return _impl_.or_replace_; +} +inline bool CreateViewExpr::or_replace() const { + // @@protoc_insertion_point(field_get:greptime.v1.CreateViewExpr.or_replace) + return _internal_or_replace(); +} +inline void CreateViewExpr::_internal_set_or_replace(bool value) { + + _impl_.or_replace_ = value; +} +inline void CreateViewExpr::set_or_replace(bool value) { + _internal_set_or_replace(value); + // @@protoc_insertion_point(field_set:greptime.v1.CreateViewExpr.or_replace) +} + +// ------------------------------------------------------------------- + +// DropViewExpr + +// string catalog_name = 1; +inline void DropViewExpr::clear_catalog_name() { + _impl_.catalog_name_.ClearToEmpty(); +} +inline const std::string& DropViewExpr::catalog_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.DropViewExpr.catalog_name) + return _internal_catalog_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DropViewExpr::set_catalog_name(ArgT0&& arg0, ArgT... args) { + + _impl_.catalog_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.DropViewExpr.catalog_name) +} +inline std::string* DropViewExpr::mutable_catalog_name() { + std::string* _s = _internal_mutable_catalog_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.DropViewExpr.catalog_name) + return _s; +} +inline const std::string& DropViewExpr::_internal_catalog_name() const { + return _impl_.catalog_name_.Get(); +} +inline void DropViewExpr::_internal_set_catalog_name(const std::string& value) { + + _impl_.catalog_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* DropViewExpr::_internal_mutable_catalog_name() { + + return _impl_.catalog_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* DropViewExpr::release_catalog_name() { + // @@protoc_insertion_point(field_release:greptime.v1.DropViewExpr.catalog_name) + return _impl_.catalog_name_.Release(); +} +inline void DropViewExpr::set_allocated_catalog_name(std::string* catalog_name) { + if (catalog_name != nullptr) { + + } else { + + } + _impl_.catalog_name_.SetAllocated(catalog_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.catalog_name_.IsDefault()) { + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DropViewExpr.catalog_name) +} + +// string schema_name = 2; +inline void DropViewExpr::clear_schema_name() { + _impl_.schema_name_.ClearToEmpty(); +} +inline const std::string& DropViewExpr::schema_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.DropViewExpr.schema_name) + return _internal_schema_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DropViewExpr::set_schema_name(ArgT0&& arg0, ArgT... args) { + + _impl_.schema_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.DropViewExpr.schema_name) +} +inline std::string* DropViewExpr::mutable_schema_name() { + std::string* _s = _internal_mutable_schema_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.DropViewExpr.schema_name) + return _s; +} +inline const std::string& DropViewExpr::_internal_schema_name() const { + return _impl_.schema_name_.Get(); +} +inline void DropViewExpr::_internal_set_schema_name(const std::string& value) { + + _impl_.schema_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* DropViewExpr::_internal_mutable_schema_name() { + + return _impl_.schema_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* DropViewExpr::release_schema_name() { + // @@protoc_insertion_point(field_release:greptime.v1.DropViewExpr.schema_name) + return _impl_.schema_name_.Release(); +} +inline void DropViewExpr::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.DropViewExpr.schema_name) +} + +// string view_name = 3; +inline void DropViewExpr::clear_view_name() { + _impl_.view_name_.ClearToEmpty(); +} +inline const std::string& DropViewExpr::view_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.DropViewExpr.view_name) + return _internal_view_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DropViewExpr::set_view_name(ArgT0&& arg0, ArgT... args) { + + _impl_.view_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.DropViewExpr.view_name) +} +inline std::string* DropViewExpr::mutable_view_name() { + std::string* _s = _internal_mutable_view_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.DropViewExpr.view_name) + return _s; +} +inline const std::string& DropViewExpr::_internal_view_name() const { + return _impl_.view_name_.Get(); +} +inline void DropViewExpr::_internal_set_view_name(const std::string& value) { + + _impl_.view_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* DropViewExpr::_internal_mutable_view_name() { + + return _impl_.view_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* DropViewExpr::release_view_name() { + // @@protoc_insertion_point(field_release:greptime.v1.DropViewExpr.view_name) + return _impl_.view_name_.Release(); +} +inline void DropViewExpr::set_allocated_view_name(std::string* view_name) { + if (view_name != nullptr) { + + } else { + + } + _impl_.view_name_.SetAllocated(view_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.view_name_.IsDefault()) { + _impl_.view_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DropViewExpr.view_name) +} + +// .greptime.v1.TableId view_id = 4; +inline bool DropViewExpr::_internal_has_view_id() const { + return this != internal_default_instance() && _impl_.view_id_ != nullptr; +} +inline bool DropViewExpr::has_view_id() const { + return _internal_has_view_id(); +} +inline void DropViewExpr::clear_view_id() { + if (GetArenaForAllocation() == nullptr && _impl_.view_id_ != nullptr) { + delete _impl_.view_id_; + } + _impl_.view_id_ = nullptr; +} +inline const ::greptime::v1::TableId& DropViewExpr::_internal_view_id() const { + const ::greptime::v1::TableId* p = _impl_.view_id_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_TableId_default_instance_); +} +inline const ::greptime::v1::TableId& DropViewExpr::view_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.DropViewExpr.view_id) + return _internal_view_id(); +} +inline void DropViewExpr::unsafe_arena_set_allocated_view_id( + ::greptime::v1::TableId* view_id) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.view_id_); + } + _impl_.view_id_ = view_id; + if (view_id) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.DropViewExpr.view_id) +} +inline ::greptime::v1::TableId* DropViewExpr::release_view_id() { + + ::greptime::v1::TableId* temp = _impl_.view_id_; + _impl_.view_id_ = 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::TableId* DropViewExpr::unsafe_arena_release_view_id() { + // @@protoc_insertion_point(field_release:greptime.v1.DropViewExpr.view_id) + + ::greptime::v1::TableId* temp = _impl_.view_id_; + _impl_.view_id_ = nullptr; + return temp; +} +inline ::greptime::v1::TableId* DropViewExpr::_internal_mutable_view_id() { + + if (_impl_.view_id_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::TableId>(GetArenaForAllocation()); + _impl_.view_id_ = p; + } + return _impl_.view_id_; +} +inline ::greptime::v1::TableId* DropViewExpr::mutable_view_id() { + ::greptime::v1::TableId* _msg = _internal_mutable_view_id(); + // @@protoc_insertion_point(field_mutable:greptime.v1.DropViewExpr.view_id) + return _msg; +} +inline void DropViewExpr::set_allocated_view_id(::greptime::v1::TableId* view_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.view_id_; + } + if (view_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(view_id); + if (message_arena != submessage_arena) { + view_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, view_id, submessage_arena); + } + + } else { + + } + _impl_.view_id_ = view_id; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.DropViewExpr.view_id) +} + +// bool drop_if_exists = 5; +inline void DropViewExpr::clear_drop_if_exists() { + _impl_.drop_if_exists_ = false; +} +inline bool DropViewExpr::_internal_drop_if_exists() const { + return _impl_.drop_if_exists_; +} +inline bool DropViewExpr::drop_if_exists() const { + // @@protoc_insertion_point(field_get:greptime.v1.DropViewExpr.drop_if_exists) + return _internal_drop_if_exists(); +} +inline void DropViewExpr::_internal_set_drop_if_exists(bool value) { + + _impl_.drop_if_exists_ = value; +} +inline void DropViewExpr::set_drop_if_exists(bool value) { + _internal_set_drop_if_exists(value); + // @@protoc_insertion_point(field_set:greptime.v1.DropViewExpr.drop_if_exists) +} + +// ------------------------------------------------------------------- + // ------------------------------------------------------------------- // CreateTableExpr @@ -8423,6 +9570,10 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/meta/ddl.pb.cc b/c++/greptime/v1/meta/ddl.pb.cc index 9f956c1..dd494c2 100644 --- a/c++/greptime/v1/meta/ddl.pb.cc +++ b/c++/greptime/v1/meta/ddl.pb.cc @@ -168,6 +168,33 @@ struct DropFlowTaskDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropFlowTaskDefaultTypeInternal _DropFlowTask_default_instance_; +PROTOBUF_CONSTEXPR CreateViewTask::CreateViewTask( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.view_info_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.create_view_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct CreateViewTaskDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateViewTaskDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateViewTaskDefaultTypeInternal() {} + union { + CreateViewTask _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateViewTaskDefaultTypeInternal _CreateViewTask_default_instance_; +PROTOBUF_CONSTEXPR DropViewTask::DropViewTask( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.drop_view_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DropViewTaskDefaultTypeInternal { + PROTOBUF_CONSTEXPR DropViewTaskDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DropViewTaskDefaultTypeInternal() {} + union { + DropViewTask _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropViewTaskDefaultTypeInternal _DropViewTask_default_instance_; PROTOBUF_CONSTEXPR DdlTaskRequest::DdlTaskRequest( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.header_)*/nullptr @@ -203,7 +230,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[13]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[15]; 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; @@ -288,6 +315,21 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DropFlowTask, _impl_.drop_flow_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::CreateViewTask, _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::CreateViewTask, _impl_.create_view_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::CreateViewTask, _impl_.view_info_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DropViewTask, _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::DropViewTask, _impl_.drop_view_), + ~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]), @@ -306,6 +348,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_), @@ -330,8 +374,10 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 58, -1, -1, sizeof(::greptime::v1::meta::DropDatabaseTask)}, { 65, -1, -1, sizeof(::greptime::v1::meta::CreateFlowTask)}, { 72, -1, -1, sizeof(::greptime::v1::meta::DropFlowTask)}, - { 79, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)}, - { 99, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)}, + { 79, -1, -1, sizeof(::greptime::v1::meta::CreateViewTask)}, + { 87, -1, -1, sizeof(::greptime::v1::meta::DropViewTask)}, + { 94, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)}, + { 116, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -346,6 +392,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::meta::_DropDatabaseTask_default_instance_._instance, &::greptime::v1::meta::_CreateFlowTask_default_instance_._instance, &::greptime::v1::meta::_DropFlowTask_default_instance_._instance, + &::greptime::v1::meta::_CreateViewTask_default_instance_._instance, + &::greptime::v1::meta::_DropViewTask_default_instance_._instance, &::greptime::v1::meta::_DdlTaskRequest_default_instance_._instance, &::greptime::v1::meta::_DdlTaskResponse_default_instance_._instance, }; @@ -375,35 +423,42 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto[] PROTOB ".v1.DropDatabaseExpr\"B\n\016CreateFlowTask\0220" "\n\013create_flow\030\001 \001(\0132\033.greptime.v1.Create" "FlowExpr\"<\n\014DropFlowTask\022,\n\tdrop_flow\030\001 " - "\001(\0132\031.greptime.v1.DropFlowExpr\"\271\006\n\016DdlTa" - "skRequest\022/\n\006header\030\001 \001(\0132\037.greptime.v1." - "meta.RequestHeader\0220\n\rquery_context\030@ \001(" - "\0132\031.greptime.v1.QueryContext\022>\n\021create_t" - "able_task\030\002 \001(\0132!.greptime.v1.meta.Creat" - "eTableTaskH\000\022:\n\017drop_table_task\030\003 \001(\0132\037." - "greptime.v1.meta.DropTableTaskH\000\022<\n\020alte" - "r_table_task\030\004 \001(\0132 .greptime.v1.meta.Al" - "terTableTaskH\000\022B\n\023truncate_table_task\030\005 " - "\001(\0132#.greptime.v1.meta.TruncateTableTask" - "H\000\022@\n\022create_table_tasks\030\006 \001(\0132\".greptim" - "e.v1.meta.CreateTableTasksH\000\022<\n\020drop_tab" - "le_tasks\030\007 \001(\0132 .greptime.v1.meta.DropTa" - "bleTasksH\000\022>\n\021alter_table_tasks\030\010 \001(\0132!." - "greptime.v1.meta.AlterTableTasksH\000\022@\n\022dr" - "op_database_task\030\t \001(\0132\".greptime.v1.met" - "a.DropDatabaseTaskH\000\022D\n\024create_database_" - "task\030\n \001(\0132$.greptime.v1.meta.CreateData" - "baseTaskH\000\022<\n\020create_flow_task\030\013 \001(\0132 .g" - "reptime.v1.meta.CreateFlowTaskH\000\0228\n\016drop" - "_flow_task\030\014 \001(\0132\036.greptime.v1.meta.Drop" - "FlowTaskH\000B\006\n\004task\"\300\001\n\017DdlTaskResponse\0220" - "\n\006header\030\001 \001(\0132 .greptime.v1.meta.Respon" - "seHeader\022*\n\003pid\030\002 \001(\0132\035.greptime.v1.meta" - ".ProcedureId\022&\n\010table_id\030\004 \001(\0132\024.greptim" - "e.v1.TableId\022\'\n\ttable_ids\030\005 \003(\0132\024.grepti" - "me.v1.TableId*#\n\013DdlTaskType\022\n\n\006Create\020\000" - "\022\010\n\004Drop\020\001B\n\021create_table_task\030\002" + " \001(\0132!.greptime.v1.meta.CreateTableTaskH" + "\000\022:\n\017drop_table_task\030\003 \001(\0132\037.greptime.v1" + ".meta.DropTableTaskH\000\022<\n\020alter_table_tas" + "k\030\004 \001(\0132 .greptime.v1.meta.AlterTableTas" + "kH\000\022B\n\023truncate_table_task\030\005 \001(\0132#.grept" + "ime.v1.meta.TruncateTableTaskH\000\022@\n\022creat" + "e_table_tasks\030\006 \001(\0132\".greptime.v1.meta.C" + "reateTableTasksH\000\022<\n\020drop_table_tasks\030\007 " + "\001(\0132 .greptime.v1.meta.DropTableTasksH\000\022" + ">\n\021alter_table_tasks\030\010 \001(\0132!.greptime.v1" + ".meta.AlterTableTasksH\000\022@\n\022drop_database" + "_task\030\t \001(\0132\".greptime.v1.meta.DropDatab" + "aseTaskH\000\022D\n\024create_database_task\030\n \001(\0132" + "$.greptime.v1.meta.CreateDatabaseTaskH\000\022" + "<\n\020create_flow_task\030\013 \001(\0132 .greptime.v1." + "meta.CreateFlowTaskH\000\0228\n\016drop_flow_task\030" + "\014 \001(\0132\036.greptime.v1.meta.DropFlowTaskH\000\022" + "<\n\020create_view_task\030\r \001(\0132 .greptime.v1." + "meta.CreateViewTaskH\000\0228\n\016drop_view_task\030" + "\016 \001(\0132\036.greptime.v1.meta.DropViewTaskH\000B" + "\006\n\004task\"\300\001\n\017DdlTaskResponse\0220\n\006header\030\001 " + "\001(\0132 .greptime.v1.meta.ResponseHeader\022*\n" + "\003pid\030\002 \001(\0132\035.greptime.v1.meta.ProcedureI" + "d\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.TableI" + "d\022\'\n\ttable_ids\030\005 \003(\0132\024.greptime.v1.Table" + "Id*#\n\013DdlTaskType\022\n\n\006Create\020\000\022\010\n\004Drop\020\001B" + "_impl_.create_view_; +} +void CreateViewTask::clear_create_view() { + if (GetArenaForAllocation() == nullptr && _impl_.create_view_ != nullptr) { + delete _impl_.create_view_; + } + _impl_.create_view_ = nullptr; +} +CreateViewTask::CreateViewTask(::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.CreateViewTask) +} +CreateViewTask::CreateViewTask(const CreateViewTask& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + CreateViewTask* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.view_info_){} + , decltype(_impl_.create_view_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.view_info_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.view_info_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_view_info().empty()) { + _this->_impl_.view_info_.Set(from._internal_view_info(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_create_view()) { + _this->_impl_.create_view_ = new ::greptime::v1::CreateViewExpr(*from._impl_.create_view_); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.CreateViewTask) +} + +inline void CreateViewTask::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.view_info_){} + , decltype(_impl_.create_view_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.view_info_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.view_info_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +CreateViewTask::~CreateViewTask() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.CreateViewTask) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void CreateViewTask::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.view_info_.Destroy(); + if (this != internal_default_instance()) delete _impl_.create_view_; +} + +void CreateViewTask::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void CreateViewTask::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.CreateViewTask) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.view_info_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.create_view_ != nullptr) { + delete _impl_.create_view_; + } + _impl_.create_view_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateViewTask::_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.CreateViewExpr create_view = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_create_view(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes view_info = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_view_info(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* CreateViewTask::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.CreateViewTask) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.CreateViewExpr create_view = 1; + if (this->_internal_has_create_view()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::create_view(this), + _Internal::create_view(this).GetCachedSize(), target, stream); + } + + // bytes view_info = 2; + if (!this->_internal_view_info().empty()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_view_info(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.CreateViewTask) + return target; +} + +size_t CreateViewTask::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.CreateViewTask) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes view_info = 2; + if (!this->_internal_view_info().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_view_info()); + } + + // .greptime.v1.CreateViewExpr create_view = 1; + if (this->_internal_has_create_view()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.create_view_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateViewTask::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + CreateViewTask::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateViewTask::GetClassData() const { return &_class_data_; } + + +void CreateViewTask::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.CreateViewTask) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_view_info().empty()) { + _this->_internal_set_view_info(from._internal_view_info()); + } + if (from._internal_has_create_view()) { + _this->_internal_mutable_create_view()->::greptime::v1::CreateViewExpr::MergeFrom( + from._internal_create_view()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateViewTask::CopyFrom(const CreateViewTask& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.CreateViewTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateViewTask::IsInitialized() const { + return true; +} + +void CreateViewTask::InternalSwap(CreateViewTask* 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_.view_info_, lhs_arena, + &other->_impl_.view_info_, rhs_arena + ); + swap(_impl_.create_view_, other->_impl_.create_view_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateViewTask::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[11]); +} + +// =================================================================== + +class DropViewTask::_Internal { + public: + static const ::greptime::v1::DropViewExpr& drop_view(const DropViewTask* msg); +}; + +const ::greptime::v1::DropViewExpr& +DropViewTask::_Internal::drop_view(const DropViewTask* msg) { + return *msg->_impl_.drop_view_; +} +void DropViewTask::clear_drop_view() { + if (GetArenaForAllocation() == nullptr && _impl_.drop_view_ != nullptr) { + delete _impl_.drop_view_; + } + _impl_.drop_view_ = nullptr; +} +DropViewTask::DropViewTask(::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.DropViewTask) +} +DropViewTask::DropViewTask(const DropViewTask& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DropViewTask* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.drop_view_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_drop_view()) { + _this->_impl_.drop_view_ = new ::greptime::v1::DropViewExpr(*from._impl_.drop_view_); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.DropViewTask) +} + +inline void DropViewTask::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.drop_view_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DropViewTask::~DropViewTask() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.DropViewTask) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DropViewTask::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.drop_view_; +} + +void DropViewTask::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DropViewTask::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.DropViewTask) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.drop_view_ != nullptr) { + delete _impl_.drop_view_; + } + _impl_.drop_view_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DropViewTask::_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.DropViewExpr drop_view = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_drop_view(), 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* DropViewTask::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.DropViewTask) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.DropViewExpr drop_view = 1; + if (this->_internal_has_drop_view()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::drop_view(this), + _Internal::drop_view(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.DropViewTask) + return target; +} + +size_t DropViewTask::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.DropViewTask) + 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.DropViewExpr drop_view = 1; + if (this->_internal_has_drop_view()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.drop_view_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropViewTask::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DropViewTask::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropViewTask::GetClassData() const { return &_class_data_; } + + +void DropViewTask::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.DropViewTask) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_drop_view()) { + _this->_internal_mutable_drop_view()->::greptime::v1::DropViewExpr::MergeFrom( + from._internal_drop_view()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DropViewTask::CopyFrom(const DropViewTask& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.DropViewTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DropViewTask::IsInitialized() const { + return true; +} + +void DropViewTask::InternalSwap(DropViewTask* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.drop_view_, other->_impl_.drop_view_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DropViewTask::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[12]); +} + +// =================================================================== + class DdlTaskRequest::_Internal { public: static const ::greptime::v1::meta::RequestHeader& header(const DdlTaskRequest* msg); @@ -2692,6 +3192,8 @@ class DdlTaskRequest::_Internal { 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); + static const ::greptime::v1::meta::CreateViewTask& create_view_task(const DdlTaskRequest* msg); + static const ::greptime::v1::meta::DropViewTask& drop_view_task(const DdlTaskRequest* msg); }; const ::greptime::v1::meta::RequestHeader& @@ -2746,6 +3248,14 @@ const ::greptime::v1::meta::DropFlowTask& DdlTaskRequest::_Internal::drop_flow_task(const DdlTaskRequest* msg) { return *msg->_impl_.task_.drop_flow_task_; } +const ::greptime::v1::meta::CreateViewTask& +DdlTaskRequest::_Internal::create_view_task(const DdlTaskRequest* msg) { + return *msg->_impl_.task_.create_view_task_; +} +const ::greptime::v1::meta::DropViewTask& +DdlTaskRequest::_Internal::drop_view_task(const DdlTaskRequest* msg) { + return *msg->_impl_.task_.drop_view_task_; +} void DdlTaskRequest::clear_header() { if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; @@ -2923,6 +3433,36 @@ void DdlTaskRequest::set_allocated_drop_flow_task(::greptime::v1::meta::DropFlow } // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_flow_task) } +void DdlTaskRequest::set_allocated_create_view_task(::greptime::v1::meta::CreateViewTask* create_view_task) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_task(); + if (create_view_task) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(create_view_task); + if (message_arena != submessage_arena) { + create_view_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, create_view_task, submessage_arena); + } + set_has_create_view_task(); + _impl_.task_.create_view_task_ = create_view_task; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.create_view_task) +} +void DdlTaskRequest::set_allocated_drop_view_task(::greptime::v1::meta::DropViewTask* drop_view_task) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_task(); + if (drop_view_task) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(drop_view_task); + if (message_arena != submessage_arena) { + drop_view_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, drop_view_task, submessage_arena); + } + set_has_drop_view_task(); + _impl_.task_.drop_view_task_ = drop_view_task; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_view_task) +} DdlTaskRequest::DdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -3003,6 +3543,16 @@ DdlTaskRequest::DdlTaskRequest(const DdlTaskRequest& from) from._internal_drop_flow_task()); break; } + case kCreateViewTask: { + _this->_internal_mutable_create_view_task()->::greptime::v1::meta::CreateViewTask::MergeFrom( + from._internal_create_view_task()); + break; + } + case kDropViewTask: { + _this->_internal_mutable_drop_view_task()->::greptime::v1::meta::DropViewTask::MergeFrom( + from._internal_drop_view_task()); + break; + } case TASK_NOT_SET: { break; } @@ -3115,6 +3665,18 @@ void DdlTaskRequest::clear_task() { } break; } + case kCreateViewTask: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.task_.create_view_task_; + } + break; + } + case kDropViewTask: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.task_.drop_view_task_; + } + break; + } case TASK_NOT_SET: { break; } @@ -3243,6 +3805,22 @@ const char* DdlTaskRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext } else goto handle_unusual; continue; + // .greptime.v1.meta.CreateViewTask create_view_task = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_create_view_task(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.meta.DropViewTask drop_view_task = 14; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { + ptr = ctx->ParseMessage(_internal_mutable_drop_view_task(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; // .greptime.v1.QueryContext query_context = 64; case 64: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 2)) { @@ -3364,6 +3942,20 @@ uint8_t* DdlTaskRequest::_InternalSerialize( _Internal::drop_flow_task(this).GetCachedSize(), target, stream); } + // .greptime.v1.meta.CreateViewTask create_view_task = 13; + if (_internal_has_create_view_task()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(13, _Internal::create_view_task(this), + _Internal::create_view_task(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.meta.DropViewTask drop_view_task = 14; + if (_internal_has_drop_view_task()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(14, _Internal::drop_view_task(this), + _Internal::drop_view_task(this).GetCachedSize(), target, stream); + } + // .greptime.v1.QueryContext query_context = 64; if (this->_internal_has_query_context()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: @@ -3479,6 +4071,20 @@ size_t DdlTaskRequest::ByteSizeLong() const { *_impl_.task_.drop_flow_task_); break; } + // .greptime.v1.meta.CreateViewTask create_view_task = 13; + case kCreateViewTask: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.task_.create_view_task_); + break; + } + // .greptime.v1.meta.DropViewTask drop_view_task = 14; + case kDropViewTask: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.task_.drop_view_task_); + break; + } case TASK_NOT_SET: { break; } @@ -3565,6 +4171,16 @@ void DdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : from._internal_drop_flow_task()); break; } + case kCreateViewTask: { + _this->_internal_mutable_create_view_task()->::greptime::v1::meta::CreateViewTask::MergeFrom( + from._internal_create_view_task()); + break; + } + case kDropViewTask: { + _this->_internal_mutable_drop_view_task()->::greptime::v1::meta::DropViewTask::MergeFrom( + from._internal_drop_view_task()); + break; + } case TASK_NOT_SET: { break; } @@ -3599,7 +4215,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[11]); + file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[13]); } // =================================================================== @@ -3934,7 +4550,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[12]); + file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[14]); } // @@protoc_insertion_point(namespace_scope) @@ -3986,6 +4602,14 @@ 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::CreateViewTask* +Arena::CreateMaybeMessage< ::greptime::v1::meta::CreateViewTask >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::CreateViewTask >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DropViewTask* +Arena::CreateMaybeMessage< ::greptime::v1::meta::DropViewTask >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::DropViewTask >(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 9a53527..d5f1e3f 100644 --- a/c++/greptime/v1/meta/ddl.pb.h +++ b/c++/greptime/v1/meta/ddl.pb.h @@ -70,6 +70,9 @@ extern CreateTableTaskDefaultTypeInternal _CreateTableTask_default_instance_; class CreateTableTasks; struct CreateTableTasksDefaultTypeInternal; extern CreateTableTasksDefaultTypeInternal _CreateTableTasks_default_instance_; +class CreateViewTask; +struct CreateViewTaskDefaultTypeInternal; +extern CreateViewTaskDefaultTypeInternal _CreateViewTask_default_instance_; class DdlTaskRequest; struct DdlTaskRequestDefaultTypeInternal; extern DdlTaskRequestDefaultTypeInternal _DdlTaskRequest_default_instance_; @@ -88,6 +91,9 @@ extern DropTableTaskDefaultTypeInternal _DropTableTask_default_instance_; class DropTableTasks; struct DropTableTasksDefaultTypeInternal; extern DropTableTasksDefaultTypeInternal _DropTableTasks_default_instance_; +class DropViewTask; +struct DropViewTaskDefaultTypeInternal; +extern DropViewTaskDefaultTypeInternal _DropViewTask_default_instance_; class TruncateTableTask; struct TruncateTableTaskDefaultTypeInternal; extern TruncateTableTaskDefaultTypeInternal _TruncateTableTask_default_instance_; @@ -101,12 +107,14 @@ template<> ::greptime::v1::meta::CreateDatabaseTask* Arena::CreateMaybeMessage<: template<> ::greptime::v1::meta::CreateFlowTask* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateFlowTask>(Arena*); template<> ::greptime::v1::meta::CreateTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateTableTask>(Arena*); template<> ::greptime::v1::meta::CreateTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateTableTasks>(Arena*); +template<> ::greptime::v1::meta::CreateViewTask* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateViewTask>(Arena*); template<> ::greptime::v1::meta::DdlTaskRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::DdlTaskRequest>(Arena*); template<> ::greptime::v1::meta::DdlTaskResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::DdlTaskResponse>(Arena*); 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::DropViewTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropViewTask>(Arena*); template<> ::greptime::v1::meta::TruncateTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::TruncateTableTask>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace greptime { @@ -1903,6 +1911,336 @@ class DropFlowTask final : }; // ------------------------------------------------------------------- +class CreateViewTask final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.CreateViewTask) */ { + public: + inline CreateViewTask() : CreateViewTask(nullptr) {} + ~CreateViewTask() override; + explicit PROTOBUF_CONSTEXPR CreateViewTask(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateViewTask(const CreateViewTask& from); + CreateViewTask(CreateViewTask&& from) noexcept + : CreateViewTask() { + *this = ::std::move(from); + } + + inline CreateViewTask& operator=(const CreateViewTask& from) { + CopyFrom(from); + return *this; + } + inline CreateViewTask& operator=(CreateViewTask&& 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 CreateViewTask& default_instance() { + return *internal_default_instance(); + } + static inline const CreateViewTask* internal_default_instance() { + return reinterpret_cast( + &_CreateViewTask_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(CreateViewTask& a, CreateViewTask& b) { + a.Swap(&b); + } + inline void Swap(CreateViewTask* 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(CreateViewTask* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateViewTask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateViewTask& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const CreateViewTask& from) { + CreateViewTask::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(CreateViewTask* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.CreateViewTask"; + } + protected: + explicit CreateViewTask(::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 { + kViewInfoFieldNumber = 2, + kCreateViewFieldNumber = 1, + }; + // bytes view_info = 2; + void clear_view_info(); + const std::string& view_info() const; + template + void set_view_info(ArgT0&& arg0, ArgT... args); + std::string* mutable_view_info(); + PROTOBUF_NODISCARD std::string* release_view_info(); + void set_allocated_view_info(std::string* view_info); + private: + const std::string& _internal_view_info() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_view_info(const std::string& value); + std::string* _internal_mutable_view_info(); + public: + + // .greptime.v1.CreateViewExpr create_view = 1; + bool has_create_view() const; + private: + bool _internal_has_create_view() const; + public: + void clear_create_view(); + const ::greptime::v1::CreateViewExpr& create_view() const; + PROTOBUF_NODISCARD ::greptime::v1::CreateViewExpr* release_create_view(); + ::greptime::v1::CreateViewExpr* mutable_create_view(); + void set_allocated_create_view(::greptime::v1::CreateViewExpr* create_view); + private: + const ::greptime::v1::CreateViewExpr& _internal_create_view() const; + ::greptime::v1::CreateViewExpr* _internal_mutable_create_view(); + public: + void unsafe_arena_set_allocated_create_view( + ::greptime::v1::CreateViewExpr* create_view); + ::greptime::v1::CreateViewExpr* unsafe_arena_release_create_view(); + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.CreateViewTask) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr view_info_; + ::greptime::v1::CreateViewExpr* create_view_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + +class DropViewTask final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.DropViewTask) */ { + public: + inline DropViewTask() : DropViewTask(nullptr) {} + ~DropViewTask() override; + explicit PROTOBUF_CONSTEXPR DropViewTask(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DropViewTask(const DropViewTask& from); + DropViewTask(DropViewTask&& from) noexcept + : DropViewTask() { + *this = ::std::move(from); + } + + inline DropViewTask& operator=(const DropViewTask& from) { + CopyFrom(from); + return *this; + } + inline DropViewTask& operator=(DropViewTask&& 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 DropViewTask& default_instance() { + return *internal_default_instance(); + } + static inline const DropViewTask* internal_default_instance() { + return reinterpret_cast( + &_DropViewTask_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(DropViewTask& a, DropViewTask& b) { + a.Swap(&b); + } + inline void Swap(DropViewTask* 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(DropViewTask* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DropViewTask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DropViewTask& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DropViewTask& from) { + DropViewTask::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(DropViewTask* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.DropViewTask"; + } + protected: + explicit DropViewTask(::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 { + kDropViewFieldNumber = 1, + }; + // .greptime.v1.DropViewExpr drop_view = 1; + bool has_drop_view() const; + private: + bool _internal_has_drop_view() const; + public: + void clear_drop_view(); + const ::greptime::v1::DropViewExpr& drop_view() const; + PROTOBUF_NODISCARD ::greptime::v1::DropViewExpr* release_drop_view(); + ::greptime::v1::DropViewExpr* mutable_drop_view(); + void set_allocated_drop_view(::greptime::v1::DropViewExpr* drop_view); + private: + const ::greptime::v1::DropViewExpr& _internal_drop_view() const; + ::greptime::v1::DropViewExpr* _internal_mutable_drop_view(); + public: + void unsafe_arena_set_allocated_drop_view( + ::greptime::v1::DropViewExpr* drop_view); + ::greptime::v1::DropViewExpr* unsafe_arena_release_drop_view(); + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.DropViewTask) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::greptime::v1::DropViewExpr* drop_view_; + 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: @@ -1958,6 +2296,8 @@ class DdlTaskRequest final : kCreateDatabaseTask = 10, kCreateFlowTask = 11, kDropFlowTask = 12, + kCreateViewTask = 13, + kDropViewTask = 14, TASK_NOT_SET = 0, }; @@ -1966,7 +2306,7 @@ class DdlTaskRequest final : &_DdlTaskRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 13; friend void swap(DdlTaskRequest& a, DdlTaskRequest& b) { a.Swap(&b); @@ -2052,6 +2392,8 @@ class DdlTaskRequest final : kCreateDatabaseTaskFieldNumber = 10, kCreateFlowTaskFieldNumber = 11, kDropFlowTaskFieldNumber = 12, + kCreateViewTaskFieldNumber = 13, + kDropViewTaskFieldNumber = 14, }; // .greptime.v1.meta.RequestHeader header = 1; bool has_header() const; @@ -2287,6 +2629,42 @@ class DdlTaskRequest final : ::greptime::v1::meta::DropFlowTask* drop_flow_task); ::greptime::v1::meta::DropFlowTask* unsafe_arena_release_drop_flow_task(); + // .greptime.v1.meta.CreateViewTask create_view_task = 13; + bool has_create_view_task() const; + private: + bool _internal_has_create_view_task() const; + public: + void clear_create_view_task(); + const ::greptime::v1::meta::CreateViewTask& create_view_task() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::CreateViewTask* release_create_view_task(); + ::greptime::v1::meta::CreateViewTask* mutable_create_view_task(); + void set_allocated_create_view_task(::greptime::v1::meta::CreateViewTask* create_view_task); + private: + const ::greptime::v1::meta::CreateViewTask& _internal_create_view_task() const; + ::greptime::v1::meta::CreateViewTask* _internal_mutable_create_view_task(); + public: + void unsafe_arena_set_allocated_create_view_task( + ::greptime::v1::meta::CreateViewTask* create_view_task); + ::greptime::v1::meta::CreateViewTask* unsafe_arena_release_create_view_task(); + + // .greptime.v1.meta.DropViewTask drop_view_task = 14; + bool has_drop_view_task() const; + private: + bool _internal_has_drop_view_task() const; + public: + void clear_drop_view_task(); + const ::greptime::v1::meta::DropViewTask& drop_view_task() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::DropViewTask* release_drop_view_task(); + ::greptime::v1::meta::DropViewTask* mutable_drop_view_task(); + void set_allocated_drop_view_task(::greptime::v1::meta::DropViewTask* drop_view_task); + private: + const ::greptime::v1::meta::DropViewTask& _internal_drop_view_task() const; + ::greptime::v1::meta::DropViewTask* _internal_mutable_drop_view_task(); + public: + void unsafe_arena_set_allocated_drop_view_task( + ::greptime::v1::meta::DropViewTask* drop_view_task); + ::greptime::v1::meta::DropViewTask* unsafe_arena_release_drop_view_task(); + void clear_task(); TaskCase task_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.meta.DdlTaskRequest) @@ -2303,6 +2681,8 @@ class DdlTaskRequest final : void set_has_create_database_task(); void set_has_create_flow_task(); void set_has_drop_flow_task(); + void set_has_create_view_task(); + void set_has_drop_view_task(); inline bool has_task() const; inline void clear_has_task(); @@ -2327,6 +2707,8 @@ class DdlTaskRequest final : ::greptime::v1::meta::CreateDatabaseTask* create_database_task_; ::greptime::v1::meta::CreateFlowTask* create_flow_task_; ::greptime::v1::meta::DropFlowTask* drop_flow_task_; + ::greptime::v1::meta::CreateViewTask* create_view_task_; + ::greptime::v1::meta::DropViewTask* drop_view_task_; } task_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -2385,7 +2767,7 @@ class DdlTaskResponse final : &_DdlTaskResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 14; friend void swap(DdlTaskResponse& a, DdlTaskResponse& b) { a.Swap(&b); @@ -3492,6 +3874,234 @@ inline void DropFlowTask::set_allocated_drop_flow(::greptime::v1::DropFlowExpr* // ------------------------------------------------------------------- +// CreateViewTask + +// .greptime.v1.CreateViewExpr create_view = 1; +inline bool CreateViewTask::_internal_has_create_view() const { + return this != internal_default_instance() && _impl_.create_view_ != nullptr; +} +inline bool CreateViewTask::has_create_view() const { + return _internal_has_create_view(); +} +inline const ::greptime::v1::CreateViewExpr& CreateViewTask::_internal_create_view() const { + const ::greptime::v1::CreateViewExpr* p = _impl_.create_view_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_CreateViewExpr_default_instance_); +} +inline const ::greptime::v1::CreateViewExpr& CreateViewTask::create_view() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.CreateViewTask.create_view) + return _internal_create_view(); +} +inline void CreateViewTask::unsafe_arena_set_allocated_create_view( + ::greptime::v1::CreateViewExpr* create_view) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.create_view_); + } + _impl_.create_view_ = create_view; + if (create_view) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.CreateViewTask.create_view) +} +inline ::greptime::v1::CreateViewExpr* CreateViewTask::release_create_view() { + + ::greptime::v1::CreateViewExpr* temp = _impl_.create_view_; + _impl_.create_view_ = 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::CreateViewExpr* CreateViewTask::unsafe_arena_release_create_view() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.CreateViewTask.create_view) + + ::greptime::v1::CreateViewExpr* temp = _impl_.create_view_; + _impl_.create_view_ = nullptr; + return temp; +} +inline ::greptime::v1::CreateViewExpr* CreateViewTask::_internal_mutable_create_view() { + + if (_impl_.create_view_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::CreateViewExpr>(GetArenaForAllocation()); + _impl_.create_view_ = p; + } + return _impl_.create_view_; +} +inline ::greptime::v1::CreateViewExpr* CreateViewTask::mutable_create_view() { + ::greptime::v1::CreateViewExpr* _msg = _internal_mutable_create_view(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.CreateViewTask.create_view) + return _msg; +} +inline void CreateViewTask::set_allocated_create_view(::greptime::v1::CreateViewExpr* create_view) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.create_view_); + } + if (create_view) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(create_view)); + if (message_arena != submessage_arena) { + create_view = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, create_view, submessage_arena); + } + + } else { + + } + _impl_.create_view_ = create_view; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.CreateViewTask.create_view) +} + +// bytes view_info = 2; +inline void CreateViewTask::clear_view_info() { + _impl_.view_info_.ClearToEmpty(); +} +inline const std::string& CreateViewTask::view_info() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.CreateViewTask.view_info) + return _internal_view_info(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateViewTask::set_view_info(ArgT0&& arg0, ArgT... args) { + + _impl_.view_info_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.meta.CreateViewTask.view_info) +} +inline std::string* CreateViewTask::mutable_view_info() { + std::string* _s = _internal_mutable_view_info(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.CreateViewTask.view_info) + return _s; +} +inline const std::string& CreateViewTask::_internal_view_info() const { + return _impl_.view_info_.Get(); +} +inline void CreateViewTask::_internal_set_view_info(const std::string& value) { + + _impl_.view_info_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateViewTask::_internal_mutable_view_info() { + + return _impl_.view_info_.Mutable(GetArenaForAllocation()); +} +inline std::string* CreateViewTask::release_view_info() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.CreateViewTask.view_info) + return _impl_.view_info_.Release(); +} +inline void CreateViewTask::set_allocated_view_info(std::string* view_info) { + if (view_info != nullptr) { + + } else { + + } + _impl_.view_info_.SetAllocated(view_info, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.view_info_.IsDefault()) { + _impl_.view_info_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.CreateViewTask.view_info) +} + +// ------------------------------------------------------------------- + +// DropViewTask + +// .greptime.v1.DropViewExpr drop_view = 1; +inline bool DropViewTask::_internal_has_drop_view() const { + return this != internal_default_instance() && _impl_.drop_view_ != nullptr; +} +inline bool DropViewTask::has_drop_view() const { + return _internal_has_drop_view(); +} +inline const ::greptime::v1::DropViewExpr& DropViewTask::_internal_drop_view() const { + const ::greptime::v1::DropViewExpr* p = _impl_.drop_view_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_DropViewExpr_default_instance_); +} +inline const ::greptime::v1::DropViewExpr& DropViewTask::drop_view() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DropViewTask.drop_view) + return _internal_drop_view(); +} +inline void DropViewTask::unsafe_arena_set_allocated_drop_view( + ::greptime::v1::DropViewExpr* drop_view) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.drop_view_); + } + _impl_.drop_view_ = drop_view; + if (drop_view) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DropViewTask.drop_view) +} +inline ::greptime::v1::DropViewExpr* DropViewTask::release_drop_view() { + + ::greptime::v1::DropViewExpr* temp = _impl_.drop_view_; + _impl_.drop_view_ = 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::DropViewExpr* DropViewTask::unsafe_arena_release_drop_view() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DropViewTask.drop_view) + + ::greptime::v1::DropViewExpr* temp = _impl_.drop_view_; + _impl_.drop_view_ = nullptr; + return temp; +} +inline ::greptime::v1::DropViewExpr* DropViewTask::_internal_mutable_drop_view() { + + if (_impl_.drop_view_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::DropViewExpr>(GetArenaForAllocation()); + _impl_.drop_view_ = p; + } + return _impl_.drop_view_; +} +inline ::greptime::v1::DropViewExpr* DropViewTask::mutable_drop_view() { + ::greptime::v1::DropViewExpr* _msg = _internal_mutable_drop_view(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DropViewTask.drop_view) + return _msg; +} +inline void DropViewTask::set_allocated_drop_view(::greptime::v1::DropViewExpr* drop_view) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.drop_view_); + } + if (drop_view) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(drop_view)); + if (message_arena != submessage_arena) { + drop_view = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, drop_view, submessage_arena); + } + + } else { + + } + _impl_.drop_view_ = drop_view; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DropViewTask.drop_view) +} + +// ------------------------------------------------------------------- + // DdlTaskRequest // .greptime.v1.meta.RequestHeader header = 1; @@ -4478,6 +5088,154 @@ inline ::greptime::v1::meta::DropFlowTask* DdlTaskRequest::mutable_drop_flow_tas return _msg; } +// .greptime.v1.meta.CreateViewTask create_view_task = 13; +inline bool DdlTaskRequest::_internal_has_create_view_task() const { + return task_case() == kCreateViewTask; +} +inline bool DdlTaskRequest::has_create_view_task() const { + return _internal_has_create_view_task(); +} +inline void DdlTaskRequest::set_has_create_view_task() { + _impl_._oneof_case_[0] = kCreateViewTask; +} +inline void DdlTaskRequest::clear_create_view_task() { + if (_internal_has_create_view_task()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.task_.create_view_task_; + } + clear_has_task(); + } +} +inline ::greptime::v1::meta::CreateViewTask* DdlTaskRequest::release_create_view_task() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.create_view_task) + if (_internal_has_create_view_task()) { + clear_has_task(); + ::greptime::v1::meta::CreateViewTask* temp = _impl_.task_.create_view_task_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.task_.create_view_task_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::meta::CreateViewTask& DdlTaskRequest::_internal_create_view_task() const { + return _internal_has_create_view_task() + ? *_impl_.task_.create_view_task_ + : reinterpret_cast< ::greptime::v1::meta::CreateViewTask&>(::greptime::v1::meta::_CreateViewTask_default_instance_); +} +inline const ::greptime::v1::meta::CreateViewTask& DdlTaskRequest::create_view_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.create_view_task) + return _internal_create_view_task(); +} +inline ::greptime::v1::meta::CreateViewTask* DdlTaskRequest::unsafe_arena_release_create_view_task() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.create_view_task) + if (_internal_has_create_view_task()) { + clear_has_task(); + ::greptime::v1::meta::CreateViewTask* temp = _impl_.task_.create_view_task_; + _impl_.task_.create_view_task_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void DdlTaskRequest::unsafe_arena_set_allocated_create_view_task(::greptime::v1::meta::CreateViewTask* create_view_task) { + clear_task(); + if (create_view_task) { + set_has_create_view_task(); + _impl_.task_.create_view_task_ = create_view_task; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.create_view_task) +} +inline ::greptime::v1::meta::CreateViewTask* DdlTaskRequest::_internal_mutable_create_view_task() { + if (!_internal_has_create_view_task()) { + clear_task(); + set_has_create_view_task(); + _impl_.task_.create_view_task_ = CreateMaybeMessage< ::greptime::v1::meta::CreateViewTask >(GetArenaForAllocation()); + } + return _impl_.task_.create_view_task_; +} +inline ::greptime::v1::meta::CreateViewTask* DdlTaskRequest::mutable_create_view_task() { + ::greptime::v1::meta::CreateViewTask* _msg = _internal_mutable_create_view_task(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.create_view_task) + return _msg; +} + +// .greptime.v1.meta.DropViewTask drop_view_task = 14; +inline bool DdlTaskRequest::_internal_has_drop_view_task() const { + return task_case() == kDropViewTask; +} +inline bool DdlTaskRequest::has_drop_view_task() const { + return _internal_has_drop_view_task(); +} +inline void DdlTaskRequest::set_has_drop_view_task() { + _impl_._oneof_case_[0] = kDropViewTask; +} +inline void DdlTaskRequest::clear_drop_view_task() { + if (_internal_has_drop_view_task()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.task_.drop_view_task_; + } + clear_has_task(); + } +} +inline ::greptime::v1::meta::DropViewTask* DdlTaskRequest::release_drop_view_task() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.drop_view_task) + if (_internal_has_drop_view_task()) { + clear_has_task(); + ::greptime::v1::meta::DropViewTask* temp = _impl_.task_.drop_view_task_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.task_.drop_view_task_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::meta::DropViewTask& DdlTaskRequest::_internal_drop_view_task() const { + return _internal_has_drop_view_task() + ? *_impl_.task_.drop_view_task_ + : reinterpret_cast< ::greptime::v1::meta::DropViewTask&>(::greptime::v1::meta::_DropViewTask_default_instance_); +} +inline const ::greptime::v1::meta::DropViewTask& DdlTaskRequest::drop_view_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.drop_view_task) + return _internal_drop_view_task(); +} +inline ::greptime::v1::meta::DropViewTask* DdlTaskRequest::unsafe_arena_release_drop_view_task() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.drop_view_task) + if (_internal_has_drop_view_task()) { + clear_has_task(); + ::greptime::v1::meta::DropViewTask* temp = _impl_.task_.drop_view_task_; + _impl_.task_.drop_view_task_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void DdlTaskRequest::unsafe_arena_set_allocated_drop_view_task(::greptime::v1::meta::DropViewTask* drop_view_task) { + clear_task(); + if (drop_view_task) { + set_has_drop_view_task(); + _impl_.task_.drop_view_task_ = drop_view_task; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_view_task) +} +inline ::greptime::v1::meta::DropViewTask* DdlTaskRequest::_internal_mutable_drop_view_task() { + if (!_internal_has_drop_view_task()) { + clear_task(); + set_has_drop_view_task(); + _impl_.task_.drop_view_task_ = CreateMaybeMessage< ::greptime::v1::meta::DropViewTask >(GetArenaForAllocation()); + } + return _impl_.task_.drop_view_task_; +} +inline ::greptime::v1::meta::DropViewTask* DdlTaskRequest::mutable_drop_view_task() { + ::greptime::v1::meta::DropViewTask* _msg = _internal_mutable_drop_view_task(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.drop_view_task) + return _msg; +} + inline bool DdlTaskRequest::has_task() const { return task_case() != TASK_NOT_SET; } @@ -4810,6 +5568,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 26853ec..d7baee7 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{19, 0} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{21, 0} } // "Data Definition Language" requests, that create, modify or delete the @@ -98,6 +98,8 @@ type DdlRequest struct { // *DdlRequest_TruncateTable // *DdlRequest_CreateFlow // *DdlRequest_DropFlow + // *DdlRequest_CreateView + // *DdlRequest_DropView Expr isDdlRequest_Expr `protobuf_oneof:"expr"` } @@ -189,6 +191,20 @@ func (x *DdlRequest) GetDropFlow() *DropFlowExpr { return nil } +func (x *DdlRequest) GetCreateView() *CreateViewExpr { + if x, ok := x.GetExpr().(*DdlRequest_CreateView); ok { + return x.CreateView + } + return nil +} + +func (x *DdlRequest) GetDropView() *DropViewExpr { + if x, ok := x.GetExpr().(*DdlRequest_DropView); ok { + return x.DropView + } + return nil +} + type isDdlRequest_Expr interface { isDdlRequest_Expr() } @@ -221,6 +237,14 @@ type DdlRequest_DropFlow struct { DropFlow *DropFlowExpr `protobuf:"bytes,9,opt,name=drop_flow,json=dropFlow,proto3,oneof"` } +type DdlRequest_CreateView struct { + CreateView *CreateViewExpr `protobuf:"bytes,10,opt,name=create_view,json=createView,proto3,oneof"` +} + +type DdlRequest_DropView struct { + DropView *DropViewExpr `protobuf:"bytes,11,opt,name=drop_view,json=dropView,proto3,oneof"` +} + func (*DdlRequest_CreateDatabase) isDdlRequest_Expr() {} func (*DdlRequest_CreateTable) isDdlRequest_Expr() {} @@ -235,6 +259,10 @@ func (*DdlRequest_CreateFlow) isDdlRequest_Expr() {} func (*DdlRequest_DropFlow) isDdlRequest_Expr() {} +func (*DdlRequest_CreateView) isDdlRequest_Expr() {} + +func (*DdlRequest_DropView) isDdlRequest_Expr() {} + // Create a flow to run the SQL when new data arrives. type CreateFlowExpr struct { state protoimpl.MessageState @@ -427,6 +455,174 @@ func (x *DropFlowExpr) GetDropIfExists() bool { return false } +// Create a view +type CreateViewExpr 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"` + SchemaName string `protobuf:"bytes,2,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` + ViewName string `protobuf:"bytes,3,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` + LogicalPlan []byte `protobuf:"bytes,4,opt,name=logical_plan,json=logicalPlan,proto3" json:"logical_plan,omitempty"` + CreateIfNotExists bool `protobuf:"varint,5,opt,name=create_if_not_exists,json=createIfNotExists,proto3" json:"create_if_not_exists,omitempty"` + OrReplace bool `protobuf:"varint,6,opt,name=or_replace,json=orReplace,proto3" json:"or_replace,omitempty"` +} + +func (x *CreateViewExpr) Reset() { + *x = CreateViewExpr{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateViewExpr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateViewExpr) ProtoMessage() {} + +func (x *CreateViewExpr) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateViewExpr.ProtoReflect.Descriptor instead. +func (*CreateViewExpr) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{3} +} + +func (x *CreateViewExpr) GetCatalogName() string { + if x != nil { + return x.CatalogName + } + return "" +} + +func (x *CreateViewExpr) GetSchemaName() string { + if x != nil { + return x.SchemaName + } + return "" +} + +func (x *CreateViewExpr) GetViewName() string { + if x != nil { + return x.ViewName + } + return "" +} + +func (x *CreateViewExpr) GetLogicalPlan() []byte { + if x != nil { + return x.LogicalPlan + } + return nil +} + +func (x *CreateViewExpr) GetCreateIfNotExists() bool { + if x != nil { + return x.CreateIfNotExists + } + return false +} + +func (x *CreateViewExpr) GetOrReplace() bool { + if x != nil { + return x.OrReplace + } + return false +} + +// Drop a view +type DropViewExpr 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"` + SchemaName string `protobuf:"bytes,2,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` + ViewName string `protobuf:"bytes,3,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` + ViewId *TableId `protobuf:"bytes,4,opt,name=view_id,json=viewId,proto3" json:"view_id,omitempty"` + DropIfExists bool `protobuf:"varint,5,opt,name=drop_if_exists,json=dropIfExists,proto3" json:"drop_if_exists,omitempty"` +} + +func (x *DropViewExpr) Reset() { + *x = DropViewExpr{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DropViewExpr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DropViewExpr) ProtoMessage() {} + +func (x *DropViewExpr) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[4] + 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 DropViewExpr.ProtoReflect.Descriptor instead. +func (*DropViewExpr) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{4} +} + +func (x *DropViewExpr) GetCatalogName() string { + if x != nil { + return x.CatalogName + } + return "" +} + +func (x *DropViewExpr) GetSchemaName() string { + if x != nil { + return x.SchemaName + } + return "" +} + +func (x *DropViewExpr) GetViewName() string { + if x != nil { + return x.ViewName + } + return "" +} + +func (x *DropViewExpr) GetViewId() *TableId { + if x != nil { + return x.ViewId + } + return nil +} + +func (x *DropViewExpr) GetDropIfExists() bool { + if x != nil { + return x.DropIfExists + } + return false +} + type CreateTableExpr struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -448,7 +644,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[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -461,7 +657,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[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -474,7 +670,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{5} } func (x *CreateTableExpr) GetCatalogName() string { @@ -574,7 +770,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[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -587,7 +783,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[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -600,7 +796,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{6} } func (x *AlterExpr) GetCatalogName() string { @@ -702,7 +898,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[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -715,7 +911,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[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -728,7 +924,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{7} } func (x *DropTableExpr) GetCatalogName() string { @@ -780,7 +976,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[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -793,7 +989,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[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -806,7 +1002,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{8} } func (x *CreateDatabaseExpr) GetCatalogName() string { @@ -851,7 +1047,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[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -864,7 +1060,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[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -877,7 +1073,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{9} } func (x *TruncateTableExpr) GetCatalogName() string { @@ -921,7 +1117,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[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -934,7 +1130,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[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -947,7 +1143,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{10} } func (x *DropDatabaseExpr) GetCatalogName() string { @@ -982,7 +1178,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[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -995,7 +1191,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[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1008,7 +1204,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{11} } func (x *AddColumns) GetAddColumns() []*AddColumn { @@ -1029,7 +1225,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[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1042,7 +1238,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[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1055,7 +1251,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{12} } func (x *DropColumns) GetDropColumns() []*DropColumn { @@ -1076,7 +1272,7 @@ type ChangeColumnTypes struct { func (x *ChangeColumnTypes) Reset() { *x = ChangeColumnTypes{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[11] + mi := &file_greptime_v1_ddl_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1089,7 +1285,7 @@ func (x *ChangeColumnTypes) String() string { func (*ChangeColumnTypes) ProtoMessage() {} func (x *ChangeColumnTypes) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[11] + mi := &file_greptime_v1_ddl_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1102,7 +1298,7 @@ func (x *ChangeColumnTypes) ProtoReflect() protoreflect.Message { // Deprecated: Use ChangeColumnTypes.ProtoReflect.Descriptor instead. func (*ChangeColumnTypes) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13} } func (x *ChangeColumnTypes) GetChangeColumnTypes() []*ChangeColumnType { @@ -1123,7 +1319,7 @@ type RenameTable struct { func (x *RenameTable) Reset() { *x = RenameTable{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[12] + mi := &file_greptime_v1_ddl_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1136,7 +1332,7 @@ func (x *RenameTable) String() string { func (*RenameTable) ProtoMessage() {} func (x *RenameTable) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[12] + mi := &file_greptime_v1_ddl_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1149,7 +1345,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{12} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} } func (x *RenameTable) GetNewTableName() string { @@ -1171,7 +1367,7 @@ type AddColumn struct { func (x *AddColumn) Reset() { *x = AddColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[13] + mi := &file_greptime_v1_ddl_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1184,7 +1380,7 @@ func (x *AddColumn) String() string { func (*AddColumn) ProtoMessage() {} func (x *AddColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[13] + mi := &file_greptime_v1_ddl_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1197,7 +1393,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{13} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} } func (x *AddColumn) GetColumnDef() *ColumnDef { @@ -1227,7 +1423,7 @@ type ChangeColumnType struct { func (x *ChangeColumnType) Reset() { *x = ChangeColumnType{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[14] + mi := &file_greptime_v1_ddl_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1240,7 +1436,7 @@ func (x *ChangeColumnType) String() string { func (*ChangeColumnType) ProtoMessage() {} func (x *ChangeColumnType) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[14] + mi := &file_greptime_v1_ddl_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1253,7 +1449,7 @@ func (x *ChangeColumnType) ProtoReflect() protoreflect.Message { // Deprecated: Use ChangeColumnType.ProtoReflect.Descriptor instead. func (*ChangeColumnType) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} } func (x *ChangeColumnType) GetColumnName() string { @@ -1288,7 +1484,7 @@ type DropColumn struct { func (x *DropColumn) Reset() { *x = DropColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[15] + mi := &file_greptime_v1_ddl_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1301,7 +1497,7 @@ func (x *DropColumn) String() string { func (*DropColumn) ProtoMessage() {} func (x *DropColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[15] + mi := &file_greptime_v1_ddl_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1314,7 +1510,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{15} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17} } func (x *DropColumn) GetName() string { @@ -1335,7 +1531,7 @@ type TableId struct { func (x *TableId) Reset() { *x = TableId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[16] + mi := &file_greptime_v1_ddl_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1348,7 +1544,7 @@ func (x *TableId) String() string { func (*TableId) ProtoMessage() {} func (x *TableId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[16] + mi := &file_greptime_v1_ddl_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1361,7 +1557,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{16} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{18} } func (x *TableId) GetId() uint32 { @@ -1382,7 +1578,7 @@ type FlowId struct { func (x *FlowId) Reset() { *x = FlowId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[17] + mi := &file_greptime_v1_ddl_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1395,7 +1591,7 @@ func (x *FlowId) String() string { func (*FlowId) ProtoMessage() {} func (x *FlowId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[17] + mi := &file_greptime_v1_ddl_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1408,7 +1604,7 @@ func (x *FlowId) ProtoReflect() protoreflect.Message { // Deprecated: Use FlowId.ProtoReflect.Descriptor instead. func (*FlowId) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{19} } func (x *FlowId) GetId() uint32 { @@ -1436,7 +1632,7 @@ type ColumnDef struct { func (x *ColumnDef) Reset() { *x = ColumnDef{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[18] + mi := &file_greptime_v1_ddl_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1449,7 +1645,7 @@ func (x *ColumnDef) String() string { func (*ColumnDef) ProtoMessage() {} func (x *ColumnDef) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[18] + mi := &file_greptime_v1_ddl_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1462,7 +1658,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{18} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{20} } func (x *ColumnDef) GetName() string { @@ -1526,7 +1722,7 @@ type AddColumnLocation struct { func (x *AddColumnLocation) Reset() { *x = AddColumnLocation{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[19] + mi := &file_greptime_v1_ddl_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1539,7 +1735,7 @@ func (x *AddColumnLocation) String() string { func (*AddColumnLocation) ProtoMessage() {} func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[19] + mi := &file_greptime_v1_ddl_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1552,7 +1748,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{19} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{21} } func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType { @@ -1575,8 +1771,8 @@ 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, 0xd3, - 0x03, 0x0a, 0x0a, 0x44, 0x64, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, + 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, + 0x04, 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, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, @@ -1604,240 +1800,275 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x6f, 0x77, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x70, 0x72, - 0x48, 0x00, 0x52, 0x08, 0x64, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x42, 0x06, 0x0a, 0x04, - 0x65, 0x78, 0x70, 0x72, 0x22, 0x84, 0x04, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, - 0x6c, 0x6f, 0x77, 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, 0x66, 0x6c, - 0x6f, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, - 0x6c, 0x6f, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x44, 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, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 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, 0x3e, 0x0a, - 0x0f, 0x73, 0x69, 0x6e, 0x6b, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 0x1d, 0x0a, - 0x0a, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x09, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 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, 0x4f, 0x0a, 0x0c, 0x66, 0x6c, - 0x6f, 0x77, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 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, 0x46, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x46, 0x6c, - 0x6f, 0x77, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, - 0x66, 0x6c, 0x6f, 0x77, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x46, - 0x6c, 0x6f, 0x77, 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, 0xa2, 0x01, 0x0a, 0x0c, - 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, + 0x48, 0x00, 0x52, 0x08, 0x64, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x12, 0x3e, 0x0a, 0x0b, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x18, 0x0a, 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, 0x56, 0x69, 0x65, 0x77, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, + 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x65, 0x77, 0x12, 0x38, 0x0a, 0x09, + 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, + 0x6f, 0x70, 0x56, 0x69, 0x65, 0x77, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x08, 0x64, 0x72, + 0x6f, 0x70, 0x56, 0x69, 0x65, 0x77, 0x42, 0x06, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72, 0x22, 0x84, + 0x04, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 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, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x44, 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, 0x16, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 0x3e, 0x0a, 0x0f, 0x73, 0x69, 0x6e, 0x6b, 0x5f, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 0x1d, 0x0a, 0x0a, 0x6f, 0x72, 0x5f, 0x72, 0x65, + 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6f, 0x72, 0x52, + 0x65, 0x70, 0x6c, 0x61, 0x63, 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, 0x4f, 0x0a, 0x0c, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 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, 0x46, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x66, 0x6c, 0x6f, 0x77, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x46, 0x6c, 0x6f, 0x77, 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, 0xa2, 0x01, 0x0a, 0x0c, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, + 0x6f, 0x77, 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, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x6c, + 0x6f, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x07, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x52, 0x06, 0x66, 0x6c, + 0x6f, 0x77, 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, 0xe4, 0x01, 0x0a, 0x0e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x65, 0x77, 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, 0x1b, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, + 0x0a, 0x0c, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6c, 0x61, + 0x6e, 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, 0x1d, 0x0a, 0x0a, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, + 0x65, 0x22, 0xc4, 0x01, 0x0a, 0x0c, 0x44, 0x72, 0x6f, 0x70, 0x56, 0x69, 0x65, 0x77, 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, 0x1b, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x76, 0x69, 0x65, 0x77, 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, 0x06, 0x76, 0x69, 0x65, 0x77, + 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, 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, - 0x1b, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x07, - 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x6f, 0x77, - 0x49, 0x64, 0x52, 0x06, 0x66, 0x6c, 0x6f, 0x77, 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, 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, 0x82, 0x03, 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, 0x12, 0x50, 0x0a, 0x13, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, - 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x48, 0x00, - 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, - 0x70, 0x65, 0x73, 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, + 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, 0x82, + 0x03, 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, 0x12, 0x50, 0x0a, 0x13, 0x63, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x48, 0x00, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 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, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, - 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 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, - 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, 0x62, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x13, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x54, 0x79, 0x70, 0x65, 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, 0xcb, 0x01, 0x0a, 0x10, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 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, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, - 0x0a, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 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, 0x62, 0x0a, 0x11, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4d, + 0x0a, 0x13, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 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, 0xcb, 0x01, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 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, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x73, 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, 0x18, 0x0a, 0x06, 0x46, 0x6c, 0x6f, 0x77, 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, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 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, 0x13, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 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, 0x18, 0x0a, + 0x06, 0x46, 0x6c, 0x6f, 0x77, 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 ( @@ -1853,75 +2084,80 @@ 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, 23) +var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 25) var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType (*DdlRequest)(nil), // 1: greptime.v1.DdlRequest (*CreateFlowExpr)(nil), // 2: greptime.v1.CreateFlowExpr (*DropFlowExpr)(nil), // 3: greptime.v1.DropFlowExpr - (*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 - (*ChangeColumnTypes)(nil), // 12: greptime.v1.ChangeColumnTypes - (*RenameTable)(nil), // 13: greptime.v1.RenameTable - (*AddColumn)(nil), // 14: greptime.v1.AddColumn - (*ChangeColumnType)(nil), // 15: greptime.v1.ChangeColumnType - (*DropColumn)(nil), // 16: greptime.v1.DropColumn - (*TableId)(nil), // 17: greptime.v1.TableId - (*FlowId)(nil), // 18: greptime.v1.FlowId - (*ColumnDef)(nil), // 19: greptime.v1.ColumnDef - (*AddColumnLocation)(nil), // 20: greptime.v1.AddColumnLocation - nil, // 21: greptime.v1.CreateFlowExpr.FlowOptionsEntry - nil, // 22: greptime.v1.CreateTableExpr.TableOptionsEntry - nil, // 23: greptime.v1.CreateDatabaseExpr.OptionsEntry - (*TableName)(nil), // 24: greptime.v1.TableName - (ColumnDataType)(0), // 25: greptime.v1.ColumnDataType - (*ColumnDataTypeExtension)(nil), // 26: greptime.v1.ColumnDataTypeExtension - (SemanticType)(0), // 27: greptime.v1.SemanticType + (*CreateViewExpr)(nil), // 4: greptime.v1.CreateViewExpr + (*DropViewExpr)(nil), // 5: greptime.v1.DropViewExpr + (*CreateTableExpr)(nil), // 6: greptime.v1.CreateTableExpr + (*AlterExpr)(nil), // 7: greptime.v1.AlterExpr + (*DropTableExpr)(nil), // 8: greptime.v1.DropTableExpr + (*CreateDatabaseExpr)(nil), // 9: greptime.v1.CreateDatabaseExpr + (*TruncateTableExpr)(nil), // 10: greptime.v1.TruncateTableExpr + (*DropDatabaseExpr)(nil), // 11: greptime.v1.DropDatabaseExpr + (*AddColumns)(nil), // 12: greptime.v1.AddColumns + (*DropColumns)(nil), // 13: greptime.v1.DropColumns + (*ChangeColumnTypes)(nil), // 14: greptime.v1.ChangeColumnTypes + (*RenameTable)(nil), // 15: greptime.v1.RenameTable + (*AddColumn)(nil), // 16: greptime.v1.AddColumn + (*ChangeColumnType)(nil), // 17: greptime.v1.ChangeColumnType + (*DropColumn)(nil), // 18: greptime.v1.DropColumn + (*TableId)(nil), // 19: greptime.v1.TableId + (*FlowId)(nil), // 20: greptime.v1.FlowId + (*ColumnDef)(nil), // 21: greptime.v1.ColumnDef + (*AddColumnLocation)(nil), // 22: greptime.v1.AddColumnLocation + nil, // 23: greptime.v1.CreateFlowExpr.FlowOptionsEntry + nil, // 24: greptime.v1.CreateTableExpr.TableOptionsEntry + nil, // 25: greptime.v1.CreateDatabaseExpr.OptionsEntry + (*TableName)(nil), // 26: greptime.v1.TableName + (ColumnDataType)(0), // 27: greptime.v1.ColumnDataType + (*ColumnDataTypeExtension)(nil), // 28: greptime.v1.ColumnDataTypeExtension + (SemanticType)(0), // 29: greptime.v1.SemanticType } 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 + 9, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr + 6, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr + 7, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr + 8, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr + 10, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr 2, // 5: greptime.v1.DdlRequest.create_flow:type_name -> greptime.v1.CreateFlowExpr 3, // 6: greptime.v1.DdlRequest.drop_flow:type_name -> greptime.v1.DropFlowExpr - 24, // 7: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName - 24, // 8: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName - 21, // 9: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry - 18, // 10: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId - 19, // 11: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef - 22, // 12: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry - 17, // 13: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId - 10, // 14: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns - 11, // 15: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns - 13, // 16: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable - 12, // 17: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes - 17, // 18: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId - 23, // 19: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry - 17, // 20: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId - 14, // 21: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn - 16, // 22: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn - 15, // 23: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType - 19, // 24: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef - 20, // 25: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation - 25, // 26: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType - 26, // 27: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 25, // 28: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType - 27, // 29: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType - 26, // 30: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 0, // 31: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType - 32, // [32:32] is the sub-list for method output_type - 32, // [32:32] is the sub-list for method input_type - 32, // [32:32] is the sub-list for extension type_name - 32, // [32:32] is the sub-list for extension extendee - 0, // [0:32] is the sub-list for field type_name + 4, // 7: greptime.v1.DdlRequest.create_view:type_name -> greptime.v1.CreateViewExpr + 5, // 8: greptime.v1.DdlRequest.drop_view:type_name -> greptime.v1.DropViewExpr + 26, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName + 26, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName + 23, // 11: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry + 20, // 12: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId + 19, // 13: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId + 21, // 14: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef + 24, // 15: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry + 19, // 16: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId + 12, // 17: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns + 13, // 18: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns + 15, // 19: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable + 14, // 20: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes + 19, // 21: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId + 25, // 22: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry + 19, // 23: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId + 16, // 24: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn + 18, // 25: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 17, // 26: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType + 21, // 27: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 22, // 28: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 27, // 29: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType + 28, // 30: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 27, // 31: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType + 29, // 32: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType + 28, // 33: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 0, // 34: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType + 35, // [35:35] is the sub-list for method output_type + 35, // [35:35] is the sub-list for method input_type + 35, // [35:35] is the sub-list for extension type_name + 35, // [35:35] is the sub-list for extension extendee + 0, // [0:35] is the sub-list for field type_name } func init() { file_greptime_v1_ddl_proto_init() } @@ -1968,7 +2204,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.(*CreateViewExpr); i { case 0: return &v.state case 1: @@ -1980,7 +2216,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.(*DropViewExpr); i { case 0: return &v.state case 1: @@ -1992,7 +2228,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.(*CreateTableExpr); i { case 0: return &v.state case 1: @@ -2004,7 +2240,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.(*AlterExpr); i { case 0: return &v.state case 1: @@ -2016,7 +2252,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.(*DropTableExpr); i { case 0: return &v.state case 1: @@ -2028,7 +2264,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.(*CreateDatabaseExpr); i { case 0: return &v.state case 1: @@ -2040,7 +2276,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.(*TruncateTableExpr); i { case 0: return &v.state case 1: @@ -2052,7 +2288,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.(*DropDatabaseExpr); i { case 0: return &v.state case 1: @@ -2064,7 +2300,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.(*ChangeColumnTypes); i { + switch v := v.(*AddColumns); i { case 0: return &v.state case 1: @@ -2076,7 +2312,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.(*RenameTable); i { + switch v := v.(*DropColumns); i { case 0: return &v.state case 1: @@ -2088,7 +2324,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.(*AddColumn); i { + switch v := v.(*ChangeColumnTypes); i { case 0: return &v.state case 1: @@ -2100,7 +2336,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.(*ChangeColumnType); i { + switch v := v.(*RenameTable); i { case 0: return &v.state case 1: @@ -2112,7 +2348,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.(*DropColumn); i { + switch v := v.(*AddColumn); i { case 0: return &v.state case 1: @@ -2124,7 +2360,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TableId); i { + switch v := v.(*ChangeColumnType); i { case 0: return &v.state case 1: @@ -2136,7 +2372,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FlowId); i { + switch v := v.(*DropColumn); i { case 0: return &v.state case 1: @@ -2148,7 +2384,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColumnDef); i { + switch v := v.(*TableId); i { case 0: return &v.state case 1: @@ -2160,6 +2396,30 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FlowId); 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[20].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[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddColumnLocation); i { case 0: return &v.state @@ -2180,8 +2440,10 @@ func file_greptime_v1_ddl_proto_init() { (*DdlRequest_TruncateTable)(nil), (*DdlRequest_CreateFlow)(nil), (*DdlRequest_DropFlow)(nil), + (*DdlRequest_CreateView)(nil), + (*DdlRequest_DropView)(nil), } - file_greptime_v1_ddl_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_greptime_v1_ddl_proto_msgTypes[6].OneofWrappers = []interface{}{ (*AlterExpr_AddColumns)(nil), (*AlterExpr_DropColumns)(nil), (*AlterExpr_RenameTable)(nil), @@ -2193,7 +2455,7 @@ func file_greptime_v1_ddl_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, NumEnums: 1, - NumMessages: 23, + NumMessages: 25, NumExtensions: 0, NumServices: 0, }, diff --git a/go/greptime/v1/meta/ddl.pb.go b/go/greptime/v1/meta/ddl.pb.go index dbeeb24..ea4e99a 100644 --- a/go/greptime/v1/meta/ddl.pb.go +++ b/go/greptime/v1/meta/ddl.pb.go @@ -614,6 +614,110 @@ func (x *DropFlowTask) GetDropFlow() *v1.DropFlowExpr { return nil } +// Create a view task +type CreateViewTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CreateView *v1.CreateViewExpr `protobuf:"bytes,1,opt,name=create_view,json=createView,proto3" json:"create_view,omitempty"` + ViewInfo []byte `protobuf:"bytes,2,opt,name=view_info,json=viewInfo,proto3" json:"view_info,omitempty"` +} + +func (x *CreateViewTask) Reset() { + *x = CreateViewTask{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateViewTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateViewTask) ProtoMessage() {} + +func (x *CreateViewTask) ProtoReflect() protoreflect.Message { + 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 { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateViewTask.ProtoReflect.Descriptor instead. +func (*CreateViewTask) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{11} +} + +func (x *CreateViewTask) GetCreateView() *v1.CreateViewExpr { + if x != nil { + return x.CreateView + } + return nil +} + +func (x *CreateViewTask) GetViewInfo() []byte { + if x != nil { + return x.ViewInfo + } + return nil +} + +// Drop a view task +type DropViewTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DropView *v1.DropViewExpr `protobuf:"bytes,1,opt,name=drop_view,json=dropView,proto3" json:"drop_view,omitempty"` +} + +func (x *DropViewTask) Reset() { + *x = DropViewTask{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DropViewTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DropViewTask) ProtoMessage() {} + +func (x *DropViewTask) ProtoReflect() protoreflect.Message { + 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 { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DropViewTask.ProtoReflect.Descriptor instead. +func (*DropViewTask) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{12} +} + +func (x *DropViewTask) GetDropView() *v1.DropViewExpr { + if x != nil { + return x.DropView + } + return nil +} + type DdlTaskRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -634,13 +738,15 @@ type DdlTaskRequest struct { // *DdlTaskRequest_CreateDatabaseTask // *DdlTaskRequest_CreateFlowTask // *DdlTaskRequest_DropFlowTask + // *DdlTaskRequest_CreateViewTask + // *DdlTaskRequest_DropViewTask Task isDdlTaskRequest_Task `protobuf_oneof:"task"` } func (x *DdlTaskRequest) Reset() { *x = DdlTaskRequest{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_ddl_proto_msgTypes[11] + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -653,7 +759,7 @@ func (x *DdlTaskRequest) String() string { func (*DdlTaskRequest) ProtoMessage() {} func (x *DdlTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_ddl_proto_msgTypes[11] + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -666,7 +772,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{11} + return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{13} } func (x *DdlTaskRequest) GetHeader() *RequestHeader { @@ -767,6 +873,20 @@ func (x *DdlTaskRequest) GetDropFlowTask() *DropFlowTask { return nil } +func (x *DdlTaskRequest) GetCreateViewTask() *CreateViewTask { + if x, ok := x.GetTask().(*DdlTaskRequest_CreateViewTask); ok { + return x.CreateViewTask + } + return nil +} + +func (x *DdlTaskRequest) GetDropViewTask() *DropViewTask { + if x, ok := x.GetTask().(*DdlTaskRequest_DropViewTask); ok { + return x.DropViewTask + } + return nil +} + type isDdlTaskRequest_Task interface { isDdlTaskRequest_Task() } @@ -815,6 +935,14 @@ type DdlTaskRequest_DropFlowTask struct { DropFlowTask *DropFlowTask `protobuf:"bytes,12,opt,name=drop_flow_task,json=dropFlowTask,proto3,oneof"` } +type DdlTaskRequest_CreateViewTask struct { + CreateViewTask *CreateViewTask `protobuf:"bytes,13,opt,name=create_view_task,json=createViewTask,proto3,oneof"` +} + +type DdlTaskRequest_DropViewTask struct { + DropViewTask *DropViewTask `protobuf:"bytes,14,opt,name=drop_view_task,json=dropViewTask,proto3,oneof"` +} + func (*DdlTaskRequest_CreateTableTask) isDdlTaskRequest_Task() {} func (*DdlTaskRequest_DropTableTask) isDdlTaskRequest_Task() {} @@ -837,6 +965,10 @@ func (*DdlTaskRequest_CreateFlowTask) isDdlTaskRequest_Task() {} func (*DdlTaskRequest_DropFlowTask) isDdlTaskRequest_Task() {} +func (*DdlTaskRequest_CreateViewTask) isDdlTaskRequest_Task() {} + +func (*DdlTaskRequest_DropViewTask) isDdlTaskRequest_Task() {} + type DdlTaskResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -854,7 +986,7 @@ type DdlTaskResponse struct { func (x *DdlTaskResponse) Reset() { *x = DdlTaskResponse{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_ddl_proto_msgTypes[12] + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -867,7 +999,7 @@ func (x *DdlTaskResponse) String() string { func (*DdlTaskResponse) ProtoMessage() {} func (x *DdlTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_ddl_proto_msgTypes[12] + mi := &file_greptime_v1_meta_ddl_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -880,7 +1012,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{12} + return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{14} } func (x *DdlTaskResponse) GetHeader() *ResponseHeader { @@ -985,92 +1117,113 @@ var file_greptime_v1_meta_ddl_proto_rawDesc = []byte{ 0x70, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x70, 0x72, 0x52, 0x08, 0x64, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, - 0x77, 0x22, 0x89, 0x08, 0x0a, 0x0e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3e, 0x0a, - 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x40, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, - 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x4f, 0x0a, - 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, - 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, - 0x0a, 0x0f, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, - 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, - 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, - 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x11, 0x74, 0x72, 0x75, - 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x52, - 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, - 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, - 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x73, 0x12, 0x4c, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, - 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, - 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, - 0x12, 0x4f, 0x0a, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, - 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, - 0x52, 0x0f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, - 0x73, 0x12, 0x52, 0x0a, 0x12, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, - 0x73, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, + 0x77, 0x22, 0x6b, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x65, 0x77, 0x54, + 0x61, 0x73, 0x6b, 0x12, 0x3c, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x69, + 0x65, 0x77, 0x18, 0x01, 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, 0x56, 0x69, 0x65, + 0x77, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x65, + 0x77, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x46, + 0x0a, 0x0c, 0x44, 0x72, 0x6f, 0x70, 0x56, 0x69, 0x65, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x36, + 0x0a, 0x09, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x72, 0x6f, 0x70, 0x56, 0x69, 0x65, 0x77, 0x45, 0x78, 0x70, 0x72, 0x52, 0x08, 0x64, 0x72, + 0x6f, 0x70, 0x56, 0x69, 0x65, 0x77, 0x22, 0x9f, 0x09, 0x0a, 0x0e, 0x44, 0x64, 0x6c, 0x54, 0x61, + 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x12, 0x3e, 0x0a, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, + 0x65, 0x78, 0x74, 0x18, 0x40, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, + 0x74, 0x65, 0x78, 0x74, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x78, 0x74, 0x12, 0x4f, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, - 0x2e, 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, 0xe0, 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, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, + 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, + 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0f, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, + 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, + 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, + 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, + 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, + 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x6c, + 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x13, + 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, + 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x75, + 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, + 0x52, 0x11, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, + 0x61, 0x73, 0x6b, 0x12, 0x52, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, + 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, + 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4c, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x6d, 0x65, 0x74, 0x61, 0x2e, 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, 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, 0x31, 0x0a, - 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, - 0x2a, 0x23, 0x0a, 0x0b, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x0a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, - 0x72, 0x6f, 0x70, 0x10, 0x01, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, - 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, - 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, + 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4f, 0x0a, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, + 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x52, 0x0a, 0x12, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, + 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x61, + 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x58, 0x0a, 0x14, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x61, + 0x73, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, + 0x52, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, + 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, + 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, + 0x48, 0x00, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, + 0x73, 0x6b, 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, + 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x72, + 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, + 0x65, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x56, 0x69, 0x65, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, + 0x5f, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x56, 0x69, 0x65, 0x77, 0x54, 0x61, 0x73, 0x6b, + 0x48, 0x00, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x56, 0x69, 0x65, 0x77, 0x54, 0x61, 0x73, 0x6b, + 0x42, 0x06, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, 0xe0, 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, 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, 0x31, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, + 0x64, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x2a, 0x23, 0x0a, 0x0b, 0x44, + 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10, 0x01, + 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1086,7 +1239,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, 13) +var file_greptime_v1_meta_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 15) var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{ (DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType (*CreateDatabaseTask)(nil), // 1: greptime.v1.meta.CreateDatabaseTask @@ -1100,58 +1253,66 @@ var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{ (*DropDatabaseTask)(nil), // 9: greptime.v1.meta.DropDatabaseTask (*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.CreateFlowExpr)(nil), // 21: greptime.v1.CreateFlowExpr - (*v1.DropFlowExpr)(nil), // 22: greptime.v1.DropFlowExpr - (*RequestHeader)(nil), // 23: greptime.v1.meta.RequestHeader - (*v1.QueryContext)(nil), // 24: greptime.v1.QueryContext - (*ResponseHeader)(nil), // 25: greptime.v1.meta.ResponseHeader - (*ProcedureId)(nil), // 26: greptime.v1.meta.ProcedureId - (*v1.TableId)(nil), // 27: greptime.v1.TableId + (*CreateViewTask)(nil), // 12: greptime.v1.meta.CreateViewTask + (*DropViewTask)(nil), // 13: greptime.v1.meta.DropViewTask + (*DdlTaskRequest)(nil), // 14: greptime.v1.meta.DdlTaskRequest + (*DdlTaskResponse)(nil), // 15: greptime.v1.meta.DdlTaskResponse + (*v1.CreateDatabaseExpr)(nil), // 16: greptime.v1.CreateDatabaseExpr + (*v1.CreateTableExpr)(nil), // 17: greptime.v1.CreateTableExpr + (*Partition)(nil), // 18: greptime.v1.meta.Partition + (*v1.DropTableExpr)(nil), // 19: greptime.v1.DropTableExpr + (*v1.AlterExpr)(nil), // 20: greptime.v1.AlterExpr + (*v1.TruncateTableExpr)(nil), // 21: greptime.v1.TruncateTableExpr + (*v1.DropDatabaseExpr)(nil), // 22: greptime.v1.DropDatabaseExpr + (*v1.CreateFlowExpr)(nil), // 23: greptime.v1.CreateFlowExpr + (*v1.DropFlowExpr)(nil), // 24: greptime.v1.DropFlowExpr + (*v1.CreateViewExpr)(nil), // 25: greptime.v1.CreateViewExpr + (*v1.DropViewExpr)(nil), // 26: greptime.v1.DropViewExpr + (*RequestHeader)(nil), // 27: greptime.v1.meta.RequestHeader + (*v1.QueryContext)(nil), // 28: greptime.v1.QueryContext + (*ResponseHeader)(nil), // 29: greptime.v1.meta.ResponseHeader + (*ProcedureId)(nil), // 30: greptime.v1.meta.ProcedureId + (*v1.TableId)(nil), // 31: greptime.v1.TableId } var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{ - 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 + 16, // 0: greptime.v1.meta.CreateDatabaseTask.create_database:type_name -> greptime.v1.CreateDatabaseExpr + 17, // 1: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr + 18, // 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 - 17, // 4: greptime.v1.meta.DropTableTask.drop_table:type_name -> greptime.v1.DropTableExpr + 19, // 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 - 18, // 6: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterExpr + 20, // 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 - 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:type_name -> greptime.v1.CreateFlowExpr - 22, // 11: greptime.v1.meta.DropFlowTask.drop_flow:type_name -> greptime.v1.DropFlowExpr - 23, // 12: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader - 24, // 13: greptime.v1.meta.DdlTaskRequest.query_context:type_name -> greptime.v1.QueryContext - 2, // 14: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask - 4, // 15: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask - 6, // 16: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask - 8, // 17: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask - 3, // 18: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks - 5, // 19: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks - 7, // 20: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks - 9, // 21: greptime.v1.meta.DdlTaskRequest.drop_database_task:type_name -> greptime.v1.meta.DropDatabaseTask - 1, // 22: greptime.v1.meta.DdlTaskRequest.create_database_task:type_name -> greptime.v1.meta.CreateDatabaseTask - 10, // 23: greptime.v1.meta.DdlTaskRequest.create_flow_task:type_name -> greptime.v1.meta.CreateFlowTask - 11, // 24: greptime.v1.meta.DdlTaskRequest.drop_flow_task:type_name -> greptime.v1.meta.DropFlowTask - 25, // 25: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 26, // 26: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId - 27, // 27: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.TableId - 27, // 28: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.TableId - 29, // [29:29] is the sub-list for method output_type - 29, // [29:29] is the sub-list for method input_type - 29, // [29:29] is the sub-list for extension type_name - 29, // [29:29] is the sub-list for extension extendee - 0, // [0:29] is the sub-list for field type_name + 21, // 8: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr + 22, // 9: greptime.v1.meta.DropDatabaseTask.drop_database:type_name -> greptime.v1.DropDatabaseExpr + 23, // 10: greptime.v1.meta.CreateFlowTask.create_flow:type_name -> greptime.v1.CreateFlowExpr + 24, // 11: greptime.v1.meta.DropFlowTask.drop_flow:type_name -> greptime.v1.DropFlowExpr + 25, // 12: greptime.v1.meta.CreateViewTask.create_view:type_name -> greptime.v1.CreateViewExpr + 26, // 13: greptime.v1.meta.DropViewTask.drop_view:type_name -> greptime.v1.DropViewExpr + 27, // 14: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader + 28, // 15: greptime.v1.meta.DdlTaskRequest.query_context:type_name -> greptime.v1.QueryContext + 2, // 16: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask + 4, // 17: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask + 6, // 18: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask + 8, // 19: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask + 3, // 20: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks + 5, // 21: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks + 7, // 22: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks + 9, // 23: greptime.v1.meta.DdlTaskRequest.drop_database_task:type_name -> greptime.v1.meta.DropDatabaseTask + 1, // 24: greptime.v1.meta.DdlTaskRequest.create_database_task:type_name -> greptime.v1.meta.CreateDatabaseTask + 10, // 25: greptime.v1.meta.DdlTaskRequest.create_flow_task:type_name -> greptime.v1.meta.CreateFlowTask + 11, // 26: greptime.v1.meta.DdlTaskRequest.drop_flow_task:type_name -> greptime.v1.meta.DropFlowTask + 12, // 27: greptime.v1.meta.DdlTaskRequest.create_view_task:type_name -> greptime.v1.meta.CreateViewTask + 13, // 28: greptime.v1.meta.DdlTaskRequest.drop_view_task:type_name -> greptime.v1.meta.DropViewTask + 29, // 29: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 30, // 30: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId + 31, // 31: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.TableId + 31, // 32: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.TableId + 33, // [33:33] is the sub-list for method output_type + 33, // [33:33] is the sub-list for method input_type + 33, // [33:33] is the sub-list for extension type_name + 33, // [33:33] is the sub-list for extension extendee + 0, // [0:33] is the sub-list for field type_name } func init() { file_greptime_v1_meta_ddl_proto_init() } @@ -1295,7 +1456,7 @@ func file_greptime_v1_meta_ddl_proto_init() { } } file_greptime_v1_meta_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DdlTaskRequest); i { + switch v := v.(*CreateViewTask); i { case 0: return &v.state case 1: @@ -1307,6 +1468,30 @@ func file_greptime_v1_meta_ddl_proto_init() { } } file_greptime_v1_meta_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DropViewTask); 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[13].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[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DdlTaskResponse); i { case 0: return &v.state @@ -1319,7 +1504,7 @@ func file_greptime_v1_meta_ddl_proto_init() { } } } - file_greptime_v1_meta_ddl_proto_msgTypes[11].OneofWrappers = []interface{}{ + file_greptime_v1_meta_ddl_proto_msgTypes[13].OneofWrappers = []interface{}{ (*DdlTaskRequest_CreateTableTask)(nil), (*DdlTaskRequest_DropTableTask)(nil), (*DdlTaskRequest_AlterTableTask)(nil), @@ -1331,6 +1516,8 @@ func file_greptime_v1_meta_ddl_proto_init() { (*DdlTaskRequest_CreateDatabaseTask)(nil), (*DdlTaskRequest_CreateFlowTask)(nil), (*DdlTaskRequest_DropFlowTask)(nil), + (*DdlTaskRequest_CreateViewTask)(nil), + (*DdlTaskRequest_DropViewTask)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -1338,7 +1525,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: 13, + NumMessages: 15, 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 c961794..a107e9c 100644 --- a/java/src/main/java/greptime/v1/meta/Ddl.java +++ b/java/src/main/java/greptime/v1/meta/Ddl.java @@ -7940,6 +7940,1342 @@ public final class Ddl { } + public interface CreateViewTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.CreateViewTask) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.CreateViewExpr create_view = 1; + * @return Whether the createView field is set. + */ + boolean hasCreateView(); + /** + * .greptime.v1.CreateViewExpr create_view = 1; + * @return The createView. + */ + io.greptime.v1.Ddl.CreateViewExpr getCreateView(); + /** + * .greptime.v1.CreateViewExpr create_view = 1; + */ + io.greptime.v1.Ddl.CreateViewExprOrBuilder getCreateViewOrBuilder(); + + /** + * bytes view_info = 2; + * @return The viewInfo. + */ + com.google.protobuf.ByteString getViewInfo(); + } + /** + *
+   * Create a view task
+   * 
+ * + * Protobuf type {@code greptime.v1.meta.CreateViewTask} + */ + public static final class CreateViewTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.CreateViewTask) + CreateViewTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateViewTask.newBuilder() to construct. + private CreateViewTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateViewTask() { + viewInfo_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateViewTask(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateViewTask( + 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.CreateViewExpr.Builder subBuilder = null; + if (createView_ != null) { + subBuilder = createView_.toBuilder(); + } + createView_ = input.readMessage(io.greptime.v1.Ddl.CreateViewExpr.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createView_); + createView_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + + viewInfo_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_CreateViewTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_CreateViewTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Ddl.CreateViewTask.class, greptime.v1.meta.Ddl.CreateViewTask.Builder.class); + } + + public static final int CREATE_VIEW_FIELD_NUMBER = 1; + private io.greptime.v1.Ddl.CreateViewExpr createView_; + /** + * .greptime.v1.CreateViewExpr create_view = 1; + * @return Whether the createView field is set. + */ + @java.lang.Override + public boolean hasCreateView() { + return createView_ != null; + } + /** + * .greptime.v1.CreateViewExpr create_view = 1; + * @return The createView. + */ + @java.lang.Override + public io.greptime.v1.Ddl.CreateViewExpr getCreateView() { + return createView_ == null ? io.greptime.v1.Ddl.CreateViewExpr.getDefaultInstance() : createView_; + } + /** + * .greptime.v1.CreateViewExpr create_view = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.CreateViewExprOrBuilder getCreateViewOrBuilder() { + return getCreateView(); + } + + public static final int VIEW_INFO_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString viewInfo_; + /** + * bytes view_info = 2; + * @return The viewInfo. + */ + @java.lang.Override + public com.google.protobuf.ByteString getViewInfo() { + return viewInfo_; + } + + 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 (createView_ != null) { + output.writeMessage(1, getCreateView()); + } + if (!viewInfo_.isEmpty()) { + output.writeBytes(2, viewInfo_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateView()); + } + if (!viewInfo_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, viewInfo_); + } + 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.CreateViewTask)) { + return super.equals(obj); + } + greptime.v1.meta.Ddl.CreateViewTask other = (greptime.v1.meta.Ddl.CreateViewTask) obj; + + if (hasCreateView() != other.hasCreateView()) return false; + if (hasCreateView()) { + if (!getCreateView() + .equals(other.getCreateView())) return false; + } + if (!getViewInfo() + .equals(other.getViewInfo())) 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 (hasCreateView()) { + hash = (37 * hash) + CREATE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getCreateView().hashCode(); + } + hash = (37 * hash) + VIEW_INFO_FIELD_NUMBER; + hash = (53 * hash) + getViewInfo().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Ddl.CreateViewTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Ddl.CreateViewTask 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.CreateViewTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Ddl.CreateViewTask 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.CreateViewTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Ddl.CreateViewTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Ddl.CreateViewTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Ddl.CreateViewTask 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.CreateViewTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Ddl.CreateViewTask 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.CreateViewTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Ddl.CreateViewTask 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.CreateViewTask 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; + } + /** + *
+     * Create a view task
+     * 
+ * + * Protobuf type {@code greptime.v1.meta.CreateViewTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.CreateViewTask) + greptime.v1.meta.Ddl.CreateViewTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_CreateViewTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_CreateViewTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Ddl.CreateViewTask.class, greptime.v1.meta.Ddl.CreateViewTask.Builder.class); + } + + // Construct using greptime.v1.meta.Ddl.CreateViewTask.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 (createViewBuilder_ == null) { + createView_ = null; + } else { + createView_ = null; + createViewBuilder_ = null; + } + viewInfo_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_CreateViewTask_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Ddl.CreateViewTask getDefaultInstanceForType() { + return greptime.v1.meta.Ddl.CreateViewTask.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Ddl.CreateViewTask build() { + greptime.v1.meta.Ddl.CreateViewTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Ddl.CreateViewTask buildPartial() { + greptime.v1.meta.Ddl.CreateViewTask result = new greptime.v1.meta.Ddl.CreateViewTask(this); + if (createViewBuilder_ == null) { + result.createView_ = createView_; + } else { + result.createView_ = createViewBuilder_.build(); + } + result.viewInfo_ = viewInfo_; + 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.CreateViewTask) { + return mergeFrom((greptime.v1.meta.Ddl.CreateViewTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Ddl.CreateViewTask other) { + if (other == greptime.v1.meta.Ddl.CreateViewTask.getDefaultInstance()) return this; + if (other.hasCreateView()) { + mergeCreateView(other.getCreateView()); + } + if (other.getViewInfo() != com.google.protobuf.ByteString.EMPTY) { + setViewInfo(other.getViewInfo()); + } + 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.CreateViewTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Ddl.CreateViewTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.greptime.v1.Ddl.CreateViewExpr createView_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.CreateViewExpr, io.greptime.v1.Ddl.CreateViewExpr.Builder, io.greptime.v1.Ddl.CreateViewExprOrBuilder> createViewBuilder_; + /** + * .greptime.v1.CreateViewExpr create_view = 1; + * @return Whether the createView field is set. + */ + public boolean hasCreateView() { + return createViewBuilder_ != null || createView_ != null; + } + /** + * .greptime.v1.CreateViewExpr create_view = 1; + * @return The createView. + */ + public io.greptime.v1.Ddl.CreateViewExpr getCreateView() { + if (createViewBuilder_ == null) { + return createView_ == null ? io.greptime.v1.Ddl.CreateViewExpr.getDefaultInstance() : createView_; + } else { + return createViewBuilder_.getMessage(); + } + } + /** + * .greptime.v1.CreateViewExpr create_view = 1; + */ + public Builder setCreateView(io.greptime.v1.Ddl.CreateViewExpr value) { + if (createViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createView_ = value; + onChanged(); + } else { + createViewBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.CreateViewExpr create_view = 1; + */ + public Builder setCreateView( + io.greptime.v1.Ddl.CreateViewExpr.Builder builderForValue) { + if (createViewBuilder_ == null) { + createView_ = builderForValue.build(); + onChanged(); + } else { + createViewBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.CreateViewExpr create_view = 1; + */ + public Builder mergeCreateView(io.greptime.v1.Ddl.CreateViewExpr value) { + if (createViewBuilder_ == null) { + if (createView_ != null) { + createView_ = + io.greptime.v1.Ddl.CreateViewExpr.newBuilder(createView_).mergeFrom(value).buildPartial(); + } else { + createView_ = value; + } + onChanged(); + } else { + createViewBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.CreateViewExpr create_view = 1; + */ + public Builder clearCreateView() { + if (createViewBuilder_ == null) { + createView_ = null; + onChanged(); + } else { + createView_ = null; + createViewBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.CreateViewExpr create_view = 1; + */ + public io.greptime.v1.Ddl.CreateViewExpr.Builder getCreateViewBuilder() { + + onChanged(); + return getCreateViewFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.CreateViewExpr create_view = 1; + */ + public io.greptime.v1.Ddl.CreateViewExprOrBuilder getCreateViewOrBuilder() { + if (createViewBuilder_ != null) { + return createViewBuilder_.getMessageOrBuilder(); + } else { + return createView_ == null ? + io.greptime.v1.Ddl.CreateViewExpr.getDefaultInstance() : createView_; + } + } + /** + * .greptime.v1.CreateViewExpr create_view = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.CreateViewExpr, io.greptime.v1.Ddl.CreateViewExpr.Builder, io.greptime.v1.Ddl.CreateViewExprOrBuilder> + getCreateViewFieldBuilder() { + if (createViewBuilder_ == null) { + createViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.CreateViewExpr, io.greptime.v1.Ddl.CreateViewExpr.Builder, io.greptime.v1.Ddl.CreateViewExprOrBuilder>( + getCreateView(), + getParentForChildren(), + isClean()); + createView_ = null; + } + return createViewBuilder_; + } + + private com.google.protobuf.ByteString viewInfo_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes view_info = 2; + * @return The viewInfo. + */ + @java.lang.Override + public com.google.protobuf.ByteString getViewInfo() { + return viewInfo_; + } + /** + * bytes view_info = 2; + * @param value The viewInfo to set. + * @return This builder for chaining. + */ + public Builder setViewInfo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + viewInfo_ = value; + onChanged(); + return this; + } + /** + * bytes view_info = 2; + * @return This builder for chaining. + */ + public Builder clearViewInfo() { + + viewInfo_ = getDefaultInstance().getViewInfo(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.CreateViewTask) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.CreateViewTask) + private static final greptime.v1.meta.Ddl.CreateViewTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Ddl.CreateViewTask(); + } + + public static greptime.v1.meta.Ddl.CreateViewTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateViewTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateViewTask(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.CreateViewTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DropViewTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.DropViewTask) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.DropViewExpr drop_view = 1; + * @return Whether the dropView field is set. + */ + boolean hasDropView(); + /** + * .greptime.v1.DropViewExpr drop_view = 1; + * @return The dropView. + */ + io.greptime.v1.Ddl.DropViewExpr getDropView(); + /** + * .greptime.v1.DropViewExpr drop_view = 1; + */ + io.greptime.v1.Ddl.DropViewExprOrBuilder getDropViewOrBuilder(); + } + /** + *
+   * Drop a view task
+   * 
+ * + * Protobuf type {@code greptime.v1.meta.DropViewTask} + */ + public static final class DropViewTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.DropViewTask) + DropViewTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DropViewTask.newBuilder() to construct. + private DropViewTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DropViewTask() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DropViewTask(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DropViewTask( + 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.DropViewExpr.Builder subBuilder = null; + if (dropView_ != null) { + subBuilder = dropView_.toBuilder(); + } + dropView_ = input.readMessage(io.greptime.v1.Ddl.DropViewExpr.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dropView_); + dropView_ = 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_DropViewTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DropViewTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Ddl.DropViewTask.class, greptime.v1.meta.Ddl.DropViewTask.Builder.class); + } + + public static final int DROP_VIEW_FIELD_NUMBER = 1; + private io.greptime.v1.Ddl.DropViewExpr dropView_; + /** + * .greptime.v1.DropViewExpr drop_view = 1; + * @return Whether the dropView field is set. + */ + @java.lang.Override + public boolean hasDropView() { + return dropView_ != null; + } + /** + * .greptime.v1.DropViewExpr drop_view = 1; + * @return The dropView. + */ + @java.lang.Override + public io.greptime.v1.Ddl.DropViewExpr getDropView() { + return dropView_ == null ? io.greptime.v1.Ddl.DropViewExpr.getDefaultInstance() : dropView_; + } + /** + * .greptime.v1.DropViewExpr drop_view = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.DropViewExprOrBuilder getDropViewOrBuilder() { + return getDropView(); + } + + 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 (dropView_ != null) { + output.writeMessage(1, getDropView()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dropView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDropView()); + } + 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.DropViewTask)) { + return super.equals(obj); + } + greptime.v1.meta.Ddl.DropViewTask other = (greptime.v1.meta.Ddl.DropViewTask) obj; + + if (hasDropView() != other.hasDropView()) return false; + if (hasDropView()) { + if (!getDropView() + .equals(other.getDropView())) 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 (hasDropView()) { + hash = (37 * hash) + DROP_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getDropView().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Ddl.DropViewTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Ddl.DropViewTask 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.DropViewTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Ddl.DropViewTask 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.DropViewTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Ddl.DropViewTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Ddl.DropViewTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Ddl.DropViewTask 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.DropViewTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Ddl.DropViewTask 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.DropViewTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Ddl.DropViewTask 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.DropViewTask 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; + } + /** + *
+     * Drop a view task
+     * 
+ * + * Protobuf type {@code greptime.v1.meta.DropViewTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.DropViewTask) + greptime.v1.meta.Ddl.DropViewTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DropViewTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DropViewTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Ddl.DropViewTask.class, greptime.v1.meta.Ddl.DropViewTask.Builder.class); + } + + // Construct using greptime.v1.meta.Ddl.DropViewTask.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 (dropViewBuilder_ == null) { + dropView_ = null; + } else { + dropView_ = null; + dropViewBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DropViewTask_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Ddl.DropViewTask getDefaultInstanceForType() { + return greptime.v1.meta.Ddl.DropViewTask.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Ddl.DropViewTask build() { + greptime.v1.meta.Ddl.DropViewTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Ddl.DropViewTask buildPartial() { + greptime.v1.meta.Ddl.DropViewTask result = new greptime.v1.meta.Ddl.DropViewTask(this); + if (dropViewBuilder_ == null) { + result.dropView_ = dropView_; + } else { + result.dropView_ = dropViewBuilder_.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.DropViewTask) { + return mergeFrom((greptime.v1.meta.Ddl.DropViewTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Ddl.DropViewTask other) { + if (other == greptime.v1.meta.Ddl.DropViewTask.getDefaultInstance()) return this; + if (other.hasDropView()) { + mergeDropView(other.getDropView()); + } + 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.DropViewTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Ddl.DropViewTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.greptime.v1.Ddl.DropViewExpr dropView_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.DropViewExpr, io.greptime.v1.Ddl.DropViewExpr.Builder, io.greptime.v1.Ddl.DropViewExprOrBuilder> dropViewBuilder_; + /** + * .greptime.v1.DropViewExpr drop_view = 1; + * @return Whether the dropView field is set. + */ + public boolean hasDropView() { + return dropViewBuilder_ != null || dropView_ != null; + } + /** + * .greptime.v1.DropViewExpr drop_view = 1; + * @return The dropView. + */ + public io.greptime.v1.Ddl.DropViewExpr getDropView() { + if (dropViewBuilder_ == null) { + return dropView_ == null ? io.greptime.v1.Ddl.DropViewExpr.getDefaultInstance() : dropView_; + } else { + return dropViewBuilder_.getMessage(); + } + } + /** + * .greptime.v1.DropViewExpr drop_view = 1; + */ + public Builder setDropView(io.greptime.v1.Ddl.DropViewExpr value) { + if (dropViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dropView_ = value; + onChanged(); + } else { + dropViewBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.DropViewExpr drop_view = 1; + */ + public Builder setDropView( + io.greptime.v1.Ddl.DropViewExpr.Builder builderForValue) { + if (dropViewBuilder_ == null) { + dropView_ = builderForValue.build(); + onChanged(); + } else { + dropViewBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.DropViewExpr drop_view = 1; + */ + public Builder mergeDropView(io.greptime.v1.Ddl.DropViewExpr value) { + if (dropViewBuilder_ == null) { + if (dropView_ != null) { + dropView_ = + io.greptime.v1.Ddl.DropViewExpr.newBuilder(dropView_).mergeFrom(value).buildPartial(); + } else { + dropView_ = value; + } + onChanged(); + } else { + dropViewBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.DropViewExpr drop_view = 1; + */ + public Builder clearDropView() { + if (dropViewBuilder_ == null) { + dropView_ = null; + onChanged(); + } else { + dropView_ = null; + dropViewBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.DropViewExpr drop_view = 1; + */ + public io.greptime.v1.Ddl.DropViewExpr.Builder getDropViewBuilder() { + + onChanged(); + return getDropViewFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.DropViewExpr drop_view = 1; + */ + public io.greptime.v1.Ddl.DropViewExprOrBuilder getDropViewOrBuilder() { + if (dropViewBuilder_ != null) { + return dropViewBuilder_.getMessageOrBuilder(); + } else { + return dropView_ == null ? + io.greptime.v1.Ddl.DropViewExpr.getDefaultInstance() : dropView_; + } + } + /** + * .greptime.v1.DropViewExpr drop_view = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.DropViewExpr, io.greptime.v1.Ddl.DropViewExpr.Builder, io.greptime.v1.Ddl.DropViewExprOrBuilder> + getDropViewFieldBuilder() { + if (dropViewBuilder_ == null) { + dropViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.DropViewExpr, io.greptime.v1.Ddl.DropViewExpr.Builder, io.greptime.v1.Ddl.DropViewExprOrBuilder>( + getDropView(), + getParentForChildren(), + isClean()); + dropView_ = null; + } + return dropViewBuilder_; + } + @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.DropViewTask) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.DropViewTask) + private static final greptime.v1.meta.Ddl.DropViewTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Ddl.DropViewTask(); + } + + public static greptime.v1.meta.Ddl.DropViewTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DropViewTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DropViewTask(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.DropViewTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface DdlTaskRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.meta.DdlTaskRequest) com.google.protobuf.MessageOrBuilder { @@ -8139,6 +9475,36 @@ public final class Ddl { */ greptime.v1.meta.Ddl.DropFlowTaskOrBuilder getDropFlowTaskOrBuilder(); + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + * @return Whether the createViewTask field is set. + */ + boolean hasCreateViewTask(); + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + * @return The createViewTask. + */ + greptime.v1.meta.Ddl.CreateViewTask getCreateViewTask(); + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + */ + greptime.v1.meta.Ddl.CreateViewTaskOrBuilder getCreateViewTaskOrBuilder(); + + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + * @return Whether the dropViewTask field is set. + */ + boolean hasDropViewTask(); + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + * @return The dropViewTask. + */ + greptime.v1.meta.Ddl.DropViewTask getDropViewTask(); + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + */ + greptime.v1.meta.Ddl.DropViewTaskOrBuilder getDropViewTaskOrBuilder(); + public greptime.v1.meta.Ddl.DdlTaskRequest.TaskCase getTaskCase(); } /** @@ -8353,6 +9719,34 @@ public final class Ddl { taskCase_ = 12; break; } + case 106: { + greptime.v1.meta.Ddl.CreateViewTask.Builder subBuilder = null; + if (taskCase_ == 13) { + subBuilder = ((greptime.v1.meta.Ddl.CreateViewTask) task_).toBuilder(); + } + task_ = + input.readMessage(greptime.v1.meta.Ddl.CreateViewTask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((greptime.v1.meta.Ddl.CreateViewTask) task_); + task_ = subBuilder.buildPartial(); + } + taskCase_ = 13; + break; + } + case 114: { + greptime.v1.meta.Ddl.DropViewTask.Builder subBuilder = null; + if (taskCase_ == 14) { + subBuilder = ((greptime.v1.meta.Ddl.DropViewTask) task_).toBuilder(); + } + task_ = + input.readMessage(greptime.v1.meta.Ddl.DropViewTask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((greptime.v1.meta.Ddl.DropViewTask) task_); + task_ = subBuilder.buildPartial(); + } + taskCase_ = 14; + break; + } case 514: { io.greptime.v1.Common.QueryContext.Builder subBuilder = null; if (queryContext_ != null) { @@ -8416,6 +9810,8 @@ public final class Ddl { CREATE_DATABASE_TASK(10), CREATE_FLOW_TASK(11), DROP_FLOW_TASK(12), + CREATE_VIEW_TASK(13), + DROP_VIEW_TASK(14), TASK_NOT_SET(0); private final int value; private TaskCase(int value) { @@ -8444,6 +9840,8 @@ public final class Ddl { case 10: return CREATE_DATABASE_TASK; case 11: return CREATE_FLOW_TASK; case 12: return DROP_FLOW_TASK; + case 13: return CREATE_VIEW_TASK; + case 14: return DROP_VIEW_TASK; case 0: return TASK_NOT_SET; default: return null; } @@ -8852,6 +10250,68 @@ public final class Ddl { return greptime.v1.meta.Ddl.DropFlowTask.getDefaultInstance(); } + public static final int CREATE_VIEW_TASK_FIELD_NUMBER = 13; + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + * @return Whether the createViewTask field is set. + */ + @java.lang.Override + public boolean hasCreateViewTask() { + return taskCase_ == 13; + } + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + * @return The createViewTask. + */ + @java.lang.Override + public greptime.v1.meta.Ddl.CreateViewTask getCreateViewTask() { + if (taskCase_ == 13) { + return (greptime.v1.meta.Ddl.CreateViewTask) task_; + } + return greptime.v1.meta.Ddl.CreateViewTask.getDefaultInstance(); + } + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + */ + @java.lang.Override + public greptime.v1.meta.Ddl.CreateViewTaskOrBuilder getCreateViewTaskOrBuilder() { + if (taskCase_ == 13) { + return (greptime.v1.meta.Ddl.CreateViewTask) task_; + } + return greptime.v1.meta.Ddl.CreateViewTask.getDefaultInstance(); + } + + public static final int DROP_VIEW_TASK_FIELD_NUMBER = 14; + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + * @return Whether the dropViewTask field is set. + */ + @java.lang.Override + public boolean hasDropViewTask() { + return taskCase_ == 14; + } + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + * @return The dropViewTask. + */ + @java.lang.Override + public greptime.v1.meta.Ddl.DropViewTask getDropViewTask() { + if (taskCase_ == 14) { + return (greptime.v1.meta.Ddl.DropViewTask) task_; + } + return greptime.v1.meta.Ddl.DropViewTask.getDefaultInstance(); + } + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + */ + @java.lang.Override + public greptime.v1.meta.Ddl.DropViewTaskOrBuilder getDropViewTaskOrBuilder() { + if (taskCase_ == 14) { + return (greptime.v1.meta.Ddl.DropViewTask) task_; + } + return greptime.v1.meta.Ddl.DropViewTask.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -8902,6 +10362,12 @@ public final class Ddl { if (taskCase_ == 12) { output.writeMessage(12, (greptime.v1.meta.Ddl.DropFlowTask) task_); } + if (taskCase_ == 13) { + output.writeMessage(13, (greptime.v1.meta.Ddl.CreateViewTask) task_); + } + if (taskCase_ == 14) { + output.writeMessage(14, (greptime.v1.meta.Ddl.DropViewTask) task_); + } if (queryContext_ != null) { output.writeMessage(64, getQueryContext()); } @@ -8962,6 +10428,14 @@ public final class Ddl { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (greptime.v1.meta.Ddl.DropFlowTask) task_); } + if (taskCase_ == 13) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (greptime.v1.meta.Ddl.CreateViewTask) task_); + } + if (taskCase_ == 14) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, (greptime.v1.meta.Ddl.DropViewTask) task_); + } if (queryContext_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(64, getQueryContext()); @@ -9037,6 +10511,14 @@ public final class Ddl { if (!getDropFlowTask() .equals(other.getDropFlowTask())) return false; break; + case 13: + if (!getCreateViewTask() + .equals(other.getCreateViewTask())) return false; + break; + case 14: + if (!getDropViewTask() + .equals(other.getDropViewTask())) return false; + break; case 0: default: } @@ -9104,6 +10586,14 @@ public final class Ddl { hash = (37 * hash) + DROP_FLOW_TASK_FIELD_NUMBER; hash = (53 * hash) + getDropFlowTask().hashCode(); break; + case 13: + hash = (37 * hash) + CREATE_VIEW_TASK_FIELD_NUMBER; + hash = (53 * hash) + getCreateViewTask().hashCode(); + break; + case 14: + hash = (37 * hash) + DROP_VIEW_TASK_FIELD_NUMBER; + hash = (53 * hash) + getDropViewTask().hashCode(); + break; case 0: default: } @@ -9367,6 +10857,20 @@ public final class Ddl { result.task_ = dropFlowTaskBuilder_.build(); } } + if (taskCase_ == 13) { + if (createViewTaskBuilder_ == null) { + result.task_ = task_; + } else { + result.task_ = createViewTaskBuilder_.build(); + } + } + if (taskCase_ == 14) { + if (dropViewTaskBuilder_ == null) { + result.task_ = task_; + } else { + result.task_ = dropViewTaskBuilder_.build(); + } + } result.taskCase_ = taskCase_; onBuilt(); return result; @@ -9467,6 +10971,14 @@ public final class Ddl { mergeDropFlowTask(other.getDropFlowTask()); break; } + case CREATE_VIEW_TASK: { + mergeCreateViewTask(other.getCreateViewTask()); + break; + } + case DROP_VIEW_TASK: { + mergeDropViewTask(other.getDropViewTask()); + break; + } case TASK_NOT_SET: { break; } @@ -11314,6 +12826,290 @@ public final class Ddl { onChanged();; return dropFlowTaskBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Ddl.CreateViewTask, greptime.v1.meta.Ddl.CreateViewTask.Builder, greptime.v1.meta.Ddl.CreateViewTaskOrBuilder> createViewTaskBuilder_; + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + * @return Whether the createViewTask field is set. + */ + @java.lang.Override + public boolean hasCreateViewTask() { + return taskCase_ == 13; + } + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + * @return The createViewTask. + */ + @java.lang.Override + public greptime.v1.meta.Ddl.CreateViewTask getCreateViewTask() { + if (createViewTaskBuilder_ == null) { + if (taskCase_ == 13) { + return (greptime.v1.meta.Ddl.CreateViewTask) task_; + } + return greptime.v1.meta.Ddl.CreateViewTask.getDefaultInstance(); + } else { + if (taskCase_ == 13) { + return createViewTaskBuilder_.getMessage(); + } + return greptime.v1.meta.Ddl.CreateViewTask.getDefaultInstance(); + } + } + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + */ + public Builder setCreateViewTask(greptime.v1.meta.Ddl.CreateViewTask value) { + if (createViewTaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + task_ = value; + onChanged(); + } else { + createViewTaskBuilder_.setMessage(value); + } + taskCase_ = 13; + return this; + } + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + */ + public Builder setCreateViewTask( + greptime.v1.meta.Ddl.CreateViewTask.Builder builderForValue) { + if (createViewTaskBuilder_ == null) { + task_ = builderForValue.build(); + onChanged(); + } else { + createViewTaskBuilder_.setMessage(builderForValue.build()); + } + taskCase_ = 13; + return this; + } + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + */ + public Builder mergeCreateViewTask(greptime.v1.meta.Ddl.CreateViewTask value) { + if (createViewTaskBuilder_ == null) { + if (taskCase_ == 13 && + task_ != greptime.v1.meta.Ddl.CreateViewTask.getDefaultInstance()) { + task_ = greptime.v1.meta.Ddl.CreateViewTask.newBuilder((greptime.v1.meta.Ddl.CreateViewTask) task_) + .mergeFrom(value).buildPartial(); + } else { + task_ = value; + } + onChanged(); + } else { + if (taskCase_ == 13) { + createViewTaskBuilder_.mergeFrom(value); + } else { + createViewTaskBuilder_.setMessage(value); + } + } + taskCase_ = 13; + return this; + } + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + */ + public Builder clearCreateViewTask() { + if (createViewTaskBuilder_ == null) { + if (taskCase_ == 13) { + taskCase_ = 0; + task_ = null; + onChanged(); + } + } else { + if (taskCase_ == 13) { + taskCase_ = 0; + task_ = null; + } + createViewTaskBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + */ + public greptime.v1.meta.Ddl.CreateViewTask.Builder getCreateViewTaskBuilder() { + return getCreateViewTaskFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + */ + @java.lang.Override + public greptime.v1.meta.Ddl.CreateViewTaskOrBuilder getCreateViewTaskOrBuilder() { + if ((taskCase_ == 13) && (createViewTaskBuilder_ != null)) { + return createViewTaskBuilder_.getMessageOrBuilder(); + } else { + if (taskCase_ == 13) { + return (greptime.v1.meta.Ddl.CreateViewTask) task_; + } + return greptime.v1.meta.Ddl.CreateViewTask.getDefaultInstance(); + } + } + /** + * .greptime.v1.meta.CreateViewTask create_view_task = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Ddl.CreateViewTask, greptime.v1.meta.Ddl.CreateViewTask.Builder, greptime.v1.meta.Ddl.CreateViewTaskOrBuilder> + getCreateViewTaskFieldBuilder() { + if (createViewTaskBuilder_ == null) { + if (!(taskCase_ == 13)) { + task_ = greptime.v1.meta.Ddl.CreateViewTask.getDefaultInstance(); + } + createViewTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Ddl.CreateViewTask, greptime.v1.meta.Ddl.CreateViewTask.Builder, greptime.v1.meta.Ddl.CreateViewTaskOrBuilder>( + (greptime.v1.meta.Ddl.CreateViewTask) task_, + getParentForChildren(), + isClean()); + task_ = null; + } + taskCase_ = 13; + onChanged();; + return createViewTaskBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Ddl.DropViewTask, greptime.v1.meta.Ddl.DropViewTask.Builder, greptime.v1.meta.Ddl.DropViewTaskOrBuilder> dropViewTaskBuilder_; + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + * @return Whether the dropViewTask field is set. + */ + @java.lang.Override + public boolean hasDropViewTask() { + return taskCase_ == 14; + } + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + * @return The dropViewTask. + */ + @java.lang.Override + public greptime.v1.meta.Ddl.DropViewTask getDropViewTask() { + if (dropViewTaskBuilder_ == null) { + if (taskCase_ == 14) { + return (greptime.v1.meta.Ddl.DropViewTask) task_; + } + return greptime.v1.meta.Ddl.DropViewTask.getDefaultInstance(); + } else { + if (taskCase_ == 14) { + return dropViewTaskBuilder_.getMessage(); + } + return greptime.v1.meta.Ddl.DropViewTask.getDefaultInstance(); + } + } + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + */ + public Builder setDropViewTask(greptime.v1.meta.Ddl.DropViewTask value) { + if (dropViewTaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + task_ = value; + onChanged(); + } else { + dropViewTaskBuilder_.setMessage(value); + } + taskCase_ = 14; + return this; + } + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + */ + public Builder setDropViewTask( + greptime.v1.meta.Ddl.DropViewTask.Builder builderForValue) { + if (dropViewTaskBuilder_ == null) { + task_ = builderForValue.build(); + onChanged(); + } else { + dropViewTaskBuilder_.setMessage(builderForValue.build()); + } + taskCase_ = 14; + return this; + } + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + */ + public Builder mergeDropViewTask(greptime.v1.meta.Ddl.DropViewTask value) { + if (dropViewTaskBuilder_ == null) { + if (taskCase_ == 14 && + task_ != greptime.v1.meta.Ddl.DropViewTask.getDefaultInstance()) { + task_ = greptime.v1.meta.Ddl.DropViewTask.newBuilder((greptime.v1.meta.Ddl.DropViewTask) task_) + .mergeFrom(value).buildPartial(); + } else { + task_ = value; + } + onChanged(); + } else { + if (taskCase_ == 14) { + dropViewTaskBuilder_.mergeFrom(value); + } else { + dropViewTaskBuilder_.setMessage(value); + } + } + taskCase_ = 14; + return this; + } + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + */ + public Builder clearDropViewTask() { + if (dropViewTaskBuilder_ == null) { + if (taskCase_ == 14) { + taskCase_ = 0; + task_ = null; + onChanged(); + } + } else { + if (taskCase_ == 14) { + taskCase_ = 0; + task_ = null; + } + dropViewTaskBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + */ + public greptime.v1.meta.Ddl.DropViewTask.Builder getDropViewTaskBuilder() { + return getDropViewTaskFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + */ + @java.lang.Override + public greptime.v1.meta.Ddl.DropViewTaskOrBuilder getDropViewTaskOrBuilder() { + if ((taskCase_ == 14) && (dropViewTaskBuilder_ != null)) { + return dropViewTaskBuilder_.getMessageOrBuilder(); + } else { + if (taskCase_ == 14) { + return (greptime.v1.meta.Ddl.DropViewTask) task_; + } + return greptime.v1.meta.Ddl.DropViewTask.getDefaultInstance(); + } + } + /** + * .greptime.v1.meta.DropViewTask drop_view_task = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Ddl.DropViewTask, greptime.v1.meta.Ddl.DropViewTask.Builder, greptime.v1.meta.Ddl.DropViewTaskOrBuilder> + getDropViewTaskFieldBuilder() { + if (dropViewTaskBuilder_ == null) { + if (!(taskCase_ == 14)) { + task_ = greptime.v1.meta.Ddl.DropViewTask.getDefaultInstance(); + } + dropViewTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Ddl.DropViewTask, greptime.v1.meta.Ddl.DropViewTask.Builder, greptime.v1.meta.Ddl.DropViewTaskOrBuilder>( + (greptime.v1.meta.Ddl.DropViewTask) task_, + getParentForChildren(), + isClean()); + task_ = null; + } + taskCase_ = 14; + onChanged();; + return dropViewTaskBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13013,6 +14809,16 @@ public final class Ddl { 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_CreateViewTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_CreateViewTask_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_DropViewTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_DropViewTask_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_meta_DdlTaskRequest_descriptor; private static final @@ -13056,35 +14862,42 @@ public final class Ddl { ".v1.DropDatabaseExpr\"B\n\016CreateFlowTask\0220" + "\n\013create_flow\030\001 \001(\0132\033.greptime.v1.Create" + "FlowExpr\"<\n\014DropFlowTask\022,\n\tdrop_flow\030\001 " + - "\001(\0132\031.greptime.v1.DropFlowExpr\"\271\006\n\016DdlTa" + - "skRequest\022/\n\006header\030\001 \001(\0132\037.greptime.v1." + - "meta.RequestHeader\0220\n\rquery_context\030@ \001(" + - "\0132\031.greptime.v1.QueryContext\022>\n\021create_t" + - "able_task\030\002 \001(\0132!.greptime.v1.meta.Creat" + - "eTableTaskH\000\022:\n\017drop_table_task\030\003 \001(\0132\037." + - "greptime.v1.meta.DropTableTaskH\000\022<\n\020alte" + - "r_table_task\030\004 \001(\0132 .greptime.v1.meta.Al" + - "terTableTaskH\000\022B\n\023truncate_table_task\030\005 " + - "\001(\0132#.greptime.v1.meta.TruncateTableTask" + - "H\000\022@\n\022create_table_tasks\030\006 \001(\0132\".greptim" + - "e.v1.meta.CreateTableTasksH\000\022<\n\020drop_tab" + - "le_tasks\030\007 \001(\0132 .greptime.v1.meta.DropTa" + - "bleTasksH\000\022>\n\021alter_table_tasks\030\010 \001(\0132!." + - "greptime.v1.meta.AlterTableTasksH\000\022@\n\022dr" + - "op_database_task\030\t \001(\0132\".greptime.v1.met" + - "a.DropDatabaseTaskH\000\022D\n\024create_database_" + - "task\030\n \001(\0132$.greptime.v1.meta.CreateData" + - "baseTaskH\000\022<\n\020create_flow_task\030\013 \001(\0132 .g" + - "reptime.v1.meta.CreateFlowTaskH\000\0228\n\016drop" + - "_flow_task\030\014 \001(\0132\036.greptime.v1.meta.Drop" + - "FlowTaskH\000B\006\n\004task\"\300\001\n\017DdlTaskResponse\0220" + - "\n\006header\030\001 \001(\0132 .greptime.v1.meta.Respon" + - "seHeader\022*\n\003pid\030\002 \001(\0132\035.greptime.v1.meta" + - ".ProcedureId\022&\n\010table_id\030\004 \001(\0132\024.greptim" + - "e.v1.TableId\022\'\n\ttable_ids\030\005 \003(\0132\024.grepti" + - "me.v1.TableId*#\n\013DdlTaskType\022\n\n\006Create\020\000" + - "\022\010\n\004Drop\020\001B\n\021create_table_task\030\002" + + " \001(\0132!.greptime.v1.meta.CreateTableTaskH" + + "\000\022:\n\017drop_table_task\030\003 \001(\0132\037.greptime.v1" + + ".meta.DropTableTaskH\000\022<\n\020alter_table_tas" + + "k\030\004 \001(\0132 .greptime.v1.meta.AlterTableTas" + + "kH\000\022B\n\023truncate_table_task\030\005 \001(\0132#.grept" + + "ime.v1.meta.TruncateTableTaskH\000\022@\n\022creat" + + "e_table_tasks\030\006 \001(\0132\".greptime.v1.meta.C" + + "reateTableTasksH\000\022<\n\020drop_table_tasks\030\007 " + + "\001(\0132 .greptime.v1.meta.DropTableTasksH\000\022" + + ">\n\021alter_table_tasks\030\010 \001(\0132!.greptime.v1" + + ".meta.AlterTableTasksH\000\022@\n\022drop_database" + + "_task\030\t \001(\0132\".greptime.v1.meta.DropDatab" + + "aseTaskH\000\022D\n\024create_database_task\030\n \001(\0132" + + "$.greptime.v1.meta.CreateDatabaseTaskH\000\022" + + "<\n\020create_flow_task\030\013 \001(\0132 .greptime.v1." + + "meta.CreateFlowTaskH\000\0228\n\016drop_flow_task\030" + + "\014 \001(\0132\036.greptime.v1.meta.DropFlowTaskH\000\022" + + "<\n\020create_view_task\030\r \001(\0132 .greptime.v1." + + "meta.CreateViewTaskH\000\0228\n\016drop_view_task\030" + + "\016 \001(\0132\036.greptime.v1.meta.DropViewTaskH\000B" + + "\006\n\004task\"\300\001\n\017DdlTaskResponse\0220\n\006header\030\001 " + + "\001(\0132 .greptime.v1.meta.ResponseHeader\022*\n" + + "\003pid\030\002 \001(\0132\035.greptime.v1.meta.ProcedureI" + + "d\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.TableI" + + "d\022\'\n\ttable_ids\030\005 \003(\0132\024.greptime.v1.Table" + + "Id*#\n\013DdlTaskType\022\n\n\006Create\020\000\022\010\n\004Drop\020\001B" + + ".greptime.v1.CreateViewExpr create_view = 10; + * @return Whether the createView field is set. + */ + boolean hasCreateView(); + /** + * .greptime.v1.CreateViewExpr create_view = 10; + * @return The createView. + */ + io.greptime.v1.Ddl.CreateViewExpr getCreateView(); + /** + * .greptime.v1.CreateViewExpr create_view = 10; + */ + io.greptime.v1.Ddl.CreateViewExprOrBuilder getCreateViewOrBuilder(); + + /** + * .greptime.v1.DropViewExpr drop_view = 11; + * @return Whether the dropView field is set. + */ + boolean hasDropView(); + /** + * .greptime.v1.DropViewExpr drop_view = 11; + * @return The dropView. + */ + io.greptime.v1.Ddl.DropViewExpr getDropView(); + /** + * .greptime.v1.DropViewExpr drop_view = 11; + */ + io.greptime.v1.Ddl.DropViewExprOrBuilder getDropViewOrBuilder(); + public io.greptime.v1.Ddl.DdlRequest.ExprCase getExprCase(); } /** @@ -275,6 +305,34 @@ public final class Ddl { exprCase_ = 9; break; } + case 82: { + io.greptime.v1.Ddl.CreateViewExpr.Builder subBuilder = null; + if (exprCase_ == 10) { + subBuilder = ((io.greptime.v1.Ddl.CreateViewExpr) expr_).toBuilder(); + } + expr_ = + input.readMessage(io.greptime.v1.Ddl.CreateViewExpr.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Ddl.CreateViewExpr) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 10; + break; + } + case 90: { + io.greptime.v1.Ddl.DropViewExpr.Builder subBuilder = null; + if (exprCase_ == 11) { + subBuilder = ((io.greptime.v1.Ddl.DropViewExpr) expr_).toBuilder(); + } + expr_ = + input.readMessage(io.greptime.v1.Ddl.DropViewExpr.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Ddl.DropViewExpr) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 11; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -321,6 +379,8 @@ public final class Ddl { TRUNCATE_TABLE(7), CREATE_FLOW(8), DROP_FLOW(9), + CREATE_VIEW(10), + DROP_VIEW(11), EXPR_NOT_SET(0); private final int value; private ExprCase(int value) { @@ -345,6 +405,8 @@ public final class Ddl { case 7: return TRUNCATE_TABLE; case 8: return CREATE_FLOW; case 9: return DROP_FLOW; + case 10: return CREATE_VIEW; + case 11: return DROP_VIEW; case 0: return EXPR_NOT_SET; default: return null; } @@ -577,6 +639,68 @@ public final class Ddl { return io.greptime.v1.Ddl.DropFlowExpr.getDefaultInstance(); } + public static final int CREATE_VIEW_FIELD_NUMBER = 10; + /** + * .greptime.v1.CreateViewExpr create_view = 10; + * @return Whether the createView field is set. + */ + @java.lang.Override + public boolean hasCreateView() { + return exprCase_ == 10; + } + /** + * .greptime.v1.CreateViewExpr create_view = 10; + * @return The createView. + */ + @java.lang.Override + public io.greptime.v1.Ddl.CreateViewExpr getCreateView() { + if (exprCase_ == 10) { + return (io.greptime.v1.Ddl.CreateViewExpr) expr_; + } + return io.greptime.v1.Ddl.CreateViewExpr.getDefaultInstance(); + } + /** + * .greptime.v1.CreateViewExpr create_view = 10; + */ + @java.lang.Override + public io.greptime.v1.Ddl.CreateViewExprOrBuilder getCreateViewOrBuilder() { + if (exprCase_ == 10) { + return (io.greptime.v1.Ddl.CreateViewExpr) expr_; + } + return io.greptime.v1.Ddl.CreateViewExpr.getDefaultInstance(); + } + + public static final int DROP_VIEW_FIELD_NUMBER = 11; + /** + * .greptime.v1.DropViewExpr drop_view = 11; + * @return Whether the dropView field is set. + */ + @java.lang.Override + public boolean hasDropView() { + return exprCase_ == 11; + } + /** + * .greptime.v1.DropViewExpr drop_view = 11; + * @return The dropView. + */ + @java.lang.Override + public io.greptime.v1.Ddl.DropViewExpr getDropView() { + if (exprCase_ == 11) { + return (io.greptime.v1.Ddl.DropViewExpr) expr_; + } + return io.greptime.v1.Ddl.DropViewExpr.getDefaultInstance(); + } + /** + * .greptime.v1.DropViewExpr drop_view = 11; + */ + @java.lang.Override + public io.greptime.v1.Ddl.DropViewExprOrBuilder getDropViewOrBuilder() { + if (exprCase_ == 11) { + return (io.greptime.v1.Ddl.DropViewExpr) expr_; + } + return io.greptime.v1.Ddl.DropViewExpr.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -612,6 +736,12 @@ public final class Ddl { if (exprCase_ == 9) { output.writeMessage(9, (io.greptime.v1.Ddl.DropFlowExpr) expr_); } + if (exprCase_ == 10) { + output.writeMessage(10, (io.greptime.v1.Ddl.CreateViewExpr) expr_); + } + if (exprCase_ == 11) { + output.writeMessage(11, (io.greptime.v1.Ddl.DropViewExpr) expr_); + } unknownFields.writeTo(output); } @@ -649,6 +779,14 @@ public final class Ddl { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (io.greptime.v1.Ddl.DropFlowExpr) expr_); } + if (exprCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (io.greptime.v1.Ddl.CreateViewExpr) expr_); + } + if (exprCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (io.greptime.v1.Ddl.DropViewExpr) expr_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -694,6 +832,14 @@ public final class Ddl { if (!getDropFlow() .equals(other.getDropFlow())) return false; break; + case 10: + if (!getCreateView() + .equals(other.getCreateView())) return false; + break; + case 11: + if (!getDropView() + .equals(other.getDropView())) return false; + break; case 0: default: } @@ -737,6 +883,14 @@ public final class Ddl { hash = (37 * hash) + DROP_FLOW_FIELD_NUMBER; hash = (53 * hash) + getDropFlow().hashCode(); break; + case 10: + hash = (37 * hash) + CREATE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getCreateView().hashCode(); + break; + case 11: + hash = (37 * hash) + DROP_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getDropView().hashCode(); + break; case 0: default: } @@ -957,6 +1111,20 @@ public final class Ddl { result.expr_ = dropFlowBuilder_.build(); } } + if (exprCase_ == 10) { + if (createViewBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = createViewBuilder_.build(); + } + } + if (exprCase_ == 11) { + if (dropViewBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = dropViewBuilder_.build(); + } + } result.exprCase_ = exprCase_; onBuilt(); return result; @@ -1035,6 +1203,14 @@ public final class Ddl { mergeDropFlow(other.getDropFlow()); break; } + case CREATE_VIEW: { + mergeCreateView(other.getCreateView()); + break; + } + case DROP_VIEW: { + mergeDropView(other.getDropView()); + break; + } case EXPR_NOT_SET: { break; } @@ -2076,6 +2252,290 @@ public final class Ddl { onChanged();; return dropFlowBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.CreateViewExpr, io.greptime.v1.Ddl.CreateViewExpr.Builder, io.greptime.v1.Ddl.CreateViewExprOrBuilder> createViewBuilder_; + /** + * .greptime.v1.CreateViewExpr create_view = 10; + * @return Whether the createView field is set. + */ + @java.lang.Override + public boolean hasCreateView() { + return exprCase_ == 10; + } + /** + * .greptime.v1.CreateViewExpr create_view = 10; + * @return The createView. + */ + @java.lang.Override + public io.greptime.v1.Ddl.CreateViewExpr getCreateView() { + if (createViewBuilder_ == null) { + if (exprCase_ == 10) { + return (io.greptime.v1.Ddl.CreateViewExpr) expr_; + } + return io.greptime.v1.Ddl.CreateViewExpr.getDefaultInstance(); + } else { + if (exprCase_ == 10) { + return createViewBuilder_.getMessage(); + } + return io.greptime.v1.Ddl.CreateViewExpr.getDefaultInstance(); + } + } + /** + * .greptime.v1.CreateViewExpr create_view = 10; + */ + public Builder setCreateView(io.greptime.v1.Ddl.CreateViewExpr value) { + if (createViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + createViewBuilder_.setMessage(value); + } + exprCase_ = 10; + return this; + } + /** + * .greptime.v1.CreateViewExpr create_view = 10; + */ + public Builder setCreateView( + io.greptime.v1.Ddl.CreateViewExpr.Builder builderForValue) { + if (createViewBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + createViewBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 10; + return this; + } + /** + * .greptime.v1.CreateViewExpr create_view = 10; + */ + public Builder mergeCreateView(io.greptime.v1.Ddl.CreateViewExpr value) { + if (createViewBuilder_ == null) { + if (exprCase_ == 10 && + expr_ != io.greptime.v1.Ddl.CreateViewExpr.getDefaultInstance()) { + expr_ = io.greptime.v1.Ddl.CreateViewExpr.newBuilder((io.greptime.v1.Ddl.CreateViewExpr) expr_) + .mergeFrom(value).buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 10) { + createViewBuilder_.mergeFrom(value); + } else { + createViewBuilder_.setMessage(value); + } + } + exprCase_ = 10; + return this; + } + /** + * .greptime.v1.CreateViewExpr create_view = 10; + */ + public Builder clearCreateView() { + if (createViewBuilder_ == null) { + if (exprCase_ == 10) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 10) { + exprCase_ = 0; + expr_ = null; + } + createViewBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.CreateViewExpr create_view = 10; + */ + public io.greptime.v1.Ddl.CreateViewExpr.Builder getCreateViewBuilder() { + return getCreateViewFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.CreateViewExpr create_view = 10; + */ + @java.lang.Override + public io.greptime.v1.Ddl.CreateViewExprOrBuilder getCreateViewOrBuilder() { + if ((exprCase_ == 10) && (createViewBuilder_ != null)) { + return createViewBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 10) { + return (io.greptime.v1.Ddl.CreateViewExpr) expr_; + } + return io.greptime.v1.Ddl.CreateViewExpr.getDefaultInstance(); + } + } + /** + * .greptime.v1.CreateViewExpr create_view = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.CreateViewExpr, io.greptime.v1.Ddl.CreateViewExpr.Builder, io.greptime.v1.Ddl.CreateViewExprOrBuilder> + getCreateViewFieldBuilder() { + if (createViewBuilder_ == null) { + if (!(exprCase_ == 10)) { + expr_ = io.greptime.v1.Ddl.CreateViewExpr.getDefaultInstance(); + } + createViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.CreateViewExpr, io.greptime.v1.Ddl.CreateViewExpr.Builder, io.greptime.v1.Ddl.CreateViewExprOrBuilder>( + (io.greptime.v1.Ddl.CreateViewExpr) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 10; + onChanged();; + return createViewBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.DropViewExpr, io.greptime.v1.Ddl.DropViewExpr.Builder, io.greptime.v1.Ddl.DropViewExprOrBuilder> dropViewBuilder_; + /** + * .greptime.v1.DropViewExpr drop_view = 11; + * @return Whether the dropView field is set. + */ + @java.lang.Override + public boolean hasDropView() { + return exprCase_ == 11; + } + /** + * .greptime.v1.DropViewExpr drop_view = 11; + * @return The dropView. + */ + @java.lang.Override + public io.greptime.v1.Ddl.DropViewExpr getDropView() { + if (dropViewBuilder_ == null) { + if (exprCase_ == 11) { + return (io.greptime.v1.Ddl.DropViewExpr) expr_; + } + return io.greptime.v1.Ddl.DropViewExpr.getDefaultInstance(); + } else { + if (exprCase_ == 11) { + return dropViewBuilder_.getMessage(); + } + return io.greptime.v1.Ddl.DropViewExpr.getDefaultInstance(); + } + } + /** + * .greptime.v1.DropViewExpr drop_view = 11; + */ + public Builder setDropView(io.greptime.v1.Ddl.DropViewExpr value) { + if (dropViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + dropViewBuilder_.setMessage(value); + } + exprCase_ = 11; + return this; + } + /** + * .greptime.v1.DropViewExpr drop_view = 11; + */ + public Builder setDropView( + io.greptime.v1.Ddl.DropViewExpr.Builder builderForValue) { + if (dropViewBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + dropViewBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 11; + return this; + } + /** + * .greptime.v1.DropViewExpr drop_view = 11; + */ + public Builder mergeDropView(io.greptime.v1.Ddl.DropViewExpr value) { + if (dropViewBuilder_ == null) { + if (exprCase_ == 11 && + expr_ != io.greptime.v1.Ddl.DropViewExpr.getDefaultInstance()) { + expr_ = io.greptime.v1.Ddl.DropViewExpr.newBuilder((io.greptime.v1.Ddl.DropViewExpr) expr_) + .mergeFrom(value).buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 11) { + dropViewBuilder_.mergeFrom(value); + } else { + dropViewBuilder_.setMessage(value); + } + } + exprCase_ = 11; + return this; + } + /** + * .greptime.v1.DropViewExpr drop_view = 11; + */ + public Builder clearDropView() { + if (dropViewBuilder_ == null) { + if (exprCase_ == 11) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 11) { + exprCase_ = 0; + expr_ = null; + } + dropViewBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.DropViewExpr drop_view = 11; + */ + public io.greptime.v1.Ddl.DropViewExpr.Builder getDropViewBuilder() { + return getDropViewFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.DropViewExpr drop_view = 11; + */ + @java.lang.Override + public io.greptime.v1.Ddl.DropViewExprOrBuilder getDropViewOrBuilder() { + if ((exprCase_ == 11) && (dropViewBuilder_ != null)) { + return dropViewBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 11) { + return (io.greptime.v1.Ddl.DropViewExpr) expr_; + } + return io.greptime.v1.Ddl.DropViewExpr.getDefaultInstance(); + } + } + /** + * .greptime.v1.DropViewExpr drop_view = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.DropViewExpr, io.greptime.v1.Ddl.DropViewExpr.Builder, io.greptime.v1.Ddl.DropViewExprOrBuilder> + getDropViewFieldBuilder() { + if (dropViewBuilder_ == null) { + if (!(exprCase_ == 11)) { + expr_ = io.greptime.v1.Ddl.DropViewExpr.getDefaultInstance(); + } + dropViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.DropViewExpr, io.greptime.v1.Ddl.DropViewExpr.Builder, io.greptime.v1.Ddl.DropViewExprOrBuilder>( + (io.greptime.v1.Ddl.DropViewExpr) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 11; + onChanged();; + return dropViewBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5351,6 +5811,2252 @@ java.lang.String defaultValue); } + public interface CreateViewExprOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.CreateViewExpr) + com.google.protobuf.MessageOrBuilder { + + /** + * string catalog_name = 1; + * @return The catalogName. + */ + java.lang.String getCatalogName(); + /** + * string catalog_name = 1; + * @return The bytes for catalogName. + */ + com.google.protobuf.ByteString + getCatalogNameBytes(); + + /** + * string schema_name = 2; + * @return The schemaName. + */ + java.lang.String getSchemaName(); + /** + * string schema_name = 2; + * @return The bytes for schemaName. + */ + com.google.protobuf.ByteString + getSchemaNameBytes(); + + /** + * string view_name = 3; + * @return The viewName. + */ + java.lang.String getViewName(); + /** + * string view_name = 3; + * @return The bytes for viewName. + */ + com.google.protobuf.ByteString + getViewNameBytes(); + + /** + * bytes logical_plan = 4; + * @return The logicalPlan. + */ + com.google.protobuf.ByteString getLogicalPlan(); + + /** + * bool create_if_not_exists = 5; + * @return The createIfNotExists. + */ + boolean getCreateIfNotExists(); + + /** + * bool or_replace = 6; + * @return The orReplace. + */ + boolean getOrReplace(); + } + /** + *
+   * Create a view
+   * 
+ * + * Protobuf type {@code greptime.v1.CreateViewExpr} + */ + public static final class CreateViewExpr extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.CreateViewExpr) + CreateViewExprOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateViewExpr.newBuilder() to construct. + private CreateViewExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateViewExpr() { + catalogName_ = ""; + schemaName_ = ""; + viewName_ = ""; + logicalPlan_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateViewExpr(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateViewExpr( + 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(); + + catalogName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + schemaName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + viewName_ = s; + break; + } + case 34: { + + logicalPlan_ = input.readBytes(); + break; + } + case 40: { + + createIfNotExists_ = input.readBool(); + break; + } + case 48: { + + orReplace_ = input.readBool(); + 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_CreateViewExpr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateViewExpr_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.CreateViewExpr.class, io.greptime.v1.Ddl.CreateViewExpr.Builder.class); + } + + public static final int CATALOG_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object catalogName_; + /** + * string catalog_name = 1; + * @return The catalogName. + */ + @java.lang.Override + public java.lang.String getCatalogName() { + java.lang.Object ref = catalogName_; + 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(); + catalogName_ = s; + return s; + } + } + /** + * string catalog_name = 1; + * @return The bytes for catalogName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCatalogNameBytes() { + java.lang.Object ref = catalogName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalogName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object schemaName_; + /** + * string schema_name = 2; + * @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 = 2; + * @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 VIEW_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object viewName_; + /** + * string view_name = 3; + * @return The viewName. + */ + @java.lang.Override + public java.lang.String getViewName() { + java.lang.Object ref = viewName_; + 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(); + viewName_ = s; + return s; + } + } + /** + * string view_name = 3; + * @return The bytes for viewName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getViewNameBytes() { + java.lang.Object ref = viewName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + viewName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGICAL_PLAN_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString logicalPlan_; + /** + * bytes logical_plan = 4; + * @return The logicalPlan. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLogicalPlan() { + return logicalPlan_; + } + + public static final int CREATE_IF_NOT_EXISTS_FIELD_NUMBER = 5; + private boolean createIfNotExists_; + /** + * bool create_if_not_exists = 5; + * @return The createIfNotExists. + */ + @java.lang.Override + public boolean getCreateIfNotExists() { + return createIfNotExists_; + } + + public static final int OR_REPLACE_FIELD_NUMBER = 6; + private boolean orReplace_; + /** + * bool or_replace = 6; + * @return The orReplace. + */ + @java.lang.Override + public boolean getOrReplace() { + return orReplace_; + } + + 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(catalogName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(viewName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, viewName_); + } + if (!logicalPlan_.isEmpty()) { + output.writeBytes(4, logicalPlan_); + } + if (createIfNotExists_ != false) { + output.writeBool(5, createIfNotExists_); + } + if (orReplace_ != false) { + output.writeBool(6, orReplace_); + } + 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(catalogName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(viewName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, viewName_); + } + if (!logicalPlan_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, logicalPlan_); + } + if (createIfNotExists_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, createIfNotExists_); + } + if (orReplace_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, orReplace_); + } + 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.CreateViewExpr)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.CreateViewExpr other = (io.greptime.v1.Ddl.CreateViewExpr) obj; + + if (!getCatalogName() + .equals(other.getCatalogName())) return false; + if (!getSchemaName() + .equals(other.getSchemaName())) return false; + if (!getViewName() + .equals(other.getViewName())) return false; + if (!getLogicalPlan() + .equals(other.getLogicalPlan())) return false; + if (getCreateIfNotExists() + != other.getCreateIfNotExists()) return false; + if (getOrReplace() + != other.getOrReplace()) 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) + CATALOG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCatalogName().hashCode(); + hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSchemaName().hashCode(); + hash = (37 * hash) + VIEW_NAME_FIELD_NUMBER; + hash = (53 * hash) + getViewName().hashCode(); + hash = (37 * hash) + LOGICAL_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getLogicalPlan().hashCode(); + hash = (37 * hash) + CREATE_IF_NOT_EXISTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCreateIfNotExists()); + hash = (37 * hash) + OR_REPLACE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOrReplace()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.CreateViewExpr parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.CreateViewExpr 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.CreateViewExpr parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.CreateViewExpr 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.CreateViewExpr parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.CreateViewExpr parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.CreateViewExpr parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.CreateViewExpr 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.CreateViewExpr parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.CreateViewExpr 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.CreateViewExpr parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.CreateViewExpr 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.CreateViewExpr 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; + } + /** + *
+     * Create a view
+     * 
+ * + * Protobuf type {@code greptime.v1.CreateViewExpr} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.CreateViewExpr) + io.greptime.v1.Ddl.CreateViewExprOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateViewExpr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateViewExpr_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.CreateViewExpr.class, io.greptime.v1.Ddl.CreateViewExpr.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.CreateViewExpr.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(); + catalogName_ = ""; + + schemaName_ = ""; + + viewName_ = ""; + + logicalPlan_ = com.google.protobuf.ByteString.EMPTY; + + createIfNotExists_ = false; + + orReplace_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_CreateViewExpr_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.CreateViewExpr getDefaultInstanceForType() { + return io.greptime.v1.Ddl.CreateViewExpr.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.CreateViewExpr build() { + io.greptime.v1.Ddl.CreateViewExpr result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.CreateViewExpr buildPartial() { + io.greptime.v1.Ddl.CreateViewExpr result = new io.greptime.v1.Ddl.CreateViewExpr(this); + result.catalogName_ = catalogName_; + result.schemaName_ = schemaName_; + result.viewName_ = viewName_; + result.logicalPlan_ = logicalPlan_; + result.createIfNotExists_ = createIfNotExists_; + result.orReplace_ = orReplace_; + 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.CreateViewExpr) { + return mergeFrom((io.greptime.v1.Ddl.CreateViewExpr)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.CreateViewExpr other) { + if (other == io.greptime.v1.Ddl.CreateViewExpr.getDefaultInstance()) return this; + if (!other.getCatalogName().isEmpty()) { + catalogName_ = other.catalogName_; + onChanged(); + } + if (!other.getSchemaName().isEmpty()) { + schemaName_ = other.schemaName_; + onChanged(); + } + if (!other.getViewName().isEmpty()) { + viewName_ = other.viewName_; + onChanged(); + } + if (other.getLogicalPlan() != com.google.protobuf.ByteString.EMPTY) { + setLogicalPlan(other.getLogicalPlan()); + } + if (other.getCreateIfNotExists() != false) { + setCreateIfNotExists(other.getCreateIfNotExists()); + } + if (other.getOrReplace() != false) { + setOrReplace(other.getOrReplace()); + } + 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.CreateViewExpr parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.CreateViewExpr) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object catalogName_ = ""; + /** + * string catalog_name = 1; + * @return The catalogName. + */ + public java.lang.String getCatalogName() { + java.lang.Object ref = catalogName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string catalog_name = 1; + * @return The bytes for catalogName. + */ + public com.google.protobuf.ByteString + getCatalogNameBytes() { + java.lang.Object ref = catalogName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalogName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string catalog_name = 1; + * @param value The catalogName to set. + * @return This builder for chaining. + */ + public Builder setCatalogName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + catalogName_ = value; + onChanged(); + return this; + } + /** + * string catalog_name = 1; + * @return This builder for chaining. + */ + public Builder clearCatalogName() { + + catalogName_ = getDefaultInstance().getCatalogName(); + onChanged(); + return this; + } + /** + * string catalog_name = 1; + * @param value The bytes for catalogName to set. + * @return This builder for chaining. + */ + public Builder setCatalogNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + catalogName_ = value; + onChanged(); + return this; + } + + private java.lang.Object schemaName_ = ""; + /** + * string schema_name = 2; + * @return The schemaName. + */ + 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(); + schemaName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string schema_name = 2; + * @return The bytes for schemaName. + */ + public com.google.protobuf.ByteString + getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof 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; + } + } + /** + * string schema_name = 2; + * @param value The schemaName to set. + * @return This builder for chaining. + */ + public Builder setSchemaName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schemaName_ = value; + onChanged(); + return this; + } + /** + * string schema_name = 2; + * @return This builder for chaining. + */ + public Builder clearSchemaName() { + + schemaName_ = getDefaultInstance().getSchemaName(); + onChanged(); + return this; + } + /** + * string schema_name = 2; + * @param value The bytes for schemaName to set. + * @return This builder for chaining. + */ + public Builder setSchemaNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schemaName_ = value; + onChanged(); + return this; + } + + private java.lang.Object viewName_ = ""; + /** + * string view_name = 3; + * @return The viewName. + */ + public java.lang.String getViewName() { + java.lang.Object ref = viewName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + viewName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string view_name = 3; + * @return The bytes for viewName. + */ + public com.google.protobuf.ByteString + getViewNameBytes() { + java.lang.Object ref = viewName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + viewName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string view_name = 3; + * @param value The viewName to set. + * @return This builder for chaining. + */ + public Builder setViewName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + viewName_ = value; + onChanged(); + return this; + } + /** + * string view_name = 3; + * @return This builder for chaining. + */ + public Builder clearViewName() { + + viewName_ = getDefaultInstance().getViewName(); + onChanged(); + return this; + } + /** + * string view_name = 3; + * @param value The bytes for viewName to set. + * @return This builder for chaining. + */ + public Builder setViewNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + viewName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString logicalPlan_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes logical_plan = 4; + * @return The logicalPlan. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLogicalPlan() { + return logicalPlan_; + } + /** + * bytes logical_plan = 4; + * @param value The logicalPlan to set. + * @return This builder for chaining. + */ + public Builder setLogicalPlan(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + logicalPlan_ = value; + onChanged(); + return this; + } + /** + * bytes logical_plan = 4; + * @return This builder for chaining. + */ + public Builder clearLogicalPlan() { + + logicalPlan_ = getDefaultInstance().getLogicalPlan(); + onChanged(); + return this; + } + + private boolean createIfNotExists_ ; + /** + * bool create_if_not_exists = 5; + * @return The createIfNotExists. + */ + @java.lang.Override + public boolean getCreateIfNotExists() { + return createIfNotExists_; + } + /** + * bool create_if_not_exists = 5; + * @param value The createIfNotExists to set. + * @return This builder for chaining. + */ + public Builder setCreateIfNotExists(boolean value) { + + createIfNotExists_ = value; + onChanged(); + return this; + } + /** + * bool create_if_not_exists = 5; + * @return This builder for chaining. + */ + public Builder clearCreateIfNotExists() { + + createIfNotExists_ = false; + onChanged(); + return this; + } + + private boolean orReplace_ ; + /** + * bool or_replace = 6; + * @return The orReplace. + */ + @java.lang.Override + public boolean getOrReplace() { + return orReplace_; + } + /** + * bool or_replace = 6; + * @param value The orReplace to set. + * @return This builder for chaining. + */ + public Builder setOrReplace(boolean value) { + + orReplace_ = value; + onChanged(); + return this; + } + /** + * bool or_replace = 6; + * @return This builder for chaining. + */ + public Builder clearOrReplace() { + + orReplace_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.CreateViewExpr) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.CreateViewExpr) + private static final io.greptime.v1.Ddl.CreateViewExpr DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.CreateViewExpr(); + } + + public static io.greptime.v1.Ddl.CreateViewExpr getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateViewExpr parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateViewExpr(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.CreateViewExpr getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DropViewExprOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.DropViewExpr) + com.google.protobuf.MessageOrBuilder { + + /** + * string catalog_name = 1; + * @return The catalogName. + */ + java.lang.String getCatalogName(); + /** + * string catalog_name = 1; + * @return The bytes for catalogName. + */ + com.google.protobuf.ByteString + getCatalogNameBytes(); + + /** + * string schema_name = 2; + * @return The schemaName. + */ + java.lang.String getSchemaName(); + /** + * string schema_name = 2; + * @return The bytes for schemaName. + */ + com.google.protobuf.ByteString + getSchemaNameBytes(); + + /** + * string view_name = 3; + * @return The viewName. + */ + java.lang.String getViewName(); + /** + * string view_name = 3; + * @return The bytes for viewName. + */ + com.google.protobuf.ByteString + getViewNameBytes(); + + /** + * .greptime.v1.TableId view_id = 4; + * @return Whether the viewId field is set. + */ + boolean hasViewId(); + /** + * .greptime.v1.TableId view_id = 4; + * @return The viewId. + */ + io.greptime.v1.Ddl.TableId getViewId(); + /** + * .greptime.v1.TableId view_id = 4; + */ + io.greptime.v1.Ddl.TableIdOrBuilder getViewIdOrBuilder(); + + /** + * bool drop_if_exists = 5; + * @return The dropIfExists. + */ + boolean getDropIfExists(); + } + /** + *
+   * Drop a view
+   * 
+ * + * Protobuf type {@code greptime.v1.DropViewExpr} + */ + public static final class DropViewExpr extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.DropViewExpr) + DropViewExprOrBuilder { + private static final long serialVersionUID = 0L; + // Use DropViewExpr.newBuilder() to construct. + private DropViewExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DropViewExpr() { + catalogName_ = ""; + schemaName_ = ""; + viewName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DropViewExpr(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DropViewExpr( + 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(); + + catalogName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + schemaName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + viewName_ = s; + break; + } + case 34: { + io.greptime.v1.Ddl.TableId.Builder subBuilder = null; + if (viewId_ != null) { + subBuilder = viewId_.toBuilder(); + } + viewId_ = input.readMessage(io.greptime.v1.Ddl.TableId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(viewId_); + viewId_ = subBuilder.buildPartial(); + } + + break; + } + case 40: { + + dropIfExists_ = input.readBool(); + 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_DropViewExpr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropViewExpr_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.DropViewExpr.class, io.greptime.v1.Ddl.DropViewExpr.Builder.class); + } + + public static final int CATALOG_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object catalogName_; + /** + * string catalog_name = 1; + * @return The catalogName. + */ + @java.lang.Override + public java.lang.String getCatalogName() { + java.lang.Object ref = catalogName_; + 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(); + catalogName_ = s; + return s; + } + } + /** + * string catalog_name = 1; + * @return The bytes for catalogName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCatalogNameBytes() { + java.lang.Object ref = catalogName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalogName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object schemaName_; + /** + * string schema_name = 2; + * @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 = 2; + * @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 VIEW_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object viewName_; + /** + * string view_name = 3; + * @return The viewName. + */ + @java.lang.Override + public java.lang.String getViewName() { + java.lang.Object ref = viewName_; + 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(); + viewName_ = s; + return s; + } + } + /** + * string view_name = 3; + * @return The bytes for viewName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getViewNameBytes() { + java.lang.Object ref = viewName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + viewName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_ID_FIELD_NUMBER = 4; + private io.greptime.v1.Ddl.TableId viewId_; + /** + * .greptime.v1.TableId view_id = 4; + * @return Whether the viewId field is set. + */ + @java.lang.Override + public boolean hasViewId() { + return viewId_ != null; + } + /** + * .greptime.v1.TableId view_id = 4; + * @return The viewId. + */ + @java.lang.Override + public io.greptime.v1.Ddl.TableId getViewId() { + return viewId_ == null ? io.greptime.v1.Ddl.TableId.getDefaultInstance() : viewId_; + } + /** + * .greptime.v1.TableId view_id = 4; + */ + @java.lang.Override + public io.greptime.v1.Ddl.TableIdOrBuilder getViewIdOrBuilder() { + return getViewId(); + } + + public static final int DROP_IF_EXISTS_FIELD_NUMBER = 5; + private boolean dropIfExists_; + /** + * bool drop_if_exists = 5; + * @return The dropIfExists. + */ + @java.lang.Override + public boolean getDropIfExists() { + return dropIfExists_; + } + + 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(catalogName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(viewName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, viewName_); + } + if (viewId_ != null) { + output.writeMessage(4, getViewId()); + } + if (dropIfExists_ != false) { + output.writeBool(5, dropIfExists_); + } + 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(catalogName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(viewName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, viewName_); + } + if (viewId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getViewId()); + } + if (dropIfExists_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, dropIfExists_); + } + 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.DropViewExpr)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.DropViewExpr other = (io.greptime.v1.Ddl.DropViewExpr) obj; + + if (!getCatalogName() + .equals(other.getCatalogName())) return false; + if (!getSchemaName() + .equals(other.getSchemaName())) return false; + if (!getViewName() + .equals(other.getViewName())) return false; + if (hasViewId() != other.hasViewId()) return false; + if (hasViewId()) { + if (!getViewId() + .equals(other.getViewId())) return false; + } + if (getDropIfExists() + != other.getDropIfExists()) 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) + CATALOG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCatalogName().hashCode(); + hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSchemaName().hashCode(); + hash = (37 * hash) + VIEW_NAME_FIELD_NUMBER; + hash = (53 * hash) + getViewName().hashCode(); + if (hasViewId()) { + hash = (37 * hash) + VIEW_ID_FIELD_NUMBER; + hash = (53 * hash) + getViewId().hashCode(); + } + hash = (37 * hash) + DROP_IF_EXISTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDropIfExists()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.DropViewExpr parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.DropViewExpr 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.DropViewExpr parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.DropViewExpr 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.DropViewExpr parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.DropViewExpr parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.DropViewExpr parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.DropViewExpr 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.DropViewExpr parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.DropViewExpr 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.DropViewExpr parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.DropViewExpr 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.DropViewExpr 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; + } + /** + *
+     * Drop a view
+     * 
+ * + * Protobuf type {@code greptime.v1.DropViewExpr} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.DropViewExpr) + io.greptime.v1.Ddl.DropViewExprOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropViewExpr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropViewExpr_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.DropViewExpr.class, io.greptime.v1.Ddl.DropViewExpr.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.DropViewExpr.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(); + catalogName_ = ""; + + schemaName_ = ""; + + viewName_ = ""; + + if (viewIdBuilder_ == null) { + viewId_ = null; + } else { + viewId_ = null; + viewIdBuilder_ = null; + } + dropIfExists_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropViewExpr_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.DropViewExpr getDefaultInstanceForType() { + return io.greptime.v1.Ddl.DropViewExpr.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.DropViewExpr build() { + io.greptime.v1.Ddl.DropViewExpr result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.DropViewExpr buildPartial() { + io.greptime.v1.Ddl.DropViewExpr result = new io.greptime.v1.Ddl.DropViewExpr(this); + result.catalogName_ = catalogName_; + result.schemaName_ = schemaName_; + result.viewName_ = viewName_; + if (viewIdBuilder_ == null) { + result.viewId_ = viewId_; + } else { + result.viewId_ = viewIdBuilder_.build(); + } + result.dropIfExists_ = dropIfExists_; + 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.DropViewExpr) { + return mergeFrom((io.greptime.v1.Ddl.DropViewExpr)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.DropViewExpr other) { + if (other == io.greptime.v1.Ddl.DropViewExpr.getDefaultInstance()) return this; + if (!other.getCatalogName().isEmpty()) { + catalogName_ = other.catalogName_; + onChanged(); + } + if (!other.getSchemaName().isEmpty()) { + schemaName_ = other.schemaName_; + onChanged(); + } + if (!other.getViewName().isEmpty()) { + viewName_ = other.viewName_; + onChanged(); + } + if (other.hasViewId()) { + mergeViewId(other.getViewId()); + } + if (other.getDropIfExists() != false) { + setDropIfExists(other.getDropIfExists()); + } + 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.DropViewExpr parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.DropViewExpr) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object catalogName_ = ""; + /** + * string catalog_name = 1; + * @return The catalogName. + */ + public java.lang.String getCatalogName() { + java.lang.Object ref = catalogName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string catalog_name = 1; + * @return The bytes for catalogName. + */ + public com.google.protobuf.ByteString + getCatalogNameBytes() { + java.lang.Object ref = catalogName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalogName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string catalog_name = 1; + * @param value The catalogName to set. + * @return This builder for chaining. + */ + public Builder setCatalogName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + catalogName_ = value; + onChanged(); + return this; + } + /** + * string catalog_name = 1; + * @return This builder for chaining. + */ + public Builder clearCatalogName() { + + catalogName_ = getDefaultInstance().getCatalogName(); + onChanged(); + return this; + } + /** + * string catalog_name = 1; + * @param value The bytes for catalogName to set. + * @return This builder for chaining. + */ + public Builder setCatalogNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + catalogName_ = value; + onChanged(); + return this; + } + + private java.lang.Object schemaName_ = ""; + /** + * string schema_name = 2; + * @return The schemaName. + */ + 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(); + schemaName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string schema_name = 2; + * @return The bytes for schemaName. + */ + public com.google.protobuf.ByteString + getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof 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; + } + } + /** + * string schema_name = 2; + * @param value The schemaName to set. + * @return This builder for chaining. + */ + public Builder setSchemaName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schemaName_ = value; + onChanged(); + return this; + } + /** + * string schema_name = 2; + * @return This builder for chaining. + */ + public Builder clearSchemaName() { + + schemaName_ = getDefaultInstance().getSchemaName(); + onChanged(); + return this; + } + /** + * string schema_name = 2; + * @param value The bytes for schemaName to set. + * @return This builder for chaining. + */ + public Builder setSchemaNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schemaName_ = value; + onChanged(); + return this; + } + + private java.lang.Object viewName_ = ""; + /** + * string view_name = 3; + * @return The viewName. + */ + public java.lang.String getViewName() { + java.lang.Object ref = viewName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + viewName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string view_name = 3; + * @return The bytes for viewName. + */ + public com.google.protobuf.ByteString + getViewNameBytes() { + java.lang.Object ref = viewName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + viewName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string view_name = 3; + * @param value The viewName to set. + * @return This builder for chaining. + */ + public Builder setViewName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + viewName_ = value; + onChanged(); + return this; + } + /** + * string view_name = 3; + * @return This builder for chaining. + */ + public Builder clearViewName() { + + viewName_ = getDefaultInstance().getViewName(); + onChanged(); + return this; + } + /** + * string view_name = 3; + * @param value The bytes for viewName to set. + * @return This builder for chaining. + */ + public Builder setViewNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + viewName_ = value; + onChanged(); + return this; + } + + private io.greptime.v1.Ddl.TableId viewId_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.TableId, io.greptime.v1.Ddl.TableId.Builder, io.greptime.v1.Ddl.TableIdOrBuilder> viewIdBuilder_; + /** + * .greptime.v1.TableId view_id = 4; + * @return Whether the viewId field is set. + */ + public boolean hasViewId() { + return viewIdBuilder_ != null || viewId_ != null; + } + /** + * .greptime.v1.TableId view_id = 4; + * @return The viewId. + */ + public io.greptime.v1.Ddl.TableId getViewId() { + if (viewIdBuilder_ == null) { + return viewId_ == null ? io.greptime.v1.Ddl.TableId.getDefaultInstance() : viewId_; + } else { + return viewIdBuilder_.getMessage(); + } + } + /** + * .greptime.v1.TableId view_id = 4; + */ + public Builder setViewId(io.greptime.v1.Ddl.TableId value) { + if (viewIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + viewId_ = value; + onChanged(); + } else { + viewIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.TableId view_id = 4; + */ + public Builder setViewId( + io.greptime.v1.Ddl.TableId.Builder builderForValue) { + if (viewIdBuilder_ == null) { + viewId_ = builderForValue.build(); + onChanged(); + } else { + viewIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.TableId view_id = 4; + */ + public Builder mergeViewId(io.greptime.v1.Ddl.TableId value) { + if (viewIdBuilder_ == null) { + if (viewId_ != null) { + viewId_ = + io.greptime.v1.Ddl.TableId.newBuilder(viewId_).mergeFrom(value).buildPartial(); + } else { + viewId_ = value; + } + onChanged(); + } else { + viewIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.TableId view_id = 4; + */ + public Builder clearViewId() { + if (viewIdBuilder_ == null) { + viewId_ = null; + onChanged(); + } else { + viewId_ = null; + viewIdBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.TableId view_id = 4; + */ + public io.greptime.v1.Ddl.TableId.Builder getViewIdBuilder() { + + onChanged(); + return getViewIdFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.TableId view_id = 4; + */ + public io.greptime.v1.Ddl.TableIdOrBuilder getViewIdOrBuilder() { + if (viewIdBuilder_ != null) { + return viewIdBuilder_.getMessageOrBuilder(); + } else { + return viewId_ == null ? + io.greptime.v1.Ddl.TableId.getDefaultInstance() : viewId_; + } + } + /** + * .greptime.v1.TableId view_id = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.TableId, io.greptime.v1.Ddl.TableId.Builder, io.greptime.v1.Ddl.TableIdOrBuilder> + getViewIdFieldBuilder() { + if (viewIdBuilder_ == null) { + viewIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.TableId, io.greptime.v1.Ddl.TableId.Builder, io.greptime.v1.Ddl.TableIdOrBuilder>( + getViewId(), + getParentForChildren(), + isClean()); + viewId_ = null; + } + return viewIdBuilder_; + } + + private boolean dropIfExists_ ; + /** + * bool drop_if_exists = 5; + * @return The dropIfExists. + */ + @java.lang.Override + public boolean getDropIfExists() { + return dropIfExists_; + } + /** + * bool drop_if_exists = 5; + * @param value The dropIfExists to set. + * @return This builder for chaining. + */ + public Builder setDropIfExists(boolean value) { + + dropIfExists_ = value; + onChanged(); + return this; + } + /** + * bool drop_if_exists = 5; + * @return This builder for chaining. + */ + public Builder clearDropIfExists() { + + dropIfExists_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.DropViewExpr) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.DropViewExpr) + private static final io.greptime.v1.Ddl.DropViewExpr DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.DropViewExpr(); + } + + public static io.greptime.v1.Ddl.DropViewExpr getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DropViewExpr parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DropViewExpr(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.DropViewExpr getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface CreateTableExprOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.CreateTableExpr) com.google.protobuf.MessageOrBuilder { @@ -22202,6 +24908,16 @@ java.lang.String defaultValue); private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_DropFlowExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateViewExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateViewExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DropViewExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DropViewExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_CreateTableExpr_descriptor; private static final @@ -22307,7 +25023,7 @@ java.lang.String defaultValue); static { java.lang.String[] descriptorData = { "\n\025greptime/v1/ddl.proto\022\013greptime.v1\032\030gr" + - "eptime/v1/common.proto\"\377\002\n\nDdlRequest\022:\n" + + "eptime/v1/common.proto\"\343\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" + @@ -22317,78 +25033,87 @@ java.lang.String defaultValue); ".TruncateTableExprH\000\0222\n\013create_flow\030\010 \001(" + "\0132\033.greptime.v1.CreateFlowExprH\000\022.\n\tdrop" + "_flow\030\t \001(\0132\031.greptime.v1.DropFlowExprH\000" + - "B\006\n\004expr\"\373\002\n\016CreateFlowExpr\022\024\n\014catalog_n" + - "ame\030\001 \001(\t\022\021\n\tflow_name\030\002 \001(\t\0222\n\022source_t" + - "able_names\030\003 \003(\0132\026.greptime.v1.TableName" + - "\022/\n\017sink_table_name\030\004 \001(\0132\026.greptime.v1." + - "TableName\022\022\n\nor_replace\030\005 \001(\010\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\022B\n\014flow_o" + - "ptions\030\n \003(\0132,.greptime.v1.CreateFlowExp" + - "r.FlowOptionsEntry\0322\n\020FlowOptionsEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\014DropFl" + - "owExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tflow_nam" + - "e\030\002 \001(\t\022$\n\007flow_id\030\003 \001(\0132\023.greptime.v1.F" + - "lowId\022\026\n\016drop_if_exists\030\005 \001(\010\"\207\003\n\017Create" + - "TableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schem" + - "a_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.v" + - "1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014prima" + - "ry_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" + - ".CreateTableExpr.TableOptionsEntry\022&\n\010ta" + - "ble_id\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006en" + - "gine\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\"\245\002\n\tAlterExpr\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_col" + - "umns\030\005 \001(\0132\030.greptime.v1.DropColumnsH\000\0220" + - "\n\014rename_table\030\006 \001(\0132\030.greptime.v1.Renam" + - "eTableH\000\022=\n\023change_column_types\030\007 \001(\0132\036." + - "greptime.v1.ChangeColumnTypesH\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\022CreateDatab" + - "aseExpr\022\024\n\014catalog_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.CreateDa" + - "tabaseExpr.OptionsEntry\032.\n\014OptionsEntry\022" + - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021Trunc" + - "ateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sc" + + "\0222\n\013create_view\030\n \001(\0132\033.greptime.v1.Crea" + + "teViewExprH\000\022.\n\tdrop_view\030\013 \001(\0132\031.grepti" + + "me.v1.DropViewExprH\000B\006\n\004expr\"\373\002\n\016CreateF" + + "lowExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tflow_na" + + "me\030\002 \001(\t\0222\n\022source_table_names\030\003 \003(\0132\026.g" + + "reptime.v1.TableName\022/\n\017sink_table_name\030" + + "\004 \001(\0132\026.greptime.v1.TableName\022\022\n\nor_repl" + + "ace\030\005 \001(\010\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\022B\n\014flow_options\030\n \003(\0132,.grept" + + "ime.v1.CreateFlowExpr.FlowOptionsEntry\0322" + + "\n\020FlowOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"u\n\014DropFlowExpr\022\024\n\014catalog_na" + + "me\030\001 \001(\t\022\021\n\tflow_name\030\002 \001(\t\022$\n\007flow_id\030\003" + + " \001(\0132\023.greptime.v1.FlowId\022\026\n\016drop_if_exi" + + "sts\030\005 \001(\010\"\226\001\n\016CreateViewExpr\022\024\n\014catalog_" + + "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\021\n\tview_" + + "name\030\003 \001(\t\022\024\n\014logical_plan\030\004 \001(\014\022\034\n\024crea" + + "te_if_not_exists\030\005 \001(\010\022\022\n\nor_replace\030\006 \001" + + "(\010\"\213\001\n\014DropViewExpr\022\024\n\014catalog_name\030\001 \001(" + + "\t\022\023\n\013schema_name\030\002 \001(\t\022\021\n\tview_name\030\003 \001(" + + "\t\022%\n\007view_id\030\004 \001(\0132\024.greptime.v1.TableId" + + "\022\026\n\016drop_if_exists\030\005 \001(\010\"\207\003\n\017CreateTable" + + "Expr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_nam" + + "e\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.Col" + + "umnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014primary_ke" + + "ys\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.Crea" + + "teTableExpr.TableOptionsEntry\022&\n\010table_i" + + "d\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\"\245\002\n\tAlterExpr\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\013add_columns\030\004 \001(\0132\027.g" + + "reptime.v1.AddColumnsH\000\0220\n\014drop_columns\030" + + "\005 \001(\0132\030.greptime.v1.DropColumnsH\000\0220\n\014ren" + + "ame_table\030\006 \001(\0132\030.greptime.v1.RenameTabl" + + "eH\000\022=\n\023change_column_types\030\007 \001(\0132\036.grept" + + "ime.v1.ChangeColumnTypesH\000B\006\n\004kind\"\216\001\n\rD" + + "ropTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sc" + "hema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010t" + - "able_id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020D" + - "ropDatabaseExpr\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.AddColumn\"<\n\013DropColumns\022-\n\014" + - "drop_columns\030\001 \003(\0132\027.greptime.v1.DropCol" + - "umn\"O\n\021ChangeColumnTypes\022:\n\023change_colum" + - "n_types\030\001 \003(\0132\035.greptime.v1.ChangeColumn" + - "Type\"%\n\013RenameTable\022\026\n\016new_table_name\030\001 " + - "\001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.g" + - "reptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036" + - ".greptime.v1.AddColumnLocation\"\236\001\n\020Chang" + - "eColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013targ" + - "et_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTy" + - "pe\022C\n\025target_type_extension\030\003 \001(\0132$.grep" + - "time.v1.ColumnDataTypeExtension\"\032\n\nDropC" + - "olumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001" + - "(\r\"\024\n\006FlowId\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.grepti" + - "me.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(" + - "\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemanti" + - "c_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.ColumnDataTypeExtensi" + - "on\"\230\001\n\021AddColumnLocation\022B\n\rlocation_typ" + - "e\030\001 \001(\0162+.greptime.v1.AddColumnLocation." + - "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/Greptim" + - "eTeam/greptime-proto/go/greptime/v1b\006pro" + - "to3" + "able_id\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016d" + + "rop_if_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseEx" + + "pr\022\024\n\014catalog_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\007o" + + "ptions\030\004 \003(\0132,.greptime.v1.CreateDatabas" + + "eExpr.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTa" + + "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&\n\010table_" + + "id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020DropDa" + + "tabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sche" + + "ma_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.grept" + + "ime.v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_" + + "columns\030\001 \003(\0132\027.greptime.v1.DropColumn\"O" + + "\n\021ChangeColumnTypes\022:\n\023change_column_typ" + + "es\030\001 \003(\0132\035.greptime.v1.ChangeColumnType\"" + + "%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t\"i" + + "\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.grepti" + + "me.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.grep" + + "time.v1.AddColumnLocation\"\236\001\n\020ChangeColu" + + "mnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_ty" + + "pe\030\002 \001(\0162\033.greptime.v1.ColumnDataType\022C\n" + + "\025target_type_extension\030\003 \001(\0132$.greptime." + + "v1.ColumnDataTypeExtension\"\032\n\nDropColumn" + + "\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n" + + "\006FlowId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004nam" + + "e\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\022" + + "default_constraint\030\004 \001(\014\0220\n\rsemantic_typ" + + "e\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007co" + + "mment\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.Locat" + + "ionType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Lo" + + "cationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.g" + + "reptime.v1B\003DdlZ5github.com/GreptimeTeam" + + "/greptime-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -22400,7 +25125,7 @@ java.lang.String defaultValue); 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", "CreateFlow", "DropFlow", "Expr", }); + new java.lang.String[] { "CreateDatabase", "CreateTable", "Alter", "DropTable", "TruncateTable", "CreateFlow", "DropFlow", "CreateView", "DropView", "Expr", }); internal_static_greptime_v1_CreateFlowExpr_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_greptime_v1_CreateFlowExpr_fieldAccessorTable = new @@ -22419,8 +25144,20 @@ java.lang.String defaultValue); com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropFlowExpr_descriptor, new java.lang.String[] { "CatalogName", "FlowName", "FlowId", "DropIfExists", }); - internal_static_greptime_v1_CreateTableExpr_descriptor = + internal_static_greptime_v1_CreateViewExpr_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_greptime_v1_CreateViewExpr_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_CreateViewExpr_descriptor, + new java.lang.String[] { "CatalogName", "SchemaName", "ViewName", "LogicalPlan", "CreateIfNotExists", "OrReplace", }); + internal_static_greptime_v1_DropViewExpr_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_greptime_v1_DropViewExpr_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_DropViewExpr_descriptor, + new java.lang.String[] { "CatalogName", "SchemaName", "ViewName", "ViewId", "DropIfExists", }); + internal_static_greptime_v1_CreateTableExpr_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_greptime_v1_CreateTableExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_CreateTableExpr_descriptor, @@ -22432,19 +25169,19 @@ java.lang.String defaultValue); 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(6); 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", "ChangeColumnTypes", "Kind", }); internal_static_greptime_v1_DropTableExpr_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); 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(8); internal_static_greptime_v1_CreateDatabaseExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_CreateDatabaseExpr_descriptor, @@ -22456,79 +25193,79 @@ java.lang.String defaultValue); 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(9); 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(10); 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(11); 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(12); 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_ChangeColumnTypes_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ChangeColumnTypes_descriptor, new java.lang.String[] { "ChangeColumnTypes", }); internal_static_greptime_v1_RenameTable_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); 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(13); + getDescriptor().getMessageTypes().get(15); 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_ChangeColumnType_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ChangeColumnType_descriptor, new java.lang.String[] { "ColumnName", "TargetType", "TargetTypeExtension", }); internal_static_greptime_v1_DropColumn_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); 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(16); + getDescriptor().getMessageTypes().get(18); 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_FlowId_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_greptime_v1_FlowId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_FlowId_descriptor, new java.lang.String[] { "Id", }); internal_static_greptime_v1_ColumnDef_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); 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(19); + getDescriptor().getMessageTypes().get(21); 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 2a40f9f..31d0eee 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -35,6 +35,8 @@ message DdlRequest { TruncateTableExpr truncate_table = 7; CreateFlowExpr create_flow = 8; DropFlowExpr drop_flow = 9; + CreateViewExpr create_view = 10; + DropViewExpr drop_view = 11; } } @@ -60,6 +62,25 @@ message DropFlowExpr { bool drop_if_exists = 5; } +// Create a view +message CreateViewExpr { + string catalog_name = 1; + string schema_name = 2; + string view_name = 3; + bytes logical_plan = 4; + bool create_if_not_exists = 5; + bool or_replace = 6; +} + +// Drop a view +message DropViewExpr { + string catalog_name = 1; + string schema_name = 2; + string view_name = 3; + TableId view_id = 4; + bool drop_if_exists = 5; +} + message CreateTableExpr { string catalog_name = 1; string schema_name = 2; diff --git a/proto/greptime/v1/meta/ddl.proto b/proto/greptime/v1/meta/ddl.proto index 8422940..ad6b3f6 100644 --- a/proto/greptime/v1/meta/ddl.proto +++ b/proto/greptime/v1/meta/ddl.proto @@ -68,6 +68,17 @@ message DropFlowTask { DropFlowExpr drop_flow = 1; } +// Create a view task +message CreateViewTask { + CreateViewExpr create_view = 1; + bytes view_info = 2; +} + +// Drop a view task +message DropViewTask { + DropViewExpr drop_view = 1; +} + message DdlTaskRequest { RequestHeader header = 1; QueryContext query_context = 64; @@ -84,6 +95,8 @@ message DdlTaskRequest { CreateDatabaseTask create_database_task = 10; CreateFlowTask create_flow_task = 11; DropFlowTask drop_flow_task = 12; + CreateViewTask create_view_task = 13; + DropViewTask drop_view_task = 14; } }