From fc09a5696608d2a0aa718cc835d5cb9c4e8e9387 Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Fri, 14 Feb 2025 09:41:38 -0800 Subject: [PATCH] feat: support alter skipping index (#215) Signed-off-by: Ruihang Xia --- c++/greptime/v1/ddl.pb.cc | 893 +++++++- c++/greptime/v1/ddl.pb.h | 746 ++++++- go/greptime/v1/ddl.pb.go | 893 +++++--- java/src/main/java/io/greptime/v1/Ddl.java | 2123 +++++++++++++++++++- proto/greptime/v1/ddl.proto | 16 + 5 files changed, 4169 insertions(+), 502 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index d5298cf..dffe9d7 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -528,6 +528,35 @@ struct UnsetInvertedDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnsetInvertedDefaultTypeInternal _UnsetInverted_default_instance_; +PROTOBUF_CONSTEXPR SetSkipping::SetSkipping( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.granularity_)*/uint64_t{0u} + , /*decltype(_impl_.enable_)*/false + , /*decltype(_impl_.skipping_index_type_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SetSkippingDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetSkippingDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetSkippingDefaultTypeInternal() {} + union { + SetSkipping _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetSkippingDefaultTypeInternal _SetSkipping_default_instance_; +PROTOBUF_CONSTEXPR UnsetSkipping::UnsetSkipping( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UnsetSkippingDefaultTypeInternal { + PROTOBUF_CONSTEXPR UnsetSkippingDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UnsetSkippingDefaultTypeInternal() {} + union { + UnsetSkipping _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnsetSkippingDefaultTypeInternal _UnsetSkipping_default_instance_; PROTOBUF_CONSTEXPR AlterDatabaseExpr::AlterDatabaseExpr( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -572,8 +601,8 @@ struct UnsetDatabaseOptionsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnsetDatabaseOptionsDefaultTypeInternal _UnsetDatabaseOptions_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[37]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[2]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[39]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[3]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fddl_2eproto = nullptr; const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -710,6 +739,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _inlined_string_donated_ ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::SetIndex, _impl_.options_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetIndex, _internal_metadata_), @@ -719,6 +749,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _inlined_string_donated_ ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetIndex, _impl_.options_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropTableExpr, _internal_metadata_), @@ -913,6 +944,23 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetInverted, _impl_.column_name_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetSkipping, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetSkipping, _impl_.column_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetSkipping, _impl_.enable_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetSkipping, _impl_.granularity_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetSkipping, _impl_.skipping_index_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetSkipping, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetSkipping, _impl_.column_name_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterDatabaseExpr, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterDatabaseExpr, _impl_._oneof_case_[0]), @@ -949,33 +997,35 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 90, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, { 107, -1, -1, sizeof(::greptime::v1::AlterTableExpr)}, { 125, -1, -1, sizeof(::greptime::v1::SetIndex)}, - { 134, -1, -1, sizeof(::greptime::v1::UnsetIndex)}, - { 143, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, - { 154, 162, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, - { 164, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, - { 174, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, - { 184, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, - { 193, -1, -1, sizeof(::greptime::v1::AddColumns)}, - { 200, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 207, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)}, - { 214, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 221, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 230, -1, -1, sizeof(::greptime::v1::ModifyColumnType)}, - { 239, -1, -1, sizeof(::greptime::v1::Option)}, - { 247, -1, -1, sizeof(::greptime::v1::SetTableOptions)}, - { 254, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)}, - { 261, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 268, -1, -1, sizeof(::greptime::v1::TableId)}, - { 275, -1, -1, sizeof(::greptime::v1::FlowId)}, - { 282, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 296, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, - { 304, -1, -1, sizeof(::greptime::v1::SetFulltext)}, - { 314, -1, -1, sizeof(::greptime::v1::UnsetFulltext)}, - { 321, -1, -1, sizeof(::greptime::v1::SetInverted)}, - { 328, -1, -1, sizeof(::greptime::v1::UnsetInverted)}, - { 335, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)}, - { 346, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, - { 353, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)}, + { 135, -1, -1, sizeof(::greptime::v1::UnsetIndex)}, + { 145, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, + { 156, 164, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, + { 166, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, + { 176, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, + { 186, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, + { 195, -1, -1, sizeof(::greptime::v1::AddColumns)}, + { 202, -1, -1, sizeof(::greptime::v1::DropColumns)}, + { 209, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)}, + { 216, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 223, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 232, -1, -1, sizeof(::greptime::v1::ModifyColumnType)}, + { 241, -1, -1, sizeof(::greptime::v1::Option)}, + { 249, -1, -1, sizeof(::greptime::v1::SetTableOptions)}, + { 256, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)}, + { 263, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 270, -1, -1, sizeof(::greptime::v1::TableId)}, + { 277, -1, -1, sizeof(::greptime::v1::FlowId)}, + { 284, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 298, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 306, -1, -1, sizeof(::greptime::v1::SetFulltext)}, + { 316, -1, -1, sizeof(::greptime::v1::UnsetFulltext)}, + { 323, -1, -1, sizeof(::greptime::v1::SetInverted)}, + { 330, -1, -1, sizeof(::greptime::v1::UnsetInverted)}, + { 337, -1, -1, sizeof(::greptime::v1::SetSkipping)}, + { 347, -1, -1, sizeof(::greptime::v1::UnsetSkipping)}, + { 354, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)}, + { 365, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, + { 372, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1013,6 +1063,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_UnsetFulltext_default_instance_._instance, &::greptime::v1::_SetInverted_default_instance_._instance, &::greptime::v1::_UnsetInverted_default_instance_._instance, + &::greptime::v1::_SetSkipping_default_instance_._instance, + &::greptime::v1::_UnsetSkipping_default_instance_._instance, &::greptime::v1::_AlterDatabaseExpr_default_instance_._instance, &::greptime::v1::_SetDatabaseOptions_default_instance_._instance, &::greptime::v1::_UnsetDatabaseOptions_default_instance_._instance, @@ -1080,83 +1132,90 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "\036.greptime.v1.UnsetTableOptionsH\000\022*\n\tset" "_index\030\014 \001(\0132\025.greptime.v1.SetIndexH\000\022.\n" "\013unset_index\030\r \001(\0132\027.greptime.v1.UnsetIn" - "dexH\000B\006\n\004kind\"q\n\010SetIndex\022,\n\010fulltext\030\001 " - "\001(\0132\030.greptime.v1.SetFulltextH\000\022,\n\010inver" - "ted\030\002 \001(\0132\030.greptime.v1.SetInvertedH\000B\t\n" - "\007options\"w\n\nUnsetIndex\022.\n\010fulltext\030\001 \001(\013" - "2\032.greptime.v1.UnsetFulltextH\000\022.\n\010invert" - "ed\030\002 \001(\0132\032.greptime.v1.UnsetInvertedH\000B\t" - "\n\007options\"\216\001\n\rDropTableExpr\022\024\n\014catalog_n" - "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_" - "name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime." - "v1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022C" - "reateDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022" - "\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_not_ex" - "ists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v" - "1.CreateDatabaseExpr.OptionsEntry\032.\n\014Opt" - "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - "\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_name\030\001" - " \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030" - "\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Ta" - "bleId\"U\n\020DropDatabaseExpr\022\024\n\014catalog_nam" - "e\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_column" - "s\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n\013DropC" - "olumns\022-\n\014drop_columns\030\001 \003(\0132\027.greptime." - "v1.DropColumn\"O\n\021ModifyColumnTypes\022:\n\023mo" - "dify_column_types\030\001 \003(\0132\035.greptime.v1.Mo" - "difyColumnType\"%\n\013RenameTable\022\026\n\016new_tab" - "le_name\030\001 \001(\t\"\204\001\n\tAddColumn\022*\n\ncolumn_de" - "f\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010locat" - "ion\030\003 \001(\0132\036.greptime.v1.AddColumnLocatio" - "n\022\031\n\021add_if_not_exists\030\004 \001(\010\"\236\001\n\020ModifyC" - "olumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013target" - "_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType" - "\022C\n\025target_type_extension\030\003 \001(\0132$.grepti" - "me.v1.ColumnDataTypeExtension\"$\n\006Option\022" - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"=\n\017SetTableO" - "ptions\022*\n\rtable_options\030\001 \003(\0132\023.greptime" - ".v1.Option\"!\n\021UnsetTableOptions\022\014\n\004keys\030" - "\001 \003(\t\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007Tab" - "leId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254" - "\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030" - "\002 \001(\0162\033.greptime.v1.ColumnDataType\022\023\n\013is" - "_nullable\030\003 \001(\010\022\032\n\022default_constraint\030\004 " - "\001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1" - ".SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022dataty" - "pe_extension\030\007 \001(\0132$.greptime.v1.ColumnD" - "ataTypeExtension\022+\n\007options\030\010 \001(\0132\032.grep" - "time.v1.ColumnOptions\"\230\001\n\021AddColumnLocat" - "ion\022B\n\rlocation_type\030\001 \001(\0162+.greptime.v1" - ".AddColumnLocation.LocationType\022\031\n\021after" - "_column_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FI" - "RST\020\000\022\t\n\005AFTER\020\001\"s\n\013SetFulltext\022\023\n\013colum" - "n_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010analyzer" - "\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016case_se" - "nsitive\030\004 \001(\010\"$\n\rUnsetFulltext\022\023\n\013column" - "_name\030\001 \001(\t\"\"\n\013SetInverted\022\023\n\013column_nam" - "e\030\001 \001(\t\"$\n\rUnsetInverted\022\023\n\013column_name\030" - "\001 \001(\t\"\314\001\n\021AlterDatabaseExpr\022\024\n\014catalog_n" - "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\?\n\024set_da" - "tabase_options\030\003 \001(\0132\037.greptime.v1.SetDa" - "tabaseOptionsH\000\022C\n\026unset_database_option" - "s\030\004 \001(\0132!.greptime.v1.UnsetDatabaseOptio" - "nsH\000B\006\n\004kind\"G\n\022SetDatabaseOptions\0221\n\024se" - "t_database_options\030\001 \003(\0132\023.greptime.v1.O" - "ption\"$\n\024UnsetDatabaseOptions\022\014\n\004keys\030\001 " - "\003(\t*$\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020" - "\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gre" - "ptimeTeam/greptime-proto/go/greptime/v1b" - "\006proto3" + "dexH\000B\006\n\004kind\"\237\001\n\010SetIndex\022,\n\010fulltext\030\001" + " \001(\0132\030.greptime.v1.SetFulltextH\000\022,\n\010inve" + "rted\030\002 \001(\0132\030.greptime.v1.SetInvertedH\000\022," + "\n\010skipping\030\003 \001(\0132\030.greptime.v1.SetSkippi" + "ngH\000B\t\n\007options\"\247\001\n\nUnsetIndex\022.\n\010fullte" + "xt\030\001 \001(\0132\032.greptime.v1.UnsetFulltextH\000\022." + "\n\010inverted\030\002 \001(\0132\032.greptime.v1.UnsetInve" + "rtedH\000\022.\n\010skipping\030\003 \001(\0132\032.greptime.v1.U" + "nsetSkippingH\000B\t\n\007options\"\216\001\n\rDropTableE" + "xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" + "\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004" + " \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_ex" + "ists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014cat" + "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024" + "create_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 " + "\003(\0132,.greptime.v1.CreateDatabaseExpr.Opt" + "ionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r" + "\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024" + "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" + "\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132" + "\024.greptime.v1.TableId\"U\n\020DropDatabaseExp" + "r\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\nAddColum" + "ns\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.Ad" + "dColumn\"<\n\013DropColumns\022-\n\014drop_columns\030\001" + " \003(\0132\027.greptime.v1.DropColumn\"O\n\021ModifyC" + "olumnTypes\022:\n\023modify_column_types\030\001 \003(\0132" + "\035.greptime.v1.ModifyColumnType\"%\n\013Rename" + "Table\022\026\n\016new_table_name\030\001 \001(\t\"\204\001\n\tAddCol" + "umn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Co" + "lumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1." + "AddColumnLocation\022\031\n\021add_if_not_exists\030\004" + " \001(\010\"\236\001\n\020ModifyColumnType\022\023\n\013column_name" + "\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.greptime.v" + "1.ColumnDataType\022C\n\025target_type_extensio" + "n\030\003 \001(\0132$.greptime.v1.ColumnDataTypeExte" + "nsion\"$\n\006Option\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\t\"=\n\017SetTableOptions\022*\n\rtable_options\030" + "\001 \003(\0132\023.greptime.v1.Option\"!\n\021UnsetTable" + "Options\022\014\n\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004n" + "ame\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006Flow" + "Id\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001" + "(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1.Colu" + "mnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022defau" + "lt_constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001" + "(\0162\031.greptime.v1.SemanticType\022\017\n\007comment" + "\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.gre" + "ptime.v1.ColumnDataTypeExtension\022+\n\007opti" + "ons\030\010 \001(\0132\032.greptime.v1.ColumnOptions\"\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\001\"s\n\013SetF" + "ulltext\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002" + " \001(\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Ana" + "lyzer\022\026\n\016case_sensitive\030\004 \001(\010\"$\n\rUnsetFu" + "lltext\022\023\n\013column_name\030\001 \001(\t\"\"\n\013SetInvert" + "ed\022\023\n\013column_name\030\001 \001(\t\"$\n\rUnsetInverted" + "\022\023\n\013column_name\030\001 \001(\t\"\204\001\n\013SetSkipping\022\023\n" + "\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\023\n\013gr" + "anularity\030\003 \001(\004\022;\n\023skipping_index_type\030\004" + " \001(\0162\036.greptime.v1.SkippingIndexType\"$\n\r" + "UnsetSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021A" + "lterDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023" + "\n\013schema_name\030\002 \001(\t\022\?\n\024set_database_opti" + "ons\030\003 \001(\0132\037.greptime.v1.SetDatabaseOptio" + "nsH\000\022C\n\026unset_database_options\030\004 \001(\0132!.g" + "reptime.v1.UnsetDatabaseOptionsH\000B\006\n\004kin" + "d\"G\n\022SetDatabaseOptions\0221\n\024set_database_" + "options\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024Un" + "setDatabaseOptions\022\014\n\004keys\030\001 \003(\t*$\n\010Anal" + "yzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001*%\n\021Skippi" + "ngIndexType\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.grep" + "time.v1B\003DdlZ5github.com/GreptimeTeam/gr" + "eptime-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, 5127, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 5435, 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, 37, + &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 39, 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, @@ -1204,6 +1263,19 @@ bool Analyzer_IsValid(int value) { } } +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SkippingIndexType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fddl_2eproto); + return file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[2]; +} +bool SkippingIndexType_IsValid(int value) { + switch (value) { + case 0: + return true; + default: + return false; + } +} + // =================================================================== @@ -5367,6 +5439,7 @@ class SetIndex::_Internal { public: static const ::greptime::v1::SetFulltext& fulltext(const SetIndex* msg); static const ::greptime::v1::SetInverted& inverted(const SetIndex* msg); + static const ::greptime::v1::SetSkipping& skipping(const SetIndex* msg); }; const ::greptime::v1::SetFulltext& @@ -5377,6 +5450,10 @@ const ::greptime::v1::SetInverted& SetIndex::_Internal::inverted(const SetIndex* msg) { return *msg->_impl_.options_.inverted_; } +const ::greptime::v1::SetSkipping& +SetIndex::_Internal::skipping(const SetIndex* msg) { + return *msg->_impl_.options_.skipping_; +} void SetIndex::set_allocated_fulltext(::greptime::v1::SetFulltext* fulltext) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_options(); @@ -5407,6 +5484,21 @@ void SetIndex::set_allocated_inverted(::greptime::v1::SetInverted* inverted) { } // @@protoc_insertion_point(field_set_allocated:greptime.v1.SetIndex.inverted) } +void SetIndex::set_allocated_skipping(::greptime::v1::SetSkipping* skipping) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_options(); + if (skipping) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(skipping); + if (message_arena != submessage_arena) { + skipping = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, skipping, submessage_arena); + } + set_has_skipping(); + _impl_.options_.skipping_ = skipping; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.SetIndex.skipping) +} SetIndex::SetIndex(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -5434,6 +5526,11 @@ SetIndex::SetIndex(const SetIndex& from) from._internal_inverted()); break; } + case kSkipping: { + _this->_internal_mutable_skipping()->::greptime::v1::SetSkipping::MergeFrom( + from._internal_skipping()); + break; + } case OPTIONS_NOT_SET: { break; } @@ -5488,6 +5585,12 @@ void SetIndex::clear_options() { } break; } + case kSkipping: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.options_.skipping_; + } + break; + } case OPTIONS_NOT_SET: { break; } @@ -5528,6 +5631,14 @@ const char* SetIndex::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) } else goto handle_unusual; continue; + // .greptime.v1.SetSkipping skipping = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_skipping(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5571,6 +5682,13 @@ uint8_t* SetIndex::_InternalSerialize( _Internal::inverted(this).GetCachedSize(), target, stream); } + // .greptime.v1.SetSkipping skipping = 3; + if (_internal_has_skipping()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::skipping(this), + _Internal::skipping(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); @@ -5602,6 +5720,13 @@ size_t SetIndex::ByteSizeLong() const { *_impl_.options_.inverted_); break; } + // .greptime.v1.SetSkipping skipping = 3; + case kSkipping: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.options_.skipping_); + break; + } case OPTIONS_NOT_SET: { break; } @@ -5635,6 +5760,11 @@ void SetIndex::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO from._internal_inverted()); break; } + case kSkipping: { + _this->_internal_mutable_skipping()->::greptime::v1::SetSkipping::MergeFrom( + from._internal_skipping()); + break; + } case OPTIONS_NOT_SET: { break; } @@ -5672,6 +5802,7 @@ class UnsetIndex::_Internal { public: static const ::greptime::v1::UnsetFulltext& fulltext(const UnsetIndex* msg); static const ::greptime::v1::UnsetInverted& inverted(const UnsetIndex* msg); + static const ::greptime::v1::UnsetSkipping& skipping(const UnsetIndex* msg); }; const ::greptime::v1::UnsetFulltext& @@ -5682,6 +5813,10 @@ const ::greptime::v1::UnsetInverted& UnsetIndex::_Internal::inverted(const UnsetIndex* msg) { return *msg->_impl_.options_.inverted_; } +const ::greptime::v1::UnsetSkipping& +UnsetIndex::_Internal::skipping(const UnsetIndex* msg) { + return *msg->_impl_.options_.skipping_; +} void UnsetIndex::set_allocated_fulltext(::greptime::v1::UnsetFulltext* fulltext) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_options(); @@ -5712,6 +5847,21 @@ void UnsetIndex::set_allocated_inverted(::greptime::v1::UnsetInverted* inverted) } // @@protoc_insertion_point(field_set_allocated:greptime.v1.UnsetIndex.inverted) } +void UnsetIndex::set_allocated_skipping(::greptime::v1::UnsetSkipping* skipping) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_options(); + if (skipping) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(skipping); + if (message_arena != submessage_arena) { + skipping = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, skipping, submessage_arena); + } + set_has_skipping(); + _impl_.options_.skipping_ = skipping; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.UnsetIndex.skipping) +} UnsetIndex::UnsetIndex(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -5739,6 +5889,11 @@ UnsetIndex::UnsetIndex(const UnsetIndex& from) from._internal_inverted()); break; } + case kSkipping: { + _this->_internal_mutable_skipping()->::greptime::v1::UnsetSkipping::MergeFrom( + from._internal_skipping()); + break; + } case OPTIONS_NOT_SET: { break; } @@ -5793,6 +5948,12 @@ void UnsetIndex::clear_options() { } break; } + case kSkipping: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.options_.skipping_; + } + break; + } case OPTIONS_NOT_SET: { break; } @@ -5833,6 +5994,14 @@ const char* UnsetIndex::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct } else goto handle_unusual; continue; + // .greptime.v1.UnsetSkipping skipping = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_skipping(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5876,6 +6045,13 @@ uint8_t* UnsetIndex::_InternalSerialize( _Internal::inverted(this).GetCachedSize(), target, stream); } + // .greptime.v1.UnsetSkipping skipping = 3; + if (_internal_has_skipping()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::skipping(this), + _Internal::skipping(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); @@ -5907,6 +6083,13 @@ size_t UnsetIndex::ByteSizeLong() const { *_impl_.options_.inverted_); break; } + // .greptime.v1.UnsetSkipping skipping = 3; + case kSkipping: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.options_.skipping_); + break; + } case OPTIONS_NOT_SET: { break; } @@ -5940,6 +6123,11 @@ void UnsetIndex::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PRO from._internal_inverted()); break; } + case kSkipping: { + _this->_internal_mutable_skipping()->::greptime::v1::UnsetSkipping::MergeFrom( + from._internal_skipping()); + break; + } case OPTIONS_NOT_SET: { break; } @@ -11445,6 +11633,499 @@ void UnsetInverted::InternalSwap(UnsetInverted* other) { // =================================================================== +class SetSkipping::_Internal { + public: +}; + +SetSkipping::SetSkipping(::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.SetSkipping) +} +SetSkipping::SetSkipping(const SetSkipping& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SetSkipping* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , decltype(_impl_.granularity_){} + , decltype(_impl_.enable_){} + , decltype(_impl_.skipping_index_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_column_name().empty()) { + _this->_impl_.column_name_.Set(from._internal_column_name(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.granularity_, &from._impl_.granularity_, + static_cast(reinterpret_cast(&_impl_.skipping_index_type_) - + reinterpret_cast(&_impl_.granularity_)) + sizeof(_impl_.skipping_index_type_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.SetSkipping) +} + +inline void SetSkipping::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , decltype(_impl_.granularity_){uint64_t{0u}} + , decltype(_impl_.enable_){false} + , decltype(_impl_.skipping_index_type_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SetSkipping::~SetSkipping() { + // @@protoc_insertion_point(destructor:greptime.v1.SetSkipping) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SetSkipping::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.column_name_.Destroy(); +} + +void SetSkipping::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SetSkipping::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.SetSkipping) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.column_name_.ClearToEmpty(); + ::memset(&_impl_.granularity_, 0, static_cast( + reinterpret_cast(&_impl_.skipping_index_type_) - + reinterpret_cast(&_impl_.granularity_)) + sizeof(_impl_.skipping_index_type_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetSkipping::_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 column_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_column_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.SetSkipping.column_name")); + } else + goto handle_unusual; + continue; + // bool enable = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 granularity = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.granularity_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.SkippingIndexType skipping_index_type = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_skipping_index_type(static_cast<::greptime::v1::SkippingIndexType>(val)); + } 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* SetSkipping::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SetSkipping) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.SetSkipping.column_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_column_name(), target); + } + + // bool enable = 2; + if (this->_internal_enable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_enable(), target); + } + + // uint64 granularity = 3; + if (this->_internal_granularity() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_granularity(), target); + } + + // .greptime.v1.SkippingIndexType skipping_index_type = 4; + if (this->_internal_skipping_index_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this->_internal_skipping_index_type(), 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.SetSkipping) + return target; +} + +size_t SetSkipping::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.SetSkipping) + 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 column_name = 1; + if (!this->_internal_column_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_column_name()); + } + + // uint64 granularity = 3; + if (this->_internal_granularity() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_granularity()); + } + + // bool enable = 2; + if (this->_internal_enable() != 0) { + total_size += 1 + 1; + } + + // .greptime.v1.SkippingIndexType skipping_index_type = 4; + if (this->_internal_skipping_index_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_skipping_index_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetSkipping::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SetSkipping::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetSkipping::GetClassData() const { return &_class_data_; } + + +void SetSkipping::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.SetSkipping) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_column_name().empty()) { + _this->_internal_set_column_name(from._internal_column_name()); + } + if (from._internal_granularity() != 0) { + _this->_internal_set_granularity(from._internal_granularity()); + } + if (from._internal_enable() != 0) { + _this->_internal_set_enable(from._internal_enable()); + } + if (from._internal_skipping_index_type() != 0) { + _this->_internal_set_skipping_index_type(from._internal_skipping_index_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SetSkipping::CopyFrom(const SetSkipping& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.SetSkipping) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetSkipping::IsInitialized() const { + return true; +} + +void SetSkipping::InternalSwap(SetSkipping* 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_.column_name_, lhs_arena, + &other->_impl_.column_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SetSkipping, _impl_.skipping_index_type_) + + sizeof(SetSkipping::_impl_.skipping_index_type_) + - PROTOBUF_FIELD_OFFSET(SetSkipping, _impl_.granularity_)>( + reinterpret_cast(&_impl_.granularity_), + reinterpret_cast(&other->_impl_.granularity_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetSkipping::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[34]); +} + +// =================================================================== + +class UnsetSkipping::_Internal { + public: +}; + +UnsetSkipping::UnsetSkipping(::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.UnsetSkipping) +} +UnsetSkipping::UnsetSkipping(const UnsetSkipping& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UnsetSkipping* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_column_name().empty()) { + _this->_impl_.column_name_.Set(from._internal_column_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.UnsetSkipping) +} + +inline void UnsetSkipping::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +UnsetSkipping::~UnsetSkipping() { + // @@protoc_insertion_point(destructor:greptime.v1.UnsetSkipping) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UnsetSkipping::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.column_name_.Destroy(); +} + +void UnsetSkipping::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UnsetSkipping::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.UnsetSkipping) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.column_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UnsetSkipping::_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 column_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_column_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.UnsetSkipping.column_name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* UnsetSkipping::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.UnsetSkipping) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.UnsetSkipping.column_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_column_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.UnsetSkipping) + return target; +} + +size_t UnsetSkipping::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.UnsetSkipping) + 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 column_name = 1; + if (!this->_internal_column_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_column_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnsetSkipping::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UnsetSkipping::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnsetSkipping::GetClassData() const { return &_class_data_; } + + +void UnsetSkipping::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.UnsetSkipping) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_column_name().empty()) { + _this->_internal_set_column_name(from._internal_column_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UnsetSkipping::CopyFrom(const UnsetSkipping& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.UnsetSkipping) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UnsetSkipping::IsInitialized() const { + return true; +} + +void UnsetSkipping::InternalSwap(UnsetSkipping* 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_.column_name_, lhs_arena, + &other->_impl_.column_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UnsetSkipping::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[35]); +} + +// =================================================================== + class AlterDatabaseExpr::_Internal { public: static const ::greptime::v1::SetDatabaseOptions& set_database_options(const AlterDatabaseExpr* msg); @@ -11847,7 +12528,7 @@ void AlterDatabaseExpr::InternalSwap(AlterDatabaseExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AlterDatabaseExpr::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[34]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[36]); } // =================================================================== @@ -12032,7 +12713,7 @@ void SetDatabaseOptions::InternalSwap(SetDatabaseOptions* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SetDatabaseOptions::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[35]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[37]); } // =================================================================== @@ -12222,7 +12903,7 @@ void UnsetDatabaseOptions::InternalSwap(UnsetDatabaseOptions* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UnsetDatabaseOptions::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[36]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[38]); } // @@protoc_insertion_point(namespace_scope) @@ -12365,6 +13046,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::UnsetInverted* Arena::CreateMaybeMessage< ::greptime::v1::UnsetInverted >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::UnsetInverted >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::SetSkipping* +Arena::CreateMaybeMessage< ::greptime::v1::SetSkipping >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::SetSkipping >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::UnsetSkipping* +Arena::CreateMaybeMessage< ::greptime::v1::UnsetSkipping >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::UnsetSkipping >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::AlterDatabaseExpr* Arena::CreateMaybeMessage< ::greptime::v1::AlterDatabaseExpr >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::AlterDatabaseExpr >(arena); diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index 4bbf505..42bdd31 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -138,6 +138,9 @@ extern SetIndexDefaultTypeInternal _SetIndex_default_instance_; class SetInverted; struct SetInvertedDefaultTypeInternal; extern SetInvertedDefaultTypeInternal _SetInverted_default_instance_; +class SetSkipping; +struct SetSkippingDefaultTypeInternal; +extern SetSkippingDefaultTypeInternal _SetSkipping_default_instance_; class SetTableOptions; struct SetTableOptionsDefaultTypeInternal; extern SetTableOptionsDefaultTypeInternal _SetTableOptions_default_instance_; @@ -159,6 +162,9 @@ extern UnsetIndexDefaultTypeInternal _UnsetIndex_default_instance_; class UnsetInverted; struct UnsetInvertedDefaultTypeInternal; extern UnsetInvertedDefaultTypeInternal _UnsetInverted_default_instance_; +class UnsetSkipping; +struct UnsetSkippingDefaultTypeInternal; +extern UnsetSkippingDefaultTypeInternal _UnsetSkipping_default_instance_; class UnsetTableOptions; struct UnsetTableOptionsDefaultTypeInternal; extern UnsetTableOptionsDefaultTypeInternal _UnsetTableOptions_default_instance_; @@ -194,6 +200,7 @@ template<> ::greptime::v1::SetDatabaseOptions* Arena::CreateMaybeMessage<::grept template<> ::greptime::v1::SetFulltext* Arena::CreateMaybeMessage<::greptime::v1::SetFulltext>(Arena*); template<> ::greptime::v1::SetIndex* Arena::CreateMaybeMessage<::greptime::v1::SetIndex>(Arena*); template<> ::greptime::v1::SetInverted* Arena::CreateMaybeMessage<::greptime::v1::SetInverted>(Arena*); +template<> ::greptime::v1::SetSkipping* Arena::CreateMaybeMessage<::greptime::v1::SetSkipping>(Arena*); template<> ::greptime::v1::SetTableOptions* Arena::CreateMaybeMessage<::greptime::v1::SetTableOptions>(Arena*); template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*); template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*); @@ -201,6 +208,7 @@ template<> ::greptime::v1::UnsetDatabaseOptions* Arena::CreateMaybeMessage<::gre template<> ::greptime::v1::UnsetFulltext* Arena::CreateMaybeMessage<::greptime::v1::UnsetFulltext>(Arena*); template<> ::greptime::v1::UnsetIndex* Arena::CreateMaybeMessage<::greptime::v1::UnsetIndex>(Arena*); template<> ::greptime::v1::UnsetInverted* Arena::CreateMaybeMessage<::greptime::v1::UnsetInverted>(Arena*); +template<> ::greptime::v1::UnsetSkipping* Arena::CreateMaybeMessage<::greptime::v1::UnsetSkipping>(Arena*); template<> ::greptime::v1::UnsetTableOptions* Arena::CreateMaybeMessage<::greptime::v1::UnsetTableOptions>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace greptime { @@ -256,6 +264,30 @@ inline bool Analyzer_Parse( return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Analyzer_descriptor(), name, value); } +enum SkippingIndexType : int { + BLOOM_FILTER = 0, + SkippingIndexType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + SkippingIndexType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool SkippingIndexType_IsValid(int value); +constexpr SkippingIndexType SkippingIndexType_MIN = BLOOM_FILTER; +constexpr SkippingIndexType SkippingIndexType_MAX = BLOOM_FILTER; +constexpr int SkippingIndexType_ARRAYSIZE = SkippingIndexType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SkippingIndexType_descriptor(); +template +inline const std::string& SkippingIndexType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SkippingIndexType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + SkippingIndexType_descriptor(), enum_t_value); +} +inline bool SkippingIndexType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SkippingIndexType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + SkippingIndexType_descriptor(), name, value); +} // =================================================================== class DdlRequest final : @@ -2480,6 +2512,7 @@ class SetIndex final : enum OptionsCase { kFulltext = 1, kInverted = 2, + kSkipping = 3, OPTIONS_NOT_SET = 0, }; @@ -2563,6 +2596,7 @@ class SetIndex final : enum : int { kFulltextFieldNumber = 1, kInvertedFieldNumber = 2, + kSkippingFieldNumber = 3, }; // .greptime.v1.SetFulltext fulltext = 1; bool has_fulltext() const; @@ -2600,6 +2634,24 @@ class SetIndex final : ::greptime::v1::SetInverted* inverted); ::greptime::v1::SetInverted* unsafe_arena_release_inverted(); + // .greptime.v1.SetSkipping skipping = 3; + bool has_skipping() const; + private: + bool _internal_has_skipping() const; + public: + void clear_skipping(); + const ::greptime::v1::SetSkipping& skipping() const; + PROTOBUF_NODISCARD ::greptime::v1::SetSkipping* release_skipping(); + ::greptime::v1::SetSkipping* mutable_skipping(); + void set_allocated_skipping(::greptime::v1::SetSkipping* skipping); + private: + const ::greptime::v1::SetSkipping& _internal_skipping() const; + ::greptime::v1::SetSkipping* _internal_mutable_skipping(); + public: + void unsafe_arena_set_allocated_skipping( + ::greptime::v1::SetSkipping* skipping); + ::greptime::v1::SetSkipping* unsafe_arena_release_skipping(); + void clear_options(); OptionsCase options_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.SetIndex) @@ -2607,6 +2659,7 @@ class SetIndex final : class _Internal; void set_has_fulltext(); void set_has_inverted(); + void set_has_skipping(); inline bool has_options() const; inline void clear_has_options(); @@ -2620,6 +2673,7 @@ class SetIndex final : ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; ::greptime::v1::SetFulltext* fulltext_; ::greptime::v1::SetInverted* inverted_; + ::greptime::v1::SetSkipping* skipping_; } options_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -2676,6 +2730,7 @@ class UnsetIndex final : enum OptionsCase { kFulltext = 1, kInverted = 2, + kSkipping = 3, OPTIONS_NOT_SET = 0, }; @@ -2759,6 +2814,7 @@ class UnsetIndex final : enum : int { kFulltextFieldNumber = 1, kInvertedFieldNumber = 2, + kSkippingFieldNumber = 3, }; // .greptime.v1.UnsetFulltext fulltext = 1; bool has_fulltext() const; @@ -2796,6 +2852,24 @@ class UnsetIndex final : ::greptime::v1::UnsetInverted* inverted); ::greptime::v1::UnsetInverted* unsafe_arena_release_inverted(); + // .greptime.v1.UnsetSkipping skipping = 3; + bool has_skipping() const; + private: + bool _internal_has_skipping() const; + public: + void clear_skipping(); + const ::greptime::v1::UnsetSkipping& skipping() const; + PROTOBUF_NODISCARD ::greptime::v1::UnsetSkipping* release_skipping(); + ::greptime::v1::UnsetSkipping* mutable_skipping(); + void set_allocated_skipping(::greptime::v1::UnsetSkipping* skipping); + private: + const ::greptime::v1::UnsetSkipping& _internal_skipping() const; + ::greptime::v1::UnsetSkipping* _internal_mutable_skipping(); + public: + void unsafe_arena_set_allocated_skipping( + ::greptime::v1::UnsetSkipping* skipping); + ::greptime::v1::UnsetSkipping* unsafe_arena_release_skipping(); + void clear_options(); OptionsCase options_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.UnsetIndex) @@ -2803,6 +2877,7 @@ class UnsetIndex final : class _Internal; void set_has_fulltext(); void set_has_inverted(); + void set_has_skipping(); inline bool has_options() const; inline void clear_has_options(); @@ -2816,6 +2891,7 @@ class UnsetIndex final : ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; ::greptime::v1::UnsetFulltext* fulltext_; ::greptime::v1::UnsetInverted* inverted_; + ::greptime::v1::UnsetSkipping* skipping_; } options_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -6692,6 +6768,345 @@ class UnsetInverted final : }; // ------------------------------------------------------------------- +class SetSkipping final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SetSkipping) */ { + public: + inline SetSkipping() : SetSkipping(nullptr) {} + ~SetSkipping() override; + explicit PROTOBUF_CONSTEXPR SetSkipping(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetSkipping(const SetSkipping& from); + SetSkipping(SetSkipping&& from) noexcept + : SetSkipping() { + *this = ::std::move(from); + } + + inline SetSkipping& operator=(const SetSkipping& from) { + CopyFrom(from); + return *this; + } + inline SetSkipping& operator=(SetSkipping&& 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 SetSkipping& default_instance() { + return *internal_default_instance(); + } + static inline const SetSkipping* internal_default_instance() { + return reinterpret_cast( + &_SetSkipping_default_instance_); + } + static constexpr int kIndexInFileMessages = + 34; + + friend void swap(SetSkipping& a, SetSkipping& b) { + a.Swap(&b); + } + inline void Swap(SetSkipping* 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(SetSkipping* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetSkipping* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetSkipping& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SetSkipping& from) { + SetSkipping::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(SetSkipping* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.SetSkipping"; + } + protected: + explicit SetSkipping(::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 { + kColumnNameFieldNumber = 1, + kGranularityFieldNumber = 3, + kEnableFieldNumber = 2, + kSkippingIndexTypeFieldNumber = 4, + }; + // string column_name = 1; + void clear_column_name(); + const std::string& column_name() const; + template + void set_column_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_column_name(); + PROTOBUF_NODISCARD std::string* release_column_name(); + void set_allocated_column_name(std::string* column_name); + private: + const std::string& _internal_column_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value); + std::string* _internal_mutable_column_name(); + public: + + // uint64 granularity = 3; + void clear_granularity(); + uint64_t granularity() const; + void set_granularity(uint64_t value); + private: + uint64_t _internal_granularity() const; + void _internal_set_granularity(uint64_t value); + public: + + // bool enable = 2; + void clear_enable(); + bool enable() const; + void set_enable(bool value); + private: + bool _internal_enable() const; + void _internal_set_enable(bool value); + public: + + // .greptime.v1.SkippingIndexType skipping_index_type = 4; + void clear_skipping_index_type(); + ::greptime::v1::SkippingIndexType skipping_index_type() const; + void set_skipping_index_type(::greptime::v1::SkippingIndexType value); + private: + ::greptime::v1::SkippingIndexType _internal_skipping_index_type() const; + void _internal_set_skipping_index_type(::greptime::v1::SkippingIndexType value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.SetSkipping) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; + uint64_t granularity_; + bool enable_; + int skipping_index_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + +class UnsetSkipping final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.UnsetSkipping) */ { + public: + inline UnsetSkipping() : UnsetSkipping(nullptr) {} + ~UnsetSkipping() override; + explicit PROTOBUF_CONSTEXPR UnsetSkipping(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UnsetSkipping(const UnsetSkipping& from); + UnsetSkipping(UnsetSkipping&& from) noexcept + : UnsetSkipping() { + *this = ::std::move(from); + } + + inline UnsetSkipping& operator=(const UnsetSkipping& from) { + CopyFrom(from); + return *this; + } + inline UnsetSkipping& operator=(UnsetSkipping&& 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 UnsetSkipping& default_instance() { + return *internal_default_instance(); + } + static inline const UnsetSkipping* internal_default_instance() { + return reinterpret_cast( + &_UnsetSkipping_default_instance_); + } + static constexpr int kIndexInFileMessages = + 35; + + friend void swap(UnsetSkipping& a, UnsetSkipping& b) { + a.Swap(&b); + } + inline void Swap(UnsetSkipping* 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(UnsetSkipping* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UnsetSkipping* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UnsetSkipping& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UnsetSkipping& from) { + UnsetSkipping::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(UnsetSkipping* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.UnsetSkipping"; + } + protected: + explicit UnsetSkipping(::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 { + kColumnNameFieldNumber = 1, + }; + // string column_name = 1; + void clear_column_name(); + const std::string& column_name() const; + template + void set_column_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_column_name(); + PROTOBUF_NODISCARD std::string* release_column_name(); + void set_allocated_column_name(std::string* column_name); + private: + const std::string& _internal_column_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value); + std::string* _internal_mutable_column_name(); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.UnsetSkipping) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + class AlterDatabaseExpr final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AlterDatabaseExpr) */ { public: @@ -6746,7 +7161,7 @@ class AlterDatabaseExpr final : &_AlterDatabaseExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 36; friend void swap(AlterDatabaseExpr& a, AlterDatabaseExpr& b) { a.Swap(&b); @@ -6968,7 +7383,7 @@ class SetDatabaseOptions final : &_SetDatabaseOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 37; friend void swap(SetDatabaseOptions& a, SetDatabaseOptions& b) { a.Swap(&b); @@ -7125,7 +7540,7 @@ class UnsetDatabaseOptions final : &_UnsetDatabaseOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 36; + 38; friend void swap(UnsetDatabaseOptions& a, UnsetDatabaseOptions& b) { a.Swap(&b); @@ -10906,6 +11321,80 @@ inline ::greptime::v1::SetInverted* SetIndex::mutable_inverted() { return _msg; } +// .greptime.v1.SetSkipping skipping = 3; +inline bool SetIndex::_internal_has_skipping() const { + return options_case() == kSkipping; +} +inline bool SetIndex::has_skipping() const { + return _internal_has_skipping(); +} +inline void SetIndex::set_has_skipping() { + _impl_._oneof_case_[0] = kSkipping; +} +inline void SetIndex::clear_skipping() { + if (_internal_has_skipping()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.options_.skipping_; + } + clear_has_options(); + } +} +inline ::greptime::v1::SetSkipping* SetIndex::release_skipping() { + // @@protoc_insertion_point(field_release:greptime.v1.SetIndex.skipping) + if (_internal_has_skipping()) { + clear_has_options(); + ::greptime::v1::SetSkipping* temp = _impl_.options_.skipping_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.options_.skipping_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::SetSkipping& SetIndex::_internal_skipping() const { + return _internal_has_skipping() + ? *_impl_.options_.skipping_ + : reinterpret_cast< ::greptime::v1::SetSkipping&>(::greptime::v1::_SetSkipping_default_instance_); +} +inline const ::greptime::v1::SetSkipping& SetIndex::skipping() const { + // @@protoc_insertion_point(field_get:greptime.v1.SetIndex.skipping) + return _internal_skipping(); +} +inline ::greptime::v1::SetSkipping* SetIndex::unsafe_arena_release_skipping() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.SetIndex.skipping) + if (_internal_has_skipping()) { + clear_has_options(); + ::greptime::v1::SetSkipping* temp = _impl_.options_.skipping_; + _impl_.options_.skipping_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void SetIndex::unsafe_arena_set_allocated_skipping(::greptime::v1::SetSkipping* skipping) { + clear_options(); + if (skipping) { + set_has_skipping(); + _impl_.options_.skipping_ = skipping; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.SetIndex.skipping) +} +inline ::greptime::v1::SetSkipping* SetIndex::_internal_mutable_skipping() { + if (!_internal_has_skipping()) { + clear_options(); + set_has_skipping(); + _impl_.options_.skipping_ = CreateMaybeMessage< ::greptime::v1::SetSkipping >(GetArenaForAllocation()); + } + return _impl_.options_.skipping_; +} +inline ::greptime::v1::SetSkipping* SetIndex::mutable_skipping() { + ::greptime::v1::SetSkipping* _msg = _internal_mutable_skipping(); + // @@protoc_insertion_point(field_mutable:greptime.v1.SetIndex.skipping) + return _msg; +} + inline bool SetIndex::has_options() const { return options_case() != OPTIONS_NOT_SET; } @@ -11067,6 +11556,80 @@ inline ::greptime::v1::UnsetInverted* UnsetIndex::mutable_inverted() { return _msg; } +// .greptime.v1.UnsetSkipping skipping = 3; +inline bool UnsetIndex::_internal_has_skipping() const { + return options_case() == kSkipping; +} +inline bool UnsetIndex::has_skipping() const { + return _internal_has_skipping(); +} +inline void UnsetIndex::set_has_skipping() { + _impl_._oneof_case_[0] = kSkipping; +} +inline void UnsetIndex::clear_skipping() { + if (_internal_has_skipping()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.options_.skipping_; + } + clear_has_options(); + } +} +inline ::greptime::v1::UnsetSkipping* UnsetIndex::release_skipping() { + // @@protoc_insertion_point(field_release:greptime.v1.UnsetIndex.skipping) + if (_internal_has_skipping()) { + clear_has_options(); + ::greptime::v1::UnsetSkipping* temp = _impl_.options_.skipping_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.options_.skipping_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::UnsetSkipping& UnsetIndex::_internal_skipping() const { + return _internal_has_skipping() + ? *_impl_.options_.skipping_ + : reinterpret_cast< ::greptime::v1::UnsetSkipping&>(::greptime::v1::_UnsetSkipping_default_instance_); +} +inline const ::greptime::v1::UnsetSkipping& UnsetIndex::skipping() const { + // @@protoc_insertion_point(field_get:greptime.v1.UnsetIndex.skipping) + return _internal_skipping(); +} +inline ::greptime::v1::UnsetSkipping* UnsetIndex::unsafe_arena_release_skipping() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.UnsetIndex.skipping) + if (_internal_has_skipping()) { + clear_has_options(); + ::greptime::v1::UnsetSkipping* temp = _impl_.options_.skipping_; + _impl_.options_.skipping_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void UnsetIndex::unsafe_arena_set_allocated_skipping(::greptime::v1::UnsetSkipping* skipping) { + clear_options(); + if (skipping) { + set_has_skipping(); + _impl_.options_.skipping_ = skipping; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.UnsetIndex.skipping) +} +inline ::greptime::v1::UnsetSkipping* UnsetIndex::_internal_mutable_skipping() { + if (!_internal_has_skipping()) { + clear_options(); + set_has_skipping(); + _impl_.options_.skipping_ = CreateMaybeMessage< ::greptime::v1::UnsetSkipping >(GetArenaForAllocation()); + } + return _impl_.options_.skipping_; +} +inline ::greptime::v1::UnsetSkipping* UnsetIndex::mutable_skipping() { + ::greptime::v1::UnsetSkipping* _msg = _internal_mutable_skipping(); + // @@protoc_insertion_point(field_mutable:greptime.v1.UnsetIndex.skipping) + return _msg; +} + inline bool UnsetIndex::has_options() const { return options_case() != OPTIONS_NOT_SET; } @@ -13477,6 +14040,174 @@ inline void UnsetInverted::set_allocated_column_name(std::string* column_name) { // ------------------------------------------------------------------- +// SetSkipping + +// string column_name = 1; +inline void SetSkipping::clear_column_name() { + _impl_.column_name_.ClearToEmpty(); +} +inline const std::string& SetSkipping::column_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.SetSkipping.column_name) + return _internal_column_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetSkipping::set_column_name(ArgT0&& arg0, ArgT... args) { + + _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.SetSkipping.column_name) +} +inline std::string* SetSkipping::mutable_column_name() { + std::string* _s = _internal_mutable_column_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.SetSkipping.column_name) + return _s; +} +inline const std::string& SetSkipping::_internal_column_name() const { + return _impl_.column_name_.Get(); +} +inline void SetSkipping::_internal_set_column_name(const std::string& value) { + + _impl_.column_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetSkipping::_internal_mutable_column_name() { + + return _impl_.column_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetSkipping::release_column_name() { + // @@protoc_insertion_point(field_release:greptime.v1.SetSkipping.column_name) + return _impl_.column_name_.Release(); +} +inline void SetSkipping::set_allocated_column_name(std::string* column_name) { + if (column_name != nullptr) { + + } else { + + } + _impl_.column_name_.SetAllocated(column_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.column_name_.IsDefault()) { + _impl_.column_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.SetSkipping.column_name) +} + +// bool enable = 2; +inline void SetSkipping::clear_enable() { + _impl_.enable_ = false; +} +inline bool SetSkipping::_internal_enable() const { + return _impl_.enable_; +} +inline bool SetSkipping::enable() const { + // @@protoc_insertion_point(field_get:greptime.v1.SetSkipping.enable) + return _internal_enable(); +} +inline void SetSkipping::_internal_set_enable(bool value) { + + _impl_.enable_ = value; +} +inline void SetSkipping::set_enable(bool value) { + _internal_set_enable(value); + // @@protoc_insertion_point(field_set:greptime.v1.SetSkipping.enable) +} + +// uint64 granularity = 3; +inline void SetSkipping::clear_granularity() { + _impl_.granularity_ = uint64_t{0u}; +} +inline uint64_t SetSkipping::_internal_granularity() const { + return _impl_.granularity_; +} +inline uint64_t SetSkipping::granularity() const { + // @@protoc_insertion_point(field_get:greptime.v1.SetSkipping.granularity) + return _internal_granularity(); +} +inline void SetSkipping::_internal_set_granularity(uint64_t value) { + + _impl_.granularity_ = value; +} +inline void SetSkipping::set_granularity(uint64_t value) { + _internal_set_granularity(value); + // @@protoc_insertion_point(field_set:greptime.v1.SetSkipping.granularity) +} + +// .greptime.v1.SkippingIndexType skipping_index_type = 4; +inline void SetSkipping::clear_skipping_index_type() { + _impl_.skipping_index_type_ = 0; +} +inline ::greptime::v1::SkippingIndexType SetSkipping::_internal_skipping_index_type() const { + return static_cast< ::greptime::v1::SkippingIndexType >(_impl_.skipping_index_type_); +} +inline ::greptime::v1::SkippingIndexType SetSkipping::skipping_index_type() const { + // @@protoc_insertion_point(field_get:greptime.v1.SetSkipping.skipping_index_type) + return _internal_skipping_index_type(); +} +inline void SetSkipping::_internal_set_skipping_index_type(::greptime::v1::SkippingIndexType value) { + + _impl_.skipping_index_type_ = value; +} +inline void SetSkipping::set_skipping_index_type(::greptime::v1::SkippingIndexType value) { + _internal_set_skipping_index_type(value); + // @@protoc_insertion_point(field_set:greptime.v1.SetSkipping.skipping_index_type) +} + +// ------------------------------------------------------------------- + +// UnsetSkipping + +// string column_name = 1; +inline void UnsetSkipping::clear_column_name() { + _impl_.column_name_.ClearToEmpty(); +} +inline const std::string& UnsetSkipping::column_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.UnsetSkipping.column_name) + return _internal_column_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void UnsetSkipping::set_column_name(ArgT0&& arg0, ArgT... args) { + + _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.UnsetSkipping.column_name) +} +inline std::string* UnsetSkipping::mutable_column_name() { + std::string* _s = _internal_mutable_column_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.UnsetSkipping.column_name) + return _s; +} +inline const std::string& UnsetSkipping::_internal_column_name() const { + return _impl_.column_name_.Get(); +} +inline void UnsetSkipping::_internal_set_column_name(const std::string& value) { + + _impl_.column_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* UnsetSkipping::_internal_mutable_column_name() { + + return _impl_.column_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* UnsetSkipping::release_column_name() { + // @@protoc_insertion_point(field_release:greptime.v1.UnsetSkipping.column_name) + return _impl_.column_name_.Release(); +} +inline void UnsetSkipping::set_allocated_column_name(std::string* column_name) { + if (column_name != nullptr) { + + } else { + + } + _impl_.column_name_.SetAllocated(column_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.column_name_.IsDefault()) { + _impl_.column_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.UnsetSkipping.column_name) +} + +// ------------------------------------------------------------------- + // AlterDatabaseExpr // string catalog_name = 1; @@ -13934,6 +14665,10 @@ UnsetDatabaseOptions::mutable_keys() { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -13952,6 +14687,11 @@ template <> inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::Analyzer>() { return ::greptime::v1::Analyzer_descriptor(); } +template <> struct is_proto_enum< ::greptime::v1::SkippingIndexType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::SkippingIndexType>() { + return ::greptime::v1::SkippingIndexType_descriptor(); +} PROTOBUF_NAMESPACE_CLOSE diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 1397660..6d9fbca 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -80,6 +80,49 @@ func (Analyzer) EnumDescriptor() ([]byte, []int) { return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{0} } +type SkippingIndexType int32 + +const ( + SkippingIndexType_BLOOM_FILTER SkippingIndexType = 0 +) + +// Enum value maps for SkippingIndexType. +var ( + SkippingIndexType_name = map[int32]string{ + 0: "BLOOM_FILTER", + } + SkippingIndexType_value = map[string]int32{ + "BLOOM_FILTER": 0, + } +) + +func (x SkippingIndexType) Enum() *SkippingIndexType { + p := new(SkippingIndexType) + *p = x + return p +} + +func (x SkippingIndexType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SkippingIndexType) Descriptor() protoreflect.EnumDescriptor { + return file_greptime_v1_ddl_proto_enumTypes[1].Descriptor() +} + +func (SkippingIndexType) Type() protoreflect.EnumType { + return &file_greptime_v1_ddl_proto_enumTypes[1] +} + +func (x SkippingIndexType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SkippingIndexType.Descriptor instead. +func (SkippingIndexType) EnumDescriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{1} +} + type AddColumnLocation_LocationType int32 const ( @@ -110,11 +153,11 @@ func (x AddColumnLocation_LocationType) String() string { } func (AddColumnLocation_LocationType) Descriptor() protoreflect.EnumDescriptor { - return file_greptime_v1_ddl_proto_enumTypes[1].Descriptor() + return file_greptime_v1_ddl_proto_enumTypes[2].Descriptor() } func (AddColumnLocation_LocationType) Type() protoreflect.EnumType { - return &file_greptime_v1_ddl_proto_enumTypes[1] + return &file_greptime_v1_ddl_proto_enumTypes[2] } func (x AddColumnLocation_LocationType) Number() protoreflect.EnumNumber { @@ -1041,6 +1084,7 @@ type SetIndex struct { // // *SetIndex_Fulltext // *SetIndex_Inverted + // *SetIndex_Skipping Options isSetIndex_Options `protobuf_oneof:"options"` } @@ -1097,6 +1141,13 @@ func (x *SetIndex) GetInverted() *SetInverted { return nil } +func (x *SetIndex) GetSkipping() *SetSkipping { + if x, ok := x.GetOptions().(*SetIndex_Skipping); ok { + return x.Skipping + } + return nil +} + type isSetIndex_Options interface { isSetIndex_Options() } @@ -1109,10 +1160,16 @@ type SetIndex_Inverted struct { Inverted *SetInverted `protobuf:"bytes,2,opt,name=inverted,proto3,oneof"` } +type SetIndex_Skipping struct { + Skipping *SetSkipping `protobuf:"bytes,3,opt,name=skipping,proto3,oneof"` +} + func (*SetIndex_Fulltext) isSetIndex_Options() {} func (*SetIndex_Inverted) isSetIndex_Options() {} +func (*SetIndex_Skipping) isSetIndex_Options() {} + type UnsetIndex struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1122,6 +1179,7 @@ type UnsetIndex struct { // // *UnsetIndex_Fulltext // *UnsetIndex_Inverted + // *UnsetIndex_Skipping Options isUnsetIndex_Options `protobuf_oneof:"options"` } @@ -1178,6 +1236,13 @@ func (x *UnsetIndex) GetInverted() *UnsetInverted { return nil } +func (x *UnsetIndex) GetSkipping() *UnsetSkipping { + if x, ok := x.GetOptions().(*UnsetIndex_Skipping); ok { + return x.Skipping + } + return nil +} + type isUnsetIndex_Options interface { isUnsetIndex_Options() } @@ -1190,10 +1255,16 @@ type UnsetIndex_Inverted struct { Inverted *UnsetInverted `protobuf:"bytes,2,opt,name=inverted,proto3,oneof"` } +type UnsetIndex_Skipping struct { + Skipping *UnsetSkipping `protobuf:"bytes,3,opt,name=skipping,proto3,oneof"` +} + func (*UnsetIndex_Fulltext) isUnsetIndex_Options() {} func (*UnsetIndex_Inverted) isUnsetIndex_Options() {} +func (*UnsetIndex_Skipping) isUnsetIndex_Options() {} + type DropTableExpr struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2454,6 +2525,124 @@ func (x *UnsetInverted) GetColumnName() string { return "" } +type SetSkipping struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` + Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"` + Granularity uint64 `protobuf:"varint,3,opt,name=granularity,proto3" json:"granularity,omitempty"` + SkippingIndexType SkippingIndexType `protobuf:"varint,4,opt,name=skipping_index_type,json=skippingIndexType,proto3,enum=greptime.v1.SkippingIndexType" json:"skipping_index_type,omitempty"` +} + +func (x *SetSkipping) Reset() { + *x = SetSkipping{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetSkipping) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetSkipping) ProtoMessage() {} + +func (x *SetSkipping) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[31] + 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 SetSkipping.ProtoReflect.Descriptor instead. +func (*SetSkipping) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{31} +} + +func (x *SetSkipping) GetColumnName() string { + if x != nil { + return x.ColumnName + } + return "" +} + +func (x *SetSkipping) GetEnable() bool { + if x != nil { + return x.Enable + } + return false +} + +func (x *SetSkipping) GetGranularity() uint64 { + if x != nil { + return x.Granularity + } + return 0 +} + +func (x *SetSkipping) GetSkippingIndexType() SkippingIndexType { + if x != nil { + return x.SkippingIndexType + } + return SkippingIndexType_BLOOM_FILTER +} + +type UnsetSkipping struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` +} + +func (x *UnsetSkipping) Reset() { + *x = UnsetSkipping{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnsetSkipping) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnsetSkipping) ProtoMessage() {} + +func (x *UnsetSkipping) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[32] + 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 UnsetSkipping.ProtoReflect.Descriptor instead. +func (*UnsetSkipping) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{32} +} + +func (x *UnsetSkipping) GetColumnName() string { + if x != nil { + return x.ColumnName + } + return "" +} + type AlterDatabaseExpr struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2471,7 +2660,7 @@ type AlterDatabaseExpr struct { func (x *AlterDatabaseExpr) Reset() { *x = AlterDatabaseExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[31] + mi := &file_greptime_v1_ddl_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2484,7 +2673,7 @@ func (x *AlterDatabaseExpr) String() string { func (*AlterDatabaseExpr) ProtoMessage() {} func (x *AlterDatabaseExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[31] + mi := &file_greptime_v1_ddl_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2497,7 +2686,7 @@ func (x *AlterDatabaseExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use AlterDatabaseExpr.ProtoReflect.Descriptor instead. func (*AlterDatabaseExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{31} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{33} } func (x *AlterDatabaseExpr) GetCatalogName() string { @@ -2562,7 +2751,7 @@ type SetDatabaseOptions struct { func (x *SetDatabaseOptions) Reset() { *x = SetDatabaseOptions{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[32] + mi := &file_greptime_v1_ddl_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2575,7 +2764,7 @@ func (x *SetDatabaseOptions) String() string { func (*SetDatabaseOptions) ProtoMessage() {} func (x *SetDatabaseOptions) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[32] + mi := &file_greptime_v1_ddl_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2588,7 +2777,7 @@ func (x *SetDatabaseOptions) ProtoReflect() protoreflect.Message { // Deprecated: Use SetDatabaseOptions.ProtoReflect.Descriptor instead. func (*SetDatabaseOptions) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{32} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{34} } func (x *SetDatabaseOptions) GetSetDatabaseOptions() []*Option { @@ -2609,7 +2798,7 @@ type UnsetDatabaseOptions struct { func (x *UnsetDatabaseOptions) Reset() { *x = UnsetDatabaseOptions{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[33] + mi := &file_greptime_v1_ddl_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2622,7 +2811,7 @@ func (x *UnsetDatabaseOptions) String() string { func (*UnsetDatabaseOptions) ProtoMessage() {} func (x *UnsetDatabaseOptions) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[33] + mi := &file_greptime_v1_ddl_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2635,7 +2824,7 @@ func (x *UnsetDatabaseOptions) ProtoReflect() protoreflect.Message { // Deprecated: Use UnsetDatabaseOptions.ProtoReflect.Descriptor instead. func (*UnsetDatabaseOptions) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{33} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{35} } func (x *UnsetDatabaseOptions) GetKeys() []string { @@ -2850,7 +3039,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x48, 0x00, 0x52, 0x0a, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x42, 0x06, 0x0a, 0x04, 0x6b, - 0x69, 0x6e, 0x64, 0x22, 0x85, 0x01, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, + 0x69, 0x6e, 0x64, 0x22, 0xbd, 0x01, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x36, 0x0a, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x08, @@ -2858,212 +3047,236 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x72, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, - 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x8b, 0x01, 0x0a, 0x0a, - 0x55, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x38, 0x0a, 0x08, 0x66, 0x75, - 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, - 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, - 0x74, 0x65, 0x78, 0x74, 0x12, 0x38, 0x0a, 0x08, 0x69, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, - 0x65, 0x64, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x42, 0x09, - 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xc9, 0x01, 0x0a, 0x0d, 0x44, 0x72, - 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, - 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, - 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, - 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, - 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, - 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, - 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, - 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, - 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, - 0x73, 0x12, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, - 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, - 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, - 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, - 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, - 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, - 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, - 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, - 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, - 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, 0x0a, - 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, - 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, - 0x62, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, - 0x79, 0x70, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x13, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 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, - 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x11, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 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, 0xa9, 0x01, 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, 0x12, 0x29, 0x0a, 0x11, 0x61, 0x64, 0x64, - 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x64, 0x64, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, - 0x69, 0x73, 0x74, 0x73, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 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, 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, 0x30, 0x0a, 0x06, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 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, 0x22, 0x4b, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x22, 0x27, 0x0a, 0x11, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 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, 0x8e, 0x03, 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, 0x12, 0x34, 0x0a, 0x07, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 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, 0x22, 0xa0, 0x01, 0x0a, - 0x0b, 0x53, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 0x16, 0x0a, - 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x52, 0x08, - 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73, 0x65, - 0x5f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0d, 0x63, 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x22, - 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, - 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, 0x22, 0x2e, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, - 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, 0x22, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, + 0x12, 0x36, 0x0a, 0x08, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x65, 0x74, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x08, + 0x73, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x22, 0xc5, 0x01, 0x0a, 0x0a, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x64, + 0x65, 0x78, 0x12, 0x38, 0x0a, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, + 0x48, 0x00, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x12, 0x38, 0x0a, 0x08, + 0x69, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, + 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, + 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x08, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x69, + 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x53, 0x6b, 0x69, 0x70, + 0x70, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, + 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xc9, 0x01, 0x0a, 0x0d, + 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, + 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, + 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, + 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, + 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, + 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, + 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, + 0x73, 0x74, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, + 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, + 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, + 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, + 0x64, 0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, + 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, + 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, + 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, + 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, + 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x73, 0x22, 0x62, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x13, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, + 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, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x11, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 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, 0xa9, 0x01, 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, 0x12, 0x29, 0x0a, 0x11, 0x61, + 0x64, 0x64, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x64, 0x64, 0x49, 0x66, 0x4e, 0x6f, 0x74, + 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x4d, 0x6f, 0x64, 0x69, 0x66, + 0x79, 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, 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, 0x30, 0x0a, 0x06, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 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, 0x22, 0x4b, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, 0x0a, 0x0d, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x22, 0x27, 0x0a, 0x11, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 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, 0x8e, 0x03, 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, 0x12, 0x34, + 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 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, 0x22, 0xa0, + 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, + 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, + 0x7a, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, + 0x52, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, + 0x73, 0x65, 0x5f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0d, 0x63, 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, + 0x65, 0x22, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, + 0x78, 0x74, 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, 0x22, 0x2e, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 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, 0x22, 0x8f, 0x02, 0x0a, 0x11, 0x41, 0x6c, 0x74, 0x65, 0x72, 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, 0x53, 0x0a, - 0x14, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12, - 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x59, 0x0a, 0x16, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, - 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x14, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x06, 0x0a, - 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x5b, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, - 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x14, 0x73, - 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, - 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x22, 0x2a, 0x0a, 0x14, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, - 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x2a, 0x24, - 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, - 0x47, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x48, 0x49, 0x4e, 0x45, - 0x53, 0x45, 0x10, 0x01, 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, + 0x61, 0x6d, 0x65, 0x22, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, + 0x72, 0x74, 0x65, 0x64, 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, 0x22, 0xb8, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x53, 0x6b, 0x69, + 0x70, 0x70, 0x69, 0x6e, 0x67, 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, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x20, + 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x4e, 0x0a, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6b, 0x69, 0x70, + 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x73, + 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, + 0x22, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, + 0x67, 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, 0x22, 0x8f, 0x02, 0x0a, 0x11, 0x41, 0x6c, 0x74, 0x65, 0x72, 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, 0x53, 0x0a, 0x14, + 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12, 0x73, + 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x59, 0x0a, 0x16, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, + 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x14, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, + 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x5b, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, + 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x14, 0x73, 0x65, + 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x73, + 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x2a, 0x0a, 0x14, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, + 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x2a, 0x24, 0x0a, + 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, + 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x53, + 0x45, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x11, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x42, 0x4c, 0x4f, 0x4f, + 0x4d, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x00, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, + 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3078,113 +3291,119 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte { return file_greptime_v1_ddl_proto_rawDescData } -var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 37) +var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 39) var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (Analyzer)(0), // 0: greptime.v1.Analyzer - (AddColumnLocation_LocationType)(0), // 1: greptime.v1.AddColumnLocation.LocationType - (*DdlRequest)(nil), // 2: greptime.v1.DdlRequest - (*CreateFlowExpr)(nil), // 3: greptime.v1.CreateFlowExpr - (*DropFlowExpr)(nil), // 4: greptime.v1.DropFlowExpr - (*CreateViewExpr)(nil), // 5: greptime.v1.CreateViewExpr - (*DropViewExpr)(nil), // 6: greptime.v1.DropViewExpr - (*CreateTableExpr)(nil), // 7: greptime.v1.CreateTableExpr - (*AlterTableExpr)(nil), // 8: greptime.v1.AlterTableExpr - (*SetIndex)(nil), // 9: greptime.v1.SetIndex - (*UnsetIndex)(nil), // 10: greptime.v1.UnsetIndex - (*DropTableExpr)(nil), // 11: greptime.v1.DropTableExpr - (*CreateDatabaseExpr)(nil), // 12: greptime.v1.CreateDatabaseExpr - (*TruncateTableExpr)(nil), // 13: greptime.v1.TruncateTableExpr - (*DropDatabaseExpr)(nil), // 14: greptime.v1.DropDatabaseExpr - (*AddColumns)(nil), // 15: greptime.v1.AddColumns - (*DropColumns)(nil), // 16: greptime.v1.DropColumns - (*ModifyColumnTypes)(nil), // 17: greptime.v1.ModifyColumnTypes - (*RenameTable)(nil), // 18: greptime.v1.RenameTable - (*AddColumn)(nil), // 19: greptime.v1.AddColumn - (*ModifyColumnType)(nil), // 20: greptime.v1.ModifyColumnType - (*Option)(nil), // 21: greptime.v1.Option - (*SetTableOptions)(nil), // 22: greptime.v1.SetTableOptions - (*UnsetTableOptions)(nil), // 23: greptime.v1.UnsetTableOptions - (*DropColumn)(nil), // 24: greptime.v1.DropColumn - (*TableId)(nil), // 25: greptime.v1.TableId - (*FlowId)(nil), // 26: greptime.v1.FlowId - (*ColumnDef)(nil), // 27: greptime.v1.ColumnDef - (*AddColumnLocation)(nil), // 28: greptime.v1.AddColumnLocation - (*SetFulltext)(nil), // 29: greptime.v1.SetFulltext - (*UnsetFulltext)(nil), // 30: greptime.v1.UnsetFulltext - (*SetInverted)(nil), // 31: greptime.v1.SetInverted - (*UnsetInverted)(nil), // 32: greptime.v1.UnsetInverted - (*AlterDatabaseExpr)(nil), // 33: greptime.v1.AlterDatabaseExpr - (*SetDatabaseOptions)(nil), // 34: greptime.v1.SetDatabaseOptions - (*UnsetDatabaseOptions)(nil), // 35: greptime.v1.UnsetDatabaseOptions - nil, // 36: greptime.v1.CreateFlowExpr.FlowOptionsEntry - nil, // 37: greptime.v1.CreateTableExpr.TableOptionsEntry - nil, // 38: greptime.v1.CreateDatabaseExpr.OptionsEntry - (*TableName)(nil), // 39: greptime.v1.TableName - (*ExpireAfter)(nil), // 40: greptime.v1.ExpireAfter - (ColumnDataType)(0), // 41: greptime.v1.ColumnDataType - (*ColumnDataTypeExtension)(nil), // 42: greptime.v1.ColumnDataTypeExtension - (SemanticType)(0), // 43: greptime.v1.SemanticType - (*ColumnOptions)(nil), // 44: greptime.v1.ColumnOptions + (SkippingIndexType)(0), // 1: greptime.v1.SkippingIndexType + (AddColumnLocation_LocationType)(0), // 2: greptime.v1.AddColumnLocation.LocationType + (*DdlRequest)(nil), // 3: greptime.v1.DdlRequest + (*CreateFlowExpr)(nil), // 4: greptime.v1.CreateFlowExpr + (*DropFlowExpr)(nil), // 5: greptime.v1.DropFlowExpr + (*CreateViewExpr)(nil), // 6: greptime.v1.CreateViewExpr + (*DropViewExpr)(nil), // 7: greptime.v1.DropViewExpr + (*CreateTableExpr)(nil), // 8: greptime.v1.CreateTableExpr + (*AlterTableExpr)(nil), // 9: greptime.v1.AlterTableExpr + (*SetIndex)(nil), // 10: greptime.v1.SetIndex + (*UnsetIndex)(nil), // 11: greptime.v1.UnsetIndex + (*DropTableExpr)(nil), // 12: greptime.v1.DropTableExpr + (*CreateDatabaseExpr)(nil), // 13: greptime.v1.CreateDatabaseExpr + (*TruncateTableExpr)(nil), // 14: greptime.v1.TruncateTableExpr + (*DropDatabaseExpr)(nil), // 15: greptime.v1.DropDatabaseExpr + (*AddColumns)(nil), // 16: greptime.v1.AddColumns + (*DropColumns)(nil), // 17: greptime.v1.DropColumns + (*ModifyColumnTypes)(nil), // 18: greptime.v1.ModifyColumnTypes + (*RenameTable)(nil), // 19: greptime.v1.RenameTable + (*AddColumn)(nil), // 20: greptime.v1.AddColumn + (*ModifyColumnType)(nil), // 21: greptime.v1.ModifyColumnType + (*Option)(nil), // 22: greptime.v1.Option + (*SetTableOptions)(nil), // 23: greptime.v1.SetTableOptions + (*UnsetTableOptions)(nil), // 24: greptime.v1.UnsetTableOptions + (*DropColumn)(nil), // 25: greptime.v1.DropColumn + (*TableId)(nil), // 26: greptime.v1.TableId + (*FlowId)(nil), // 27: greptime.v1.FlowId + (*ColumnDef)(nil), // 28: greptime.v1.ColumnDef + (*AddColumnLocation)(nil), // 29: greptime.v1.AddColumnLocation + (*SetFulltext)(nil), // 30: greptime.v1.SetFulltext + (*UnsetFulltext)(nil), // 31: greptime.v1.UnsetFulltext + (*SetInverted)(nil), // 32: greptime.v1.SetInverted + (*UnsetInverted)(nil), // 33: greptime.v1.UnsetInverted + (*SetSkipping)(nil), // 34: greptime.v1.SetSkipping + (*UnsetSkipping)(nil), // 35: greptime.v1.UnsetSkipping + (*AlterDatabaseExpr)(nil), // 36: greptime.v1.AlterDatabaseExpr + (*SetDatabaseOptions)(nil), // 37: greptime.v1.SetDatabaseOptions + (*UnsetDatabaseOptions)(nil), // 38: greptime.v1.UnsetDatabaseOptions + nil, // 39: greptime.v1.CreateFlowExpr.FlowOptionsEntry + nil, // 40: greptime.v1.CreateTableExpr.TableOptionsEntry + nil, // 41: greptime.v1.CreateDatabaseExpr.OptionsEntry + (*TableName)(nil), // 42: greptime.v1.TableName + (*ExpireAfter)(nil), // 43: greptime.v1.ExpireAfter + (ColumnDataType)(0), // 44: greptime.v1.ColumnDataType + (*ColumnDataTypeExtension)(nil), // 45: greptime.v1.ColumnDataTypeExtension + (SemanticType)(0), // 46: greptime.v1.SemanticType + (*ColumnOptions)(nil), // 47: greptime.v1.ColumnOptions } var file_greptime_v1_ddl_proto_depIdxs = []int32{ - 12, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr - 7, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr - 8, // 2: greptime.v1.DdlRequest.alter_table:type_name -> greptime.v1.AlterTableExpr - 11, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr - 13, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr - 3, // 5: greptime.v1.DdlRequest.create_flow:type_name -> greptime.v1.CreateFlowExpr - 4, // 6: greptime.v1.DdlRequest.drop_flow:type_name -> greptime.v1.DropFlowExpr - 5, // 7: greptime.v1.DdlRequest.create_view:type_name -> greptime.v1.CreateViewExpr - 6, // 8: greptime.v1.DdlRequest.drop_view:type_name -> greptime.v1.DropViewExpr - 33, // 9: greptime.v1.DdlRequest.alter_database:type_name -> greptime.v1.AlterDatabaseExpr - 39, // 10: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName - 39, // 11: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName - 40, // 12: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter - 36, // 13: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry - 26, // 14: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId - 39, // 15: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName - 25, // 16: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId - 27, // 17: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef - 37, // 18: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry - 25, // 19: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId - 15, // 20: greptime.v1.AlterTableExpr.add_columns:type_name -> greptime.v1.AddColumns - 16, // 21: greptime.v1.AlterTableExpr.drop_columns:type_name -> greptime.v1.DropColumns - 18, // 22: greptime.v1.AlterTableExpr.rename_table:type_name -> greptime.v1.RenameTable - 17, // 23: greptime.v1.AlterTableExpr.modify_column_types:type_name -> greptime.v1.ModifyColumnTypes - 22, // 24: greptime.v1.AlterTableExpr.set_table_options:type_name -> greptime.v1.SetTableOptions - 23, // 25: greptime.v1.AlterTableExpr.unset_table_options:type_name -> greptime.v1.UnsetTableOptions - 9, // 26: greptime.v1.AlterTableExpr.set_index:type_name -> greptime.v1.SetIndex - 10, // 27: greptime.v1.AlterTableExpr.unset_index:type_name -> greptime.v1.UnsetIndex - 29, // 28: greptime.v1.SetIndex.fulltext:type_name -> greptime.v1.SetFulltext - 31, // 29: greptime.v1.SetIndex.inverted:type_name -> greptime.v1.SetInverted - 30, // 30: greptime.v1.UnsetIndex.fulltext:type_name -> greptime.v1.UnsetFulltext - 32, // 31: greptime.v1.UnsetIndex.inverted:type_name -> greptime.v1.UnsetInverted - 25, // 32: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId - 38, // 33: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry - 25, // 34: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId - 19, // 35: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn - 24, // 36: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn - 20, // 37: greptime.v1.ModifyColumnTypes.modify_column_types:type_name -> greptime.v1.ModifyColumnType - 27, // 38: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef - 28, // 39: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation - 41, // 40: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType - 42, // 41: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 21, // 42: greptime.v1.SetTableOptions.table_options:type_name -> greptime.v1.Option - 41, // 43: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType - 43, // 44: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType - 42, // 45: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 44, // 46: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions - 1, // 47: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType - 0, // 48: greptime.v1.SetFulltext.analyzer:type_name -> greptime.v1.Analyzer - 34, // 49: greptime.v1.AlterDatabaseExpr.set_database_options:type_name -> greptime.v1.SetDatabaseOptions - 35, // 50: greptime.v1.AlterDatabaseExpr.unset_database_options:type_name -> greptime.v1.UnsetDatabaseOptions - 21, // 51: greptime.v1.SetDatabaseOptions.set_database_options:type_name -> greptime.v1.Option - 52, // [52:52] is the sub-list for method output_type - 52, // [52:52] is the sub-list for method input_type - 52, // [52:52] is the sub-list for extension type_name - 52, // [52:52] is the sub-list for extension extendee - 0, // [0:52] is the sub-list for field type_name + 13, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr + 8, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr + 9, // 2: greptime.v1.DdlRequest.alter_table:type_name -> greptime.v1.AlterTableExpr + 12, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr + 14, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr + 4, // 5: greptime.v1.DdlRequest.create_flow:type_name -> greptime.v1.CreateFlowExpr + 5, // 6: greptime.v1.DdlRequest.drop_flow:type_name -> greptime.v1.DropFlowExpr + 6, // 7: greptime.v1.DdlRequest.create_view:type_name -> greptime.v1.CreateViewExpr + 7, // 8: greptime.v1.DdlRequest.drop_view:type_name -> greptime.v1.DropViewExpr + 36, // 9: greptime.v1.DdlRequest.alter_database:type_name -> greptime.v1.AlterDatabaseExpr + 42, // 10: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName + 42, // 11: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName + 43, // 12: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter + 39, // 13: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry + 27, // 14: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId + 42, // 15: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName + 26, // 16: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId + 28, // 17: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef + 40, // 18: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry + 26, // 19: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId + 16, // 20: greptime.v1.AlterTableExpr.add_columns:type_name -> greptime.v1.AddColumns + 17, // 21: greptime.v1.AlterTableExpr.drop_columns:type_name -> greptime.v1.DropColumns + 19, // 22: greptime.v1.AlterTableExpr.rename_table:type_name -> greptime.v1.RenameTable + 18, // 23: greptime.v1.AlterTableExpr.modify_column_types:type_name -> greptime.v1.ModifyColumnTypes + 23, // 24: greptime.v1.AlterTableExpr.set_table_options:type_name -> greptime.v1.SetTableOptions + 24, // 25: greptime.v1.AlterTableExpr.unset_table_options:type_name -> greptime.v1.UnsetTableOptions + 10, // 26: greptime.v1.AlterTableExpr.set_index:type_name -> greptime.v1.SetIndex + 11, // 27: greptime.v1.AlterTableExpr.unset_index:type_name -> greptime.v1.UnsetIndex + 30, // 28: greptime.v1.SetIndex.fulltext:type_name -> greptime.v1.SetFulltext + 32, // 29: greptime.v1.SetIndex.inverted:type_name -> greptime.v1.SetInverted + 34, // 30: greptime.v1.SetIndex.skipping:type_name -> greptime.v1.SetSkipping + 31, // 31: greptime.v1.UnsetIndex.fulltext:type_name -> greptime.v1.UnsetFulltext + 33, // 32: greptime.v1.UnsetIndex.inverted:type_name -> greptime.v1.UnsetInverted + 35, // 33: greptime.v1.UnsetIndex.skipping:type_name -> greptime.v1.UnsetSkipping + 26, // 34: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId + 41, // 35: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry + 26, // 36: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId + 20, // 37: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn + 25, // 38: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 21, // 39: greptime.v1.ModifyColumnTypes.modify_column_types:type_name -> greptime.v1.ModifyColumnType + 28, // 40: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 29, // 41: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 44, // 42: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType + 45, // 43: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 22, // 44: greptime.v1.SetTableOptions.table_options:type_name -> greptime.v1.Option + 44, // 45: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType + 46, // 46: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType + 45, // 47: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 47, // 48: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions + 2, // 49: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType + 0, // 50: greptime.v1.SetFulltext.analyzer:type_name -> greptime.v1.Analyzer + 1, // 51: greptime.v1.SetSkipping.skipping_index_type:type_name -> greptime.v1.SkippingIndexType + 37, // 52: greptime.v1.AlterDatabaseExpr.set_database_options:type_name -> greptime.v1.SetDatabaseOptions + 38, // 53: greptime.v1.AlterDatabaseExpr.unset_database_options:type_name -> greptime.v1.UnsetDatabaseOptions + 22, // 54: greptime.v1.SetDatabaseOptions.set_database_options:type_name -> greptime.v1.Option + 55, // [55:55] is the sub-list for method output_type + 55, // [55:55] is the sub-list for method input_type + 55, // [55:55] is the sub-list for extension type_name + 55, // [55:55] is the sub-list for extension extendee + 0, // [0:55] is the sub-list for field type_name } func init() { file_greptime_v1_ddl_proto_init() } @@ -3567,7 +3786,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AlterDatabaseExpr); i { + switch v := v.(*SetSkipping); i { case 0: return &v.state case 1: @@ -3579,7 +3798,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetDatabaseOptions); i { + switch v := v.(*UnsetSkipping); i { case 0: return &v.state case 1: @@ -3591,6 +3810,30 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AlterDatabaseExpr); 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[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetDatabaseOptions); 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[35].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UnsetDatabaseOptions); i { case 0: return &v.state @@ -3628,12 +3871,14 @@ func file_greptime_v1_ddl_proto_init() { file_greptime_v1_ddl_proto_msgTypes[7].OneofWrappers = []interface{}{ (*SetIndex_Fulltext)(nil), (*SetIndex_Inverted)(nil), + (*SetIndex_Skipping)(nil), } file_greptime_v1_ddl_proto_msgTypes[8].OneofWrappers = []interface{}{ (*UnsetIndex_Fulltext)(nil), (*UnsetIndex_Inverted)(nil), + (*UnsetIndex_Skipping)(nil), } - file_greptime_v1_ddl_proto_msgTypes[31].OneofWrappers = []interface{}{ + file_greptime_v1_ddl_proto_msgTypes[33].OneofWrappers = []interface{}{ (*AlterDatabaseExpr_SetDatabaseOptions)(nil), (*AlterDatabaseExpr_UnsetDatabaseOptions)(nil), } @@ -3642,8 +3887,8 @@ func file_greptime_v1_ddl_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, - NumEnums: 2, - NumMessages: 37, + NumEnums: 3, + NumMessages: 39, NumExtensions: 0, NumServices: 0, }, diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index d96d1b4..e3536a4 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -122,6 +122,105 @@ public final class Ddl { // @@protoc_insertion_point(enum_scope:greptime.v1.Analyzer) } + /** + * Protobuf enum {@code greptime.v1.SkippingIndexType} + */ + public enum SkippingIndexType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * BLOOM_FILTER = 0; + */ + BLOOM_FILTER(0), + UNRECOGNIZED(-1), + ; + + /** + * BLOOM_FILTER = 0; + */ + public static final int BLOOM_FILTER_VALUE = 0; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SkippingIndexType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SkippingIndexType forNumber(int value) { + switch (value) { + case 0: return BLOOM_FILTER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SkippingIndexType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SkippingIndexType findValueByNumber(int number) { + return SkippingIndexType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.greptime.v1.Ddl.getDescriptor().getEnumTypes().get(1); + } + + private static final SkippingIndexType[] VALUES = values(); + + public static SkippingIndexType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SkippingIndexType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:greptime.v1.SkippingIndexType) + } + public interface DdlRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.DdlRequest) com.google.protobuf.MessageOrBuilder { @@ -14790,6 +14889,21 @@ java.lang.String defaultValue); */ io.greptime.v1.Ddl.SetInvertedOrBuilder getInvertedOrBuilder(); + /** + * .greptime.v1.SetSkipping skipping = 3; + * @return Whether the skipping field is set. + */ + boolean hasSkipping(); + /** + * .greptime.v1.SetSkipping skipping = 3; + * @return The skipping. + */ + io.greptime.v1.Ddl.SetSkipping getSkipping(); + /** + * .greptime.v1.SetSkipping skipping = 3; + */ + io.greptime.v1.Ddl.SetSkippingOrBuilder getSkippingOrBuilder(); + public io.greptime.v1.Ddl.SetIndex.OptionsCase getOptionsCase(); } /** @@ -14865,6 +14979,20 @@ java.lang.String defaultValue); optionsCase_ = 2; break; } + case 26: { + io.greptime.v1.Ddl.SetSkipping.Builder subBuilder = null; + if (optionsCase_ == 3) { + subBuilder = ((io.greptime.v1.Ddl.SetSkipping) options_).toBuilder(); + } + options_ = + input.readMessage(io.greptime.v1.Ddl.SetSkipping.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Ddl.SetSkipping) options_); + options_ = subBuilder.buildPartial(); + } + optionsCase_ = 3; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -14906,6 +15034,7 @@ java.lang.String defaultValue); com.google.protobuf.AbstractMessage.InternalOneOfEnum { FULLTEXT(1), INVERTED(2), + SKIPPING(3), OPTIONS_NOT_SET(0); private final int value; private OptionsCase(int value) { @@ -14925,6 +15054,7 @@ java.lang.String defaultValue); switch (value) { case 1: return FULLTEXT; case 2: return INVERTED; + case 3: return SKIPPING; case 0: return OPTIONS_NOT_SET; default: return null; } @@ -15002,6 +15132,37 @@ java.lang.String defaultValue); return io.greptime.v1.Ddl.SetInverted.getDefaultInstance(); } + public static final int SKIPPING_FIELD_NUMBER = 3; + /** + * .greptime.v1.SetSkipping skipping = 3; + * @return Whether the skipping field is set. + */ + @java.lang.Override + public boolean hasSkipping() { + return optionsCase_ == 3; + } + /** + * .greptime.v1.SetSkipping skipping = 3; + * @return The skipping. + */ + @java.lang.Override + public io.greptime.v1.Ddl.SetSkipping getSkipping() { + if (optionsCase_ == 3) { + return (io.greptime.v1.Ddl.SetSkipping) options_; + } + return io.greptime.v1.Ddl.SetSkipping.getDefaultInstance(); + } + /** + * .greptime.v1.SetSkipping skipping = 3; + */ + @java.lang.Override + public io.greptime.v1.Ddl.SetSkippingOrBuilder getSkippingOrBuilder() { + if (optionsCase_ == 3) { + return (io.greptime.v1.Ddl.SetSkipping) options_; + } + return io.greptime.v1.Ddl.SetSkipping.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -15022,6 +15183,9 @@ java.lang.String defaultValue); if (optionsCase_ == 2) { output.writeMessage(2, (io.greptime.v1.Ddl.SetInverted) options_); } + if (optionsCase_ == 3) { + output.writeMessage(3, (io.greptime.v1.Ddl.SetSkipping) options_); + } unknownFields.writeTo(output); } @@ -15039,6 +15203,10 @@ java.lang.String defaultValue); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.greptime.v1.Ddl.SetInverted) options_); } + if (optionsCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.greptime.v1.Ddl.SetSkipping) options_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -15064,6 +15232,10 @@ java.lang.String defaultValue); if (!getInverted() .equals(other.getInverted())) return false; break; + case 3: + if (!getSkipping() + .equals(other.getSkipping())) return false; + break; case 0: default: } @@ -15087,6 +15259,10 @@ java.lang.String defaultValue); hash = (37 * hash) + INVERTED_FIELD_NUMBER; hash = (53 * hash) + getInverted().hashCode(); break; + case 3: + hash = (37 * hash) + SKIPPING_FIELD_NUMBER; + hash = (53 * hash) + getSkipping().hashCode(); + break; case 0: default: } @@ -15265,6 +15441,13 @@ java.lang.String defaultValue); result.options_ = invertedBuilder_.build(); } } + if (optionsCase_ == 3) { + if (skippingBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = skippingBuilder_.build(); + } + } result.optionsCase_ = optionsCase_; onBuilt(); return result; @@ -15323,6 +15506,10 @@ java.lang.String defaultValue); mergeInverted(other.getInverted()); break; } + case SKIPPING: { + mergeSkipping(other.getSkipping()); + break; + } case OPTIONS_NOT_SET: { break; } @@ -15654,6 +15841,148 @@ java.lang.String defaultValue); onChanged();; return invertedBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SetSkipping, io.greptime.v1.Ddl.SetSkipping.Builder, io.greptime.v1.Ddl.SetSkippingOrBuilder> skippingBuilder_; + /** + * .greptime.v1.SetSkipping skipping = 3; + * @return Whether the skipping field is set. + */ + @java.lang.Override + public boolean hasSkipping() { + return optionsCase_ == 3; + } + /** + * .greptime.v1.SetSkipping skipping = 3; + * @return The skipping. + */ + @java.lang.Override + public io.greptime.v1.Ddl.SetSkipping getSkipping() { + if (skippingBuilder_ == null) { + if (optionsCase_ == 3) { + return (io.greptime.v1.Ddl.SetSkipping) options_; + } + return io.greptime.v1.Ddl.SetSkipping.getDefaultInstance(); + } else { + if (optionsCase_ == 3) { + return skippingBuilder_.getMessage(); + } + return io.greptime.v1.Ddl.SetSkipping.getDefaultInstance(); + } + } + /** + * .greptime.v1.SetSkipping skipping = 3; + */ + public Builder setSkipping(io.greptime.v1.Ddl.SetSkipping value) { + if (skippingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + skippingBuilder_.setMessage(value); + } + optionsCase_ = 3; + return this; + } + /** + * .greptime.v1.SetSkipping skipping = 3; + */ + public Builder setSkipping( + io.greptime.v1.Ddl.SetSkipping.Builder builderForValue) { + if (skippingBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + skippingBuilder_.setMessage(builderForValue.build()); + } + optionsCase_ = 3; + return this; + } + /** + * .greptime.v1.SetSkipping skipping = 3; + */ + public Builder mergeSkipping(io.greptime.v1.Ddl.SetSkipping value) { + if (skippingBuilder_ == null) { + if (optionsCase_ == 3 && + options_ != io.greptime.v1.Ddl.SetSkipping.getDefaultInstance()) { + options_ = io.greptime.v1.Ddl.SetSkipping.newBuilder((io.greptime.v1.Ddl.SetSkipping) options_) + .mergeFrom(value).buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + if (optionsCase_ == 3) { + skippingBuilder_.mergeFrom(value); + } else { + skippingBuilder_.setMessage(value); + } + } + optionsCase_ = 3; + return this; + } + /** + * .greptime.v1.SetSkipping skipping = 3; + */ + public Builder clearSkipping() { + if (skippingBuilder_ == null) { + if (optionsCase_ == 3) { + optionsCase_ = 0; + options_ = null; + onChanged(); + } + } else { + if (optionsCase_ == 3) { + optionsCase_ = 0; + options_ = null; + } + skippingBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.SetSkipping skipping = 3; + */ + public io.greptime.v1.Ddl.SetSkipping.Builder getSkippingBuilder() { + return getSkippingFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.SetSkipping skipping = 3; + */ + @java.lang.Override + public io.greptime.v1.Ddl.SetSkippingOrBuilder getSkippingOrBuilder() { + if ((optionsCase_ == 3) && (skippingBuilder_ != null)) { + return skippingBuilder_.getMessageOrBuilder(); + } else { + if (optionsCase_ == 3) { + return (io.greptime.v1.Ddl.SetSkipping) options_; + } + return io.greptime.v1.Ddl.SetSkipping.getDefaultInstance(); + } + } + /** + * .greptime.v1.SetSkipping skipping = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SetSkipping, io.greptime.v1.Ddl.SetSkipping.Builder, io.greptime.v1.Ddl.SetSkippingOrBuilder> + getSkippingFieldBuilder() { + if (skippingBuilder_ == null) { + if (!(optionsCase_ == 3)) { + options_ = io.greptime.v1.Ddl.SetSkipping.getDefaultInstance(); + } + skippingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SetSkipping, io.greptime.v1.Ddl.SetSkipping.Builder, io.greptime.v1.Ddl.SetSkippingOrBuilder>( + (io.greptime.v1.Ddl.SetSkipping) options_, + getParentForChildren(), + isClean()); + options_ = null; + } + optionsCase_ = 3; + onChanged();; + return skippingBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -15741,6 +16070,21 @@ java.lang.String defaultValue); */ io.greptime.v1.Ddl.UnsetInvertedOrBuilder getInvertedOrBuilder(); + /** + * .greptime.v1.UnsetSkipping skipping = 3; + * @return Whether the skipping field is set. + */ + boolean hasSkipping(); + /** + * .greptime.v1.UnsetSkipping skipping = 3; + * @return The skipping. + */ + io.greptime.v1.Ddl.UnsetSkipping getSkipping(); + /** + * .greptime.v1.UnsetSkipping skipping = 3; + */ + io.greptime.v1.Ddl.UnsetSkippingOrBuilder getSkippingOrBuilder(); + public io.greptime.v1.Ddl.UnsetIndex.OptionsCase getOptionsCase(); } /** @@ -15816,6 +16160,20 @@ java.lang.String defaultValue); optionsCase_ = 2; break; } + case 26: { + io.greptime.v1.Ddl.UnsetSkipping.Builder subBuilder = null; + if (optionsCase_ == 3) { + subBuilder = ((io.greptime.v1.Ddl.UnsetSkipping) options_).toBuilder(); + } + options_ = + input.readMessage(io.greptime.v1.Ddl.UnsetSkipping.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Ddl.UnsetSkipping) options_); + options_ = subBuilder.buildPartial(); + } + optionsCase_ = 3; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -15857,6 +16215,7 @@ java.lang.String defaultValue); com.google.protobuf.AbstractMessage.InternalOneOfEnum { FULLTEXT(1), INVERTED(2), + SKIPPING(3), OPTIONS_NOT_SET(0); private final int value; private OptionsCase(int value) { @@ -15876,6 +16235,7 @@ java.lang.String defaultValue); switch (value) { case 1: return FULLTEXT; case 2: return INVERTED; + case 3: return SKIPPING; case 0: return OPTIONS_NOT_SET; default: return null; } @@ -15953,6 +16313,37 @@ java.lang.String defaultValue); return io.greptime.v1.Ddl.UnsetInverted.getDefaultInstance(); } + public static final int SKIPPING_FIELD_NUMBER = 3; + /** + * .greptime.v1.UnsetSkipping skipping = 3; + * @return Whether the skipping field is set. + */ + @java.lang.Override + public boolean hasSkipping() { + return optionsCase_ == 3; + } + /** + * .greptime.v1.UnsetSkipping skipping = 3; + * @return The skipping. + */ + @java.lang.Override + public io.greptime.v1.Ddl.UnsetSkipping getSkipping() { + if (optionsCase_ == 3) { + return (io.greptime.v1.Ddl.UnsetSkipping) options_; + } + return io.greptime.v1.Ddl.UnsetSkipping.getDefaultInstance(); + } + /** + * .greptime.v1.UnsetSkipping skipping = 3; + */ + @java.lang.Override + public io.greptime.v1.Ddl.UnsetSkippingOrBuilder getSkippingOrBuilder() { + if (optionsCase_ == 3) { + return (io.greptime.v1.Ddl.UnsetSkipping) options_; + } + return io.greptime.v1.Ddl.UnsetSkipping.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -15973,6 +16364,9 @@ java.lang.String defaultValue); if (optionsCase_ == 2) { output.writeMessage(2, (io.greptime.v1.Ddl.UnsetInverted) options_); } + if (optionsCase_ == 3) { + output.writeMessage(3, (io.greptime.v1.Ddl.UnsetSkipping) options_); + } unknownFields.writeTo(output); } @@ -15990,6 +16384,10 @@ java.lang.String defaultValue); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.greptime.v1.Ddl.UnsetInverted) options_); } + if (optionsCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.greptime.v1.Ddl.UnsetSkipping) options_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -16015,6 +16413,10 @@ java.lang.String defaultValue); if (!getInverted() .equals(other.getInverted())) return false; break; + case 3: + if (!getSkipping() + .equals(other.getSkipping())) return false; + break; case 0: default: } @@ -16038,6 +16440,10 @@ java.lang.String defaultValue); hash = (37 * hash) + INVERTED_FIELD_NUMBER; hash = (53 * hash) + getInverted().hashCode(); break; + case 3: + hash = (37 * hash) + SKIPPING_FIELD_NUMBER; + hash = (53 * hash) + getSkipping().hashCode(); + break; case 0: default: } @@ -16216,6 +16622,13 @@ java.lang.String defaultValue); result.options_ = invertedBuilder_.build(); } } + if (optionsCase_ == 3) { + if (skippingBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = skippingBuilder_.build(); + } + } result.optionsCase_ = optionsCase_; onBuilt(); return result; @@ -16274,6 +16687,10 @@ java.lang.String defaultValue); mergeInverted(other.getInverted()); break; } + case SKIPPING: { + mergeSkipping(other.getSkipping()); + break; + } case OPTIONS_NOT_SET: { break; } @@ -16605,6 +17022,148 @@ java.lang.String defaultValue); onChanged();; return invertedBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.UnsetSkipping, io.greptime.v1.Ddl.UnsetSkipping.Builder, io.greptime.v1.Ddl.UnsetSkippingOrBuilder> skippingBuilder_; + /** + * .greptime.v1.UnsetSkipping skipping = 3; + * @return Whether the skipping field is set. + */ + @java.lang.Override + public boolean hasSkipping() { + return optionsCase_ == 3; + } + /** + * .greptime.v1.UnsetSkipping skipping = 3; + * @return The skipping. + */ + @java.lang.Override + public io.greptime.v1.Ddl.UnsetSkipping getSkipping() { + if (skippingBuilder_ == null) { + if (optionsCase_ == 3) { + return (io.greptime.v1.Ddl.UnsetSkipping) options_; + } + return io.greptime.v1.Ddl.UnsetSkipping.getDefaultInstance(); + } else { + if (optionsCase_ == 3) { + return skippingBuilder_.getMessage(); + } + return io.greptime.v1.Ddl.UnsetSkipping.getDefaultInstance(); + } + } + /** + * .greptime.v1.UnsetSkipping skipping = 3; + */ + public Builder setSkipping(io.greptime.v1.Ddl.UnsetSkipping value) { + if (skippingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + skippingBuilder_.setMessage(value); + } + optionsCase_ = 3; + return this; + } + /** + * .greptime.v1.UnsetSkipping skipping = 3; + */ + public Builder setSkipping( + io.greptime.v1.Ddl.UnsetSkipping.Builder builderForValue) { + if (skippingBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + skippingBuilder_.setMessage(builderForValue.build()); + } + optionsCase_ = 3; + return this; + } + /** + * .greptime.v1.UnsetSkipping skipping = 3; + */ + public Builder mergeSkipping(io.greptime.v1.Ddl.UnsetSkipping value) { + if (skippingBuilder_ == null) { + if (optionsCase_ == 3 && + options_ != io.greptime.v1.Ddl.UnsetSkipping.getDefaultInstance()) { + options_ = io.greptime.v1.Ddl.UnsetSkipping.newBuilder((io.greptime.v1.Ddl.UnsetSkipping) options_) + .mergeFrom(value).buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + if (optionsCase_ == 3) { + skippingBuilder_.mergeFrom(value); + } else { + skippingBuilder_.setMessage(value); + } + } + optionsCase_ = 3; + return this; + } + /** + * .greptime.v1.UnsetSkipping skipping = 3; + */ + public Builder clearSkipping() { + if (skippingBuilder_ == null) { + if (optionsCase_ == 3) { + optionsCase_ = 0; + options_ = null; + onChanged(); + } + } else { + if (optionsCase_ == 3) { + optionsCase_ = 0; + options_ = null; + } + skippingBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.UnsetSkipping skipping = 3; + */ + public io.greptime.v1.Ddl.UnsetSkipping.Builder getSkippingBuilder() { + return getSkippingFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.UnsetSkipping skipping = 3; + */ + @java.lang.Override + public io.greptime.v1.Ddl.UnsetSkippingOrBuilder getSkippingOrBuilder() { + if ((optionsCase_ == 3) && (skippingBuilder_ != null)) { + return skippingBuilder_.getMessageOrBuilder(); + } else { + if (optionsCase_ == 3) { + return (io.greptime.v1.Ddl.UnsetSkipping) options_; + } + return io.greptime.v1.Ddl.UnsetSkipping.getDefaultInstance(); + } + } + /** + * .greptime.v1.UnsetSkipping skipping = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.UnsetSkipping, io.greptime.v1.Ddl.UnsetSkipping.Builder, io.greptime.v1.Ddl.UnsetSkippingOrBuilder> + getSkippingFieldBuilder() { + if (skippingBuilder_ == null) { + if (!(optionsCase_ == 3)) { + options_ = io.greptime.v1.Ddl.UnsetSkipping.getDefaultInstance(); + } + skippingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.UnsetSkipping, io.greptime.v1.Ddl.UnsetSkipping.Builder, io.greptime.v1.Ddl.UnsetSkippingOrBuilder>( + (io.greptime.v1.Ddl.UnsetSkipping) options_, + getParentForChildren(), + isClean()); + options_ = null; + } + optionsCase_ = 3; + onChanged();; + return skippingBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -34138,6 +34697,1395 @@ java.lang.String defaultValue); } + public interface SetSkippingOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.SetSkipping) + com.google.protobuf.MessageOrBuilder { + + /** + * string column_name = 1; + * @return The columnName. + */ + java.lang.String getColumnName(); + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + com.google.protobuf.ByteString + getColumnNameBytes(); + + /** + * bool enable = 2; + * @return The enable. + */ + boolean getEnable(); + + /** + * uint64 granularity = 3; + * @return The granularity. + */ + long getGranularity(); + + /** + * .greptime.v1.SkippingIndexType skipping_index_type = 4; + * @return The enum numeric value on the wire for skippingIndexType. + */ + int getSkippingIndexTypeValue(); + /** + * .greptime.v1.SkippingIndexType skipping_index_type = 4; + * @return The skippingIndexType. + */ + io.greptime.v1.Ddl.SkippingIndexType getSkippingIndexType(); + } + /** + * Protobuf type {@code greptime.v1.SetSkipping} + */ + public static final class SetSkipping extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.SetSkipping) + SetSkippingOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetSkipping.newBuilder() to construct. + private SetSkipping(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetSkipping() { + columnName_ = ""; + skippingIndexType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetSkipping(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetSkipping( + 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(); + + columnName_ = s; + break; + } + case 16: { + + enable_ = input.readBool(); + break; + } + case 24: { + + granularity_ = input.readUInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + skippingIndexType_ = rawValue; + 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_SetSkipping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetSkipping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.SetSkipping.class, io.greptime.v1.Ddl.SetSkipping.Builder.class); + } + + public static final int COLUMN_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object columnName_; + /** + * string column_name = 1; + * @return The columnName. + */ + @java.lang.Override + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + 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(); + columnName_ = s; + return s; + } + } + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_FIELD_NUMBER = 2; + private boolean enable_; + /** + * bool enable = 2; + * @return The enable. + */ + @java.lang.Override + public boolean getEnable() { + return enable_; + } + + public static final int GRANULARITY_FIELD_NUMBER = 3; + private long granularity_; + /** + * uint64 granularity = 3; + * @return The granularity. + */ + @java.lang.Override + public long getGranularity() { + return granularity_; + } + + public static final int SKIPPING_INDEX_TYPE_FIELD_NUMBER = 4; + private int skippingIndexType_; + /** + * .greptime.v1.SkippingIndexType skipping_index_type = 4; + * @return The enum numeric value on the wire for skippingIndexType. + */ + @java.lang.Override public int getSkippingIndexTypeValue() { + return skippingIndexType_; + } + /** + * .greptime.v1.SkippingIndexType skipping_index_type = 4; + * @return The skippingIndexType. + */ + @java.lang.Override public io.greptime.v1.Ddl.SkippingIndexType getSkippingIndexType() { + @SuppressWarnings("deprecation") + io.greptime.v1.Ddl.SkippingIndexType result = io.greptime.v1.Ddl.SkippingIndexType.valueOf(skippingIndexType_); + return result == null ? io.greptime.v1.Ddl.SkippingIndexType.UNRECOGNIZED : result; + } + + 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(columnName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); + } + if (enable_ != false) { + output.writeBool(2, enable_); + } + if (granularity_ != 0L) { + output.writeUInt64(3, granularity_); + } + if (skippingIndexType_ != io.greptime.v1.Ddl.SkippingIndexType.BLOOM_FILTER.getNumber()) { + output.writeEnum(4, skippingIndexType_); + } + 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(columnName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); + } + if (enable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enable_); + } + if (granularity_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, granularity_); + } + if (skippingIndexType_ != io.greptime.v1.Ddl.SkippingIndexType.BLOOM_FILTER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, skippingIndexType_); + } + 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.SetSkipping)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.SetSkipping other = (io.greptime.v1.Ddl.SetSkipping) obj; + + if (!getColumnName() + .equals(other.getColumnName())) return false; + if (getEnable() + != other.getEnable()) return false; + if (getGranularity() + != other.getGranularity()) return false; + if (skippingIndexType_ != other.skippingIndexType_) 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) + COLUMN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getColumnName().hashCode(); + hash = (37 * hash) + ENABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnable()); + hash = (37 * hash) + GRANULARITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGranularity()); + hash = (37 * hash) + SKIPPING_INDEX_TYPE_FIELD_NUMBER; + hash = (53 * hash) + skippingIndexType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.SetSkipping parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.SetSkipping 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.SetSkipping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.SetSkipping 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.SetSkipping parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.SetSkipping parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.SetSkipping parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.SetSkipping 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.SetSkipping parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.SetSkipping 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.SetSkipping parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.SetSkipping 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.SetSkipping prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.SetSkipping} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.SetSkipping) + io.greptime.v1.Ddl.SetSkippingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetSkipping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetSkipping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.SetSkipping.class, io.greptime.v1.Ddl.SetSkipping.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.SetSkipping.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(); + columnName_ = ""; + + enable_ = false; + + granularity_ = 0L; + + skippingIndexType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetSkipping_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.SetSkipping getDefaultInstanceForType() { + return io.greptime.v1.Ddl.SetSkipping.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.SetSkipping build() { + io.greptime.v1.Ddl.SetSkipping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.SetSkipping buildPartial() { + io.greptime.v1.Ddl.SetSkipping result = new io.greptime.v1.Ddl.SetSkipping(this); + result.columnName_ = columnName_; + result.enable_ = enable_; + result.granularity_ = granularity_; + result.skippingIndexType_ = skippingIndexType_; + 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.SetSkipping) { + return mergeFrom((io.greptime.v1.Ddl.SetSkipping)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.SetSkipping other) { + if (other == io.greptime.v1.Ddl.SetSkipping.getDefaultInstance()) return this; + if (!other.getColumnName().isEmpty()) { + columnName_ = other.columnName_; + onChanged(); + } + if (other.getEnable() != false) { + setEnable(other.getEnable()); + } + if (other.getGranularity() != 0L) { + setGranularity(other.getGranularity()); + } + if (other.skippingIndexType_ != 0) { + setSkippingIndexTypeValue(other.getSkippingIndexTypeValue()); + } + 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.SetSkipping parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.SetSkipping) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object columnName_ = ""; + /** + * string column_name = 1; + * @return The columnName. + */ + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string column_name = 1; + * @param value The columnName to set. + * @return This builder for chaining. + */ + public Builder setColumnName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + columnName_ = value; + onChanged(); + return this; + } + /** + * string column_name = 1; + * @return This builder for chaining. + */ + public Builder clearColumnName() { + + columnName_ = getDefaultInstance().getColumnName(); + onChanged(); + return this; + } + /** + * string column_name = 1; + * @param value The bytes for columnName to set. + * @return This builder for chaining. + */ + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + columnName_ = value; + onChanged(); + return this; + } + + private boolean enable_ ; + /** + * bool enable = 2; + * @return The enable. + */ + @java.lang.Override + public boolean getEnable() { + return enable_; + } + /** + * bool enable = 2; + * @param value The enable to set. + * @return This builder for chaining. + */ + public Builder setEnable(boolean value) { + + enable_ = value; + onChanged(); + return this; + } + /** + * bool enable = 2; + * @return This builder for chaining. + */ + public Builder clearEnable() { + + enable_ = false; + onChanged(); + return this; + } + + private long granularity_ ; + /** + * uint64 granularity = 3; + * @return The granularity. + */ + @java.lang.Override + public long getGranularity() { + return granularity_; + } + /** + * uint64 granularity = 3; + * @param value The granularity to set. + * @return This builder for chaining. + */ + public Builder setGranularity(long value) { + + granularity_ = value; + onChanged(); + return this; + } + /** + * uint64 granularity = 3; + * @return This builder for chaining. + */ + public Builder clearGranularity() { + + granularity_ = 0L; + onChanged(); + return this; + } + + private int skippingIndexType_ = 0; + /** + * .greptime.v1.SkippingIndexType skipping_index_type = 4; + * @return The enum numeric value on the wire for skippingIndexType. + */ + @java.lang.Override public int getSkippingIndexTypeValue() { + return skippingIndexType_; + } + /** + * .greptime.v1.SkippingIndexType skipping_index_type = 4; + * @param value The enum numeric value on the wire for skippingIndexType to set. + * @return This builder for chaining. + */ + public Builder setSkippingIndexTypeValue(int value) { + + skippingIndexType_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.SkippingIndexType skipping_index_type = 4; + * @return The skippingIndexType. + */ + @java.lang.Override + public io.greptime.v1.Ddl.SkippingIndexType getSkippingIndexType() { + @SuppressWarnings("deprecation") + io.greptime.v1.Ddl.SkippingIndexType result = io.greptime.v1.Ddl.SkippingIndexType.valueOf(skippingIndexType_); + return result == null ? io.greptime.v1.Ddl.SkippingIndexType.UNRECOGNIZED : result; + } + /** + * .greptime.v1.SkippingIndexType skipping_index_type = 4; + * @param value The skippingIndexType to set. + * @return This builder for chaining. + */ + public Builder setSkippingIndexType(io.greptime.v1.Ddl.SkippingIndexType value) { + if (value == null) { + throw new NullPointerException(); + } + + skippingIndexType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.SkippingIndexType skipping_index_type = 4; + * @return This builder for chaining. + */ + public Builder clearSkippingIndexType() { + + skippingIndexType_ = 0; + 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.SetSkipping) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.SetSkipping) + private static final io.greptime.v1.Ddl.SetSkipping DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.SetSkipping(); + } + + public static io.greptime.v1.Ddl.SetSkipping getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetSkipping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetSkipping(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.SetSkipping getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UnsetSkippingOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.UnsetSkipping) + com.google.protobuf.MessageOrBuilder { + + /** + * string column_name = 1; + * @return The columnName. + */ + java.lang.String getColumnName(); + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + com.google.protobuf.ByteString + getColumnNameBytes(); + } + /** + * Protobuf type {@code greptime.v1.UnsetSkipping} + */ + public static final class UnsetSkipping extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.UnsetSkipping) + UnsetSkippingOrBuilder { + private static final long serialVersionUID = 0L; + // Use UnsetSkipping.newBuilder() to construct. + private UnsetSkipping(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UnsetSkipping() { + columnName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UnsetSkipping(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UnsetSkipping( + 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(); + + columnName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetSkipping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetSkipping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.UnsetSkipping.class, io.greptime.v1.Ddl.UnsetSkipping.Builder.class); + } + + public static final int COLUMN_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object columnName_; + /** + * string column_name = 1; + * @return The columnName. + */ + @java.lang.Override + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + 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(); + columnName_ = s; + return s; + } + } + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); + } + 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(columnName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); + } + 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.UnsetSkipping)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.UnsetSkipping other = (io.greptime.v1.Ddl.UnsetSkipping) obj; + + if (!getColumnName() + .equals(other.getColumnName())) 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) + COLUMN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getColumnName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.UnsetSkipping parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.UnsetSkipping 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.UnsetSkipping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.UnsetSkipping 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.UnsetSkipping parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.UnsetSkipping parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.UnsetSkipping parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.UnsetSkipping 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.UnsetSkipping parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.UnsetSkipping 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.UnsetSkipping parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.UnsetSkipping 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.UnsetSkipping prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.UnsetSkipping} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.UnsetSkipping) + io.greptime.v1.Ddl.UnsetSkippingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetSkipping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetSkipping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.UnsetSkipping.class, io.greptime.v1.Ddl.UnsetSkipping.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.UnsetSkipping.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(); + columnName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetSkipping_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.UnsetSkipping getDefaultInstanceForType() { + return io.greptime.v1.Ddl.UnsetSkipping.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.UnsetSkipping build() { + io.greptime.v1.Ddl.UnsetSkipping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.UnsetSkipping buildPartial() { + io.greptime.v1.Ddl.UnsetSkipping result = new io.greptime.v1.Ddl.UnsetSkipping(this); + result.columnName_ = columnName_; + 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.UnsetSkipping) { + return mergeFrom((io.greptime.v1.Ddl.UnsetSkipping)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.UnsetSkipping other) { + if (other == io.greptime.v1.Ddl.UnsetSkipping.getDefaultInstance()) return this; + if (!other.getColumnName().isEmpty()) { + columnName_ = other.columnName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Ddl.UnsetSkipping parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.UnsetSkipping) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object columnName_ = ""; + /** + * string column_name = 1; + * @return The columnName. + */ + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string column_name = 1; + * @param value The columnName to set. + * @return This builder for chaining. + */ + public Builder setColumnName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + columnName_ = value; + onChanged(); + return this; + } + /** + * string column_name = 1; + * @return This builder for chaining. + */ + public Builder clearColumnName() { + + columnName_ = getDefaultInstance().getColumnName(); + onChanged(); + return this; + } + /** + * string column_name = 1; + * @param value The bytes for columnName to set. + * @return This builder for chaining. + */ + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + columnName_ = value; + 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.UnsetSkipping) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.UnsetSkipping) + private static final io.greptime.v1.Ddl.UnsetSkipping DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.UnsetSkipping(); + } + + public static io.greptime.v1.Ddl.UnsetSkipping getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnsetSkipping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnsetSkipping(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.UnsetSkipping getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface AlterDatabaseExprOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.AlterDatabaseExpr) com.google.protobuf.MessageOrBuilder { @@ -36994,6 +38942,16 @@ java.lang.String defaultValue); private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_UnsetInverted_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_SetSkipping_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_SetSkipping_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_UnsetSkipping_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_UnsetSkipping_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_AlterDatabaseExpr_descriptor; private static final @@ -37079,74 +39037,81 @@ java.lang.String defaultValue); "\036.greptime.v1.UnsetTableOptionsH\000\022*\n\tset" + "_index\030\014 \001(\0132\025.greptime.v1.SetIndexH\000\022.\n" + "\013unset_index\030\r \001(\0132\027.greptime.v1.UnsetIn" + - "dexH\000B\006\n\004kind\"q\n\010SetIndex\022,\n\010fulltext\030\001 " + - "\001(\0132\030.greptime.v1.SetFulltextH\000\022,\n\010inver" + - "ted\030\002 \001(\0132\030.greptime.v1.SetInvertedH\000B\t\n" + - "\007options\"w\n\nUnsetIndex\022.\n\010fulltext\030\001 \001(\013" + - "2\032.greptime.v1.UnsetFulltextH\000\022.\n\010invert" + - "ed\030\002 \001(\0132\032.greptime.v1.UnsetInvertedH\000B\t" + - "\n\007options\"\216\001\n\rDropTableExpr\022\024\n\014catalog_n" + - "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_" + - "name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime." + - "v1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022C" + - "reateDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022" + - "\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_not_ex" + - "ists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v" + - "1.CreateDatabaseExpr.OptionsEntry\032.\n\014Opt" + - "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_name\030\001" + - " \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030" + - "\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Ta" + - "bleId\"U\n\020DropDatabaseExpr\022\024\n\014catalog_nam" + - "e\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_column" + - "s\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n\013DropC" + - "olumns\022-\n\014drop_columns\030\001 \003(\0132\027.greptime." + - "v1.DropColumn\"O\n\021ModifyColumnTypes\022:\n\023mo" + - "dify_column_types\030\001 \003(\0132\035.greptime.v1.Mo" + - "difyColumnType\"%\n\013RenameTable\022\026\n\016new_tab" + - "le_name\030\001 \001(\t\"\204\001\n\tAddColumn\022*\n\ncolumn_de" + - "f\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010locat" + - "ion\030\003 \001(\0132\036.greptime.v1.AddColumnLocatio" + - "n\022\031\n\021add_if_not_exists\030\004 \001(\010\"\236\001\n\020ModifyC" + - "olumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013target" + - "_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType" + - "\022C\n\025target_type_extension\030\003 \001(\0132$.grepti" + - "me.v1.ColumnDataTypeExtension\"$\n\006Option\022" + - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"=\n\017SetTableO" + - "ptions\022*\n\rtable_options\030\001 \003(\0132\023.greptime" + - ".v1.Option\"!\n\021UnsetTableOptions\022\014\n\004keys\030" + - "\001 \003(\t\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007Tab" + - "leId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254" + - "\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030" + - "\002 \001(\0162\033.greptime.v1.ColumnDataType\022\023\n\013is" + - "_nullable\030\003 \001(\010\022\032\n\022default_constraint\030\004 " + - "\001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1" + - ".SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022dataty" + - "pe_extension\030\007 \001(\0132$.greptime.v1.ColumnD" + - "ataTypeExtension\022+\n\007options\030\010 \001(\0132\032.grep" + - "time.v1.ColumnOptions\"\230\001\n\021AddColumnLocat" + - "ion\022B\n\rlocation_type\030\001 \001(\0162+.greptime.v1" + - ".AddColumnLocation.LocationType\022\031\n\021after" + - "_column_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FI" + - "RST\020\000\022\t\n\005AFTER\020\001\"s\n\013SetFulltext\022\023\n\013colum" + - "n_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010analyzer" + - "\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016case_se" + - "nsitive\030\004 \001(\010\"$\n\rUnsetFulltext\022\023\n\013column" + - "_name\030\001 \001(\t\"\"\n\013SetInverted\022\023\n\013column_nam" + - "e\030\001 \001(\t\"$\n\rUnsetInverted\022\023\n\013column_name\030" + - "\001 \001(\t\"\314\001\n\021AlterDatabaseExpr\022\024\n\014catalog_n" + - "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022?\n\024set_da" + - "tabase_options\030\003 \001(\0132\037.greptime.v1.SetDa" + - "tabaseOptionsH\000\022C\n\026unset_database_option" + - "s\030\004 \001(\0132!.greptime.v1.UnsetDatabaseOptio" + - "nsH\000B\006\n\004kind\"G\n\022SetDatabaseOptions\0221\n\024se" + - "t_database_options\030\001 \003(\0132\023.greptime.v1.O" + - "ption\"$\n\024UnsetDatabaseOptions\022\014\n\004keys\030\001 " + - "\003(\t*$\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020" + - "\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gre" + - "ptimeTeam/greptime-proto/go/greptime/v1b" + - "\006proto3" + "dexH\000B\006\n\004kind\"\237\001\n\010SetIndex\022,\n\010fulltext\030\001" + + " \001(\0132\030.greptime.v1.SetFulltextH\000\022,\n\010inve" + + "rted\030\002 \001(\0132\030.greptime.v1.SetInvertedH\000\022," + + "\n\010skipping\030\003 \001(\0132\030.greptime.v1.SetSkippi" + + "ngH\000B\t\n\007options\"\247\001\n\nUnsetIndex\022.\n\010fullte" + + "xt\030\001 \001(\0132\032.greptime.v1.UnsetFulltextH\000\022." + + "\n\010inverted\030\002 \001(\0132\032.greptime.v1.UnsetInve" + + "rtedH\000\022.\n\010skipping\030\003 \001(\0132\032.greptime.v1.U" + + "nsetSkippingH\000B\t\n\007options\"\216\001\n\rDropTableE" + + "xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" + + "\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004" + + " \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_ex" + + "ists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014cat" + + "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024" + + "create_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 " + + "\003(\0132,.greptime.v1.CreateDatabaseExpr.Opt" + + "ionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024" + + "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" + + "\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132" + + "\024.greptime.v1.TableId\"U\n\020DropDatabaseExp" + + "r\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\nAddColum" + + "ns\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.Ad" + + "dColumn\"<\n\013DropColumns\022-\n\014drop_columns\030\001" + + " \003(\0132\027.greptime.v1.DropColumn\"O\n\021ModifyC" + + "olumnTypes\022:\n\023modify_column_types\030\001 \003(\0132" + + "\035.greptime.v1.ModifyColumnType\"%\n\013Rename" + + "Table\022\026\n\016new_table_name\030\001 \001(\t\"\204\001\n\tAddCol" + + "umn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Co" + + "lumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1." + + "AddColumnLocation\022\031\n\021add_if_not_exists\030\004" + + " \001(\010\"\236\001\n\020ModifyColumnType\022\023\n\013column_name" + + "\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.greptime.v" + + "1.ColumnDataType\022C\n\025target_type_extensio" + + "n\030\003 \001(\0132$.greptime.v1.ColumnDataTypeExte" + + "nsion\"$\n\006Option\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t\"=\n\017SetTableOptions\022*\n\rtable_options\030" + + "\001 \003(\0132\023.greptime.v1.Option\"!\n\021UnsetTable" + + "Options\022\014\n\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004n" + + "ame\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006Flow" + + "Id\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001" + + "(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1.Colu" + + "mnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022defau" + + "lt_constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001" + + "(\0162\031.greptime.v1.SemanticType\022\017\n\007comment" + + "\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.gre" + + "ptime.v1.ColumnDataTypeExtension\022+\n\007opti" + + "ons\030\010 \001(\0132\032.greptime.v1.ColumnOptions\"\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\001\"s\n\013SetF" + + "ulltext\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002" + + " \001(\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Ana" + + "lyzer\022\026\n\016case_sensitive\030\004 \001(\010\"$\n\rUnsetFu" + + "lltext\022\023\n\013column_name\030\001 \001(\t\"\"\n\013SetInvert" + + "ed\022\023\n\013column_name\030\001 \001(\t\"$\n\rUnsetInverted" + + "\022\023\n\013column_name\030\001 \001(\t\"\204\001\n\013SetSkipping\022\023\n" + + "\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\023\n\013gr" + + "anularity\030\003 \001(\004\022;\n\023skipping_index_type\030\004" + + " \001(\0162\036.greptime.v1.SkippingIndexType\"$\n\r" + + "UnsetSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021A" + + "lterDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023" + + "\n\013schema_name\030\002 \001(\t\022?\n\024set_database_opti" + + "ons\030\003 \001(\0132\037.greptime.v1.SetDatabaseOptio" + + "nsH\000\022C\n\026unset_database_options\030\004 \001(\0132!.g" + + "reptime.v1.UnsetDatabaseOptionsH\000B\006\n\004kin" + + "d\"G\n\022SetDatabaseOptions\0221\n\024set_database_" + + "options\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024Un" + + "setDatabaseOptions\022\014\n\004keys\030\001 \003(\t*$\n\010Anal" + + "yzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001*%\n\021Skippi" + + "ngIndexType\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.grep" + + "time.v1B\003DdlZ5github.com/GreptimeTeam/gr" + + "eptime-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -37212,13 +39177,13 @@ java.lang.String defaultValue); internal_static_greptime_v1_SetIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SetIndex_descriptor, - new java.lang.String[] { "Fulltext", "Inverted", "Options", }); + new java.lang.String[] { "Fulltext", "Inverted", "Skipping", "Options", }); internal_static_greptime_v1_UnsetIndex_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_greptime_v1_UnsetIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_UnsetIndex_descriptor, - new java.lang.String[] { "Fulltext", "Inverted", "Options", }); + new java.lang.String[] { "Fulltext", "Inverted", "Skipping", "Options", }); internal_static_greptime_v1_DropTableExpr_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_greptime_v1_DropTableExpr_fieldAccessorTable = new @@ -37357,20 +39322,32 @@ java.lang.String defaultValue); com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_UnsetInverted_descriptor, new java.lang.String[] { "ColumnName", }); - internal_static_greptime_v1_AlterDatabaseExpr_descriptor = + internal_static_greptime_v1_SetSkipping_descriptor = getDescriptor().getMessageTypes().get(31); + internal_static_greptime_v1_SetSkipping_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_SetSkipping_descriptor, + new java.lang.String[] { "ColumnName", "Enable", "Granularity", "SkippingIndexType", }); + internal_static_greptime_v1_UnsetSkipping_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_greptime_v1_UnsetSkipping_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_UnsetSkipping_descriptor, + new java.lang.String[] { "ColumnName", }); + internal_static_greptime_v1_AlterDatabaseExpr_descriptor = + getDescriptor().getMessageTypes().get(33); internal_static_greptime_v1_AlterDatabaseExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AlterDatabaseExpr_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "SetDatabaseOptions", "UnsetDatabaseOptions", "Kind", }); internal_static_greptime_v1_SetDatabaseOptions_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_greptime_v1_SetDatabaseOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SetDatabaseOptions_descriptor, new java.lang.String[] { "SetDatabaseOptions", }); internal_static_greptime_v1_UnsetDatabaseOptions_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_greptime_v1_UnsetDatabaseOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_UnsetDatabaseOptions_descriptor, diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index 80d6d7d..dc545c0 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -121,6 +121,7 @@ message SetIndex { oneof options { SetFulltext fulltext = 1; SetInverted inverted = 2; + SetSkipping skipping = 3; } } @@ -128,6 +129,7 @@ message UnsetIndex { oneof options { UnsetFulltext fulltext = 1; UnsetInverted inverted = 2; + UnsetSkipping skipping = 3; } } @@ -248,6 +250,20 @@ message UnsetInverted { string column_name = 1; } +enum SkippingIndexType { + BLOOM_FILTER = 0; +} + +message SetSkipping { + string column_name = 1; + bool enable = 2; + uint64 granularity = 3; + SkippingIndexType skipping_index_type = 4; +} + +message UnsetSkipping { + string column_name = 1; +} message AlterDatabaseExpr { string catalog_name = 1; string schema_name = 2;