feat: alter fulltext index (#196)

This commit is contained in:
Yohan Wal
2024-11-09 07:06:55 +08:00
committed by GitHub
parent 396206c280
commit 67bb1d52bc
9 changed files with 2990 additions and 412 deletions
+471 -70
View File
@@ -431,10 +431,26 @@ struct AddColumnLocationDefaultTypeInternal {
}; };
}; };
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddColumnLocationDefaultTypeInternal _AddColumnLocation_default_instance_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddColumnLocationDefaultTypeInternal _AddColumnLocation_default_instance_;
PROTOBUF_CONSTEXPR ChangeColumnFulltext::ChangeColumnFulltext(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.analyzer_)*/0
, /*decltype(_impl_.enable_)*/false
, /*decltype(_impl_.case_sensitive_)*/false
, /*decltype(_impl_._cached_size_)*/{}} {}
struct ChangeColumnFulltextDefaultTypeInternal {
PROTOBUF_CONSTEXPR ChangeColumnFulltextDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~ChangeColumnFulltextDefaultTypeInternal() {}
union {
ChangeColumnFulltext _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnFulltextDefaultTypeInternal _ChangeColumnFulltext_default_instance_;
} // namespace v1 } // namespace v1
} // namespace greptime } // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[27]; static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[28];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[1]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[2];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fddl_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fddl_2eproto = nullptr;
const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
@@ -558,6 +574,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag,
PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterExpr, _impl_.kind_), PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterExpr, _impl_.kind_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropTableExpr, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::DropTableExpr, _internal_metadata_),
@@ -712,6 +729,16 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
~0u, // no _inlined_string_donated_ ~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumnLocation, _impl_.location_type_), PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumnLocation, _impl_.location_type_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumnLocation, _impl_.after_column_name_), PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumnLocation, _impl_.after_column_name_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnFulltext, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnFulltext, _impl_.column_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnFulltext, _impl_.enable_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnFulltext, _impl_.analyzer_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnFulltext, _impl_.case_sensitive_),
}; };
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::greptime::v1::DdlRequest)}, { 0, -1, -1, sizeof(::greptime::v1::DdlRequest)},
@@ -723,24 +750,25 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 79, 87, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, { 79, 87, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)},
{ 89, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, { 89, -1, -1, sizeof(::greptime::v1::CreateTableExpr)},
{ 106, -1, -1, sizeof(::greptime::v1::AlterExpr)}, { 106, -1, -1, sizeof(::greptime::v1::AlterExpr)},
{ 121, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, { 122, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
{ 132, 140, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, { 133, 141, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
{ 142, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, { 143, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
{ 152, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, { 153, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
{ 162, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, { 163, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
{ 171, -1, -1, sizeof(::greptime::v1::AddColumns)}, { 172, -1, -1, sizeof(::greptime::v1::AddColumns)},
{ 178, -1, -1, sizeof(::greptime::v1::DropColumns)}, { 179, -1, -1, sizeof(::greptime::v1::DropColumns)},
{ 185, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)}, { 186, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)},
{ 192, -1, -1, sizeof(::greptime::v1::RenameTable)}, { 193, -1, -1, sizeof(::greptime::v1::RenameTable)},
{ 199, -1, -1, sizeof(::greptime::v1::AddColumn)}, { 200, -1, -1, sizeof(::greptime::v1::AddColumn)},
{ 207, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, { 208, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
{ 216, -1, -1, sizeof(::greptime::v1::ChangeTableOptions)}, { 217, -1, -1, sizeof(::greptime::v1::ChangeTableOptions)},
{ 223, -1, -1, sizeof(::greptime::v1::ChangeTableOption)}, { 224, -1, -1, sizeof(::greptime::v1::ChangeTableOption)},
{ 231, -1, -1, sizeof(::greptime::v1::DropColumn)}, { 232, -1, -1, sizeof(::greptime::v1::DropColumn)},
{ 238, -1, -1, sizeof(::greptime::v1::TableId)}, { 239, -1, -1, sizeof(::greptime::v1::TableId)},
{ 245, -1, -1, sizeof(::greptime::v1::FlowId)}, { 246, -1, -1, sizeof(::greptime::v1::FlowId)},
{ 252, -1, -1, sizeof(::greptime::v1::ColumnDef)}, { 253, -1, -1, sizeof(::greptime::v1::ColumnDef)},
{ 266, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, { 267, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
{ 275, -1, -1, sizeof(::greptime::v1::ChangeColumnFulltext)},
}; };
static const ::_pb::Message* const file_default_instances[] = { static const ::_pb::Message* const file_default_instances[] = {
@@ -771,6 +799,7 @@ static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::_FlowId_default_instance_._instance, &::greptime::v1::_FlowId_default_instance_._instance,
&::greptime::v1::_ColumnDef_default_instance_._instance, &::greptime::v1::_ColumnDef_default_instance_._instance,
&::greptime::v1::_AddColumnLocation_default_instance_._instance, &::greptime::v1::_AddColumnLocation_default_instance_._instance,
&::greptime::v1::_ChangeColumnFulltext_default_instance_._instance,
}; };
const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
@@ -820,7 +849,7 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
"ime.v1.CreateTableExpr.TableOptionsEntry" "ime.v1.CreateTableExpr.TableOptionsEntry"
"\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.TableId" "\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.TableId"
"\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n" "\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n"
"\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\002\n\tAlterE" "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\253\003\n\tAlterE"
"xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" "xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name"
"\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_column" "\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_column"
"s\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014dr" "s\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014dr"
@@ -829,62 +858,68 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
".RenameTableH\000\022=\n\023change_column_types\030\007 " ".RenameTableH\000\022=\n\023change_column_types\030\007 "
"\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022\?\n" "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022\?\n"
"\024change_table_options\030\010 \001(\0132\037.greptime.v" "\024change_table_options\030\010 \001(\0132\037.greptime.v"
"1.ChangeTableOptionsH\000B\006\n\004kind\"\216\001\n\rDropT" "1.ChangeTableOptionsH\000\022C\n\026change_column_"
"ableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema" "fulltext\030\t \001(\0132!.greptime.v1.ChangeColum"
"_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table" "nFulltextH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n"
"_id\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_" "\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t"
"if_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024" "\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024"
"\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" ".greptime.v1.TableId\022\026\n\016drop_if_exists\030\005"
"\t\022\034\n\024create_if_not_exists\030\003 \001(\010\022=\n\007optio" " \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_n"
"ns\030\004 \003(\0132,.greptime.v1.CreateDatabaseExp" "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create"
"r.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 " "_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,."
"\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableE" "greptime.v1.CreateDatabaseExpr.OptionsEn"
"xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" "try\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu"
"\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004" "e\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014cata"
" \001(\0132\024.greptime.v1.TableId\"U\n\020DropDataba" "log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nt"
"seExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n" "able_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grep"
"ame\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAdd" "time.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014c"
"Columns\022+\n\013add_columns\030\001 \003(\0132\026.greptime." "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026"
"v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_colu" "\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013"
"mns\030\001 \003(\0132\027.greptime.v1.DropColumn\"O\n\021Ch" "add_columns\030\001 \003(\0132\026.greptime.v1.AddColum"
"angeColumnTypes\022:\n\023change_column_types\030\001" "n\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027"
" \003(\0132\035.greptime.v1.ChangeColumnType\"%\n\013R" ".greptime.v1.DropColumn\"O\n\021ChangeColumnT"
"enameTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAd" "ypes\022:\n\023change_column_types\030\001 \003(\0132\035.grep"
"dColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v" "time.v1.ChangeColumnType\"%\n\013RenameTable\022"
"1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime" "\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\n"
".v1.AddColumnLocation\"\236\001\n\020ChangeColumnTy" "column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef"
"pe\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_type\030\002" "\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddColu"
" \001(\0162\033.greptime.v1.ColumnDataType\022C\n\025tar" "mnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013colum"
"get_type_extension\030\003 \001(\0132$.greptime.v1.C" "n_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.grep"
"olumnDataTypeExtension\"R\n\022ChangeTableOpt" "time.v1.ColumnDataType\022C\n\025target_type_ex"
"ions\022<\n\024change_table_options\030\001 \003(\0132\036.gre" "tension\030\003 \001(\0132$.greptime.v1.ColumnDataTy"
"ptime.v1.ChangeTableOption\"/\n\021ChangeTabl" "peExtension\"R\n\022ChangeTableOptions\022<\n\024cha"
"eOption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\032\n\nD" "nge_table_options\030\001 \003(\0132\036.greptime.v1.Ch"
"ropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id" "angeTableOption\"/\n\021ChangeTableOption\022\013\n\003"
"\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnD" "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\032\n\nDropColumn\022\014"
"ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr" "\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006F"
"eptime.v1.ColumnDataType\022\023\n\013is_nullable\030" "lowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030"
"\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem" "\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1.C"
"antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT" "olumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022de"
"ype\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extensi" "fault_constraint\030\004 \001(\014\0220\n\rsemantic_type\030"
"on\030\007 \001(\0132$.greptime.v1.ColumnDataTypeExt" "\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007comm"
"ension\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Co" "ent\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$."
"lumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rloc" "greptime.v1.ColumnDataTypeExtension\022+\n\007o"
"ation_type\030\001 \001(\0162+.greptime.v1.AddColumn" "ptions\030\010 \001(\0132\032.greptime.v1.ColumnOptions"
"Location.LocationType\022\031\n\021after_column_na" "\"\230\001\n\021AddColumnLocation\022B\n\rlocation_type\030"
"me\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005A" "\001 \001(\0162+.greptime.v1.AddColumnLocation.Lo"
"FTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github.co" "cationType\022\031\n\021after_column_name\030\002 \001(\t\"$\n"
"m/GreptimeTeam/greptime-proto/go/greptim" "\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"|\n\024C"
"e/v1b\006proto3" "hangeColumnFulltext\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.gre"
"ptime.v1.Analyzer\022\026\n\016case_sensitive\030\004 \001("
"\010*$\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001B"
"L\n\016io.greptime.v1B\003DdlZ5github.com/Grept"
"imeTeam/greptime-proto/go/greptime/v1b\006p"
"roto3"
; ;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto, &::descriptor_table_greptime_2fv1_2fcommon_2eproto,
}; };
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
false, false, 4052, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, false, false, 4285, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
"greptime/v1/ddl.proto", "greptime/v1/ddl.proto",
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 27, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 28,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, 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_metadata_greptime_2fv1_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto,
file_level_service_descriptors_greptime_2fv1_2fddl_2eproto, file_level_service_descriptors_greptime_2fv1_2fddl_2eproto,
@@ -918,6 +953,20 @@ constexpr AddColumnLocation_LocationType AddColumnLocation::LocationType_MIN;
constexpr AddColumnLocation_LocationType AddColumnLocation::LocationType_MAX; constexpr AddColumnLocation_LocationType AddColumnLocation::LocationType_MAX;
constexpr int AddColumnLocation::LocationType_ARRAYSIZE; constexpr int AddColumnLocation::LocationType_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Analyzer_descriptor() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fddl_2eproto);
return file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[1];
}
bool Analyzer_IsValid(int value) {
switch (value) {
case 0:
case 1:
return true;
default:
return false;
}
}
// =================================================================== // ===================================================================
@@ -4221,6 +4270,7 @@ class AlterExpr::_Internal {
static const ::greptime::v1::RenameTable& rename_table(const AlterExpr* msg); static const ::greptime::v1::RenameTable& rename_table(const AlterExpr* msg);
static const ::greptime::v1::ChangeColumnTypes& change_column_types(const AlterExpr* msg); static const ::greptime::v1::ChangeColumnTypes& change_column_types(const AlterExpr* msg);
static const ::greptime::v1::ChangeTableOptions& change_table_options(const AlterExpr* msg); static const ::greptime::v1::ChangeTableOptions& change_table_options(const AlterExpr* msg);
static const ::greptime::v1::ChangeColumnFulltext& change_column_fulltext(const AlterExpr* msg);
}; };
const ::greptime::v1::AddColumns& const ::greptime::v1::AddColumns&
@@ -4243,6 +4293,10 @@ const ::greptime::v1::ChangeTableOptions&
AlterExpr::_Internal::change_table_options(const AlterExpr* msg) { AlterExpr::_Internal::change_table_options(const AlterExpr* msg) {
return *msg->_impl_.kind_.change_table_options_; return *msg->_impl_.kind_.change_table_options_;
} }
const ::greptime::v1::ChangeColumnFulltext&
AlterExpr::_Internal::change_column_fulltext(const AlterExpr* msg) {
return *msg->_impl_.kind_.change_column_fulltext_;
}
void AlterExpr::set_allocated_add_columns(::greptime::v1::AddColumns* add_columns) { void AlterExpr::set_allocated_add_columns(::greptime::v1::AddColumns* add_columns) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_kind(); clear_kind();
@@ -4318,6 +4372,21 @@ void AlterExpr::set_allocated_change_table_options(::greptime::v1::ChangeTableOp
} }
// @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_table_options) // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_table_options)
} }
void AlterExpr::set_allocated_change_column_fulltext(::greptime::v1::ChangeColumnFulltext* change_column_fulltext) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_kind();
if (change_column_fulltext) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(change_column_fulltext);
if (message_arena != submessage_arena) {
change_column_fulltext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, change_column_fulltext, submessage_arena);
}
set_has_change_column_fulltext();
_impl_.kind_.change_column_fulltext_ = change_column_fulltext;
}
// @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_column_fulltext)
}
AlterExpr::AlterExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, AlterExpr::AlterExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned) bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -4387,6 +4456,11 @@ AlterExpr::AlterExpr(const AlterExpr& from)
from._internal_change_table_options()); from._internal_change_table_options());
break; break;
} }
case kChangeColumnFulltext: {
_this->_internal_mutable_change_column_fulltext()->::greptime::v1::ChangeColumnFulltext::MergeFrom(
from._internal_change_column_fulltext());
break;
}
case KIND_NOT_SET: { case KIND_NOT_SET: {
break; break;
} }
@@ -4477,6 +4551,12 @@ void AlterExpr::clear_kind() {
} }
break; break;
} }
case kChangeColumnFulltext: {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.kind_.change_column_fulltext_;
}
break;
}
case KIND_NOT_SET: { case KIND_NOT_SET: {
break; break;
} }
@@ -4574,6 +4654,14 @@ const char* AlterExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9;
case 9:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
ptr = ctx->ParseMessage(_internal_mutable_change_column_fulltext(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default: default:
goto handle_unusual; goto handle_unusual;
} // switch } // switch
@@ -4668,6 +4756,13 @@ uint8_t* AlterExpr::_InternalSerialize(
_Internal::change_table_options(this).GetCachedSize(), target, stream); _Internal::change_table_options(this).GetCachedSize(), target, stream);
} }
// .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9;
if (_internal_has_change_column_fulltext()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(9, _Internal::change_column_fulltext(this),
_Internal::change_column_fulltext(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -4741,6 +4836,13 @@ size_t AlterExpr::ByteSizeLong() const {
*_impl_.kind_.change_table_options_); *_impl_.kind_.change_table_options_);
break; break;
} }
// .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9;
case kChangeColumnFulltext: {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.kind_.change_column_fulltext_);
break;
}
case KIND_NOT_SET: { case KIND_NOT_SET: {
break; break;
} }
@@ -4798,6 +4900,11 @@ void AlterExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT
from._internal_change_table_options()); from._internal_change_table_options());
break; break;
} }
case kChangeColumnFulltext: {
_this->_internal_mutable_change_column_fulltext()->::greptime::v1::ChangeColumnFulltext::MergeFrom(
from._internal_change_column_fulltext());
break;
}
case KIND_NOT_SET: { case KIND_NOT_SET: {
break; break;
} }
@@ -9200,6 +9307,296 @@ void AddColumnLocation::InternalSwap(AddColumnLocation* other) {
file_level_metadata_greptime_2fv1_2fddl_2eproto[26]); file_level_metadata_greptime_2fv1_2fddl_2eproto[26]);
} }
// ===================================================================
class ChangeColumnFulltext::_Internal {
public:
};
ChangeColumnFulltext::ChangeColumnFulltext(::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.ChangeColumnFulltext)
}
ChangeColumnFulltext::ChangeColumnFulltext(const ChangeColumnFulltext& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
ChangeColumnFulltext* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.column_name_){}
, decltype(_impl_.analyzer_){}
, decltype(_impl_.enable_){}
, decltype(_impl_.case_sensitive_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.column_name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.column_name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_column_name().empty()) {
_this->_impl_.column_name_.Set(from._internal_column_name(),
_this->GetArenaForAllocation());
}
::memcpy(&_impl_.analyzer_, &from._impl_.analyzer_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.case_sensitive_) -
reinterpret_cast<char*>(&_impl_.analyzer_)) + sizeof(_impl_.case_sensitive_));
// @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeColumnFulltext)
}
inline void ChangeColumnFulltext::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.column_name_){}
, decltype(_impl_.analyzer_){0}
, decltype(_impl_.enable_){false}
, decltype(_impl_.case_sensitive_){false}
, /*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
}
ChangeColumnFulltext::~ChangeColumnFulltext() {
// @@protoc_insertion_point(destructor:greptime.v1.ChangeColumnFulltext)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void ChangeColumnFulltext::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.column_name_.Destroy();
}
void ChangeColumnFulltext::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void ChangeColumnFulltext::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeColumnFulltext)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.column_name_.ClearToEmpty();
::memset(&_impl_.analyzer_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.case_sensitive_) -
reinterpret_cast<char*>(&_impl_.analyzer_)) + sizeof(_impl_.case_sensitive_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* ChangeColumnFulltext::_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<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_column_name();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeColumnFulltext.column_name"));
} else
goto handle_unusual;
continue;
// bool enable = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// .greptime.v1.Analyzer analyzer = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
_internal_set_analyzer(static_cast<::greptime::v1::Analyzer>(val));
} else
goto handle_unusual;
continue;
// bool case_sensitive = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
_impl_.case_sensitive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* ChangeColumnFulltext::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeColumnFulltext)
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<int>(this->_internal_column_name().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.ChangeColumnFulltext.column_name");
target = stream->WriteStringMaybeAliased(
1, this->_internal_column_name(), target);
}
// bool enable = 2;
if (this->_internal_enable() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_enable(), target);
}
// .greptime.v1.Analyzer analyzer = 3;
if (this->_internal_analyzer() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
3, this->_internal_analyzer(), target);
}
// bool case_sensitive = 4;
if (this->_internal_case_sensitive() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_case_sensitive(), 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.ChangeColumnFulltext)
return target;
}
size_t ChangeColumnFulltext::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeColumnFulltext)
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());
}
// .greptime.v1.Analyzer analyzer = 3;
if (this->_internal_analyzer() != 0) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this->_internal_analyzer());
}
// bool enable = 2;
if (this->_internal_enable() != 0) {
total_size += 1 + 1;
}
// bool case_sensitive = 4;
if (this->_internal_case_sensitive() != 0) {
total_size += 1 + 1;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeColumnFulltext::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
ChangeColumnFulltext::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeColumnFulltext::GetClassData() const { return &_class_data_; }
void ChangeColumnFulltext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<ChangeColumnFulltext*>(&to_msg);
auto& from = static_cast<const ChangeColumnFulltext&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.ChangeColumnFulltext)
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_analyzer() != 0) {
_this->_internal_set_analyzer(from._internal_analyzer());
}
if (from._internal_enable() != 0) {
_this->_internal_set_enable(from._internal_enable());
}
if (from._internal_case_sensitive() != 0) {
_this->_internal_set_case_sensitive(from._internal_case_sensitive());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void ChangeColumnFulltext::CopyFrom(const ChangeColumnFulltext& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeColumnFulltext)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ChangeColumnFulltext::IsInitialized() const {
return true;
}
void ChangeColumnFulltext::InternalSwap(ChangeColumnFulltext* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.column_name_, lhs_arena,
&other->_impl_.column_name_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(ChangeColumnFulltext, _impl_.case_sensitive_)
+ sizeof(ChangeColumnFulltext::_impl_.case_sensitive_)
- PROTOBUF_FIELD_OFFSET(ChangeColumnFulltext, _impl_.analyzer_)>(
reinterpret_cast<char*>(&_impl_.analyzer_),
reinterpret_cast<char*>(&other->_impl_.analyzer_));
}
::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnFulltext::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]);
}
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace v1 } // namespace v1
} // namespace greptime } // namespace greptime
@@ -9312,6 +9709,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::AddColumnLocation*
Arena::CreateMaybeMessage< ::greptime::v1::AddColumnLocation >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::AddColumnLocation >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::AddColumnLocation >(arena); return Arena::CreateMessageInternal< ::greptime::v1::AddColumnLocation >(arena);
} }
template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeColumnFulltext*
Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnFulltext >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::ChangeColumnFulltext >(arena);
}
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope) // @@protoc_insertion_point(global_scope)
+432
View File
@@ -63,6 +63,9 @@ extern AddColumnsDefaultTypeInternal _AddColumns_default_instance_;
class AlterExpr; class AlterExpr;
struct AlterExprDefaultTypeInternal; struct AlterExprDefaultTypeInternal;
extern AlterExprDefaultTypeInternal _AlterExpr_default_instance_; extern AlterExprDefaultTypeInternal _AlterExpr_default_instance_;
class ChangeColumnFulltext;
struct ChangeColumnFulltextDefaultTypeInternal;
extern ChangeColumnFulltextDefaultTypeInternal _ChangeColumnFulltext_default_instance_;
class ChangeColumnType; class ChangeColumnType;
struct ChangeColumnTypeDefaultTypeInternal; struct ChangeColumnTypeDefaultTypeInternal;
extern ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; extern ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_;
@@ -139,6 +142,7 @@ template<> ::greptime::v1::AddColumn* Arena::CreateMaybeMessage<::greptime::v1::
template<> ::greptime::v1::AddColumnLocation* Arena::CreateMaybeMessage<::greptime::v1::AddColumnLocation>(Arena*); template<> ::greptime::v1::AddColumnLocation* Arena::CreateMaybeMessage<::greptime::v1::AddColumnLocation>(Arena*);
template<> ::greptime::v1::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::AddColumns>(Arena*); template<> ::greptime::v1::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::AddColumns>(Arena*);
template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1::AlterExpr>(Arena*); template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1::AlterExpr>(Arena*);
template<> ::greptime::v1::ChangeColumnFulltext* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnFulltext>(Arena*);
template<> ::greptime::v1::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnType>(Arena*); template<> ::greptime::v1::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnType>(Arena*);
template<> ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnTypes>(Arena*); template<> ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnTypes>(Arena*);
template<> ::greptime::v1::ChangeTableOption* Arena::CreateMaybeMessage<::greptime::v1::ChangeTableOption>(Arena*); template<> ::greptime::v1::ChangeTableOption* Arena::CreateMaybeMessage<::greptime::v1::ChangeTableOption>(Arena*);
@@ -191,6 +195,31 @@ inline bool AddColumnLocation_LocationType_Parse(
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AddColumnLocation_LocationType>( return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AddColumnLocation_LocationType>(
AddColumnLocation_LocationType_descriptor(), name, value); AddColumnLocation_LocationType_descriptor(), name, value);
} }
enum Analyzer : int {
ENGLISH = 0,
CHINESE = 1,
Analyzer_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
Analyzer_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
};
bool Analyzer_IsValid(int value);
constexpr Analyzer Analyzer_MIN = ENGLISH;
constexpr Analyzer Analyzer_MAX = CHINESE;
constexpr int Analyzer_ARRAYSIZE = Analyzer_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Analyzer_descriptor();
template<typename T>
inline const std::string& Analyzer_Name(T enum_t_value) {
static_assert(::std::is_same<T, Analyzer>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function Analyzer_Name.");
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
Analyzer_descriptor(), enum_t_value);
}
inline bool Analyzer_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Analyzer* value) {
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Analyzer>(
Analyzer_descriptor(), name, value);
}
// =================================================================== // ===================================================================
class DdlRequest final : class DdlRequest final :
@@ -2020,6 +2049,7 @@ class AlterExpr final :
kRenameTable = 6, kRenameTable = 6,
kChangeColumnTypes = 7, kChangeColumnTypes = 7,
kChangeTableOptions = 8, kChangeTableOptions = 8,
kChangeColumnFulltext = 9,
KIND_NOT_SET = 0, KIND_NOT_SET = 0,
}; };
@@ -2109,6 +2139,7 @@ class AlterExpr final :
kRenameTableFieldNumber = 6, kRenameTableFieldNumber = 6,
kChangeColumnTypesFieldNumber = 7, kChangeColumnTypesFieldNumber = 7,
kChangeTableOptionsFieldNumber = 8, kChangeTableOptionsFieldNumber = 8,
kChangeColumnFulltextFieldNumber = 9,
}; };
// string catalog_name = 1; // string catalog_name = 1;
void clear_catalog_name(); void clear_catalog_name();
@@ -2242,6 +2273,24 @@ class AlterExpr final :
::greptime::v1::ChangeTableOptions* change_table_options); ::greptime::v1::ChangeTableOptions* change_table_options);
::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options(); ::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options();
// .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9;
bool has_change_column_fulltext() const;
private:
bool _internal_has_change_column_fulltext() const;
public:
void clear_change_column_fulltext();
const ::greptime::v1::ChangeColumnFulltext& change_column_fulltext() const;
PROTOBUF_NODISCARD ::greptime::v1::ChangeColumnFulltext* release_change_column_fulltext();
::greptime::v1::ChangeColumnFulltext* mutable_change_column_fulltext();
void set_allocated_change_column_fulltext(::greptime::v1::ChangeColumnFulltext* change_column_fulltext);
private:
const ::greptime::v1::ChangeColumnFulltext& _internal_change_column_fulltext() const;
::greptime::v1::ChangeColumnFulltext* _internal_mutable_change_column_fulltext();
public:
void unsafe_arena_set_allocated_change_column_fulltext(
::greptime::v1::ChangeColumnFulltext* change_column_fulltext);
::greptime::v1::ChangeColumnFulltext* unsafe_arena_release_change_column_fulltext();
void clear_kind(); void clear_kind();
KindCase kind_case() const; KindCase kind_case() const;
// @@protoc_insertion_point(class_scope:greptime.v1.AlterExpr) // @@protoc_insertion_point(class_scope:greptime.v1.AlterExpr)
@@ -2252,6 +2301,7 @@ class AlterExpr final :
void set_has_rename_table(); void set_has_rename_table();
void set_has_change_column_types(); void set_has_change_column_types();
void set_has_change_table_options(); void set_has_change_table_options();
void set_has_change_column_fulltext();
inline bool has_kind() const; inline bool has_kind() const;
inline void clear_has_kind(); inline void clear_has_kind();
@@ -2271,6 +2321,7 @@ class AlterExpr final :
::greptime::v1::RenameTable* rename_table_; ::greptime::v1::RenameTable* rename_table_;
::greptime::v1::ChangeColumnTypes* change_column_types_; ::greptime::v1::ChangeColumnTypes* change_column_types_;
::greptime::v1::ChangeTableOptions* change_table_options_; ::greptime::v1::ChangeTableOptions* change_table_options_;
::greptime::v1::ChangeColumnFulltext* change_column_fulltext_;
} kind_; } kind_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1]; uint32_t _oneof_case_[1];
@@ -5326,6 +5377,192 @@ class AddColumnLocation final :
union { Impl_ _impl_; }; union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto;
}; };
// -------------------------------------------------------------------
class ChangeColumnFulltext final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeColumnFulltext) */ {
public:
inline ChangeColumnFulltext() : ChangeColumnFulltext(nullptr) {}
~ChangeColumnFulltext() override;
explicit PROTOBUF_CONSTEXPR ChangeColumnFulltext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ChangeColumnFulltext(const ChangeColumnFulltext& from);
ChangeColumnFulltext(ChangeColumnFulltext&& from) noexcept
: ChangeColumnFulltext() {
*this = ::std::move(from);
}
inline ChangeColumnFulltext& operator=(const ChangeColumnFulltext& from) {
CopyFrom(from);
return *this;
}
inline ChangeColumnFulltext& operator=(ChangeColumnFulltext&& 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 ChangeColumnFulltext& default_instance() {
return *internal_default_instance();
}
static inline const ChangeColumnFulltext* internal_default_instance() {
return reinterpret_cast<const ChangeColumnFulltext*>(
&_ChangeColumnFulltext_default_instance_);
}
static constexpr int kIndexInFileMessages =
27;
friend void swap(ChangeColumnFulltext& a, ChangeColumnFulltext& b) {
a.Swap(&b);
}
inline void Swap(ChangeColumnFulltext* 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(ChangeColumnFulltext* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ChangeColumnFulltext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ChangeColumnFulltext>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ChangeColumnFulltext& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const ChangeColumnFulltext& from) {
ChangeColumnFulltext::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(ChangeColumnFulltext* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.ChangeColumnFulltext";
}
protected:
explicit ChangeColumnFulltext(::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,
kAnalyzerFieldNumber = 3,
kEnableFieldNumber = 2,
kCaseSensitiveFieldNumber = 4,
};
// string column_name = 1;
void clear_column_name();
const std::string& column_name() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
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:
// .greptime.v1.Analyzer analyzer = 3;
void clear_analyzer();
::greptime::v1::Analyzer analyzer() const;
void set_analyzer(::greptime::v1::Analyzer value);
private:
::greptime::v1::Analyzer _internal_analyzer() const;
void _internal_set_analyzer(::greptime::v1::Analyzer value);
public:
// bool enable = 2;
void clear_enable();
bool enable() const;
void set_enable(bool value);
private:
bool _internal_enable() const;
void _internal_set_enable(bool value);
public:
// bool case_sensitive = 4;
void clear_case_sensitive();
bool case_sensitive() const;
void set_case_sensitive(bool value);
private:
bool _internal_case_sensitive() const;
void _internal_set_case_sensitive(bool value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnFulltext)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_;
int analyzer_;
bool enable_;
bool case_sensitive_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto;
};
// =================================================================== // ===================================================================
@@ -8537,6 +8774,80 @@ inline ::greptime::v1::ChangeTableOptions* AlterExpr::mutable_change_table_optio
return _msg; return _msg;
} }
// .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9;
inline bool AlterExpr::_internal_has_change_column_fulltext() const {
return kind_case() == kChangeColumnFulltext;
}
inline bool AlterExpr::has_change_column_fulltext() const {
return _internal_has_change_column_fulltext();
}
inline void AlterExpr::set_has_change_column_fulltext() {
_impl_._oneof_case_[0] = kChangeColumnFulltext;
}
inline void AlterExpr::clear_change_column_fulltext() {
if (_internal_has_change_column_fulltext()) {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.kind_.change_column_fulltext_;
}
clear_has_kind();
}
}
inline ::greptime::v1::ChangeColumnFulltext* AlterExpr::release_change_column_fulltext() {
// @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.change_column_fulltext)
if (_internal_has_change_column_fulltext()) {
clear_has_kind();
::greptime::v1::ChangeColumnFulltext* temp = _impl_.kind_.change_column_fulltext_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
_impl_.kind_.change_column_fulltext_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::greptime::v1::ChangeColumnFulltext& AlterExpr::_internal_change_column_fulltext() const {
return _internal_has_change_column_fulltext()
? *_impl_.kind_.change_column_fulltext_
: reinterpret_cast< ::greptime::v1::ChangeColumnFulltext&>(::greptime::v1::_ChangeColumnFulltext_default_instance_);
}
inline const ::greptime::v1::ChangeColumnFulltext& AlterExpr::change_column_fulltext() const {
// @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.change_column_fulltext)
return _internal_change_column_fulltext();
}
inline ::greptime::v1::ChangeColumnFulltext* AlterExpr::unsafe_arena_release_change_column_fulltext() {
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.change_column_fulltext)
if (_internal_has_change_column_fulltext()) {
clear_has_kind();
::greptime::v1::ChangeColumnFulltext* temp = _impl_.kind_.change_column_fulltext_;
_impl_.kind_.change_column_fulltext_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void AlterExpr::unsafe_arena_set_allocated_change_column_fulltext(::greptime::v1::ChangeColumnFulltext* change_column_fulltext) {
clear_kind();
if (change_column_fulltext) {
set_has_change_column_fulltext();
_impl_.kind_.change_column_fulltext_ = change_column_fulltext;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.change_column_fulltext)
}
inline ::greptime::v1::ChangeColumnFulltext* AlterExpr::_internal_mutable_change_column_fulltext() {
if (!_internal_has_change_column_fulltext()) {
clear_kind();
set_has_change_column_fulltext();
_impl_.kind_.change_column_fulltext_ = CreateMaybeMessage< ::greptime::v1::ChangeColumnFulltext >(GetArenaForAllocation());
}
return _impl_.kind_.change_column_fulltext_;
}
inline ::greptime::v1::ChangeColumnFulltext* AlterExpr::mutable_change_column_fulltext() {
::greptime::v1::ChangeColumnFulltext* _msg = _internal_mutable_change_column_fulltext();
// @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.change_column_fulltext)
return _msg;
}
inline bool AlterExpr::has_kind() const { inline bool AlterExpr::has_kind() const {
return kind_case() != KIND_NOT_SET; return kind_case() != KIND_NOT_SET;
} }
@@ -10570,6 +10881,120 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte
// @@protoc_insertion_point(field_set_allocated:greptime.v1.AddColumnLocation.after_column_name) // @@protoc_insertion_point(field_set_allocated:greptime.v1.AddColumnLocation.after_column_name)
} }
// -------------------------------------------------------------------
// ChangeColumnFulltext
// string column_name = 1;
inline void ChangeColumnFulltext::clear_column_name() {
_impl_.column_name_.ClearToEmpty();
}
inline const std::string& ChangeColumnFulltext::column_name() const {
// @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnFulltext.column_name)
return _internal_column_name();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void ChangeColumnFulltext::set_column_name(ArgT0&& arg0, ArgT... args) {
_impl_.column_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.ChangeColumnFulltext.column_name)
}
inline std::string* ChangeColumnFulltext::mutable_column_name() {
std::string* _s = _internal_mutable_column_name();
// @@protoc_insertion_point(field_mutable:greptime.v1.ChangeColumnFulltext.column_name)
return _s;
}
inline const std::string& ChangeColumnFulltext::_internal_column_name() const {
return _impl_.column_name_.Get();
}
inline void ChangeColumnFulltext::_internal_set_column_name(const std::string& value) {
_impl_.column_name_.Set(value, GetArenaForAllocation());
}
inline std::string* ChangeColumnFulltext::_internal_mutable_column_name() {
return _impl_.column_name_.Mutable(GetArenaForAllocation());
}
inline std::string* ChangeColumnFulltext::release_column_name() {
// @@protoc_insertion_point(field_release:greptime.v1.ChangeColumnFulltext.column_name)
return _impl_.column_name_.Release();
}
inline void ChangeColumnFulltext::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.ChangeColumnFulltext.column_name)
}
// bool enable = 2;
inline void ChangeColumnFulltext::clear_enable() {
_impl_.enable_ = false;
}
inline bool ChangeColumnFulltext::_internal_enable() const {
return _impl_.enable_;
}
inline bool ChangeColumnFulltext::enable() const {
// @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnFulltext.enable)
return _internal_enable();
}
inline void ChangeColumnFulltext::_internal_set_enable(bool value) {
_impl_.enable_ = value;
}
inline void ChangeColumnFulltext::set_enable(bool value) {
_internal_set_enable(value);
// @@protoc_insertion_point(field_set:greptime.v1.ChangeColumnFulltext.enable)
}
// .greptime.v1.Analyzer analyzer = 3;
inline void ChangeColumnFulltext::clear_analyzer() {
_impl_.analyzer_ = 0;
}
inline ::greptime::v1::Analyzer ChangeColumnFulltext::_internal_analyzer() const {
return static_cast< ::greptime::v1::Analyzer >(_impl_.analyzer_);
}
inline ::greptime::v1::Analyzer ChangeColumnFulltext::analyzer() const {
// @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnFulltext.analyzer)
return _internal_analyzer();
}
inline void ChangeColumnFulltext::_internal_set_analyzer(::greptime::v1::Analyzer value) {
_impl_.analyzer_ = value;
}
inline void ChangeColumnFulltext::set_analyzer(::greptime::v1::Analyzer value) {
_internal_set_analyzer(value);
// @@protoc_insertion_point(field_set:greptime.v1.ChangeColumnFulltext.analyzer)
}
// bool case_sensitive = 4;
inline void ChangeColumnFulltext::clear_case_sensitive() {
_impl_.case_sensitive_ = false;
}
inline bool ChangeColumnFulltext::_internal_case_sensitive() const {
return _impl_.case_sensitive_;
}
inline bool ChangeColumnFulltext::case_sensitive() const {
// @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnFulltext.case_sensitive)
return _internal_case_sensitive();
}
inline void ChangeColumnFulltext::_internal_set_case_sensitive(bool value) {
_impl_.case_sensitive_ = value;
}
inline void ChangeColumnFulltext::set_case_sensitive(bool value) {
_internal_set_case_sensitive(value);
// @@protoc_insertion_point(field_set:greptime.v1.ChangeColumnFulltext.case_sensitive)
}
#ifdef __GNUC__ #ifdef __GNUC__
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif // __GNUC__ #endif // __GNUC__
@@ -10625,6 +11050,8 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -10638,6 +11065,11 @@ template <>
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::AddColumnLocation_LocationType>() { inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::AddColumnLocation_LocationType>() {
return ::greptime::v1::AddColumnLocation_LocationType_descriptor(); return ::greptime::v1::AddColumnLocation_LocationType_descriptor();
} }
template <> struct is_proto_enum< ::greptime::v1::Analyzer> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::Analyzer>() {
return ::greptime::v1::Analyzer_descriptor();
}
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_CLOSE
+105 -35
View File
@@ -623,6 +623,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag, ::_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_.schema_version_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.kind_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.kind_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
@@ -721,16 +722,16 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 161, -1, -1, sizeof(::greptime::v1::region::CloseRequest)}, { 161, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
{ 168, -1, -1, sizeof(::greptime::v1::region::AlterRequests)}, { 168, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
{ 175, -1, -1, sizeof(::greptime::v1::region::AlterRequest)}, { 175, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
{ 188, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, { 189, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
{ 195, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, { 196, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
{ 202, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, { 203, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
{ 210, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, { 211, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
{ 217, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, { 218, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
{ 224, -1, -1, sizeof(::greptime::v1::region::Regular)}, { 225, -1, -1, sizeof(::greptime::v1::region::Regular)},
{ 230, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, { 231, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
{ 237, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, { 238, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 247, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, { 248, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
{ 254, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, { 255, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
}; };
static const ::_pb::Message* const file_default_instances[] = { static const ::_pb::Message* const file_default_instances[] = {
@@ -827,36 +828,38 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " ".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
"\001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001" "\001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001"
"(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003(\0132 ." "(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003(\0132 ."
"greptime.v1.region.AlterRequest\"\261\002\n\014Alte" "greptime.v1.region.AlterRequest\"\366\002\n\014Alte"
"rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum" "rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum"
"ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns" "ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns"
"H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r" "H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r"
"egion.DropColumnsH\000\022=\n\023change_column_typ" "egion.DropColumnsH\000\022=\n\023change_column_typ"
"es\030\005 \001(\0132\036.greptime.v1.ChangeColumnTypes" "es\030\005 \001(\0132\036.greptime.v1.ChangeColumnTypes"
"H\000\022\?\n\024change_table_options\030\006 \001(\0132\037.grept" "H\000\022\?\n\024change_table_options\030\006 \001(\0132\037.grept"
"ime.v1.ChangeTableOptionsH\000\022\026\n\016schema_ve" "ime.v1.ChangeTableOptionsH\000\022C\n\026change_co"
"rsion\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add" "lumn_fulltext\030\007 \001(\0132!.greptime.v1.Change"
"_columns\030\001 \003(\0132\035.greptime.v1.region.AddC" "ColumnFulltextH\000\022\026\n\016schema_version\030\004 \001(\004"
"olumn\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003" "B\006\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 "
"(\0132\036.greptime.v1.region.DropColumn\"v\n\tAd" "\003(\0132\035.greptime.v1.region.AddColumn\"C\n\013Dr"
"dColumn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v" "opColumns\0224\n\014drop_columns\030\001 \003(\0132\036.grepti"
"1.region.RegionColumnDef\0220\n\010location\030\003 \001" "me.v1.region.DropColumn\"v\n\tAddColumn\0227\n\n"
"(\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDr" "column_def\030\001 \001(\0132#.greptime.v1.region.Re"
"opColumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021" "gionColumnDef\0220\n\010location\030\003 \001(\0132\036.grepti"
"\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWi" "me.v1.AddColumnLocation\"\032\n\nDropColumn\022\014\n"
"ndow\022\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016Compact" "\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id"
"Request\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 " "\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016win"
"\001(\0132\033.greptime.v1.region.RegularH\000\0229\n\rst" "dow_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\t"
"rict_window\030\003 \001(\0132 .greptime.v1.region.S" "region_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.grept"
"trictWindowH\000B\t\n\007options\"$\n\017TruncateRequ" "ime.v1.region.RegularH\000\0229\n\rstrict_window"
"est\022\021\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDe" "\030\003 \001(\0132 .greptime.v1.region.StrictWindow"
"f\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colu" "H\000B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregi"
"mnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Ha" "on_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn"
"ndle\022!.greptime.v1.region.RegionRequest\032" "_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tco"
"\".greptime.v1.region.RegionResponseB]\n\025i" "lumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grep"
"o.greptime.v1.regionB\006ServerZ<github.com" "time.v1.region.RegionRequest\032\".greptime."
"/GreptimeTeam/greptime-proto/go/greptime" "v1.region.RegionResponseB]\n\025io.greptime."
"/v1/regionb\006proto3" "v1.regionB\006ServerZ<github.com/GreptimeTe"
"am/greptime-proto/go/greptime/v1/regionb"
"\006proto3"
; ;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = { static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto, &::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -865,7 +868,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2freg
}; };
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = { const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
false, false, 3578, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto, false, false, 3647, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
"greptime/v1/region/server.proto", "greptime/v1/region/server.proto",
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 3, 30, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 3, 30,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets, schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
@@ -5328,6 +5331,7 @@ class AlterRequest::_Internal {
static const ::greptime::v1::region::DropColumns& drop_columns(const AlterRequest* msg); static const ::greptime::v1::region::DropColumns& drop_columns(const AlterRequest* msg);
static const ::greptime::v1::ChangeColumnTypes& change_column_types(const AlterRequest* msg); static const ::greptime::v1::ChangeColumnTypes& change_column_types(const AlterRequest* msg);
static const ::greptime::v1::ChangeTableOptions& change_table_options(const AlterRequest* msg); static const ::greptime::v1::ChangeTableOptions& change_table_options(const AlterRequest* msg);
static const ::greptime::v1::ChangeColumnFulltext& change_column_fulltext(const AlterRequest* msg);
}; };
const ::greptime::v1::region::AddColumns& const ::greptime::v1::region::AddColumns&
@@ -5346,6 +5350,10 @@ const ::greptime::v1::ChangeTableOptions&
AlterRequest::_Internal::change_table_options(const AlterRequest* msg) { AlterRequest::_Internal::change_table_options(const AlterRequest* msg) {
return *msg->_impl_.kind_.change_table_options_; return *msg->_impl_.kind_.change_table_options_;
} }
const ::greptime::v1::ChangeColumnFulltext&
AlterRequest::_Internal::change_column_fulltext(const AlterRequest* msg) {
return *msg->_impl_.kind_.change_column_fulltext_;
}
void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) { void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_kind(); clear_kind();
@@ -5424,6 +5432,30 @@ void AlterRequest::clear_change_table_options() {
clear_has_kind(); clear_has_kind();
} }
} }
void AlterRequest::set_allocated_change_column_fulltext(::greptime::v1::ChangeColumnFulltext* change_column_fulltext) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_kind();
if (change_column_fulltext) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_column_fulltext));
if (message_arena != submessage_arena) {
change_column_fulltext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, change_column_fulltext, submessage_arena);
}
set_has_change_column_fulltext();
_impl_.kind_.change_column_fulltext_ = change_column_fulltext;
}
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_column_fulltext)
}
void AlterRequest::clear_change_column_fulltext() {
if (_internal_has_change_column_fulltext()) {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.kind_.change_column_fulltext_;
}
clear_has_kind();
}
}
AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned) bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -5466,6 +5498,11 @@ AlterRequest::AlterRequest(const AlterRequest& from)
from._internal_change_table_options()); from._internal_change_table_options());
break; break;
} }
case kChangeColumnFulltext: {
_this->_internal_mutable_change_column_fulltext()->::greptime::v1::ChangeColumnFulltext::MergeFrom(
from._internal_change_column_fulltext());
break;
}
case KIND_NOT_SET: { case KIND_NOT_SET: {
break; break;
} }
@@ -5534,6 +5571,12 @@ void AlterRequest::clear_kind() {
} }
break; break;
} }
case kChangeColumnFulltext: {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.kind_.change_column_fulltext_;
}
break;
}
case KIND_NOT_SET: { case KIND_NOT_SET: {
break; break;
} }
@@ -5609,6 +5652,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
ptr = ctx->ParseMessage(_internal_mutable_change_column_fulltext(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default: default:
goto handle_unusual; goto handle_unusual;
} // switch } // switch
@@ -5678,6 +5729,13 @@ uint8_t* AlterRequest::_InternalSerialize(
_Internal::change_table_options(this).GetCachedSize(), target, stream); _Internal::change_table_options(this).GetCachedSize(), target, stream);
} }
// .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
if (_internal_has_change_column_fulltext()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(7, _Internal::change_column_fulltext(this),
_Internal::change_column_fulltext(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -5733,6 +5791,13 @@ size_t AlterRequest::ByteSizeLong() const {
*_impl_.kind_.change_table_options_); *_impl_.kind_.change_table_options_);
break; break;
} }
// .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
case kChangeColumnFulltext: {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.kind_.change_column_fulltext_);
break;
}
case KIND_NOT_SET: { case KIND_NOT_SET: {
break; break;
} }
@@ -5782,6 +5847,11 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
from._internal_change_table_options()); from._internal_change_table_options());
break; break;
} }
case kChangeColumnFulltext: {
_this->_internal_mutable_change_column_fulltext()->::greptime::v1::ChangeColumnFulltext::MergeFrom(
from._internal_change_column_fulltext());
break;
}
case KIND_NOT_SET: { case KIND_NOT_SET: {
break; break;
} }
+88
View File
@@ -3252,6 +3252,7 @@ class AlterRequest final :
kDropColumns = 3, kDropColumns = 3,
kChangeColumnTypes = 5, kChangeColumnTypes = 5,
kChangeTableOptions = 6, kChangeTableOptions = 6,
kChangeColumnFulltext = 7,
KIND_NOT_SET = 0, KIND_NOT_SET = 0,
}; };
@@ -3339,6 +3340,7 @@ class AlterRequest final :
kDropColumnsFieldNumber = 3, kDropColumnsFieldNumber = 3,
kChangeColumnTypesFieldNumber = 5, kChangeColumnTypesFieldNumber = 5,
kChangeTableOptionsFieldNumber = 6, kChangeTableOptionsFieldNumber = 6,
kChangeColumnFulltextFieldNumber = 7,
}; };
// uint64 region_id = 1; // uint64 region_id = 1;
void clear_region_id(); void clear_region_id();
@@ -3430,6 +3432,24 @@ class AlterRequest final :
::greptime::v1::ChangeTableOptions* change_table_options); ::greptime::v1::ChangeTableOptions* change_table_options);
::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options(); ::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options();
// .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
bool has_change_column_fulltext() const;
private:
bool _internal_has_change_column_fulltext() const;
public:
void clear_change_column_fulltext();
const ::greptime::v1::ChangeColumnFulltext& change_column_fulltext() const;
PROTOBUF_NODISCARD ::greptime::v1::ChangeColumnFulltext* release_change_column_fulltext();
::greptime::v1::ChangeColumnFulltext* mutable_change_column_fulltext();
void set_allocated_change_column_fulltext(::greptime::v1::ChangeColumnFulltext* change_column_fulltext);
private:
const ::greptime::v1::ChangeColumnFulltext& _internal_change_column_fulltext() const;
::greptime::v1::ChangeColumnFulltext* _internal_mutable_change_column_fulltext();
public:
void unsafe_arena_set_allocated_change_column_fulltext(
::greptime::v1::ChangeColumnFulltext* change_column_fulltext);
::greptime::v1::ChangeColumnFulltext* unsafe_arena_release_change_column_fulltext();
void clear_kind(); void clear_kind();
KindCase kind_case() const; KindCase kind_case() const;
// @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest) // @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest)
@@ -3439,6 +3459,7 @@ class AlterRequest final :
void set_has_drop_columns(); void set_has_drop_columns();
void set_has_change_column_types(); void set_has_change_column_types();
void set_has_change_table_options(); void set_has_change_table_options();
void set_has_change_column_fulltext();
inline bool has_kind() const; inline bool has_kind() const;
inline void clear_has_kind(); inline void clear_has_kind();
@@ -3456,6 +3477,7 @@ class AlterRequest final :
::greptime::v1::region::DropColumns* drop_columns_; ::greptime::v1::region::DropColumns* drop_columns_;
::greptime::v1::ChangeColumnTypes* change_column_types_; ::greptime::v1::ChangeColumnTypes* change_column_types_;
::greptime::v1::ChangeTableOptions* change_table_options_; ::greptime::v1::ChangeTableOptions* change_table_options_;
::greptime::v1::ChangeColumnFulltext* change_column_fulltext_;
} kind_; } kind_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1]; uint32_t _oneof_case_[1];
@@ -7778,6 +7800,72 @@ inline ::greptime::v1::ChangeTableOptions* AlterRequest::mutable_change_table_op
return _msg; return _msg;
} }
// .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
inline bool AlterRequest::_internal_has_change_column_fulltext() const {
return kind_case() == kChangeColumnFulltext;
}
inline bool AlterRequest::has_change_column_fulltext() const {
return _internal_has_change_column_fulltext();
}
inline void AlterRequest::set_has_change_column_fulltext() {
_impl_._oneof_case_[0] = kChangeColumnFulltext;
}
inline ::greptime::v1::ChangeColumnFulltext* AlterRequest::release_change_column_fulltext() {
// @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_column_fulltext)
if (_internal_has_change_column_fulltext()) {
clear_has_kind();
::greptime::v1::ChangeColumnFulltext* temp = _impl_.kind_.change_column_fulltext_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
_impl_.kind_.change_column_fulltext_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::greptime::v1::ChangeColumnFulltext& AlterRequest::_internal_change_column_fulltext() const {
return _internal_has_change_column_fulltext()
? *_impl_.kind_.change_column_fulltext_
: reinterpret_cast< ::greptime::v1::ChangeColumnFulltext&>(::greptime::v1::_ChangeColumnFulltext_default_instance_);
}
inline const ::greptime::v1::ChangeColumnFulltext& AlterRequest::change_column_fulltext() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_column_fulltext)
return _internal_change_column_fulltext();
}
inline ::greptime::v1::ChangeColumnFulltext* AlterRequest::unsafe_arena_release_change_column_fulltext() {
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_column_fulltext)
if (_internal_has_change_column_fulltext()) {
clear_has_kind();
::greptime::v1::ChangeColumnFulltext* temp = _impl_.kind_.change_column_fulltext_;
_impl_.kind_.change_column_fulltext_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void AlterRequest::unsafe_arena_set_allocated_change_column_fulltext(::greptime::v1::ChangeColumnFulltext* change_column_fulltext) {
clear_kind();
if (change_column_fulltext) {
set_has_change_column_fulltext();
_impl_.kind_.change_column_fulltext_ = change_column_fulltext;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_column_fulltext)
}
inline ::greptime::v1::ChangeColumnFulltext* AlterRequest::_internal_mutable_change_column_fulltext() {
if (!_internal_has_change_column_fulltext()) {
clear_kind();
set_has_change_column_fulltext();
_impl_.kind_.change_column_fulltext_ = CreateMaybeMessage< ::greptime::v1::ChangeColumnFulltext >(GetArenaForAllocation());
}
return _impl_.kind_.change_column_fulltext_;
}
inline ::greptime::v1::ChangeColumnFulltext* AlterRequest::mutable_change_column_fulltext() {
::greptime::v1::ChangeColumnFulltext* _msg = _internal_mutable_change_column_fulltext();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_column_fulltext)
return _msg;
}
// uint64 schema_version = 4; // uint64 schema_version = 4;
inline void AlterRequest::clear_schema_version() { inline void AlterRequest::clear_schema_version() {
_impl_.schema_version_ = uint64_t{0u}; _impl_.schema_version_ = uint64_t{0u};
+400 -233
View File
@@ -34,6 +34,52 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
) )
type Analyzer int32
const (
Analyzer_ENGLISH Analyzer = 0
Analyzer_CHINESE Analyzer = 1
)
// Enum value maps for Analyzer.
var (
Analyzer_name = map[int32]string{
0: "ENGLISH",
1: "CHINESE",
}
Analyzer_value = map[string]int32{
"ENGLISH": 0,
"CHINESE": 1,
}
)
func (x Analyzer) Enum() *Analyzer {
p := new(Analyzer)
*p = x
return p
}
func (x Analyzer) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Analyzer) Descriptor() protoreflect.EnumDescriptor {
return file_greptime_v1_ddl_proto_enumTypes[0].Descriptor()
}
func (Analyzer) Type() protoreflect.EnumType {
return &file_greptime_v1_ddl_proto_enumTypes[0]
}
func (x Analyzer) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Analyzer.Descriptor instead.
func (Analyzer) EnumDescriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{0}
}
type AddColumnLocation_LocationType int32 type AddColumnLocation_LocationType int32
const ( const (
@@ -64,11 +110,11 @@ func (x AddColumnLocation_LocationType) String() string {
} }
func (AddColumnLocation_LocationType) Descriptor() protoreflect.EnumDescriptor { func (AddColumnLocation_LocationType) Descriptor() protoreflect.EnumDescriptor {
return file_greptime_v1_ddl_proto_enumTypes[0].Descriptor() return file_greptime_v1_ddl_proto_enumTypes[1].Descriptor()
} }
func (AddColumnLocation_LocationType) Type() protoreflect.EnumType { func (AddColumnLocation_LocationType) Type() protoreflect.EnumType {
return &file_greptime_v1_ddl_proto_enumTypes[0] return &file_greptime_v1_ddl_proto_enumTypes[1]
} }
func (x AddColumnLocation_LocationType) Number() protoreflect.EnumNumber { func (x AddColumnLocation_LocationType) Number() protoreflect.EnumNumber {
@@ -798,6 +844,7 @@ type AlterExpr struct {
// *AlterExpr_RenameTable // *AlterExpr_RenameTable
// *AlterExpr_ChangeColumnTypes // *AlterExpr_ChangeColumnTypes
// *AlterExpr_ChangeTableOptions // *AlterExpr_ChangeTableOptions
// *AlterExpr_ChangeColumnFulltext
Kind isAlterExpr_Kind `protobuf_oneof:"kind"` Kind isAlterExpr_Kind `protobuf_oneof:"kind"`
} }
@@ -896,6 +943,13 @@ func (x *AlterExpr) GetChangeTableOptions() *ChangeTableOptions {
return nil return nil
} }
func (x *AlterExpr) GetChangeColumnFulltext() *ChangeColumnFulltext {
if x, ok := x.GetKind().(*AlterExpr_ChangeColumnFulltext); ok {
return x.ChangeColumnFulltext
}
return nil
}
type isAlterExpr_Kind interface { type isAlterExpr_Kind interface {
isAlterExpr_Kind() isAlterExpr_Kind()
} }
@@ -920,6 +974,10 @@ type AlterExpr_ChangeTableOptions struct {
ChangeTableOptions *ChangeTableOptions `protobuf:"bytes,8,opt,name=change_table_options,json=changeTableOptions,proto3,oneof"` ChangeTableOptions *ChangeTableOptions `protobuf:"bytes,8,opt,name=change_table_options,json=changeTableOptions,proto3,oneof"`
} }
type AlterExpr_ChangeColumnFulltext struct {
ChangeColumnFulltext *ChangeColumnFulltext `protobuf:"bytes,9,opt,name=change_column_fulltext,json=changeColumnFulltext,proto3,oneof"`
}
func (*AlterExpr_AddColumns) isAlterExpr_Kind() {} func (*AlterExpr_AddColumns) isAlterExpr_Kind() {}
func (*AlterExpr_DropColumns) isAlterExpr_Kind() {} func (*AlterExpr_DropColumns) isAlterExpr_Kind() {}
@@ -930,6 +988,8 @@ func (*AlterExpr_ChangeColumnTypes) isAlterExpr_Kind() {}
func (*AlterExpr_ChangeTableOptions) isAlterExpr_Kind() {} func (*AlterExpr_ChangeTableOptions) isAlterExpr_Kind() {}
func (*AlterExpr_ChangeColumnFulltext) isAlterExpr_Kind() {}
type DropTableExpr struct { type DropTableExpr struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -1923,6 +1983,77 @@ func (x *AddColumnLocation) GetAfterColumnName() string {
return "" return ""
} }
type ChangeColumnFulltext struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
Analyzer Analyzer `protobuf:"varint,3,opt,name=analyzer,proto3,enum=greptime.v1.Analyzer" json:"analyzer,omitempty"`
CaseSensitive bool `protobuf:"varint,4,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
}
func (x *ChangeColumnFulltext) Reset() {
*x = ChangeColumnFulltext{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_ddl_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ChangeColumnFulltext) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChangeColumnFulltext) ProtoMessage() {}
func (x *ChangeColumnFulltext) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_ddl_proto_msgTypes[24]
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 ChangeColumnFulltext.ProtoReflect.Descriptor instead.
func (*ChangeColumnFulltext) Descriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{24}
}
func (x *ChangeColumnFulltext) GetColumnName() string {
if x != nil {
return x.ColumnName
}
return ""
}
func (x *ChangeColumnFulltext) GetEnable() bool {
if x != nil {
return x.Enable
}
return false
}
func (x *ChangeColumnFulltext) GetAnalyzer() Analyzer {
if x != nil {
return x.Analyzer
}
return Analyzer_ENGLISH
}
func (x *ChangeColumnFulltext) GetCaseSensitive() bool {
if x != nil {
return x.CaseSensitive
}
return false
}
var File_greptime_v1_ddl_proto protoreflect.FileDescriptor var File_greptime_v1_ddl_proto protoreflect.FileDescriptor
var file_greptime_v1_ddl_proto_rawDesc = []byte{ var file_greptime_v1_ddl_proto_rawDesc = []byte{
@@ -2081,7 +2212,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 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, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
0x22, 0xd7, 0x03, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x22, 0xb2, 0x04, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21,
0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 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, 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, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
@@ -2110,153 +2241,172 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12,
0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xc9, 0x01, 0x0a, 0x0d, 0x44, 0x6e, 0x73, 0x12, 0x59, 0x0a, 0x16, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6c,
0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x6d, 0x6e, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x18, 0x09, 0x20, 0x01,
0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x46, 0x75, 0x6c,
0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x14, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x42, 0x06, 0x0a,
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xc9, 0x01, 0x0a, 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61,
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c,
0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63,
0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61,
0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67,
0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x64,
0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74,
0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,
0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61,
0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
0x74, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73,
0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14,
0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78,
0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x46, 0x0a,
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65,
0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e,
0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70,
0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61,
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c,
0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63,
0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61,
0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67,
0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x10, 0x44,
0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12,
0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61,
0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d,
0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e,
0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65,
0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f,
0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64,
0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67,
0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f,
0x22, 0x62, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x13, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12,
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18,
0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b,
0x65, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x62, 0x0a, 0x11, 0x43,
0x79, 0x70, 0x65, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73,
0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x63, 0x68,
0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24,
0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18,
0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x43, 0x68, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63,
0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61,
0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65,
0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61,
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43,
0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c,
0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,
0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
0x6f, 0x6e, 0x52, 0x13, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61,
0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x66, 0x0a, 0x12, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x15, 0x74, 0x61, 0x72, 0x67,
0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x50, 0x0a, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
0x14, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x74,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x63, 0x68, 0x61, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x6f, 0x6e, 0x22, 0x66, 0x0a, 0x12, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c,
0x3b, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x50, 0x0a, 0x14, 0x63, 0x68, 0x61, 0x6e,
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x67, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61,
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x3b, 0x0a, 0x11, 0x43, 0x68,
0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12,
0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x18, 0x0a, 0x06, 0x46, 0x6c, 0x6f, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
0x77, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x02, 0x69, 0x64, 0x22, 0x8e, 0x03, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43,
0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62,
0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x52, 0x02, 0x69, 0x64, 0x22, 0x18, 0x0a, 0x06, 0x46, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x0e,
0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8e,
0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x03, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04,
0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65,
0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73,
0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64,
0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e,
0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65,
0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65,
0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d,
0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65,
0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74,
0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x70, 0x74,
0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65,
0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f,
0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22,
0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63,
0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67,
0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f,
0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63,
0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x42, 0x4c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74,
0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72,
0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09,
0x6f, 0x74, 0x6f, 0x33, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x22, 0xa9, 0x01, 0x0a, 0x14, 0x43, 0x68,
0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 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, 0x2a, 0x24, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65,
0x72, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b,
0x0a, 0x07, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x53, 0x45, 0x10, 0x01, 0x42, 0x4c, 0x0a, 0x0e, 0x69,
0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44,
0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
} }
var ( var (
@@ -2271,90 +2421,94 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte {
return file_greptime_v1_ddl_proto_rawDescData return file_greptime_v1_ddl_proto_rawDescData
} }
var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 27) var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 28)
var file_greptime_v1_ddl_proto_goTypes = []interface{}{ var file_greptime_v1_ddl_proto_goTypes = []interface{}{
(AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType (Analyzer)(0), // 0: greptime.v1.Analyzer
(*DdlRequest)(nil), // 1: greptime.v1.DdlRequest (AddColumnLocation_LocationType)(0), // 1: greptime.v1.AddColumnLocation.LocationType
(*CreateFlowExpr)(nil), // 2: greptime.v1.CreateFlowExpr (*DdlRequest)(nil), // 2: greptime.v1.DdlRequest
(*DropFlowExpr)(nil), // 3: greptime.v1.DropFlowExpr (*CreateFlowExpr)(nil), // 3: greptime.v1.CreateFlowExpr
(*CreateViewExpr)(nil), // 4: greptime.v1.CreateViewExpr (*DropFlowExpr)(nil), // 4: greptime.v1.DropFlowExpr
(*DropViewExpr)(nil), // 5: greptime.v1.DropViewExpr (*CreateViewExpr)(nil), // 5: greptime.v1.CreateViewExpr
(*CreateTableExpr)(nil), // 6: greptime.v1.CreateTableExpr (*DropViewExpr)(nil), // 6: greptime.v1.DropViewExpr
(*AlterExpr)(nil), // 7: greptime.v1.AlterExpr (*CreateTableExpr)(nil), // 7: greptime.v1.CreateTableExpr
(*DropTableExpr)(nil), // 8: greptime.v1.DropTableExpr (*AlterExpr)(nil), // 8: greptime.v1.AlterExpr
(*CreateDatabaseExpr)(nil), // 9: greptime.v1.CreateDatabaseExpr (*DropTableExpr)(nil), // 9: greptime.v1.DropTableExpr
(*TruncateTableExpr)(nil), // 10: greptime.v1.TruncateTableExpr (*CreateDatabaseExpr)(nil), // 10: greptime.v1.CreateDatabaseExpr
(*DropDatabaseExpr)(nil), // 11: greptime.v1.DropDatabaseExpr (*TruncateTableExpr)(nil), // 11: greptime.v1.TruncateTableExpr
(*AddColumns)(nil), // 12: greptime.v1.AddColumns (*DropDatabaseExpr)(nil), // 12: greptime.v1.DropDatabaseExpr
(*DropColumns)(nil), // 13: greptime.v1.DropColumns (*AddColumns)(nil), // 13: greptime.v1.AddColumns
(*ChangeColumnTypes)(nil), // 14: greptime.v1.ChangeColumnTypes (*DropColumns)(nil), // 14: greptime.v1.DropColumns
(*RenameTable)(nil), // 15: greptime.v1.RenameTable (*ChangeColumnTypes)(nil), // 15: greptime.v1.ChangeColumnTypes
(*AddColumn)(nil), // 16: greptime.v1.AddColumn (*RenameTable)(nil), // 16: greptime.v1.RenameTable
(*ChangeColumnType)(nil), // 17: greptime.v1.ChangeColumnType (*AddColumn)(nil), // 17: greptime.v1.AddColumn
(*ChangeTableOptions)(nil), // 18: greptime.v1.ChangeTableOptions (*ChangeColumnType)(nil), // 18: greptime.v1.ChangeColumnType
(*ChangeTableOption)(nil), // 19: greptime.v1.ChangeTableOption (*ChangeTableOptions)(nil), // 19: greptime.v1.ChangeTableOptions
(*DropColumn)(nil), // 20: greptime.v1.DropColumn (*ChangeTableOption)(nil), // 20: greptime.v1.ChangeTableOption
(*TableId)(nil), // 21: greptime.v1.TableId (*DropColumn)(nil), // 21: greptime.v1.DropColumn
(*FlowId)(nil), // 22: greptime.v1.FlowId (*TableId)(nil), // 22: greptime.v1.TableId
(*ColumnDef)(nil), // 23: greptime.v1.ColumnDef (*FlowId)(nil), // 23: greptime.v1.FlowId
(*AddColumnLocation)(nil), // 24: greptime.v1.AddColumnLocation (*ColumnDef)(nil), // 24: greptime.v1.ColumnDef
nil, // 25: greptime.v1.CreateFlowExpr.FlowOptionsEntry (*AddColumnLocation)(nil), // 25: greptime.v1.AddColumnLocation
nil, // 26: greptime.v1.CreateTableExpr.TableOptionsEntry (*ChangeColumnFulltext)(nil), // 26: greptime.v1.ChangeColumnFulltext
nil, // 27: greptime.v1.CreateDatabaseExpr.OptionsEntry nil, // 27: greptime.v1.CreateFlowExpr.FlowOptionsEntry
(*TableName)(nil), // 28: greptime.v1.TableName nil, // 28: greptime.v1.CreateTableExpr.TableOptionsEntry
(*ExpireAfter)(nil), // 29: greptime.v1.ExpireAfter nil, // 29: greptime.v1.CreateDatabaseExpr.OptionsEntry
(ColumnDataType)(0), // 30: greptime.v1.ColumnDataType (*TableName)(nil), // 30: greptime.v1.TableName
(*ColumnDataTypeExtension)(nil), // 31: greptime.v1.ColumnDataTypeExtension (*ExpireAfter)(nil), // 31: greptime.v1.ExpireAfter
(SemanticType)(0), // 32: greptime.v1.SemanticType (ColumnDataType)(0), // 32: greptime.v1.ColumnDataType
(*ColumnOptions)(nil), // 33: greptime.v1.ColumnOptions (*ColumnDataTypeExtension)(nil), // 33: greptime.v1.ColumnDataTypeExtension
(SemanticType)(0), // 34: greptime.v1.SemanticType
(*ColumnOptions)(nil), // 35: greptime.v1.ColumnOptions
} }
var file_greptime_v1_ddl_proto_depIdxs = []int32{ var file_greptime_v1_ddl_proto_depIdxs = []int32{
9, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr 10, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
6, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr 7, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr
7, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr 8, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr
8, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr 9, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr
10, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr 11, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr
2, // 5: greptime.v1.DdlRequest.create_flow:type_name -> greptime.v1.CreateFlowExpr 3, // 5: greptime.v1.DdlRequest.create_flow:type_name -> greptime.v1.CreateFlowExpr
3, // 6: greptime.v1.DdlRequest.drop_flow:type_name -> greptime.v1.DropFlowExpr 4, // 6: greptime.v1.DdlRequest.drop_flow:type_name -> greptime.v1.DropFlowExpr
4, // 7: greptime.v1.DdlRequest.create_view:type_name -> greptime.v1.CreateViewExpr 5, // 7: greptime.v1.DdlRequest.create_view:type_name -> greptime.v1.CreateViewExpr
5, // 8: greptime.v1.DdlRequest.drop_view:type_name -> greptime.v1.DropViewExpr 6, // 8: greptime.v1.DdlRequest.drop_view:type_name -> greptime.v1.DropViewExpr
28, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName 30, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName
28, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName 30, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName
29, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter 31, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter
25, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry 27, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry
22, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId 23, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId
28, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName 30, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName
21, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId 22, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId
23, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef 24, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef
26, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry 28, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
21, // 18: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId 22, // 18: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId
12, // 19: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns 13, // 19: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns
13, // 20: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns 14, // 20: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns
15, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable 16, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable
14, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes 15, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes
18, // 23: greptime.v1.AlterExpr.change_table_options:type_name -> greptime.v1.ChangeTableOptions 19, // 23: greptime.v1.AlterExpr.change_table_options:type_name -> greptime.v1.ChangeTableOptions
21, // 24: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId 26, // 24: greptime.v1.AlterExpr.change_column_fulltext:type_name -> greptime.v1.ChangeColumnFulltext
27, // 25: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry 22, // 25: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId
21, // 26: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId 29, // 26: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry
16, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn 22, // 27: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId
20, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn 17, // 28: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
17, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType 21, // 29: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
23, // 30: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef 18, // 30: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType
24, // 31: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation 24, // 31: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
30, // 32: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType 25, // 32: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
31, // 33: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension 32, // 33: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType
19, // 34: greptime.v1.ChangeTableOptions.change_table_options:type_name -> greptime.v1.ChangeTableOption 33, // 34: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension
30, // 35: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType 20, // 35: greptime.v1.ChangeTableOptions.change_table_options:type_name -> greptime.v1.ChangeTableOption
32, // 36: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType 32, // 36: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType
31, // 37: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension 34, // 37: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType
33, // 38: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions 33, // 38: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
0, // 39: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType 35, // 39: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions
40, // [40:40] is the sub-list for method output_type 1, // 40: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType
40, // [40:40] is the sub-list for method input_type 0, // 41: greptime.v1.ChangeColumnFulltext.analyzer:type_name -> greptime.v1.Analyzer
40, // [40:40] is the sub-list for extension type_name 42, // [42:42] is the sub-list for method output_type
40, // [40:40] is the sub-list for extension extendee 42, // [42:42] is the sub-list for method input_type
0, // [0:40] is the sub-list for field type_name 42, // [42:42] is the sub-list for extension type_name
42, // [42:42] is the sub-list for extension extendee
0, // [0:42] is the sub-list for field type_name
} }
func init() { file_greptime_v1_ddl_proto_init() } func init() { file_greptime_v1_ddl_proto_init() }
@@ -2652,6 +2806,18 @@ func file_greptime_v1_ddl_proto_init() {
return nil return nil
} }
} }
file_greptime_v1_ddl_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ChangeColumnFulltext); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
} }
file_greptime_v1_ddl_proto_msgTypes[0].OneofWrappers = []interface{}{ file_greptime_v1_ddl_proto_msgTypes[0].OneofWrappers = []interface{}{
(*DdlRequest_CreateDatabase)(nil), (*DdlRequest_CreateDatabase)(nil),
@@ -2670,14 +2836,15 @@ func file_greptime_v1_ddl_proto_init() {
(*AlterExpr_RenameTable)(nil), (*AlterExpr_RenameTable)(nil),
(*AlterExpr_ChangeColumnTypes)(nil), (*AlterExpr_ChangeColumnTypes)(nil),
(*AlterExpr_ChangeTableOptions)(nil), (*AlterExpr_ChangeTableOptions)(nil),
(*AlterExpr_ChangeColumnFulltext)(nil),
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, RawDescriptor: file_greptime_v1_ddl_proto_rawDesc,
NumEnums: 1, NumEnums: 2,
NumMessages: 27, NumMessages: 28,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
File diff suppressed because it is too large Load Diff
@@ -16448,6 +16448,21 @@ java.lang.String defaultValue);
*/ */
io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder(); io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder();
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
* @return Whether the changeColumnFulltext field is set.
*/
boolean hasChangeColumnFulltext();
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
* @return The changeColumnFulltext.
*/
io.greptime.v1.Ddl.ChangeColumnFulltext getChangeColumnFulltext();
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
*/
io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder getChangeColumnFulltextOrBuilder();
/** /**
* <pre> * <pre>
* The version of the schema before applying the alteration. * The version of the schema before applying the alteration.
@@ -16571,6 +16586,20 @@ java.lang.String defaultValue);
kindCase_ = 6; kindCase_ = 6;
break; break;
} }
case 58: {
io.greptime.v1.Ddl.ChangeColumnFulltext.Builder subBuilder = null;
if (kindCase_ == 7) {
subBuilder = ((io.greptime.v1.Ddl.ChangeColumnFulltext) kind_).toBuilder();
}
kind_ =
input.readMessage(io.greptime.v1.Ddl.ChangeColumnFulltext.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeColumnFulltext) kind_);
kind_ = subBuilder.buildPartial();
}
kindCase_ = 7;
break;
}
default: { default: {
if (!parseUnknownField( if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) { input, unknownFields, extensionRegistry, tag)) {
@@ -16614,6 +16643,7 @@ java.lang.String defaultValue);
DROP_COLUMNS(3), DROP_COLUMNS(3),
CHANGE_COLUMN_TYPES(5), CHANGE_COLUMN_TYPES(5),
CHANGE_TABLE_OPTIONS(6), CHANGE_TABLE_OPTIONS(6),
CHANGE_COLUMN_FULLTEXT(7),
KIND_NOT_SET(0); KIND_NOT_SET(0);
private final int value; private final int value;
private KindCase(int value) { private KindCase(int value) {
@@ -16635,6 +16665,7 @@ java.lang.String defaultValue);
case 3: return DROP_COLUMNS; case 3: return DROP_COLUMNS;
case 5: return CHANGE_COLUMN_TYPES; case 5: return CHANGE_COLUMN_TYPES;
case 6: return CHANGE_TABLE_OPTIONS; case 6: return CHANGE_TABLE_OPTIONS;
case 7: return CHANGE_COLUMN_FULLTEXT;
case 0: return KIND_NOT_SET; case 0: return KIND_NOT_SET;
default: return null; default: return null;
} }
@@ -16785,6 +16816,37 @@ java.lang.String defaultValue);
return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
} }
public static final int CHANGE_COLUMN_FULLTEXT_FIELD_NUMBER = 7;
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
* @return Whether the changeColumnFulltext field is set.
*/
@java.lang.Override
public boolean hasChangeColumnFulltext() {
return kindCase_ == 7;
}
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
* @return The changeColumnFulltext.
*/
@java.lang.Override
public io.greptime.v1.Ddl.ChangeColumnFulltext getChangeColumnFulltext() {
if (kindCase_ == 7) {
return (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_;
}
return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance();
}
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
*/
@java.lang.Override
public io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder getChangeColumnFulltextOrBuilder() {
if (kindCase_ == 7) {
return (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_;
}
return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance();
}
public static final int SCHEMA_VERSION_FIELD_NUMBER = 4; public static final int SCHEMA_VERSION_FIELD_NUMBER = 4;
private long schemaVersion_; private long schemaVersion_;
/** /**
@@ -16832,6 +16894,9 @@ java.lang.String defaultValue);
if (kindCase_ == 6) { if (kindCase_ == 6) {
output.writeMessage(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_); output.writeMessage(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_);
} }
if (kindCase_ == 7) {
output.writeMessage(7, (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_);
}
unknownFields.writeTo(output); unknownFields.writeTo(output);
} }
@@ -16865,6 +16930,10 @@ java.lang.String defaultValue);
size += com.google.protobuf.CodedOutputStream size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_); .computeMessageSize(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_);
} }
if (kindCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_);
}
size += unknownFields.getSerializedSize(); size += unknownFields.getSerializedSize();
memoizedSize = size; memoizedSize = size;
return size; return size;
@@ -16902,6 +16971,10 @@ java.lang.String defaultValue);
if (!getChangeTableOptions() if (!getChangeTableOptions()
.equals(other.getChangeTableOptions())) return false; .equals(other.getChangeTableOptions())) return false;
break; break;
case 7:
if (!getChangeColumnFulltext()
.equals(other.getChangeColumnFulltext())) return false;
break;
case 0: case 0:
default: default:
} }
@@ -16939,6 +17012,10 @@ java.lang.String defaultValue);
hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER; hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getChangeTableOptions().hashCode(); hash = (53 * hash) + getChangeTableOptions().hashCode();
break; break;
case 7:
hash = (37 * hash) + CHANGE_COLUMN_FULLTEXT_FIELD_NUMBER;
hash = (53 * hash) + getChangeColumnFulltext().hashCode();
break;
case 0: case 0:
default: default:
} }
@@ -17136,6 +17213,13 @@ java.lang.String defaultValue);
result.kind_ = changeTableOptionsBuilder_.build(); result.kind_ = changeTableOptionsBuilder_.build();
} }
} }
if (kindCase_ == 7) {
if (changeColumnFulltextBuilder_ == null) {
result.kind_ = kind_;
} else {
result.kind_ = changeColumnFulltextBuilder_.build();
}
}
result.schemaVersion_ = schemaVersion_; result.schemaVersion_ = schemaVersion_;
result.kindCase_ = kindCase_; result.kindCase_ = kindCase_;
onBuilt(); onBuilt();
@@ -17209,6 +17293,10 @@ java.lang.String defaultValue);
mergeChangeTableOptions(other.getChangeTableOptions()); mergeChangeTableOptions(other.getChangeTableOptions());
break; break;
} }
case CHANGE_COLUMN_FULLTEXT: {
mergeChangeColumnFulltext(other.getChangeColumnFulltext());
break;
}
case KIND_NOT_SET: { case KIND_NOT_SET: {
break; break;
} }
@@ -17856,6 +17944,148 @@ java.lang.String defaultValue);
return changeTableOptionsBuilder_; return changeTableOptionsBuilder_;
} }
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Ddl.ChangeColumnFulltext, io.greptime.v1.Ddl.ChangeColumnFulltext.Builder, io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder> changeColumnFulltextBuilder_;
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
* @return Whether the changeColumnFulltext field is set.
*/
@java.lang.Override
public boolean hasChangeColumnFulltext() {
return kindCase_ == 7;
}
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
* @return The changeColumnFulltext.
*/
@java.lang.Override
public io.greptime.v1.Ddl.ChangeColumnFulltext getChangeColumnFulltext() {
if (changeColumnFulltextBuilder_ == null) {
if (kindCase_ == 7) {
return (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_;
}
return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance();
} else {
if (kindCase_ == 7) {
return changeColumnFulltextBuilder_.getMessage();
}
return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance();
}
}
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
*/
public Builder setChangeColumnFulltext(io.greptime.v1.Ddl.ChangeColumnFulltext value) {
if (changeColumnFulltextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
changeColumnFulltextBuilder_.setMessage(value);
}
kindCase_ = 7;
return this;
}
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
*/
public Builder setChangeColumnFulltext(
io.greptime.v1.Ddl.ChangeColumnFulltext.Builder builderForValue) {
if (changeColumnFulltextBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
changeColumnFulltextBuilder_.setMessage(builderForValue.build());
}
kindCase_ = 7;
return this;
}
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
*/
public Builder mergeChangeColumnFulltext(io.greptime.v1.Ddl.ChangeColumnFulltext value) {
if (changeColumnFulltextBuilder_ == null) {
if (kindCase_ == 7 &&
kind_ != io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance()) {
kind_ = io.greptime.v1.Ddl.ChangeColumnFulltext.newBuilder((io.greptime.v1.Ddl.ChangeColumnFulltext) kind_)
.mergeFrom(value).buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
if (kindCase_ == 7) {
changeColumnFulltextBuilder_.mergeFrom(value);
} else {
changeColumnFulltextBuilder_.setMessage(value);
}
}
kindCase_ = 7;
return this;
}
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
*/
public Builder clearChangeColumnFulltext() {
if (changeColumnFulltextBuilder_ == null) {
if (kindCase_ == 7) {
kindCase_ = 0;
kind_ = null;
onChanged();
}
} else {
if (kindCase_ == 7) {
kindCase_ = 0;
kind_ = null;
}
changeColumnFulltextBuilder_.clear();
}
return this;
}
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
*/
public io.greptime.v1.Ddl.ChangeColumnFulltext.Builder getChangeColumnFulltextBuilder() {
return getChangeColumnFulltextFieldBuilder().getBuilder();
}
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
*/
@java.lang.Override
public io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder getChangeColumnFulltextOrBuilder() {
if ((kindCase_ == 7) && (changeColumnFulltextBuilder_ != null)) {
return changeColumnFulltextBuilder_.getMessageOrBuilder();
} else {
if (kindCase_ == 7) {
return (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_;
}
return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance();
}
}
/**
* <code>.greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Ddl.ChangeColumnFulltext, io.greptime.v1.Ddl.ChangeColumnFulltext.Builder, io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder>
getChangeColumnFulltextFieldBuilder() {
if (changeColumnFulltextBuilder_ == null) {
if (!(kindCase_ == 7)) {
kind_ = io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance();
}
changeColumnFulltextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Ddl.ChangeColumnFulltext, io.greptime.v1.Ddl.ChangeColumnFulltext.Builder, io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder>(
(io.greptime.v1.Ddl.ChangeColumnFulltext) kind_,
getParentForChildren(),
isClean());
kind_ = null;
}
kindCase_ = 7;
onChanged();;
return changeColumnFulltextBuilder_;
}
private long schemaVersion_ ; private long schemaVersion_ ;
/** /**
* <pre> * <pre>
@@ -24794,36 +25024,38 @@ java.lang.String defaultValue);
".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + ".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " +
"\001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001" + "\001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001" +
"(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003(\0132 ." + "(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003(\0132 ." +
"greptime.v1.region.AlterRequest\"\261\002\n\014Alte" + "greptime.v1.region.AlterRequest\"\366\002\n\014Alte" +
"rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum" + "rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum" +
"ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns" + "ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns" +
"H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r" + "H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r" +
"egion.DropColumnsH\000\022=\n\023change_column_typ" + "egion.DropColumnsH\000\022=\n\023change_column_typ" +
"es\030\005 \001(\0132\036.greptime.v1.ChangeColumnTypes" + "es\030\005 \001(\0132\036.greptime.v1.ChangeColumnTypes" +
"H\000\022?\n\024change_table_options\030\006 \001(\0132\037.grept" + "H\000\022?\n\024change_table_options\030\006 \001(\0132\037.grept" +
"ime.v1.ChangeTableOptionsH\000\022\026\n\016schema_ve" + "ime.v1.ChangeTableOptionsH\000\022C\n\026change_co" +
"rsion\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add" + "lumn_fulltext\030\007 \001(\0132!.greptime.v1.Change" +
"_columns\030\001 \003(\0132\035.greptime.v1.region.AddC" + "ColumnFulltextH\000\022\026\n\016schema_version\030\004 \001(\004" +
"olumn\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003" + "B\006\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 " +
"(\0132\036.greptime.v1.region.DropColumn\"v\n\tAd" + "\003(\0132\035.greptime.v1.region.AddColumn\"C\n\013Dr" +
"dColumn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v" + "opColumns\0224\n\014drop_columns\030\001 \003(\0132\036.grepti" +
"1.region.RegionColumnDef\0220\n\010location\030\003 \001" + "me.v1.region.DropColumn\"v\n\tAddColumn\0227\n\n" +
"(\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDr" + "column_def\030\001 \001(\0132#.greptime.v1.region.Re" +
"opColumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021" + "gionColumnDef\0220\n\010location\030\003 \001(\0132\036.grepti" +
"\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWi" + "me.v1.AddColumnLocation\"\032\n\nDropColumn\022\014\n" +
"ndow\022\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016Compact" + "\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id" +
"Request\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 " + "\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016win" +
"\001(\0132\033.greptime.v1.region.RegularH\000\0229\n\rst" + "dow_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\t" +
"rict_window\030\003 \001(\0132 .greptime.v1.region.S" + "region_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.grept" +
"trictWindowH\000B\t\n\007options\"$\n\017TruncateRequ" + "ime.v1.region.RegularH\000\0229\n\rstrict_window" +
"est\022\021\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDe" + "\030\003 \001(\0132 .greptime.v1.region.StrictWindow" +
"f\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colu" + "H\000B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregi" +
"mnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Ha" + "on_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn" +
"ndle\022!.greptime.v1.region.RegionRequest\032" + "_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tco" +
"\".greptime.v1.region.RegionResponseB]\n\025i" + "lumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grep" +
"o.greptime.v1.regionB\006ServerZ<github.com" + "time.v1.region.RegionRequest\032\".greptime." +
"/GreptimeTeam/greptime-proto/go/greptime" + "v1.region.RegionResponseB]\n\025io.greptime." +
"/v1/regionb\006proto3" "v1.regionB\006ServerZ<github.com/GreptimeTe" +
"am/greptime-proto/go/greptime/v1/regionb" +
"\006proto3"
}; };
descriptor = com.google.protobuf.Descriptors.FileDescriptor descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData, .internalBuildGeneratedFileFrom(descriptorData,
@@ -24951,7 +25183,7 @@ java.lang.String defaultValue);
internal_static_greptime_v1_region_AlterRequest_fieldAccessorTable = new internal_static_greptime_v1_region_AlterRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_region_AlterRequest_descriptor, internal_static_greptime_v1_region_AlterRequest_descriptor,
new java.lang.String[] { "RegionId", "AddColumns", "DropColumns", "ChangeColumnTypes", "ChangeTableOptions", "SchemaVersion", "Kind", }); new java.lang.String[] { "RegionId", "AddColumns", "DropColumns", "ChangeColumnTypes", "ChangeTableOptions", "ChangeColumnFulltext", "SchemaVersion", "Kind", });
internal_static_greptime_v1_region_AddColumns_descriptor = internal_static_greptime_v1_region_AddColumns_descriptor =
getDescriptor().getMessageTypes().get(16); getDescriptor().getMessageTypes().get(16);
internal_static_greptime_v1_region_AddColumns_fieldAccessorTable = new internal_static_greptime_v1_region_AddColumns_fieldAccessorTable = new
+13
View File
@@ -110,6 +110,7 @@ message AlterExpr {
RenameTable rename_table = 6; RenameTable rename_table = 6;
ChangeColumnTypes change_column_types = 7; ChangeColumnTypes change_column_types = 7;
ChangeTableOptions change_table_options = 8; ChangeTableOptions change_table_options = 8;
ChangeColumnFulltext change_column_fulltext = 9;
} }
} }
@@ -198,3 +199,15 @@ message AddColumnLocation {
LocationType location_type = 1; LocationType location_type = 1;
string after_column_name = 2; string after_column_name = 2;
} }
enum Analyzer {
ENGLISH = 0;
CHINESE = 1;
}
message ChangeColumnFulltext {
string column_name = 1;
bool enable = 2;
Analyzer analyzer = 3;
bool case_sensitive = 4;
}
+1
View File
@@ -129,6 +129,7 @@ message AlterRequest {
DropColumns drop_columns = 3; DropColumns drop_columns = 3;
ChangeColumnTypes change_column_types = 5; ChangeColumnTypes change_column_types = 5;
ChangeTableOptions change_table_options = 6; ChangeTableOptions change_table_options = 6;
ChangeColumnFulltext change_column_fulltext = 7;
} }
// The version of the schema before applying the alteration. // The version of the schema before applying the alteration.
uint64 schema_version = 4; uint64 schema_version = 4;