feat: add expr for altering table attributes (#192)
* feat: add expr for altering table attributes * feat/add-modify-table-attr-expr: Added ChangeTableAttributes to AlterRequest in server.proto - Introduced ChangeTableAttributes message handling in AlterRequest. - Updated server.pb.cc and server.pb.h to include logic for new ChangeTableAttributes. - Altered Java Server class to support ChangeTableAttributes. - Incremented descriptor sizes and adjusted field offsets in server.pb.cc. * chore: rename * update: allow multiple options
This commit is contained in:
+625
-69
@@ -331,6 +331,33 @@ struct ChangeColumnTypeDefaultTypeInternal {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_;
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_;
|
||||||
|
PROTOBUF_CONSTEXPR ChangeTableOptions::ChangeTableOptions(
|
||||||
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
|
/*decltype(_impl_.change_table_options_)*/{}
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||||
|
struct ChangeTableOptionsDefaultTypeInternal {
|
||||||
|
PROTOBUF_CONSTEXPR ChangeTableOptionsDefaultTypeInternal()
|
||||||
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||||
|
~ChangeTableOptionsDefaultTypeInternal() {}
|
||||||
|
union {
|
||||||
|
ChangeTableOptions _instance;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeTableOptionsDefaultTypeInternal _ChangeTableOptions_default_instance_;
|
||||||
|
PROTOBUF_CONSTEXPR ChangeTableOption::ChangeTableOption(
|
||||||
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
|
/*decltype(_impl_.key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
|
, /*decltype(_impl_.value_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||||
|
struct ChangeTableOptionDefaultTypeInternal {
|
||||||
|
PROTOBUF_CONSTEXPR ChangeTableOptionDefaultTypeInternal()
|
||||||
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||||
|
~ChangeTableOptionDefaultTypeInternal() {}
|
||||||
|
union {
|
||||||
|
ChangeTableOption _instance;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeTableOptionDefaultTypeInternal _ChangeTableOption_default_instance_;
|
||||||
PROTOBUF_CONSTEXPR DropColumn::DropColumn(
|
PROTOBUF_CONSTEXPR DropColumn::DropColumn(
|
||||||
::_pbi::ConstantInitialized): _impl_{
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
/*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
/*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
@@ -406,7 +433,7 @@ 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_;
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[25];
|
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[27];
|
||||||
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[1];
|
||||||
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;
|
||||||
|
|
||||||
@@ -530,6 +557,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_),
|
||||||
@@ -627,6 +655,21 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
|
|||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.target_type_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.target_type_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.target_type_extension_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.target_type_extension_),
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOptions, _internal_metadata_),
|
||||||
|
~0u, // no _extensions_
|
||||||
|
~0u, // no _oneof_case_
|
||||||
|
~0u, // no _weak_field_map_
|
||||||
|
~0u, // no _inlined_string_donated_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOptions, _impl_.change_table_options_),
|
||||||
|
~0u, // no _has_bits_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOption, _internal_metadata_),
|
||||||
|
~0u, // no _extensions_
|
||||||
|
~0u, // no _oneof_case_
|
||||||
|
~0u, // no _weak_field_map_
|
||||||
|
~0u, // no _inlined_string_donated_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOption, _impl_.key_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOption, _impl_.value_),
|
||||||
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropColumn, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropColumn, _internal_metadata_),
|
||||||
~0u, // no _extensions_
|
~0u, // no _extensions_
|
||||||
~0u, // no _oneof_case_
|
~0u, // no _oneof_case_
|
||||||
@@ -680,22 +723,24 @@ 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)},
|
||||||
{ 120, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
|
{ 121, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
|
||||||
{ 131, 139, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
|
{ 132, 140, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
|
||||||
{ 141, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
|
{ 142, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
|
||||||
{ 151, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
|
{ 152, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
|
||||||
{ 161, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
|
{ 162, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
|
||||||
{ 170, -1, -1, sizeof(::greptime::v1::AddColumns)},
|
{ 171, -1, -1, sizeof(::greptime::v1::AddColumns)},
|
||||||
{ 177, -1, -1, sizeof(::greptime::v1::DropColumns)},
|
{ 178, -1, -1, sizeof(::greptime::v1::DropColumns)},
|
||||||
{ 184, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)},
|
{ 185, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)},
|
||||||
{ 191, -1, -1, sizeof(::greptime::v1::RenameTable)},
|
{ 192, -1, -1, sizeof(::greptime::v1::RenameTable)},
|
||||||
{ 198, -1, -1, sizeof(::greptime::v1::AddColumn)},
|
{ 199, -1, -1, sizeof(::greptime::v1::AddColumn)},
|
||||||
{ 206, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
|
{ 207, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
|
||||||
{ 215, -1, -1, sizeof(::greptime::v1::DropColumn)},
|
{ 216, -1, -1, sizeof(::greptime::v1::ChangeTableOptions)},
|
||||||
{ 222, -1, -1, sizeof(::greptime::v1::TableId)},
|
{ 223, -1, -1, sizeof(::greptime::v1::ChangeTableOption)},
|
||||||
{ 229, -1, -1, sizeof(::greptime::v1::FlowId)},
|
{ 231, -1, -1, sizeof(::greptime::v1::DropColumn)},
|
||||||
{ 236, -1, -1, sizeof(::greptime::v1::ColumnDef)},
|
{ 238, -1, -1, sizeof(::greptime::v1::TableId)},
|
||||||
{ 250, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
|
{ 245, -1, -1, sizeof(::greptime::v1::FlowId)},
|
||||||
|
{ 252, -1, -1, sizeof(::greptime::v1::ColumnDef)},
|
||||||
|
{ 266, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
@@ -719,6 +764,8 @@ static const ::_pb::Message* const file_default_instances[] = {
|
|||||||
&::greptime::v1::_RenameTable_default_instance_._instance,
|
&::greptime::v1::_RenameTable_default_instance_._instance,
|
||||||
&::greptime::v1::_AddColumn_default_instance_._instance,
|
&::greptime::v1::_AddColumn_default_instance_._instance,
|
||||||
&::greptime::v1::_ChangeColumnType_default_instance_._instance,
|
&::greptime::v1::_ChangeColumnType_default_instance_._instance,
|
||||||
|
&::greptime::v1::_ChangeTableOptions_default_instance_._instance,
|
||||||
|
&::greptime::v1::_ChangeTableOption_default_instance_._instance,
|
||||||
&::greptime::v1::_DropColumn_default_instance_._instance,
|
&::greptime::v1::_DropColumn_default_instance_._instance,
|
||||||
&::greptime::v1::_TableId_default_instance_._instance,
|
&::greptime::v1::_TableId_default_instance_._instance,
|
||||||
&::greptime::v1::_FlowId_default_instance_._instance,
|
&::greptime::v1::_FlowId_default_instance_._instance,
|
||||||
@@ -773,66 +820,71 @@ 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\"\245\002\n\tAlterE"
|
"\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\002\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"
|
||||||
"op_columns\030\005 \001(\0132\030.greptime.v1.DropColum"
|
"op_columns\030\005 \001(\0132\030.greptime.v1.DropColum"
|
||||||
"nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1"
|
"nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1"
|
||||||
".RenameTableH\000\022=\n\023change_column_types\030\007 "
|
".RenameTableH\000\022=\n\023change_column_types\030\007 "
|
||||||
"\001(\0132\036.greptime.v1.ChangeColumnTypesH\000B\006\n"
|
"\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022\?\n"
|
||||||
"\004kind\"\216\001\n\rDropTableExpr\022\024\n\014catalog_name\030"
|
"\024change_table_options\030\010 \001(\0132\037.greptime.v"
|
||||||
"\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name"
|
"1.ChangeTableOptionsH\000B\006\n\004kind\"\216\001\n\rDropT"
|
||||||
"\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.T"
|
"ableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema"
|
||||||
"ableId\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022Creat"
|
"_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table"
|
||||||
"eDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s"
|
"_id\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_"
|
||||||
"chema_name\030\002 \001(\t\022\034\n\024create_if_not_exists"
|
"if_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024"
|
||||||
"\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1.Cr"
|
"\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001("
|
||||||
"eateDatabaseExpr.OptionsEntry\032.\n\014Options"
|
"\t\022\034\n\024create_if_not_exists\030\003 \001(\010\022=\n\007optio"
|
||||||
"Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n"
|
"ns\030\004 \003(\0132,.greptime.v1.CreateDatabaseExp"
|
||||||
"\021TruncateTableExpr\022\024\n\014catalog_name\030\001 \001(\t"
|
"r.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 "
|
||||||
"\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001("
|
"\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableE"
|
||||||
"\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.TableI"
|
"xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name"
|
||||||
"d\"U\n\020DropDatabaseExpr\022\024\n\014catalog_name\030\001 "
|
"\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004"
|
||||||
"\001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_exis"
|
" \001(\0132\024.greptime.v1.TableId\"U\n\020DropDataba"
|
||||||
"ts\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns\030\001 "
|
"seExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n"
|
||||||
"\003(\0132\026.greptime.v1.AddColumn\"<\n\013DropColum"
|
"ame\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAdd"
|
||||||
"ns\022-\n\014drop_columns\030\001 \003(\0132\027.greptime.v1.D"
|
"Columns\022+\n\013add_columns\030\001 \003(\0132\026.greptime."
|
||||||
"ropColumn\"O\n\021ChangeColumnTypes\022:\n\023change"
|
"v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_colu"
|
||||||
"_column_types\030\001 \003(\0132\035.greptime.v1.Change"
|
"mns\030\001 \003(\0132\027.greptime.v1.DropColumn\"O\n\021Ch"
|
||||||
"ColumnType\"%\n\013RenameTable\022\026\n\016new_table_n"
|
"angeColumnTypes\022:\n\023change_column_types\030\001"
|
||||||
"ame\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001"
|
" \003(\0132\035.greptime.v1.ChangeColumnType\"%\n\013R"
|
||||||
"(\0132\026.greptime.v1.ColumnDef\0220\n\010location\030\003"
|
"enameTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAd"
|
||||||
" \001(\0132\036.greptime.v1.AddColumnLocation\"\236\001\n"
|
"dColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v"
|
||||||
"\020ChangeColumnType\022\023\n\013column_name\030\001 \001(\t\0220"
|
"1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime"
|
||||||
"\n\013target_type\030\002 \001(\0162\033.greptime.v1.Column"
|
".v1.AddColumnLocation\"\236\001\n\020ChangeColumnTy"
|
||||||
"DataType\022C\n\025target_type_extension\030\003 \001(\0132"
|
"pe\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_type\030\002"
|
||||||
"$.greptime.v1.ColumnDataTypeExtension\"\032\n"
|
" \001(\0162\033.greptime.v1.ColumnDataType\022C\n\025tar"
|
||||||
"\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002"
|
"get_type_extension\030\003 \001(\0132$.greptime.v1.C"
|
||||||
"id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColum"
|
"olumnDataTypeExtension\"R\n\022ChangeTableOpt"
|
||||||
"nDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033."
|
"ions\022<\n\024change_table_options\030\001 \003(\0132\036.gre"
|
||||||
"greptime.v1.ColumnDataType\022\023\n\013is_nullabl"
|
"ptime.v1.ChangeTableOption\"/\n\021ChangeTabl"
|
||||||
"e\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rs"
|
"eOption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\032\n\nD"
|
||||||
"emantic_type\030\005 \001(\0162\031.greptime.v1.Semanti"
|
"ropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id"
|
||||||
"cType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_exten"
|
"\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnD"
|
||||||
"sion\030\007 \001(\0132$.greptime.v1.ColumnDataTypeE"
|
"ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr"
|
||||||
"xtension\022+\n\007options\030\010 \001(\0132\032.greptime.v1."
|
"eptime.v1.ColumnDataType\022\023\n\013is_nullable\030"
|
||||||
"ColumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rl"
|
"\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem"
|
||||||
"ocation_type\030\001 \001(\0162+.greptime.v1.AddColu"
|
"antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT"
|
||||||
"mnLocation.LocationType\022\031\n\021after_column_"
|
"ype\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extensi"
|
||||||
"name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n"
|
"on\030\007 \001(\0132$.greptime.v1.ColumnDataTypeExt"
|
||||||
"\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github."
|
"ension\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Co"
|
||||||
"com/GreptimeTeam/greptime-proto/go/grept"
|
"lumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rloc"
|
||||||
"ime/v1b\006proto3"
|
"ation_type\030\001 \001(\0162+.greptime.v1.AddColumn"
|
||||||
|
"Location.LocationType\022\031\n\021after_column_na"
|
||||||
|
"me\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005A"
|
||||||
|
"FTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github.co"
|
||||||
|
"m/GreptimeTeam/greptime-proto/go/greptim"
|
||||||
|
"e/v1b\006proto3"
|
||||||
;
|
;
|
||||||
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, 3854, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
|
false, false, 4052, 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, 25,
|
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 27,
|
||||||
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,
|
||||||
@@ -4168,6 +4220,7 @@ class AlterExpr::_Internal {
|
|||||||
static const ::greptime::v1::DropColumns& drop_columns(const AlterExpr* msg);
|
static const ::greptime::v1::DropColumns& drop_columns(const AlterExpr* msg);
|
||||||
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);
|
||||||
};
|
};
|
||||||
|
|
||||||
const ::greptime::v1::AddColumns&
|
const ::greptime::v1::AddColumns&
|
||||||
@@ -4186,6 +4239,10 @@ const ::greptime::v1::ChangeColumnTypes&
|
|||||||
AlterExpr::_Internal::change_column_types(const AlterExpr* msg) {
|
AlterExpr::_Internal::change_column_types(const AlterExpr* msg) {
|
||||||
return *msg->_impl_.kind_.change_column_types_;
|
return *msg->_impl_.kind_.change_column_types_;
|
||||||
}
|
}
|
||||||
|
const ::greptime::v1::ChangeTableOptions&
|
||||||
|
AlterExpr::_Internal::change_table_options(const AlterExpr* msg) {
|
||||||
|
return *msg->_impl_.kind_.change_table_options_;
|
||||||
|
}
|
||||||
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();
|
||||||
@@ -4246,6 +4303,21 @@ void AlterExpr::set_allocated_change_column_types(::greptime::v1::ChangeColumnTy
|
|||||||
}
|
}
|
||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_column_types)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_column_types)
|
||||||
}
|
}
|
||||||
|
void AlterExpr::set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||||
|
clear_kind();
|
||||||
|
if (change_table_options) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(change_table_options);
|
||||||
|
if (message_arena != submessage_arena) {
|
||||||
|
change_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||||
|
message_arena, change_table_options, submessage_arena);
|
||||||
|
}
|
||||||
|
set_has_change_table_options();
|
||||||
|
_impl_.kind_.change_table_options_ = change_table_options;
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_table_options)
|
||||||
|
}
|
||||||
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) {
|
||||||
@@ -4310,6 +4382,11 @@ AlterExpr::AlterExpr(const AlterExpr& from)
|
|||||||
from._internal_change_column_types());
|
from._internal_change_column_types());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kChangeTableOptions: {
|
||||||
|
_this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom(
|
||||||
|
from._internal_change_table_options());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -4394,6 +4471,12 @@ void AlterExpr::clear_kind() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kChangeTableOptions: {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete _impl_.kind_.change_table_options_;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -4483,6 +4566,14 @@ const char* AlterExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
|
// .greptime.v1.ChangeTableOptions change_table_options = 8;
|
||||||
|
case 8:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
|
||||||
|
ptr = ctx->ParseMessage(_internal_mutable_change_table_options(), ptr);
|
||||||
|
CHK_(ptr);
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
default:
|
default:
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
} // switch
|
} // switch
|
||||||
@@ -4570,6 +4661,13 @@ uint8_t* AlterExpr::_InternalSerialize(
|
|||||||
_Internal::change_column_types(this).GetCachedSize(), target, stream);
|
_Internal::change_column_types(this).GetCachedSize(), target, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .greptime.v1.ChangeTableOptions change_table_options = 8;
|
||||||
|
if (_internal_has_change_table_options()) {
|
||||||
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
|
InternalWriteMessage(8, _Internal::change_table_options(this),
|
||||||
|
_Internal::change_table_options(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);
|
||||||
@@ -4636,6 +4734,13 @@ size_t AlterExpr::ByteSizeLong() const {
|
|||||||
*_impl_.kind_.change_column_types_);
|
*_impl_.kind_.change_column_types_);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// .greptime.v1.ChangeTableOptions change_table_options = 8;
|
||||||
|
case kChangeTableOptions: {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||||
|
*_impl_.kind_.change_table_options_);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -4688,6 +4793,11 @@ void AlterExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT
|
|||||||
from._internal_change_column_types());
|
from._internal_change_column_types());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kChangeTableOptions: {
|
||||||
|
_this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom(
|
||||||
|
from._internal_change_table_options());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -7380,6 +7490,444 @@ void ChangeColumnType::InternalSwap(ChangeColumnType* other) {
|
|||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
|
class ChangeTableOptions::_Internal {
|
||||||
|
public:
|
||||||
|
};
|
||||||
|
|
||||||
|
ChangeTableOptions::ChangeTableOptions(::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.ChangeTableOptions)
|
||||||
|
}
|
||||||
|
ChangeTableOptions::ChangeTableOptions(const ChangeTableOptions& from)
|
||||||
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||||
|
ChangeTableOptions* const _this = this; (void)_this;
|
||||||
|
new (&_impl_) Impl_{
|
||||||
|
decltype(_impl_.change_table_options_){from._impl_.change_table_options_}
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}};
|
||||||
|
|
||||||
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
|
// @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeTableOptions)
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void ChangeTableOptions::SharedCtor(
|
||||||
|
::_pb::Arena* arena, bool is_message_owned) {
|
||||||
|
(void)arena;
|
||||||
|
(void)is_message_owned;
|
||||||
|
new (&_impl_) Impl_{
|
||||||
|
decltype(_impl_.change_table_options_){arena}
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
ChangeTableOptions::~ChangeTableOptions() {
|
||||||
|
// @@protoc_insertion_point(destructor:greptime.v1.ChangeTableOptions)
|
||||||
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||||
|
(void)arena;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SharedDtor();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void ChangeTableOptions::SharedDtor() {
|
||||||
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||||
|
_impl_.change_table_options_.~RepeatedPtrField();
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeTableOptions::SetCachedSize(int size) const {
|
||||||
|
_impl_._cached_size_.Set(size);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeTableOptions::Clear() {
|
||||||
|
// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeTableOptions)
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
_impl_.change_table_options_.Clear();
|
||||||
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* ChangeTableOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||||
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||||
|
while (!ctx->Done(&ptr)) {
|
||||||
|
uint32_t tag;
|
||||||
|
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||||
|
switch (tag >> 3) {
|
||||||
|
// repeated .greptime.v1.ChangeTableOption change_table_options = 1;
|
||||||
|
case 1:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||||
|
ptr -= 1;
|
||||||
|
do {
|
||||||
|
ptr += 1;
|
||||||
|
ptr = ctx->ParseMessage(_internal_add_change_table_options(), ptr);
|
||||||
|
CHK_(ptr);
|
||||||
|
if (!ctx->DataAvailable(ptr)) break;
|
||||||
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
|
default:
|
||||||
|
goto handle_unusual;
|
||||||
|
} // switch
|
||||||
|
handle_unusual:
|
||||||
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||||
|
CHK_(ptr);
|
||||||
|
ctx->SetLastTag(tag);
|
||||||
|
goto message_done;
|
||||||
|
}
|
||||||
|
ptr = UnknownFieldParse(
|
||||||
|
tag,
|
||||||
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||||
|
ptr, ctx);
|
||||||
|
CHK_(ptr != nullptr);
|
||||||
|
} // while
|
||||||
|
message_done:
|
||||||
|
return ptr;
|
||||||
|
failure:
|
||||||
|
ptr = nullptr;
|
||||||
|
goto message_done;
|
||||||
|
#undef CHK_
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8_t* ChangeTableOptions::_InternalSerialize(
|
||||||
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||||
|
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeTableOptions)
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
// repeated .greptime.v1.ChangeTableOption change_table_options = 1;
|
||||||
|
for (unsigned i = 0,
|
||||||
|
n = static_cast<unsigned>(this->_internal_change_table_options_size()); i < n; i++) {
|
||||||
|
const auto& repfield = this->_internal_change_table_options(i);
|
||||||
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
|
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||||
|
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||||
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ChangeTableOptions)
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t ChangeTableOptions::ByteSizeLong() const {
|
||||||
|
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeTableOptions)
|
||||||
|
size_t total_size = 0;
|
||||||
|
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
// repeated .greptime.v1.ChangeTableOption change_table_options = 1;
|
||||||
|
total_size += 1UL * this->_internal_change_table_options_size();
|
||||||
|
for (const auto& msg : this->_impl_.change_table_options_) {
|
||||||
|
total_size +=
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||||
|
}
|
||||||
|
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeTableOptions::_class_data_ = {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||||
|
ChangeTableOptions::MergeImpl
|
||||||
|
};
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeTableOptions::GetClassData() const { return &_class_data_; }
|
||||||
|
|
||||||
|
|
||||||
|
void ChangeTableOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||||
|
auto* const _this = static_cast<ChangeTableOptions*>(&to_msg);
|
||||||
|
auto& from = static_cast<const ChangeTableOptions&>(from_msg);
|
||||||
|
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.ChangeTableOptions)
|
||||||
|
GOOGLE_DCHECK_NE(&from, _this);
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
_this->_impl_.change_table_options_.MergeFrom(from._impl_.change_table_options_);
|
||||||
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeTableOptions::CopyFrom(const ChangeTableOptions& from) {
|
||||||
|
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeTableOptions)
|
||||||
|
if (&from == this) return;
|
||||||
|
Clear();
|
||||||
|
MergeFrom(from);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ChangeTableOptions::IsInitialized() const {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeTableOptions::InternalSwap(ChangeTableOptions* other) {
|
||||||
|
using std::swap;
|
||||||
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||||
|
_impl_.change_table_options_.InternalSwap(&other->_impl_.change_table_options_);
|
||||||
|
}
|
||||||
|
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata ChangeTableOptions::GetMetadata() const {
|
||||||
|
return ::_pbi::AssignDescriptors(
|
||||||
|
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||||
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[20]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===================================================================
|
||||||
|
|
||||||
|
class ChangeTableOption::_Internal {
|
||||||
|
public:
|
||||||
|
};
|
||||||
|
|
||||||
|
ChangeTableOption::ChangeTableOption(::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.ChangeTableOption)
|
||||||
|
}
|
||||||
|
ChangeTableOption::ChangeTableOption(const ChangeTableOption& from)
|
||||||
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||||
|
ChangeTableOption* const _this = this; (void)_this;
|
||||||
|
new (&_impl_) Impl_{
|
||||||
|
decltype(_impl_.key_){}
|
||||||
|
, decltype(_impl_.value_){}
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}};
|
||||||
|
|
||||||
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
|
_impl_.key_.InitDefault();
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
_impl_.key_.Set("", GetArenaForAllocation());
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
if (!from._internal_key().empty()) {
|
||||||
|
_this->_impl_.key_.Set(from._internal_key(),
|
||||||
|
_this->GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
_impl_.value_.InitDefault();
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
_impl_.value_.Set("", GetArenaForAllocation());
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
if (!from._internal_value().empty()) {
|
||||||
|
_this->_impl_.value_.Set(from._internal_value(),
|
||||||
|
_this->GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeTableOption)
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void ChangeTableOption::SharedCtor(
|
||||||
|
::_pb::Arena* arena, bool is_message_owned) {
|
||||||
|
(void)arena;
|
||||||
|
(void)is_message_owned;
|
||||||
|
new (&_impl_) Impl_{
|
||||||
|
decltype(_impl_.key_){}
|
||||||
|
, decltype(_impl_.value_){}
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
|
};
|
||||||
|
_impl_.key_.InitDefault();
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
_impl_.key_.Set("", GetArenaForAllocation());
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
_impl_.value_.InitDefault();
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
_impl_.value_.Set("", GetArenaForAllocation());
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
}
|
||||||
|
|
||||||
|
ChangeTableOption::~ChangeTableOption() {
|
||||||
|
// @@protoc_insertion_point(destructor:greptime.v1.ChangeTableOption)
|
||||||
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||||
|
(void)arena;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SharedDtor();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void ChangeTableOption::SharedDtor() {
|
||||||
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||||
|
_impl_.key_.Destroy();
|
||||||
|
_impl_.value_.Destroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeTableOption::SetCachedSize(int size) const {
|
||||||
|
_impl_._cached_size_.Set(size);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeTableOption::Clear() {
|
||||||
|
// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeTableOption)
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
_impl_.key_.ClearToEmpty();
|
||||||
|
_impl_.value_.ClearToEmpty();
|
||||||
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* ChangeTableOption::_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 key = 1;
|
||||||
|
case 1:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||||
|
auto str = _internal_mutable_key();
|
||||||
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||||
|
CHK_(ptr);
|
||||||
|
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeTableOption.key"));
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
|
// string value = 2;
|
||||||
|
case 2:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||||
|
auto str = _internal_mutable_value();
|
||||||
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||||
|
CHK_(ptr);
|
||||||
|
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeTableOption.value"));
|
||||||
|
} 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* ChangeTableOption::_InternalSerialize(
|
||||||
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||||
|
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeTableOption)
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
// string key = 1;
|
||||||
|
if (!this->_internal_key().empty()) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
|
this->_internal_key().data(), static_cast<int>(this->_internal_key().length()),
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
|
"greptime.v1.ChangeTableOption.key");
|
||||||
|
target = stream->WriteStringMaybeAliased(
|
||||||
|
1, this->_internal_key(), target);
|
||||||
|
}
|
||||||
|
|
||||||
|
// string value = 2;
|
||||||
|
if (!this->_internal_value().empty()) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
|
this->_internal_value().data(), static_cast<int>(this->_internal_value().length()),
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
|
"greptime.v1.ChangeTableOption.value");
|
||||||
|
target = stream->WriteStringMaybeAliased(
|
||||||
|
2, this->_internal_value(), 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.ChangeTableOption)
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t ChangeTableOption::ByteSizeLong() const {
|
||||||
|
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeTableOption)
|
||||||
|
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 key = 1;
|
||||||
|
if (!this->_internal_key().empty()) {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||||
|
this->_internal_key());
|
||||||
|
}
|
||||||
|
|
||||||
|
// string value = 2;
|
||||||
|
if (!this->_internal_value().empty()) {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||||
|
this->_internal_value());
|
||||||
|
}
|
||||||
|
|
||||||
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||||
|
}
|
||||||
|
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeTableOption::_class_data_ = {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||||
|
ChangeTableOption::MergeImpl
|
||||||
|
};
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeTableOption::GetClassData() const { return &_class_data_; }
|
||||||
|
|
||||||
|
|
||||||
|
void ChangeTableOption::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||||
|
auto* const _this = static_cast<ChangeTableOption*>(&to_msg);
|
||||||
|
auto& from = static_cast<const ChangeTableOption&>(from_msg);
|
||||||
|
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.ChangeTableOption)
|
||||||
|
GOOGLE_DCHECK_NE(&from, _this);
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
if (!from._internal_key().empty()) {
|
||||||
|
_this->_internal_set_key(from._internal_key());
|
||||||
|
}
|
||||||
|
if (!from._internal_value().empty()) {
|
||||||
|
_this->_internal_set_value(from._internal_value());
|
||||||
|
}
|
||||||
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeTableOption::CopyFrom(const ChangeTableOption& from) {
|
||||||
|
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeTableOption)
|
||||||
|
if (&from == this) return;
|
||||||
|
Clear();
|
||||||
|
MergeFrom(from);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ChangeTableOption::IsInitialized() const {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeTableOption::InternalSwap(ChangeTableOption* 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_.key_, lhs_arena,
|
||||||
|
&other->_impl_.key_, rhs_arena
|
||||||
|
);
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||||
|
&_impl_.value_, lhs_arena,
|
||||||
|
&other->_impl_.value_, rhs_arena
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata ChangeTableOption::GetMetadata() const {
|
||||||
|
return ::_pbi::AssignDescriptors(
|
||||||
|
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||||
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[21]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===================================================================
|
||||||
|
|
||||||
class DropColumn::_Internal {
|
class DropColumn::_Internal {
|
||||||
public:
|
public:
|
||||||
};
|
};
|
||||||
@@ -7578,7 +8126,7 @@ void DropColumn::InternalSwap(DropColumn* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[20]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[22]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -7756,7 +8304,7 @@ void TableId::InternalSwap(TableId* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[21]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[23]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -7934,7 +8482,7 @@ void FlowId::InternalSwap(FlowId* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowId::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata FlowId::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[22]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[24]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -8416,7 +8964,7 @@ void ColumnDef::InternalSwap(ColumnDef* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[23]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[25]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -8649,7 +9197,7 @@ void AddColumnLocation::InternalSwap(AddColumnLocation* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata AddColumnLocation::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata AddColumnLocation::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[24]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[26]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
@@ -8736,6 +9284,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeColumnType*
|
|||||||
Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnType >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnType >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::ChangeColumnType >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::ChangeColumnType >(arena);
|
||||||
}
|
}
|
||||||
|
template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeTableOptions*
|
||||||
|
Arena::CreateMaybeMessage< ::greptime::v1::ChangeTableOptions >(Arena* arena) {
|
||||||
|
return Arena::CreateMessageInternal< ::greptime::v1::ChangeTableOptions >(arena);
|
||||||
|
}
|
||||||
|
template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeTableOption*
|
||||||
|
Arena::CreateMaybeMessage< ::greptime::v1::ChangeTableOption >(Arena* arena) {
|
||||||
|
return Arena::CreateMessageInternal< ::greptime::v1::ChangeTableOption >(arena);
|
||||||
|
}
|
||||||
template<> PROTOBUF_NOINLINE ::greptime::v1::DropColumn*
|
template<> PROTOBUF_NOINLINE ::greptime::v1::DropColumn*
|
||||||
Arena::CreateMaybeMessage< ::greptime::v1::DropColumn >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::DropColumn >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::DropColumn >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::DropColumn >(arena);
|
||||||
|
|||||||
+587
-5
@@ -69,6 +69,12 @@ extern ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_;
|
|||||||
class ChangeColumnTypes;
|
class ChangeColumnTypes;
|
||||||
struct ChangeColumnTypesDefaultTypeInternal;
|
struct ChangeColumnTypesDefaultTypeInternal;
|
||||||
extern ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_;
|
extern ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_;
|
||||||
|
class ChangeTableOption;
|
||||||
|
struct ChangeTableOptionDefaultTypeInternal;
|
||||||
|
extern ChangeTableOptionDefaultTypeInternal _ChangeTableOption_default_instance_;
|
||||||
|
class ChangeTableOptions;
|
||||||
|
struct ChangeTableOptionsDefaultTypeInternal;
|
||||||
|
extern ChangeTableOptionsDefaultTypeInternal _ChangeTableOptions_default_instance_;
|
||||||
class ColumnDef;
|
class ColumnDef;
|
||||||
struct ColumnDefDefaultTypeInternal;
|
struct ColumnDefDefaultTypeInternal;
|
||||||
extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_;
|
extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_;
|
||||||
@@ -135,6 +141,8 @@ template<> ::greptime::v1::AddColumns* Arena::CreateMaybeMessage<::greptime::v1:
|
|||||||
template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1::AlterExpr>(Arena*);
|
template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1::AlterExpr>(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::ChangeTableOptions* Arena::CreateMaybeMessage<::greptime::v1::ChangeTableOptions>(Arena*);
|
||||||
template<> ::greptime::v1::ColumnDef* Arena::CreateMaybeMessage<::greptime::v1::ColumnDef>(Arena*);
|
template<> ::greptime::v1::ColumnDef* Arena::CreateMaybeMessage<::greptime::v1::ColumnDef>(Arena*);
|
||||||
template<> ::greptime::v1::CreateDatabaseExpr* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr>(Arena*);
|
template<> ::greptime::v1::CreateDatabaseExpr* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr>(Arena*);
|
||||||
template<> ::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse>(Arena*);
|
template<> ::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse>(Arena*);
|
||||||
@@ -2011,6 +2019,7 @@ class AlterExpr final :
|
|||||||
kDropColumns = 5,
|
kDropColumns = 5,
|
||||||
kRenameTable = 6,
|
kRenameTable = 6,
|
||||||
kChangeColumnTypes = 7,
|
kChangeColumnTypes = 7,
|
||||||
|
kChangeTableOptions = 8,
|
||||||
KIND_NOT_SET = 0,
|
KIND_NOT_SET = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2099,6 +2108,7 @@ class AlterExpr final :
|
|||||||
kDropColumnsFieldNumber = 5,
|
kDropColumnsFieldNumber = 5,
|
||||||
kRenameTableFieldNumber = 6,
|
kRenameTableFieldNumber = 6,
|
||||||
kChangeColumnTypesFieldNumber = 7,
|
kChangeColumnTypesFieldNumber = 7,
|
||||||
|
kChangeTableOptionsFieldNumber = 8,
|
||||||
};
|
};
|
||||||
// string catalog_name = 1;
|
// string catalog_name = 1;
|
||||||
void clear_catalog_name();
|
void clear_catalog_name();
|
||||||
@@ -2214,6 +2224,24 @@ class AlterExpr final :
|
|||||||
::greptime::v1::ChangeColumnTypes* change_column_types);
|
::greptime::v1::ChangeColumnTypes* change_column_types);
|
||||||
::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types();
|
::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types();
|
||||||
|
|
||||||
|
// .greptime.v1.ChangeTableOptions change_table_options = 8;
|
||||||
|
bool has_change_table_options() const;
|
||||||
|
private:
|
||||||
|
bool _internal_has_change_table_options() const;
|
||||||
|
public:
|
||||||
|
void clear_change_table_options();
|
||||||
|
const ::greptime::v1::ChangeTableOptions& change_table_options() const;
|
||||||
|
PROTOBUF_NODISCARD ::greptime::v1::ChangeTableOptions* release_change_table_options();
|
||||||
|
::greptime::v1::ChangeTableOptions* mutable_change_table_options();
|
||||||
|
void set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options);
|
||||||
|
private:
|
||||||
|
const ::greptime::v1::ChangeTableOptions& _internal_change_table_options() const;
|
||||||
|
::greptime::v1::ChangeTableOptions* _internal_mutable_change_table_options();
|
||||||
|
public:
|
||||||
|
void unsafe_arena_set_allocated_change_table_options(
|
||||||
|
::greptime::v1::ChangeTableOptions* change_table_options);
|
||||||
|
::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options();
|
||||||
|
|
||||||
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)
|
||||||
@@ -2223,6 +2251,7 @@ class AlterExpr final :
|
|||||||
void set_has_drop_columns();
|
void set_has_drop_columns();
|
||||||
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();
|
||||||
|
|
||||||
inline bool has_kind() const;
|
inline bool has_kind() const;
|
||||||
inline void clear_has_kind();
|
inline void clear_has_kind();
|
||||||
@@ -2241,6 +2270,7 @@ class AlterExpr final :
|
|||||||
::greptime::v1::DropColumns* drop_columns_;
|
::greptime::v1::DropColumns* drop_columns_;
|
||||||
::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_;
|
||||||
} 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];
|
||||||
@@ -4071,6 +4101,332 @@ class ChangeColumnType final :
|
|||||||
};
|
};
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
class ChangeTableOptions final :
|
||||||
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeTableOptions) */ {
|
||||||
|
public:
|
||||||
|
inline ChangeTableOptions() : ChangeTableOptions(nullptr) {}
|
||||||
|
~ChangeTableOptions() override;
|
||||||
|
explicit PROTOBUF_CONSTEXPR ChangeTableOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||||
|
|
||||||
|
ChangeTableOptions(const ChangeTableOptions& from);
|
||||||
|
ChangeTableOptions(ChangeTableOptions&& from) noexcept
|
||||||
|
: ChangeTableOptions() {
|
||||||
|
*this = ::std::move(from);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline ChangeTableOptions& operator=(const ChangeTableOptions& from) {
|
||||||
|
CopyFrom(from);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
inline ChangeTableOptions& operator=(ChangeTableOptions&& 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 ChangeTableOptions& default_instance() {
|
||||||
|
return *internal_default_instance();
|
||||||
|
}
|
||||||
|
static inline const ChangeTableOptions* internal_default_instance() {
|
||||||
|
return reinterpret_cast<const ChangeTableOptions*>(
|
||||||
|
&_ChangeTableOptions_default_instance_);
|
||||||
|
}
|
||||||
|
static constexpr int kIndexInFileMessages =
|
||||||
|
20;
|
||||||
|
|
||||||
|
friend void swap(ChangeTableOptions& a, ChangeTableOptions& b) {
|
||||||
|
a.Swap(&b);
|
||||||
|
}
|
||||||
|
inline void Swap(ChangeTableOptions* 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(ChangeTableOptions* other) {
|
||||||
|
if (other == this) return;
|
||||||
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||||
|
InternalSwap(other);
|
||||||
|
}
|
||||||
|
|
||||||
|
// implements Message ----------------------------------------------
|
||||||
|
|
||||||
|
ChangeTableOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||||
|
return CreateMaybeMessage<ChangeTableOptions>(arena);
|
||||||
|
}
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||||
|
void CopyFrom(const ChangeTableOptions& from);
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||||
|
void MergeFrom( const ChangeTableOptions& from) {
|
||||||
|
ChangeTableOptions::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(ChangeTableOptions* other);
|
||||||
|
|
||||||
|
private:
|
||||||
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||||
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||||
|
return "greptime.v1.ChangeTableOptions";
|
||||||
|
}
|
||||||
|
protected:
|
||||||
|
explicit ChangeTableOptions(::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 {
|
||||||
|
kChangeTableOptionsFieldNumber = 1,
|
||||||
|
};
|
||||||
|
// repeated .greptime.v1.ChangeTableOption change_table_options = 1;
|
||||||
|
int change_table_options_size() const;
|
||||||
|
private:
|
||||||
|
int _internal_change_table_options_size() const;
|
||||||
|
public:
|
||||||
|
void clear_change_table_options();
|
||||||
|
::greptime::v1::ChangeTableOption* mutable_change_table_options(int index);
|
||||||
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption >*
|
||||||
|
mutable_change_table_options();
|
||||||
|
private:
|
||||||
|
const ::greptime::v1::ChangeTableOption& _internal_change_table_options(int index) const;
|
||||||
|
::greptime::v1::ChangeTableOption* _internal_add_change_table_options();
|
||||||
|
public:
|
||||||
|
const ::greptime::v1::ChangeTableOption& change_table_options(int index) const;
|
||||||
|
::greptime::v1::ChangeTableOption* add_change_table_options();
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption >&
|
||||||
|
change_table_options() const;
|
||||||
|
|
||||||
|
// @@protoc_insertion_point(class_scope:greptime.v1.ChangeTableOptions)
|
||||||
|
private:
|
||||||
|
class _Internal;
|
||||||
|
|
||||||
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||||
|
typedef void InternalArenaConstructable_;
|
||||||
|
typedef void DestructorSkippable_;
|
||||||
|
struct Impl_ {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption > change_table_options_;
|
||||||
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
|
};
|
||||||
|
union { Impl_ _impl_; };
|
||||||
|
friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto;
|
||||||
|
};
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
class ChangeTableOption final :
|
||||||
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeTableOption) */ {
|
||||||
|
public:
|
||||||
|
inline ChangeTableOption() : ChangeTableOption(nullptr) {}
|
||||||
|
~ChangeTableOption() override;
|
||||||
|
explicit PROTOBUF_CONSTEXPR ChangeTableOption(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||||
|
|
||||||
|
ChangeTableOption(const ChangeTableOption& from);
|
||||||
|
ChangeTableOption(ChangeTableOption&& from) noexcept
|
||||||
|
: ChangeTableOption() {
|
||||||
|
*this = ::std::move(from);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline ChangeTableOption& operator=(const ChangeTableOption& from) {
|
||||||
|
CopyFrom(from);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
inline ChangeTableOption& operator=(ChangeTableOption&& 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 ChangeTableOption& default_instance() {
|
||||||
|
return *internal_default_instance();
|
||||||
|
}
|
||||||
|
static inline const ChangeTableOption* internal_default_instance() {
|
||||||
|
return reinterpret_cast<const ChangeTableOption*>(
|
||||||
|
&_ChangeTableOption_default_instance_);
|
||||||
|
}
|
||||||
|
static constexpr int kIndexInFileMessages =
|
||||||
|
21;
|
||||||
|
|
||||||
|
friend void swap(ChangeTableOption& a, ChangeTableOption& b) {
|
||||||
|
a.Swap(&b);
|
||||||
|
}
|
||||||
|
inline void Swap(ChangeTableOption* 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(ChangeTableOption* other) {
|
||||||
|
if (other == this) return;
|
||||||
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||||
|
InternalSwap(other);
|
||||||
|
}
|
||||||
|
|
||||||
|
// implements Message ----------------------------------------------
|
||||||
|
|
||||||
|
ChangeTableOption* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||||
|
return CreateMaybeMessage<ChangeTableOption>(arena);
|
||||||
|
}
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||||
|
void CopyFrom(const ChangeTableOption& from);
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||||
|
void MergeFrom( const ChangeTableOption& from) {
|
||||||
|
ChangeTableOption::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(ChangeTableOption* other);
|
||||||
|
|
||||||
|
private:
|
||||||
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||||
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||||
|
return "greptime.v1.ChangeTableOption";
|
||||||
|
}
|
||||||
|
protected:
|
||||||
|
explicit ChangeTableOption(::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 {
|
||||||
|
kKeyFieldNumber = 1,
|
||||||
|
kValueFieldNumber = 2,
|
||||||
|
};
|
||||||
|
// string key = 1;
|
||||||
|
void clear_key();
|
||||||
|
const std::string& key() const;
|
||||||
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||||
|
void set_key(ArgT0&& arg0, ArgT... args);
|
||||||
|
std::string* mutable_key();
|
||||||
|
PROTOBUF_NODISCARD std::string* release_key();
|
||||||
|
void set_allocated_key(std::string* key);
|
||||||
|
private:
|
||||||
|
const std::string& _internal_key() const;
|
||||||
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value);
|
||||||
|
std::string* _internal_mutable_key();
|
||||||
|
public:
|
||||||
|
|
||||||
|
// string value = 2;
|
||||||
|
void clear_value();
|
||||||
|
const std::string& value() const;
|
||||||
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||||
|
void set_value(ArgT0&& arg0, ArgT... args);
|
||||||
|
std::string* mutable_value();
|
||||||
|
PROTOBUF_NODISCARD std::string* release_value();
|
||||||
|
void set_allocated_value(std::string* value);
|
||||||
|
private:
|
||||||
|
const std::string& _internal_value() const;
|
||||||
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value);
|
||||||
|
std::string* _internal_mutable_value();
|
||||||
|
public:
|
||||||
|
|
||||||
|
// @@protoc_insertion_point(class_scope:greptime.v1.ChangeTableOption)
|
||||||
|
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 key_;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
|
||||||
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
|
};
|
||||||
|
union { Impl_ _impl_; };
|
||||||
|
friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto;
|
||||||
|
};
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
class DropColumn final :
|
class DropColumn final :
|
||||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropColumn) */ {
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropColumn) */ {
|
||||||
public:
|
public:
|
||||||
@@ -4119,7 +4475,7 @@ class DropColumn final :
|
|||||||
&_DropColumn_default_instance_);
|
&_DropColumn_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
20;
|
22;
|
||||||
|
|
||||||
friend void swap(DropColumn& a, DropColumn& b) {
|
friend void swap(DropColumn& a, DropColumn& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -4272,7 +4628,7 @@ class TableId final :
|
|||||||
&_TableId_default_instance_);
|
&_TableId_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
21;
|
23;
|
||||||
|
|
||||||
friend void swap(TableId& a, TableId& b) {
|
friend void swap(TableId& a, TableId& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -4420,7 +4776,7 @@ class FlowId final :
|
|||||||
&_FlowId_default_instance_);
|
&_FlowId_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
22;
|
24;
|
||||||
|
|
||||||
friend void swap(FlowId& a, FlowId& b) {
|
friend void swap(FlowId& a, FlowId& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -4568,7 +4924,7 @@ class ColumnDef final :
|
|||||||
&_ColumnDef_default_instance_);
|
&_ColumnDef_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
23;
|
25;
|
||||||
|
|
||||||
friend void swap(ColumnDef& a, ColumnDef& b) {
|
friend void swap(ColumnDef& a, ColumnDef& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -4826,7 +5182,7 @@ class AddColumnLocation final :
|
|||||||
&_AddColumnLocation_default_instance_);
|
&_AddColumnLocation_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
24;
|
26;
|
||||||
|
|
||||||
friend void swap(AddColumnLocation& a, AddColumnLocation& b) {
|
friend void swap(AddColumnLocation& a, AddColumnLocation& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -8107,6 +8463,80 @@ inline ::greptime::v1::ChangeColumnTypes* AlterExpr::mutable_change_column_types
|
|||||||
return _msg;
|
return _msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .greptime.v1.ChangeTableOptions change_table_options = 8;
|
||||||
|
inline bool AlterExpr::_internal_has_change_table_options() const {
|
||||||
|
return kind_case() == kChangeTableOptions;
|
||||||
|
}
|
||||||
|
inline bool AlterExpr::has_change_table_options() const {
|
||||||
|
return _internal_has_change_table_options();
|
||||||
|
}
|
||||||
|
inline void AlterExpr::set_has_change_table_options() {
|
||||||
|
_impl_._oneof_case_[0] = kChangeTableOptions;
|
||||||
|
}
|
||||||
|
inline void AlterExpr::clear_change_table_options() {
|
||||||
|
if (_internal_has_change_table_options()) {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete _impl_.kind_.change_table_options_;
|
||||||
|
}
|
||||||
|
clear_has_kind();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::ChangeTableOptions* AlterExpr::release_change_table_options() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.change_table_options)
|
||||||
|
if (_internal_has_change_table_options()) {
|
||||||
|
clear_has_kind();
|
||||||
|
::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_;
|
||||||
|
if (GetArenaForAllocation() != nullptr) {
|
||||||
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||||
|
}
|
||||||
|
_impl_.kind_.change_table_options_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::ChangeTableOptions& AlterExpr::_internal_change_table_options() const {
|
||||||
|
return _internal_has_change_table_options()
|
||||||
|
? *_impl_.kind_.change_table_options_
|
||||||
|
: reinterpret_cast< ::greptime::v1::ChangeTableOptions&>(::greptime::v1::_ChangeTableOptions_default_instance_);
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::ChangeTableOptions& AlterExpr::change_table_options() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.change_table_options)
|
||||||
|
return _internal_change_table_options();
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::ChangeTableOptions* AlterExpr::unsafe_arena_release_change_table_options() {
|
||||||
|
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.change_table_options)
|
||||||
|
if (_internal_has_change_table_options()) {
|
||||||
|
clear_has_kind();
|
||||||
|
::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_;
|
||||||
|
_impl_.kind_.change_table_options_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline void AlterExpr::unsafe_arena_set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) {
|
||||||
|
clear_kind();
|
||||||
|
if (change_table_options) {
|
||||||
|
set_has_change_table_options();
|
||||||
|
_impl_.kind_.change_table_options_ = change_table_options;
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.change_table_options)
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::ChangeTableOptions* AlterExpr::_internal_mutable_change_table_options() {
|
||||||
|
if (!_internal_has_change_table_options()) {
|
||||||
|
clear_kind();
|
||||||
|
set_has_change_table_options();
|
||||||
|
_impl_.kind_.change_table_options_ = CreateMaybeMessage< ::greptime::v1::ChangeTableOptions >(GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
return _impl_.kind_.change_table_options_;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::ChangeTableOptions* AlterExpr::mutable_change_table_options() {
|
||||||
|
::greptime::v1::ChangeTableOptions* _msg = _internal_mutable_change_table_options();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.change_table_options)
|
||||||
|
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;
|
||||||
}
|
}
|
||||||
@@ -9434,6 +9864,154 @@ inline void ChangeColumnType::set_allocated_target_type_extension(::greptime::v1
|
|||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// ChangeTableOptions
|
||||||
|
|
||||||
|
// repeated .greptime.v1.ChangeTableOption change_table_options = 1;
|
||||||
|
inline int ChangeTableOptions::_internal_change_table_options_size() const {
|
||||||
|
return _impl_.change_table_options_.size();
|
||||||
|
}
|
||||||
|
inline int ChangeTableOptions::change_table_options_size() const {
|
||||||
|
return _internal_change_table_options_size();
|
||||||
|
}
|
||||||
|
inline void ChangeTableOptions::clear_change_table_options() {
|
||||||
|
_impl_.change_table_options_.Clear();
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::ChangeTableOption* ChangeTableOptions::mutable_change_table_options(int index) {
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.ChangeTableOptions.change_table_options)
|
||||||
|
return _impl_.change_table_options_.Mutable(index);
|
||||||
|
}
|
||||||
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption >*
|
||||||
|
ChangeTableOptions::mutable_change_table_options() {
|
||||||
|
// @@protoc_insertion_point(field_mutable_list:greptime.v1.ChangeTableOptions.change_table_options)
|
||||||
|
return &_impl_.change_table_options_;
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::ChangeTableOption& ChangeTableOptions::_internal_change_table_options(int index) const {
|
||||||
|
return _impl_.change_table_options_.Get(index);
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::ChangeTableOption& ChangeTableOptions::change_table_options(int index) const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.ChangeTableOptions.change_table_options)
|
||||||
|
return _internal_change_table_options(index);
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::ChangeTableOption* ChangeTableOptions::_internal_add_change_table_options() {
|
||||||
|
return _impl_.change_table_options_.Add();
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::ChangeTableOption* ChangeTableOptions::add_change_table_options() {
|
||||||
|
::greptime::v1::ChangeTableOption* _add = _internal_add_change_table_options();
|
||||||
|
// @@protoc_insertion_point(field_add:greptime.v1.ChangeTableOptions.change_table_options)
|
||||||
|
return _add;
|
||||||
|
}
|
||||||
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption >&
|
||||||
|
ChangeTableOptions::change_table_options() const {
|
||||||
|
// @@protoc_insertion_point(field_list:greptime.v1.ChangeTableOptions.change_table_options)
|
||||||
|
return _impl_.change_table_options_;
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// ChangeTableOption
|
||||||
|
|
||||||
|
// string key = 1;
|
||||||
|
inline void ChangeTableOption::clear_key() {
|
||||||
|
_impl_.key_.ClearToEmpty();
|
||||||
|
}
|
||||||
|
inline const std::string& ChangeTableOption::key() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.ChangeTableOption.key)
|
||||||
|
return _internal_key();
|
||||||
|
}
|
||||||
|
template <typename ArgT0, typename... ArgT>
|
||||||
|
inline PROTOBUF_ALWAYS_INLINE
|
||||||
|
void ChangeTableOption::set_key(ArgT0&& arg0, ArgT... args) {
|
||||||
|
|
||||||
|
_impl_.key_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||||
|
// @@protoc_insertion_point(field_set:greptime.v1.ChangeTableOption.key)
|
||||||
|
}
|
||||||
|
inline std::string* ChangeTableOption::mutable_key() {
|
||||||
|
std::string* _s = _internal_mutable_key();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.ChangeTableOption.key)
|
||||||
|
return _s;
|
||||||
|
}
|
||||||
|
inline const std::string& ChangeTableOption::_internal_key() const {
|
||||||
|
return _impl_.key_.Get();
|
||||||
|
}
|
||||||
|
inline void ChangeTableOption::_internal_set_key(const std::string& value) {
|
||||||
|
|
||||||
|
_impl_.key_.Set(value, GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* ChangeTableOption::_internal_mutable_key() {
|
||||||
|
|
||||||
|
return _impl_.key_.Mutable(GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* ChangeTableOption::release_key() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.ChangeTableOption.key)
|
||||||
|
return _impl_.key_.Release();
|
||||||
|
}
|
||||||
|
inline void ChangeTableOption::set_allocated_key(std::string* key) {
|
||||||
|
if (key != nullptr) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
_impl_.key_.SetAllocated(key, GetArenaForAllocation());
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
if (_impl_.key_.IsDefault()) {
|
||||||
|
_impl_.key_.Set("", GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeTableOption.key)
|
||||||
|
}
|
||||||
|
|
||||||
|
// string value = 2;
|
||||||
|
inline void ChangeTableOption::clear_value() {
|
||||||
|
_impl_.value_.ClearToEmpty();
|
||||||
|
}
|
||||||
|
inline const std::string& ChangeTableOption::value() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.ChangeTableOption.value)
|
||||||
|
return _internal_value();
|
||||||
|
}
|
||||||
|
template <typename ArgT0, typename... ArgT>
|
||||||
|
inline PROTOBUF_ALWAYS_INLINE
|
||||||
|
void ChangeTableOption::set_value(ArgT0&& arg0, ArgT... args) {
|
||||||
|
|
||||||
|
_impl_.value_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||||
|
// @@protoc_insertion_point(field_set:greptime.v1.ChangeTableOption.value)
|
||||||
|
}
|
||||||
|
inline std::string* ChangeTableOption::mutable_value() {
|
||||||
|
std::string* _s = _internal_mutable_value();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.ChangeTableOption.value)
|
||||||
|
return _s;
|
||||||
|
}
|
||||||
|
inline const std::string& ChangeTableOption::_internal_value() const {
|
||||||
|
return _impl_.value_.Get();
|
||||||
|
}
|
||||||
|
inline void ChangeTableOption::_internal_set_value(const std::string& value) {
|
||||||
|
|
||||||
|
_impl_.value_.Set(value, GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* ChangeTableOption::_internal_mutable_value() {
|
||||||
|
|
||||||
|
return _impl_.value_.Mutable(GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* ChangeTableOption::release_value() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.ChangeTableOption.value)
|
||||||
|
return _impl_.value_.Release();
|
||||||
|
}
|
||||||
|
inline void ChangeTableOption::set_allocated_value(std::string* value) {
|
||||||
|
if (value != nullptr) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
_impl_.value_.SetAllocated(value, GetArenaForAllocation());
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
if (_impl_.value_.IsDefault()) {
|
||||||
|
_impl_.value_.Set("", GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeTableOption.value)
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
// DropColumn
|
// DropColumn
|
||||||
|
|
||||||
// string name = 1;
|
// string name = 1;
|
||||||
@@ -10043,6 +10621,10 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte
|
|||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
|
|
||||||
|
|||||||
@@ -622,6 +622,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_
|
||||||
@@ -720,16 +721,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)},
|
||||||
{ 187, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
{ 188, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
||||||
{ 194, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
{ 195, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
||||||
{ 201, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
{ 202, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
||||||
{ 209, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
{ 210, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
||||||
{ 216, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
{ 217, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||||
{ 223, -1, -1, sizeof(::greptime::v1::region::Regular)},
|
{ 224, -1, -1, sizeof(::greptime::v1::region::Regular)},
|
||||||
{ 229, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
{ 230, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
||||||
{ 236, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
{ 237, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||||
{ 246, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
{ 247, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
||||||
{ 253, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
{ 254, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
@@ -826,34 +827,36 @@ 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\"\360\001\n\014Alte"
|
"greptime.v1.region.AlterRequest\"\261\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\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAd"
|
"H\000\022\?\n\024change_table_options\030\006 \001(\0132\037.grept"
|
||||||
"dColumns\0222\n\013add_columns\030\001 \003(\0132\035.greptime"
|
"ime.v1.ChangeTableOptionsH\000\022\026\n\016schema_ve"
|
||||||
".v1.region.AddColumn\"C\n\013DropColumns\0224\n\014d"
|
"rsion\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add"
|
||||||
"rop_columns\030\001 \003(\0132\036.greptime.v1.region.D"
|
"_columns\030\001 \003(\0132\035.greptime.v1.region.AddC"
|
||||||
"ropColumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001"
|
"olumn\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003"
|
||||||
"(\0132#.greptime.v1.region.RegionColumnDef\022"
|
"(\0132\036.greptime.v1.region.DropColumn\"v\n\tAd"
|
||||||
"0\n\010location\030\003 \001(\0132\036.greptime.v1.AddColum"
|
"dColumn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v"
|
||||||
"nLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n"
|
"1.region.RegionColumnDef\0220\n\010location\030\003 \001"
|
||||||
"\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regu"
|
"(\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDr"
|
||||||
"lar\"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 "
|
"opColumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021"
|
||||||
"\001(\003\"\231\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001("
|
"\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWi"
|
||||||
"\004\022.\n\007regular\030\002 \001(\0132\033.greptime.v1.region."
|
"ndow\022\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016Compact"
|
||||||
"RegularH\000\0229\n\rstrict_window\030\003 \001(\0132 .grept"
|
"Request\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 "
|
||||||
"ime.v1.region.StrictWindowH\000B\t\n\007options\""
|
"\001(\0132\033.greptime.v1.region.RegularH\000\0229\n\rst"
|
||||||
"$\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n"
|
"rict_window\030\003 \001(\0132 .greptime.v1.region.S"
|
||||||
"\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.g"
|
"trictWindowH\000B\t\n\007options\"$\n\017TruncateRequ"
|
||||||
"reptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2"
|
"est\022\021\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDe"
|
||||||
"Y\n\006Region\022O\n\006Handle\022!.greptime.v1.region"
|
"f\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colu"
|
||||||
".RegionRequest\032\".greptime.v1.region.Regi"
|
"mnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Ha"
|
||||||
"onResponseB]\n\025io.greptime.v1.regionB\006Ser"
|
"ndle\022!.greptime.v1.region.RegionRequest\032"
|
||||||
"verZ<github.com/GreptimeTeam/greptime-pr"
|
"\".greptime.v1.region.RegionResponseB]\n\025i"
|
||||||
"oto/go/greptime/v1/regionb\006proto3"
|
"o.greptime.v1.regionB\006ServerZ<github.com"
|
||||||
|
"/GreptimeTeam/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,
|
||||||
@@ -862,7 +865,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, 3513, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
false, false, 3578, 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,
|
||||||
@@ -5324,6 +5327,7 @@ class AlterRequest::_Internal {
|
|||||||
static const ::greptime::v1::region::AddColumns& add_columns(const AlterRequest* msg);
|
static const ::greptime::v1::region::AddColumns& add_columns(const AlterRequest* msg);
|
||||||
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);
|
||||||
};
|
};
|
||||||
|
|
||||||
const ::greptime::v1::region::AddColumns&
|
const ::greptime::v1::region::AddColumns&
|
||||||
@@ -5338,6 +5342,10 @@ const ::greptime::v1::ChangeColumnTypes&
|
|||||||
AlterRequest::_Internal::change_column_types(const AlterRequest* msg) {
|
AlterRequest::_Internal::change_column_types(const AlterRequest* msg) {
|
||||||
return *msg->_impl_.kind_.change_column_types_;
|
return *msg->_impl_.kind_.change_column_types_;
|
||||||
}
|
}
|
||||||
|
const ::greptime::v1::ChangeTableOptions&
|
||||||
|
AlterRequest::_Internal::change_table_options(const AlterRequest* msg) {
|
||||||
|
return *msg->_impl_.kind_.change_table_options_;
|
||||||
|
}
|
||||||
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();
|
||||||
@@ -5392,6 +5400,30 @@ void AlterRequest::clear_change_column_types() {
|
|||||||
clear_has_kind();
|
clear_has_kind();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
void AlterRequest::set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||||
|
clear_kind();
|
||||||
|
if (change_table_options) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||||
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_table_options));
|
||||||
|
if (message_arena != submessage_arena) {
|
||||||
|
change_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||||
|
message_arena, change_table_options, submessage_arena);
|
||||||
|
}
|
||||||
|
set_has_change_table_options();
|
||||||
|
_impl_.kind_.change_table_options_ = change_table_options;
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_table_options)
|
||||||
|
}
|
||||||
|
void AlterRequest::clear_change_table_options() {
|
||||||
|
if (_internal_has_change_table_options()) {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete _impl_.kind_.change_table_options_;
|
||||||
|
}
|
||||||
|
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) {
|
||||||
@@ -5429,6 +5461,11 @@ AlterRequest::AlterRequest(const AlterRequest& from)
|
|||||||
from._internal_change_column_types());
|
from._internal_change_column_types());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kChangeTableOptions: {
|
||||||
|
_this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom(
|
||||||
|
from._internal_change_table_options());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -5491,6 +5528,12 @@ void AlterRequest::clear_kind() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kChangeTableOptions: {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete _impl_.kind_.change_table_options_;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -5558,6 +5601,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
|
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
||||||
|
case 6:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
|
||||||
|
ptr = ctx->ParseMessage(_internal_mutable_change_table_options(), ptr);
|
||||||
|
CHK_(ptr);
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
default:
|
default:
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
} // switch
|
} // switch
|
||||||
@@ -5620,6 +5671,13 @@ uint8_t* AlterRequest::_InternalSerialize(
|
|||||||
_Internal::change_column_types(this).GetCachedSize(), target, stream);
|
_Internal::change_column_types(this).GetCachedSize(), target, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
||||||
|
if (_internal_has_change_table_options()) {
|
||||||
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
|
InternalWriteMessage(6, _Internal::change_table_options(this),
|
||||||
|
_Internal::change_table_options(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);
|
||||||
@@ -5668,6 +5726,13 @@ size_t AlterRequest::ByteSizeLong() const {
|
|||||||
*_impl_.kind_.change_column_types_);
|
*_impl_.kind_.change_column_types_);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
||||||
|
case kChangeTableOptions: {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||||
|
*_impl_.kind_.change_table_options_);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -5712,6 +5777,11 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
|
|||||||
from._internal_change_column_types());
|
from._internal_change_column_types());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kChangeTableOptions: {
|
||||||
|
_this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom(
|
||||||
|
from._internal_change_table_options());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3251,6 +3251,7 @@ class AlterRequest final :
|
|||||||
kAddColumns = 2,
|
kAddColumns = 2,
|
||||||
kDropColumns = 3,
|
kDropColumns = 3,
|
||||||
kChangeColumnTypes = 5,
|
kChangeColumnTypes = 5,
|
||||||
|
kChangeTableOptions = 6,
|
||||||
KIND_NOT_SET = 0,
|
KIND_NOT_SET = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3337,6 +3338,7 @@ class AlterRequest final :
|
|||||||
kAddColumnsFieldNumber = 2,
|
kAddColumnsFieldNumber = 2,
|
||||||
kDropColumnsFieldNumber = 3,
|
kDropColumnsFieldNumber = 3,
|
||||||
kChangeColumnTypesFieldNumber = 5,
|
kChangeColumnTypesFieldNumber = 5,
|
||||||
|
kChangeTableOptionsFieldNumber = 6,
|
||||||
};
|
};
|
||||||
// uint64 region_id = 1;
|
// uint64 region_id = 1;
|
||||||
void clear_region_id();
|
void clear_region_id();
|
||||||
@@ -3410,6 +3412,24 @@ class AlterRequest final :
|
|||||||
::greptime::v1::ChangeColumnTypes* change_column_types);
|
::greptime::v1::ChangeColumnTypes* change_column_types);
|
||||||
::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types();
|
::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types();
|
||||||
|
|
||||||
|
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
||||||
|
bool has_change_table_options() const;
|
||||||
|
private:
|
||||||
|
bool _internal_has_change_table_options() const;
|
||||||
|
public:
|
||||||
|
void clear_change_table_options();
|
||||||
|
const ::greptime::v1::ChangeTableOptions& change_table_options() const;
|
||||||
|
PROTOBUF_NODISCARD ::greptime::v1::ChangeTableOptions* release_change_table_options();
|
||||||
|
::greptime::v1::ChangeTableOptions* mutable_change_table_options();
|
||||||
|
void set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options);
|
||||||
|
private:
|
||||||
|
const ::greptime::v1::ChangeTableOptions& _internal_change_table_options() const;
|
||||||
|
::greptime::v1::ChangeTableOptions* _internal_mutable_change_table_options();
|
||||||
|
public:
|
||||||
|
void unsafe_arena_set_allocated_change_table_options(
|
||||||
|
::greptime::v1::ChangeTableOptions* change_table_options);
|
||||||
|
::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options();
|
||||||
|
|
||||||
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)
|
||||||
@@ -3418,6 +3438,7 @@ class AlterRequest final :
|
|||||||
void set_has_add_columns();
|
void set_has_add_columns();
|
||||||
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();
|
||||||
|
|
||||||
inline bool has_kind() const;
|
inline bool has_kind() const;
|
||||||
inline void clear_has_kind();
|
inline void clear_has_kind();
|
||||||
@@ -3434,6 +3455,7 @@ class AlterRequest final :
|
|||||||
::greptime::v1::region::AddColumns* add_columns_;
|
::greptime::v1::region::AddColumns* add_columns_;
|
||||||
::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_;
|
||||||
} 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];
|
||||||
@@ -7690,6 +7712,72 @@ inline ::greptime::v1::ChangeColumnTypes* AlterRequest::mutable_change_column_ty
|
|||||||
return _msg;
|
return _msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
||||||
|
inline bool AlterRequest::_internal_has_change_table_options() const {
|
||||||
|
return kind_case() == kChangeTableOptions;
|
||||||
|
}
|
||||||
|
inline bool AlterRequest::has_change_table_options() const {
|
||||||
|
return _internal_has_change_table_options();
|
||||||
|
}
|
||||||
|
inline void AlterRequest::set_has_change_table_options() {
|
||||||
|
_impl_._oneof_case_[0] = kChangeTableOptions;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::ChangeTableOptions* AlterRequest::release_change_table_options() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_table_options)
|
||||||
|
if (_internal_has_change_table_options()) {
|
||||||
|
clear_has_kind();
|
||||||
|
::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_;
|
||||||
|
if (GetArenaForAllocation() != nullptr) {
|
||||||
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||||
|
}
|
||||||
|
_impl_.kind_.change_table_options_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::ChangeTableOptions& AlterRequest::_internal_change_table_options() const {
|
||||||
|
return _internal_has_change_table_options()
|
||||||
|
? *_impl_.kind_.change_table_options_
|
||||||
|
: reinterpret_cast< ::greptime::v1::ChangeTableOptions&>(::greptime::v1::_ChangeTableOptions_default_instance_);
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::ChangeTableOptions& AlterRequest::change_table_options() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_table_options)
|
||||||
|
return _internal_change_table_options();
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::ChangeTableOptions* AlterRequest::unsafe_arena_release_change_table_options() {
|
||||||
|
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_table_options)
|
||||||
|
if (_internal_has_change_table_options()) {
|
||||||
|
clear_has_kind();
|
||||||
|
::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_;
|
||||||
|
_impl_.kind_.change_table_options_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline void AlterRequest::unsafe_arena_set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) {
|
||||||
|
clear_kind();
|
||||||
|
if (change_table_options) {
|
||||||
|
set_has_change_table_options();
|
||||||
|
_impl_.kind_.change_table_options_ = change_table_options;
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_table_options)
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::ChangeTableOptions* AlterRequest::_internal_mutable_change_table_options() {
|
||||||
|
if (!_internal_has_change_table_options()) {
|
||||||
|
clear_kind();
|
||||||
|
set_has_change_table_options();
|
||||||
|
_impl_.kind_.change_table_options_ = CreateMaybeMessage< ::greptime::v1::ChangeTableOptions >(GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
return _impl_.kind_.change_table_options_;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::ChangeTableOptions* AlterRequest::mutable_change_table_options() {
|
||||||
|
::greptime::v1::ChangeTableOptions* _msg = _internal_mutable_change_table_options();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_table_options)
|
||||||
|
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};
|
||||||
|
|||||||
+365
-204
@@ -77,7 +77,7 @@ func (x AddColumnLocation_LocationType) Number() protoreflect.EnumNumber {
|
|||||||
|
|
||||||
// Deprecated: Use AddColumnLocation_LocationType.Descriptor instead.
|
// Deprecated: Use AddColumnLocation_LocationType.Descriptor instead.
|
||||||
func (AddColumnLocation_LocationType) EnumDescriptor() ([]byte, []int) {
|
func (AddColumnLocation_LocationType) EnumDescriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{21, 0}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{23, 0}
|
||||||
}
|
}
|
||||||
|
|
||||||
// "Data Definition Language" requests, that create, modify or delete the
|
// "Data Definition Language" requests, that create, modify or delete the
|
||||||
@@ -797,6 +797,7 @@ type AlterExpr struct {
|
|||||||
// *AlterExpr_DropColumns
|
// *AlterExpr_DropColumns
|
||||||
// *AlterExpr_RenameTable
|
// *AlterExpr_RenameTable
|
||||||
// *AlterExpr_ChangeColumnTypes
|
// *AlterExpr_ChangeColumnTypes
|
||||||
|
// *AlterExpr_ChangeTableOptions
|
||||||
Kind isAlterExpr_Kind `protobuf_oneof:"kind"`
|
Kind isAlterExpr_Kind `protobuf_oneof:"kind"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -888,6 +889,13 @@ func (x *AlterExpr) GetChangeColumnTypes() *ChangeColumnTypes {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *AlterExpr) GetChangeTableOptions() *ChangeTableOptions {
|
||||||
|
if x, ok := x.GetKind().(*AlterExpr_ChangeTableOptions); ok {
|
||||||
|
return x.ChangeTableOptions
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type isAlterExpr_Kind interface {
|
type isAlterExpr_Kind interface {
|
||||||
isAlterExpr_Kind()
|
isAlterExpr_Kind()
|
||||||
}
|
}
|
||||||
@@ -908,6 +916,10 @@ type AlterExpr_ChangeColumnTypes struct {
|
|||||||
ChangeColumnTypes *ChangeColumnTypes `protobuf:"bytes,7,opt,name=change_column_types,json=changeColumnTypes,proto3,oneof"`
|
ChangeColumnTypes *ChangeColumnTypes `protobuf:"bytes,7,opt,name=change_column_types,json=changeColumnTypes,proto3,oneof"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type AlterExpr_ChangeTableOptions struct {
|
||||||
|
ChangeTableOptions *ChangeTableOptions `protobuf:"bytes,8,opt,name=change_table_options,json=changeTableOptions,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
func (*AlterExpr_AddColumns) isAlterExpr_Kind() {}
|
func (*AlterExpr_AddColumns) isAlterExpr_Kind() {}
|
||||||
|
|
||||||
func (*AlterExpr_DropColumns) isAlterExpr_Kind() {}
|
func (*AlterExpr_DropColumns) isAlterExpr_Kind() {}
|
||||||
@@ -916,6 +928,8 @@ func (*AlterExpr_RenameTable) isAlterExpr_Kind() {}
|
|||||||
|
|
||||||
func (*AlterExpr_ChangeColumnTypes) isAlterExpr_Kind() {}
|
func (*AlterExpr_ChangeColumnTypes) isAlterExpr_Kind() {}
|
||||||
|
|
||||||
|
func (*AlterExpr_ChangeTableOptions) isAlterExpr_Kind() {}
|
||||||
|
|
||||||
type DropTableExpr struct {
|
type DropTableExpr struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@@ -1506,6 +1520,108 @@ func (x *ChangeColumnType) GetTargetTypeExtension() *ColumnDataTypeExtension {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ChangeTableOptions struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
ChangeTableOptions []*ChangeTableOption `protobuf:"bytes,1,rep,name=change_table_options,json=changeTableOptions,proto3" json:"change_table_options,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChangeTableOptions) Reset() {
|
||||||
|
*x = ChangeTableOptions{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_greptime_v1_ddl_proto_msgTypes[17]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChangeTableOptions) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ChangeTableOptions) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ChangeTableOptions) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_greptime_v1_ddl_proto_msgTypes[17]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use ChangeTableOptions.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ChangeTableOptions) Descriptor() ([]byte, []int) {
|
||||||
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChangeTableOptions) GetChangeTableOptions() []*ChangeTableOption {
|
||||||
|
if x != nil {
|
||||||
|
return x.ChangeTableOptions
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChangeTableOption struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||||
|
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChangeTableOption) Reset() {
|
||||||
|
*x = ChangeTableOption{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_greptime_v1_ddl_proto_msgTypes[18]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChangeTableOption) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ChangeTableOption) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ChangeTableOption) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_greptime_v1_ddl_proto_msgTypes[18]
|
||||||
|
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 ChangeTableOption.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ChangeTableOption) Descriptor() ([]byte, []int) {
|
||||||
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{18}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChangeTableOption) GetKey() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Key
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChangeTableOption) GetValue() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Value
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
type DropColumn struct {
|
type DropColumn struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@@ -1517,7 +1633,7 @@ type DropColumn struct {
|
|||||||
func (x *DropColumn) Reset() {
|
func (x *DropColumn) Reset() {
|
||||||
*x = DropColumn{}
|
*x = DropColumn{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[17]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[19]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -1530,7 +1646,7 @@ func (x *DropColumn) String() string {
|
|||||||
func (*DropColumn) ProtoMessage() {}
|
func (*DropColumn) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DropColumn) ProtoReflect() protoreflect.Message {
|
func (x *DropColumn) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[17]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[19]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -1543,7 +1659,7 @@ func (x *DropColumn) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DropColumn.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DropColumn.ProtoReflect.Descriptor instead.
|
||||||
func (*DropColumn) Descriptor() ([]byte, []int) {
|
func (*DropColumn) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{19}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DropColumn) GetName() string {
|
func (x *DropColumn) GetName() string {
|
||||||
@@ -1564,7 +1680,7 @@ type TableId struct {
|
|||||||
func (x *TableId) Reset() {
|
func (x *TableId) Reset() {
|
||||||
*x = TableId{}
|
*x = TableId{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[18]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[20]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -1577,7 +1693,7 @@ func (x *TableId) String() string {
|
|||||||
func (*TableId) ProtoMessage() {}
|
func (*TableId) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *TableId) ProtoReflect() protoreflect.Message {
|
func (x *TableId) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[18]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[20]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -1590,7 +1706,7 @@ func (x *TableId) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use TableId.ProtoReflect.Descriptor instead.
|
// Deprecated: Use TableId.ProtoReflect.Descriptor instead.
|
||||||
func (*TableId) Descriptor() ([]byte, []int) {
|
func (*TableId) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{18}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{20}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TableId) GetId() uint32 {
|
func (x *TableId) GetId() uint32 {
|
||||||
@@ -1611,7 +1727,7 @@ type FlowId struct {
|
|||||||
func (x *FlowId) Reset() {
|
func (x *FlowId) Reset() {
|
||||||
*x = FlowId{}
|
*x = FlowId{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[19]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[21]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -1624,7 +1740,7 @@ func (x *FlowId) String() string {
|
|||||||
func (*FlowId) ProtoMessage() {}
|
func (*FlowId) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *FlowId) ProtoReflect() protoreflect.Message {
|
func (x *FlowId) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[19]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[21]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -1637,7 +1753,7 @@ func (x *FlowId) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use FlowId.ProtoReflect.Descriptor instead.
|
// Deprecated: Use FlowId.ProtoReflect.Descriptor instead.
|
||||||
func (*FlowId) Descriptor() ([]byte, []int) {
|
func (*FlowId) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{19}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{21}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FlowId) GetId() uint32 {
|
func (x *FlowId) GetId() uint32 {
|
||||||
@@ -1667,7 +1783,7 @@ type ColumnDef struct {
|
|||||||
func (x *ColumnDef) Reset() {
|
func (x *ColumnDef) Reset() {
|
||||||
*x = ColumnDef{}
|
*x = ColumnDef{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[20]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[22]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -1680,7 +1796,7 @@ func (x *ColumnDef) String() string {
|
|||||||
func (*ColumnDef) ProtoMessage() {}
|
func (*ColumnDef) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ColumnDef) ProtoReflect() protoreflect.Message {
|
func (x *ColumnDef) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[20]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[22]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -1693,7 +1809,7 @@ func (x *ColumnDef) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use ColumnDef.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ColumnDef.ProtoReflect.Descriptor instead.
|
||||||
func (*ColumnDef) Descriptor() ([]byte, []int) {
|
func (*ColumnDef) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{20}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{22}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ColumnDef) GetName() string {
|
func (x *ColumnDef) GetName() string {
|
||||||
@@ -1764,7 +1880,7 @@ type AddColumnLocation struct {
|
|||||||
func (x *AddColumnLocation) Reset() {
|
func (x *AddColumnLocation) Reset() {
|
||||||
*x = AddColumnLocation{}
|
*x = AddColumnLocation{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[21]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[23]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -1777,7 +1893,7 @@ func (x *AddColumnLocation) String() string {
|
|||||||
func (*AddColumnLocation) ProtoMessage() {}
|
func (*AddColumnLocation) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AddColumnLocation) ProtoReflect() protoreflect.Message {
|
func (x *AddColumnLocation) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[21]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[23]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -1790,7 +1906,7 @@ func (x *AddColumnLocation) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AddColumnLocation.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AddColumnLocation.ProtoReflect.Descriptor instead.
|
||||||
func (*AddColumnLocation) Descriptor() ([]byte, []int) {
|
func (*AddColumnLocation) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{21}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{23}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType {
|
func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType {
|
||||||
@@ -1965,7 +2081,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, 0x82, 0x03, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21,
|
0x22, 0xd7, 0x03, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21,
|
||||||
0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
|
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,
|
||||||
@@ -1988,143 +2104,159 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
|
|||||||
0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c,
|
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c,
|
||||||
0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x48, 0x00, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e,
|
0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x48, 0x00, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e,
|
||||||
0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x42, 0x06, 0x0a,
|
0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x53, 0x0a,
|
||||||
0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xc9, 0x01, 0x0a, 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61,
|
0x14, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70,
|
||||||
0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c,
|
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72,
|
||||||
0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63,
|
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
|
||||||
0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63,
|
0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12,
|
||||||
0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f,
|
||||||
0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
|
0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xc9, 0x01, 0x0a, 0x0d, 0x44,
|
||||||
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c,
|
||||||
0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61,
|
0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67,
|
0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12,
|
||||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
|
||||||
0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x64,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65,
|
||||||
0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20,
|
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
|
||||||
0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
|
||||||
0x73, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,
|
0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||||
0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61,
|
0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||||
0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
|
0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
|
||||||
0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73,
|
0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73,
|
||||||
0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66,
|
||||||
0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14,
|
0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74,
|
||||||
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78,
|
0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a,
|
||||||
0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61,
|
0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
|
||||||
0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x46, 0x0a,
|
0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65,
|
||||||
0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c,
|
0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
||||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65,
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d,
|
||||||
0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e,
|
0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e,
|
||||||
0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70,
|
0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||||
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73,
|
||||||
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
|
0x74, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20,
|
||||||
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
|
0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
|
||||||
0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61,
|
0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72,
|
||||||
0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c,
|
0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70,
|
||||||
0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63,
|
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
|
||||||
0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63,
|
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,
|
||||||
0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,
|
||||||
0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
|
0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63,
|
||||||
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c,
|
||||||
0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61,
|
0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67,
|
0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12,
|
||||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
|
||||||
0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x10, 0x44,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65,
|
||||||
0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12,
|
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
|
||||||
0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61,
|
0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||||
0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d,
|
0x0b, 0x32, 0x14, 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,
|
0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
|
||||||
0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65,
|
0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
|
||||||
0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f,
|
0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f,
|
||||||
0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64,
|
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61,
|
||||||
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63,
|
0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d,
|
||||||
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 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, 0x41, 0x64, 0x64, 0x43, 0x6f,
|
0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70,
|
||||||
0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
|
0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
|
||||||
0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12,
|
0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45,
|
||||||
0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18,
|
0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b,
|
||||||
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
||||||
0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b,
|
0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||||
0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x62, 0x0a, 0x11, 0x43,
|
0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f,
|
||||||
0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73,
|
0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c,
|
||||||
0x12, 0x4d, 0x0a, 0x13, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
|
0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c,
|
||||||
0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
|
0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65,
|
||||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e,
|
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c,
|
||||||
0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x63, 0x68,
|
0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
|
||||||
0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22,
|
0x22, 0x62, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
|
||||||
0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24,
|
0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x13, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f,
|
||||||
0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
|
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
||||||
0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
|
0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70,
|
||||||
0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18,
|
0x65, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
0x79, 0x70, 0x65, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61,
|
||||||
0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63,
|
0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65,
|
||||||
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61,
|
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77,
|
||||||
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65,
|
0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64,
|
||||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75,
|
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
|
||||||
0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61,
|
0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65,
|
||||||
0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43,
|
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44,
|
||||||
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c,
|
0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a,
|
||||||
0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
|
0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61,
|
0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64,
|
||||||
0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,
|
0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
|
||||||
0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
|
0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x43, 0x68,
|
||||||
0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61,
|
0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f,
|
||||||
0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x15, 0x74, 0x61, 0x72, 0x67,
|
0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
|
||||||
0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
|
0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12,
|
||||||
0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
|
||||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61,
|
0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||||
0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x74,
|
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70,
|
||||||
0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
|
0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a,
|
||||||
0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
|
0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74,
|
||||||
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67,
|
||||||
0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12,
|
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
|
||||||
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22,
|
0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
|
||||||
0x18, 0x0a, 0x06, 0x46, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
0x6f, 0x6e, 0x52, 0x13, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8e, 0x03, 0x0a, 0x09, 0x43, 0x6f,
|
0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x66, 0x0a, 0x12, 0x43, 0x68, 0x61, 0x6e, 0x67,
|
||||||
0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x50, 0x0a,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64,
|
0x14, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70,
|
||||||
0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b,
|
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72,
|
||||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c,
|
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
|
||||||
0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74,
|
0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x63, 0x68, 0x61,
|
||||||
0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c,
|
0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22,
|
||||||
0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75,
|
0x3b, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70,
|
||||||
0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
|
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01,
|
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
||||||
0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74,
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x20, 0x0a, 0x0a,
|
||||||
0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69,
|
0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
|
||||||
0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67,
|
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19,
|
||||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e,
|
0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
||||||
0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69,
|
0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x18, 0x0a, 0x06, 0x46, 0x6c, 0x6f,
|
||||||
0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
|
0x77, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
||||||
0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12,
|
0x02, 0x69, 0x64, 0x22, 0x8e, 0x03, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65,
|
||||||
0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65,
|
0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72,
|
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79,
|
||||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
|
0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||||
0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
|
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74,
|
||||||
0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e,
|
0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12,
|
||||||
0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18,
|
0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03,
|
||||||
0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65,
|
||||||
0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
|
0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73,
|
||||||
0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41,
|
0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65,
|
||||||
0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12,
|
||||||
0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70,
|
0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65,
|
||||||
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c,
|
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70,
|
||||||
0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12,
|
||||||
0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79,
|
0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75,
|
0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74,
|
||||||
0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61,
|
0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18,
|
||||||
0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24,
|
0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||||
0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09,
|
0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79,
|
||||||
0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54,
|
0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74,
|
||||||
0x45, 0x52, 0x10, 0x01, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34,
|
||||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74,
|
0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
|
||||||
0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72,
|
0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74,
|
||||||
0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f,
|
0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75,
|
||||||
0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f,
|
||||||
|
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
|
0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||||
|
0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
|
||||||
|
0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c,
|
||||||
|
0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11,
|
||||||
|
0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d,
|
||||||
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f,
|
||||||
|
0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61,
|
||||||
|
0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53,
|
||||||
|
0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x42, 0x4c,
|
||||||
|
0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
||||||
|
0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
|
||||||
|
0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67,
|
||||||
|
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
|
||||||
|
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72,
|
||||||
|
0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -2140,7 +2272,7 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
|
var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 27)
|
||||||
var file_greptime_v1_ddl_proto_goTypes = []interface{}{
|
var file_greptime_v1_ddl_proto_goTypes = []interface{}{
|
||||||
(AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType
|
(AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType
|
||||||
(*DdlRequest)(nil), // 1: greptime.v1.DdlRequest
|
(*DdlRequest)(nil), // 1: greptime.v1.DdlRequest
|
||||||
@@ -2160,20 +2292,22 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{
|
|||||||
(*RenameTable)(nil), // 15: greptime.v1.RenameTable
|
(*RenameTable)(nil), // 15: greptime.v1.RenameTable
|
||||||
(*AddColumn)(nil), // 16: greptime.v1.AddColumn
|
(*AddColumn)(nil), // 16: greptime.v1.AddColumn
|
||||||
(*ChangeColumnType)(nil), // 17: greptime.v1.ChangeColumnType
|
(*ChangeColumnType)(nil), // 17: greptime.v1.ChangeColumnType
|
||||||
(*DropColumn)(nil), // 18: greptime.v1.DropColumn
|
(*ChangeTableOptions)(nil), // 18: greptime.v1.ChangeTableOptions
|
||||||
(*TableId)(nil), // 19: greptime.v1.TableId
|
(*ChangeTableOption)(nil), // 19: greptime.v1.ChangeTableOption
|
||||||
(*FlowId)(nil), // 20: greptime.v1.FlowId
|
(*DropColumn)(nil), // 20: greptime.v1.DropColumn
|
||||||
(*ColumnDef)(nil), // 21: greptime.v1.ColumnDef
|
(*TableId)(nil), // 21: greptime.v1.TableId
|
||||||
(*AddColumnLocation)(nil), // 22: greptime.v1.AddColumnLocation
|
(*FlowId)(nil), // 22: greptime.v1.FlowId
|
||||||
nil, // 23: greptime.v1.CreateFlowExpr.FlowOptionsEntry
|
(*ColumnDef)(nil), // 23: greptime.v1.ColumnDef
|
||||||
nil, // 24: greptime.v1.CreateTableExpr.TableOptionsEntry
|
(*AddColumnLocation)(nil), // 24: greptime.v1.AddColumnLocation
|
||||||
nil, // 25: greptime.v1.CreateDatabaseExpr.OptionsEntry
|
nil, // 25: greptime.v1.CreateFlowExpr.FlowOptionsEntry
|
||||||
(*TableName)(nil), // 26: greptime.v1.TableName
|
nil, // 26: greptime.v1.CreateTableExpr.TableOptionsEntry
|
||||||
(*ExpireAfter)(nil), // 27: greptime.v1.ExpireAfter
|
nil, // 27: greptime.v1.CreateDatabaseExpr.OptionsEntry
|
||||||
(ColumnDataType)(0), // 28: greptime.v1.ColumnDataType
|
(*TableName)(nil), // 28: greptime.v1.TableName
|
||||||
(*ColumnDataTypeExtension)(nil), // 29: greptime.v1.ColumnDataTypeExtension
|
(*ExpireAfter)(nil), // 29: greptime.v1.ExpireAfter
|
||||||
(SemanticType)(0), // 30: greptime.v1.SemanticType
|
(ColumnDataType)(0), // 30: greptime.v1.ColumnDataType
|
||||||
(*ColumnOptions)(nil), // 31: greptime.v1.ColumnOptions
|
(*ColumnDataTypeExtension)(nil), // 31: greptime.v1.ColumnDataTypeExtension
|
||||||
|
(SemanticType)(0), // 32: greptime.v1.SemanticType
|
||||||
|
(*ColumnOptions)(nil), // 33: 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
|
9, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
|
||||||
@@ -2185,40 +2319,42 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{
|
|||||||
3, // 6: greptime.v1.DdlRequest.drop_flow:type_name -> greptime.v1.DropFlowExpr
|
3, // 6: greptime.v1.DdlRequest.drop_flow:type_name -> greptime.v1.DropFlowExpr
|
||||||
4, // 7: greptime.v1.DdlRequest.create_view:type_name -> greptime.v1.CreateViewExpr
|
4, // 7: greptime.v1.DdlRequest.create_view:type_name -> greptime.v1.CreateViewExpr
|
||||||
5, // 8: greptime.v1.DdlRequest.drop_view:type_name -> greptime.v1.DropViewExpr
|
5, // 8: greptime.v1.DdlRequest.drop_view:type_name -> greptime.v1.DropViewExpr
|
||||||
26, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName
|
28, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName
|
||||||
26, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName
|
28, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName
|
||||||
27, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter
|
29, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter
|
||||||
23, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry
|
25, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry
|
||||||
20, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId
|
22, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId
|
||||||
26, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName
|
28, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName
|
||||||
19, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId
|
21, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId
|
||||||
21, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef
|
23, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef
|
||||||
24, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
|
26, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
|
||||||
19, // 18: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId
|
21, // 18: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId
|
||||||
12, // 19: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns
|
12, // 19: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns
|
||||||
13, // 20: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns
|
13, // 20: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns
|
||||||
15, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable
|
15, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable
|
||||||
14, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes
|
14, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes
|
||||||
19, // 23: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId
|
18, // 23: greptime.v1.AlterExpr.change_table_options:type_name -> greptime.v1.ChangeTableOptions
|
||||||
25, // 24: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry
|
21, // 24: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId
|
||||||
19, // 25: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId
|
27, // 25: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry
|
||||||
16, // 26: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
|
21, // 26: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId
|
||||||
18, // 27: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
|
16, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
|
||||||
17, // 28: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType
|
20, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
|
||||||
21, // 29: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
|
17, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType
|
||||||
22, // 30: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
|
23, // 30: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
|
||||||
28, // 31: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType
|
24, // 31: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
|
||||||
29, // 32: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension
|
30, // 32: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType
|
||||||
28, // 33: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType
|
31, // 33: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension
|
||||||
30, // 34: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType
|
19, // 34: greptime.v1.ChangeTableOptions.change_table_options:type_name -> greptime.v1.ChangeTableOption
|
||||||
29, // 35: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
|
30, // 35: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType
|
||||||
31, // 36: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions
|
32, // 36: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType
|
||||||
0, // 37: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType
|
31, // 37: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
|
||||||
38, // [38:38] is the sub-list for method output_type
|
33, // 38: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions
|
||||||
38, // [38:38] is the sub-list for method input_type
|
0, // 39: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType
|
||||||
38, // [38:38] is the sub-list for extension type_name
|
40, // [40:40] is the sub-list for method output_type
|
||||||
38, // [38:38] is the sub-list for extension extendee
|
40, // [40:40] is the sub-list for method input_type
|
||||||
0, // [0:38] is the sub-list for field type_name
|
40, // [40:40] is the sub-list for extension type_name
|
||||||
|
40, // [40:40] is the sub-list for extension extendee
|
||||||
|
0, // [0:40] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_greptime_v1_ddl_proto_init() }
|
func init() { file_greptime_v1_ddl_proto_init() }
|
||||||
@@ -2433,7 +2569,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DropColumn); i {
|
switch v := v.(*ChangeTableOptions); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -2445,7 +2581,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*TableId); i {
|
switch v := v.(*ChangeTableOption); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -2457,7 +2593,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*FlowId); i {
|
switch v := v.(*DropColumn); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -2469,7 +2605,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*ColumnDef); i {
|
switch v := v.(*TableId); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -2481,6 +2617,30 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*FlowId); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_greptime_v1_ddl_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*ColumnDef); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_greptime_v1_ddl_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AddColumnLocation); i {
|
switch v := v.(*AddColumnLocation); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@@ -2509,6 +2669,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
(*AlterExpr_DropColumns)(nil),
|
(*AlterExpr_DropColumns)(nil),
|
||||||
(*AlterExpr_RenameTable)(nil),
|
(*AlterExpr_RenameTable)(nil),
|
||||||
(*AlterExpr_ChangeColumnTypes)(nil),
|
(*AlterExpr_ChangeColumnTypes)(nil),
|
||||||
|
(*AlterExpr_ChangeTableOptions)(nil),
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
@@ -2516,7 +2677,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
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: 1,
|
||||||
NumMessages: 25,
|
NumMessages: 27,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -16433,6 +16433,21 @@ java.lang.String defaultValue);
|
|||||||
*/
|
*/
|
||||||
io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder();
|
io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
* @return Whether the changeTableOptions field is set.
|
||||||
|
*/
|
||||||
|
boolean hasChangeTableOptions();
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
* @return The changeTableOptions.
|
||||||
|
*/
|
||||||
|
io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions();
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
*/
|
||||||
|
io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* The version of the schema before applying the alteration.
|
* The version of the schema before applying the alteration.
|
||||||
@@ -16542,6 +16557,20 @@ java.lang.String defaultValue);
|
|||||||
kindCase_ = 5;
|
kindCase_ = 5;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 50: {
|
||||||
|
io.greptime.v1.Ddl.ChangeTableOptions.Builder subBuilder = null;
|
||||||
|
if (kindCase_ == 6) {
|
||||||
|
subBuilder = ((io.greptime.v1.Ddl.ChangeTableOptions) kind_).toBuilder();
|
||||||
|
}
|
||||||
|
kind_ =
|
||||||
|
input.readMessage(io.greptime.v1.Ddl.ChangeTableOptions.parser(), extensionRegistry);
|
||||||
|
if (subBuilder != null) {
|
||||||
|
subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeTableOptions) kind_);
|
||||||
|
kind_ = subBuilder.buildPartial();
|
||||||
|
}
|
||||||
|
kindCase_ = 6;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
if (!parseUnknownField(
|
if (!parseUnknownField(
|
||||||
input, unknownFields, extensionRegistry, tag)) {
|
input, unknownFields, extensionRegistry, tag)) {
|
||||||
@@ -16584,6 +16613,7 @@ java.lang.String defaultValue);
|
|||||||
ADD_COLUMNS(2),
|
ADD_COLUMNS(2),
|
||||||
DROP_COLUMNS(3),
|
DROP_COLUMNS(3),
|
||||||
CHANGE_COLUMN_TYPES(5),
|
CHANGE_COLUMN_TYPES(5),
|
||||||
|
CHANGE_TABLE_OPTIONS(6),
|
||||||
KIND_NOT_SET(0);
|
KIND_NOT_SET(0);
|
||||||
private final int value;
|
private final int value;
|
||||||
private KindCase(int value) {
|
private KindCase(int value) {
|
||||||
@@ -16604,6 +16634,7 @@ java.lang.String defaultValue);
|
|||||||
case 2: return ADD_COLUMNS;
|
case 2: return ADD_COLUMNS;
|
||||||
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 0: return KIND_NOT_SET;
|
case 0: return KIND_NOT_SET;
|
||||||
default: return null;
|
default: return null;
|
||||||
}
|
}
|
||||||
@@ -16723,6 +16754,37 @@ java.lang.String defaultValue);
|
|||||||
return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
|
return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static final int CHANGE_TABLE_OPTIONS_FIELD_NUMBER = 6;
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
* @return Whether the changeTableOptions field is set.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean hasChangeTableOptions() {
|
||||||
|
return kindCase_ == 6;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
* @return The changeTableOptions.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions() {
|
||||||
|
if (kindCase_ == 6) {
|
||||||
|
return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
|
||||||
|
}
|
||||||
|
return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder() {
|
||||||
|
if (kindCase_ == 6) {
|
||||||
|
return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
|
||||||
|
}
|
||||||
|
return io.greptime.v1.Ddl.ChangeTableOptions.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_;
|
||||||
/**
|
/**
|
||||||
@@ -16767,6 +16829,9 @@ java.lang.String defaultValue);
|
|||||||
if (kindCase_ == 5) {
|
if (kindCase_ == 5) {
|
||||||
output.writeMessage(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
|
output.writeMessage(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
|
||||||
}
|
}
|
||||||
|
if (kindCase_ == 6) {
|
||||||
|
output.writeMessage(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_);
|
||||||
|
}
|
||||||
unknownFields.writeTo(output);
|
unknownFields.writeTo(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -16796,6 +16861,10 @@ java.lang.String defaultValue);
|
|||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeMessageSize(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
|
.computeMessageSize(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
|
||||||
}
|
}
|
||||||
|
if (kindCase_ == 6) {
|
||||||
|
size += com.google.protobuf.CodedOutputStream
|
||||||
|
.computeMessageSize(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_);
|
||||||
|
}
|
||||||
size += unknownFields.getSerializedSize();
|
size += unknownFields.getSerializedSize();
|
||||||
memoizedSize = size;
|
memoizedSize = size;
|
||||||
return size;
|
return size;
|
||||||
@@ -16829,6 +16898,10 @@ java.lang.String defaultValue);
|
|||||||
if (!getChangeColumnTypes()
|
if (!getChangeColumnTypes()
|
||||||
.equals(other.getChangeColumnTypes())) return false;
|
.equals(other.getChangeColumnTypes())) return false;
|
||||||
break;
|
break;
|
||||||
|
case 6:
|
||||||
|
if (!getChangeTableOptions()
|
||||||
|
.equals(other.getChangeTableOptions())) return false;
|
||||||
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
@@ -16862,6 +16935,10 @@ java.lang.String defaultValue);
|
|||||||
hash = (37 * hash) + CHANGE_COLUMN_TYPES_FIELD_NUMBER;
|
hash = (37 * hash) + CHANGE_COLUMN_TYPES_FIELD_NUMBER;
|
||||||
hash = (53 * hash) + getChangeColumnTypes().hashCode();
|
hash = (53 * hash) + getChangeColumnTypes().hashCode();
|
||||||
break;
|
break;
|
||||||
|
case 6:
|
||||||
|
hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER;
|
||||||
|
hash = (53 * hash) + getChangeTableOptions().hashCode();
|
||||||
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
@@ -17052,6 +17129,13 @@ java.lang.String defaultValue);
|
|||||||
result.kind_ = changeColumnTypesBuilder_.build();
|
result.kind_ = changeColumnTypesBuilder_.build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (kindCase_ == 6) {
|
||||||
|
if (changeTableOptionsBuilder_ == null) {
|
||||||
|
result.kind_ = kind_;
|
||||||
|
} else {
|
||||||
|
result.kind_ = changeTableOptionsBuilder_.build();
|
||||||
|
}
|
||||||
|
}
|
||||||
result.schemaVersion_ = schemaVersion_;
|
result.schemaVersion_ = schemaVersion_;
|
||||||
result.kindCase_ = kindCase_;
|
result.kindCase_ = kindCase_;
|
||||||
onBuilt();
|
onBuilt();
|
||||||
@@ -17121,6 +17205,10 @@ java.lang.String defaultValue);
|
|||||||
mergeChangeColumnTypes(other.getChangeColumnTypes());
|
mergeChangeColumnTypes(other.getChangeColumnTypes());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case CHANGE_TABLE_OPTIONS: {
|
||||||
|
mergeChangeTableOptions(other.getChangeTableOptions());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -17626,6 +17714,148 @@ java.lang.String defaultValue);
|
|||||||
return changeColumnTypesBuilder_;
|
return changeColumnTypesBuilder_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private com.google.protobuf.SingleFieldBuilderV3<
|
||||||
|
io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder> changeTableOptionsBuilder_;
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
* @return Whether the changeTableOptions field is set.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean hasChangeTableOptions() {
|
||||||
|
return kindCase_ == 6;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
* @return The changeTableOptions.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions() {
|
||||||
|
if (changeTableOptionsBuilder_ == null) {
|
||||||
|
if (kindCase_ == 6) {
|
||||||
|
return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
|
||||||
|
}
|
||||||
|
return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
|
||||||
|
} else {
|
||||||
|
if (kindCase_ == 6) {
|
||||||
|
return changeTableOptionsBuilder_.getMessage();
|
||||||
|
}
|
||||||
|
return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
*/
|
||||||
|
public Builder setChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions value) {
|
||||||
|
if (changeTableOptionsBuilder_ == null) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new NullPointerException();
|
||||||
|
}
|
||||||
|
kind_ = value;
|
||||||
|
onChanged();
|
||||||
|
} else {
|
||||||
|
changeTableOptionsBuilder_.setMessage(value);
|
||||||
|
}
|
||||||
|
kindCase_ = 6;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
*/
|
||||||
|
public Builder setChangeTableOptions(
|
||||||
|
io.greptime.v1.Ddl.ChangeTableOptions.Builder builderForValue) {
|
||||||
|
if (changeTableOptionsBuilder_ == null) {
|
||||||
|
kind_ = builderForValue.build();
|
||||||
|
onChanged();
|
||||||
|
} else {
|
||||||
|
changeTableOptionsBuilder_.setMessage(builderForValue.build());
|
||||||
|
}
|
||||||
|
kindCase_ = 6;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
*/
|
||||||
|
public Builder mergeChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions value) {
|
||||||
|
if (changeTableOptionsBuilder_ == null) {
|
||||||
|
if (kindCase_ == 6 &&
|
||||||
|
kind_ != io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance()) {
|
||||||
|
kind_ = io.greptime.v1.Ddl.ChangeTableOptions.newBuilder((io.greptime.v1.Ddl.ChangeTableOptions) kind_)
|
||||||
|
.mergeFrom(value).buildPartial();
|
||||||
|
} else {
|
||||||
|
kind_ = value;
|
||||||
|
}
|
||||||
|
onChanged();
|
||||||
|
} else {
|
||||||
|
if (kindCase_ == 6) {
|
||||||
|
changeTableOptionsBuilder_.mergeFrom(value);
|
||||||
|
} else {
|
||||||
|
changeTableOptionsBuilder_.setMessage(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
kindCase_ = 6;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
*/
|
||||||
|
public Builder clearChangeTableOptions() {
|
||||||
|
if (changeTableOptionsBuilder_ == null) {
|
||||||
|
if (kindCase_ == 6) {
|
||||||
|
kindCase_ = 0;
|
||||||
|
kind_ = null;
|
||||||
|
onChanged();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (kindCase_ == 6) {
|
||||||
|
kindCase_ = 0;
|
||||||
|
kind_ = null;
|
||||||
|
}
|
||||||
|
changeTableOptionsBuilder_.clear();
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
*/
|
||||||
|
public io.greptime.v1.Ddl.ChangeTableOptions.Builder getChangeTableOptionsBuilder() {
|
||||||
|
return getChangeTableOptionsFieldBuilder().getBuilder();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder() {
|
||||||
|
if ((kindCase_ == 6) && (changeTableOptionsBuilder_ != null)) {
|
||||||
|
return changeTableOptionsBuilder_.getMessageOrBuilder();
|
||||||
|
} else {
|
||||||
|
if (kindCase_ == 6) {
|
||||||
|
return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
|
||||||
|
}
|
||||||
|
return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
||||||
|
*/
|
||||||
|
private com.google.protobuf.SingleFieldBuilderV3<
|
||||||
|
io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder>
|
||||||
|
getChangeTableOptionsFieldBuilder() {
|
||||||
|
if (changeTableOptionsBuilder_ == null) {
|
||||||
|
if (!(kindCase_ == 6)) {
|
||||||
|
kind_ = io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
|
||||||
|
}
|
||||||
|
changeTableOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||||
|
io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder>(
|
||||||
|
(io.greptime.v1.Ddl.ChangeTableOptions) kind_,
|
||||||
|
getParentForChildren(),
|
||||||
|
isClean());
|
||||||
|
kind_ = null;
|
||||||
|
}
|
||||||
|
kindCase_ = 6;
|
||||||
|
onChanged();;
|
||||||
|
return changeTableOptionsBuilder_;
|
||||||
|
}
|
||||||
|
|
||||||
private long schemaVersion_ ;
|
private long schemaVersion_ ;
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
@@ -24564,34 +24794,36 @@ 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\"\360\001\n\014Alte" +
|
"greptime.v1.region.AlterRequest\"\261\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\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAd" +
|
"H\000\022?\n\024change_table_options\030\006 \001(\0132\037.grept" +
|
||||||
"dColumns\0222\n\013add_columns\030\001 \003(\0132\035.greptime" +
|
"ime.v1.ChangeTableOptionsH\000\022\026\n\016schema_ve" +
|
||||||
".v1.region.AddColumn\"C\n\013DropColumns\0224\n\014d" +
|
"rsion\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add" +
|
||||||
"rop_columns\030\001 \003(\0132\036.greptime.v1.region.D" +
|
"_columns\030\001 \003(\0132\035.greptime.v1.region.AddC" +
|
||||||
"ropColumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001" +
|
"olumn\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003" +
|
||||||
"(\0132#.greptime.v1.region.RegionColumnDef\022" +
|
"(\0132\036.greptime.v1.region.DropColumn\"v\n\tAd" +
|
||||||
"0\n\010location\030\003 \001(\0132\036.greptime.v1.AddColum" +
|
"dColumn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v" +
|
||||||
"nLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n" +
|
"1.region.RegionColumnDef\0220\n\010location\030\003 \001" +
|
||||||
"\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regu" +
|
"(\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDr" +
|
||||||
"lar\"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 " +
|
"opColumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021" +
|
||||||
"\001(\003\"\231\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(" +
|
"\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWi" +
|
||||||
"\004\022.\n\007regular\030\002 \001(\0132\033.greptime.v1.region." +
|
"ndow\022\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016Compact" +
|
||||||
"RegularH\000\0229\n\rstrict_window\030\003 \001(\0132 .grept" +
|
"Request\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 " +
|
||||||
"ime.v1.region.StrictWindowH\000B\t\n\007options\"" +
|
"\001(\0132\033.greptime.v1.region.RegularH\000\0229\n\rst" +
|
||||||
"$\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n" +
|
"rict_window\030\003 \001(\0132 .greptime.v1.region.S" +
|
||||||
"\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.g" +
|
"trictWindowH\000B\t\n\007options\"$\n\017TruncateRequ" +
|
||||||
"reptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2" +
|
"est\022\021\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDe" +
|
||||||
"Y\n\006Region\022O\n\006Handle\022!.greptime.v1.region" +
|
"f\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colu" +
|
||||||
".RegionRequest\032\".greptime.v1.region.Regi" +
|
"mnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Ha" +
|
||||||
"onResponseB]\n\025io.greptime.v1.regionB\006Ser" +
|
"ndle\022!.greptime.v1.region.RegionRequest\032" +
|
||||||
"verZ<github.com/GreptimeTeam/greptime-pr" +
|
"\".greptime.v1.region.RegionResponseB]\n\025i" +
|
||||||
"oto/go/greptime/v1/regionb\006proto3"
|
"o.greptime.v1.regionB\006ServerZ<github.com" +
|
||||||
|
"/GreptimeTeam/greptime-proto/go/greptime" +
|
||||||
|
"/v1/regionb\006proto3"
|
||||||
};
|
};
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
.internalBuildGeneratedFileFrom(descriptorData,
|
||||||
@@ -24719,7 +24951,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", "SchemaVersion", "Kind", });
|
new java.lang.String[] { "RegionId", "AddColumns", "DropColumns", "ChangeColumnTypes", "ChangeTableOptions", "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
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ message AlterExpr {
|
|||||||
DropColumns drop_columns = 5;
|
DropColumns drop_columns = 5;
|
||||||
RenameTable rename_table = 6;
|
RenameTable rename_table = 6;
|
||||||
ChangeColumnTypes change_column_types = 7;
|
ChangeColumnTypes change_column_types = 7;
|
||||||
|
ChangeTableOptions change_table_options = 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,6 +160,15 @@ message ChangeColumnType {
|
|||||||
ColumnDataTypeExtension target_type_extension = 3;
|
ColumnDataTypeExtension target_type_extension = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message ChangeTableOptions {
|
||||||
|
repeated ChangeTableOption change_table_options = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ChangeTableOption {
|
||||||
|
string key = 1;
|
||||||
|
string value = 2;
|
||||||
|
}
|
||||||
|
|
||||||
message DropColumn { string name = 1; }
|
message DropColumn { string name = 1; }
|
||||||
|
|
||||||
message TableId { uint32 id = 1; }
|
message TableId { uint32 id = 1; }
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ message AlterRequest {
|
|||||||
AddColumns add_columns = 2;
|
AddColumns add_columns = 2;
|
||||||
DropColumns drop_columns = 3;
|
DropColumns drop_columns = 3;
|
||||||
ChangeColumnTypes change_column_types = 5;
|
ChangeColumnTypes change_column_types = 5;
|
||||||
|
ChangeTableOptions change_table_options = 6;
|
||||||
}
|
}
|
||||||
// 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user