feat: truncate table (#70)

This commit is contained in:
Vanish
2023-07-20 16:48:54 +08:00
committed by GitHub
parent 8405064fda
commit e665c9ff3e
10 changed files with 4483 additions and 452 deletions
+511 -71
View File
@@ -156,6 +156,22 @@ struct CreateDatabaseExprDefaultTypeInternal {
}; };
}; };
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateDatabaseExprDefaultTypeInternal _CreateDatabaseExpr_default_instance_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateDatabaseExprDefaultTypeInternal _CreateDatabaseExpr_default_instance_;
PROTOBUF_CONSTEXPR TruncateTableExpr::TruncateTableExpr(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.table_id_)*/nullptr
, /*decltype(_impl_._cached_size_)*/{}} {}
struct TruncateTableExprDefaultTypeInternal {
PROTOBUF_CONSTEXPR TruncateTableExprDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~TruncateTableExprDefaultTypeInternal() {}
union {
TruncateTableExpr _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TruncateTableExprDefaultTypeInternal _TruncateTableExpr_default_instance_;
PROTOBUF_CONSTEXPR AddColumns::AddColumns( PROTOBUF_CONSTEXPR AddColumns::AddColumns(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.add_columns_)*/{} /*decltype(_impl_.add_columns_)*/{}
@@ -252,7 +268,7 @@ struct TableIdDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TableIdDefaultTypeInternal _TableId_default_instance_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TableIdDefaultTypeInternal _TableId_default_instance_;
} // namespace v1 } // namespace v1
} // namespace greptime } // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[15]; static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[16];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[1]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[1];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fddl_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fddl_2eproto = nullptr;
@@ -269,6 +285,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag,
PROTOBUF_FIELD_OFFSET(::greptime::v1::DdlRequest, _impl_.expr_), PROTOBUF_FIELD_OFFSET(::greptime::v1::DdlRequest, _impl_.expr_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse, _internal_metadata_),
@@ -362,6 +379,16 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateDatabaseExpr, _impl_.database_name_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateDatabaseExpr, _impl_.database_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateDatabaseExpr, _impl_.create_if_not_exists_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateDatabaseExpr, _impl_.create_if_not_exists_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.catalog_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.schema_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.table_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.table_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumns, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumns, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
@@ -416,20 +443,21 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
}; };
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::greptime::v1::DdlRequest)}, { 0, -1, -1, sizeof(::greptime::v1::DdlRequest)},
{ 13, 21, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, { 14, 22, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)},
{ 23, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, { 24, -1, -1, sizeof(::greptime::v1::CreateTableExpr)},
{ 41, -1, -1, sizeof(::greptime::v1::AlterExpr)}, { 42, -1, -1, sizeof(::greptime::v1::AlterExpr)},
{ 56, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, { 57, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
{ 66, 77, -1, sizeof(::greptime::v1::FlushTableExpr)}, { 67, 78, -1, sizeof(::greptime::v1::FlushTableExpr)},
{ 82, 92, -1, sizeof(::greptime::v1::CompactTableExpr)}, { 83, 93, -1, sizeof(::greptime::v1::CompactTableExpr)},
{ 96, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, { 97, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
{ 104, -1, -1, sizeof(::greptime::v1::AddColumns)}, { 105, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
{ 111, -1, -1, sizeof(::greptime::v1::DropColumns)}, { 115, -1, -1, sizeof(::greptime::v1::AddColumns)},
{ 118, -1, -1, sizeof(::greptime::v1::RenameTable)}, { 122, -1, -1, sizeof(::greptime::v1::DropColumns)},
{ 125, -1, -1, sizeof(::greptime::v1::AddColumn_Location)}, { 129, -1, -1, sizeof(::greptime::v1::RenameTable)},
{ 133, -1, -1, sizeof(::greptime::v1::AddColumn)}, { 136, -1, -1, sizeof(::greptime::v1::AddColumn_Location)},
{ 142, -1, -1, sizeof(::greptime::v1::DropColumn)}, { 144, -1, -1, sizeof(::greptime::v1::AddColumn)},
{ 149, -1, -1, sizeof(::greptime::v1::TableId)}, { 153, -1, -1, sizeof(::greptime::v1::DropColumn)},
{ 160, -1, -1, sizeof(::greptime::v1::TableId)},
}; };
static const ::_pb::Message* const file_default_instances[] = { static const ::_pb::Message* const file_default_instances[] = {
@@ -441,6 +469,7 @@ static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::_FlushTableExpr_default_instance_._instance, &::greptime::v1::_FlushTableExpr_default_instance_._instance,
&::greptime::v1::_CompactTableExpr_default_instance_._instance, &::greptime::v1::_CompactTableExpr_default_instance_._instance,
&::greptime::v1::_CreateDatabaseExpr_default_instance_._instance, &::greptime::v1::_CreateDatabaseExpr_default_instance_._instance,
&::greptime::v1::_TruncateTableExpr_default_instance_._instance,
&::greptime::v1::_AddColumns_default_instance_._instance, &::greptime::v1::_AddColumns_default_instance_._instance,
&::greptime::v1::_DropColumns_default_instance_._instance, &::greptime::v1::_DropColumns_default_instance_._instance,
&::greptime::v1::_RenameTable_default_instance_._instance, &::greptime::v1::_RenameTable_default_instance_._instance,
@@ -452,7 +481,7 @@ static const ::_pb::Message* const file_default_instances[] = {
const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\025greptime/v1/ddl.proto\022\013greptime.v1\032\030gr" "\n\025greptime/v1/ddl.proto\022\013greptime.v1\032\030gr"
"eptime/v1/column.proto\"\315\002\n\nDdlRequest\022:\n" "eptime/v1/column.proto\"\207\003\n\nDdlRequest\022:\n"
"\017create_database\030\001 \001(\0132\037.greptime.v1.Cre" "\017create_database\030\001 \001(\0132\037.greptime.v1.Cre"
"ateDatabaseExprH\000\0224\n\014create_table\030\002 \001(\0132" "ateDatabaseExprH\000\0224\n\014create_table\030\002 \001(\0132"
"\034.greptime.v1.CreateTableExprH\000\022\'\n\005alter" "\034.greptime.v1.CreateTableExprH\000\022\'\n\005alter"
@@ -460,61 +489,65 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
"_table\030\004 \001(\0132\032.greptime.v1.DropTableExpr" "_table\030\004 \001(\0132\032.greptime.v1.DropTableExpr"
"H\000\0222\n\013flush_table\030\005 \001(\0132\033.greptime.v1.Fl" "H\000\0222\n\013flush_table\030\005 \001(\0132\033.greptime.v1.Fl"
"ushTableExprH\000\0226\n\rcompact_table\030\006 \001(\0132\035." "ushTableExprH\000\0226\n\rcompact_table\030\006 \001(\0132\035."
"greptime.v1.CompactTableExprH\000B\006\n\004expr\"\237" "greptime.v1.CompactTableExprH\000\0228\n\016trunca"
"\003\n\017CreateTableExpr\022\024\n\014catalog_name\030\001 \001(\t" "te_table\030\007 \001(\0132\036.greptime.v1.TruncateTab"
"\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(" "leExprH\000B\006\n\004expr\"\237\003\n\017CreateTableExpr\022\024\n\014"
"\t\022\014\n\004desc\030\004 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.g" "catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022"
"reptime.v1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t" "\022\n\ntable_name\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\022+\n\013col"
"\022\024\n\014primary_keys\030\007 \003(\t\022\034\n\024create_if_not_" "umn_defs\030\005 \003(\0132\026.greptime.v1.ColumnDef\022\022"
"exists\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132..gr" "\n\ntime_index\030\006 \001(\t\022\024\n\014primary_keys\030\007 \003(\t"
"eptime.v1.CreateTableExpr.TableOptionsEn" "\022\034\n\024create_if_not_exists\030\010 \001(\010\022E\n\rtable_"
"try\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.Tabl" "options\030\t \003(\0132..greptime.v1.CreateTableE"
"eId\022\026\n\016region_numbers\030\013 \003(\r\022\016\n\006engine\030\014 " "xpr.TableOptionsEntry\022&\n\010table_id\030\n \001(\0132"
"\001(\t\0323\n\021TableOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" "\024.greptime.v1.TableId\022\026\n\016region_numbers\030"
"\005value\030\002 \001(\t:\0028\001\"\245\002\n\tAlterExpr\022\024\n\014catalo" "\013 \003(\r\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEnt"
"g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntab" "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\245\002\n\tA"
"le_name\030\003 \001(\t\022.\n\013add_columns\030\004 \001(\0132\027.gre" "lterExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema"
"ptime.v1.AddColumnsH\000\0220\n\014drop_columns\030\005 " "_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_c"
"\001(\0132\030.greptime.v1.DropColumnsH\000\0220\n\014renam" "olumns\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\022"
"e_table\030\006 \001(\0132\030.greptime.v1.RenameTableH" "0\n\014drop_columns\030\005 \001(\0132\030.greptime.v1.Drop"
"\000\022&\n\010table_id\030\007 \001(\0132\024.greptime.v1.TableI" "ColumnsH\000\0220\n\014rename_table\030\006 \001(\0132\030.grepti"
"d\022\025\n\rtable_version\030\010 \001(\004B\006\n\004kind\"v\n\rDrop" "me.v1.RenameTableH\000\022&\n\010table_id\030\007 \001(\0132\024."
"TableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schem" "greptime.v1.TableId\022\025\n\rtable_version\030\010 \001"
"a_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010tabl" "(\004B\006\n\004kind\"v\n\rDropTableExpr\022\024\n\014catalog_n"
"e_id\030\004 \001(\0132\024.greptime.v1.TableId\"\245\001\n\016Flu" "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_"
"shTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sch" "name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime."
"ema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\032\n\rre" "v1.TableId\"\245\001\n\016FlushTableExpr\022\024\n\014catalog"
"gion_number\030\004 \001(\rH\000\210\001\001\022&\n\010table_id\030\005 \001(\013" "_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntabl"
"2\024.greptime.v1.TableIdB\020\n\016_region_number" "e_name\030\003 \001(\t\022\032\n\rregion_number\030\004 \001(\rH\000\210\001\001"
"\"\177\n\020CompactTableExpr\022\024\n\014catalog_name\030\001 \001" "\022&\n\010table_id\030\005 \001(\0132\024.greptime.v1.TableId"
"(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 " "B\020\n\016_region_number\"\177\n\020CompactTableExpr\022\024"
"\001(\t\022\032\n\rregion_number\030\004 \001(\rH\000\210\001\001B\020\n\016_regi" "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001("
"on_number\"I\n\022CreateDatabaseExpr\022\025\n\rdatab" "\t\022\022\n\ntable_name\030\003 \001(\t\022\032\n\rregion_number\030\004"
"ase_name\030\001 \001(\t\022\034\n\024create_if_not_exists\030\002" " \001(\rH\000\210\001\001B\020\n\016_region_number\"I\n\022CreateDat"
" \001(\010\"9\n\nAddColumns\022+\n\013add_columns\030\001 \003(\0132" "abaseExpr\022\025\n\rdatabase_name\030\001 \001(\t\022\034\n\024crea"
"\026.greptime.v1.AddColumn\"<\n\013DropColumns\022-" "te_if_not_exists\030\002 \001(\010\"z\n\021TruncateTableE"
"\n\014drop_columns\030\001 \003(\0132\027.greptime.v1.DropC" "xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name"
"olumn\"%\n\013RenameTable\022\026\n\016new_table_name\030\001" "\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004"
" \001(\t\"\215\002\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026" " \001(\0132\024.greptime.v1.TableId\"9\n\nAddColumns"
".greptime.v1.ColumnDef\022\016\n\006is_key\030\002 \001(\010\0221" "\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.AddC"
"\n\010location\030\003 \001(\0132\037.greptime.v1.AddColumn" "olumn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003"
".Location\032\220\001\n\010Location\022C\n\rlocation_type\030" "(\0132\027.greptime.v1.DropColumn\"%\n\013RenameTab"
"\001 \001(\0162,.greptime.v1.AddColumn.Location.L" "le\022\026\n\016new_table_name\030\001 \001(\t\"\215\002\n\tAddColumn"
"ocationType\022\031\n\021after_cloumn_name\030\002 \001(\t\"$" "\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum"
"\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\032\n\n" "nDef\022\016\n\006is_key\030\002 \001(\010\0221\n\010location\030\003 \001(\0132\037"
"DropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002i" ".greptime.v1.AddColumn.Location\032\220\001\n\010Loca"
"d\030\001 \001(\rBL\n\016io.greptime.v1B\003DdlZ5github.c" "tion\022C\n\rlocation_type\030\001 \001(\0162,.greptime.v"
"om/GreptimeTeam/greptime-proto/go/grepti" "1.AddColumn.Location.LocationType\022\031\n\021aft"
"me/v1b\006proto3" "er_cloumn_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005"
"FIRST\020\000\022\t\n\005AFTER\020\001\"\032\n\nDropColumn\022\014\n\004name"
"\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\rBL\n\016io.grep"
"time.v1B\003DdlZ5github.com/GreptimeTeam/gr"
"eptime-proto/go/greptime/v1b\006proto3"
; ;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcolumn_2eproto, &::descriptor_table_greptime_2fv1_2fcolumn_2eproto,
}; };
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
false, false, 2173, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, false, false, 2355, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
"greptime/v1/ddl.proto", "greptime/v1/ddl.proto",
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 15, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 16,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto, file_level_metadata_greptime_2fv1_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto,
file_level_service_descriptors_greptime_2fv1_2fddl_2eproto, file_level_service_descriptors_greptime_2fv1_2fddl_2eproto,
@@ -559,6 +592,7 @@ class DdlRequest::_Internal {
static const ::greptime::v1::DropTableExpr& drop_table(const DdlRequest* msg); static const ::greptime::v1::DropTableExpr& drop_table(const DdlRequest* msg);
static const ::greptime::v1::FlushTableExpr& flush_table(const DdlRequest* msg); static const ::greptime::v1::FlushTableExpr& flush_table(const DdlRequest* msg);
static const ::greptime::v1::CompactTableExpr& compact_table(const DdlRequest* msg); static const ::greptime::v1::CompactTableExpr& compact_table(const DdlRequest* msg);
static const ::greptime::v1::TruncateTableExpr& truncate_table(const DdlRequest* msg);
}; };
const ::greptime::v1::CreateDatabaseExpr& const ::greptime::v1::CreateDatabaseExpr&
@@ -585,6 +619,10 @@ const ::greptime::v1::CompactTableExpr&
DdlRequest::_Internal::compact_table(const DdlRequest* msg) { DdlRequest::_Internal::compact_table(const DdlRequest* msg) {
return *msg->_impl_.expr_.compact_table_; return *msg->_impl_.expr_.compact_table_;
} }
const ::greptime::v1::TruncateTableExpr&
DdlRequest::_Internal::truncate_table(const DdlRequest* msg) {
return *msg->_impl_.expr_.truncate_table_;
}
void DdlRequest::set_allocated_create_database(::greptime::v1::CreateDatabaseExpr* create_database) { void DdlRequest::set_allocated_create_database(::greptime::v1::CreateDatabaseExpr* create_database) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_expr(); clear_expr();
@@ -675,6 +713,21 @@ void DdlRequest::set_allocated_compact_table(::greptime::v1::CompactTableExpr* c
} }
// @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.compact_table) // @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.compact_table)
} }
void DdlRequest::set_allocated_truncate_table(::greptime::v1::TruncateTableExpr* truncate_table) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_expr();
if (truncate_table) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(truncate_table);
if (message_arena != submessage_arena) {
truncate_table = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, truncate_table, submessage_arena);
}
set_has_truncate_table();
_impl_.expr_.truncate_table_ = truncate_table;
}
// @@protoc_insertion_point(field_set_allocated:greptime.v1.DdlRequest.truncate_table)
}
DdlRequest::DdlRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, DdlRequest::DdlRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned) bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -722,6 +775,11 @@ DdlRequest::DdlRequest(const DdlRequest& from)
from._internal_compact_table()); from._internal_compact_table());
break; break;
} }
case kTruncateTable: {
_this->_internal_mutable_truncate_table()->::greptime::v1::TruncateTableExpr::MergeFrom(
from._internal_truncate_table());
break;
}
case EXPR_NOT_SET: { case EXPR_NOT_SET: {
break; break;
} }
@@ -800,6 +858,12 @@ void DdlRequest::clear_expr() {
} }
break; break;
} }
case kTruncateTable: {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.expr_.truncate_table_;
}
break;
}
case EXPR_NOT_SET: { case EXPR_NOT_SET: {
break; break;
} }
@@ -872,6 +936,14 @@ const char* DdlRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// .greptime.v1.TruncateTableExpr truncate_table = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
ptr = ctx->ParseMessage(_internal_mutable_truncate_table(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default: default:
goto handle_unusual; goto handle_unusual;
} // switch } // switch
@@ -943,6 +1015,13 @@ uint8_t* DdlRequest::_InternalSerialize(
_Internal::compact_table(this).GetCachedSize(), target, stream); _Internal::compact_table(this).GetCachedSize(), target, stream);
} }
// .greptime.v1.TruncateTableExpr truncate_table = 7;
if (_internal_has_truncate_table()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(7, _Internal::truncate_table(this),
_Internal::truncate_table(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -1002,6 +1081,13 @@ size_t DdlRequest::ByteSizeLong() const {
*_impl_.expr_.compact_table_); *_impl_.expr_.compact_table_);
break; break;
} }
// .greptime.v1.TruncateTableExpr truncate_table = 7;
case kTruncateTable: {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.expr_.truncate_table_);
break;
}
case EXPR_NOT_SET: { case EXPR_NOT_SET: {
break; break;
} }
@@ -1055,6 +1141,11 @@ void DdlRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PRO
from._internal_compact_table()); from._internal_compact_table());
break; break;
} }
case kTruncateTable: {
_this->_internal_mutable_truncate_table()->::greptime::v1::TruncateTableExpr::MergeFrom(
from._internal_truncate_table());
break;
}
case EXPR_NOT_SET: { case EXPR_NOT_SET: {
break; break;
} }
@@ -3707,6 +3798,351 @@ void CreateDatabaseExpr::InternalSwap(CreateDatabaseExpr* other) {
// =================================================================== // ===================================================================
class TruncateTableExpr::_Internal {
public:
static const ::greptime::v1::TableId& table_id(const TruncateTableExpr* msg);
};
const ::greptime::v1::TableId&
TruncateTableExpr::_Internal::table_id(const TruncateTableExpr* msg) {
return *msg->_impl_.table_id_;
}
TruncateTableExpr::TruncateTableExpr(::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.TruncateTableExpr)
}
TruncateTableExpr::TruncateTableExpr(const TruncateTableExpr& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
TruncateTableExpr* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.catalog_name_){}
, decltype(_impl_.schema_name_){}
, decltype(_impl_.table_name_){}
, decltype(_impl_.table_id_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.catalog_name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.catalog_name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_catalog_name().empty()) {
_this->_impl_.catalog_name_.Set(from._internal_catalog_name(),
_this->GetArenaForAllocation());
}
_impl_.schema_name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.schema_name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_schema_name().empty()) {
_this->_impl_.schema_name_.Set(from._internal_schema_name(),
_this->GetArenaForAllocation());
}
_impl_.table_name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.table_name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_table_name().empty()) {
_this->_impl_.table_name_.Set(from._internal_table_name(),
_this->GetArenaForAllocation());
}
if (from._internal_has_table_id()) {
_this->_impl_.table_id_ = new ::greptime::v1::TableId(*from._impl_.table_id_);
}
// @@protoc_insertion_point(copy_constructor:greptime.v1.TruncateTableExpr)
}
inline void TruncateTableExpr::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.catalog_name_){}
, decltype(_impl_.schema_name_){}
, decltype(_impl_.table_name_){}
, decltype(_impl_.table_id_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.catalog_name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.catalog_name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.schema_name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.schema_name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.table_name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.table_name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
TruncateTableExpr::~TruncateTableExpr() {
// @@protoc_insertion_point(destructor:greptime.v1.TruncateTableExpr)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void TruncateTableExpr::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.catalog_name_.Destroy();
_impl_.schema_name_.Destroy();
_impl_.table_name_.Destroy();
if (this != internal_default_instance()) delete _impl_.table_id_;
}
void TruncateTableExpr::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void TruncateTableExpr::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.TruncateTableExpr)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.catalog_name_.ClearToEmpty();
_impl_.schema_name_.ClearToEmpty();
_impl_.table_name_.ClearToEmpty();
if (GetArenaForAllocation() == nullptr && _impl_.table_id_ != nullptr) {
delete _impl_.table_id_;
}
_impl_.table_id_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* TruncateTableExpr::_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 catalog_name = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_catalog_name();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TruncateTableExpr.catalog_name"));
} else
goto handle_unusual;
continue;
// string schema_name = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_schema_name();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TruncateTableExpr.schema_name"));
} else
goto handle_unusual;
continue;
// string table_name = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
auto str = _internal_mutable_table_name();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TruncateTableExpr.table_name"));
} else
goto handle_unusual;
continue;
// .greptime.v1.TableId table_id = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
ptr = ctx->ParseMessage(_internal_mutable_table_id(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* TruncateTableExpr::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.TruncateTableExpr)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// string catalog_name = 1;
if (!this->_internal_catalog_name().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_catalog_name().data(), static_cast<int>(this->_internal_catalog_name().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.TruncateTableExpr.catalog_name");
target = stream->WriteStringMaybeAliased(
1, this->_internal_catalog_name(), target);
}
// string schema_name = 2;
if (!this->_internal_schema_name().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_schema_name().data(), static_cast<int>(this->_internal_schema_name().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.TruncateTableExpr.schema_name");
target = stream->WriteStringMaybeAliased(
2, this->_internal_schema_name(), target);
}
// string table_name = 3;
if (!this->_internal_table_name().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_table_name().data(), static_cast<int>(this->_internal_table_name().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.TruncateTableExpr.table_name");
target = stream->WriteStringMaybeAliased(
3, this->_internal_table_name(), target);
}
// .greptime.v1.TableId table_id = 4;
if (this->_internal_has_table_id()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(4, _Internal::table_id(this),
_Internal::table_id(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);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.TruncateTableExpr)
return target;
}
size_t TruncateTableExpr::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.TruncateTableExpr)
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 catalog_name = 1;
if (!this->_internal_catalog_name().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_catalog_name());
}
// string schema_name = 2;
if (!this->_internal_schema_name().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_schema_name());
}
// string table_name = 3;
if (!this->_internal_table_name().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_table_name());
}
// .greptime.v1.TableId table_id = 4;
if (this->_internal_has_table_id()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.table_id_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TruncateTableExpr::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
TruncateTableExpr::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TruncateTableExpr::GetClassData() const { return &_class_data_; }
void TruncateTableExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<TruncateTableExpr*>(&to_msg);
auto& from = static_cast<const TruncateTableExpr&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.TruncateTableExpr)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_catalog_name().empty()) {
_this->_internal_set_catalog_name(from._internal_catalog_name());
}
if (!from._internal_schema_name().empty()) {
_this->_internal_set_schema_name(from._internal_schema_name());
}
if (!from._internal_table_name().empty()) {
_this->_internal_set_table_name(from._internal_table_name());
}
if (from._internal_has_table_id()) {
_this->_internal_mutable_table_id()->::greptime::v1::TableId::MergeFrom(
from._internal_table_id());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void TruncateTableExpr::CopyFrom(const TruncateTableExpr& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.TruncateTableExpr)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TruncateTableExpr::IsInitialized() const {
return true;
}
void TruncateTableExpr::InternalSwap(TruncateTableExpr* 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_.catalog_name_, lhs_arena,
&other->_impl_.catalog_name_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.schema_name_, lhs_arena,
&other->_impl_.schema_name_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.table_name_, lhs_arena,
&other->_impl_.table_name_, rhs_arena
);
swap(_impl_.table_id_, other->_impl_.table_id_);
}
::PROTOBUF_NAMESPACE_ID::Metadata TruncateTableExpr::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fddl_2eproto[8]);
}
// ===================================================================
class AddColumns::_Internal { class AddColumns::_Internal {
public: public:
}; };
@@ -3887,7 +4323,7 @@ void AddColumns::InternalSwap(AddColumns* other) {
::PROTOBUF_NAMESPACE_ID::Metadata AddColumns::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumns::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fddl_2eproto[8]); file_level_metadata_greptime_2fv1_2fddl_2eproto[9]);
} }
// =================================================================== // ===================================================================
@@ -4072,7 +4508,7 @@ void DropColumns::InternalSwap(DropColumns* other) {
::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fddl_2eproto[9]); file_level_metadata_greptime_2fv1_2fddl_2eproto[10]);
} }
// =================================================================== // ===================================================================
@@ -4275,7 +4711,7 @@ void RenameTable::InternalSwap(RenameTable* other) {
::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fddl_2eproto[10]); file_level_metadata_greptime_2fv1_2fddl_2eproto[11]);
} }
// =================================================================== // ===================================================================
@@ -4508,7 +4944,7 @@ void AddColumn_Location::InternalSwap(AddColumn_Location* other) {
::PROTOBUF_NAMESPACE_ID::Metadata AddColumn_Location::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn_Location::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fddl_2eproto[11]); file_level_metadata_greptime_2fv1_2fddl_2eproto[12]);
} }
// =================================================================== // ===================================================================
@@ -4779,7 +5215,7 @@ void AddColumn::InternalSwap(AddColumn* other) {
::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fddl_2eproto[12]); file_level_metadata_greptime_2fv1_2fddl_2eproto[13]);
} }
// =================================================================== // ===================================================================
@@ -4982,7 +5418,7 @@ void DropColumn::InternalSwap(DropColumn* other) {
::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fddl_2eproto[13]); file_level_metadata_greptime_2fv1_2fddl_2eproto[14]);
} }
// =================================================================== // ===================================================================
@@ -5160,7 +5596,7 @@ void TableId::InternalSwap(TableId* other) {
::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fddl_2eproto[14]); file_level_metadata_greptime_2fv1_2fddl_2eproto[15]);
} }
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -5199,6 +5635,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::CreateDatabaseExpr*
Arena::CreateMaybeMessage< ::greptime::v1::CreateDatabaseExpr >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::CreateDatabaseExpr >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::CreateDatabaseExpr >(arena); return Arena::CreateMessageInternal< ::greptime::v1::CreateDatabaseExpr >(arena);
} }
template<> PROTOBUF_NOINLINE ::greptime::v1::TruncateTableExpr*
Arena::CreateMaybeMessage< ::greptime::v1::TruncateTableExpr >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::TruncateTableExpr >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::AddColumns* template<> PROTOBUF_NOINLINE ::greptime::v1::AddColumns*
Arena::CreateMaybeMessage< ::greptime::v1::AddColumns >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::AddColumns >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::AddColumns >(arena); return Arena::CreateMessageInternal< ::greptime::v1::AddColumns >(arena);
+558 -7
View File
@@ -96,6 +96,9 @@ extern RenameTableDefaultTypeInternal _RenameTable_default_instance_;
class TableId; class TableId;
struct TableIdDefaultTypeInternal; struct TableIdDefaultTypeInternal;
extern TableIdDefaultTypeInternal _TableId_default_instance_; extern TableIdDefaultTypeInternal _TableId_default_instance_;
class TruncateTableExpr;
struct TruncateTableExprDefaultTypeInternal;
extern TruncateTableExprDefaultTypeInternal _TruncateTableExpr_default_instance_;
} // namespace v1 } // namespace v1
} // namespace greptime } // namespace greptime
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NAMESPACE_OPEN
@@ -114,6 +117,7 @@ template<> ::greptime::v1::DropTableExpr* Arena::CreateMaybeMessage<::greptime::
template<> ::greptime::v1::FlushTableExpr* Arena::CreateMaybeMessage<::greptime::v1::FlushTableExpr>(Arena*); template<> ::greptime::v1::FlushTableExpr* Arena::CreateMaybeMessage<::greptime::v1::FlushTableExpr>(Arena*);
template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*); template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*);
template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*); template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*);
template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*);
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_CLOSE
namespace greptime { namespace greptime {
namespace v1 { namespace v1 {
@@ -195,6 +199,7 @@ class DdlRequest final :
kDropTable = 4, kDropTable = 4,
kFlushTable = 5, kFlushTable = 5,
kCompactTable = 6, kCompactTable = 6,
kTruncateTable = 7,
EXPR_NOT_SET = 0, EXPR_NOT_SET = 0,
}; };
@@ -282,6 +287,7 @@ class DdlRequest final :
kDropTableFieldNumber = 4, kDropTableFieldNumber = 4,
kFlushTableFieldNumber = 5, kFlushTableFieldNumber = 5,
kCompactTableFieldNumber = 6, kCompactTableFieldNumber = 6,
kTruncateTableFieldNumber = 7,
}; };
// .greptime.v1.CreateDatabaseExpr create_database = 1; // .greptime.v1.CreateDatabaseExpr create_database = 1;
bool has_create_database() const; bool has_create_database() const;
@@ -391,6 +397,24 @@ class DdlRequest final :
::greptime::v1::CompactTableExpr* compact_table); ::greptime::v1::CompactTableExpr* compact_table);
::greptime::v1::CompactTableExpr* unsafe_arena_release_compact_table(); ::greptime::v1::CompactTableExpr* unsafe_arena_release_compact_table();
// .greptime.v1.TruncateTableExpr truncate_table = 7;
bool has_truncate_table() const;
private:
bool _internal_has_truncate_table() const;
public:
void clear_truncate_table();
const ::greptime::v1::TruncateTableExpr& truncate_table() const;
PROTOBUF_NODISCARD ::greptime::v1::TruncateTableExpr* release_truncate_table();
::greptime::v1::TruncateTableExpr* mutable_truncate_table();
void set_allocated_truncate_table(::greptime::v1::TruncateTableExpr* truncate_table);
private:
const ::greptime::v1::TruncateTableExpr& _internal_truncate_table() const;
::greptime::v1::TruncateTableExpr* _internal_mutable_truncate_table();
public:
void unsafe_arena_set_allocated_truncate_table(
::greptime::v1::TruncateTableExpr* truncate_table);
::greptime::v1::TruncateTableExpr* unsafe_arena_release_truncate_table();
void clear_expr(); void clear_expr();
ExprCase expr_case() const; ExprCase expr_case() const;
// @@protoc_insertion_point(class_scope:greptime.v1.DdlRequest) // @@protoc_insertion_point(class_scope:greptime.v1.DdlRequest)
@@ -402,6 +426,7 @@ class DdlRequest final :
void set_has_drop_table(); void set_has_drop_table();
void set_has_flush_table(); void set_has_flush_table();
void set_has_compact_table(); void set_has_compact_table();
void set_has_truncate_table();
inline bool has_expr() const; inline bool has_expr() const;
inline void clear_has_expr(); inline void clear_has_expr();
@@ -419,6 +444,7 @@ class DdlRequest final :
::greptime::v1::DropTableExpr* drop_table_; ::greptime::v1::DropTableExpr* drop_table_;
::greptime::v1::FlushTableExpr* flush_table_; ::greptime::v1::FlushTableExpr* flush_table_;
::greptime::v1::CompactTableExpr* compact_table_; ::greptime::v1::CompactTableExpr* compact_table_;
::greptime::v1::TruncateTableExpr* truncate_table_;
} expr_; } expr_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1]; uint32_t _oneof_case_[1];
@@ -1906,6 +1932,211 @@ class CreateDatabaseExpr final :
}; };
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class TruncateTableExpr final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.TruncateTableExpr) */ {
public:
inline TruncateTableExpr() : TruncateTableExpr(nullptr) {}
~TruncateTableExpr() override;
explicit PROTOBUF_CONSTEXPR TruncateTableExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
TruncateTableExpr(const TruncateTableExpr& from);
TruncateTableExpr(TruncateTableExpr&& from) noexcept
: TruncateTableExpr() {
*this = ::std::move(from);
}
inline TruncateTableExpr& operator=(const TruncateTableExpr& from) {
CopyFrom(from);
return *this;
}
inline TruncateTableExpr& operator=(TruncateTableExpr&& 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 TruncateTableExpr& default_instance() {
return *internal_default_instance();
}
static inline const TruncateTableExpr* internal_default_instance() {
return reinterpret_cast<const TruncateTableExpr*>(
&_TruncateTableExpr_default_instance_);
}
static constexpr int kIndexInFileMessages =
8;
friend void swap(TruncateTableExpr& a, TruncateTableExpr& b) {
a.Swap(&b);
}
inline void Swap(TruncateTableExpr* 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(TruncateTableExpr* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
TruncateTableExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<TruncateTableExpr>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const TruncateTableExpr& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const TruncateTableExpr& from) {
TruncateTableExpr::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(TruncateTableExpr* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.TruncateTableExpr";
}
protected:
explicit TruncateTableExpr(::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 {
kCatalogNameFieldNumber = 1,
kSchemaNameFieldNumber = 2,
kTableNameFieldNumber = 3,
kTableIdFieldNumber = 4,
};
// string catalog_name = 1;
void clear_catalog_name();
const std::string& catalog_name() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_catalog_name(ArgT0&& arg0, ArgT... args);
std::string* mutable_catalog_name();
PROTOBUF_NODISCARD std::string* release_catalog_name();
void set_allocated_catalog_name(std::string* catalog_name);
private:
const std::string& _internal_catalog_name() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog_name(const std::string& value);
std::string* _internal_mutable_catalog_name();
public:
// string schema_name = 2;
void clear_schema_name();
const std::string& schema_name() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_schema_name(ArgT0&& arg0, ArgT... args);
std::string* mutable_schema_name();
PROTOBUF_NODISCARD std::string* release_schema_name();
void set_allocated_schema_name(std::string* schema_name);
private:
const std::string& _internal_schema_name() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema_name(const std::string& value);
std::string* _internal_mutable_schema_name();
public:
// string table_name = 3;
void clear_table_name();
const std::string& table_name() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_table_name(ArgT0&& arg0, ArgT... args);
std::string* mutable_table_name();
PROTOBUF_NODISCARD std::string* release_table_name();
void set_allocated_table_name(std::string* table_name);
private:
const std::string& _internal_table_name() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_name(const std::string& value);
std::string* _internal_mutable_table_name();
public:
// .greptime.v1.TableId table_id = 4;
bool has_table_id() const;
private:
bool _internal_has_table_id() const;
public:
void clear_table_id();
const ::greptime::v1::TableId& table_id() const;
PROTOBUF_NODISCARD ::greptime::v1::TableId* release_table_id();
::greptime::v1::TableId* mutable_table_id();
void set_allocated_table_id(::greptime::v1::TableId* table_id);
private:
const ::greptime::v1::TableId& _internal_table_id() const;
::greptime::v1::TableId* _internal_mutable_table_id();
public:
void unsafe_arena_set_allocated_table_id(
::greptime::v1::TableId* table_id);
::greptime::v1::TableId* unsafe_arena_release_table_id();
// @@protoc_insertion_point(class_scope:greptime.v1.TruncateTableExpr)
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 catalog_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_;
::greptime::v1::TableId* table_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto;
};
// -------------------------------------------------------------------
class AddColumns final : class AddColumns final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddColumns) */ { public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddColumns) */ {
public: public:
@@ -1954,7 +2185,7 @@ class AddColumns final :
&_AddColumns_default_instance_); &_AddColumns_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
8; 9;
friend void swap(AddColumns& a, AddColumns& b) { friend void swap(AddColumns& a, AddColumns& b) {
a.Swap(&b); a.Swap(&b);
@@ -2111,7 +2342,7 @@ class DropColumns final :
&_DropColumns_default_instance_); &_DropColumns_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
9; 10;
friend void swap(DropColumns& a, DropColumns& b) { friend void swap(DropColumns& a, DropColumns& b) {
a.Swap(&b); a.Swap(&b);
@@ -2268,7 +2499,7 @@ class RenameTable final :
&_RenameTable_default_instance_); &_RenameTable_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
10; 11;
friend void swap(RenameTable& a, RenameTable& b) { friend void swap(RenameTable& a, RenameTable& b) {
a.Swap(&b); a.Swap(&b);
@@ -2421,7 +2652,7 @@ class AddColumn_Location final :
&_AddColumn_Location_default_instance_); &_AddColumn_Location_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
11; 12;
friend void swap(AddColumn_Location& a, AddColumn_Location& b) { friend void swap(AddColumn_Location& a, AddColumn_Location& b) {
a.Swap(&b); a.Swap(&b);
@@ -2615,7 +2846,7 @@ class AddColumn final :
&_AddColumn_default_instance_); &_AddColumn_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
12; 13;
friend void swap(AddColumn& a, AddColumn& b) { friend void swap(AddColumn& a, AddColumn& b) {
a.Swap(&b); a.Swap(&b);
@@ -2805,7 +3036,7 @@ class DropColumn final :
&_DropColumn_default_instance_); &_DropColumn_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
13; 14;
friend void swap(DropColumn& a, DropColumn& b) { friend void swap(DropColumn& a, DropColumn& b) {
a.Swap(&b); a.Swap(&b);
@@ -2958,7 +3189,7 @@ class TableId final :
&_TableId_default_instance_); &_TableId_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
14; 15;
friend void swap(TableId& a, TableId& b) { friend void swap(TableId& a, TableId& b) {
a.Swap(&b); a.Swap(&b);
@@ -3511,6 +3742,80 @@ inline ::greptime::v1::CompactTableExpr* DdlRequest::mutable_compact_table() {
return _msg; return _msg;
} }
// .greptime.v1.TruncateTableExpr truncate_table = 7;
inline bool DdlRequest::_internal_has_truncate_table() const {
return expr_case() == kTruncateTable;
}
inline bool DdlRequest::has_truncate_table() const {
return _internal_has_truncate_table();
}
inline void DdlRequest::set_has_truncate_table() {
_impl_._oneof_case_[0] = kTruncateTable;
}
inline void DdlRequest::clear_truncate_table() {
if (_internal_has_truncate_table()) {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.expr_.truncate_table_;
}
clear_has_expr();
}
}
inline ::greptime::v1::TruncateTableExpr* DdlRequest::release_truncate_table() {
// @@protoc_insertion_point(field_release:greptime.v1.DdlRequest.truncate_table)
if (_internal_has_truncate_table()) {
clear_has_expr();
::greptime::v1::TruncateTableExpr* temp = _impl_.expr_.truncate_table_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
_impl_.expr_.truncate_table_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::greptime::v1::TruncateTableExpr& DdlRequest::_internal_truncate_table() const {
return _internal_has_truncate_table()
? *_impl_.expr_.truncate_table_
: reinterpret_cast< ::greptime::v1::TruncateTableExpr&>(::greptime::v1::_TruncateTableExpr_default_instance_);
}
inline const ::greptime::v1::TruncateTableExpr& DdlRequest::truncate_table() const {
// @@protoc_insertion_point(field_get:greptime.v1.DdlRequest.truncate_table)
return _internal_truncate_table();
}
inline ::greptime::v1::TruncateTableExpr* DdlRequest::unsafe_arena_release_truncate_table() {
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.DdlRequest.truncate_table)
if (_internal_has_truncate_table()) {
clear_has_expr();
::greptime::v1::TruncateTableExpr* temp = _impl_.expr_.truncate_table_;
_impl_.expr_.truncate_table_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void DdlRequest::unsafe_arena_set_allocated_truncate_table(::greptime::v1::TruncateTableExpr* truncate_table) {
clear_expr();
if (truncate_table) {
set_has_truncate_table();
_impl_.expr_.truncate_table_ = truncate_table;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.DdlRequest.truncate_table)
}
inline ::greptime::v1::TruncateTableExpr* DdlRequest::_internal_mutable_truncate_table() {
if (!_internal_has_truncate_table()) {
clear_expr();
set_has_truncate_table();
_impl_.expr_.truncate_table_ = CreateMaybeMessage< ::greptime::v1::TruncateTableExpr >(GetArenaForAllocation());
}
return _impl_.expr_.truncate_table_;
}
inline ::greptime::v1::TruncateTableExpr* DdlRequest::mutable_truncate_table() {
::greptime::v1::TruncateTableExpr* _msg = _internal_mutable_truncate_table();
// @@protoc_insertion_point(field_mutable:greptime.v1.DdlRequest.truncate_table)
return _msg;
}
inline bool DdlRequest::has_expr() const { inline bool DdlRequest::has_expr() const {
return expr_case() != EXPR_NOT_SET; return expr_case() != EXPR_NOT_SET;
} }
@@ -5393,6 +5698,250 @@ inline void CreateDatabaseExpr::set_create_if_not_exists(bool value) {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// TruncateTableExpr
// string catalog_name = 1;
inline void TruncateTableExpr::clear_catalog_name() {
_impl_.catalog_name_.ClearToEmpty();
}
inline const std::string& TruncateTableExpr::catalog_name() const {
// @@protoc_insertion_point(field_get:greptime.v1.TruncateTableExpr.catalog_name)
return _internal_catalog_name();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void TruncateTableExpr::set_catalog_name(ArgT0&& arg0, ArgT... args) {
_impl_.catalog_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.TruncateTableExpr.catalog_name)
}
inline std::string* TruncateTableExpr::mutable_catalog_name() {
std::string* _s = _internal_mutable_catalog_name();
// @@protoc_insertion_point(field_mutable:greptime.v1.TruncateTableExpr.catalog_name)
return _s;
}
inline const std::string& TruncateTableExpr::_internal_catalog_name() const {
return _impl_.catalog_name_.Get();
}
inline void TruncateTableExpr::_internal_set_catalog_name(const std::string& value) {
_impl_.catalog_name_.Set(value, GetArenaForAllocation());
}
inline std::string* TruncateTableExpr::_internal_mutable_catalog_name() {
return _impl_.catalog_name_.Mutable(GetArenaForAllocation());
}
inline std::string* TruncateTableExpr::release_catalog_name() {
// @@protoc_insertion_point(field_release:greptime.v1.TruncateTableExpr.catalog_name)
return _impl_.catalog_name_.Release();
}
inline void TruncateTableExpr::set_allocated_catalog_name(std::string* catalog_name) {
if (catalog_name != nullptr) {
} else {
}
_impl_.catalog_name_.SetAllocated(catalog_name, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.catalog_name_.IsDefault()) {
_impl_.catalog_name_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.TruncateTableExpr.catalog_name)
}
// string schema_name = 2;
inline void TruncateTableExpr::clear_schema_name() {
_impl_.schema_name_.ClearToEmpty();
}
inline const std::string& TruncateTableExpr::schema_name() const {
// @@protoc_insertion_point(field_get:greptime.v1.TruncateTableExpr.schema_name)
return _internal_schema_name();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void TruncateTableExpr::set_schema_name(ArgT0&& arg0, ArgT... args) {
_impl_.schema_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.TruncateTableExpr.schema_name)
}
inline std::string* TruncateTableExpr::mutable_schema_name() {
std::string* _s = _internal_mutable_schema_name();
// @@protoc_insertion_point(field_mutable:greptime.v1.TruncateTableExpr.schema_name)
return _s;
}
inline const std::string& TruncateTableExpr::_internal_schema_name() const {
return _impl_.schema_name_.Get();
}
inline void TruncateTableExpr::_internal_set_schema_name(const std::string& value) {
_impl_.schema_name_.Set(value, GetArenaForAllocation());
}
inline std::string* TruncateTableExpr::_internal_mutable_schema_name() {
return _impl_.schema_name_.Mutable(GetArenaForAllocation());
}
inline std::string* TruncateTableExpr::release_schema_name() {
// @@protoc_insertion_point(field_release:greptime.v1.TruncateTableExpr.schema_name)
return _impl_.schema_name_.Release();
}
inline void TruncateTableExpr::set_allocated_schema_name(std::string* schema_name) {
if (schema_name != nullptr) {
} else {
}
_impl_.schema_name_.SetAllocated(schema_name, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.schema_name_.IsDefault()) {
_impl_.schema_name_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.TruncateTableExpr.schema_name)
}
// string table_name = 3;
inline void TruncateTableExpr::clear_table_name() {
_impl_.table_name_.ClearToEmpty();
}
inline const std::string& TruncateTableExpr::table_name() const {
// @@protoc_insertion_point(field_get:greptime.v1.TruncateTableExpr.table_name)
return _internal_table_name();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void TruncateTableExpr::set_table_name(ArgT0&& arg0, ArgT... args) {
_impl_.table_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.TruncateTableExpr.table_name)
}
inline std::string* TruncateTableExpr::mutable_table_name() {
std::string* _s = _internal_mutable_table_name();
// @@protoc_insertion_point(field_mutable:greptime.v1.TruncateTableExpr.table_name)
return _s;
}
inline const std::string& TruncateTableExpr::_internal_table_name() const {
return _impl_.table_name_.Get();
}
inline void TruncateTableExpr::_internal_set_table_name(const std::string& value) {
_impl_.table_name_.Set(value, GetArenaForAllocation());
}
inline std::string* TruncateTableExpr::_internal_mutable_table_name() {
return _impl_.table_name_.Mutable(GetArenaForAllocation());
}
inline std::string* TruncateTableExpr::release_table_name() {
// @@protoc_insertion_point(field_release:greptime.v1.TruncateTableExpr.table_name)
return _impl_.table_name_.Release();
}
inline void TruncateTableExpr::set_allocated_table_name(std::string* table_name) {
if (table_name != nullptr) {
} else {
}
_impl_.table_name_.SetAllocated(table_name, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.table_name_.IsDefault()) {
_impl_.table_name_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.TruncateTableExpr.table_name)
}
// .greptime.v1.TableId table_id = 4;
inline bool TruncateTableExpr::_internal_has_table_id() const {
return this != internal_default_instance() && _impl_.table_id_ != nullptr;
}
inline bool TruncateTableExpr::has_table_id() const {
return _internal_has_table_id();
}
inline void TruncateTableExpr::clear_table_id() {
if (GetArenaForAllocation() == nullptr && _impl_.table_id_ != nullptr) {
delete _impl_.table_id_;
}
_impl_.table_id_ = nullptr;
}
inline const ::greptime::v1::TableId& TruncateTableExpr::_internal_table_id() const {
const ::greptime::v1::TableId* p = _impl_.table_id_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::TableId&>(
::greptime::v1::_TableId_default_instance_);
}
inline const ::greptime::v1::TableId& TruncateTableExpr::table_id() const {
// @@protoc_insertion_point(field_get:greptime.v1.TruncateTableExpr.table_id)
return _internal_table_id();
}
inline void TruncateTableExpr::unsafe_arena_set_allocated_table_id(
::greptime::v1::TableId* table_id) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_id_);
}
_impl_.table_id_ = table_id;
if (table_id) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.TruncateTableExpr.table_id)
}
inline ::greptime::v1::TableId* TruncateTableExpr::release_table_id() {
::greptime::v1::TableId* temp = _impl_.table_id_;
_impl_.table_id_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::TableId* TruncateTableExpr::unsafe_arena_release_table_id() {
// @@protoc_insertion_point(field_release:greptime.v1.TruncateTableExpr.table_id)
::greptime::v1::TableId* temp = _impl_.table_id_;
_impl_.table_id_ = nullptr;
return temp;
}
inline ::greptime::v1::TableId* TruncateTableExpr::_internal_mutable_table_id() {
if (_impl_.table_id_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::TableId>(GetArenaForAllocation());
_impl_.table_id_ = p;
}
return _impl_.table_id_;
}
inline ::greptime::v1::TableId* TruncateTableExpr::mutable_table_id() {
::greptime::v1::TableId* _msg = _internal_mutable_table_id();
// @@protoc_insertion_point(field_mutable:greptime.v1.TruncateTableExpr.table_id)
return _msg;
}
inline void TruncateTableExpr::set_allocated_table_id(::greptime::v1::TableId* table_id) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.table_id_;
}
if (table_id) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(table_id);
if (message_arena != submessage_arena) {
table_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, table_id, submessage_arena);
}
} else {
}
_impl_.table_id_ = table_id;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.TruncateTableExpr.table_id)
}
// -------------------------------------------------------------------
// AddColumns // AddColumns
// repeated .greptime.v1.AddColumn add_columns = 1; // repeated .greptime.v1.AddColumn add_columns = 1;
@@ -5915,6 +6464,8 @@ inline void TableId::set_id(uint32_t value) {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
+311 -23
View File
@@ -64,6 +64,19 @@ struct AlterTableTaskDefaultTypeInternal {
}; };
}; };
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AlterTableTaskDefaultTypeInternal _AlterTableTask_default_instance_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AlterTableTaskDefaultTypeInternal _AlterTableTask_default_instance_;
PROTOBUF_CONSTEXPR TruncateTableTask::TruncateTableTask(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.truncate_table_)*/nullptr
, /*decltype(_impl_._cached_size_)*/{}} {}
struct TruncateTableTaskDefaultTypeInternal {
PROTOBUF_CONSTEXPR TruncateTableTaskDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~TruncateTableTaskDefaultTypeInternal() {}
union {
TruncateTableTask _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TruncateTableTaskDefaultTypeInternal _TruncateTableTask_default_instance_;
PROTOBUF_CONSTEXPR SubmitDdlTaskRequest::SubmitDdlTaskRequest( PROTOBUF_CONSTEXPR SubmitDdlTaskRequest::SubmitDdlTaskRequest(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.header_)*/nullptr /*decltype(_impl_.header_)*/nullptr
@@ -97,7 +110,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
} // namespace meta } // namespace meta
} // namespace v1 } // namespace v1
} // namespace greptime } // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[5]; static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[6];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto[1]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto[1];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto = nullptr;
@@ -126,6 +139,13 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU
~0u, // no _inlined_string_donated_ ~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::AlterTableTask, _impl_.alter_table_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::AlterTableTask, _impl_.alter_table_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TruncateTableTask, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TruncateTableTask, _impl_.truncate_table_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _impl_._oneof_case_[0]), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _impl_._oneof_case_[0]),
@@ -135,6 +155,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU
::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag,
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _impl_.task_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _impl_.task_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskResponse, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskResponse, _internal_metadata_),
@@ -150,14 +171,16 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 0, -1, -1, sizeof(::greptime::v1::meta::CreateTableTask)}, { 0, -1, -1, sizeof(::greptime::v1::meta::CreateTableTask)},
{ 9, -1, -1, sizeof(::greptime::v1::meta::DropTableTask)}, { 9, -1, -1, sizeof(::greptime::v1::meta::DropTableTask)},
{ 16, -1, -1, sizeof(::greptime::v1::meta::AlterTableTask)}, { 16, -1, -1, sizeof(::greptime::v1::meta::AlterTableTask)},
{ 23, -1, -1, sizeof(::greptime::v1::meta::SubmitDdlTaskRequest)}, { 23, -1, -1, sizeof(::greptime::v1::meta::TruncateTableTask)},
{ 34, -1, -1, sizeof(::greptime::v1::meta::SubmitDdlTaskResponse)}, { 30, -1, -1, sizeof(::greptime::v1::meta::SubmitDdlTaskRequest)},
{ 42, -1, -1, sizeof(::greptime::v1::meta::SubmitDdlTaskResponse)},
}; };
static const ::_pb::Message* const file_default_instances[] = { static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::meta::_CreateTableTask_default_instance_._instance, &::greptime::v1::meta::_CreateTableTask_default_instance_._instance,
&::greptime::v1::meta::_DropTableTask_default_instance_._instance, &::greptime::v1::meta::_DropTableTask_default_instance_._instance,
&::greptime::v1::meta::_AlterTableTask_default_instance_._instance, &::greptime::v1::meta::_AlterTableTask_default_instance_._instance,
&::greptime::v1::meta::_TruncateTableTask_default_instance_._instance,
&::greptime::v1::meta::_SubmitDdlTaskRequest_default_instance_._instance, &::greptime::v1::meta::_SubmitDdlTaskRequest_default_instance_._instance,
&::greptime::v1::meta::_SubmitDdlTaskResponse_default_instance_._instance, &::greptime::v1::meta::_SubmitDdlTaskResponse_default_instance_._instance,
}; };
@@ -173,22 +196,26 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto[] PROTOB
"ableTask\022.\n\ndrop_table\030\001 \001(\0132\032.greptime." "ableTask\022.\n\ndrop_table\030\001 \001(\0132\032.greptime."
"v1.DropTableExpr\"=\n\016AlterTableTask\022+\n\013al" "v1.DropTableExpr\"=\n\016AlterTableTask\022+\n\013al"
"ter_table\030\001 \001(\0132\026.greptime.v1.AlterExpr\"" "ter_table\030\001 \001(\0132\026.greptime.v1.AlterExpr\""
"\211\002\n\024SubmitDdlTaskRequest\022/\n\006header\030\001 \001(\013" "K\n\021TruncateTableTask\0226\n\016truncate_table\030\001"
"2\037.greptime.v1.meta.RequestHeader\022>\n\021cre" " \001(\0132\036.greptime.v1.TruncateTableExpr\"\315\002\n"
"ate_table_task\030\002 \001(\0132!.greptime.v1.meta." "\024SubmitDdlTaskRequest\022/\n\006header\030\001 \001(\0132\037."
"CreateTableTaskH\000\022:\n\017drop_table_task\030\003 \001" "greptime.v1.meta.RequestHeader\022>\n\021create"
"(\0132\037.greptime.v1.meta.DropTableTaskH\000\022<\n" "_table_task\030\002 \001(\0132!.greptime.v1.meta.Cre"
"\020alter_table_task\030\004 \001(\0132 .greptime.v1.me" "ateTableTaskH\000\022:\n\017drop_table_task\030\003 \001(\0132"
"ta.AlterTableTaskH\000B\006\n\004task\"\203\001\n\025SubmitDd" "\037.greptime.v1.meta.DropTableTaskH\000\022<\n\020al"
"lTaskResponse\0220\n\006header\030\001 \001(\0132 .greptime" "ter_table_task\030\004 \001(\0132 .greptime.v1.meta."
".v1.meta.ResponseHeader\022\013\n\003key\030\002 \001(\014\022+\n\010" "AlterTableTaskH\000\022B\n\023truncate_table_task\030"
"table_id\030\004 \001(\0132\031.greptime.v1.meta.TableI" "\005 \001(\0132#.greptime.v1.meta.TruncateTableTa"
"d*#\n\013DdlTaskType\022\n\n\006Create\020\000\022\010\n\004Drop\020\0012k" "skH\000B\006\n\004task\"\203\001\n\025SubmitDdlTaskResponse\0220"
"\n\007DdlTask\022`\n\rSubmitDdlTask\022&.greptime.v1" "\n\006header\030\001 \001(\0132 .greptime.v1.meta.Respon"
".meta.SubmitDdlTaskRequest\032\'.greptime.v1" "seHeader\022\013\n\003key\030\002 \001(\014\022+\n\010table_id\030\004 \001(\0132"
".meta.SubmitDdlTaskResponseB<Z:github.co" "\031.greptime.v1.meta.TableId*#\n\013DdlTaskTyp"
"m/GreptimeTeam/greptime-proto/go/greptim" "e\022\n\n\006Create\020\000\022\010\n\004Drop\020\0012k\n\007DdlTask\022`\n\rSu"
"e/v1/metab\006proto3" "bmitDdlTask\022&.greptime.v1.meta.SubmitDdl"
"TaskRequest\032\'.greptime.v1.meta.SubmitDdl"
"TaskResponseB<Z:github.com/GreptimeTeam/"
"greptime-proto/go/greptime/v1/metab\006prot"
"o3"
; ;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps[3] = { static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps[3] = {
&::descriptor_table_greptime_2fv1_2fddl_2eproto, &::descriptor_table_greptime_2fv1_2fddl_2eproto,
@@ -197,9 +224,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmet
}; };
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto = { const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto = {
false, false, 1017, descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto, false, false, 1162, descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto,
"greptime/v1/meta/ddl.proto", "greptime/v1/meta/ddl.proto",
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps, 3, 5, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps, 3, 6,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets, schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto, file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto,
file_level_service_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto, file_level_service_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto,
@@ -911,12 +938,212 @@ void AlterTableTask::InternalSwap(AlterTableTask* other) {
// =================================================================== // ===================================================================
class TruncateTableTask::_Internal {
public:
static const ::greptime::v1::TruncateTableExpr& truncate_table(const TruncateTableTask* msg);
};
const ::greptime::v1::TruncateTableExpr&
TruncateTableTask::_Internal::truncate_table(const TruncateTableTask* msg) {
return *msg->_impl_.truncate_table_;
}
void TruncateTableTask::clear_truncate_table() {
if (GetArenaForAllocation() == nullptr && _impl_.truncate_table_ != nullptr) {
delete _impl_.truncate_table_;
}
_impl_.truncate_table_ = nullptr;
}
TruncateTableTask::TruncateTableTask(::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.meta.TruncateTableTask)
}
TruncateTableTask::TruncateTableTask(const TruncateTableTask& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
TruncateTableTask* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.truncate_table_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
if (from._internal_has_truncate_table()) {
_this->_impl_.truncate_table_ = new ::greptime::v1::TruncateTableExpr(*from._impl_.truncate_table_);
}
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.TruncateTableTask)
}
inline void TruncateTableTask::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.truncate_table_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}
};
}
TruncateTableTask::~TruncateTableTask() {
// @@protoc_insertion_point(destructor:greptime.v1.meta.TruncateTableTask)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void TruncateTableTask::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.truncate_table_;
}
void TruncateTableTask::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void TruncateTableTask::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.TruncateTableTask)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
if (GetArenaForAllocation() == nullptr && _impl_.truncate_table_ != nullptr) {
delete _impl_.truncate_table_;
}
_impl_.truncate_table_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* TruncateTableTask::_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) {
// .greptime.v1.TruncateTableExpr truncate_table = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr = ctx->ParseMessage(_internal_mutable_truncate_table(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* TruncateTableTask::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.TruncateTableTask)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// .greptime.v1.TruncateTableExpr truncate_table = 1;
if (this->_internal_has_truncate_table()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, _Internal::truncate_table(this),
_Internal::truncate_table(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);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.TruncateTableTask)
return target;
}
size_t TruncateTableTask::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.TruncateTableTask)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// .greptime.v1.TruncateTableExpr truncate_table = 1;
if (this->_internal_has_truncate_table()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.truncate_table_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TruncateTableTask::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
TruncateTableTask::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TruncateTableTask::GetClassData() const { return &_class_data_; }
void TruncateTableTask::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<TruncateTableTask*>(&to_msg);
auto& from = static_cast<const TruncateTableTask&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.TruncateTableTask)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_has_truncate_table()) {
_this->_internal_mutable_truncate_table()->::greptime::v1::TruncateTableExpr::MergeFrom(
from._internal_truncate_table());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void TruncateTableTask::CopyFrom(const TruncateTableTask& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.TruncateTableTask)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TruncateTableTask::IsInitialized() const {
return true;
}
void TruncateTableTask::InternalSwap(TruncateTableTask* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.truncate_table_, other->_impl_.truncate_table_);
}
::PROTOBUF_NAMESPACE_ID::Metadata TruncateTableTask::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[3]);
}
// ===================================================================
class SubmitDdlTaskRequest::_Internal { class SubmitDdlTaskRequest::_Internal {
public: public:
static const ::greptime::v1::meta::RequestHeader& header(const SubmitDdlTaskRequest* msg); static const ::greptime::v1::meta::RequestHeader& header(const SubmitDdlTaskRequest* msg);
static const ::greptime::v1::meta::CreateTableTask& create_table_task(const SubmitDdlTaskRequest* msg); static const ::greptime::v1::meta::CreateTableTask& create_table_task(const SubmitDdlTaskRequest* msg);
static const ::greptime::v1::meta::DropTableTask& drop_table_task(const SubmitDdlTaskRequest* msg); static const ::greptime::v1::meta::DropTableTask& drop_table_task(const SubmitDdlTaskRequest* msg);
static const ::greptime::v1::meta::AlterTableTask& alter_table_task(const SubmitDdlTaskRequest* msg); static const ::greptime::v1::meta::AlterTableTask& alter_table_task(const SubmitDdlTaskRequest* msg);
static const ::greptime::v1::meta::TruncateTableTask& truncate_table_task(const SubmitDdlTaskRequest* msg);
}; };
const ::greptime::v1::meta::RequestHeader& const ::greptime::v1::meta::RequestHeader&
@@ -935,6 +1162,10 @@ const ::greptime::v1::meta::AlterTableTask&
SubmitDdlTaskRequest::_Internal::alter_table_task(const SubmitDdlTaskRequest* msg) { SubmitDdlTaskRequest::_Internal::alter_table_task(const SubmitDdlTaskRequest* msg) {
return *msg->_impl_.task_.alter_table_task_; return *msg->_impl_.task_.alter_table_task_;
} }
const ::greptime::v1::meta::TruncateTableTask&
SubmitDdlTaskRequest::_Internal::truncate_table_task(const SubmitDdlTaskRequest* msg) {
return *msg->_impl_.task_.truncate_table_task_;
}
void SubmitDdlTaskRequest::clear_header() { void SubmitDdlTaskRequest::clear_header() {
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
delete _impl_.header_; delete _impl_.header_;
@@ -986,6 +1217,21 @@ void SubmitDdlTaskRequest::set_allocated_alter_table_task(::greptime::v1::meta::
} }
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task) // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task)
} }
void SubmitDdlTaskRequest::set_allocated_truncate_table_task(::greptime::v1::meta::TruncateTableTask* truncate_table_task) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_task();
if (truncate_table_task) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(truncate_table_task);
if (message_arena != submessage_arena) {
truncate_table_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, truncate_table_task, submessage_arena);
}
set_has_truncate_table_task();
_impl_.task_.truncate_table_task_ = truncate_table_task;
}
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task)
}
SubmitDdlTaskRequest::SubmitDdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, SubmitDdlTaskRequest::SubmitDdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned) bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -1022,6 +1268,11 @@ SubmitDdlTaskRequest::SubmitDdlTaskRequest(const SubmitDdlTaskRequest& from)
from._internal_alter_table_task()); from._internal_alter_table_task());
break; break;
} }
case kTruncateTableTask: {
_this->_internal_mutable_truncate_table_task()->::greptime::v1::meta::TruncateTableTask::MergeFrom(
from._internal_truncate_table_task());
break;
}
case TASK_NOT_SET: { case TASK_NOT_SET: {
break; break;
} }
@@ -1084,6 +1335,12 @@ void SubmitDdlTaskRequest::clear_task() {
} }
break; break;
} }
case kTruncateTableTask: {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.task_.truncate_table_task_;
}
break;
}
case TASK_NOT_SET: { case TASK_NOT_SET: {
break; break;
} }
@@ -1144,6 +1401,14 @@ const char* SubmitDdlTaskRequest::_InternalParse(const char* ptr, ::_pbi::ParseC
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// .greptime.v1.meta.TruncateTableTask truncate_table_task = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
ptr = ctx->ParseMessage(_internal_mutable_truncate_table_task(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default: default:
goto handle_unusual; goto handle_unusual;
} // switch } // switch
@@ -1201,6 +1466,13 @@ uint8_t* SubmitDdlTaskRequest::_InternalSerialize(
_Internal::alter_table_task(this).GetCachedSize(), target, stream); _Internal::alter_table_task(this).GetCachedSize(), target, stream);
} }
// .greptime.v1.meta.TruncateTableTask truncate_table_task = 5;
if (_internal_has_truncate_table_task()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(5, _Internal::truncate_table_task(this),
_Internal::truncate_table_task(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -1246,6 +1518,13 @@ size_t SubmitDdlTaskRequest::ByteSizeLong() const {
*_impl_.task_.alter_table_task_); *_impl_.task_.alter_table_task_);
break; break;
} }
// .greptime.v1.meta.TruncateTableTask truncate_table_task = 5;
case kTruncateTableTask: {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.task_.truncate_table_task_);
break;
}
case TASK_NOT_SET: { case TASK_NOT_SET: {
break; break;
} }
@@ -1288,6 +1567,11 @@ void SubmitDdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, c
from._internal_alter_table_task()); from._internal_alter_table_task());
break; break;
} }
case kTruncateTableTask: {
_this->_internal_mutable_truncate_table_task()->::greptime::v1::meta::TruncateTableTask::MergeFrom(
from._internal_truncate_table_task());
break;
}
case TASK_NOT_SET: { case TASK_NOT_SET: {
break; break;
} }
@@ -1317,7 +1601,7 @@ void SubmitDdlTaskRequest::InternalSwap(SubmitDdlTaskRequest* other) {
::PROTOBUF_NAMESPACE_ID::Metadata SubmitDdlTaskRequest::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata SubmitDdlTaskRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[3]); file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[4]);
} }
// =================================================================== // ===================================================================
@@ -1615,7 +1899,7 @@ void SubmitDdlTaskResponse::InternalSwap(SubmitDdlTaskResponse* other) {
::PROTOBUF_NAMESPACE_ID::Metadata SubmitDdlTaskResponse::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata SubmitDdlTaskResponse::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[4]); file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[5]);
} }
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -1635,6 +1919,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::AlterTableTask*
Arena::CreateMaybeMessage< ::greptime::v1::meta::AlterTableTask >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::meta::AlterTableTask >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::AlterTableTask >(arena); return Arena::CreateMessageInternal< ::greptime::v1::meta::AlterTableTask >(arena);
} }
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::TruncateTableTask*
Arena::CreateMaybeMessage< ::greptime::v1::meta::TruncateTableTask >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::TruncateTableTask >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::SubmitDdlTaskRequest* template<> PROTOBUF_NOINLINE ::greptime::v1::meta::SubmitDdlTaskRequest*
Arena::CreateMaybeMessage< ::greptime::v1::meta::SubmitDdlTaskRequest >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::meta::SubmitDdlTaskRequest >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::SubmitDdlTaskRequest >(arena); return Arena::CreateMessageInternal< ::greptime::v1::meta::SubmitDdlTaskRequest >(arena);
+350 -2
View File
@@ -66,6 +66,9 @@ extern SubmitDdlTaskRequestDefaultTypeInternal _SubmitDdlTaskRequest_default_ins
class SubmitDdlTaskResponse; class SubmitDdlTaskResponse;
struct SubmitDdlTaskResponseDefaultTypeInternal; struct SubmitDdlTaskResponseDefaultTypeInternal;
extern SubmitDdlTaskResponseDefaultTypeInternal _SubmitDdlTaskResponse_default_instance_; extern SubmitDdlTaskResponseDefaultTypeInternal _SubmitDdlTaskResponse_default_instance_;
class TruncateTableTask;
struct TruncateTableTaskDefaultTypeInternal;
extern TruncateTableTaskDefaultTypeInternal _TruncateTableTask_default_instance_;
} // namespace meta } // namespace meta
} // namespace v1 } // namespace v1
} // namespace greptime } // namespace greptime
@@ -75,6 +78,7 @@ template<> ::greptime::v1::meta::CreateTableTask* Arena::CreateMaybeMessage<::gr
template<> ::greptime::v1::meta::DropTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropTableTask>(Arena*); template<> ::greptime::v1::meta::DropTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropTableTask>(Arena*);
template<> ::greptime::v1::meta::SubmitDdlTaskRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::SubmitDdlTaskRequest>(Arena*); template<> ::greptime::v1::meta::SubmitDdlTaskRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::SubmitDdlTaskRequest>(Arena*);
template<> ::greptime::v1::meta::SubmitDdlTaskResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::SubmitDdlTaskResponse>(Arena*); template<> ::greptime::v1::meta::SubmitDdlTaskResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::SubmitDdlTaskResponse>(Arena*);
template<> ::greptime::v1::meta::TruncateTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::TruncateTableTask>(Arena*);
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_CLOSE
namespace greptime { namespace greptime {
namespace v1 { namespace v1 {
@@ -614,6 +618,163 @@ class AlterTableTask final :
}; };
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class TruncateTableTask final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.TruncateTableTask) */ {
public:
inline TruncateTableTask() : TruncateTableTask(nullptr) {}
~TruncateTableTask() override;
explicit PROTOBUF_CONSTEXPR TruncateTableTask(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
TruncateTableTask(const TruncateTableTask& from);
TruncateTableTask(TruncateTableTask&& from) noexcept
: TruncateTableTask() {
*this = ::std::move(from);
}
inline TruncateTableTask& operator=(const TruncateTableTask& from) {
CopyFrom(from);
return *this;
}
inline TruncateTableTask& operator=(TruncateTableTask&& 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 TruncateTableTask& default_instance() {
return *internal_default_instance();
}
static inline const TruncateTableTask* internal_default_instance() {
return reinterpret_cast<const TruncateTableTask*>(
&_TruncateTableTask_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
friend void swap(TruncateTableTask& a, TruncateTableTask& b) {
a.Swap(&b);
}
inline void Swap(TruncateTableTask* 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(TruncateTableTask* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
TruncateTableTask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<TruncateTableTask>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const TruncateTableTask& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const TruncateTableTask& from) {
TruncateTableTask::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(TruncateTableTask* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.meta.TruncateTableTask";
}
protected:
explicit TruncateTableTask(::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 {
kTruncateTableFieldNumber = 1,
};
// .greptime.v1.TruncateTableExpr truncate_table = 1;
bool has_truncate_table() const;
private:
bool _internal_has_truncate_table() const;
public:
void clear_truncate_table();
const ::greptime::v1::TruncateTableExpr& truncate_table() const;
PROTOBUF_NODISCARD ::greptime::v1::TruncateTableExpr* release_truncate_table();
::greptime::v1::TruncateTableExpr* mutable_truncate_table();
void set_allocated_truncate_table(::greptime::v1::TruncateTableExpr* truncate_table);
private:
const ::greptime::v1::TruncateTableExpr& _internal_truncate_table() const;
::greptime::v1::TruncateTableExpr* _internal_mutable_truncate_table();
public:
void unsafe_arena_set_allocated_truncate_table(
::greptime::v1::TruncateTableExpr* truncate_table);
::greptime::v1::TruncateTableExpr* unsafe_arena_release_truncate_table();
// @@protoc_insertion_point(class_scope:greptime.v1.meta.TruncateTableTask)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::TruncateTableExpr* truncate_table_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto;
};
// -------------------------------------------------------------------
class SubmitDdlTaskRequest final : class SubmitDdlTaskRequest final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.SubmitDdlTaskRequest) */ { public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.SubmitDdlTaskRequest) */ {
public: public:
@@ -661,6 +822,7 @@ class SubmitDdlTaskRequest final :
kCreateTableTask = 2, kCreateTableTask = 2,
kDropTableTask = 3, kDropTableTask = 3,
kAlterTableTask = 4, kAlterTableTask = 4,
kTruncateTableTask = 5,
TASK_NOT_SET = 0, TASK_NOT_SET = 0,
}; };
@@ -669,7 +831,7 @@ class SubmitDdlTaskRequest final :
&_SubmitDdlTaskRequest_default_instance_); &_SubmitDdlTaskRequest_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
3; 4;
friend void swap(SubmitDdlTaskRequest& a, SubmitDdlTaskRequest& b) { friend void swap(SubmitDdlTaskRequest& a, SubmitDdlTaskRequest& b) {
a.Swap(&b); a.Swap(&b);
@@ -746,6 +908,7 @@ class SubmitDdlTaskRequest final :
kCreateTableTaskFieldNumber = 2, kCreateTableTaskFieldNumber = 2,
kDropTableTaskFieldNumber = 3, kDropTableTaskFieldNumber = 3,
kAlterTableTaskFieldNumber = 4, kAlterTableTaskFieldNumber = 4,
kTruncateTableTaskFieldNumber = 5,
}; };
// .greptime.v1.meta.RequestHeader header = 1; // .greptime.v1.meta.RequestHeader header = 1;
bool has_header() const; bool has_header() const;
@@ -819,6 +982,24 @@ class SubmitDdlTaskRequest final :
::greptime::v1::meta::AlterTableTask* alter_table_task); ::greptime::v1::meta::AlterTableTask* alter_table_task);
::greptime::v1::meta::AlterTableTask* unsafe_arena_release_alter_table_task(); ::greptime::v1::meta::AlterTableTask* unsafe_arena_release_alter_table_task();
// .greptime.v1.meta.TruncateTableTask truncate_table_task = 5;
bool has_truncate_table_task() const;
private:
bool _internal_has_truncate_table_task() const;
public:
void clear_truncate_table_task();
const ::greptime::v1::meta::TruncateTableTask& truncate_table_task() const;
PROTOBUF_NODISCARD ::greptime::v1::meta::TruncateTableTask* release_truncate_table_task();
::greptime::v1::meta::TruncateTableTask* mutable_truncate_table_task();
void set_allocated_truncate_table_task(::greptime::v1::meta::TruncateTableTask* truncate_table_task);
private:
const ::greptime::v1::meta::TruncateTableTask& _internal_truncate_table_task() const;
::greptime::v1::meta::TruncateTableTask* _internal_mutable_truncate_table_task();
public:
void unsafe_arena_set_allocated_truncate_table_task(
::greptime::v1::meta::TruncateTableTask* truncate_table_task);
::greptime::v1::meta::TruncateTableTask* unsafe_arena_release_truncate_table_task();
void clear_task(); void clear_task();
TaskCase task_case() const; TaskCase task_case() const;
// @@protoc_insertion_point(class_scope:greptime.v1.meta.SubmitDdlTaskRequest) // @@protoc_insertion_point(class_scope:greptime.v1.meta.SubmitDdlTaskRequest)
@@ -827,6 +1008,7 @@ class SubmitDdlTaskRequest final :
void set_has_create_table_task(); void set_has_create_table_task();
void set_has_drop_table_task(); void set_has_drop_table_task();
void set_has_alter_table_task(); void set_has_alter_table_task();
void set_has_truncate_table_task();
inline bool has_task() const; inline bool has_task() const;
inline void clear_has_task(); inline void clear_has_task();
@@ -842,6 +1024,7 @@ class SubmitDdlTaskRequest final :
::greptime::v1::meta::CreateTableTask* create_table_task_; ::greptime::v1::meta::CreateTableTask* create_table_task_;
::greptime::v1::meta::DropTableTask* drop_table_task_; ::greptime::v1::meta::DropTableTask* drop_table_task_;
::greptime::v1::meta::AlterTableTask* alter_table_task_; ::greptime::v1::meta::AlterTableTask* alter_table_task_;
::greptime::v1::meta::TruncateTableTask* truncate_table_task_;
} task_; } task_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1]; uint32_t _oneof_case_[1];
@@ -900,7 +1083,7 @@ class SubmitDdlTaskResponse final :
&_SubmitDdlTaskResponse_default_instance_); &_SubmitDdlTaskResponse_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
4; 5;
friend void swap(SubmitDdlTaskResponse& a, SubmitDdlTaskResponse& b) { friend void swap(SubmitDdlTaskResponse& a, SubmitDdlTaskResponse& b) {
a.Swap(&b); a.Swap(&b);
@@ -1406,6 +1589,95 @@ inline void AlterTableTask::set_allocated_alter_table(::greptime::v1::AlterExpr*
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// TruncateTableTask
// .greptime.v1.TruncateTableExpr truncate_table = 1;
inline bool TruncateTableTask::_internal_has_truncate_table() const {
return this != internal_default_instance() && _impl_.truncate_table_ != nullptr;
}
inline bool TruncateTableTask::has_truncate_table() const {
return _internal_has_truncate_table();
}
inline const ::greptime::v1::TruncateTableExpr& TruncateTableTask::_internal_truncate_table() const {
const ::greptime::v1::TruncateTableExpr* p = _impl_.truncate_table_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::TruncateTableExpr&>(
::greptime::v1::_TruncateTableExpr_default_instance_);
}
inline const ::greptime::v1::TruncateTableExpr& TruncateTableTask::truncate_table() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.TruncateTableTask.truncate_table)
return _internal_truncate_table();
}
inline void TruncateTableTask::unsafe_arena_set_allocated_truncate_table(
::greptime::v1::TruncateTableExpr* truncate_table) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.truncate_table_);
}
_impl_.truncate_table_ = truncate_table;
if (truncate_table) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.TruncateTableTask.truncate_table)
}
inline ::greptime::v1::TruncateTableExpr* TruncateTableTask::release_truncate_table() {
::greptime::v1::TruncateTableExpr* temp = _impl_.truncate_table_;
_impl_.truncate_table_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::TruncateTableExpr* TruncateTableTask::unsafe_arena_release_truncate_table() {
// @@protoc_insertion_point(field_release:greptime.v1.meta.TruncateTableTask.truncate_table)
::greptime::v1::TruncateTableExpr* temp = _impl_.truncate_table_;
_impl_.truncate_table_ = nullptr;
return temp;
}
inline ::greptime::v1::TruncateTableExpr* TruncateTableTask::_internal_mutable_truncate_table() {
if (_impl_.truncate_table_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(GetArenaForAllocation());
_impl_.truncate_table_ = p;
}
return _impl_.truncate_table_;
}
inline ::greptime::v1::TruncateTableExpr* TruncateTableTask::mutable_truncate_table() {
::greptime::v1::TruncateTableExpr* _msg = _internal_mutable_truncate_table();
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.TruncateTableTask.truncate_table)
return _msg;
}
inline void TruncateTableTask::set_allocated_truncate_table(::greptime::v1::TruncateTableExpr* truncate_table) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.truncate_table_);
}
if (truncate_table) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(truncate_table));
if (message_arena != submessage_arena) {
truncate_table = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, truncate_table, submessage_arena);
}
} else {
}
_impl_.truncate_table_ = truncate_table;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.TruncateTableTask.truncate_table)
}
// -------------------------------------------------------------------
// SubmitDdlTaskRequest // SubmitDdlTaskRequest
// .greptime.v1.meta.RequestHeader header = 1; // .greptime.v1.meta.RequestHeader header = 1;
@@ -1715,6 +1987,80 @@ inline ::greptime::v1::meta::AlterTableTask* SubmitDdlTaskRequest::mutable_alter
return _msg; return _msg;
} }
// .greptime.v1.meta.TruncateTableTask truncate_table_task = 5;
inline bool SubmitDdlTaskRequest::_internal_has_truncate_table_task() const {
return task_case() == kTruncateTableTask;
}
inline bool SubmitDdlTaskRequest::has_truncate_table_task() const {
return _internal_has_truncate_table_task();
}
inline void SubmitDdlTaskRequest::set_has_truncate_table_task() {
_impl_._oneof_case_[0] = kTruncateTableTask;
}
inline void SubmitDdlTaskRequest::clear_truncate_table_task() {
if (_internal_has_truncate_table_task()) {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.task_.truncate_table_task_;
}
clear_has_task();
}
}
inline ::greptime::v1::meta::TruncateTableTask* SubmitDdlTaskRequest::release_truncate_table_task() {
// @@protoc_insertion_point(field_release:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task)
if (_internal_has_truncate_table_task()) {
clear_has_task();
::greptime::v1::meta::TruncateTableTask* temp = _impl_.task_.truncate_table_task_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
_impl_.task_.truncate_table_task_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::greptime::v1::meta::TruncateTableTask& SubmitDdlTaskRequest::_internal_truncate_table_task() const {
return _internal_has_truncate_table_task()
? *_impl_.task_.truncate_table_task_
: reinterpret_cast< ::greptime::v1::meta::TruncateTableTask&>(::greptime::v1::meta::_TruncateTableTask_default_instance_);
}
inline const ::greptime::v1::meta::TruncateTableTask& SubmitDdlTaskRequest::truncate_table_task() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task)
return _internal_truncate_table_task();
}
inline ::greptime::v1::meta::TruncateTableTask* SubmitDdlTaskRequest::unsafe_arena_release_truncate_table_task() {
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task)
if (_internal_has_truncate_table_task()) {
clear_has_task();
::greptime::v1::meta::TruncateTableTask* temp = _impl_.task_.truncate_table_task_;
_impl_.task_.truncate_table_task_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void SubmitDdlTaskRequest::unsafe_arena_set_allocated_truncate_table_task(::greptime::v1::meta::TruncateTableTask* truncate_table_task) {
clear_task();
if (truncate_table_task) {
set_has_truncate_table_task();
_impl_.task_.truncate_table_task_ = truncate_table_task;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task)
}
inline ::greptime::v1::meta::TruncateTableTask* SubmitDdlTaskRequest::_internal_mutable_truncate_table_task() {
if (!_internal_has_truncate_table_task()) {
clear_task();
set_has_truncate_table_task();
_impl_.task_.truncate_table_task_ = CreateMaybeMessage< ::greptime::v1::meta::TruncateTableTask >(GetArenaForAllocation());
}
return _impl_.task_.truncate_table_task_;
}
inline ::greptime::v1::meta::TruncateTableTask* SubmitDdlTaskRequest::mutable_truncate_table_task() {
::greptime::v1::meta::TruncateTableTask* _msg = _internal_mutable_truncate_table_task();
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task)
return _msg;
}
inline bool SubmitDdlTaskRequest::has_task() const { inline bool SubmitDdlTaskRequest::has_task() const {
return task_case() != TASK_NOT_SET; return task_case() != TASK_NOT_SET;
} }
@@ -1959,6 +2305,8 @@ inline void SubmitDdlTaskResponse::set_allocated_table_id(::greptime::v1::meta::
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
+311 -195
View File
@@ -77,7 +77,7 @@ func (x AddColumn_Location_LocationType) Number() protoreflect.EnumNumber {
// Deprecated: Use AddColumn_Location_LocationType.Descriptor instead. // Deprecated: Use AddColumn_Location_LocationType.Descriptor instead.
func (AddColumn_Location_LocationType) EnumDescriptor() ([]byte, []int) { func (AddColumn_Location_LocationType) EnumDescriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10, 0, 0} return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11, 0, 0}
} }
// "Data Definition Language" requests, that create, modify or delete the // "Data Definition Language" requests, that create, modify or delete the
@@ -97,6 +97,7 @@ type DdlRequest struct {
// *DdlRequest_DropTable // *DdlRequest_DropTable
// *DdlRequest_FlushTable // *DdlRequest_FlushTable
// *DdlRequest_CompactTable // *DdlRequest_CompactTable
// *DdlRequest_TruncateTable
Expr isDdlRequest_Expr `protobuf_oneof:"expr"` Expr isDdlRequest_Expr `protobuf_oneof:"expr"`
} }
@@ -181,6 +182,13 @@ func (x *DdlRequest) GetCompactTable() *CompactTableExpr {
return nil return nil
} }
func (x *DdlRequest) GetTruncateTable() *TruncateTableExpr {
if x, ok := x.GetExpr().(*DdlRequest_TruncateTable); ok {
return x.TruncateTable
}
return nil
}
type isDdlRequest_Expr interface { type isDdlRequest_Expr interface {
isDdlRequest_Expr() isDdlRequest_Expr()
} }
@@ -209,6 +217,10 @@ type DdlRequest_CompactTable struct {
CompactTable *CompactTableExpr `protobuf:"bytes,6,opt,name=compact_table,json=compactTable,proto3,oneof"` CompactTable *CompactTableExpr `protobuf:"bytes,6,opt,name=compact_table,json=compactTable,proto3,oneof"`
} }
type DdlRequest_TruncateTable struct {
TruncateTable *TruncateTableExpr `protobuf:"bytes,7,opt,name=truncate_table,json=truncateTable,proto3,oneof"`
}
func (*DdlRequest_CreateDatabase) isDdlRequest_Expr() {} func (*DdlRequest_CreateDatabase) isDdlRequest_Expr() {}
func (*DdlRequest_CreateTable) isDdlRequest_Expr() {} func (*DdlRequest_CreateTable) isDdlRequest_Expr() {}
@@ -221,6 +233,8 @@ func (*DdlRequest_FlushTable) isDdlRequest_Expr() {}
func (*DdlRequest_CompactTable) isDdlRequest_Expr() {} func (*DdlRequest_CompactTable) isDdlRequest_Expr() {}
func (*DdlRequest_TruncateTable) isDdlRequest_Expr() {}
type CreateTableExpr struct { type CreateTableExpr struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -768,6 +782,77 @@ func (x *CreateDatabaseExpr) GetCreateIfNotExists() bool {
return false return false
} }
type TruncateTableExpr struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CatalogName string `protobuf:"bytes,1,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"`
SchemaName string `protobuf:"bytes,2,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"`
TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
TableId *TableId `protobuf:"bytes,4,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
}
func (x *TruncateTableExpr) Reset() {
*x = TruncateTableExpr{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_ddl_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TruncateTableExpr) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TruncateTableExpr) ProtoMessage() {}
func (x *TruncateTableExpr) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_ddl_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TruncateTableExpr.ProtoReflect.Descriptor instead.
func (*TruncateTableExpr) Descriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{7}
}
func (x *TruncateTableExpr) GetCatalogName() string {
if x != nil {
return x.CatalogName
}
return ""
}
func (x *TruncateTableExpr) GetSchemaName() string {
if x != nil {
return x.SchemaName
}
return ""
}
func (x *TruncateTableExpr) GetTableName() string {
if x != nil {
return x.TableName
}
return ""
}
func (x *TruncateTableExpr) GetTableId() *TableId {
if x != nil {
return x.TableId
}
return nil
}
type AddColumns struct { type AddColumns struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -779,7 +864,7 @@ type AddColumns struct {
func (x *AddColumns) Reset() { func (x *AddColumns) Reset() {
*x = AddColumns{} *x = AddColumns{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_ddl_proto_msgTypes[7] mi := &file_greptime_v1_ddl_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -792,7 +877,7 @@ func (x *AddColumns) String() string {
func (*AddColumns) ProtoMessage() {} func (*AddColumns) ProtoMessage() {}
func (x *AddColumns) ProtoReflect() protoreflect.Message { func (x *AddColumns) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_ddl_proto_msgTypes[7] mi := &file_greptime_v1_ddl_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -805,7 +890,7 @@ func (x *AddColumns) ProtoReflect() protoreflect.Message {
// Deprecated: Use AddColumns.ProtoReflect.Descriptor instead. // Deprecated: Use AddColumns.ProtoReflect.Descriptor instead.
func (*AddColumns) Descriptor() ([]byte, []int) { func (*AddColumns) Descriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{7} return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{8}
} }
func (x *AddColumns) GetAddColumns() []*AddColumn { func (x *AddColumns) GetAddColumns() []*AddColumn {
@@ -826,7 +911,7 @@ type DropColumns struct {
func (x *DropColumns) Reset() { func (x *DropColumns) Reset() {
*x = DropColumns{} *x = DropColumns{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_ddl_proto_msgTypes[8] mi := &file_greptime_v1_ddl_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -839,7 +924,7 @@ func (x *DropColumns) String() string {
func (*DropColumns) ProtoMessage() {} func (*DropColumns) ProtoMessage() {}
func (x *DropColumns) ProtoReflect() protoreflect.Message { func (x *DropColumns) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_ddl_proto_msgTypes[8] mi := &file_greptime_v1_ddl_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -852,7 +937,7 @@ func (x *DropColumns) ProtoReflect() protoreflect.Message {
// Deprecated: Use DropColumns.ProtoReflect.Descriptor instead. // Deprecated: Use DropColumns.ProtoReflect.Descriptor instead.
func (*DropColumns) Descriptor() ([]byte, []int) { func (*DropColumns) Descriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{8} return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9}
} }
func (x *DropColumns) GetDropColumns() []*DropColumn { func (x *DropColumns) GetDropColumns() []*DropColumn {
@@ -873,7 +958,7 @@ type RenameTable struct {
func (x *RenameTable) Reset() { func (x *RenameTable) Reset() {
*x = RenameTable{} *x = RenameTable{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_ddl_proto_msgTypes[9] mi := &file_greptime_v1_ddl_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -886,7 +971,7 @@ func (x *RenameTable) String() string {
func (*RenameTable) ProtoMessage() {} func (*RenameTable) ProtoMessage() {}
func (x *RenameTable) ProtoReflect() protoreflect.Message { func (x *RenameTable) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_ddl_proto_msgTypes[9] mi := &file_greptime_v1_ddl_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -899,7 +984,7 @@ func (x *RenameTable) ProtoReflect() protoreflect.Message {
// Deprecated: Use RenameTable.ProtoReflect.Descriptor instead. // Deprecated: Use RenameTable.ProtoReflect.Descriptor instead.
func (*RenameTable) Descriptor() ([]byte, []int) { func (*RenameTable) Descriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9} return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10}
} }
func (x *RenameTable) GetNewTableName() string { func (x *RenameTable) GetNewTableName() string {
@@ -922,7 +1007,7 @@ type AddColumn struct {
func (x *AddColumn) Reset() { func (x *AddColumn) Reset() {
*x = AddColumn{} *x = AddColumn{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_ddl_proto_msgTypes[10] mi := &file_greptime_v1_ddl_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -935,7 +1020,7 @@ func (x *AddColumn) String() string {
func (*AddColumn) ProtoMessage() {} func (*AddColumn) ProtoMessage() {}
func (x *AddColumn) ProtoReflect() protoreflect.Message { func (x *AddColumn) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_ddl_proto_msgTypes[10] mi := &file_greptime_v1_ddl_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -948,7 +1033,7 @@ func (x *AddColumn) ProtoReflect() protoreflect.Message {
// Deprecated: Use AddColumn.ProtoReflect.Descriptor instead. // Deprecated: Use AddColumn.ProtoReflect.Descriptor instead.
func (*AddColumn) Descriptor() ([]byte, []int) { func (*AddColumn) Descriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10} return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11}
} }
func (x *AddColumn) GetColumnDef() *ColumnDef { func (x *AddColumn) GetColumnDef() *ColumnDef {
@@ -983,7 +1068,7 @@ type DropColumn struct {
func (x *DropColumn) Reset() { func (x *DropColumn) Reset() {
*x = DropColumn{} *x = DropColumn{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_ddl_proto_msgTypes[11] mi := &file_greptime_v1_ddl_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -996,7 +1081,7 @@ func (x *DropColumn) String() string {
func (*DropColumn) ProtoMessage() {} func (*DropColumn) ProtoMessage() {}
func (x *DropColumn) ProtoReflect() protoreflect.Message { func (x *DropColumn) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_ddl_proto_msgTypes[11] mi := &file_greptime_v1_ddl_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -1009,7 +1094,7 @@ func (x *DropColumn) ProtoReflect() protoreflect.Message {
// Deprecated: Use DropColumn.ProtoReflect.Descriptor instead. // Deprecated: Use DropColumn.ProtoReflect.Descriptor instead.
func (*DropColumn) Descriptor() ([]byte, []int) { func (*DropColumn) Descriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11} return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12}
} }
func (x *DropColumn) GetName() string { func (x *DropColumn) GetName() string {
@@ -1030,7 +1115,7 @@ type TableId struct {
func (x *TableId) Reset() { func (x *TableId) Reset() {
*x = TableId{} *x = TableId{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_ddl_proto_msgTypes[12] mi := &file_greptime_v1_ddl_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -1043,7 +1128,7 @@ func (x *TableId) String() string {
func (*TableId) ProtoMessage() {} func (*TableId) ProtoMessage() {}
func (x *TableId) ProtoReflect() protoreflect.Message { func (x *TableId) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_ddl_proto_msgTypes[12] mi := &file_greptime_v1_ddl_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -1056,7 +1141,7 @@ func (x *TableId) ProtoReflect() protoreflect.Message {
// Deprecated: Use TableId.ProtoReflect.Descriptor instead. // Deprecated: Use TableId.ProtoReflect.Descriptor instead.
func (*TableId) Descriptor() ([]byte, []int) { func (*TableId) Descriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12} return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13}
} }
func (x *TableId) GetId() uint32 { func (x *TableId) GetId() uint32 {
@@ -1078,7 +1163,7 @@ type AddColumn_Location struct {
func (x *AddColumn_Location) Reset() { func (x *AddColumn_Location) Reset() {
*x = AddColumn_Location{} *x = AddColumn_Location{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_ddl_proto_msgTypes[14] mi := &file_greptime_v1_ddl_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -1091,7 +1176,7 @@ func (x *AddColumn_Location) String() string {
func (*AddColumn_Location) ProtoMessage() {} func (*AddColumn_Location) ProtoMessage() {}
func (x *AddColumn_Location) ProtoReflect() protoreflect.Message { func (x *AddColumn_Location) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_ddl_proto_msgTypes[14] mi := &file_greptime_v1_ddl_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -1104,7 +1189,7 @@ func (x *AddColumn_Location) ProtoReflect() protoreflect.Message {
// Deprecated: Use AddColumn_Location.ProtoReflect.Descriptor instead. // Deprecated: Use AddColumn_Location.ProtoReflect.Descriptor instead.
func (*AddColumn_Location) Descriptor() ([]byte, []int) { func (*AddColumn_Location) Descriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10, 0} return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11, 0}
} }
func (x *AddColumn_Location) GetLocationType() AddColumn_Location_LocationType { func (x *AddColumn_Location) GetLocationType() AddColumn_Location_LocationType {
@@ -1127,7 +1212,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x0a, 0x15, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x64, 0x0a, 0x15, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x64,
0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76,
0x31, 0x2f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x31, 0x2f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf,
0x03, 0x0a, 0x0a, 0x44, 0x64, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x03, 0x0a, 0x0a, 0x44, 0x64, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a,
0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
@@ -1152,153 +1237,168 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x70, 0x61, 0x63, 0x74, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x70, 0x61, 0x63, 0x74, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x48, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x48,
0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12,
0x06, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72, 0x22, 0xba, 0x04, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x47, 0x0a, 0x0e, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c,
0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61,
0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x6e, 0x63,
0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72,
0x22, 0xba, 0x04, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61,
0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63,
0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c,
0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61,
0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12, 0x37, 0x0a, 0x0b, 0x63,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x44, 0x65, 0x66, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x69, 0x6e, 0x64,
0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e,
0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b,
0x65, 0x79, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x69, 0x6d, 0x61,
0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x08,
0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f,
0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x53, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x54, 0x61, 0x62,
0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x08,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62,
0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a,
0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18,
0x0b, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d,
0x62, 0x65, 0x72, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x0c,
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x1a, 0x3f, 0x0a, 0x11,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x86, 0x03,
0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63,
0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f,
0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12,
0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a,
0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20,
0x73, 0x63, 0x12, 0x37, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0a,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x64, 0x72,
0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
0x69, 0x6d, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,
0x09, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x72,
0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x72, 0x65, 0x6e,
0x52, 0x0b, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x2f, 0x0a, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,
0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x6e,
0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x53, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c,
0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65,
0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x61, 0x62,
0x78, 0x70, 0x72, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04,
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06,
0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xa3, 0x01, 0x0a, 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x54,
0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61,
0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
0x6c, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73,
0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x69, 0x6e, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74,
0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c,
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xe0, 0x01, 0x0a,
0x3a, 0x02, 0x38, 0x01, 0x22, 0x86, 0x03, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x0e, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12,
0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f,
0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c,
0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x73, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
0x12, 0x3d, 0x0a, 0x0c, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12,
0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
0x12, 0x23, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xa3, 0x01,
0x0a, 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12,
0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61,
0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e,
0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61,
0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x67,
0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x08,
0x65, 0x49, 0x64, 0x22, 0xe0, 0x01, 0x0a, 0x0e, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x54, 0x61, 0x62, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14,
0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62,
0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x42, 0x10, 0x0a,
0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x0e, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22,
0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0xb1, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f,
0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d,
0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63,
0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c,
0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61,
0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00,
0x6c, 0x65, 0x49, 0x64, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x88, 0x01,
0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xb1, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d,
0x63, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x62, 0x65, 0x72, 0x22, 0x6a, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74,
0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74,
0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f,
0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f,
0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72,
0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22,
0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c,
0x04, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
0x75, 0x6d, 0x62, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x72, 0x65, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x6a, 0x0a, 0x12, 0x43, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65,
0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73,
0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74,
0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c,
0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65,
0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64,
0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63,
0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f,
0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12,
0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18,
0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b,
0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52,
0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65,
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xc8, 0x02, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65,
0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x22, 0xc8, 0x02, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01,
0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75,
0x65, 0x66, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18,
0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x3b, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x3b, 0x0a, 0x08,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64,
0x75, 0x6d, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xaf, 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xaf, 0x01, 0x0a, 0x08, 0x4c, 0x6f,
0x69, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43,
0x6d, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c,
0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63,
0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74,
0x63, 0x6c, 0x6f, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x6f, 0x75, 0x6d,
0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00,
0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x22, 0x20, 0x0a, 0x0a, 0x44,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a,
0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x0d, 0x52, 0x02, 0x69, 0x64, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70,
0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74,
0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -1314,7 +1414,7 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte {
} }
var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 15) var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_greptime_v1_ddl_proto_goTypes = []interface{}{ var file_greptime_v1_ddl_proto_goTypes = []interface{}{
(AddColumn_Location_LocationType)(0), // 0: greptime.v1.AddColumn.Location.LocationType (AddColumn_Location_LocationType)(0), // 0: greptime.v1.AddColumn.Location.LocationType
(*DdlRequest)(nil), // 1: greptime.v1.DdlRequest (*DdlRequest)(nil), // 1: greptime.v1.DdlRequest
@@ -1324,15 +1424,16 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{
(*FlushTableExpr)(nil), // 5: greptime.v1.FlushTableExpr (*FlushTableExpr)(nil), // 5: greptime.v1.FlushTableExpr
(*CompactTableExpr)(nil), // 6: greptime.v1.CompactTableExpr (*CompactTableExpr)(nil), // 6: greptime.v1.CompactTableExpr
(*CreateDatabaseExpr)(nil), // 7: greptime.v1.CreateDatabaseExpr (*CreateDatabaseExpr)(nil), // 7: greptime.v1.CreateDatabaseExpr
(*AddColumns)(nil), // 8: greptime.v1.AddColumns (*TruncateTableExpr)(nil), // 8: greptime.v1.TruncateTableExpr
(*DropColumns)(nil), // 9: greptime.v1.DropColumns (*AddColumns)(nil), // 9: greptime.v1.AddColumns
(*RenameTable)(nil), // 10: greptime.v1.RenameTable (*DropColumns)(nil), // 10: greptime.v1.DropColumns
(*AddColumn)(nil), // 11: greptime.v1.AddColumn (*RenameTable)(nil), // 11: greptime.v1.RenameTable
(*DropColumn)(nil), // 12: greptime.v1.DropColumn (*AddColumn)(nil), // 12: greptime.v1.AddColumn
(*TableId)(nil), // 13: greptime.v1.TableId (*DropColumn)(nil), // 13: greptime.v1.DropColumn
nil, // 14: greptime.v1.CreateTableExpr.TableOptionsEntry (*TableId)(nil), // 14: greptime.v1.TableId
(*AddColumn_Location)(nil), // 15: greptime.v1.AddColumn.Location nil, // 15: greptime.v1.CreateTableExpr.TableOptionsEntry
(*ColumnDef)(nil), // 16: greptime.v1.ColumnDef (*AddColumn_Location)(nil), // 16: greptime.v1.AddColumn.Location
(*ColumnDef)(nil), // 17: greptime.v1.ColumnDef
} }
var file_greptime_v1_ddl_proto_depIdxs = []int32{ var file_greptime_v1_ddl_proto_depIdxs = []int32{
7, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr 7, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
@@ -1341,25 +1442,27 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{
4, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr 4, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr
5, // 4: greptime.v1.DdlRequest.flush_table:type_name -> greptime.v1.FlushTableExpr 5, // 4: greptime.v1.DdlRequest.flush_table:type_name -> greptime.v1.FlushTableExpr
6, // 5: greptime.v1.DdlRequest.compact_table:type_name -> greptime.v1.CompactTableExpr 6, // 5: greptime.v1.DdlRequest.compact_table:type_name -> greptime.v1.CompactTableExpr
16, // 6: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef 8, // 6: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr
14, // 7: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry 17, // 7: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef
13, // 8: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId 15, // 8: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
8, // 9: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns 14, // 9: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId
9, // 10: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns 9, // 10: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns
10, // 11: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable 10, // 11: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns
13, // 12: greptime.v1.AlterExpr.table_id:type_name -> greptime.v1.TableId 11, // 12: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable
13, // 13: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId 14, // 13: greptime.v1.AlterExpr.table_id:type_name -> greptime.v1.TableId
13, // 14: greptime.v1.FlushTableExpr.table_id:type_name -> greptime.v1.TableId 14, // 14: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId
11, // 15: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn 14, // 15: greptime.v1.FlushTableExpr.table_id:type_name -> greptime.v1.TableId
12, // 16: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn 14, // 16: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId
16, // 17: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef 12, // 17: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
15, // 18: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumn.Location 13, // 18: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
0, // 19: greptime.v1.AddColumn.Location.location_type:type_name -> greptime.v1.AddColumn.Location.LocationType 17, // 19: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
20, // [20:20] is the sub-list for method output_type 16, // 20: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumn.Location
20, // [20:20] is the sub-list for method input_type 0, // 21: greptime.v1.AddColumn.Location.location_type:type_name -> greptime.v1.AddColumn.Location.LocationType
20, // [20:20] is the sub-list for extension type_name 22, // [22:22] is the sub-list for method output_type
20, // [20:20] is the sub-list for extension extendee 22, // [22:22] is the sub-list for method input_type
0, // [0:20] is the sub-list for field type_name 22, // [22:22] is the sub-list for extension type_name
22, // [22:22] is the sub-list for extension extendee
0, // [0:22] is the sub-list for field type_name
} }
func init() { file_greptime_v1_ddl_proto_init() } func init() { file_greptime_v1_ddl_proto_init() }
@@ -1454,7 +1557,7 @@ func file_greptime_v1_ddl_proto_init() {
} }
} }
file_greptime_v1_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AddColumns); i { switch v := v.(*TruncateTableExpr); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1466,7 +1569,7 @@ func file_greptime_v1_ddl_proto_init() {
} }
} }
file_greptime_v1_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DropColumns); i { switch v := v.(*AddColumns); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1478,7 +1581,7 @@ func file_greptime_v1_ddl_proto_init() {
} }
} }
file_greptime_v1_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RenameTable); i { switch v := v.(*DropColumns); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1490,7 +1593,7 @@ func file_greptime_v1_ddl_proto_init() {
} }
} }
file_greptime_v1_ddl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_ddl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AddColumn); i { switch v := v.(*RenameTable); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1502,7 +1605,7 @@ func file_greptime_v1_ddl_proto_init() {
} }
} }
file_greptime_v1_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DropColumn); i { switch v := v.(*AddColumn); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1514,6 +1617,18 @@ func file_greptime_v1_ddl_proto_init() {
} }
} }
file_greptime_v1_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DropColumn); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_ddl_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TableId); i { switch v := v.(*TableId); i {
case 0: case 0:
return &v.state return &v.state
@@ -1525,7 +1640,7 @@ func file_greptime_v1_ddl_proto_init() {
return nil return nil
} }
} }
file_greptime_v1_ddl_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_ddl_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AddColumn_Location); i { switch v := v.(*AddColumn_Location); i {
case 0: case 0:
return &v.state return &v.state
@@ -1545,6 +1660,7 @@ func file_greptime_v1_ddl_proto_init() {
(*DdlRequest_DropTable)(nil), (*DdlRequest_DropTable)(nil),
(*DdlRequest_FlushTable)(nil), (*DdlRequest_FlushTable)(nil),
(*DdlRequest_CompactTable)(nil), (*DdlRequest_CompactTable)(nil),
(*DdlRequest_TruncateTable)(nil),
} }
file_greptime_v1_ddl_proto_msgTypes[2].OneofWrappers = []interface{}{ file_greptime_v1_ddl_proto_msgTypes[2].OneofWrappers = []interface{}{
(*AlterExpr_AddColumns)(nil), (*AlterExpr_AddColumns)(nil),
@@ -1559,7 +1675,7 @@ func file_greptime_v1_ddl_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, RawDescriptor: file_greptime_v1_ddl_proto_rawDesc,
NumEnums: 1, NumEnums: 1,
NumMessages: 15, NumMessages: 16,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
+170 -81
View File
@@ -238,6 +238,53 @@ func (x *AlterTableTask) GetAlterTable() *v1.AlterExpr {
return nil return nil
} }
type TruncateTableTask struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TruncateTable *v1.TruncateTableExpr `protobuf:"bytes,1,opt,name=truncate_table,json=truncateTable,proto3" json:"truncate_table,omitempty"`
}
func (x *TruncateTableTask) Reset() {
*x = TruncateTableTask{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TruncateTableTask) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TruncateTableTask) ProtoMessage() {}
func (x *TruncateTableTask) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TruncateTableTask.ProtoReflect.Descriptor instead.
func (*TruncateTableTask) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{3}
}
func (x *TruncateTableTask) GetTruncateTable() *v1.TruncateTableExpr {
if x != nil {
return x.TruncateTable
}
return nil
}
type SubmitDdlTaskRequest struct { type SubmitDdlTaskRequest struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -249,13 +296,14 @@ type SubmitDdlTaskRequest struct {
// *SubmitDdlTaskRequest_CreateTableTask // *SubmitDdlTaskRequest_CreateTableTask
// *SubmitDdlTaskRequest_DropTableTask // *SubmitDdlTaskRequest_DropTableTask
// *SubmitDdlTaskRequest_AlterTableTask // *SubmitDdlTaskRequest_AlterTableTask
// *SubmitDdlTaskRequest_TruncateTableTask
Task isSubmitDdlTaskRequest_Task `protobuf_oneof:"task"` Task isSubmitDdlTaskRequest_Task `protobuf_oneof:"task"`
} }
func (x *SubmitDdlTaskRequest) Reset() { func (x *SubmitDdlTaskRequest) Reset() {
*x = SubmitDdlTaskRequest{} *x = SubmitDdlTaskRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[3] mi := &file_greptime_v1_meta_ddl_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -268,7 +316,7 @@ func (x *SubmitDdlTaskRequest) String() string {
func (*SubmitDdlTaskRequest) ProtoMessage() {} func (*SubmitDdlTaskRequest) ProtoMessage() {}
func (x *SubmitDdlTaskRequest) ProtoReflect() protoreflect.Message { func (x *SubmitDdlTaskRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[3] mi := &file_greptime_v1_meta_ddl_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -281,7 +329,7 @@ func (x *SubmitDdlTaskRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SubmitDdlTaskRequest.ProtoReflect.Descriptor instead. // Deprecated: Use SubmitDdlTaskRequest.ProtoReflect.Descriptor instead.
func (*SubmitDdlTaskRequest) Descriptor() ([]byte, []int) { func (*SubmitDdlTaskRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{3} return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{4}
} }
func (x *SubmitDdlTaskRequest) GetHeader() *RequestHeader { func (x *SubmitDdlTaskRequest) GetHeader() *RequestHeader {
@@ -319,6 +367,13 @@ func (x *SubmitDdlTaskRequest) GetAlterTableTask() *AlterTableTask {
return nil return nil
} }
func (x *SubmitDdlTaskRequest) GetTruncateTableTask() *TruncateTableTask {
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_TruncateTableTask); ok {
return x.TruncateTableTask
}
return nil
}
type isSubmitDdlTaskRequest_Task interface { type isSubmitDdlTaskRequest_Task interface {
isSubmitDdlTaskRequest_Task() isSubmitDdlTaskRequest_Task()
} }
@@ -335,12 +390,18 @@ type SubmitDdlTaskRequest_AlterTableTask struct {
AlterTableTask *AlterTableTask `protobuf:"bytes,4,opt,name=alter_table_task,json=alterTableTask,proto3,oneof"` AlterTableTask *AlterTableTask `protobuf:"bytes,4,opt,name=alter_table_task,json=alterTableTask,proto3,oneof"`
} }
type SubmitDdlTaskRequest_TruncateTableTask struct {
TruncateTableTask *TruncateTableTask `protobuf:"bytes,5,opt,name=truncate_table_task,json=truncateTableTask,proto3,oneof"`
}
func (*SubmitDdlTaskRequest_CreateTableTask) isSubmitDdlTaskRequest_Task() {} func (*SubmitDdlTaskRequest_CreateTableTask) isSubmitDdlTaskRequest_Task() {}
func (*SubmitDdlTaskRequest_DropTableTask) isSubmitDdlTaskRequest_Task() {} func (*SubmitDdlTaskRequest_DropTableTask) isSubmitDdlTaskRequest_Task() {}
func (*SubmitDdlTaskRequest_AlterTableTask) isSubmitDdlTaskRequest_Task() {} func (*SubmitDdlTaskRequest_AlterTableTask) isSubmitDdlTaskRequest_Task() {}
func (*SubmitDdlTaskRequest_TruncateTableTask) isSubmitDdlTaskRequest_Task() {}
type SubmitDdlTaskResponse struct { type SubmitDdlTaskResponse struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -356,7 +417,7 @@ type SubmitDdlTaskResponse struct {
func (x *SubmitDdlTaskResponse) Reset() { func (x *SubmitDdlTaskResponse) Reset() {
*x = SubmitDdlTaskResponse{} *x = SubmitDdlTaskResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[4] mi := &file_greptime_v1_meta_ddl_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -369,7 +430,7 @@ func (x *SubmitDdlTaskResponse) String() string {
func (*SubmitDdlTaskResponse) ProtoMessage() {} func (*SubmitDdlTaskResponse) ProtoMessage() {}
func (x *SubmitDdlTaskResponse) ProtoReflect() protoreflect.Message { func (x *SubmitDdlTaskResponse) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[4] mi := &file_greptime_v1_meta_ddl_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -382,7 +443,7 @@ func (x *SubmitDdlTaskResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SubmitDdlTaskResponse.ProtoReflect.Descriptor instead. // Deprecated: Use SubmitDdlTaskResponse.ProtoReflect.Descriptor instead.
func (*SubmitDdlTaskResponse) Descriptor() ([]byte, []int) { func (*SubmitDdlTaskResponse) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{4} return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{5}
} }
func (x *SubmitDdlTaskResponse) GetHeader() *ResponseHeader { func (x *SubmitDdlTaskResponse) GetHeader() *ResponseHeader {
@@ -437,51 +498,62 @@ var file_greptime_v1_meta_ddl_proto_rawDesc = []byte{
0x6b, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x6b, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0a, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0a,
0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0xc1, 0x02, 0x0a, 0x14, 0x53, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x5a, 0x0a, 0x11, 0x54, 0x72,
0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12,
0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x45, 0x0a, 0x0e, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c,
0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61,
0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x11, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74,
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x98, 0x03, 0x0a, 0x14, 0x53, 0x75, 0x62, 0x6d, 0x69,
0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
0x0f, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62,
0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0f, 0x64, 0x72, 0x6f,
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, 0x99, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x01, 0x0a, 0x15, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20,
0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b,
0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61,
0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x74,
0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x2a, 0x23, 0x0a, 0x0b, 0x44, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x11, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65,
0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x61, 0x73,
0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10, 0x01, 0x32, 0x6b, 0x22, 0x99, 0x01, 0x0a, 0x15, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54,
0x6b, 0x0a, 0x07, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x60, 0x0a, 0x0d, 0x53, 0x75, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68,
0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52,
0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68,
0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62,
0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x2a, 0x23, 0x0a,
0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x0b, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06,
0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70,
0x6f, 0x33, 0x10, 0x01, 0x32, 0x6b, 0x0a, 0x07, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x60, 0x0a,
0x0d, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x26,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
0x61, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74,
0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42,
0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -497,40 +569,44 @@ func file_greptime_v1_meta_ddl_proto_rawDescGZIP() []byte {
} }
var file_greptime_v1_meta_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_greptime_v1_meta_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_greptime_v1_meta_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_greptime_v1_meta_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{ var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{
(DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType (DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType
(*CreateTableTask)(nil), // 1: greptime.v1.meta.CreateTableTask (*CreateTableTask)(nil), // 1: greptime.v1.meta.CreateTableTask
(*DropTableTask)(nil), // 2: greptime.v1.meta.DropTableTask (*DropTableTask)(nil), // 2: greptime.v1.meta.DropTableTask
(*AlterTableTask)(nil), // 3: greptime.v1.meta.AlterTableTask (*AlterTableTask)(nil), // 3: greptime.v1.meta.AlterTableTask
(*SubmitDdlTaskRequest)(nil), // 4: greptime.v1.meta.SubmitDdlTaskRequest (*TruncateTableTask)(nil), // 4: greptime.v1.meta.TruncateTableTask
(*SubmitDdlTaskResponse)(nil), // 5: greptime.v1.meta.SubmitDdlTaskResponse (*SubmitDdlTaskRequest)(nil), // 5: greptime.v1.meta.SubmitDdlTaskRequest
(*v1.CreateTableExpr)(nil), // 6: greptime.v1.CreateTableExpr (*SubmitDdlTaskResponse)(nil), // 6: greptime.v1.meta.SubmitDdlTaskResponse
(*Partition)(nil), // 7: greptime.v1.meta.Partition (*v1.CreateTableExpr)(nil), // 7: greptime.v1.CreateTableExpr
(*v1.DropTableExpr)(nil), // 8: greptime.v1.DropTableExpr (*Partition)(nil), // 8: greptime.v1.meta.Partition
(*v1.AlterExpr)(nil), // 9: greptime.v1.AlterExpr (*v1.DropTableExpr)(nil), // 9: greptime.v1.DropTableExpr
(*RequestHeader)(nil), // 10: greptime.v1.meta.RequestHeader (*v1.AlterExpr)(nil), // 10: greptime.v1.AlterExpr
(*ResponseHeader)(nil), // 11: greptime.v1.meta.ResponseHeader (*v1.TruncateTableExpr)(nil), // 11: greptime.v1.TruncateTableExpr
(*TableId)(nil), // 12: greptime.v1.meta.TableId (*RequestHeader)(nil), // 12: greptime.v1.meta.RequestHeader
(*ResponseHeader)(nil), // 13: greptime.v1.meta.ResponseHeader
(*TableId)(nil), // 14: greptime.v1.meta.TableId
} }
var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{ var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{
6, // 0: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr 7, // 0: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr
7, // 1: greptime.v1.meta.CreateTableTask.partitions:type_name -> greptime.v1.meta.Partition 8, // 1: greptime.v1.meta.CreateTableTask.partitions:type_name -> greptime.v1.meta.Partition
8, // 2: greptime.v1.meta.DropTableTask.drop_table:type_name -> greptime.v1.DropTableExpr 9, // 2: greptime.v1.meta.DropTableTask.drop_table:type_name -> greptime.v1.DropTableExpr
9, // 3: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterExpr 10, // 3: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterExpr
10, // 4: greptime.v1.meta.SubmitDdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader 11, // 4: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr
1, // 5: greptime.v1.meta.SubmitDdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask 12, // 5: greptime.v1.meta.SubmitDdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader
2, // 6: greptime.v1.meta.SubmitDdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask 1, // 6: greptime.v1.meta.SubmitDdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
3, // 7: greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask 2, // 7: greptime.v1.meta.SubmitDdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
11, // 8: greptime.v1.meta.SubmitDdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader 3, // 8: greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
12, // 9: greptime.v1.meta.SubmitDdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId 4, // 9: greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
4, // 10: greptime.v1.meta.DdlTask.SubmitDdlTask:input_type -> greptime.v1.meta.SubmitDdlTaskRequest 13, // 10: greptime.v1.meta.SubmitDdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
5, // 11: greptime.v1.meta.DdlTask.SubmitDdlTask:output_type -> greptime.v1.meta.SubmitDdlTaskResponse 14, // 11: greptime.v1.meta.SubmitDdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId
11, // [11:12] is the sub-list for method output_type 5, // 12: greptime.v1.meta.DdlTask.SubmitDdlTask:input_type -> greptime.v1.meta.SubmitDdlTaskRequest
10, // [10:11] is the sub-list for method input_type 6, // 13: greptime.v1.meta.DdlTask.SubmitDdlTask:output_type -> greptime.v1.meta.SubmitDdlTaskResponse
10, // [10:10] is the sub-list for extension type_name 13, // [13:14] is the sub-list for method output_type
10, // [10:10] is the sub-list for extension extendee 12, // [12:13] is the sub-list for method input_type
0, // [0:10] is the sub-list for field type_name 12, // [12:12] is the sub-list for extension type_name
12, // [12:12] is the sub-list for extension extendee
0, // [0:12] is the sub-list for field type_name
} }
func init() { file_greptime_v1_meta_ddl_proto_init() } func init() { file_greptime_v1_meta_ddl_proto_init() }
@@ -578,7 +654,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
} }
} }
file_greptime_v1_meta_ddl_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_meta_ddl_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SubmitDdlTaskRequest); i { switch v := v.(*TruncateTableTask); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -590,6 +666,18 @@ func file_greptime_v1_meta_ddl_proto_init() {
} }
} }
file_greptime_v1_meta_ddl_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_meta_ddl_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SubmitDdlTaskRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_meta_ddl_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SubmitDdlTaskResponse); i { switch v := v.(*SubmitDdlTaskResponse); i {
case 0: case 0:
return &v.state return &v.state
@@ -602,10 +690,11 @@ func file_greptime_v1_meta_ddl_proto_init() {
} }
} }
} }
file_greptime_v1_meta_ddl_proto_msgTypes[3].OneofWrappers = []interface{}{ file_greptime_v1_meta_ddl_proto_msgTypes[4].OneofWrappers = []interface{}{
(*SubmitDdlTaskRequest_CreateTableTask)(nil), (*SubmitDdlTaskRequest_CreateTableTask)(nil),
(*SubmitDdlTaskRequest_DropTableTask)(nil), (*SubmitDdlTaskRequest_DropTableTask)(nil),
(*SubmitDdlTaskRequest_AlterTableTask)(nil), (*SubmitDdlTaskRequest_AlterTableTask)(nil),
(*SubmitDdlTaskRequest_TruncateTableTask)(nil),
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
@@ -613,7 +702,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_meta_ddl_proto_rawDesc, RawDescriptor: file_greptime_v1_meta_ddl_proto_rawDesc,
NumEnums: 1, NumEnums: 1,
NumMessages: 5, NumMessages: 6,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+8
View File
@@ -34,6 +34,7 @@ message DdlRequest {
DropTableExpr drop_table = 4; DropTableExpr drop_table = 4;
FlushTableExpr flush_table = 5; FlushTableExpr flush_table = 5;
CompactTableExpr compact_table = 6; CompactTableExpr compact_table = 6;
TruncateTableExpr truncate_table = 7;
} }
} }
@@ -93,6 +94,13 @@ message CreateDatabaseExpr {
bool create_if_not_exists = 2; bool create_if_not_exists = 2;
} }
message TruncateTableExpr {
string catalog_name = 1;
string schema_name = 2;
string table_name = 3;
TableId table_id = 4;
}
message AddColumns { repeated AddColumn add_columns = 1; } message AddColumns { repeated AddColumn add_columns = 1; }
message DropColumns { repeated DropColumn drop_columns = 1; } message DropColumns { repeated DropColumn drop_columns = 1; }
+5
View File
@@ -47,6 +47,10 @@ message AlterTableTask{
AlterExpr alter_table = 1; AlterExpr alter_table = 1;
} }
message TruncateTableTask {
TruncateTableExpr truncate_table = 1;
}
message SubmitDdlTaskRequest { message SubmitDdlTaskRequest {
RequestHeader header = 1; RequestHeader header = 1;
@@ -54,6 +58,7 @@ message SubmitDdlTaskRequest {
CreateTableTask create_table_task = 2; CreateTableTask create_table_task = 2;
DropTableTask drop_table_task = 3; DropTableTask drop_table_task = 3;
AlterTableTask alter_table_task = 4; AlterTableTask alter_table_task = 4;
TruncateTableTask truncate_table_task = 5;
} }
} }