From 3bb33593a781504e025e6315572bc5dfdc1dc497 Mon Sep 17 00:00:00 2001 From: Lin Yihai Date: Tue, 29 Jul 2025 11:19:12 +0800 Subject: [PATCH] feat: Support `SET DEFAULT` syntax (#251) Signed-off-by: Yihai Lin --- c++/greptime/v1/ddl.pb.cc | 924 ++++++-- c++/greptime/v1/ddl.pb.h | 650 +++++- c++/greptime/v1/region/server.pb.cc | 172 +- c++/greptime/v1/region/server.pb.h | 88 + go/greptime/v1/ddl.pb.go | 665 ++++++ go/greptime/v1/region/server.pb.go | 265 ++- java/src/main/java/io/greptime/v1/Ddl.java | 1995 +++++++++++++++-- .../java/io/greptime/v1/region/Server.java | 304 ++- proto/greptime/v1/ddl.proto | 11 + proto/greptime/v1/region/server.proto | 1 + 10 files changed, 4505 insertions(+), 570 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 23c1275..61bd4ba 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -214,6 +214,20 @@ struct UnsetIndexesDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnsetIndexesDefaultTypeInternal _UnsetIndexes_default_instance_; +PROTOBUF_CONSTEXPR SetDefault::SetDefault( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.default_constraint_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SetDefaultDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetDefaultDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetDefaultDefaultTypeInternal() {} + union { + SetDefault _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDefaultDefaultTypeInternal _SetDefault_default_instance_; PROTOBUF_CONSTEXPR SetIndex::SetIndex( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.options_)*/{} @@ -343,6 +357,19 @@ struct DropDefaultsDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropDefaultsDefaultTypeInternal _DropDefaults_default_instance_; +PROTOBUF_CONSTEXPR SetDefaults::SetDefaults( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.set_defaults_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SetDefaultsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetDefaultsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetDefaultsDefaultTypeInternal() {} + union { + SetDefaults _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDefaultsDefaultTypeInternal _SetDefaults_default_instance_; PROTOBUF_CONSTEXPR DropColumns::DropColumns( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.drop_columns_)*/{} @@ -754,7 +781,7 @@ struct DropTriggerExprDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropTriggerExprDefaultTypeInternal _DropTriggerExpr_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[50]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[52]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[4]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fddl_2eproto = nullptr; @@ -886,6 +913,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterTableExpr, _impl_.kind_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropDefault, _internal_metadata_), @@ -909,6 +937,14 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetIndexes, _impl_.unset_indexes_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetDefault, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetDefault, _impl_.column_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetDefault, _impl_.default_constraint_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::SetIndex, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::greptime::v1::SetIndex, _impl_._oneof_case_[0]), @@ -993,6 +1029,13 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropDefaults, _impl_.drop_defaults_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetDefaults, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetDefaults, _impl_.set_defaults_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropColumns, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1254,47 +1297,49 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 80, 88, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, { 90, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, { 107, -1, -1, sizeof(::greptime::v1::AlterTableExpr)}, - { 128, -1, -1, sizeof(::greptime::v1::DropDefault)}, - { 135, -1, -1, sizeof(::greptime::v1::SetIndexes)}, - { 142, -1, -1, sizeof(::greptime::v1::UnsetIndexes)}, - { 149, -1, -1, sizeof(::greptime::v1::SetIndex)}, - { 159, -1, -1, sizeof(::greptime::v1::UnsetIndex)}, - { 169, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, - { 180, 188, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, - { 190, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, - { 200, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, - { 210, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, - { 219, -1, -1, sizeof(::greptime::v1::AddColumns)}, - { 226, -1, -1, sizeof(::greptime::v1::DropDefaults)}, - { 233, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 240, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)}, - { 247, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 254, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 263, -1, -1, sizeof(::greptime::v1::ModifyColumnType)}, - { 272, -1, -1, sizeof(::greptime::v1::Option)}, - { 280, -1, -1, sizeof(::greptime::v1::SetTableOptions)}, - { 287, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)}, - { 294, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 301, -1, -1, sizeof(::greptime::v1::TableId)}, - { 308, -1, -1, sizeof(::greptime::v1::FlowId)}, - { 315, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 329, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, - { 337, -1, -1, sizeof(::greptime::v1::SetFulltext)}, - { 350, -1, -1, sizeof(::greptime::v1::UnsetFulltext)}, - { 357, -1, -1, sizeof(::greptime::v1::SetInverted)}, - { 364, -1, -1, sizeof(::greptime::v1::UnsetInverted)}, - { 371, -1, -1, sizeof(::greptime::v1::SetSkipping)}, - { 382, -1, -1, sizeof(::greptime::v1::UnsetSkipping)}, - { 389, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)}, - { 400, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, - { 407, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)}, - { 414, 422, -1, sizeof(::greptime::v1::CreateTriggerExpr_LabelsEntry_DoNotUse)}, - { 424, 432, -1, sizeof(::greptime::v1::CreateTriggerExpr_AnnotationsEntry_DoNotUse)}, - { 434, -1, -1, sizeof(::greptime::v1::CreateTriggerExpr)}, - { 448, -1, -1, sizeof(::greptime::v1::NotifyChannel)}, - { 457, 465, -1, sizeof(::greptime::v1::WebhookOptions_OptsEntry_DoNotUse)}, - { 467, -1, -1, sizeof(::greptime::v1::WebhookOptions)}, - { 475, -1, -1, sizeof(::greptime::v1::DropTriggerExpr)}, + { 129, -1, -1, sizeof(::greptime::v1::DropDefault)}, + { 136, -1, -1, sizeof(::greptime::v1::SetIndexes)}, + { 143, -1, -1, sizeof(::greptime::v1::UnsetIndexes)}, + { 150, -1, -1, sizeof(::greptime::v1::SetDefault)}, + { 158, -1, -1, sizeof(::greptime::v1::SetIndex)}, + { 168, -1, -1, sizeof(::greptime::v1::UnsetIndex)}, + { 178, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, + { 189, 197, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, + { 199, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, + { 209, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, + { 219, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, + { 228, -1, -1, sizeof(::greptime::v1::AddColumns)}, + { 235, -1, -1, sizeof(::greptime::v1::DropDefaults)}, + { 242, -1, -1, sizeof(::greptime::v1::SetDefaults)}, + { 249, -1, -1, sizeof(::greptime::v1::DropColumns)}, + { 256, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)}, + { 263, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 270, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 279, -1, -1, sizeof(::greptime::v1::ModifyColumnType)}, + { 288, -1, -1, sizeof(::greptime::v1::Option)}, + { 296, -1, -1, sizeof(::greptime::v1::SetTableOptions)}, + { 303, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)}, + { 310, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 317, -1, -1, sizeof(::greptime::v1::TableId)}, + { 324, -1, -1, sizeof(::greptime::v1::FlowId)}, + { 331, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 345, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 353, -1, -1, sizeof(::greptime::v1::SetFulltext)}, + { 366, -1, -1, sizeof(::greptime::v1::UnsetFulltext)}, + { 373, -1, -1, sizeof(::greptime::v1::SetInverted)}, + { 380, -1, -1, sizeof(::greptime::v1::UnsetInverted)}, + { 387, -1, -1, sizeof(::greptime::v1::SetSkipping)}, + { 398, -1, -1, sizeof(::greptime::v1::UnsetSkipping)}, + { 405, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)}, + { 416, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, + { 423, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)}, + { 430, 438, -1, sizeof(::greptime::v1::CreateTriggerExpr_LabelsEntry_DoNotUse)}, + { 440, 448, -1, sizeof(::greptime::v1::CreateTriggerExpr_AnnotationsEntry_DoNotUse)}, + { 450, -1, -1, sizeof(::greptime::v1::CreateTriggerExpr)}, + { 464, -1, -1, sizeof(::greptime::v1::NotifyChannel)}, + { 473, 481, -1, sizeof(::greptime::v1::WebhookOptions_OptsEntry_DoNotUse)}, + { 483, -1, -1, sizeof(::greptime::v1::WebhookOptions)}, + { 491, -1, -1, sizeof(::greptime::v1::DropTriggerExpr)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1310,6 +1355,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_DropDefault_default_instance_._instance, &::greptime::v1::_SetIndexes_default_instance_._instance, &::greptime::v1::_UnsetIndexes_default_instance_._instance, + &::greptime::v1::_SetDefault_default_instance_._instance, &::greptime::v1::_SetIndex_default_instance_._instance, &::greptime::v1::_UnsetIndex_default_instance_._instance, &::greptime::v1::_DropTableExpr_default_instance_._instance, @@ -1319,6 +1365,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_DropDatabaseExpr_default_instance_._instance, &::greptime::v1::_AddColumns_default_instance_._instance, &::greptime::v1::_DropDefaults_default_instance_._instance, + &::greptime::v1::_SetDefaults_default_instance_._instance, &::greptime::v1::_DropColumns_default_instance_._instance, &::greptime::v1::_ModifyColumnTypes_default_instance_._instance, &::greptime::v1::_RenameTable_default_instance_._instance, @@ -1399,7 +1446,7 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "teTableExpr.TableOptionsEntry\022&\n\010table_i" "d\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006engine\030" "\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003key\030\001 \001(\t\022" - "\r\n\005value\030\002 \001(\t:\0028\001\"\230\005\n\016AlterTableExpr\022\024\n" + "\r\n\005value\030\002 \001(\t:\0028\001\"\312\005\n\016AlterTableExpr\022\024\n" "\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" "\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_columns\030\004 \001(" "\0132\027.greptime.v1.AddColumnsH\000\0220\n\014drop_col" @@ -1415,119 +1462,123 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "dexH\000\0222\n\rdrop_defaults\030\016 \001(\0132\031.greptime." "v1.DropDefaultsH\000\022.\n\013set_indexes\030\017 \001(\0132\027" ".greptime.v1.SetIndexesH\000\0222\n\runset_index" - "es\030\020 \001(\0132\031.greptime.v1.UnsetIndexesH\000B\006\n" - "\004kind\"\"\n\013DropDefault\022\023\n\013column_name\030\001 \001(" - "\t\"8\n\nSetIndexes\022*\n\013set_indexes\030\001 \003(\0132\025.g" - "reptime.v1.SetIndex\">\n\014UnsetIndexes\022.\n\ru" - "nset_indexes\030\001 \003(\0132\027.greptime.v1.UnsetIn" - "dex\"\237\001\n\010SetIndex\022,\n\010fulltext\030\001 \001(\0132\030.gre" - "ptime.v1.SetFulltextH\000\022,\n\010inverted\030\002 \001(\013" - "2\030.greptime.v1.SetInvertedH\000\022,\n\010skipping" - "\030\003 \001(\0132\030.greptime.v1.SetSkippingH\000B\t\n\007op" - "tions\"\247\001\n\nUnsetIndex\022.\n\010fulltext\030\001 \001(\0132\032" - ".greptime.v1.UnsetFulltextH\000\022.\n\010inverted" - "\030\002 \001(\0132\032.greptime.v1.UnsetInvertedH\000\022.\n\010" - "skipping\030\003 \001(\0132\032.greptime.v1.UnsetSkippi" - "ngH\000B\t\n\007options\"\216\001\n\rDropTableExpr\022\024\n\014cat" - "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\n" - "table_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gre" - "ptime.v1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010" - "\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_name\030" - "\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_" - "not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.grep" - "time.v1.CreateDatabaseExpr.OptionsEntry\032" - ".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - "\001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_" - "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\020DropDatabaseExpr\022\024\n\014catal" - "og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr" - "op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_" - "columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"\?\n" - "\014DropDefaults\022/\n\rdrop_defaults\030\001 \003(\0132\030.g" - "reptime.v1.DropDefault\"<\n\013DropColumns\022-\n" - "\014drop_columns\030\001 \003(\0132\027.greptime.v1.DropCo" - "lumn\"O\n\021ModifyColumnTypes\022:\n\023modify_colu" - "mn_types\030\001 \003(\0132\035.greptime.v1.ModifyColum" - "nType\"%\n\013RenameTable\022\026\n\016new_table_name\030\001" - " \001(\t\"\204\001\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026" - ".greptime.v1.ColumnDef\0220\n\010location\030\003 \001(\013" - "2\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.v1.ColumnDataType\022C\n\025targe" - "t_type_extension\030\003 \001(\0132$.greptime.v1.Col" - "umnDataTypeExtension\"$\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.Optio" - "n\"!\n\021UnsetTableOptions\022\014\n\004keys\030\001 \003(\t\"\032\n\n" - "DropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002i" - "d\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumn" - "Def\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.g" - "reptime.v1.ColumnDataType\022\023\n\013is_nullable" - "\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rse" - "mantic_type\030\005 \001(\0162\031.greptime.v1.Semantic" - "Type\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extens" - "ion\030\007 \001(\0132$.greptime.v1.ColumnDataTypeEx" - "tension\022+\n\007options\030\010 \001(\0132\032.greptime.v1.C" - "olumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rlo" - "cation_type\030\001 \001(\0162+.greptime.v1.AddColum" - "nLocation.LocationType\022\031\n\021after_column_n" - "ame\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005" - "AFTER\020\001\"\324\001\n\013SetFulltext\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.Analyzer\022\026\n\016case_sensitive\030" - "\004 \001(\010\022-\n\007backend\030\005 \001(\0162\034.greptime.v1.Ful" - "ltextBackend\022\023\n\013granularity\030\006 \001(\004\022\033\n\023fal" - "se_positive_rate\030\007 \001(\001\"$\n\rUnsetFulltext\022" - "\023\n\013column_name\030\001 \001(\t\"\"\n\013SetInverted\022\023\n\013c" - "olumn_name\030\001 \001(\t\"$\n\rUnsetInverted\022\023\n\013col" - "umn_name\030\001 \001(\t\"\241\001\n\013SetSkipping\022\023\n\013column" - "_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\023\n\013granulari" - "ty\030\003 \001(\004\022;\n\023skipping_index_type\030\004 \001(\0162\036." - "greptime.v1.SkippingIndexType\022\033\n\023false_p" - "ositive_rate\030\005 \001(\001\"$\n\rUnsetSkipping\022\023\n\013c" - "olumn_name\030\001 \001(\t\"\314\001\n\021AlterDatabaseExpr\022\024" - "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" - "\t\022\?\n\024set_database_options\030\003 \001(\0132\037.grepti" - "me.v1.SetDatabaseOptionsH\000\022C\n\026unset_data" - "base_options\030\004 \001(\0132!.greptime.v1.UnsetDa" - "tabaseOptionsH\000B\006\n\004kind\"G\n\022SetDatabaseOp" - "tions\0221\n\024set_database_options\030\001 \003(\0132\023.gr" - "eptime.v1.Option\"$\n\024UnsetDatabaseOptions" - "\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021CreateTriggerExpr\022\024\n\014" - "catalog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001(\t" - "\022\034\n\024create_if_not_exists\030\003 \001(\010\022\013\n\003sql\030\004 " - "\001(\t\022,\n\010channels\030\005 \003(\0132\032.greptime.v1.Noti" - "fyChannel\022:\n\006labels\030\006 \003(\0132*.greptime.v1." - "CreateTriggerExpr.LabelsEntry\022D\n\013annotat" - "ions\030\007 \003(\0132/.greptime.v1.CreateTriggerEx" - "pr.AnnotationsEntry\022\020\n\010interval\030\010 \001(\004\032-\n" - "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - ":\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - "\005value\030\002 \001(\t:\0028\001\"]\n\rNotifyChannel\022\014\n\004nam" - "e\030\001 \001(\t\022.\n\007webhook\030\002 \001(\0132\033.greptime.v1.W" - "ebhookOptionsH\000B\016\n\014channel_type\"\177\n\016Webho" - "okOptions\022\013\n\003url\030\001 \001(\t\0223\n\004opts\030\002 \003(\0132%.g" - "reptime.v1.WebhookOptions.OptsEntry\032+\n\tO" - "ptsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - "\"U\n\017DropTriggerExpr\022\024\n\014catalog_name\030\001 \001(" - "\t\022\024\n\014trigger_name\030\002 \001(\t\022\026\n\016drop_if_exist" - "s\030\003 \001(\010*$\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHIN" - "ESE\020\001*)\n\017FulltextBackend\022\013\n\007TANTIVY\020\000\022\t\n" - "\005BLOOM\020\001*%\n\021SkippingIndexType\022\020\n\014BLOOM_F" - "ILTER\020\000BL\n\016io.greptime.v1B\003DdlZ5github.c" - "om/GreptimeTeam/greptime-proto/go/grepti" - "me/v1b\006proto3" + "es\030\020 \001(\0132\031.greptime.v1.UnsetIndexesH\000\0220\n" + "\014set_defaults\030\021 \001(\0132\030.greptime.v1.SetDef" + "aultsH\000B\006\n\004kind\"\"\n\013DropDefault\022\023\n\013column" + "_name\030\001 \001(\t\"8\n\nSetIndexes\022*\n\013set_indexes" + "\030\001 \003(\0132\025.greptime.v1.SetIndex\">\n\014UnsetIn" + "dexes\022.\n\runset_indexes\030\001 \003(\0132\027.greptime." + "v1.UnsetIndex\"=\n\nSetDefault\022\023\n\013column_na" + "me\030\001 \001(\t\022\032\n\022default_constraint\030\002 \001(\014\"\237\001\n" + "\010SetIndex\022,\n\010fulltext\030\001 \001(\0132\030.greptime.v" + "1.SetFulltextH\000\022,\n\010inverted\030\002 \001(\0132\030.grep" + "time.v1.SetInvertedH\000\022,\n\010skipping\030\003 \001(\0132" + "\030.greptime.v1.SetSkippingH\000B\t\n\007options\"\247" + "\001\n\nUnsetIndex\022.\n\010fulltext\030\001 \001(\0132\032.grepti" + "me.v1.UnsetFulltextH\000\022.\n\010inverted\030\002 \001(\0132" + "\032.greptime.v1.UnsetInvertedH\000\022.\n\010skippin" + "g\030\003 \001(\0132\032.greptime.v1.UnsetSkippingH\000B\t\n" + "\007options\"\216\001\n\rDropTableExpr\022\024\n\014catalog_na" + "me\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_n" + "ame\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v" + "1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022Cr" + "eateDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023" + "\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_not_exi" + "sts\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1" + ".CreateDatabaseExpr.OptionsEntry\032.\n\014Opti" + "onsEntry\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.Tab" + "leId\"U\n\020DropDatabaseExpr\022\024\n\014catalog_name" + "\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_e" + "xists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns" + "\030\001 \003(\0132\026.greptime.v1.AddColumn\"\?\n\014DropDe" + "faults\022/\n\rdrop_defaults\030\001 \003(\0132\030.greptime" + ".v1.DropDefault\"<\n\013SetDefaults\022-\n\014set_de" + "faults\030\001 \003(\0132\027.greptime.v1.SetDefault\"<\n" + "\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre" + "ptime.v1.DropColumn\"O\n\021ModifyColumnTypes" + "\022:\n\023modify_column_types\030\001 \003(\0132\035.greptime" + ".v1.ModifyColumnType\"%\n\013RenameTable\022\026\n\016n" + "ew_table_name\030\001 \001(\t\"\204\001\n\tAddColumn\022*\n\ncol" + "umn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n" + "\010location\030\003 \001(\0132\036.greptime.v1.AddColumnL" + "ocation\022\031\n\021add_if_not_exists\030\004 \001(\010\"\236\001\n\020M" + "odifyColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013" + "target_type\030\002 \001(\0162\033.greptime.v1.ColumnDa" + "taType\022C\n\025target_type_extension\030\003 \001(\0132$." + "greptime.v1.ColumnDataTypeExtension\"$\n\006O" + "ption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"=\n\017Set" + "TableOptions\022*\n\rtable_options\030\001 \003(\0132\023.gr" + "eptime.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\007TableId\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_constra" + "int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept" + "ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022" + "datatype_extension\030\007 \001(\0132$.greptime.v1.C" + "olumnDataTypeExtension\022+\n\007options\030\010 \001(\0132" + "\032.greptime.v1.ColumnOptions\"\230\001\n\021AddColum" + "nLocation\022B\n\rlocation_type\030\001 \001(\0162+.grept" + "ime.v1.AddColumnLocation.LocationType\022\031\n" + "\021after_column_name\030\002 \001(\t\"$\n\014LocationType" + "\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFulltext\022\023" + "\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010a" + "nalyzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016" + "case_sensitive\030\004 \001(\010\022-\n\007backend\030\005 \001(\0162\034." + "greptime.v1.FulltextBackend\022\023\n\013granulari" + "ty\030\006 \001(\004\022\033\n\023false_positive_rate\030\007 \001(\001\"$\n" + "\rUnsetFulltext\022\023\n\013column_name\030\001 \001(\t\"\"\n\013S" + "etInverted\022\023\n\013column_name\030\001 \001(\t\"$\n\rUnset" + "Inverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n\013SetSki" + "pping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001" + "(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skipping_inde" + "x_type\030\004 \001(\0162\036.greptime.v1.SkippingIndex" + "Type\022\033\n\023false_positive_rate\030\005 \001(\001\"$\n\rUns" + "etSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021Alte" + "rDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" + "chema_name\030\002 \001(\t\022\?\n\024set_database_options" + "\030\003 \001(\0132\037.greptime.v1.SetDatabaseOptionsH" + "\000\022C\n\026unset_database_options\030\004 \001(\0132!.grep" + "time.v1.UnsetDatabaseOptionsH\000B\006\n\004kind\"G" + "\n\022SetDatabaseOptions\0221\n\024set_database_opt" + "ions\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024Unset" + "DatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021Create" + "TriggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014tri" + "gger_name\030\002 \001(\t\022\034\n\024create_if_not_exists\030" + "\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 \003(\0132\032.g" + "reptime.v1.NotifyChannel\022:\n\006labels\030\006 \003(\013" + "2*.greptime.v1.CreateTriggerExpr.LabelsE" + "ntry\022D\n\013annotations\030\007 \003(\0132/.greptime.v1." + "CreateTriggerExpr.AnnotationsEntry\022\020\n\010in" + "terval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + "\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\rNotif" + "yChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook\030\002 \001(\0132" + "\033.greptime.v1.WebhookOptionsH\000B\016\n\014channe" + "l_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001 \001(\t\0223\n" + "\004opts\030\002 \003(\0132%.greptime.v1.WebhookOptions" + ".OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + "value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExpr\022\024\n\014ca" + "talog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001(\t\022\026" + "\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyzer\022\013\n\007EN" + "GLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextBackend\022" + "\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021SkippingIndex" + "Type\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.greptime.v1" + "B\003DdlZ5github.com/GreptimeTeam/greptime-" + "proto/go/greptime/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { - false, false, 6693, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 6868, 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, 50, + &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 52, 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, @@ -4969,6 +5020,7 @@ class AlterTableExpr::_Internal { static const ::greptime::v1::DropDefaults& drop_defaults(const AlterTableExpr* msg); static const ::greptime::v1::SetIndexes& set_indexes(const AlterTableExpr* msg); static const ::greptime::v1::UnsetIndexes& unset_indexes(const AlterTableExpr* msg); + static const ::greptime::v1::SetDefaults& set_defaults(const AlterTableExpr* msg); }; const ::greptime::v1::AddColumns& @@ -5015,6 +5067,10 @@ const ::greptime::v1::UnsetIndexes& AlterTableExpr::_Internal::unset_indexes(const AlterTableExpr* msg) { return *msg->_impl_.kind_.unset_indexes_; } +const ::greptime::v1::SetDefaults& +AlterTableExpr::_Internal::set_defaults(const AlterTableExpr* msg) { + return *msg->_impl_.kind_.set_defaults_; +} void AlterTableExpr::set_allocated_add_columns(::greptime::v1::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -5180,6 +5236,21 @@ void AlterTableExpr::set_allocated_unset_indexes(::greptime::v1::UnsetIndexes* u } // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterTableExpr.unset_indexes) } +void AlterTableExpr::set_allocated_set_defaults(::greptime::v1::SetDefaults* set_defaults) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (set_defaults) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(set_defaults); + if (message_arena != submessage_arena) { + set_defaults = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, set_defaults, submessage_arena); + } + set_has_set_defaults(); + _impl_.kind_.set_defaults_ = set_defaults; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterTableExpr.set_defaults) +} AlterTableExpr::AlterTableExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -5279,6 +5350,11 @@ AlterTableExpr::AlterTableExpr(const AlterTableExpr& from) from._internal_unset_indexes()); break; } + case kSetDefaults: { + _this->_internal_mutable_set_defaults()->::greptime::v1::SetDefaults::MergeFrom( + from._internal_set_defaults()); + break; + } case KIND_NOT_SET: { break; } @@ -5405,6 +5481,12 @@ void AlterTableExpr::clear_kind() { } break; } + case kSetDefaults: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.set_defaults_; + } + break; + } case KIND_NOT_SET: { break; } @@ -5550,6 +5632,14 @@ const char* AlterTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext } else goto handle_unusual; continue; + // .greptime.v1.SetDefaults set_defaults = 17; + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 138)) { + ptr = ctx->ParseMessage(_internal_mutable_set_defaults(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5686,6 +5776,13 @@ uint8_t* AlterTableExpr::_InternalSerialize( _Internal::unset_indexes(this).GetCachedSize(), target, stream); } + // .greptime.v1.SetDefaults set_defaults = 17; + if (_internal_has_set_defaults()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(17, _Internal::set_defaults(this), + _Internal::set_defaults(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); @@ -5801,6 +5898,13 @@ size_t AlterTableExpr::ByteSizeLong() const { *_impl_.kind_.unset_indexes_); break; } + // .greptime.v1.SetDefaults set_defaults = 17; + case kSetDefaults: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.set_defaults_); + break; + } case KIND_NOT_SET: { break; } @@ -5888,6 +5992,11 @@ void AlterTableExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : from._internal_unset_indexes()); break; } + case kSetDefaults: { + _this->_internal_mutable_set_defaults()->::greptime::v1::SetDefaults::MergeFrom( + from._internal_set_defaults()); + break; + } case KIND_NOT_SET: { break; } @@ -6508,6 +6617,254 @@ void UnsetIndexes::InternalSwap(UnsetIndexes* other) { // =================================================================== +class SetDefault::_Internal { + public: +}; + +SetDefault::SetDefault(::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.SetDefault) +} +SetDefault::SetDefault(const SetDefault& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SetDefault* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , decltype(_impl_.default_constraint_){} + , /*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()); + } + _impl_.default_constraint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.default_constraint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_default_constraint().empty()) { + _this->_impl_.default_constraint_.Set(from._internal_default_constraint(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.SetDefault) +} + +inline void SetDefault::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , decltype(_impl_.default_constraint_){} + , /*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 + _impl_.default_constraint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.default_constraint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SetDefault::~SetDefault() { + // @@protoc_insertion_point(destructor:greptime.v1.SetDefault) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SetDefault::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.column_name_.Destroy(); + _impl_.default_constraint_.Destroy(); +} + +void SetDefault::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SetDefault::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.SetDefault) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.column_name_.ClearToEmpty(); + _impl_.default_constraint_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetDefault::_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.SetDefault.column_name")); + } else + goto handle_unusual; + continue; + // bytes default_constraint = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_default_constraint(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* SetDefault::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SetDefault) + 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.SetDefault.column_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_column_name(), target); + } + + // bytes default_constraint = 2; + if (!this->_internal_default_constraint().empty()) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_default_constraint(), 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.SetDefault) + return target; +} + +size_t SetDefault::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.SetDefault) + 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()); + } + + // bytes default_constraint = 2; + if (!this->_internal_default_constraint().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_default_constraint()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetDefault::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SetDefault::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetDefault::GetClassData() const { return &_class_data_; } + + +void SetDefault::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.SetDefault) + 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_default_constraint().empty()) { + _this->_internal_set_default_constraint(from._internal_default_constraint()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SetDefault::CopyFrom(const SetDefault& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.SetDefault) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetDefault::IsInitialized() const { + return true; +} + +void SetDefault::InternalSwap(SetDefault* 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::ArenaStringPtr::InternalSwap( + &_impl_.default_constraint_, lhs_arena, + &other->_impl_.default_constraint_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetDefault::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, + file_level_metadata_greptime_2fv1_2fddl_2eproto[12]); +} + +// =================================================================== + class SetIndex::_Internal { public: static const ::greptime::v1::SetFulltext& fulltext(const SetIndex* msg); @@ -6866,7 +7223,7 @@ void SetIndex::InternalSwap(SetIndex* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SetIndex::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[12]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[13]); } // =================================================================== @@ -7229,7 +7586,7 @@ void UnsetIndex::InternalSwap(UnsetIndex* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UnsetIndex::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[13]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[14]); } // =================================================================== @@ -7605,7 +7962,7 @@ void DropTableExpr::InternalSwap(DropTableExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropTableExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[14]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[15]); } // =================================================================== @@ -7619,7 +7976,7 @@ void CreateDatabaseExpr_OptionsEntry_DoNotUse::MergeFrom(const CreateDatabaseExp ::PROTOBUF_NAMESPACE_ID::Metadata CreateDatabaseExpr_OptionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[15]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[16]); } // =================================================================== @@ -7967,7 +8324,7 @@ void CreateDatabaseExpr::InternalSwap(CreateDatabaseExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateDatabaseExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[16]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); } // =================================================================== @@ -8312,7 +8669,7 @@ void TruncateTableExpr::InternalSwap(TruncateTableExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TruncateTableExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); } // =================================================================== @@ -8592,7 +8949,7 @@ void DropDatabaseExpr::InternalSwap(DropDatabaseExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropDatabaseExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[19]); } // =================================================================== @@ -8777,7 +9134,7 @@ void AddColumns::InternalSwap(AddColumns* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumns::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[19]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[20]); } // =================================================================== @@ -8962,7 +9319,192 @@ void DropDefaults::InternalSwap(DropDefaults* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropDefaults::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[20]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[21]); +} + +// =================================================================== + +class SetDefaults::_Internal { + public: +}; + +SetDefaults::SetDefaults(::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.SetDefaults) +} +SetDefaults::SetDefaults(const SetDefaults& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SetDefaults* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.set_defaults_){from._impl_.set_defaults_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.SetDefaults) +} + +inline void SetDefaults::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.set_defaults_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +SetDefaults::~SetDefaults() { + // @@protoc_insertion_point(destructor:greptime.v1.SetDefaults) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SetDefaults::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.set_defaults_.~RepeatedPtrField(); +} + +void SetDefaults::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SetDefaults::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.SetDefaults) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.set_defaults_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetDefaults::_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) { + // repeated .greptime.v1.SetDefault set_defaults = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_set_defaults(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* SetDefaults::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SetDefaults) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .greptime.v1.SetDefault set_defaults = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_set_defaults_size()); i < n; i++) { + const auto& repfield = this->_internal_set_defaults(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.SetDefaults) + return target; +} + +size_t SetDefaults::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.SetDefaults) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .greptime.v1.SetDefault set_defaults = 1; + total_size += 1UL * this->_internal_set_defaults_size(); + for (const auto& msg : this->_impl_.set_defaults_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetDefaults::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SetDefaults::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetDefaults::GetClassData() const { return &_class_data_; } + + +void SetDefaults::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.SetDefaults) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.set_defaults_.MergeFrom(from._impl_.set_defaults_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SetDefaults::CopyFrom(const SetDefaults& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.SetDefaults) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetDefaults::IsInitialized() const { + return true; +} + +void SetDefaults::InternalSwap(SetDefaults* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.set_defaults_.InternalSwap(&other->_impl_.set_defaults_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SetDefaults::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, + file_level_metadata_greptime_2fv1_2fddl_2eproto[22]); } // =================================================================== @@ -9147,7 +9689,7 @@ void DropColumns::InternalSwap(DropColumns* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[21]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[23]); } // =================================================================== @@ -9332,7 +9874,7 @@ void ModifyColumnTypes::InternalSwap(ModifyColumnTypes* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ModifyColumnTypes::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[22]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[24]); } // =================================================================== @@ -9535,7 +10077,7 @@ void RenameTable::InternalSwap(RenameTable* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[23]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[25]); } // =================================================================== @@ -9800,7 +10342,7 @@ void AddColumn::InternalSwap(AddColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[24]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[26]); } // =================================================================== @@ -10085,7 +10627,7 @@ void ModifyColumnType::InternalSwap(ModifyColumnType* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ModifyColumnType::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[25]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[27]); } // =================================================================== @@ -10338,7 +10880,7 @@ void Option::InternalSwap(Option* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Option::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[26]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[28]); } // =================================================================== @@ -10523,7 +11065,7 @@ void SetTableOptions::InternalSwap(SetTableOptions* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SetTableOptions::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[27]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[29]); } // =================================================================== @@ -10713,7 +11255,7 @@ void UnsetTableOptions::InternalSwap(UnsetTableOptions* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UnsetTableOptions::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[28]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[30]); } // =================================================================== @@ -10916,7 +11458,7 @@ void DropColumn::InternalSwap(DropColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[29]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[31]); } // =================================================================== @@ -11094,7 +11636,7 @@ void TableId::InternalSwap(TableId* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[30]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[32]); } // =================================================================== @@ -11272,7 +11814,7 @@ void FlowId::InternalSwap(FlowId* other) { ::PROTOBUF_NAMESPACE_ID::Metadata FlowId::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[31]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[33]); } // =================================================================== @@ -11754,7 +12296,7 @@ void ColumnDef::InternalSwap(ColumnDef* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[32]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[34]); } // =================================================================== @@ -11987,7 +12529,7 @@ void AddColumnLocation::InternalSwap(AddColumnLocation* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumnLocation::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[33]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[35]); } // =================================================================== @@ -12364,7 +12906,7 @@ void SetFulltext::InternalSwap(SetFulltext* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SetFulltext::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]); } // =================================================================== @@ -12567,7 +13109,7 @@ void UnsetFulltext::InternalSwap(UnsetFulltext* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UnsetFulltext::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]); } // =================================================================== @@ -12770,7 +13312,7 @@ void SetInverted::InternalSwap(SetInverted* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SetInverted::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]); } // =================================================================== @@ -12973,7 +13515,7 @@ void UnsetInverted::InternalSwap(UnsetInverted* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UnsetInverted::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[37]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[39]); } // =================================================================== @@ -13299,7 +13841,7 @@ void SetSkipping::InternalSwap(SetSkipping* other) { ::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[38]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[40]); } // =================================================================== @@ -13502,7 +14044,7 @@ void UnsetSkipping::InternalSwap(UnsetSkipping* other) { ::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[39]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[41]); } // =================================================================== @@ -13909,7 +14451,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[40]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[42]); } // =================================================================== @@ -14094,7 +14636,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[41]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[43]); } // =================================================================== @@ -14284,7 +14826,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[42]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[44]); } // =================================================================== @@ -14298,7 +14840,7 @@ void CreateTriggerExpr_LabelsEntry_DoNotUse::MergeFrom(const CreateTriggerExpr_L ::PROTOBUF_NAMESPACE_ID::Metadata CreateTriggerExpr_LabelsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[43]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[45]); } // =================================================================== @@ -14312,7 +14854,7 @@ void CreateTriggerExpr_AnnotationsEntry_DoNotUse::MergeFrom(const CreateTriggerE ::PROTOBUF_NAMESPACE_ID::Metadata CreateTriggerExpr_AnnotationsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[44]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[46]); } // =================================================================== @@ -14838,7 +15380,7 @@ void CreateTriggerExpr::InternalSwap(CreateTriggerExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateTriggerExpr::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[45]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[47]); } // =================================================================== @@ -15137,7 +15679,7 @@ void NotifyChannel::InternalSwap(NotifyChannel* other) { ::PROTOBUF_NAMESPACE_ID::Metadata NotifyChannel::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[46]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[48]); } // =================================================================== @@ -15151,7 +15693,7 @@ void WebhookOptions_OptsEntry_DoNotUse::MergeFrom(const WebhookOptions_OptsEntry ::PROTOBUF_NAMESPACE_ID::Metadata WebhookOptions_OptsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[47]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[49]); } // =================================================================== @@ -15422,7 +15964,7 @@ void WebhookOptions::InternalSwap(WebhookOptions* other) { ::PROTOBUF_NAMESPACE_ID::Metadata WebhookOptions::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[48]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[50]); } // =================================================================== @@ -15702,7 +16244,7 @@ void DropTriggerExpr::InternalSwap(DropTriggerExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropTriggerExpr::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[49]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[51]); } // @@protoc_insertion_point(namespace_scope) @@ -15757,6 +16299,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::UnsetIndexes* Arena::CreateMaybeMessage< ::greptime::v1::UnsetIndexes >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::UnsetIndexes >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::SetDefault* +Arena::CreateMaybeMessage< ::greptime::v1::SetDefault >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::SetDefault >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::SetIndex* Arena::CreateMaybeMessage< ::greptime::v1::SetIndex >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::SetIndex >(arena); @@ -15793,6 +16339,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::DropDefaults* Arena::CreateMaybeMessage< ::greptime::v1::DropDefaults >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::DropDefaults >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::SetDefaults* +Arena::CreateMaybeMessage< ::greptime::v1::SetDefaults >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::SetDefaults >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::DropColumns* Arena::CreateMaybeMessage< ::greptime::v1::DropColumns >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::DropColumns >(arena); diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index 58a8caa..417732f 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -150,6 +150,12 @@ extern RenameTableDefaultTypeInternal _RenameTable_default_instance_; class SetDatabaseOptions; struct SetDatabaseOptionsDefaultTypeInternal; extern SetDatabaseOptionsDefaultTypeInternal _SetDatabaseOptions_default_instance_; +class SetDefault; +struct SetDefaultDefaultTypeInternal; +extern SetDefaultDefaultTypeInternal _SetDefault_default_instance_; +class SetDefaults; +struct SetDefaultsDefaultTypeInternal; +extern SetDefaultsDefaultTypeInternal _SetDefaults_default_instance_; class SetFulltext; struct SetFulltextDefaultTypeInternal; extern SetFulltextDefaultTypeInternal _SetFulltext_default_instance_; @@ -237,6 +243,8 @@ template<> ::greptime::v1::NotifyChannel* Arena::CreateMaybeMessage<::greptime:: template<> ::greptime::v1::Option* Arena::CreateMaybeMessage<::greptime::v1::Option>(Arena*); template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*); template<> ::greptime::v1::SetDatabaseOptions* Arena::CreateMaybeMessage<::greptime::v1::SetDatabaseOptions>(Arena*); +template<> ::greptime::v1::SetDefault* Arena::CreateMaybeMessage<::greptime::v1::SetDefault>(Arena*); +template<> ::greptime::v1::SetDefaults* Arena::CreateMaybeMessage<::greptime::v1::SetDefaults>(Arena*); template<> ::greptime::v1::SetFulltext* Arena::CreateMaybeMessage<::greptime::v1::SetFulltext>(Arena*); template<> ::greptime::v1::SetIndex* Arena::CreateMaybeMessage<::greptime::v1::SetIndex>(Arena*); template<> ::greptime::v1::SetIndexes* Arena::CreateMaybeMessage<::greptime::v1::SetIndexes>(Arena*); @@ -2214,6 +2222,7 @@ class AlterTableExpr final : kDropDefaults = 14, kSetIndexes = 15, kUnsetIndexes = 16, + kSetDefaults = 17, KIND_NOT_SET = 0, }; @@ -2309,6 +2318,7 @@ class AlterTableExpr final : kDropDefaultsFieldNumber = 14, kSetIndexesFieldNumber = 15, kUnsetIndexesFieldNumber = 16, + kSetDefaultsFieldNumber = 17, }; // string catalog_name = 1; void clear_catalog_name(); @@ -2550,6 +2560,24 @@ class AlterTableExpr final : ::greptime::v1::UnsetIndexes* unset_indexes); ::greptime::v1::UnsetIndexes* unsafe_arena_release_unset_indexes(); + // .greptime.v1.SetDefaults set_defaults = 17; + bool has_set_defaults() const; + private: + bool _internal_has_set_defaults() const; + public: + void clear_set_defaults(); + const ::greptime::v1::SetDefaults& set_defaults() const; + PROTOBUF_NODISCARD ::greptime::v1::SetDefaults* release_set_defaults(); + ::greptime::v1::SetDefaults* mutable_set_defaults(); + void set_allocated_set_defaults(::greptime::v1::SetDefaults* set_defaults); + private: + const ::greptime::v1::SetDefaults& _internal_set_defaults() const; + ::greptime::v1::SetDefaults* _internal_mutable_set_defaults(); + public: + void unsafe_arena_set_allocated_set_defaults( + ::greptime::v1::SetDefaults* set_defaults); + ::greptime::v1::SetDefaults* unsafe_arena_release_set_defaults(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.AlterTableExpr) @@ -2566,6 +2594,7 @@ class AlterTableExpr final : void set_has_drop_defaults(); void set_has_set_indexes(); void set_has_unset_indexes(); + void set_has_set_defaults(); inline bool has_kind() const; inline void clear_has_kind(); @@ -2591,6 +2620,7 @@ class AlterTableExpr final : ::greptime::v1::DropDefaults* drop_defaults_; ::greptime::v1::SetIndexes* set_indexes_; ::greptime::v1::UnsetIndexes* unset_indexes_; + ::greptime::v1::SetDefaults* set_defaults_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -3068,6 +3098,175 @@ class UnsetIndexes final : }; // ------------------------------------------------------------------- +class SetDefault final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SetDefault) */ { + public: + inline SetDefault() : SetDefault(nullptr) {} + ~SetDefault() override; + explicit PROTOBUF_CONSTEXPR SetDefault(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetDefault(const SetDefault& from); + SetDefault(SetDefault&& from) noexcept + : SetDefault() { + *this = ::std::move(from); + } + + inline SetDefault& operator=(const SetDefault& from) { + CopyFrom(from); + return *this; + } + inline SetDefault& operator=(SetDefault&& 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 SetDefault& default_instance() { + return *internal_default_instance(); + } + static inline const SetDefault* internal_default_instance() { + return reinterpret_cast( + &_SetDefault_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(SetDefault& a, SetDefault& b) { + a.Swap(&b); + } + inline void Swap(SetDefault* 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(SetDefault* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetDefault* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetDefault& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SetDefault& from) { + SetDefault::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(SetDefault* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.SetDefault"; + } + protected: + explicit SetDefault(::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, + kDefaultConstraintFieldNumber = 2, + }; + // 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: + + // bytes default_constraint = 2; + void clear_default_constraint(); + const std::string& default_constraint() const; + template + void set_default_constraint(ArgT0&& arg0, ArgT... args); + std::string* mutable_default_constraint(); + PROTOBUF_NODISCARD std::string* release_default_constraint(); + void set_allocated_default_constraint(std::string* default_constraint); + private: + const std::string& _internal_default_constraint() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_constraint(const std::string& value); + std::string* _internal_mutable_default_constraint(); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.SetDefault) + 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_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_constraint_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + class SetIndex final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SetIndex) */ { public: @@ -3123,7 +3322,7 @@ class SetIndex final : &_SetIndex_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(SetIndex& a, SetIndex& b) { a.Swap(&b); @@ -3341,7 +3540,7 @@ class UnsetIndex final : &_UnsetIndex_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(UnsetIndex& a, UnsetIndex& b) { a.Swap(&b); @@ -3552,7 +3751,7 @@ class DropTableExpr final : &_DropTableExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(DropTableExpr& a, DropTableExpr& b) { a.Swap(&b); @@ -3796,7 +3995,7 @@ class CreateDatabaseExpr final : &_CreateDatabaseExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(CreateDatabaseExpr& a, CreateDatabaseExpr& b) { a.Swap(&b); @@ -4002,7 +4201,7 @@ class TruncateTableExpr final : &_TruncateTableExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(TruncateTableExpr& a, TruncateTableExpr& b) { a.Swap(&b); @@ -4207,7 +4406,7 @@ class DropDatabaseExpr final : &_DropDatabaseExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(DropDatabaseExpr& a, DropDatabaseExpr& b) { a.Swap(&b); @@ -4387,7 +4586,7 @@ class AddColumns final : &_AddColumns_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(AddColumns& a, AddColumns& b) { a.Swap(&b); @@ -4544,7 +4743,7 @@ class DropDefaults final : &_DropDefaults_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 21; friend void swap(DropDefaults& a, DropDefaults& b) { a.Swap(&b); @@ -4653,6 +4852,163 @@ class DropDefaults final : }; // ------------------------------------------------------------------- +class SetDefaults final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SetDefaults) */ { + public: + inline SetDefaults() : SetDefaults(nullptr) {} + ~SetDefaults() override; + explicit PROTOBUF_CONSTEXPR SetDefaults(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SetDefaults(const SetDefaults& from); + SetDefaults(SetDefaults&& from) noexcept + : SetDefaults() { + *this = ::std::move(from); + } + + inline SetDefaults& operator=(const SetDefaults& from) { + CopyFrom(from); + return *this; + } + inline SetDefaults& operator=(SetDefaults&& 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 SetDefaults& default_instance() { + return *internal_default_instance(); + } + static inline const SetDefaults* internal_default_instance() { + return reinterpret_cast( + &_SetDefaults_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(SetDefaults& a, SetDefaults& b) { + a.Swap(&b); + } + inline void Swap(SetDefaults* 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(SetDefaults* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SetDefaults* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SetDefaults& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SetDefaults& from) { + SetDefaults::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(SetDefaults* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.SetDefaults"; + } + protected: + explicit SetDefaults(::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 { + kSetDefaultsFieldNumber = 1, + }; + // repeated .greptime.v1.SetDefault set_defaults = 1; + int set_defaults_size() const; + private: + int _internal_set_defaults_size() const; + public: + void clear_set_defaults(); + ::greptime::v1::SetDefault* mutable_set_defaults(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SetDefault >* + mutable_set_defaults(); + private: + const ::greptime::v1::SetDefault& _internal_set_defaults(int index) const; + ::greptime::v1::SetDefault* _internal_add_set_defaults(); + public: + const ::greptime::v1::SetDefault& set_defaults(int index) const; + ::greptime::v1::SetDefault* add_set_defaults(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SetDefault >& + set_defaults() const; + + // @@protoc_insertion_point(class_scope:greptime.v1.SetDefaults) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SetDefault > set_defaults_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + class DropColumns final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropColumns) */ { public: @@ -4701,7 +5057,7 @@ class DropColumns final : &_DropColumns_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 23; friend void swap(DropColumns& a, DropColumns& b) { a.Swap(&b); @@ -4858,7 +5214,7 @@ class ModifyColumnTypes final : &_ModifyColumnTypes_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 24; friend void swap(ModifyColumnTypes& a, ModifyColumnTypes& b) { a.Swap(&b); @@ -5015,7 +5371,7 @@ class RenameTable final : &_RenameTable_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 25; friend void swap(RenameTable& a, RenameTable& b) { a.Swap(&b); @@ -5168,7 +5524,7 @@ class AddColumn final : &_AddColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 26; friend void swap(AddColumn& a, AddColumn& b) { a.Swap(&b); @@ -5356,7 +5712,7 @@ class ModifyColumnType final : &_ModifyColumnType_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 27; friend void swap(ModifyColumnType& a, ModifyColumnType& b) { a.Swap(&b); @@ -5540,7 +5896,7 @@ class Option final : &_Option_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 28; friend void swap(Option& a, Option& b) { a.Swap(&b); @@ -5709,7 +6065,7 @@ class SetTableOptions final : &_SetTableOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 29; friend void swap(SetTableOptions& a, SetTableOptions& b) { a.Swap(&b); @@ -5866,7 +6222,7 @@ class UnsetTableOptions final : &_UnsetTableOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 30; friend void swap(UnsetTableOptions& a, UnsetTableOptions& b) { a.Swap(&b); @@ -6029,7 +6385,7 @@ class DropColumn final : &_DropColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 31; friend void swap(DropColumn& a, DropColumn& b) { a.Swap(&b); @@ -6182,7 +6538,7 @@ class TableId final : &_TableId_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 32; friend void swap(TableId& a, TableId& b) { a.Swap(&b); @@ -6330,7 +6686,7 @@ class FlowId final : &_FlowId_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 33; friend void swap(FlowId& a, FlowId& b) { a.Swap(&b); @@ -6478,7 +6834,7 @@ class ColumnDef final : &_ColumnDef_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 34; friend void swap(ColumnDef& a, ColumnDef& b) { a.Swap(&b); @@ -6736,7 +7092,7 @@ class AddColumnLocation final : &_AddColumnLocation_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 35; friend void swap(AddColumnLocation& a, AddColumnLocation& b) { a.Swap(&b); @@ -6930,7 +7286,7 @@ class SetFulltext final : &_SetFulltext_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 36; friend void swap(SetFulltext& a, SetFulltext& b) { a.Swap(&b); @@ -7149,7 +7505,7 @@ class UnsetFulltext final : &_UnsetFulltext_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 37; friend void swap(UnsetFulltext& a, UnsetFulltext& b) { a.Swap(&b); @@ -7302,7 +7658,7 @@ class SetInverted final : &_SetInverted_default_instance_); } static constexpr int kIndexInFileMessages = - 36; + 38; friend void swap(SetInverted& a, SetInverted& b) { a.Swap(&b); @@ -7455,7 +7811,7 @@ class UnsetInverted final : &_UnsetInverted_default_instance_); } static constexpr int kIndexInFileMessages = - 37; + 39; friend void swap(UnsetInverted& a, UnsetInverted& b) { a.Swap(&b); @@ -7608,7 +7964,7 @@ class SetSkipping final : &_SetSkipping_default_instance_); } static constexpr int kIndexInFileMessages = - 38; + 40; friend void swap(SetSkipping& a, SetSkipping& b) { a.Swap(&b); @@ -7805,7 +8161,7 @@ class UnsetSkipping final : &_UnsetSkipping_default_instance_); } static constexpr int kIndexInFileMessages = - 39; + 41; friend void swap(UnsetSkipping& a, UnsetSkipping& b) { a.Swap(&b); @@ -7964,7 +8320,7 @@ class AlterDatabaseExpr final : &_AlterDatabaseExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 40; + 42; friend void swap(AlterDatabaseExpr& a, AlterDatabaseExpr& b) { a.Swap(&b); @@ -8186,7 +8542,7 @@ class SetDatabaseOptions final : &_SetDatabaseOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 41; + 43; friend void swap(SetDatabaseOptions& a, SetDatabaseOptions& b) { a.Swap(&b); @@ -8343,7 +8699,7 @@ class UnsetDatabaseOptions final : &_UnsetDatabaseOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 42; + 44; friend void swap(UnsetDatabaseOptions& a, UnsetDatabaseOptions& b) { a.Swap(&b); @@ -8562,7 +8918,7 @@ class CreateTriggerExpr final : &_CreateTriggerExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 45; + 47; friend void swap(CreateTriggerExpr& a, CreateTriggerExpr& b) { a.Swap(&b); @@ -8843,7 +9199,7 @@ class NotifyChannel final : &_NotifyChannel_default_instance_); } static constexpr int kIndexInFileMessages = - 46; + 48; friend void swap(NotifyChannel& a, NotifyChannel& b) { a.Swap(&b); @@ -9056,7 +9412,7 @@ class WebhookOptions final : &_WebhookOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 48; + 50; friend void swap(WebhookOptions& a, WebhookOptions& b) { a.Swap(&b); @@ -9235,7 +9591,7 @@ class DropTriggerExpr final : &_DropTriggerExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 49; + 51; friend void swap(DropTriggerExpr& a, DropTriggerExpr& b) { a.Swap(&b); @@ -13094,6 +13450,80 @@ inline ::greptime::v1::UnsetIndexes* AlterTableExpr::mutable_unset_indexes() { return _msg; } +// .greptime.v1.SetDefaults set_defaults = 17; +inline bool AlterTableExpr::_internal_has_set_defaults() const { + return kind_case() == kSetDefaults; +} +inline bool AlterTableExpr::has_set_defaults() const { + return _internal_has_set_defaults(); +} +inline void AlterTableExpr::set_has_set_defaults() { + _impl_._oneof_case_[0] = kSetDefaults; +} +inline void AlterTableExpr::clear_set_defaults() { + if (_internal_has_set_defaults()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.set_defaults_; + } + clear_has_kind(); + } +} +inline ::greptime::v1::SetDefaults* AlterTableExpr::release_set_defaults() { + // @@protoc_insertion_point(field_release:greptime.v1.AlterTableExpr.set_defaults) + if (_internal_has_set_defaults()) { + clear_has_kind(); + ::greptime::v1::SetDefaults* temp = _impl_.kind_.set_defaults_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.set_defaults_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::SetDefaults& AlterTableExpr::_internal_set_defaults() const { + return _internal_has_set_defaults() + ? *_impl_.kind_.set_defaults_ + : reinterpret_cast< ::greptime::v1::SetDefaults&>(::greptime::v1::_SetDefaults_default_instance_); +} +inline const ::greptime::v1::SetDefaults& AlterTableExpr::set_defaults() const { + // @@protoc_insertion_point(field_get:greptime.v1.AlterTableExpr.set_defaults) + return _internal_set_defaults(); +} +inline ::greptime::v1::SetDefaults* AlterTableExpr::unsafe_arena_release_set_defaults() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterTableExpr.set_defaults) + if (_internal_has_set_defaults()) { + clear_has_kind(); + ::greptime::v1::SetDefaults* temp = _impl_.kind_.set_defaults_; + _impl_.kind_.set_defaults_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterTableExpr::unsafe_arena_set_allocated_set_defaults(::greptime::v1::SetDefaults* set_defaults) { + clear_kind(); + if (set_defaults) { + set_has_set_defaults(); + _impl_.kind_.set_defaults_ = set_defaults; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterTableExpr.set_defaults) +} +inline ::greptime::v1::SetDefaults* AlterTableExpr::_internal_mutable_set_defaults() { + if (!_internal_has_set_defaults()) { + clear_kind(); + set_has_set_defaults(); + _impl_.kind_.set_defaults_ = CreateMaybeMessage< ::greptime::v1::SetDefaults >(GetArenaForAllocation()); + } + return _impl_.kind_.set_defaults_; +} +inline ::greptime::v1::SetDefaults* AlterTableExpr::mutable_set_defaults() { + ::greptime::v1::SetDefaults* _msg = _internal_mutable_set_defaults(); + // @@protoc_insertion_point(field_mutable:greptime.v1.AlterTableExpr.set_defaults) + return _msg; +} + inline bool AlterTableExpr::has_kind() const { return kind_case() != KIND_NOT_SET; } @@ -13247,6 +13677,110 @@ UnsetIndexes::unset_indexes() const { // ------------------------------------------------------------------- +// SetDefault + +// string column_name = 1; +inline void SetDefault::clear_column_name() { + _impl_.column_name_.ClearToEmpty(); +} +inline const std::string& SetDefault::column_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.SetDefault.column_name) + return _internal_column_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetDefault::set_column_name(ArgT0&& arg0, ArgT... args) { + + _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.SetDefault.column_name) +} +inline std::string* SetDefault::mutable_column_name() { + std::string* _s = _internal_mutable_column_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.SetDefault.column_name) + return _s; +} +inline const std::string& SetDefault::_internal_column_name() const { + return _impl_.column_name_.Get(); +} +inline void SetDefault::_internal_set_column_name(const std::string& value) { + + _impl_.column_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetDefault::_internal_mutable_column_name() { + + return _impl_.column_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetDefault::release_column_name() { + // @@protoc_insertion_point(field_release:greptime.v1.SetDefault.column_name) + return _impl_.column_name_.Release(); +} +inline void SetDefault::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.SetDefault.column_name) +} + +// bytes default_constraint = 2; +inline void SetDefault::clear_default_constraint() { + _impl_.default_constraint_.ClearToEmpty(); +} +inline const std::string& SetDefault::default_constraint() const { + // @@protoc_insertion_point(field_get:greptime.v1.SetDefault.default_constraint) + return _internal_default_constraint(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SetDefault::set_default_constraint(ArgT0&& arg0, ArgT... args) { + + _impl_.default_constraint_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.SetDefault.default_constraint) +} +inline std::string* SetDefault::mutable_default_constraint() { + std::string* _s = _internal_mutable_default_constraint(); + // @@protoc_insertion_point(field_mutable:greptime.v1.SetDefault.default_constraint) + return _s; +} +inline const std::string& SetDefault::_internal_default_constraint() const { + return _impl_.default_constraint_.Get(); +} +inline void SetDefault::_internal_set_default_constraint(const std::string& value) { + + _impl_.default_constraint_.Set(value, GetArenaForAllocation()); +} +inline std::string* SetDefault::_internal_mutable_default_constraint() { + + return _impl_.default_constraint_.Mutable(GetArenaForAllocation()); +} +inline std::string* SetDefault::release_default_constraint() { + // @@protoc_insertion_point(field_release:greptime.v1.SetDefault.default_constraint) + return _impl_.default_constraint_.Release(); +} +inline void SetDefault::set_allocated_default_constraint(std::string* default_constraint) { + if (default_constraint != nullptr) { + + } else { + + } + _impl_.default_constraint_.SetAllocated(default_constraint, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.default_constraint_.IsDefault()) { + _impl_.default_constraint_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.SetDefault.default_constraint) +} + +// ------------------------------------------------------------------- + // SetIndex // .greptime.v1.SetFulltext fulltext = 1; @@ -14592,6 +15126,50 @@ DropDefaults::drop_defaults() const { // ------------------------------------------------------------------- +// SetDefaults + +// repeated .greptime.v1.SetDefault set_defaults = 1; +inline int SetDefaults::_internal_set_defaults_size() const { + return _impl_.set_defaults_.size(); +} +inline int SetDefaults::set_defaults_size() const { + return _internal_set_defaults_size(); +} +inline void SetDefaults::clear_set_defaults() { + _impl_.set_defaults_.Clear(); +} +inline ::greptime::v1::SetDefault* SetDefaults::mutable_set_defaults(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.SetDefaults.set_defaults) + return _impl_.set_defaults_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SetDefault >* +SetDefaults::mutable_set_defaults() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.SetDefaults.set_defaults) + return &_impl_.set_defaults_; +} +inline const ::greptime::v1::SetDefault& SetDefaults::_internal_set_defaults(int index) const { + return _impl_.set_defaults_.Get(index); +} +inline const ::greptime::v1::SetDefault& SetDefaults::set_defaults(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.SetDefaults.set_defaults) + return _internal_set_defaults(index); +} +inline ::greptime::v1::SetDefault* SetDefaults::_internal_add_set_defaults() { + return _impl_.set_defaults_.Add(); +} +inline ::greptime::v1::SetDefault* SetDefaults::add_set_defaults() { + ::greptime::v1::SetDefault* _add = _internal_add_set_defaults(); + // @@protoc_insertion_point(field_add:greptime.v1.SetDefaults.set_defaults) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SetDefault >& +SetDefaults::set_defaults() const { + // @@protoc_insertion_point(field_list:greptime.v1.SetDefaults.set_defaults) + return _impl_.set_defaults_; +} + +// ------------------------------------------------------------------- + // DropColumns // repeated .greptime.v1.DropColumn drop_columns = 1; @@ -17533,6 +18111,10 @@ inline void DropTriggerExpr::set_drop_if_exists(bool value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc index cb40af0..09884d2 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -707,6 +707,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.schema_version_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.kind_), ~0u, // no _has_bits_ @@ -846,21 +847,21 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 166, -1, -1, sizeof(::greptime::v1::region::CloseRequest)}, { 173, -1, -1, sizeof(::greptime::v1::region::AlterRequests)}, { 180, -1, -1, sizeof(::greptime::v1::region::AlterRequest)}, - { 199, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, - { 206, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, - { 213, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, - { 221, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, - { 228, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, - { 235, -1, -1, sizeof(::greptime::v1::region::Regular)}, - { 241, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, - { 248, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, - { 258, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, - { 265, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, - { 273, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)}, - { 282, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)}, - { 289, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)}, - { 297, -1, -1, sizeof(::greptime::v1::region::SyncRequest)}, - { 307, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)}, + { 200, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, + { 207, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, + { 214, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, + { 222, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, + { 229, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, + { 236, -1, -1, sizeof(::greptime::v1::region::Regular)}, + { 242, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, + { 249, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, + { 259, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, + { 266, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, + { 274, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)}, + { 283, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)}, + { 290, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)}, + { 298, -1, -1, sizeof(::greptime::v1::region::SyncRequest)}, + { 308, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -968,7 +969,7 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n" "\tregion_id\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010req" "uests\030\001 \003(\0132 .greptime.v1.region.AlterRe" - "quest\"\336\004\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(" + "quest\"\220\005\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(" "\004\0225\n\013add_columns\030\002 \001(\0132\036.greptime.v1.reg" "ion.AddColumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037" ".greptime.v1.region.DropColumnsH\000\022=\n\023mod" @@ -982,40 +983,42 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P "efaults\030\014 \001(\0132\031.greptime.v1.DropDefaults" "H\000\022.\n\013set_indexes\030\r \001(\0132\027.greptime.v1.Se" "tIndexesH\000\0222\n\runset_indexes\030\016 \001(\0132\031.grep" - "time.v1.UnsetIndexesH\000\022\026\n\016schema_version" - "\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add_colu" - "mns\030\001 \003(\0132\035.greptime.v1.region.AddColumn" - "\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003(\0132\036." - "greptime.v1.region.DropColumn\"v\n\tAddColu" - "mn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.reg" - "ion.RegionColumnDef\0220\n\010location\030\003 \001(\0132\036." - "greptime.v1.AddColumnLocation\"\032\n\nDropCol" - "umn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\treg" - "ion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022" - "\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016CompactReque" - "st\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033" - ".greptime.v1.region.RegularH\000\0229\n\rstrict_" - "window\030\003 \001(\0132 .greptime.v1.region.Strict" - "WindowH\000B\t\n\007options\"$\n\017TruncateRequest\022\021" - "\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\n" - "column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef" - "\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInsertRequest" - "\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_ipc\030\002 \001(\0132\025" - ".greptime.v1.ArrowIpcH\000B\006\n\004body\"1\n\020MitoM" - "anifestInfo\022\035\n\025data_manifest_version\030\001 \001" - "(\004\"V\n\022MetricManifestInfo\022\035\n\025data_manifes" - "t_version\030\001 \001(\004\022!\n\031metadata_manifest_ver" - "sion\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregion_id\030" - "\001 \001(\004\022B\n\022mito_manifest_info\030\002 \001(\0132$.grep" - "time.v1.region.MitoManifestInfoH\000\022F\n\024met" - "ric_manifest_info\030\003 \001(\0132&.greptime.v1.re" - "gion.MetricManifestInfoH\000B\017\n\rmanifest_in" - "fo\")\n\023ListMetadataRequest\022\022\n\nregion_ids\030" - "\001 \003(\0042Y\n\006Region\022O\n\006Handle\022!.greptime.v1." - "region.RegionRequest\032\".greptime.v1.regio" - "n.RegionResponseB]\n\025io.greptime.v1.regio" - "nB\006ServerZ_impl_.kind_.unset_indexes_; } +const ::greptime::v1::SetDefaults& +AlterRequest::_Internal::set_defaults(const AlterRequest* msg) { + return *msg->_impl_.kind_.set_defaults_; +} void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -6011,6 +6019,30 @@ void AlterRequest::clear_unset_indexes() { clear_has_kind(); } } +void AlterRequest::set_allocated_set_defaults(::greptime::v1::SetDefaults* set_defaults) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (set_defaults) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(set_defaults)); + if (message_arena != submessage_arena) { + set_defaults = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, set_defaults, submessage_arena); + } + set_has_set_defaults(); + _impl_.kind_.set_defaults_ = set_defaults; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.set_defaults) +} +void AlterRequest::clear_set_defaults() { + if (_internal_has_set_defaults()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.set_defaults_; + } + clear_has_kind(); + } +} AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -6083,6 +6115,11 @@ AlterRequest::AlterRequest(const AlterRequest& from) from._internal_unset_indexes()); break; } + case kSetDefaults: { + _this->_internal_mutable_set_defaults()->::greptime::v1::SetDefaults::MergeFrom( + from._internal_set_defaults()); + break; + } case KIND_NOT_SET: { break; } @@ -6187,6 +6224,12 @@ void AlterRequest::clear_kind() { } break; } + case kSetDefaults: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.set_defaults_; + } + break; + } case KIND_NOT_SET: { break; } @@ -6310,6 +6353,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // .greptime.v1.SetDefaults set_defaults = 15; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { + ptr = ctx->ParseMessage(_internal_mutable_set_defaults(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -6421,6 +6472,13 @@ uint8_t* AlterRequest::_InternalSerialize( _Internal::unset_indexes(this).GetCachedSize(), target, stream); } + // .greptime.v1.SetDefaults set_defaults = 15; + if (_internal_has_set_defaults()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(15, _Internal::set_defaults(this), + _Internal::set_defaults(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); @@ -6518,6 +6576,13 @@ size_t AlterRequest::ByteSizeLong() const { *_impl_.kind_.unset_indexes_); break; } + // .greptime.v1.SetDefaults set_defaults = 15; + case kSetDefaults: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.set_defaults_); + break; + } case KIND_NOT_SET: { break; } @@ -6597,6 +6662,11 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P from._internal_unset_indexes()); break; } + case kSetDefaults: { + _this->_internal_mutable_set_defaults()->::greptime::v1::SetDefaults::MergeFrom( + from._internal_set_defaults()); + break; + } case KIND_NOT_SET: { break; } diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h index 3020569..da49a9b 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -3371,6 +3371,7 @@ class AlterRequest final : kDropDefaults = 12, kSetIndexes = 13, kUnsetIndexes = 14, + kSetDefaults = 15, KIND_NOT_SET = 0, }; @@ -3464,6 +3465,7 @@ class AlterRequest final : kDropDefaultsFieldNumber = 12, kSetIndexesFieldNumber = 13, kUnsetIndexesFieldNumber = 14, + kSetDefaultsFieldNumber = 15, }; // uint64 region_id = 1; void clear_region_id(); @@ -3663,6 +3665,24 @@ class AlterRequest final : ::greptime::v1::UnsetIndexes* unset_indexes); ::greptime::v1::UnsetIndexes* unsafe_arena_release_unset_indexes(); + // .greptime.v1.SetDefaults set_defaults = 15; + bool has_set_defaults() const; + private: + bool _internal_has_set_defaults() const; + public: + void clear_set_defaults(); + const ::greptime::v1::SetDefaults& set_defaults() const; + PROTOBUF_NODISCARD ::greptime::v1::SetDefaults* release_set_defaults(); + ::greptime::v1::SetDefaults* mutable_set_defaults(); + void set_allocated_set_defaults(::greptime::v1::SetDefaults* set_defaults); + private: + const ::greptime::v1::SetDefaults& _internal_set_defaults() const; + ::greptime::v1::SetDefaults* _internal_mutable_set_defaults(); + public: + void unsafe_arena_set_allocated_set_defaults( + ::greptime::v1::SetDefaults* set_defaults); + ::greptime::v1::SetDefaults* unsafe_arena_release_set_defaults(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest) @@ -3678,6 +3698,7 @@ class AlterRequest final : void set_has_drop_defaults(); void set_has_set_indexes(); void set_has_unset_indexes(); + void set_has_set_defaults(); inline bool has_kind() const; inline void clear_has_kind(); @@ -3701,6 +3722,7 @@ class AlterRequest final : ::greptime::v1::DropDefaults* drop_defaults_; ::greptime::v1::SetIndexes* set_indexes_; ::greptime::v1::UnsetIndexes* unset_indexes_; + ::greptime::v1::SetDefaults* set_defaults_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -9572,6 +9594,72 @@ inline ::greptime::v1::UnsetIndexes* AlterRequest::mutable_unset_indexes() { return _msg; } +// .greptime.v1.SetDefaults set_defaults = 15; +inline bool AlterRequest::_internal_has_set_defaults() const { + return kind_case() == kSetDefaults; +} +inline bool AlterRequest::has_set_defaults() const { + return _internal_has_set_defaults(); +} +inline void AlterRequest::set_has_set_defaults() { + _impl_._oneof_case_[0] = kSetDefaults; +} +inline ::greptime::v1::SetDefaults* AlterRequest::release_set_defaults() { + // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.set_defaults) + if (_internal_has_set_defaults()) { + clear_has_kind(); + ::greptime::v1::SetDefaults* temp = _impl_.kind_.set_defaults_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.set_defaults_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::SetDefaults& AlterRequest::_internal_set_defaults() const { + return _internal_has_set_defaults() + ? *_impl_.kind_.set_defaults_ + : reinterpret_cast< ::greptime::v1::SetDefaults&>(::greptime::v1::_SetDefaults_default_instance_); +} +inline const ::greptime::v1::SetDefaults& AlterRequest::set_defaults() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.set_defaults) + return _internal_set_defaults(); +} +inline ::greptime::v1::SetDefaults* AlterRequest::unsafe_arena_release_set_defaults() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.set_defaults) + if (_internal_has_set_defaults()) { + clear_has_kind(); + ::greptime::v1::SetDefaults* temp = _impl_.kind_.set_defaults_; + _impl_.kind_.set_defaults_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterRequest::unsafe_arena_set_allocated_set_defaults(::greptime::v1::SetDefaults* set_defaults) { + clear_kind(); + if (set_defaults) { + set_has_set_defaults(); + _impl_.kind_.set_defaults_ = set_defaults; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.set_defaults) +} +inline ::greptime::v1::SetDefaults* AlterRequest::_internal_mutable_set_defaults() { + if (!_internal_has_set_defaults()) { + clear_kind(); + set_has_set_defaults(); + _impl_.kind_.set_defaults_ = CreateMaybeMessage< ::greptime::v1::SetDefaults >(GetArenaForAllocation()); + } + return _impl_.kind_.set_defaults_; +} +inline ::greptime::v1::SetDefaults* AlterRequest::mutable_set_defaults() { + ::greptime::v1::SetDefaults* _msg = _internal_mutable_set_defaults(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.set_defaults) + return _msg; +} + // uint64 schema_version = 4; inline void AlterRequest::clear_schema_version() { _impl_.schema_version_ = uint64_t{0u}; diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index a0380a0..fe07969 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -951,8 +951,12 @@ type AlterTableExpr struct { // *AlterTableExpr_SetIndex // *AlterTableExpr_UnsetIndex // *AlterTableExpr_DropDefaults +<<<<<<< HEAD // *AlterTableExpr_SetIndexes // *AlterTableExpr_UnsetIndexes +======= + // *AlterTableExpr_SetDefaults +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) Kind isAlterTableExpr_Kind `protobuf_oneof:"kind"` } @@ -1079,6 +1083,7 @@ func (x *AlterTableExpr) GetDropDefaults() *DropDefaults { return nil } +<<<<<<< HEAD func (x *AlterTableExpr) GetSetIndexes() *SetIndexes { if x, ok := x.GetKind().(*AlterTableExpr_SetIndexes); ok { return x.SetIndexes @@ -1089,6 +1094,11 @@ func (x *AlterTableExpr) GetSetIndexes() *SetIndexes { func (x *AlterTableExpr) GetUnsetIndexes() *UnsetIndexes { if x, ok := x.GetKind().(*AlterTableExpr_UnsetIndexes); ok { return x.UnsetIndexes +======= +func (x *AlterTableExpr) GetSetDefaults() *SetDefaults { + if x, ok := x.GetKind().(*AlterTableExpr_SetDefaults); ok { + return x.SetDefaults +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } return nil } @@ -1135,12 +1145,17 @@ type AlterTableExpr_DropDefaults struct { DropDefaults *DropDefaults `protobuf:"bytes,14,opt,name=drop_defaults,json=dropDefaults,proto3,oneof"` } +<<<<<<< HEAD type AlterTableExpr_SetIndexes struct { SetIndexes *SetIndexes `protobuf:"bytes,15,opt,name=set_indexes,json=setIndexes,proto3,oneof"` } type AlterTableExpr_UnsetIndexes struct { UnsetIndexes *UnsetIndexes `protobuf:"bytes,16,opt,name=unset_indexes,json=unsetIndexes,proto3,oneof"` +======= +type AlterTableExpr_SetDefaults struct { + SetDefaults *SetDefaults `protobuf:"bytes,15,opt,name=set_defaults,json=setDefaults,proto3,oneof"` +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } func (*AlterTableExpr_AddColumns) isAlterTableExpr_Kind() {} @@ -1161,9 +1176,13 @@ func (*AlterTableExpr_UnsetIndex) isAlterTableExpr_Kind() {} func (*AlterTableExpr_DropDefaults) isAlterTableExpr_Kind() {} +<<<<<<< HEAD func (*AlterTableExpr_SetIndexes) isAlterTableExpr_Kind() {} func (*AlterTableExpr_UnsetIndexes) isAlterTableExpr_Kind() {} +======= +func (*AlterTableExpr_SetDefaults) isAlterTableExpr_Kind() {} +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) type DropDefault struct { state protoimpl.MessageState @@ -1212,16 +1231,29 @@ func (x *DropDefault) GetColumnName() string { return "" } +<<<<<<< HEAD type SetIndexes struct { +======= +type SetDefault struct { +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields +<<<<<<< HEAD SetIndexes []*SetIndex `protobuf:"bytes,1,rep,name=set_indexes,json=setIndexes,proto3" json:"set_indexes,omitempty"` } func (x *SetIndexes) Reset() { *x = SetIndexes{} +======= + ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` + DefaultConstraint []byte `protobuf:"bytes,2,opt,name=default_constraint,json=defaultConstraint,proto3" json:"default_constraint,omitempty"` +} + +func (x *SetDefault) Reset() { + *x = SetDefault{} +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_ddl_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1229,6 +1261,7 @@ func (x *SetIndexes) Reset() { } } +<<<<<<< HEAD func (x *SetIndexes) String() string { return protoimpl.X.MessageStringOf(x) } @@ -1236,6 +1269,15 @@ func (x *SetIndexes) String() string { func (*SetIndexes) ProtoMessage() {} func (x *SetIndexes) ProtoReflect() protoreflect.Message { +======= +func (x *SetDefault) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetDefault) ProtoMessage() {} + +func (x *SetDefault) ProtoReflect() protoreflect.Message { +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) mi := &file_greptime_v1_ddl_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1247,6 +1289,7 @@ func (x *SetIndexes) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } +<<<<<<< HEAD // Deprecated: Use SetIndexes.ProtoReflect.Descriptor instead. func (*SetIndexes) Descriptor() ([]byte, []int) { return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{8} @@ -1302,6 +1345,23 @@ func (*UnsetIndexes) Descriptor() ([]byte, []int) { func (x *UnsetIndexes) GetUnsetIndexes() []*UnsetIndex { if x != nil { return x.UnsetIndexes +======= +// Deprecated: Use SetDefault.ProtoReflect.Descriptor instead. +func (*SetDefault) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{8} +} + +func (x *SetDefault) GetColumnName() string { + if x != nil { + return x.ColumnName + } + return "" +} + +func (x *SetDefault) GetDefaultConstraint() []byte { + if x != nil { + return x.DefaultConstraint +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } return nil } @@ -1322,7 +1382,11 @@ type SetIndex struct { func (x *SetIndex) Reset() { *x = SetIndex{} if protoimpl.UnsafeEnabled { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[10] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[9] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1335,7 +1399,11 @@ func (x *SetIndex) String() string { func (*SetIndex) ProtoMessage() {} func (x *SetIndex) ProtoReflect() protoreflect.Message { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[10] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[9] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1348,7 +1416,11 @@ func (x *SetIndex) ProtoReflect() protoreflect.Message { // Deprecated: Use SetIndex.ProtoReflect.Descriptor instead. func (*SetIndex) Descriptor() ([]byte, []int) { +<<<<<<< HEAD return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10} +======= + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9} +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } func (m *SetIndex) GetOptions() isSetIndex_Options { @@ -1417,7 +1489,11 @@ type UnsetIndex struct { func (x *UnsetIndex) Reset() { *x = UnsetIndex{} if protoimpl.UnsafeEnabled { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[11] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[10] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1430,7 +1506,11 @@ func (x *UnsetIndex) String() string { func (*UnsetIndex) ProtoMessage() {} func (x *UnsetIndex) ProtoReflect() protoreflect.Message { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[11] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[10] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1443,7 +1523,11 @@ func (x *UnsetIndex) ProtoReflect() protoreflect.Message { // Deprecated: Use UnsetIndex.ProtoReflect.Descriptor instead. func (*UnsetIndex) Descriptor() ([]byte, []int) { +<<<<<<< HEAD return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11} +======= + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10} +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } func (m *UnsetIndex) GetOptions() isUnsetIndex_Options { @@ -1511,7 +1595,11 @@ type DropTableExpr struct { func (x *DropTableExpr) Reset() { *x = DropTableExpr{} if protoimpl.UnsafeEnabled { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[12] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[11] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1524,7 +1612,11 @@ func (x *DropTableExpr) String() string { func (*DropTableExpr) ProtoMessage() {} func (x *DropTableExpr) ProtoReflect() protoreflect.Message { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[12] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[11] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1537,7 +1629,11 @@ func (x *DropTableExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use DropTableExpr.ProtoReflect.Descriptor instead. func (*DropTableExpr) Descriptor() ([]byte, []int) { +<<<<<<< HEAD return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12} +======= + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11} +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } func (x *DropTableExpr) GetCatalogName() string { @@ -1589,7 +1685,11 @@ type CreateDatabaseExpr struct { func (x *CreateDatabaseExpr) Reset() { *x = CreateDatabaseExpr{} if protoimpl.UnsafeEnabled { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[13] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[12] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1602,7 +1702,11 @@ func (x *CreateDatabaseExpr) String() string { func (*CreateDatabaseExpr) ProtoMessage() {} func (x *CreateDatabaseExpr) ProtoReflect() protoreflect.Message { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[13] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[12] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1615,7 +1719,11 @@ func (x *CreateDatabaseExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateDatabaseExpr.ProtoReflect.Descriptor instead. func (*CreateDatabaseExpr) Descriptor() ([]byte, []int) { +<<<<<<< HEAD return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13} +======= + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12} +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } func (x *CreateDatabaseExpr) GetCatalogName() string { @@ -1660,7 +1768,11 @@ type TruncateTableExpr struct { func (x *TruncateTableExpr) Reset() { *x = TruncateTableExpr{} if protoimpl.UnsafeEnabled { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[14] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[13] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1673,7 +1785,11 @@ func (x *TruncateTableExpr) String() string { func (*TruncateTableExpr) ProtoMessage() {} func (x *TruncateTableExpr) ProtoReflect() protoreflect.Message { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[14] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[13] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1686,7 +1802,11 @@ func (x *TruncateTableExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use TruncateTableExpr.ProtoReflect.Descriptor instead. func (*TruncateTableExpr) Descriptor() ([]byte, []int) { +<<<<<<< HEAD return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} +======= + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13} +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } func (x *TruncateTableExpr) GetCatalogName() string { @@ -1730,7 +1850,11 @@ type DropDatabaseExpr struct { func (x *DropDatabaseExpr) Reset() { *x = DropDatabaseExpr{} if protoimpl.UnsafeEnabled { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[15] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[14] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1743,7 +1867,11 @@ func (x *DropDatabaseExpr) String() string { func (*DropDatabaseExpr) ProtoMessage() {} func (x *DropDatabaseExpr) ProtoReflect() protoreflect.Message { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[15] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[14] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1756,7 +1884,11 @@ func (x *DropDatabaseExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use DropDatabaseExpr.ProtoReflect.Descriptor instead. func (*DropDatabaseExpr) Descriptor() ([]byte, []int) { +<<<<<<< HEAD return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} +======= + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } func (x *DropDatabaseExpr) GetCatalogName() string { @@ -1791,7 +1923,11 @@ type AddColumns struct { func (x *AddColumns) Reset() { *x = AddColumns{} if protoimpl.UnsafeEnabled { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[16] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[15] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1804,7 +1940,11 @@ func (x *AddColumns) String() string { func (*AddColumns) ProtoMessage() {} func (x *AddColumns) ProtoReflect() protoreflect.Message { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[16] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[15] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1817,7 +1957,11 @@ func (x *AddColumns) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumns.ProtoReflect.Descriptor instead. func (*AddColumns) Descriptor() ([]byte, []int) { +<<<<<<< HEAD return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} +======= + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } func (x *AddColumns) GetAddColumns() []*AddColumn { @@ -1838,7 +1982,11 @@ type DropDefaults struct { func (x *DropDefaults) Reset() { *x = DropDefaults{} if protoimpl.UnsafeEnabled { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[17] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[16] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1851,7 +1999,11 @@ func (x *DropDefaults) String() string { func (*DropDefaults) ProtoMessage() {} func (x *DropDefaults) ProtoReflect() protoreflect.Message { +<<<<<<< HEAD mi := &file_greptime_v1_ddl_proto_msgTypes[17] +======= + mi := &file_greptime_v1_ddl_proto_msgTypes[16] +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1864,7 +2016,11 @@ func (x *DropDefaults) ProtoReflect() protoreflect.Message { // Deprecated: Use DropDefaults.ProtoReflect.Descriptor instead. func (*DropDefaults) Descriptor() ([]byte, []int) { +<<<<<<< HEAD return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17} +======= + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } func (x *DropDefaults) GetDropDefaults() []*DropDefault { @@ -1874,6 +2030,53 @@ func (x *DropDefaults) GetDropDefaults() []*DropDefault { return nil } +type SetDefaults struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SetDefaults []*SetDefault `protobuf:"bytes,1,rep,name=set_defaults,json=setDefaults,proto3" json:"set_defaults,omitempty"` +} + +func (x *SetDefaults) Reset() { + *x = SetDefaults{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetDefaults) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetDefaults) ProtoMessage() {} + +func (x *SetDefaults) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[17] + 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 SetDefaults.ProtoReflect.Descriptor instead. +func (*SetDefaults) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17} +} + +func (x *SetDefaults) GetSetDefaults() []*SetDefault { + if x != nil { + return x.SetDefaults + } + return nil +} + type DropColumns struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3613,7 +3816,11 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, +<<<<<<< HEAD 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd7, 0x06, 0x0a, 0x0e, 0x41, 0x6c, +======= + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x98, 0x06, 0x0a, 0x0e, 0x41, 0x6c, +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) 0x74, 0x65, 0x72, 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, @@ -3658,6 +3865,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x48, 0x00, 0x52, +<<<<<<< HEAD 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x0b, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, @@ -3994,6 +4202,341 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 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, +======= + 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x3d, 0x0a, + 0x0c, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x0f, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x48, 0x00, 0x52, + 0x0b, 0x73, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x06, 0x0a, 0x04, + 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x2e, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x66, 0x61, + 0x75, 0x6c, 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, 0x5c, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 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, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, + 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, + 0x6e, 0x74, 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, 0x66, + 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x12, 0x36, 0x0a, 0x08, 0x69, 0x6e, 0x76, 0x65, 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, 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, 0x4d, 0x0a, 0x0c, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x52, 0x0b, 0x73, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 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, 0xaa, 0x02, 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, 0x12, 0x36, 0x0a, 0x07, 0x62, 0x61, + 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, + 0x78, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x65, + 0x6e, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, + 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, + 0x72, 0x69, 0x74, 0x79, 0x12, 0x2e, 0x0a, 0x13, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x5f, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x01, 0x52, 0x11, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, + 0x52, 0x61, 0x74, 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, 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, 0xe8, 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, 0x12, 0x2e, 0x0a, 0x13, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, + 0x52, 0x11, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x52, + 0x61, 0x74, 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, + 0x22, 0x82, 0x04, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, + 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, + 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, + 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x69, + 0x67, 0x67, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, + 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, + 0x03, 0x73, 0x71, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, + 0x36, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x08, 0x63, + 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x12, 0x42, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, + 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x51, 0x0a, 0x0b, 0x61, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, + 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, + 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6c, 0x0a, 0x0d, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x43, + 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x77, 0x65, + 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, + 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, + 0x6f, 0x6f, 0x6b, 0x42, 0x0e, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x0e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x39, 0x0a, 0x04, 0x6f, 0x70, 0x74, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6f, + 0x70, 0x74, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x7d, 0x0a, 0x0f, + 0x44, 0x72, 0x6f, 0x70, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, + 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, + 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 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, 0x2a, 0x24, 0x0a, 0x08, 0x41, + 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, 0x4c, 0x49, + 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x53, 0x45, 0x10, + 0x01, 0x2a, 0x29, 0x0a, 0x0f, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x42, 0x61, 0x63, + 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x41, 0x4e, 0x54, 0x49, 0x56, 0x59, 0x10, + 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x4c, 0x4f, 0x4f, 0x4d, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x11, + 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x42, 0x4c, 0x4f, 0x4f, 0x4d, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, + 0x52, 0x10, 0x00, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, + 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } var ( @@ -4023,6 +4566,7 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*CreateTableExpr)(nil), // 9: greptime.v1.CreateTableExpr (*AlterTableExpr)(nil), // 10: greptime.v1.AlterTableExpr (*DropDefault)(nil), // 11: greptime.v1.DropDefault +<<<<<<< HEAD (*SetIndexes)(nil), // 12: greptime.v1.SetIndexes (*UnsetIndexes)(nil), // 13: greptime.v1.UnsetIndexes (*SetIndex)(nil), // 14: greptime.v1.SetIndex @@ -4033,6 +4577,18 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*DropDatabaseExpr)(nil), // 19: greptime.v1.DropDatabaseExpr (*AddColumns)(nil), // 20: greptime.v1.AddColumns (*DropDefaults)(nil), // 21: greptime.v1.DropDefaults +======= + (*SetDefault)(nil), // 12: greptime.v1.SetDefault + (*SetIndex)(nil), // 13: greptime.v1.SetIndex + (*UnsetIndex)(nil), // 14: greptime.v1.UnsetIndex + (*DropTableExpr)(nil), // 15: greptime.v1.DropTableExpr + (*CreateDatabaseExpr)(nil), // 16: greptime.v1.CreateDatabaseExpr + (*TruncateTableExpr)(nil), // 17: greptime.v1.TruncateTableExpr + (*DropDatabaseExpr)(nil), // 18: greptime.v1.DropDatabaseExpr + (*AddColumns)(nil), // 19: greptime.v1.AddColumns + (*DropDefaults)(nil), // 20: greptime.v1.DropDefaults + (*SetDefaults)(nil), // 21: greptime.v1.SetDefaults +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) (*DropColumns)(nil), // 22: greptime.v1.DropColumns (*ModifyColumnTypes)(nil), // 23: greptime.v1.ModifyColumnTypes (*RenameTable)(nil), // 24: greptime.v1.RenameTable @@ -4073,11 +4629,19 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*ColumnOptions)(nil), // 59: greptime.v1.ColumnOptions } var file_greptime_v1_ddl_proto_depIdxs = []int32{ +<<<<<<< HEAD 17, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr 9, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr 10, // 2: greptime.v1.DdlRequest.alter_table:type_name -> greptime.v1.AlterTableExpr 16, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr 18, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr +======= + 16, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr + 9, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr + 10, // 2: greptime.v1.DdlRequest.alter_table:type_name -> greptime.v1.AlterTableExpr + 15, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr + 17, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) 5, // 5: greptime.v1.DdlRequest.create_flow:type_name -> greptime.v1.CreateFlowExpr 6, // 6: greptime.v1.DdlRequest.drop_flow:type_name -> greptime.v1.DropFlowExpr 7, // 7: greptime.v1.DdlRequest.create_view:type_name -> greptime.v1.CreateViewExpr @@ -4093,12 +4657,17 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 33, // 17: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef 49, // 18: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry 31, // 19: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId +<<<<<<< HEAD 20, // 20: greptime.v1.AlterTableExpr.add_columns:type_name -> greptime.v1.AddColumns +======= + 19, // 20: greptime.v1.AlterTableExpr.add_columns:type_name -> greptime.v1.AddColumns +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) 22, // 21: greptime.v1.AlterTableExpr.drop_columns:type_name -> greptime.v1.DropColumns 24, // 22: greptime.v1.AlterTableExpr.rename_table:type_name -> greptime.v1.RenameTable 23, // 23: greptime.v1.AlterTableExpr.modify_column_types:type_name -> greptime.v1.ModifyColumnTypes 28, // 24: greptime.v1.AlterTableExpr.set_table_options:type_name -> greptime.v1.SetTableOptions 29, // 25: greptime.v1.AlterTableExpr.unset_table_options:type_name -> greptime.v1.UnsetTableOptions +<<<<<<< HEAD 14, // 26: greptime.v1.AlterTableExpr.set_index:type_name -> greptime.v1.SetIndex 15, // 27: greptime.v1.AlterTableExpr.unset_index:type_name -> greptime.v1.UnsetIndex 21, // 28: greptime.v1.AlterTableExpr.drop_defaults:type_name -> greptime.v1.DropDefaults @@ -4145,6 +4714,52 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 67, // [67:67] is the sub-list for extension type_name 67, // [67:67] is the sub-list for extension extendee 0, // [0:67] is the sub-list for field type_name +======= + 13, // 26: greptime.v1.AlterTableExpr.set_index:type_name -> greptime.v1.SetIndex + 14, // 27: greptime.v1.AlterTableExpr.unset_index:type_name -> greptime.v1.UnsetIndex + 20, // 28: greptime.v1.AlterTableExpr.drop_defaults:type_name -> greptime.v1.DropDefaults + 21, // 29: greptime.v1.AlterTableExpr.set_defaults:type_name -> greptime.v1.SetDefaults + 35, // 30: greptime.v1.SetIndex.fulltext:type_name -> greptime.v1.SetFulltext + 37, // 31: greptime.v1.SetIndex.inverted:type_name -> greptime.v1.SetInverted + 39, // 32: greptime.v1.SetIndex.skipping:type_name -> greptime.v1.SetSkipping + 36, // 33: greptime.v1.UnsetIndex.fulltext:type_name -> greptime.v1.UnsetFulltext + 38, // 34: greptime.v1.UnsetIndex.inverted:type_name -> greptime.v1.UnsetInverted + 40, // 35: greptime.v1.UnsetIndex.skipping:type_name -> greptime.v1.UnsetSkipping + 31, // 36: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId + 50, // 37: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry + 31, // 38: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId + 25, // 39: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn + 11, // 40: greptime.v1.DropDefaults.drop_defaults:type_name -> greptime.v1.DropDefault + 12, // 41: greptime.v1.SetDefaults.set_defaults:type_name -> greptime.v1.SetDefault + 30, // 42: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 26, // 43: greptime.v1.ModifyColumnTypes.modify_column_types:type_name -> greptime.v1.ModifyColumnType + 33, // 44: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 34, // 45: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 56, // 46: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType + 57, // 47: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 27, // 48: greptime.v1.SetTableOptions.table_options:type_name -> greptime.v1.Option + 56, // 49: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType + 58, // 50: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType + 57, // 51: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 59, // 52: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions + 3, // 53: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType + 0, // 54: greptime.v1.SetFulltext.analyzer:type_name -> greptime.v1.Analyzer + 1, // 55: greptime.v1.SetFulltext.backend:type_name -> greptime.v1.FulltextBackend + 2, // 56: greptime.v1.SetSkipping.skipping_index_type:type_name -> greptime.v1.SkippingIndexType + 42, // 57: greptime.v1.AlterDatabaseExpr.set_database_options:type_name -> greptime.v1.SetDatabaseOptions + 43, // 58: greptime.v1.AlterDatabaseExpr.unset_database_options:type_name -> greptime.v1.UnsetDatabaseOptions + 27, // 59: greptime.v1.SetDatabaseOptions.set_database_options:type_name -> greptime.v1.Option + 45, // 60: greptime.v1.CreateTriggerExpr.channels:type_name -> greptime.v1.NotifyChannel + 51, // 61: greptime.v1.CreateTriggerExpr.labels:type_name -> greptime.v1.CreateTriggerExpr.LabelsEntry + 52, // 62: greptime.v1.CreateTriggerExpr.annotations:type_name -> greptime.v1.CreateTriggerExpr.AnnotationsEntry + 46, // 63: greptime.v1.NotifyChannel.webhook:type_name -> greptime.v1.WebhookOptions + 53, // 64: greptime.v1.WebhookOptions.opts:type_name -> greptime.v1.WebhookOptions.OptsEntry + 65, // [65:65] is the sub-list for method output_type + 65, // [65:65] is the sub-list for method input_type + 65, // [65:65] is the sub-list for extension type_name + 65, // [65:65] is the sub-list for extension extendee + 0, // [0:65] is the sub-list for field type_name +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) } func init() { file_greptime_v1_ddl_proto_init() } @@ -4251,7 +4866,11 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { +<<<<<<< HEAD switch v := v.(*SetIndexes); i { +======= + switch v := v.(*SetDefault); i { +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) case 0: return &v.state case 1: @@ -4263,7 +4882,11 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { +<<<<<<< HEAD switch v := v.(*UnsetIndexes); i { +======= + switch v := v.(*SetIndex); i { +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) case 0: return &v.state case 1: @@ -4275,7 +4898,11 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { +<<<<<<< HEAD switch v := v.(*SetIndex); i { +======= + switch v := v.(*UnsetIndex); i { +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) case 0: return &v.state case 1: @@ -4287,7 +4914,11 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { +<<<<<<< HEAD switch v := v.(*UnsetIndex); i { +======= + switch v := v.(*DropTableExpr); i { +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) case 0: return &v.state case 1: @@ -4299,7 +4930,11 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { +<<<<<<< HEAD switch v := v.(*DropTableExpr); i { +======= + switch v := v.(*CreateDatabaseExpr); i { +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) case 0: return &v.state case 1: @@ -4311,7 +4946,11 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { +<<<<<<< HEAD switch v := v.(*CreateDatabaseExpr); i { +======= + switch v := v.(*TruncateTableExpr); i { +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) case 0: return &v.state case 1: @@ -4323,7 +4962,11 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { +<<<<<<< HEAD switch v := v.(*TruncateTableExpr); i { +======= + switch v := v.(*DropDatabaseExpr); i { +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) case 0: return &v.state case 1: @@ -4335,7 +4978,11 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { +<<<<<<< HEAD switch v := v.(*DropDatabaseExpr); i { +======= + switch v := v.(*AddColumns); i { +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) case 0: return &v.state case 1: @@ -4347,7 +4994,11 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { +<<<<<<< HEAD switch v := v.(*AddColumns); i { +======= + switch v := v.(*DropDefaults); i { +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) case 0: return &v.state case 1: @@ -4359,7 +5010,11 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { +<<<<<<< HEAD switch v := v.(*DropDefaults); i { +======= + switch v := v.(*SetDefaults); i { +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) case 0: return &v.state case 1: @@ -4705,15 +5360,25 @@ func file_greptime_v1_ddl_proto_init() { (*AlterTableExpr_SetIndex)(nil), (*AlterTableExpr_UnsetIndex)(nil), (*AlterTableExpr_DropDefaults)(nil), +<<<<<<< HEAD (*AlterTableExpr_SetIndexes)(nil), (*AlterTableExpr_UnsetIndexes)(nil), } file_greptime_v1_ddl_proto_msgTypes[10].OneofWrappers = []interface{}{ +======= + (*AlterTableExpr_SetDefaults)(nil), + } + file_greptime_v1_ddl_proto_msgTypes[9].OneofWrappers = []interface{}{ +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) (*SetIndex_Fulltext)(nil), (*SetIndex_Inverted)(nil), (*SetIndex_Skipping)(nil), } +<<<<<<< HEAD file_greptime_v1_ddl_proto_msgTypes[11].OneofWrappers = []interface{}{ +======= + file_greptime_v1_ddl_proto_msgTypes[10].OneofWrappers = []interface{}{ +>>>>>>> e6b7ed7 (feat: Support `SET DEFAULT` syntax) (*UnsetIndex_Fulltext)(nil), (*UnsetIndex_Inverted)(nil), (*UnsetIndex_Skipping)(nil), diff --git a/go/greptime/v1/region/server.pb.go b/go/greptime/v1/region/server.pb.go index bd5a3a1..a9bac55 100644 --- a/go/greptime/v1/region/server.pb.go +++ b/go/greptime/v1/region/server.pb.go @@ -1166,6 +1166,7 @@ type AlterRequest struct { // *AlterRequest_DropDefaults // *AlterRequest_SetIndexes // *AlterRequest_UnsetIndexes + // *AlterRequest_SetDefaults Kind isAlterRequest_Kind `protobuf_oneof:"kind"` // The version of the schema before applying the alteration. SchemaVersion uint64 `protobuf:"varint,4,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"` @@ -1287,6 +1288,13 @@ func (x *AlterRequest) GetUnsetIndexes() *v1.UnsetIndexes { return nil } +func (x *AlterRequest) GetSetDefaults() *v1.SetDefaults { + if x, ok := x.GetKind().(*AlterRequest_SetDefaults); ok { + return x.SetDefaults + } + return nil +} + func (x *AlterRequest) GetSchemaVersion() uint64 { if x != nil { return x.SchemaVersion @@ -1340,6 +1348,10 @@ type AlterRequest_UnsetIndexes struct { UnsetIndexes *v1.UnsetIndexes `protobuf:"bytes,14,opt,name=unset_indexes,json=unsetIndexes,proto3,oneof"` } +type AlterRequest_SetDefaults struct { + SetDefaults *v1.SetDefaults `protobuf:"bytes,15,opt,name=set_defaults,json=setDefaults,proto3,oneof"` +} + func (*AlterRequest_AddColumns) isAlterRequest_Kind() {} func (*AlterRequest_DropColumns) isAlterRequest_Kind() {} @@ -1360,6 +1372,8 @@ func (*AlterRequest_SetIndexes) isAlterRequest_Kind() {} func (*AlterRequest_UnsetIndexes) isAlterRequest_Kind() {} +func (*AlterRequest_SetDefaults) isAlterRequest_Kind() {} + type AddColumns struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2402,7 +2416,7 @@ var file_greptime_v1_region_server_proto_rawDesc = []byte{ 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x08, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x85, 0x06, 0x0a, 0x0c, 0x41, 0x6c, 0x74, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0xc4, 0x06, 0x0a, 0x0c, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, @@ -2448,109 +2462,113 @@ var file_greptime_v1_region_server_proto_rawDesc = []byte{ 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, - 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, - 0x22, 0x4c, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3e, - 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x50, - 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x41, 0x0a, - 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 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, 0x8b, 0x01, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x42, - 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, - 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20, - 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0x2b, 0x0a, 0x0c, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x09, 0x0a, - 0x07, 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x22, 0x35, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x69, - 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x69, 0x6e, 0x64, - 0x6f, 0x77, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x0d, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, - 0xba, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x37, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x48, 0x00, 0x52, - 0x07, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x12, 0x47, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x69, - 0x63, 0x74, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, - 0x77, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, - 0x77, 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2e, 0x0a, 0x0f, - 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, + 0x4c, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3e, 0x0a, + 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x50, 0x0a, + 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x0c, + 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 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, + 0x8b, 0x01, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x42, 0x0a, + 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, + 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x0a, + 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x2b, 0x0a, 0x0c, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x0f, - 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 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, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x49, 0x64, 0x22, 0x6e, 0x0a, 0x11, 0x42, 0x75, 0x6c, 0x6b, 0x49, 0x6e, 0x73, 0x65, 0x72, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x09, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x5f, 0x69, - 0x70, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x48, - 0x00, 0x52, 0x08, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x42, 0x06, 0x0a, 0x04, 0x62, - 0x6f, 0x64, 0x79, 0x22, 0x46, 0x0a, 0x10, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, - 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, - 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, - 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x12, - 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, - 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x19, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x22, 0xed, 0x01, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x54, 0x0a, 0x12, 0x6d, 0x69, 0x74, 0x6f, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, - 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x2e, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x48, 0x00, 0x52, 0x10, 0x6d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, - 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5a, 0x0a, 0x14, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, - 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, - 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x12, 0x6d, + 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x09, 0x0a, 0x07, + 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x22, 0x35, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x69, 0x63, + 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x69, 0x6e, 0x64, 0x6f, + 0x77, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0d, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0xba, + 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x37, + 0x0a, 0x07, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x48, 0x00, 0x52, 0x07, + 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x12, 0x47, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x63, + 0x74, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, + 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, + 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2e, 0x0a, 0x0f, 0x54, + 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x0f, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 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, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x49, 0x64, 0x22, 0x6e, 0x0a, 0x11, 0x42, 0x75, 0x6c, 0x6b, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x09, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x5f, 0x69, 0x70, + 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x48, 0x00, + 0x52, 0x08, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x42, 0x06, 0x0a, 0x04, 0x62, 0x6f, + 0x64, 0x79, 0x22, 0x46, 0x0a, 0x10, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, + 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, + 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, + 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x12, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x42, 0x0f, 0x0a, 0x0d, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, - 0x66, 0x6f, 0x22, 0x34, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x72, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x32, 0x59, 0x0a, 0x06, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x21, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x5d, 0x0a, 0x15, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, + 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x19, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x22, 0xed, 0x01, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x54, + 0x0a, 0x12, 0x6d, 0x69, 0x74, 0x6f, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, + 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, + 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x48, 0x00, 0x52, 0x10, 0x6d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5a, 0x0a, 0x14, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6d, + 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, + 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x42, 0x0f, 0x0a, 0x0d, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, + 0x6f, 0x22, 0x34, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x32, 0x59, 0x0a, 0x06, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x12, 0x4f, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x21, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x42, 0x5d, 0x0a, 0x15, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2613,9 +2631,10 @@ var file_greptime_v1_region_server_proto_goTypes = []interface{}{ (*v1.DropDefaults)(nil), // 43: greptime.v1.DropDefaults (*v1.SetIndexes)(nil), // 44: greptime.v1.SetIndexes (*v1.UnsetIndexes)(nil), // 45: greptime.v1.UnsetIndexes - (*v1.AddColumnLocation)(nil), // 46: greptime.v1.AddColumnLocation - (*v1.ColumnDef)(nil), // 47: greptime.v1.ColumnDef - (*v1.ArrowIpc)(nil), // 48: greptime.v1.ArrowIpc + (*v1.SetDefaults)(nil), // 46: greptime.v1.SetDefaults + (*v1.AddColumnLocation)(nil), // 47: greptime.v1.AddColumnLocation + (*v1.ColumnDef)(nil), // 48: greptime.v1.ColumnDef + (*v1.ArrowIpc)(nil), // 49: greptime.v1.ArrowIpc } var file_greptime_v1_region_server_proto_depIdxs = []int32{ 31, // 0: greptime.v1.region.RegionRequestHeader.tracing_context:type_name -> greptime.v1.region.RegionRequestHeader.TracingContextEntry @@ -2660,23 +2679,24 @@ var file_greptime_v1_region_server_proto_depIdxs = []int32{ 43, // 39: greptime.v1.region.AlterRequest.drop_defaults:type_name -> greptime.v1.DropDefaults 44, // 40: greptime.v1.region.AlterRequest.set_indexes:type_name -> greptime.v1.SetIndexes 45, // 41: greptime.v1.region.AlterRequest.unset_indexes:type_name -> greptime.v1.UnsetIndexes - 18, // 42: greptime.v1.region.AddColumns.add_columns:type_name -> greptime.v1.region.AddColumn - 19, // 43: greptime.v1.region.DropColumns.drop_columns:type_name -> greptime.v1.region.DropColumn - 25, // 44: greptime.v1.region.AddColumn.column_def:type_name -> greptime.v1.region.RegionColumnDef - 46, // 45: greptime.v1.region.AddColumn.location:type_name -> greptime.v1.AddColumnLocation - 21, // 46: greptime.v1.region.CompactRequest.regular:type_name -> greptime.v1.region.Regular - 22, // 47: greptime.v1.region.CompactRequest.strict_window:type_name -> greptime.v1.region.StrictWindow - 47, // 48: greptime.v1.region.RegionColumnDef.column_def:type_name -> greptime.v1.ColumnDef - 48, // 49: greptime.v1.region.BulkInsertRequest.arrow_ipc:type_name -> greptime.v1.ArrowIpc - 27, // 50: greptime.v1.region.SyncRequest.mito_manifest_info:type_name -> greptime.v1.region.MitoManifestInfo - 28, // 51: greptime.v1.region.SyncRequest.metric_manifest_info:type_name -> greptime.v1.region.MetricManifestInfo - 1, // 52: greptime.v1.region.Region.Handle:input_type -> greptime.v1.region.RegionRequest - 2, // 53: greptime.v1.region.Region.Handle:output_type -> greptime.v1.region.RegionResponse - 53, // [53:54] is the sub-list for method output_type - 52, // [52:53] 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 + 46, // 42: greptime.v1.region.AlterRequest.set_defaults:type_name -> greptime.v1.SetDefaults + 18, // 43: greptime.v1.region.AddColumns.add_columns:type_name -> greptime.v1.region.AddColumn + 19, // 44: greptime.v1.region.DropColumns.drop_columns:type_name -> greptime.v1.region.DropColumn + 25, // 45: greptime.v1.region.AddColumn.column_def:type_name -> greptime.v1.region.RegionColumnDef + 47, // 46: greptime.v1.region.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 21, // 47: greptime.v1.region.CompactRequest.regular:type_name -> greptime.v1.region.Regular + 22, // 48: greptime.v1.region.CompactRequest.strict_window:type_name -> greptime.v1.region.StrictWindow + 48, // 49: greptime.v1.region.RegionColumnDef.column_def:type_name -> greptime.v1.ColumnDef + 49, // 50: greptime.v1.region.BulkInsertRequest.arrow_ipc:type_name -> greptime.v1.ArrowIpc + 27, // 51: greptime.v1.region.SyncRequest.mito_manifest_info:type_name -> greptime.v1.region.MitoManifestInfo + 28, // 52: greptime.v1.region.SyncRequest.metric_manifest_info:type_name -> greptime.v1.region.MetricManifestInfo + 1, // 53: greptime.v1.region.Region.Handle:input_type -> greptime.v1.region.RegionRequest + 2, // 54: greptime.v1.region.Region.Handle:output_type -> greptime.v1.region.RegionResponse + 54, // [54:55] is the sub-list for method output_type + 53, // [53:54] is the sub-list for method input_type + 53, // [53:53] is the sub-list for extension type_name + 53, // [53:53] is the sub-list for extension extendee + 0, // [0:53] is the sub-list for field type_name } func init() { file_greptime_v1_region_server_proto_init() } @@ -3087,6 +3107,7 @@ func file_greptime_v1_region_server_proto_init() { (*AlterRequest_DropDefaults)(nil), (*AlterRequest_SetIndexes)(nil), (*AlterRequest_UnsetIndexes)(nil), + (*AlterRequest_SetDefaults)(nil), } file_greptime_v1_region_server_proto_msgTypes[23].OneofWrappers = []interface{}{ (*CompactRequest_Regular)(nil), diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index 515d407..2e57e67 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -12411,6 +12411,21 @@ java.lang.String defaultValue); */ io.greptime.v1.Ddl.UnsetIndexesOrBuilder getUnsetIndexesOrBuilder(); + /** + * .greptime.v1.SetDefaults set_defaults = 17; + * @return Whether the setDefaults field is set. + */ + boolean hasSetDefaults(); + /** + * .greptime.v1.SetDefaults set_defaults = 17; + * @return The setDefaults. + */ + io.greptime.v1.Ddl.SetDefaults getSetDefaults(); + /** + * .greptime.v1.SetDefaults set_defaults = 17; + */ + io.greptime.v1.Ddl.SetDefaultsOrBuilder getSetDefaultsOrBuilder(); + public io.greptime.v1.Ddl.AlterTableExpr.KindCase getKindCase(); } /** @@ -12633,6 +12648,20 @@ java.lang.String defaultValue); kindCase_ = 16; break; } + case 138: { + io.greptime.v1.Ddl.SetDefaults.Builder subBuilder = null; + if (kindCase_ == 17) { + subBuilder = ((io.greptime.v1.Ddl.SetDefaults) kind_).toBuilder(); + } + kind_ = + input.readMessage(io.greptime.v1.Ddl.SetDefaults.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Ddl.SetDefaults) kind_); + kind_ = subBuilder.buildPartial(); + } + kindCase_ = 17; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -12683,6 +12712,7 @@ java.lang.String defaultValue); DROP_DEFAULTS(14), SET_INDEXES(15), UNSET_INDEXES(16), + SET_DEFAULTS(17), KIND_NOT_SET(0); private final int value; private KindCase(int value) { @@ -12711,6 +12741,7 @@ java.lang.String defaultValue); case 14: return DROP_DEFAULTS; case 15: return SET_INDEXES; case 16: return UNSET_INDEXES; + case 17: return SET_DEFAULTS; case 0: return KIND_NOT_SET; default: return null; } @@ -13205,6 +13236,37 @@ java.lang.String defaultValue); return io.greptime.v1.Ddl.UnsetIndexes.getDefaultInstance(); } + public static final int SET_DEFAULTS_FIELD_NUMBER = 17; + /** + * .greptime.v1.SetDefaults set_defaults = 17; + * @return Whether the setDefaults field is set. + */ + @java.lang.Override + public boolean hasSetDefaults() { + return kindCase_ == 17; + } + /** + * .greptime.v1.SetDefaults set_defaults = 17; + * @return The setDefaults. + */ + @java.lang.Override + public io.greptime.v1.Ddl.SetDefaults getSetDefaults() { + if (kindCase_ == 17) { + return (io.greptime.v1.Ddl.SetDefaults) kind_; + } + return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance(); + } + /** + * .greptime.v1.SetDefaults set_defaults = 17; + */ + @java.lang.Override + public io.greptime.v1.Ddl.SetDefaultsOrBuilder getSetDefaultsOrBuilder() { + if (kindCase_ == 17) { + return (io.greptime.v1.Ddl.SetDefaults) kind_; + } + return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -13261,6 +13323,9 @@ java.lang.String defaultValue); if (kindCase_ == 16) { output.writeMessage(16, (io.greptime.v1.Ddl.UnsetIndexes) kind_); } + if (kindCase_ == 17) { + output.writeMessage(17, (io.greptime.v1.Ddl.SetDefaults) kind_); + } unknownFields.writeTo(output); } @@ -13323,6 +13388,10 @@ java.lang.String defaultValue); size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (io.greptime.v1.Ddl.UnsetIndexes) kind_); } + if (kindCase_ == 17) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, (io.greptime.v1.Ddl.SetDefaults) kind_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -13390,6 +13459,10 @@ java.lang.String defaultValue); if (!getUnsetIndexes() .equals(other.getUnsetIndexes())) return false; break; + case 17: + if (!getSetDefaults() + .equals(other.getSetDefaults())) return false; + break; case 0: default: } @@ -13455,6 +13528,10 @@ java.lang.String defaultValue); hash = (37 * hash) + UNSET_INDEXES_FIELD_NUMBER; hash = (53 * hash) + getUnsetIndexes().hashCode(); break; + case 17: + hash = (37 * hash) + SET_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getSetDefaults().hashCode(); + break; case 0: default: } @@ -13705,6 +13782,13 @@ java.lang.String defaultValue); result.kind_ = unsetIndexesBuilder_.build(); } } + if (kindCase_ == 17) { + if (setDefaultsBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = setDefaultsBuilder_.build(); + } + } result.kindCase_ = kindCase_; onBuilt(); return result; @@ -13811,6 +13895,10 @@ java.lang.String defaultValue); mergeUnsetIndexes(other.getUnsetIndexes()); break; } + case SET_DEFAULTS: { + mergeSetDefaults(other.getSetDefaults()); + break; + } case KIND_NOT_SET: { break; } @@ -15720,6 +15808,148 @@ java.lang.String defaultValue); onChanged();; return unsetIndexesBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SetDefaults, io.greptime.v1.Ddl.SetDefaults.Builder, io.greptime.v1.Ddl.SetDefaultsOrBuilder> setDefaultsBuilder_; + /** + * .greptime.v1.SetDefaults set_defaults = 17; + * @return Whether the setDefaults field is set. + */ + @java.lang.Override + public boolean hasSetDefaults() { + return kindCase_ == 17; + } + /** + * .greptime.v1.SetDefaults set_defaults = 17; + * @return The setDefaults. + */ + @java.lang.Override + public io.greptime.v1.Ddl.SetDefaults getSetDefaults() { + if (setDefaultsBuilder_ == null) { + if (kindCase_ == 17) { + return (io.greptime.v1.Ddl.SetDefaults) kind_; + } + return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance(); + } else { + if (kindCase_ == 17) { + return setDefaultsBuilder_.getMessage(); + } + return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance(); + } + } + /** + * .greptime.v1.SetDefaults set_defaults = 17; + */ + public Builder setSetDefaults(io.greptime.v1.Ddl.SetDefaults value) { + if (setDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + setDefaultsBuilder_.setMessage(value); + } + kindCase_ = 17; + return this; + } + /** + * .greptime.v1.SetDefaults set_defaults = 17; + */ + public Builder setSetDefaults( + io.greptime.v1.Ddl.SetDefaults.Builder builderForValue) { + if (setDefaultsBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + setDefaultsBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 17; + return this; + } + /** + * .greptime.v1.SetDefaults set_defaults = 17; + */ + public Builder mergeSetDefaults(io.greptime.v1.Ddl.SetDefaults value) { + if (setDefaultsBuilder_ == null) { + if (kindCase_ == 17 && + kind_ != io.greptime.v1.Ddl.SetDefaults.getDefaultInstance()) { + kind_ = io.greptime.v1.Ddl.SetDefaults.newBuilder((io.greptime.v1.Ddl.SetDefaults) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 17) { + setDefaultsBuilder_.mergeFrom(value); + } else { + setDefaultsBuilder_.setMessage(value); + } + } + kindCase_ = 17; + return this; + } + /** + * .greptime.v1.SetDefaults set_defaults = 17; + */ + public Builder clearSetDefaults() { + if (setDefaultsBuilder_ == null) { + if (kindCase_ == 17) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 17) { + kindCase_ = 0; + kind_ = null; + } + setDefaultsBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.SetDefaults set_defaults = 17; + */ + public io.greptime.v1.Ddl.SetDefaults.Builder getSetDefaultsBuilder() { + return getSetDefaultsFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.SetDefaults set_defaults = 17; + */ + @java.lang.Override + public io.greptime.v1.Ddl.SetDefaultsOrBuilder getSetDefaultsOrBuilder() { + if ((kindCase_ == 17) && (setDefaultsBuilder_ != null)) { + return setDefaultsBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 17) { + return (io.greptime.v1.Ddl.SetDefaults) kind_; + } + return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance(); + } + } + /** + * .greptime.v1.SetDefaults set_defaults = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SetDefaults, io.greptime.v1.Ddl.SetDefaults.Builder, io.greptime.v1.Ddl.SetDefaultsOrBuilder> + getSetDefaultsFieldBuilder() { + if (setDefaultsBuilder_ == null) { + if (!(kindCase_ == 17)) { + kind_ = io.greptime.v1.Ddl.SetDefaults.getDefaultInstance(); + } + setDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SetDefaults, io.greptime.v1.Ddl.SetDefaults.Builder, io.greptime.v1.Ddl.SetDefaultsOrBuilder>( + (io.greptime.v1.Ddl.SetDefaults) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 17; + onChanged();; + return setDefaultsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -17933,6 +18163,670 @@ java.lang.String defaultValue); } + public interface SetDefaultOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.SetDefault) + 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(); + + /** + *
+     * The JSON representation of the default `Expr`.
+     * 
+ * + * bytes default_constraint = 2; + * @return The defaultConstraint. + */ + com.google.protobuf.ByteString getDefaultConstraint(); + } + /** + * Protobuf type {@code greptime.v1.SetDefault} + */ + public static final class SetDefault extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.SetDefault) + SetDefaultOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetDefault.newBuilder() to construct. + private SetDefault(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetDefault() { + columnName_ = ""; + defaultConstraint_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetDefault(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetDefault( + 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 18: { + + defaultConstraint_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetDefault_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetDefault_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.SetDefault.class, io.greptime.v1.Ddl.SetDefault.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 DEFAULT_CONSTRAINT_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString defaultConstraint_; + /** + *
+     * The JSON representation of the default `Expr`.
+     * 
+ * + * bytes default_constraint = 2; + * @return The defaultConstraint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultConstraint() { + return defaultConstraint_; + } + + 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 (!defaultConstraint_.isEmpty()) { + output.writeBytes(2, defaultConstraint_); + } + 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 (!defaultConstraint_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, defaultConstraint_); + } + 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.SetDefault)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.SetDefault other = (io.greptime.v1.Ddl.SetDefault) obj; + + if (!getColumnName() + .equals(other.getColumnName())) return false; + if (!getDefaultConstraint() + .equals(other.getDefaultConstraint())) 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) + DEFAULT_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getDefaultConstraint().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.SetDefault parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.SetDefault 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.SetDefault parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.SetDefault 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.SetDefault parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.SetDefault parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.SetDefault parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.SetDefault 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.SetDefault parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.SetDefault 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.SetDefault parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.SetDefault 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.SetDefault 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.SetDefault} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.SetDefault) + io.greptime.v1.Ddl.SetDefaultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetDefault_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetDefault_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.SetDefault.class, io.greptime.v1.Ddl.SetDefault.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.SetDefault.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_ = ""; + + defaultConstraint_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetDefault_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.SetDefault getDefaultInstanceForType() { + return io.greptime.v1.Ddl.SetDefault.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.SetDefault build() { + io.greptime.v1.Ddl.SetDefault result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.SetDefault buildPartial() { + io.greptime.v1.Ddl.SetDefault result = new io.greptime.v1.Ddl.SetDefault(this); + result.columnName_ = columnName_; + result.defaultConstraint_ = defaultConstraint_; + 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.SetDefault) { + return mergeFrom((io.greptime.v1.Ddl.SetDefault)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.SetDefault other) { + if (other == io.greptime.v1.Ddl.SetDefault.getDefaultInstance()) return this; + if (!other.getColumnName().isEmpty()) { + columnName_ = other.columnName_; + onChanged(); + } + if (other.getDefaultConstraint() != com.google.protobuf.ByteString.EMPTY) { + setDefaultConstraint(other.getDefaultConstraint()); + } + 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.SetDefault parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.SetDefault) 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 com.google.protobuf.ByteString defaultConstraint_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * The JSON representation of the default `Expr`.
+       * 
+ * + * bytes default_constraint = 2; + * @return The defaultConstraint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultConstraint() { + return defaultConstraint_; + } + /** + *
+       * The JSON representation of the default `Expr`.
+       * 
+ * + * bytes default_constraint = 2; + * @param value The defaultConstraint to set. + * @return This builder for chaining. + */ + public Builder setDefaultConstraint(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultConstraint_ = value; + onChanged(); + return this; + } + /** + *
+       * The JSON representation of the default `Expr`.
+       * 
+ * + * bytes default_constraint = 2; + * @return This builder for chaining. + */ + public Builder clearDefaultConstraint() { + + defaultConstraint_ = getDefaultInstance().getDefaultConstraint(); + 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.SetDefault) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.SetDefault) + private static final io.greptime.v1.Ddl.SetDefault DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.SetDefault(); + } + + public static io.greptime.v1.Ddl.SetDefault getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetDefault parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetDefault(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.SetDefault getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface SetIndexOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.SetIndex) com.google.protobuf.MessageOrBuilder { @@ -26009,6 +26903,801 @@ java.lang.String defaultValue); } + public interface SetDefaultsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.SetDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + java.util.List + getSetDefaultsList(); + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + io.greptime.v1.Ddl.SetDefault getSetDefaults(int index); + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + int getSetDefaultsCount(); + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + java.util.List + getSetDefaultsOrBuilderList(); + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + io.greptime.v1.Ddl.SetDefaultOrBuilder getSetDefaultsOrBuilder( + int index); + } + /** + * Protobuf type {@code greptime.v1.SetDefaults} + */ + public static final class SetDefaults extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.SetDefaults) + SetDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetDefaults.newBuilder() to construct. + private SetDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetDefaults() { + setDefaults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetDefaults(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetDefaults( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + 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: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + setDefaults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + setDefaults_.add( + input.readMessage(io.greptime.v1.Ddl.SetDefault.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + setDefaults_ = java.util.Collections.unmodifiableList(setDefaults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.SetDefaults.class, io.greptime.v1.Ddl.SetDefaults.Builder.class); + } + + public static final int SET_DEFAULTS_FIELD_NUMBER = 1; + private java.util.List setDefaults_; + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + @java.lang.Override + public java.util.List getSetDefaultsList() { + return setDefaults_; + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + @java.lang.Override + public java.util.List + getSetDefaultsOrBuilderList() { + return setDefaults_; + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + @java.lang.Override + public int getSetDefaultsCount() { + return setDefaults_.size(); + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.SetDefault getSetDefaults(int index) { + return setDefaults_.get(index); + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.SetDefaultOrBuilder getSetDefaultsOrBuilder( + int index) { + return setDefaults_.get(index); + } + + 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 { + for (int i = 0; i < setDefaults_.size(); i++) { + output.writeMessage(1, setDefaults_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < setDefaults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, setDefaults_.get(i)); + } + 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.SetDefaults)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.SetDefaults other = (io.greptime.v1.Ddl.SetDefaults) obj; + + if (!getSetDefaultsList() + .equals(other.getSetDefaultsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSetDefaultsCount() > 0) { + hash = (37 * hash) + SET_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getSetDefaultsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.SetDefaults parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.SetDefaults 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.SetDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.SetDefaults 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.SetDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.SetDefaults parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.SetDefaults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.SetDefaults 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.SetDefaults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.SetDefaults 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.SetDefaults parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.SetDefaults 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.SetDefaults 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.SetDefaults} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.SetDefaults) + io.greptime.v1.Ddl.SetDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.SetDefaults.class, io.greptime.v1.Ddl.SetDefaults.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.SetDefaults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSetDefaultsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (setDefaultsBuilder_ == null) { + setDefaults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + setDefaultsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetDefaults_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.SetDefaults getDefaultInstanceForType() { + return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.SetDefaults build() { + io.greptime.v1.Ddl.SetDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.SetDefaults buildPartial() { + io.greptime.v1.Ddl.SetDefaults result = new io.greptime.v1.Ddl.SetDefaults(this); + int from_bitField0_ = bitField0_; + if (setDefaultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + setDefaults_ = java.util.Collections.unmodifiableList(setDefaults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.setDefaults_ = setDefaults_; + } else { + result.setDefaults_ = setDefaultsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Ddl.SetDefaults) { + return mergeFrom((io.greptime.v1.Ddl.SetDefaults)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.SetDefaults other) { + if (other == io.greptime.v1.Ddl.SetDefaults.getDefaultInstance()) return this; + if (setDefaultsBuilder_ == null) { + if (!other.setDefaults_.isEmpty()) { + if (setDefaults_.isEmpty()) { + setDefaults_ = other.setDefaults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSetDefaultsIsMutable(); + setDefaults_.addAll(other.setDefaults_); + } + onChanged(); + } + } else { + if (!other.setDefaults_.isEmpty()) { + if (setDefaultsBuilder_.isEmpty()) { + setDefaultsBuilder_.dispose(); + setDefaultsBuilder_ = null; + setDefaults_ = other.setDefaults_; + bitField0_ = (bitField0_ & ~0x00000001); + setDefaultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSetDefaultsFieldBuilder() : null; + } else { + setDefaultsBuilder_.addAllMessages(other.setDefaults_); + } + } + } + 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.SetDefaults parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.SetDefaults) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List setDefaults_ = + java.util.Collections.emptyList(); + private void ensureSetDefaultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + setDefaults_ = new java.util.ArrayList(setDefaults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.SetDefault, io.greptime.v1.Ddl.SetDefault.Builder, io.greptime.v1.Ddl.SetDefaultOrBuilder> setDefaultsBuilder_; + + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public java.util.List getSetDefaultsList() { + if (setDefaultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(setDefaults_); + } else { + return setDefaultsBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public int getSetDefaultsCount() { + if (setDefaultsBuilder_ == null) { + return setDefaults_.size(); + } else { + return setDefaultsBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public io.greptime.v1.Ddl.SetDefault getSetDefaults(int index) { + if (setDefaultsBuilder_ == null) { + return setDefaults_.get(index); + } else { + return setDefaultsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public Builder setSetDefaults( + int index, io.greptime.v1.Ddl.SetDefault value) { + if (setDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSetDefaultsIsMutable(); + setDefaults_.set(index, value); + onChanged(); + } else { + setDefaultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public Builder setSetDefaults( + int index, io.greptime.v1.Ddl.SetDefault.Builder builderForValue) { + if (setDefaultsBuilder_ == null) { + ensureSetDefaultsIsMutable(); + setDefaults_.set(index, builderForValue.build()); + onChanged(); + } else { + setDefaultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public Builder addSetDefaults(io.greptime.v1.Ddl.SetDefault value) { + if (setDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSetDefaultsIsMutable(); + setDefaults_.add(value); + onChanged(); + } else { + setDefaultsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public Builder addSetDefaults( + int index, io.greptime.v1.Ddl.SetDefault value) { + if (setDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSetDefaultsIsMutable(); + setDefaults_.add(index, value); + onChanged(); + } else { + setDefaultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public Builder addSetDefaults( + io.greptime.v1.Ddl.SetDefault.Builder builderForValue) { + if (setDefaultsBuilder_ == null) { + ensureSetDefaultsIsMutable(); + setDefaults_.add(builderForValue.build()); + onChanged(); + } else { + setDefaultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public Builder addSetDefaults( + int index, io.greptime.v1.Ddl.SetDefault.Builder builderForValue) { + if (setDefaultsBuilder_ == null) { + ensureSetDefaultsIsMutable(); + setDefaults_.add(index, builderForValue.build()); + onChanged(); + } else { + setDefaultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public Builder addAllSetDefaults( + java.lang.Iterable values) { + if (setDefaultsBuilder_ == null) { + ensureSetDefaultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, setDefaults_); + onChanged(); + } else { + setDefaultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public Builder clearSetDefaults() { + if (setDefaultsBuilder_ == null) { + setDefaults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + setDefaultsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public Builder removeSetDefaults(int index) { + if (setDefaultsBuilder_ == null) { + ensureSetDefaultsIsMutable(); + setDefaults_.remove(index); + onChanged(); + } else { + setDefaultsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public io.greptime.v1.Ddl.SetDefault.Builder getSetDefaultsBuilder( + int index) { + return getSetDefaultsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public io.greptime.v1.Ddl.SetDefaultOrBuilder getSetDefaultsOrBuilder( + int index) { + if (setDefaultsBuilder_ == null) { + return setDefaults_.get(index); } else { + return setDefaultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public java.util.List + getSetDefaultsOrBuilderList() { + if (setDefaultsBuilder_ != null) { + return setDefaultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(setDefaults_); + } + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public io.greptime.v1.Ddl.SetDefault.Builder addSetDefaultsBuilder() { + return getSetDefaultsFieldBuilder().addBuilder( + io.greptime.v1.Ddl.SetDefault.getDefaultInstance()); + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public io.greptime.v1.Ddl.SetDefault.Builder addSetDefaultsBuilder( + int index) { + return getSetDefaultsFieldBuilder().addBuilder( + index, io.greptime.v1.Ddl.SetDefault.getDefaultInstance()); + } + /** + * repeated .greptime.v1.SetDefault set_defaults = 1; + */ + public java.util.List + getSetDefaultsBuilderList() { + return getSetDefaultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.SetDefault, io.greptime.v1.Ddl.SetDefault.Builder, io.greptime.v1.Ddl.SetDefaultOrBuilder> + getSetDefaultsFieldBuilder() { + if (setDefaultsBuilder_ == null) { + setDefaultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.SetDefault, io.greptime.v1.Ddl.SetDefault.Builder, io.greptime.v1.Ddl.SetDefaultOrBuilder>( + setDefaults_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + setDefaults_ = null; + } + return setDefaultsBuilder_; + } + @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.SetDefaults) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.SetDefaults) + private static final io.greptime.v1.Ddl.SetDefaults DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.SetDefaults(); + } + + public static io.greptime.v1.Ddl.SetDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetDefaults(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.SetDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface DropColumnsOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.DropColumns) com.google.protobuf.MessageOrBuilder { @@ -47947,6 +49636,11 @@ java.lang.String defaultValue); private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_UnsetIndexes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_SetDefault_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_SetDefault_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_SetIndex_descriptor; private static final @@ -47992,6 +49686,11 @@ java.lang.String defaultValue); private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_DropDefaults_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_SetDefaults_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_SetDefaults_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_DropColumns_descriptor; private static final @@ -48194,7 +49893,7 @@ java.lang.String defaultValue); "teTableExpr.TableOptionsEntry\022&\n\010table_i" + "d\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006engine\030" + "\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001\"\230\005\n\016AlterTableExpr\022\024\n" + + "\r\n\005value\030\002 \001(\t:\0028\001\"\312\005\n\016AlterTableExpr\022\024\n" + "\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" + "\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_columns\030\004 \001(" + "\0132\027.greptime.v1.AddColumnsH\000\0220\n\014drop_col" + @@ -48210,110 +49909,114 @@ java.lang.String defaultValue); "dexH\000\0222\n\rdrop_defaults\030\016 \001(\0132\031.greptime." + "v1.DropDefaultsH\000\022.\n\013set_indexes\030\017 \001(\0132\027" + ".greptime.v1.SetIndexesH\000\0222\n\runset_index" + - "es\030\020 \001(\0132\031.greptime.v1.UnsetIndexesH\000B\006\n" + - "\004kind\"\"\n\013DropDefault\022\023\n\013column_name\030\001 \001(" + - "\t\"8\n\nSetIndexes\022*\n\013set_indexes\030\001 \003(\0132\025.g" + - "reptime.v1.SetIndex\">\n\014UnsetIndexes\022.\n\ru" + - "nset_indexes\030\001 \003(\0132\027.greptime.v1.UnsetIn" + - "dex\"\237\001\n\010SetIndex\022,\n\010fulltext\030\001 \001(\0132\030.gre" + - "ptime.v1.SetFulltextH\000\022,\n\010inverted\030\002 \001(\013" + - "2\030.greptime.v1.SetInvertedH\000\022,\n\010skipping" + - "\030\003 \001(\0132\030.greptime.v1.SetSkippingH\000B\t\n\007op" + - "tions\"\247\001\n\nUnsetIndex\022.\n\010fulltext\030\001 \001(\0132\032" + - ".greptime.v1.UnsetFulltextH\000\022.\n\010inverted" + - "\030\002 \001(\0132\032.greptime.v1.UnsetInvertedH\000\022.\n\010" + - "skipping\030\003 \001(\0132\032.greptime.v1.UnsetSkippi" + - "ngH\000B\t\n\007options\"\216\001\n\rDropTableExpr\022\024\n\014cat" + - "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\n" + - "table_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gre" + - "ptime.v1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010" + - "\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_name\030" + - "\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_" + - "not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.grep" + - "time.v1.CreateDatabaseExpr.OptionsEntry\032" + - ".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_" + - "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\020DropDatabaseExpr\022\024\n\014catal" + - "og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr" + - "op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_" + - "columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"?\n" + - "\014DropDefaults\022/\n\rdrop_defaults\030\001 \003(\0132\030.g" + - "reptime.v1.DropDefault\"<\n\013DropColumns\022-\n" + - "\014drop_columns\030\001 \003(\0132\027.greptime.v1.DropCo" + - "lumn\"O\n\021ModifyColumnTypes\022:\n\023modify_colu" + - "mn_types\030\001 \003(\0132\035.greptime.v1.ModifyColum" + - "nType\"%\n\013RenameTable\022\026\n\016new_table_name\030\001" + - " \001(\t\"\204\001\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026" + - ".greptime.v1.ColumnDef\0220\n\010location\030\003 \001(\013" + - "2\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.v1.ColumnDataType\022C\n\025targe" + - "t_type_extension\030\003 \001(\0132$.greptime.v1.Col" + - "umnDataTypeExtension\"$\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.Optio" + - "n\"!\n\021UnsetTableOptions\022\014\n\004keys\030\001 \003(\t\"\032\n\n" + - "DropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002i" + - "d\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumn" + - "Def\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.g" + - "reptime.v1.ColumnDataType\022\023\n\013is_nullable" + - "\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rse" + - "mantic_type\030\005 \001(\0162\031.greptime.v1.Semantic" + - "Type\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extens" + - "ion\030\007 \001(\0132$.greptime.v1.ColumnDataTypeEx" + - "tension\022+\n\007options\030\010 \001(\0132\032.greptime.v1.C" + - "olumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rlo" + - "cation_type\030\001 \001(\0162+.greptime.v1.AddColum" + - "nLocation.LocationType\022\031\n\021after_column_n" + - "ame\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005" + - "AFTER\020\001\"\324\001\n\013SetFulltext\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.Analyzer\022\026\n\016case_sensitive\030" + - "\004 \001(\010\022-\n\007backend\030\005 \001(\0162\034.greptime.v1.Ful" + - "ltextBackend\022\023\n\013granularity\030\006 \001(\004\022\033\n\023fal" + - "se_positive_rate\030\007 \001(\001\"$\n\rUnsetFulltext\022" + - "\023\n\013column_name\030\001 \001(\t\"\"\n\013SetInverted\022\023\n\013c" + - "olumn_name\030\001 \001(\t\"$\n\rUnsetInverted\022\023\n\013col" + - "umn_name\030\001 \001(\t\"\241\001\n\013SetSkipping\022\023\n\013column" + - "_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\023\n\013granulari" + - "ty\030\003 \001(\004\022;\n\023skipping_index_type\030\004 \001(\0162\036." + - "greptime.v1.SkippingIndexType\022\033\n\023false_p" + - "ositive_rate\030\005 \001(\001\"$\n\rUnsetSkipping\022\023\n\013c" + - "olumn_name\030\001 \001(\t\"\314\001\n\021AlterDatabaseExpr\022\024" + - "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" + - "\t\022?\n\024set_database_options\030\003 \001(\0132\037.grepti" + - "me.v1.SetDatabaseOptionsH\000\022C\n\026unset_data" + - "base_options\030\004 \001(\0132!.greptime.v1.UnsetDa" + - "tabaseOptionsH\000B\006\n\004kind\"G\n\022SetDatabaseOp" + - "tions\0221\n\024set_database_options\030\001 \003(\0132\023.gr" + - "eptime.v1.Option\"$\n\024UnsetDatabaseOptions" + - "\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021CreateTriggerExpr\022\024\n\014" + - "catalog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001(\t" + - "\022\034\n\024create_if_not_exists\030\003 \001(\010\022\013\n\003sql\030\004 " + - "\001(\t\022,\n\010channels\030\005 \003(\0132\032.greptime.v1.Noti" + - "fyChannel\022:\n\006labels\030\006 \003(\0132*.greptime.v1." + - "CreateTriggerExpr.LabelsEntry\022D\n\013annotat" + - "ions\030\007 \003(\0132/.greptime.v1.CreateTriggerEx" + - "pr.AnnotationsEntry\022\020\n\010interval\030\010 \001(\004\032-\n" + - "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - ":\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001\"]\n\rNotifyChannel\022\014\n\004nam" + - "e\030\001 \001(\t\022.\n\007webhook\030\002 \001(\0132\033.greptime.v1.W" + - "ebhookOptionsH\000B\016\n\014channel_type\"\177\n\016Webho" + - "okOptions\022\013\n\003url\030\001 \001(\t\0223\n\004opts\030\002 \003(\0132%.g" + - "reptime.v1.WebhookOptions.OptsEntry\032+\n\tO" + - "ptsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + - "\"U\n\017DropTriggerExpr\022\024\n\014catalog_name\030\001 \001(" + - "\t\022\024\n\014trigger_name\030\002 \001(\t\022\026\n\016drop_if_exist" + - "s\030\003 \001(\010*$\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHIN" + - "ESE\020\001*)\n\017FulltextBackend\022\013\n\007TANTIVY\020\000\022\t\n" + - "\005BLOOM\020\001*%\n\021SkippingIndexType\022\020\n\014BLOOM_F" + - "ILTER\020\000BL\n\016io.greptime.v1B\003DdlZ5github.c" + - "om/GreptimeTeam/greptime-proto/go/grepti" + - "me/v1b\006proto3" + "es\030\020 \001(\0132\031.greptime.v1.UnsetIndexesH\000\0220\n" + + "\014set_defaults\030\021 \001(\0132\030.greptime.v1.SetDef" + + "aultsH\000B\006\n\004kind\"\"\n\013DropDefault\022\023\n\013column" + + "_name\030\001 \001(\t\"8\n\nSetIndexes\022*\n\013set_indexes" + + "\030\001 \003(\0132\025.greptime.v1.SetIndex\">\n\014UnsetIn" + + "dexes\022.\n\runset_indexes\030\001 \003(\0132\027.greptime." + + "v1.UnsetIndex\"=\n\nSetDefault\022\023\n\013column_na" + + "me\030\001 \001(\t\022\032\n\022default_constraint\030\002 \001(\014\"\237\001\n" + + "\010SetIndex\022,\n\010fulltext\030\001 \001(\0132\030.greptime.v" + + "1.SetFulltextH\000\022,\n\010inverted\030\002 \001(\0132\030.grep" + + "time.v1.SetInvertedH\000\022,\n\010skipping\030\003 \001(\0132" + + "\030.greptime.v1.SetSkippingH\000B\t\n\007options\"\247" + + "\001\n\nUnsetIndex\022.\n\010fulltext\030\001 \001(\0132\032.grepti" + + "me.v1.UnsetFulltextH\000\022.\n\010inverted\030\002 \001(\0132" + + "\032.greptime.v1.UnsetInvertedH\000\022.\n\010skippin" + + "g\030\003 \001(\0132\032.greptime.v1.UnsetSkippingH\000B\t\n" + + "\007options\"\216\001\n\rDropTableExpr\022\024\n\014catalog_na" + + "me\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_n" + + "ame\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v" + + "1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022Cr" + + "eateDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023" + + "\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_not_exi" + + "sts\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1" + + ".CreateDatabaseExpr.OptionsEntry\032.\n\014Opti" + + "onsEntry\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.Tab" + + "leId\"U\n\020DropDatabaseExpr\022\024\n\014catalog_name" + + "\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_e" + + "xists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns" + + "\030\001 \003(\0132\026.greptime.v1.AddColumn\"?\n\014DropDe" + + "faults\022/\n\rdrop_defaults\030\001 \003(\0132\030.greptime" + + ".v1.DropDefault\"<\n\013SetDefaults\022-\n\014set_de" + + "faults\030\001 \003(\0132\027.greptime.v1.SetDefault\"<\n" + + "\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre" + + "ptime.v1.DropColumn\"O\n\021ModifyColumnTypes" + + "\022:\n\023modify_column_types\030\001 \003(\0132\035.greptime" + + ".v1.ModifyColumnType\"%\n\013RenameTable\022\026\n\016n" + + "ew_table_name\030\001 \001(\t\"\204\001\n\tAddColumn\022*\n\ncol" + + "umn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n" + + "\010location\030\003 \001(\0132\036.greptime.v1.AddColumnL" + + "ocation\022\031\n\021add_if_not_exists\030\004 \001(\010\"\236\001\n\020M" + + "odifyColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013" + + "target_type\030\002 \001(\0162\033.greptime.v1.ColumnDa" + + "taType\022C\n\025target_type_extension\030\003 \001(\0132$." + + "greptime.v1.ColumnDataTypeExtension\"$\n\006O" + + "ption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"=\n\017Set" + + "TableOptions\022*\n\rtable_options\030\001 \003(\0132\023.gr" + + "eptime.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\007TableId\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_constra" + + "int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept" + + "ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022" + + "datatype_extension\030\007 \001(\0132$.greptime.v1.C" + + "olumnDataTypeExtension\022+\n\007options\030\010 \001(\0132" + + "\032.greptime.v1.ColumnOptions\"\230\001\n\021AddColum" + + "nLocation\022B\n\rlocation_type\030\001 \001(\0162+.grept" + + "ime.v1.AddColumnLocation.LocationType\022\031\n" + + "\021after_column_name\030\002 \001(\t\"$\n\014LocationType" + + "\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFulltext\022\023" + + "\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010a" + + "nalyzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016" + + "case_sensitive\030\004 \001(\010\022-\n\007backend\030\005 \001(\0162\034." + + "greptime.v1.FulltextBackend\022\023\n\013granulari" + + "ty\030\006 \001(\004\022\033\n\023false_positive_rate\030\007 \001(\001\"$\n" + + "\rUnsetFulltext\022\023\n\013column_name\030\001 \001(\t\"\"\n\013S" + + "etInverted\022\023\n\013column_name\030\001 \001(\t\"$\n\rUnset" + + "Inverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n\013SetSki" + + "pping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001" + + "(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skipping_inde" + + "x_type\030\004 \001(\0162\036.greptime.v1.SkippingIndex" + + "Type\022\033\n\023false_positive_rate\030\005 \001(\001\"$\n\rUns" + + "etSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021Alte" + + "rDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" + + "chema_name\030\002 \001(\t\022?\n\024set_database_options" + + "\030\003 \001(\0132\037.greptime.v1.SetDatabaseOptionsH" + + "\000\022C\n\026unset_database_options\030\004 \001(\0132!.grep" + + "time.v1.UnsetDatabaseOptionsH\000B\006\n\004kind\"G" + + "\n\022SetDatabaseOptions\0221\n\024set_database_opt" + + "ions\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024Unset" + + "DatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021Create" + + "TriggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014tri" + + "gger_name\030\002 \001(\t\022\034\n\024create_if_not_exists\030" + + "\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 \003(\0132\032.g" + + "reptime.v1.NotifyChannel\022:\n\006labels\030\006 \003(\013" + + "2*.greptime.v1.CreateTriggerExpr.LabelsE" + + "ntry\022D\n\013annotations\030\007 \003(\0132/.greptime.v1." + + "CreateTriggerExpr.AnnotationsEntry\022\020\n\010in" + + "terval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\rNotif" + + "yChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook\030\002 \001(\0132" + + "\033.greptime.v1.WebhookOptionsH\000B\016\n\014channe" + + "l_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001 \001(\t\0223\n" + + "\004opts\030\002 \003(\0132%.greptime.v1.WebhookOptions" + + ".OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExpr\022\024\n\014ca" + + "talog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001(\t\022\026" + + "\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyzer\022\013\n\007EN" + + "GLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextBackend\022" + + "\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021SkippingIndex" + + "Type\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.greptime.v1" + + "B\003DdlZ5github.com/GreptimeTeam/greptime-" + + "proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -48373,7 +50076,7 @@ java.lang.String defaultValue); internal_static_greptime_v1_AlterTableExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AlterTableExpr_descriptor, - new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "AddColumns", "DropColumns", "RenameTable", "ModifyColumnTypes", "SetTableOptions", "UnsetTableOptions", "SetIndex", "UnsetIndex", "DropDefaults", "SetIndexes", "UnsetIndexes", "Kind", }); + new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "AddColumns", "DropColumns", "RenameTable", "ModifyColumnTypes", "SetTableOptions", "UnsetTableOptions", "SetIndex", "UnsetIndex", "DropDefaults", "SetIndexes", "UnsetIndexes", "SetDefaults", "Kind", }); internal_static_greptime_v1_DropDefault_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_DropDefault_fieldAccessorTable = new @@ -48392,26 +50095,32 @@ java.lang.String defaultValue); com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_UnsetIndexes_descriptor, new java.lang.String[] { "UnsetIndexes", }); - internal_static_greptime_v1_SetIndex_descriptor = + internal_static_greptime_v1_SetDefault_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_greptime_v1_SetDefault_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_SetDefault_descriptor, + new java.lang.String[] { "ColumnName", "DefaultConstraint", }); + internal_static_greptime_v1_SetIndex_descriptor = + getDescriptor().getMessageTypes().get(11); internal_static_greptime_v1_SetIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SetIndex_descriptor, new java.lang.String[] { "Fulltext", "Inverted", "Skipping", "Options", }); internal_static_greptime_v1_UnsetIndex_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_greptime_v1_UnsetIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_UnsetIndex_descriptor, new java.lang.String[] { "Fulltext", "Inverted", "Skipping", "Options", }); internal_static_greptime_v1_DropTableExpr_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_greptime_v1_DropTableExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropTableExpr_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "TableId", "DropIfExists", }); internal_static_greptime_v1_CreateDatabaseExpr_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_greptime_v1_CreateDatabaseExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_CreateDatabaseExpr_descriptor, @@ -48423,163 +50132,169 @@ java.lang.String defaultValue); internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_TruncateTableExpr_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_greptime_v1_TruncateTableExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_TruncateTableExpr_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "TableId", }); internal_static_greptime_v1_DropDatabaseExpr_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropDatabaseExpr_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "DropIfExists", }); internal_static_greptime_v1_AddColumns_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_greptime_v1_AddColumns_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumns_descriptor, new java.lang.String[] { "AddColumns", }); internal_static_greptime_v1_DropDefaults_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_greptime_v1_DropDefaults_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropDefaults_descriptor, new java.lang.String[] { "DropDefaults", }); + internal_static_greptime_v1_SetDefaults_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_greptime_v1_SetDefaults_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_SetDefaults_descriptor, + new java.lang.String[] { "SetDefaults", }); internal_static_greptime_v1_DropColumns_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_greptime_v1_DropColumns_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropColumns_descriptor, new java.lang.String[] { "DropColumns", }); internal_static_greptime_v1_ModifyColumnTypes_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_greptime_v1_ModifyColumnTypes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ModifyColumnTypes_descriptor, new java.lang.String[] { "ModifyColumnTypes", }); internal_static_greptime_v1_RenameTable_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_greptime_v1_RenameTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_RenameTable_descriptor, new java.lang.String[] { "NewTableName", }); internal_static_greptime_v1_AddColumn_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_greptime_v1_AddColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumn_descriptor, new java.lang.String[] { "ColumnDef", "Location", "AddIfNotExists", }); internal_static_greptime_v1_ModifyColumnType_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_greptime_v1_ModifyColumnType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ModifyColumnType_descriptor, new java.lang.String[] { "ColumnName", "TargetType", "TargetTypeExtension", }); internal_static_greptime_v1_Option_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_greptime_v1_Option_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Option_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_SetTableOptions_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_greptime_v1_SetTableOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SetTableOptions_descriptor, new java.lang.String[] { "TableOptions", }); internal_static_greptime_v1_UnsetTableOptions_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_greptime_v1_UnsetTableOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_UnsetTableOptions_descriptor, new java.lang.String[] { "Keys", }); internal_static_greptime_v1_DropColumn_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_greptime_v1_DropColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropColumn_descriptor, new java.lang.String[] { "Name", }); internal_static_greptime_v1_TableId_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_greptime_v1_TableId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_TableId_descriptor, new java.lang.String[] { "Id", }); internal_static_greptime_v1_FlowId_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_greptime_v1_FlowId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_FlowId_descriptor, new java.lang.String[] { "Id", }); internal_static_greptime_v1_ColumnDef_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_greptime_v1_ColumnDef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnDef_descriptor, new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", "Options", }); internal_static_greptime_v1_AddColumnLocation_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_greptime_v1_AddColumnLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumnLocation_descriptor, new java.lang.String[] { "LocationType", "AfterColumnName", }); internal_static_greptime_v1_SetFulltext_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_greptime_v1_SetFulltext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SetFulltext_descriptor, new java.lang.String[] { "ColumnName", "Enable", "Analyzer", "CaseSensitive", "Backend", "Granularity", "FalsePositiveRate", }); internal_static_greptime_v1_UnsetFulltext_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_greptime_v1_UnsetFulltext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_UnsetFulltext_descriptor, new java.lang.String[] { "ColumnName", }); internal_static_greptime_v1_SetInverted_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_greptime_v1_SetInverted_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SetInverted_descriptor, new java.lang.String[] { "ColumnName", }); internal_static_greptime_v1_UnsetInverted_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_greptime_v1_UnsetInverted_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_UnsetInverted_descriptor, new java.lang.String[] { "ColumnName", }); internal_static_greptime_v1_SetSkipping_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(37); 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", "FalsePositiveRate", }); internal_static_greptime_v1_UnsetSkipping_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(38); 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(37); + getDescriptor().getMessageTypes().get(39); 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(38); + getDescriptor().getMessageTypes().get(40); 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(39); + getDescriptor().getMessageTypes().get(41); internal_static_greptime_v1_UnsetDatabaseOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_UnsetDatabaseOptions_descriptor, new java.lang.String[] { "Keys", }); internal_static_greptime_v1_CreateTriggerExpr_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(42); internal_static_greptime_v1_CreateTriggerExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_CreateTriggerExpr_descriptor, @@ -48597,13 +50312,13 @@ java.lang.String defaultValue); internal_static_greptime_v1_CreateTriggerExpr_AnnotationsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_NotifyChannel_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(43); internal_static_greptime_v1_NotifyChannel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_NotifyChannel_descriptor, new java.lang.String[] { "Name", "Webhook", "ChannelType", }); internal_static_greptime_v1_WebhookOptions_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(44); internal_static_greptime_v1_WebhookOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_WebhookOptions_descriptor, @@ -48615,7 +50330,7 @@ java.lang.String defaultValue); internal_static_greptime_v1_WebhookOptions_OptsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_DropTriggerExpr_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(45); internal_static_greptime_v1_DropTriggerExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropTriggerExpr_descriptor, diff --git a/java/src/main/java/io/greptime/v1/region/Server.java b/java/src/main/java/io/greptime/v1/region/Server.java index ed63d8d..8cafd3f 100644 --- a/java/src/main/java/io/greptime/v1/region/Server.java +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -17462,6 +17462,21 @@ java.lang.String defaultValue); */ io.greptime.v1.Ddl.UnsetIndexesOrBuilder getUnsetIndexesOrBuilder(); + /** + * .greptime.v1.SetDefaults set_defaults = 15; + * @return Whether the setDefaults field is set. + */ + boolean hasSetDefaults(); + /** + * .greptime.v1.SetDefaults set_defaults = 15; + * @return The setDefaults. + */ + io.greptime.v1.Ddl.SetDefaults getSetDefaults(); + /** + * .greptime.v1.SetDefaults set_defaults = 15; + */ + io.greptime.v1.Ddl.SetDefaultsOrBuilder getSetDefaultsOrBuilder(); + /** *
      * The version of the schema before applying the alteration.
@@ -17669,6 +17684,20 @@ java.lang.String defaultValue);
               kindCase_ = 14;
               break;
             }
+            case 122: {
+              io.greptime.v1.Ddl.SetDefaults.Builder subBuilder = null;
+              if (kindCase_ == 15) {
+                subBuilder = ((io.greptime.v1.Ddl.SetDefaults) kind_).toBuilder();
+              }
+              kind_ =
+                  input.readMessage(io.greptime.v1.Ddl.SetDefaults.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((io.greptime.v1.Ddl.SetDefaults) kind_);
+                kind_ = subBuilder.buildPartial();
+              }
+              kindCase_ = 15;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -17718,6 +17747,7 @@ java.lang.String defaultValue);
       DROP_DEFAULTS(12),
       SET_INDEXES(13),
       UNSET_INDEXES(14),
+      SET_DEFAULTS(15),
       KIND_NOT_SET(0);
       private final int value;
       private KindCase(int value) {
@@ -17745,6 +17775,7 @@ java.lang.String defaultValue);
           case 12: return DROP_DEFAULTS;
           case 13: return SET_INDEXES;
           case 14: return UNSET_INDEXES;
+          case 15: return SET_DEFAULTS;
           case 0: return KIND_NOT_SET;
           default: return null;
         }
@@ -18105,6 +18136,37 @@ java.lang.String defaultValue);
       return io.greptime.v1.Ddl.UnsetIndexes.getDefaultInstance();
     }
 
+    public static final int SET_DEFAULTS_FIELD_NUMBER = 15;
+    /**
+     * .greptime.v1.SetDefaults set_defaults = 15;
+     * @return Whether the setDefaults field is set.
+     */
+    @java.lang.Override
+    public boolean hasSetDefaults() {
+      return kindCase_ == 15;
+    }
+    /**
+     * .greptime.v1.SetDefaults set_defaults = 15;
+     * @return The setDefaults.
+     */
+    @java.lang.Override
+    public io.greptime.v1.Ddl.SetDefaults getSetDefaults() {
+      if (kindCase_ == 15) {
+         return (io.greptime.v1.Ddl.SetDefaults) kind_;
+      }
+      return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance();
+    }
+    /**
+     * .greptime.v1.SetDefaults set_defaults = 15;
+     */
+    @java.lang.Override
+    public io.greptime.v1.Ddl.SetDefaultsOrBuilder getSetDefaultsOrBuilder() {
+      if (kindCase_ == 15) {
+         return (io.greptime.v1.Ddl.SetDefaults) kind_;
+      }
+      return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance();
+    }
+
     public static final int SCHEMA_VERSION_FIELD_NUMBER = 4;
     private long schemaVersion_;
     /**
@@ -18170,6 +18232,9 @@ java.lang.String defaultValue);
       if (kindCase_ == 14) {
         output.writeMessage(14, (io.greptime.v1.Ddl.UnsetIndexes) kind_);
       }
+      if (kindCase_ == 15) {
+        output.writeMessage(15, (io.greptime.v1.Ddl.SetDefaults) kind_);
+      }
       unknownFields.writeTo(output);
     }
 
@@ -18227,6 +18292,10 @@ java.lang.String defaultValue);
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(14, (io.greptime.v1.Ddl.UnsetIndexes) kind_);
       }
+      if (kindCase_ == 15) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(15, (io.greptime.v1.Ddl.SetDefaults) kind_);
+      }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
@@ -18288,6 +18357,10 @@ java.lang.String defaultValue);
           if (!getUnsetIndexes()
               .equals(other.getUnsetIndexes())) return false;
           break;
+        case 15:
+          if (!getSetDefaults()
+              .equals(other.getSetDefaults())) return false;
+          break;
         case 0:
         default:
       }
@@ -18349,6 +18422,10 @@ java.lang.String defaultValue);
           hash = (37 * hash) + UNSET_INDEXES_FIELD_NUMBER;
           hash = (53 * hash) + getUnsetIndexes().hashCode();
           break;
+        case 15:
+          hash = (37 * hash) + SET_DEFAULTS_FIELD_NUMBER;
+          hash = (53 * hash) + getSetDefaults().hashCode();
+          break;
         case 0:
         default:
       }
@@ -18588,6 +18665,13 @@ java.lang.String defaultValue);
             result.kind_ = unsetIndexesBuilder_.build();
           }
         }
+        if (kindCase_ == 15) {
+          if (setDefaultsBuilder_ == null) {
+            result.kind_ = kind_;
+          } else {
+            result.kind_ = setDefaultsBuilder_.build();
+          }
+        }
         result.schemaVersion_ = schemaVersion_;
         result.kindCase_ = kindCase_;
         onBuilt();
@@ -18685,6 +18769,10 @@ java.lang.String defaultValue);
             mergeUnsetIndexes(other.getUnsetIndexes());
             break;
           }
+          case SET_DEFAULTS: {
+            mergeSetDefaults(other.getSetDefaults());
+            break;
+          }
           case KIND_NOT_SET: {
             break;
           }
@@ -20256,6 +20344,148 @@ java.lang.String defaultValue);
         return unsetIndexesBuilder_;
       }
 
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.Ddl.SetDefaults, io.greptime.v1.Ddl.SetDefaults.Builder, io.greptime.v1.Ddl.SetDefaultsOrBuilder> setDefaultsBuilder_;
+      /**
+       * .greptime.v1.SetDefaults set_defaults = 15;
+       * @return Whether the setDefaults field is set.
+       */
+      @java.lang.Override
+      public boolean hasSetDefaults() {
+        return kindCase_ == 15;
+      }
+      /**
+       * .greptime.v1.SetDefaults set_defaults = 15;
+       * @return The setDefaults.
+       */
+      @java.lang.Override
+      public io.greptime.v1.Ddl.SetDefaults getSetDefaults() {
+        if (setDefaultsBuilder_ == null) {
+          if (kindCase_ == 15) {
+            return (io.greptime.v1.Ddl.SetDefaults) kind_;
+          }
+          return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance();
+        } else {
+          if (kindCase_ == 15) {
+            return setDefaultsBuilder_.getMessage();
+          }
+          return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance();
+        }
+      }
+      /**
+       * .greptime.v1.SetDefaults set_defaults = 15;
+       */
+      public Builder setSetDefaults(io.greptime.v1.Ddl.SetDefaults value) {
+        if (setDefaultsBuilder_ == null) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          kind_ = value;
+          onChanged();
+        } else {
+          setDefaultsBuilder_.setMessage(value);
+        }
+        kindCase_ = 15;
+        return this;
+      }
+      /**
+       * .greptime.v1.SetDefaults set_defaults = 15;
+       */
+      public Builder setSetDefaults(
+          io.greptime.v1.Ddl.SetDefaults.Builder builderForValue) {
+        if (setDefaultsBuilder_ == null) {
+          kind_ = builderForValue.build();
+          onChanged();
+        } else {
+          setDefaultsBuilder_.setMessage(builderForValue.build());
+        }
+        kindCase_ = 15;
+        return this;
+      }
+      /**
+       * .greptime.v1.SetDefaults set_defaults = 15;
+       */
+      public Builder mergeSetDefaults(io.greptime.v1.Ddl.SetDefaults value) {
+        if (setDefaultsBuilder_ == null) {
+          if (kindCase_ == 15 &&
+              kind_ != io.greptime.v1.Ddl.SetDefaults.getDefaultInstance()) {
+            kind_ = io.greptime.v1.Ddl.SetDefaults.newBuilder((io.greptime.v1.Ddl.SetDefaults) kind_)
+                .mergeFrom(value).buildPartial();
+          } else {
+            kind_ = value;
+          }
+          onChanged();
+        } else {
+          if (kindCase_ == 15) {
+            setDefaultsBuilder_.mergeFrom(value);
+          } else {
+            setDefaultsBuilder_.setMessage(value);
+          }
+        }
+        kindCase_ = 15;
+        return this;
+      }
+      /**
+       * .greptime.v1.SetDefaults set_defaults = 15;
+       */
+      public Builder clearSetDefaults() {
+        if (setDefaultsBuilder_ == null) {
+          if (kindCase_ == 15) {
+            kindCase_ = 0;
+            kind_ = null;
+            onChanged();
+          }
+        } else {
+          if (kindCase_ == 15) {
+            kindCase_ = 0;
+            kind_ = null;
+          }
+          setDefaultsBuilder_.clear();
+        }
+        return this;
+      }
+      /**
+       * .greptime.v1.SetDefaults set_defaults = 15;
+       */
+      public io.greptime.v1.Ddl.SetDefaults.Builder getSetDefaultsBuilder() {
+        return getSetDefaultsFieldBuilder().getBuilder();
+      }
+      /**
+       * .greptime.v1.SetDefaults set_defaults = 15;
+       */
+      @java.lang.Override
+      public io.greptime.v1.Ddl.SetDefaultsOrBuilder getSetDefaultsOrBuilder() {
+        if ((kindCase_ == 15) && (setDefaultsBuilder_ != null)) {
+          return setDefaultsBuilder_.getMessageOrBuilder();
+        } else {
+          if (kindCase_ == 15) {
+            return (io.greptime.v1.Ddl.SetDefaults) kind_;
+          }
+          return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance();
+        }
+      }
+      /**
+       * .greptime.v1.SetDefaults set_defaults = 15;
+       */
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.Ddl.SetDefaults, io.greptime.v1.Ddl.SetDefaults.Builder, io.greptime.v1.Ddl.SetDefaultsOrBuilder> 
+          getSetDefaultsFieldBuilder() {
+        if (setDefaultsBuilder_ == null) {
+          if (!(kindCase_ == 15)) {
+            kind_ = io.greptime.v1.Ddl.SetDefaults.getDefaultInstance();
+          }
+          setDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              io.greptime.v1.Ddl.SetDefaults, io.greptime.v1.Ddl.SetDefaults.Builder, io.greptime.v1.Ddl.SetDefaultsOrBuilder>(
+                  (io.greptime.v1.Ddl.SetDefaults) kind_,
+                  getParentForChildren(),
+                  isClean());
+          kind_ = null;
+        }
+        kindCase_ = 15;
+        onChanged();;
+        return setDefaultsBuilder_;
+      }
+
       private long schemaVersion_ ;
       /**
        * 
@@ -30749,7 +30979,7 @@ java.lang.String defaultValue);
       "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n" +
       "\tregion_id\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010req" +
       "uests\030\001 \003(\0132 .greptime.v1.region.AlterRe" +
-      "quest\"\336\004\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(" +
+      "quest\"\220\005\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(" +
       "\004\0225\n\013add_columns\030\002 \001(\0132\036.greptime.v1.reg" +
       "ion.AddColumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037" +
       ".greptime.v1.region.DropColumnsH\000\022=\n\023mod" +
@@ -30763,40 +30993,42 @@ java.lang.String defaultValue);
       "efaults\030\014 \001(\0132\031.greptime.v1.DropDefaults" +
       "H\000\022.\n\013set_indexes\030\r \001(\0132\027.greptime.v1.Se" +
       "tIndexesH\000\0222\n\runset_indexes\030\016 \001(\0132\031.grep" +
-      "time.v1.UnsetIndexesH\000\022\026\n\016schema_version" +
-      "\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add_colu" +
-      "mns\030\001 \003(\0132\035.greptime.v1.region.AddColumn" +
-      "\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003(\0132\036." +
-      "greptime.v1.region.DropColumn\"v\n\tAddColu" +
-      "mn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.reg" +
-      "ion.RegionColumnDef\0220\n\010location\030\003 \001(\0132\036." +
-      "greptime.v1.AddColumnLocation\"\032\n\nDropCol" +
-      "umn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\treg" +
-      "ion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022" +
-      "\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016CompactReque" +
-      "st\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033" +
-      ".greptime.v1.region.RegularH\000\0229\n\rstrict_" +
-      "window\030\003 \001(\0132 .greptime.v1.region.Strict" +
-      "WindowH\000B\t\n\007options\"$\n\017TruncateRequest\022\021" +
-      "\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\n" +
-      "column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef" +
-      "\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInsertRequest" +
-      "\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_ipc\030\002 \001(\0132\025" +
-      ".greptime.v1.ArrowIpcH\000B\006\n\004body\"1\n\020MitoM" +
-      "anifestInfo\022\035\n\025data_manifest_version\030\001 \001" +
-      "(\004\"V\n\022MetricManifestInfo\022\035\n\025data_manifes" +
-      "t_version\030\001 \001(\004\022!\n\031metadata_manifest_ver" +
-      "sion\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregion_id\030" +
-      "\001 \001(\004\022B\n\022mito_manifest_info\030\002 \001(\0132$.grep" +
-      "time.v1.region.MitoManifestInfoH\000\022F\n\024met" +
-      "ric_manifest_info\030\003 \001(\0132&.greptime.v1.re" +
-      "gion.MetricManifestInfoH\000B\017\n\rmanifest_in" +
-      "fo\")\n\023ListMetadataRequest\022\022\n\nregion_ids\030" +
-      "\001 \003(\0042Y\n\006Region\022O\n\006Handle\022!.greptime.v1." +
-      "region.RegionRequest\032\".greptime.v1.regio" +
-      "n.RegionResponseB]\n\025io.greptime.v1.regio" +
-      "nB\006ServerZ