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_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(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*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_;
|
||||
} // namespace v1
|
||||
} // 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 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,
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterExpr, _impl_.kind_),
|
||||
~0u, // no _has_bits_
|
||||
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_extension_),
|
||||
~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_),
|
||||
~0u, // no _extensions_
|
||||
~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)},
|
||||
{ 89, -1, -1, sizeof(::greptime::v1::CreateTableExpr)},
|
||||
{ 106, -1, -1, sizeof(::greptime::v1::AlterExpr)},
|
||||
{ 120, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
|
||||
{ 131, 139, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
|
||||
{ 141, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
|
||||
{ 151, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
|
||||
{ 161, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
|
||||
{ 170, -1, -1, sizeof(::greptime::v1::AddColumns)},
|
||||
{ 177, -1, -1, sizeof(::greptime::v1::DropColumns)},
|
||||
{ 184, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)},
|
||||
{ 191, -1, -1, sizeof(::greptime::v1::RenameTable)},
|
||||
{ 198, -1, -1, sizeof(::greptime::v1::AddColumn)},
|
||||
{ 206, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
|
||||
{ 215, -1, -1, sizeof(::greptime::v1::DropColumn)},
|
||||
{ 222, -1, -1, sizeof(::greptime::v1::TableId)},
|
||||
{ 229, -1, -1, sizeof(::greptime::v1::FlowId)},
|
||||
{ 236, -1, -1, sizeof(::greptime::v1::ColumnDef)},
|
||||
{ 250, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
|
||||
{ 121, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
|
||||
{ 132, 140, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
|
||||
{ 142, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
|
||||
{ 152, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
|
||||
{ 162, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
|
||||
{ 171, -1, -1, sizeof(::greptime::v1::AddColumns)},
|
||||
{ 178, -1, -1, sizeof(::greptime::v1::DropColumns)},
|
||||
{ 185, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)},
|
||||
{ 192, -1, -1, sizeof(::greptime::v1::RenameTable)},
|
||||
{ 199, -1, -1, sizeof(::greptime::v1::AddColumn)},
|
||||
{ 207, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
|
||||
{ 216, -1, -1, sizeof(::greptime::v1::ChangeTableOptions)},
|
||||
{ 223, -1, -1, sizeof(::greptime::v1::ChangeTableOption)},
|
||||
{ 231, -1, -1, sizeof(::greptime::v1::DropColumn)},
|
||||
{ 238, -1, -1, sizeof(::greptime::v1::TableId)},
|
||||
{ 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[] = {
|
||||
@@ -719,6 +764,8 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::_RenameTable_default_instance_._instance,
|
||||
&::greptime::v1::_AddColumn_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::_TableId_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"
|
||||
"\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"
|
||||
"\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"
|
||||
"\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"
|
||||
"op_columns\030\005 \001(\0132\030.greptime.v1.DropColum"
|
||||
"nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1"
|
||||
".RenameTableH\000\022=\n\023change_column_types\030\007 "
|
||||
"\001(\0132\036.greptime.v1.ChangeColumnTypesH\000B\006\n"
|
||||
"\004kind\"\216\001\n\rDropTableExpr\022\024\n\014catalog_name\030"
|
||||
"\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name"
|
||||
"\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.T"
|
||||
"ableId\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022Creat"
|
||||
"eDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s"
|
||||
"chema_name\030\002 \001(\t\022\034\n\024create_if_not_exists"
|
||||
"\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1.Cr"
|
||||
"eateDatabaseExpr.OptionsEntry\032.\n\014Options"
|
||||
"Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n"
|
||||
"\021TruncateTableExpr\022\024\n\014catalog_name\030\001 \001(\t"
|
||||
"\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001("
|
||||
"\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.TableI"
|
||||
"d\"U\n\020DropDatabaseExpr\022\024\n\014catalog_name\030\001 "
|
||||
"\001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_exis"
|
||||
"ts\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns\030\001 "
|
||||
"\003(\0132\026.greptime.v1.AddColumn\"<\n\013DropColum"
|
||||
"ns\022-\n\014drop_columns\030\001 \003(\0132\027.greptime.v1.D"
|
||||
"ropColumn\"O\n\021ChangeColumnTypes\022:\n\023change"
|
||||
"_column_types\030\001 \003(\0132\035.greptime.v1.Change"
|
||||
"ColumnType\"%\n\013RenameTable\022\026\n\016new_table_n"
|
||||
"ame\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001"
|
||||
"(\0132\026.greptime.v1.ColumnDef\0220\n\010location\030\003"
|
||||
" \001(\0132\036.greptime.v1.AddColumnLocation\"\236\001\n"
|
||||
"\020ChangeColumnType\022\023\n\013column_name\030\001 \001(\t\0220"
|
||||
"\n\013target_type\030\002 \001(\0162\033.greptime.v1.Column"
|
||||
"DataType\022C\n\025target_type_extension\030\003 \001(\0132"
|
||||
"$.greptime.v1.ColumnDataTypeExtension\"\032\n"
|
||||
"\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002"
|
||||
"id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColum"
|
||||
"nDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033."
|
||||
"greptime.v1.ColumnDataType\022\023\n\013is_nullabl"
|
||||
"e\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rs"
|
||||
"emantic_type\030\005 \001(\0162\031.greptime.v1.Semanti"
|
||||
"cType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_exten"
|
||||
"sion\030\007 \001(\0132$.greptime.v1.ColumnDataTypeE"
|
||||
"xtension\022+\n\007options\030\010 \001(\0132\032.greptime.v1."
|
||||
"ColumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rl"
|
||||
"ocation_type\030\001 \001(\0162+.greptime.v1.AddColu"
|
||||
"mnLocation.LocationType\022\031\n\021after_column_"
|
||||
"name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n"
|
||||
"\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github."
|
||||
"com/GreptimeTeam/greptime-proto/go/grept"
|
||||
"ime/v1b\006proto3"
|
||||
"\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022\?\n"
|
||||
"\024change_table_options\030\010 \001(\0132\037.greptime.v"
|
||||
"1.ChangeTableOptionsH\000B\006\n\004kind\"\216\001\n\rDropT"
|
||||
"ableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema"
|
||||
"_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table"
|
||||
"_id\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_"
|
||||
"if_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024"
|
||||
"\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001("
|
||||
"\t\022\034\n\024create_if_not_exists\030\003 \001(\010\022=\n\007optio"
|
||||
"ns\030\004 \003(\0132,.greptime.v1.CreateDatabaseExp"
|
||||
"r.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 "
|
||||
"\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableE"
|
||||
"xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name"
|
||||
"\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004"
|
||||
" \001(\0132\024.greptime.v1.TableId\"U\n\020DropDataba"
|
||||
"seExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n"
|
||||
"ame\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAdd"
|
||||
"Columns\022+\n\013add_columns\030\001 \003(\0132\026.greptime."
|
||||
"v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_colu"
|
||||
"mns\030\001 \003(\0132\027.greptime.v1.DropColumn\"O\n\021Ch"
|
||||
"angeColumnTypes\022:\n\023change_column_types\030\001"
|
||||
" \003(\0132\035.greptime.v1.ChangeColumnType\"%\n\013R"
|
||||
"enameTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAd"
|
||||
"dColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v"
|
||||
"1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime"
|
||||
".v1.AddColumnLocation\"\236\001\n\020ChangeColumnTy"
|
||||
"pe\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_type\030\002"
|
||||
" \001(\0162\033.greptime.v1.ColumnDataType\022C\n\025tar"
|
||||
"get_type_extension\030\003 \001(\0132$.greptime.v1.C"
|
||||
"olumnDataTypeExtension\"R\n\022ChangeTableOpt"
|
||||
"ions\022<\n\024change_table_options\030\001 \003(\0132\036.gre"
|
||||
"ptime.v1.ChangeTableOption\"/\n\021ChangeTabl"
|
||||
"eOption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\032\n\nD"
|
||||
"ropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id"
|
||||
"\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnD"
|
||||
"ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr"
|
||||
"eptime.v1.ColumnDataType\022\023\n\013is_nullable\030"
|
||||
"\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem"
|
||||
"antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT"
|
||||
"ype\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extensi"
|
||||
"on\030\007 \001(\0132$.greptime.v1.ColumnDataTypeExt"
|
||||
"ension\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Co"
|
||||
"lumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rloc"
|
||||
"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] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
|
||||
false, false, 3854, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
|
||||
false, false, 4052, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
|
||||
"greptime/v1/ddl.proto",
|
||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 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,
|
||||
file_level_metadata_greptime_2fv1_2fddl_2eproto, file_level_enum_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::RenameTable& rename_table(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&
|
||||
@@ -4186,6 +4239,10 @@ const ::greptime::v1::ChangeColumnTypes&
|
||||
AlterExpr::_Internal::change_column_types(const AlterExpr* msg) {
|
||||
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) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
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)
|
||||
}
|
||||
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,
|
||||
bool 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());
|
||||
break;
|
||||
}
|
||||
case kChangeTableOptions: {
|
||||
_this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom(
|
||||
from._internal_change_table_options());
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -4394,6 +4471,12 @@ void AlterExpr::clear_kind() {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case kChangeTableOptions: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.change_table_options_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -4483,6 +4566,14 @@ const char* AlterExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx
|
||||
} else
|
||||
goto handle_unusual;
|
||||
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:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -4570,6 +4661,13 @@ uint8_t* AlterExpr::_InternalSerialize(
|
||||
_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())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_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_);
|
||||
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: {
|
||||
break;
|
||||
}
|
||||
@@ -4688,6 +4793,11 @@ void AlterExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT
|
||||
from._internal_change_column_types());
|
||||
break;
|
||||
}
|
||||
case kChangeTableOptions: {
|
||||
_this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom(
|
||||
from._internal_change_table_options());
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
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 {
|
||||
public:
|
||||
};
|
||||
@@ -7578,7 +8126,7 @@ void DropColumn::InternalSwap(DropColumn* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[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 {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[21]);
|
||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[23]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -7934,7 +8482,7 @@ void FlowId::InternalSwap(FlowId* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowId::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[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 {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[23]);
|
||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[25]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -8649,7 +9197,7 @@ void AddColumnLocation::InternalSwap(AddColumnLocation* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata AddColumnLocation::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[24]);
|
||||
file_level_metadata_greptime_2fv1_2fddl_2eproto[26]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
@@ -8736,6 +9284,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeColumnType*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnType >(Arena* 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*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::DropColumn >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::DropColumn >(arena);
|
||||
|
||||
+587
-5
@@ -69,6 +69,12 @@ extern ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_;
|
||||
class ChangeColumnTypes;
|
||||
struct ChangeColumnTypesDefaultTypeInternal;
|
||||
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;
|
||||
struct ColumnDefDefaultTypeInternal;
|
||||
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::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnType>(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::CreateDatabaseExpr* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr>(Arena*);
|
||||
template<> ::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse>(Arena*);
|
||||
@@ -2011,6 +2019,7 @@ class AlterExpr final :
|
||||
kDropColumns = 5,
|
||||
kRenameTable = 6,
|
||||
kChangeColumnTypes = 7,
|
||||
kChangeTableOptions = 8,
|
||||
KIND_NOT_SET = 0,
|
||||
};
|
||||
|
||||
@@ -2099,6 +2108,7 @@ class AlterExpr final :
|
||||
kDropColumnsFieldNumber = 5,
|
||||
kRenameTableFieldNumber = 6,
|
||||
kChangeColumnTypesFieldNumber = 7,
|
||||
kChangeTableOptionsFieldNumber = 8,
|
||||
};
|
||||
// string catalog_name = 1;
|
||||
void clear_catalog_name();
|
||||
@@ -2214,6 +2224,24 @@ class AlterExpr final :
|
||||
::greptime::v1::ChangeColumnTypes* 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();
|
||||
KindCase kind_case() const;
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.AlterExpr)
|
||||
@@ -2223,6 +2251,7 @@ class AlterExpr final :
|
||||
void set_has_drop_columns();
|
||||
void set_has_rename_table();
|
||||
void set_has_change_column_types();
|
||||
void set_has_change_table_options();
|
||||
|
||||
inline bool has_kind() const;
|
||||
inline void clear_has_kind();
|
||||
@@ -2241,6 +2270,7 @@ class AlterExpr final :
|
||||
::greptime::v1::DropColumns* drop_columns_;
|
||||
::greptime::v1::RenameTable* rename_table_;
|
||||
::greptime::v1::ChangeColumnTypes* change_column_types_;
|
||||
::greptime::v1::ChangeTableOptions* change_table_options_;
|
||||
} kind_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
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 :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropColumn) */ {
|
||||
public:
|
||||
@@ -4119,7 +4475,7 @@ class DropColumn final :
|
||||
&_DropColumn_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
20;
|
||||
22;
|
||||
|
||||
friend void swap(DropColumn& a, DropColumn& b) {
|
||||
a.Swap(&b);
|
||||
@@ -4272,7 +4628,7 @@ class TableId final :
|
||||
&_TableId_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
21;
|
||||
23;
|
||||
|
||||
friend void swap(TableId& a, TableId& b) {
|
||||
a.Swap(&b);
|
||||
@@ -4420,7 +4776,7 @@ class FlowId final :
|
||||
&_FlowId_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
22;
|
||||
24;
|
||||
|
||||
friend void swap(FlowId& a, FlowId& b) {
|
||||
a.Swap(&b);
|
||||
@@ -4568,7 +4924,7 @@ class ColumnDef final :
|
||||
&_ColumnDef_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
23;
|
||||
25;
|
||||
|
||||
friend void swap(ColumnDef& a, ColumnDef& b) {
|
||||
a.Swap(&b);
|
||||
@@ -4826,7 +5182,7 @@ class AddColumnLocation final :
|
||||
&_AddColumnLocation_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
24;
|
||||
26;
|
||||
|
||||
friend void swap(AddColumnLocation& a, AddColumnLocation& b) {
|
||||
a.Swap(&b);
|
||||
@@ -8107,6 +8463,80 @@ inline ::greptime::v1::ChangeColumnTypes* AlterExpr::mutable_change_column_types
|
||||
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 {
|
||||
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
|
||||
|
||||
// string name = 1;
|
||||
@@ -10043,6 +10621,10 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@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,
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.schema_version_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.kind_),
|
||||
~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)},
|
||||
{ 168, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
|
||||
{ 175, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
||||
{ 187, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
||||
{ 194, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
||||
{ 201, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
||||
{ 209, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
||||
{ 216, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||
{ 223, -1, -1, sizeof(::greptime::v1::region::Regular)},
|
||||
{ 229, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
||||
{ 236, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||
{ 246, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
||||
{ 253, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||
{ 188, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
||||
{ 195, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
||||
{ 202, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
||||
{ 210, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
||||
{ 217, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||
{ 224, -1, -1, sizeof(::greptime::v1::region::Regular)},
|
||||
{ 230, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
||||
{ 237, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||
{ 247, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
||||
{ 254, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||
};
|
||||
|
||||
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 "
|
||||
"\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 ."
|
||||
"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"
|
||||
"ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns"
|
||||
"H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r"
|
||||
"egion.DropColumnsH\000\022=\n\023change_column_typ"
|
||||
"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"
|
||||
"dColumns\0222\n\013add_columns\030\001 \003(\0132\035.greptime"
|
||||
".v1.region.AddColumn\"C\n\013DropColumns\0224\n\014d"
|
||||
"rop_columns\030\001 \003(\0132\036.greptime.v1.region.D"
|
||||
"ropColumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001"
|
||||
"(\0132#.greptime.v1.region.RegionColumnDef\022"
|
||||
"0\n\010location\030\003 \001(\0132\036.greptime.v1.AddColum"
|
||||
"nLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n"
|
||||
"\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regu"
|
||||
"lar\"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 "
|
||||
"\001(\003\"\231\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001("
|
||||
"\004\022.\n\007regular\030\002 \001(\0132\033.greptime.v1.region."
|
||||
"RegularH\000\0229\n\rstrict_window\030\003 \001(\0132 .grept"
|
||||
"ime.v1.region.StrictWindowH\000B\t\n\007options\""
|
||||
"$\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n"
|
||||
"\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.g"
|
||||
"reptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2"
|
||||
"Y\n\006Region\022O\n\006Handle\022!.greptime.v1.region"
|
||||
".RegionRequest\032\".greptime.v1.region.Regi"
|
||||
"onResponseB]\n\025io.greptime.v1.regionB\006Ser"
|
||||
"verZ<github.com/GreptimeTeam/greptime-pr"
|
||||
"oto/go/greptime/v1/regionb\006proto3"
|
||||
"H\000\022\?\n\024change_table_options\030\006 \001(\0132\037.grept"
|
||||
"ime.v1.ChangeTableOptionsH\000\022\026\n\016schema_ve"
|
||||
"rsion\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add"
|
||||
"_columns\030\001 \003(\0132\035.greptime.v1.region.AddC"
|
||||
"olumn\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003"
|
||||
"(\0132\036.greptime.v1.region.DropColumn\"v\n\tAd"
|
||||
"dColumn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v"
|
||||
"1.region.RegionColumnDef\0220\n\010location\030\003 \001"
|
||||
"(\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDr"
|
||||
"opColumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021"
|
||||
"\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWi"
|
||||
"ndow\022\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016Compact"
|
||||
"Request\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 "
|
||||
"\001(\0132\033.greptime.v1.region.RegularH\000\0229\n\rst"
|
||||
"rict_window\030\003 \001(\0132 .greptime.v1.region.S"
|
||||
"trictWindowH\000B\t\n\007options\"$\n\017TruncateRequ"
|
||||
"est\022\021\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDe"
|
||||
"f\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colu"
|
||||
"mnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Ha"
|
||||
"ndle\022!.greptime.v1.region.RegionRequest\032"
|
||||
"\".greptime.v1.region.RegionResponseB]\n\025i"
|
||||
"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] = {
|
||||
&::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;
|
||||
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",
|
||||
&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,
|
||||
@@ -5324,6 +5327,7 @@ class AlterRequest::_Internal {
|
||||
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::ChangeColumnTypes& change_column_types(const AlterRequest* msg);
|
||||
static const ::greptime::v1::ChangeTableOptions& change_table_options(const AlterRequest* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::region::AddColumns&
|
||||
@@ -5338,6 +5342,10 @@ const ::greptime::v1::ChangeColumnTypes&
|
||||
AlterRequest::_Internal::change_column_types(const AlterRequest* msg) {
|
||||
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) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_kind();
|
||||
@@ -5392,6 +5400,30 @@ void AlterRequest::clear_change_column_types() {
|
||||
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,
|
||||
bool 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());
|
||||
break;
|
||||
}
|
||||
case kChangeTableOptions: {
|
||||
_this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom(
|
||||
from._internal_change_table_options());
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -5491,6 +5528,12 @@ void AlterRequest::clear_kind() {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case kChangeTableOptions: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.change_table_options_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -5558,6 +5601,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
||||
} else
|
||||
goto handle_unusual;
|
||||
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:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -5620,6 +5671,13 @@ uint8_t* AlterRequest::_InternalSerialize(
|
||||
_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())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_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_);
|
||||
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: {
|
||||
break;
|
||||
}
|
||||
@@ -5712,6 +5777,11 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
|
||||
from._internal_change_column_types());
|
||||
break;
|
||||
}
|
||||
case kChangeTableOptions: {
|
||||
_this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom(
|
||||
from._internal_change_table_options());
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -3251,6 +3251,7 @@ class AlterRequest final :
|
||||
kAddColumns = 2,
|
||||
kDropColumns = 3,
|
||||
kChangeColumnTypes = 5,
|
||||
kChangeTableOptions = 6,
|
||||
KIND_NOT_SET = 0,
|
||||
};
|
||||
|
||||
@@ -3337,6 +3338,7 @@ class AlterRequest final :
|
||||
kAddColumnsFieldNumber = 2,
|
||||
kDropColumnsFieldNumber = 3,
|
||||
kChangeColumnTypesFieldNumber = 5,
|
||||
kChangeTableOptionsFieldNumber = 6,
|
||||
};
|
||||
// uint64 region_id = 1;
|
||||
void clear_region_id();
|
||||
@@ -3410,6 +3412,24 @@ class AlterRequest final :
|
||||
::greptime::v1::ChangeColumnTypes* 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();
|
||||
KindCase kind_case() const;
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest)
|
||||
@@ -3418,6 +3438,7 @@ class AlterRequest final :
|
||||
void set_has_add_columns();
|
||||
void set_has_drop_columns();
|
||||
void set_has_change_column_types();
|
||||
void set_has_change_table_options();
|
||||
|
||||
inline bool has_kind() const;
|
||||
inline void clear_has_kind();
|
||||
@@ -3434,6 +3455,7 @@ class AlterRequest final :
|
||||
::greptime::v1::region::AddColumns* add_columns_;
|
||||
::greptime::v1::region::DropColumns* drop_columns_;
|
||||
::greptime::v1::ChangeColumnTypes* change_column_types_;
|
||||
::greptime::v1::ChangeTableOptions* change_table_options_;
|
||||
} kind_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
uint32_t _oneof_case_[1];
|
||||
@@ -7690,6 +7712,72 @@ inline ::greptime::v1::ChangeColumnTypes* AlterRequest::mutable_change_column_ty
|
||||
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;
|
||||
inline void AlterRequest::clear_schema_version() {
|
||||
_impl_.schema_version_ = uint64_t{0u};
|
||||
|
||||
Reference in New Issue
Block a user