feat: force drop region (#299)
Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
+128
-101
@@ -221,6 +221,7 @@ PROTOBUF_CONSTEXPR DropRequest::DropRequest(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.region_id_)*/uint64_t{0u}
|
||||
, /*decltype(_impl_.fast_path_)*/false
|
||||
, /*decltype(_impl_.force_)*/false
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct DropRequestDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR DropRequestDefaultTypeInternal()
|
||||
@@ -729,6 +730,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DropRequest, _impl_.region_id_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DropRequest, _impl_.fast_path_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DropRequest, _impl_.force_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse, _has_bits_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -957,31 +959,31 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 121, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
|
||||
{ 134, -1, -1, sizeof(::greptime::v1::region::DropRequests)},
|
||||
{ 141, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
|
||||
{ 149, 157, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
|
||||
{ 159, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
|
||||
{ 169, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
||||
{ 176, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
|
||||
{ 183, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
||||
{ 204, -1, -1, sizeof(::greptime::v1::region::SyncColumns)},
|
||||
{ 211, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
||||
{ 218, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
||||
{ 225, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
||||
{ 233, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
||||
{ 240, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||
{ 247, -1, -1, sizeof(::greptime::v1::region::Regular)},
|
||||
{ 253, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
||||
{ 260, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||
{ 271, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
||||
{ 281, -1, -1, sizeof(::greptime::v1::region::All)},
|
||||
{ 287, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||
{ 295, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
|
||||
{ 304, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
|
||||
{ 311, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
|
||||
{ 319, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
|
||||
{ 329, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
|
||||
{ 336, -1, -1, sizeof(::greptime::v1::region::BuildIndexRequest)},
|
||||
{ 343, -1, -1, sizeof(::greptime::v1::region::FileMetas)},
|
||||
{ 350, -1, -1, sizeof(::greptime::v1::region::ApplyStagingManifestRequest)},
|
||||
{ 150, 158, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
|
||||
{ 160, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
|
||||
{ 170, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
||||
{ 177, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
|
||||
{ 184, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
||||
{ 205, -1, -1, sizeof(::greptime::v1::region::SyncColumns)},
|
||||
{ 212, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
||||
{ 219, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
||||
{ 226, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
||||
{ 234, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
||||
{ 241, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||
{ 248, -1, -1, sizeof(::greptime::v1::region::Regular)},
|
||||
{ 254, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
||||
{ 261, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||
{ 272, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
||||
{ 282, -1, -1, sizeof(::greptime::v1::region::All)},
|
||||
{ 288, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||
{ 296, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
|
||||
{ 305, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
|
||||
{ 312, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
|
||||
{ 320, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
|
||||
{ 330, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
|
||||
{ 337, -1, -1, sizeof(::greptime::v1::region::BuildIndexRequest)},
|
||||
{ 344, -1, -1, sizeof(::greptime::v1::region::FileMetas)},
|
||||
{ 351, -1, -1, sizeof(::greptime::v1::region::ApplyStagingManifestRequest)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -1091,75 +1093,76 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
|
||||
"me.v1.meta.Partition\032.\n\014OptionsEntry\022\013\n\003"
|
||||
"key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"A\n\014DropRequ"
|
||||
"ests\0221\n\010requests\030\001 \003(\0132\037.greptime.v1.reg"
|
||||
"ion.DropRequest\"3\n\013DropRequest\022\021\n\tregion"
|
||||
"_id\030\001 \001(\004\022\021\n\tfast_path\030\002 \001(\010\"\255\001\n\013OpenReq"
|
||||
"uest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022"
|
||||
"\014\n\004path\030\003 \001(\t\022=\n\007options\030\004 \003(\0132,.greptim"
|
||||
"e.v1.region.OpenRequest.OptionsEntry\032.\n\014"
|
||||
"OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
|
||||
":\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001(\004\""
|
||||
"C\n\rAlterRequests\0222\n\010requests\030\001 \003(\0132 .gre"
|
||||
"ptime.v1.region.AlterRequest\"\311\005\n\014AlterRe"
|
||||
"quest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030"
|
||||
"\002 \001(\0132\036.greptime.v1.region.AddColumnsH\000\022"
|
||||
"7\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.regi"
|
||||
"on.DropColumnsH\000\022=\n\023modify_column_types\030"
|
||||
"\005 \001(\0132\036.greptime.v1.ModifyColumnTypesH\000\022"
|
||||
"9\n\021set_table_options\030\006 \001(\0132\034.greptime.v1"
|
||||
".SetTableOptionsH\000\022=\n\023unset_table_option"
|
||||
"s\030\t \001(\0132\036.greptime.v1.UnsetTableOptionsH"
|
||||
"\000\022*\n\tset_index\030\n \001(\0132\025.greptime.v1.SetIn"
|
||||
"dexH\000\022.\n\013unset_index\030\013 \001(\0132\027.greptime.v1"
|
||||
".UnsetIndexH\000\0222\n\rdrop_defaults\030\014 \001(\0132\031.g"
|
||||
"reptime.v1.DropDefaultsH\000\022.\n\013set_indexes"
|
||||
"\030\r \001(\0132\027.greptime.v1.SetIndexesH\000\0222\n\runs"
|
||||
"et_indexes\030\016 \001(\0132\031.greptime.v1.UnsetInde"
|
||||
"xesH\000\0220\n\014set_defaults\030\017 \001(\0132\030.greptime.v"
|
||||
"1.SetDefaultsH\000\0227\n\014sync_columns\030\020 \001(\0132\037."
|
||||
"greptime.v1.region.SyncColumnsH\000\022\026\n\016sche"
|
||||
"ma_version\030\004 \001(\004B\006\n\004kind\"G\n\013SyncColumns\022"
|
||||
"8\n\013column_defs\030\001 \003(\0132#.greptime.v1.regio"
|
||||
"n.RegionColumnDef\"@\n\nAddColumns\0222\n\013add_c"
|
||||
"olumns\030\001 \003(\0132\035.greptime.v1.region.AddCol"
|
||||
"umn\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003(\013"
|
||||
"2\036.greptime.v1.region.DropColumn\"v\n\tAddC"
|
||||
"olumn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1."
|
||||
"region.RegionColumnDef\0220\n\010location\030\003 \001(\013"
|
||||
"2\036.greptime.v1.AddColumnLocation\"\032\n\nDrop"
|
||||
"Column\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\t"
|
||||
"region_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWind"
|
||||
"ow\022\026\n\016window_seconds\030\001 \001(\003\"\256\001\n\016CompactRe"
|
||||
"quest\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 \001("
|
||||
"\0132\033.greptime.v1.region.RegularH\000\0229\n\rstri"
|
||||
"ct_window\030\003 \001(\0132 .greptime.v1.region.Str"
|
||||
"ictWindowH\000\022\023\n\013parallelism\030\004 \001(\rB\t\n\007opti"
|
||||
"ons\"\204\001\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001"
|
||||
"(\004\022&\n\003all\030\002 \001(\0132\027.greptime.v1.region.All"
|
||||
"H\000\022.\n\013time_ranges\030\003 \001(\0132\027.greptime.v1.Ti"
|
||||
"meRangesH\000B\006\n\004kind\"\005\n\003All\"P\n\017RegionColum"
|
||||
"nDef\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.C"
|
||||
"olumnDef\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInser"
|
||||
"tRequest\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_ipc"
|
||||
"\030\002 \001(\0132\025.greptime.v1.ArrowIpcH\000B\006\n\004body\""
|
||||
"1\n\020MitoManifestInfo\022\035\n\025data_manifest_ver"
|
||||
"sion\030\001 \001(\004\"V\n\022MetricManifestInfo\022\035\n\025data"
|
||||
"_manifest_version\030\001 \001(\004\022!\n\031metadata_mani"
|
||||
"fest_version\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tre"
|
||||
"gion_id\030\001 \001(\004\022B\n\022mito_manifest_info\030\002 \001("
|
||||
"\0132$.greptime.v1.region.MitoManifestInfoH"
|
||||
"\000\022F\n\024metric_manifest_info\030\003 \001(\0132&.grepti"
|
||||
"me.v1.region.MetricManifestInfoH\000B\017\n\rman"
|
||||
"ifest_info\")\n\023ListMetadataRequest\022\022\n\nreg"
|
||||
"ion_ids\030\001 \003(\004\"&\n\021BuildIndexRequest\022\021\n\tre"
|
||||
"gion_id\030\001 \001(\004\"\031\n\tFileMetas\022\014\n\004data\030\001 \001(\014"
|
||||
"\"z\n\033ApplyStagingManifestRequest\022\021\n\tregio"
|
||||
"n_id\030\001 \001(\004\022\026\n\016partition_expr\030\002 \001(\t\022\031\n\021ce"
|
||||
"ntral_region_id\030\003 \001(\004\022\025\n\rmanifest_path\030\004"
|
||||
" \001(\t2Y\n\006Region\022O\n\006Handle\022!.greptime.v1.r"
|
||||
"egion.RegionRequest\032\".greptime.v1.region"
|
||||
".RegionResponseB]\n\025io.greptime.v1.region"
|
||||
"B\006ServerZ<github.com/GreptimeTeam/grepti"
|
||||
"me-proto/go/greptime/v1/regionb\006proto3"
|
||||
"ion.DropRequest\"B\n\013DropRequest\022\021\n\tregion"
|
||||
"_id\030\001 \001(\004\022\021\n\tfast_path\030\002 \001(\010\022\r\n\005force\030\003 "
|
||||
"\001(\010\"\255\001\n\013OpenRequest\022\021\n\tregion_id\030\001 \001(\004\022\016"
|
||||
"\n\006engine\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022=\n\007options\030"
|
||||
"\004 \003(\0132,.greptime.v1.region.OpenRequest.O"
|
||||
"ptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t"
|
||||
"\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tr"
|
||||
"egion_id\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010reque"
|
||||
"sts\030\001 \003(\0132 .greptime.v1.region.AlterRequ"
|
||||
"est\"\311\005\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\022"
|
||||
"5\n\013add_columns\030\002 \001(\0132\036.greptime.v1.regio"
|
||||
"n.AddColumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037.g"
|
||||
"reptime.v1.region.DropColumnsH\000\022=\n\023modif"
|
||||
"y_column_types\030\005 \001(\0132\036.greptime.v1.Modif"
|
||||
"yColumnTypesH\000\0229\n\021set_table_options\030\006 \001("
|
||||
"\0132\034.greptime.v1.SetTableOptionsH\000\022=\n\023uns"
|
||||
"et_table_options\030\t \001(\0132\036.greptime.v1.Uns"
|
||||
"etTableOptionsH\000\022*\n\tset_index\030\n \001(\0132\025.gr"
|
||||
"eptime.v1.SetIndexH\000\022.\n\013unset_index\030\013 \001("
|
||||
"\0132\027.greptime.v1.UnsetIndexH\000\0222\n\rdrop_def"
|
||||
"aults\030\014 \001(\0132\031.greptime.v1.DropDefaultsH\000"
|
||||
"\022.\n\013set_indexes\030\r \001(\0132\027.greptime.v1.SetI"
|
||||
"ndexesH\000\0222\n\runset_indexes\030\016 \001(\0132\031.grepti"
|
||||
"me.v1.UnsetIndexesH\000\0220\n\014set_defaults\030\017 \001"
|
||||
"(\0132\030.greptime.v1.SetDefaultsH\000\0227\n\014sync_c"
|
||||
"olumns\030\020 \001(\0132\037.greptime.v1.region.SyncCo"
|
||||
"lumnsH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\""
|
||||
"G\n\013SyncColumns\0228\n\013column_defs\030\001 \003(\0132#.gr"
|
||||
"eptime.v1.region.RegionColumnDef\"@\n\nAddC"
|
||||
"olumns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v"
|
||||
"1.region.AddColumn\"C\n\013DropColumns\0224\n\014dro"
|
||||
"p_columns\030\001 \003(\0132\036.greptime.v1.region.Dro"
|
||||
"pColumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\013"
|
||||
"2#.greptime.v1.region.RegionColumnDef\0220\n"
|
||||
"\010location\030\003 \001(\0132\036.greptime.v1.AddColumnL"
|
||||
"ocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014F"
|
||||
"lushRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regula"
|
||||
"r\"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001("
|
||||
"\003\"\256\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022"
|
||||
".\n\007regular\030\002 \001(\0132\033.greptime.v1.region.Re"
|
||||
"gularH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptim"
|
||||
"e.v1.region.StrictWindowH\000\022\023\n\013parallelis"
|
||||
"m\030\004 \001(\rB\t\n\007options\"\204\001\n\017TruncateRequest\022\021"
|
||||
"\n\tregion_id\030\001 \001(\004\022&\n\003all\030\002 \001(\0132\027.greptim"
|
||||
"e.v1.region.AllH\000\022.\n\013time_ranges\030\003 \001(\0132\027"
|
||||
".greptime.v1.TimeRangesH\000B\006\n\004kind\"\005\n\003All"
|
||||
"\"P\n\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132"
|
||||
"\026.greptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001"
|
||||
"(\r\"Z\n\021BulkInsertRequest\022\021\n\tregion_id\030\001 \001"
|
||||
"(\004\022*\n\tarrow_ipc\030\002 \001(\0132\025.greptime.v1.Arro"
|
||||
"wIpcH\000B\006\n\004body\"1\n\020MitoManifestInfo\022\035\n\025da"
|
||||
"ta_manifest_version\030\001 \001(\004\"V\n\022MetricManif"
|
||||
"estInfo\022\035\n\025data_manifest_version\030\001 \001(\004\022!"
|
||||
"\n\031metadata_manifest_version\030\002 \001(\004\"\275\001\n\013Sy"
|
||||
"ncRequest\022\021\n\tregion_id\030\001 \001(\004\022B\n\022mito_man"
|
||||
"ifest_info\030\002 \001(\0132$.greptime.v1.region.Mi"
|
||||
"toManifestInfoH\000\022F\n\024metric_manifest_info"
|
||||
"\030\003 \001(\0132&.greptime.v1.region.MetricManife"
|
||||
"stInfoH\000B\017\n\rmanifest_info\")\n\023ListMetadat"
|
||||
"aRequest\022\022\n\nregion_ids\030\001 \003(\004\"&\n\021BuildInd"
|
||||
"exRequest\022\021\n\tregion_id\030\001 \001(\004\"\031\n\tFileMeta"
|
||||
"s\022\014\n\004data\030\001 \001(\014\"z\n\033ApplyStagingManifestR"
|
||||
"equest\022\021\n\tregion_id\030\001 \001(\004\022\026\n\016partition_e"
|
||||
"xpr\030\002 \001(\t\022\031\n\021central_region_id\030\003 \001(\004\022\025\n\r"
|
||||
"manifest_path\030\004 \001(\t2Y\n\006Region\022O\n\006Handle\022"
|
||||
"!.greptime.v1.region.RegionRequest\032\".gre"
|
||||
"ptime.v1.region.RegionResponseB]\n\025io.gre"
|
||||
"ptime.v1.regionB\006ServerZ<github.com/Grep"
|
||||
"timeTeam/greptime-proto/go/greptime/v1/r"
|
||||
"egionb\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[4] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
@@ -1169,7 +1172,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2freg
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
|
||||
false, false, 5278, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||
false, false, 5293, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||
"greptime/v1/region/server.proto",
|
||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 4, 40,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
|
||||
@@ -5128,12 +5131,13 @@ DropRequest::DropRequest(const DropRequest& from)
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.region_id_){}
|
||||
, decltype(_impl_.fast_path_){}
|
||||
, decltype(_impl_.force_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
::memcpy(&_impl_.region_id_, &from._impl_.region_id_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.fast_path_) -
|
||||
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.fast_path_));
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.force_) -
|
||||
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.force_));
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.DropRequest)
|
||||
}
|
||||
|
||||
@@ -5144,6 +5148,7 @@ inline void DropRequest::SharedCtor(
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.region_id_){uint64_t{0u}}
|
||||
, decltype(_impl_.fast_path_){false}
|
||||
, decltype(_impl_.force_){false}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
@@ -5172,8 +5177,8 @@ void DropRequest::Clear() {
|
||||
(void) cached_has_bits;
|
||||
|
||||
::memset(&_impl_.region_id_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&_impl_.fast_path_) -
|
||||
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.fast_path_));
|
||||
reinterpret_cast<char*>(&_impl_.force_) -
|
||||
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.force_));
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
@@ -5199,6 +5204,14 @@ const char* DropRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// bool force = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
||||
_impl_.force_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -5240,6 +5253,12 @@ uint8_t* DropRequest::_InternalSerialize(
|
||||
target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_fast_path(), target);
|
||||
}
|
||||
|
||||
// bool force = 3;
|
||||
if (this->_internal_force() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_force(), target);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
@@ -5266,6 +5285,11 @@ size_t DropRequest::ByteSizeLong() const {
|
||||
total_size += 1 + 1;
|
||||
}
|
||||
|
||||
// bool force = 3;
|
||||
if (this->_internal_force() != 0) {
|
||||
total_size += 1 + 1;
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
@@ -5290,6 +5314,9 @@ void DropRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR
|
||||
if (from._internal_fast_path() != 0) {
|
||||
_this->_internal_set_fast_path(from._internal_fast_path());
|
||||
}
|
||||
if (from._internal_force() != 0) {
|
||||
_this->_internal_set_force(from._internal_force());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
@@ -5308,8 +5335,8 @@ void DropRequest::InternalSwap(DropRequest* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(DropRequest, _impl_.fast_path_)
|
||||
+ sizeof(DropRequest::_impl_.fast_path_)
|
||||
PROTOBUF_FIELD_OFFSET(DropRequest, _impl_.force_)
|
||||
+ sizeof(DropRequest::_impl_.force_)
|
||||
- PROTOBUF_FIELD_OFFSET(DropRequest, _impl_.region_id_)>(
|
||||
reinterpret_cast<char*>(&_impl_.region_id_),
|
||||
reinterpret_cast<char*>(&other->_impl_.region_id_));
|
||||
|
||||
@@ -2827,6 +2827,7 @@ class DropRequest final :
|
||||
enum : int {
|
||||
kRegionIdFieldNumber = 1,
|
||||
kFastPathFieldNumber = 2,
|
||||
kForceFieldNumber = 3,
|
||||
};
|
||||
// uint64 region_id = 1;
|
||||
void clear_region_id();
|
||||
@@ -2846,6 +2847,15 @@ class DropRequest final :
|
||||
void _internal_set_fast_path(bool value);
|
||||
public:
|
||||
|
||||
// bool force = 3;
|
||||
void clear_force();
|
||||
bool force() const;
|
||||
void set_force(bool value);
|
||||
private:
|
||||
bool _internal_force() const;
|
||||
void _internal_set_force(bool value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.region.DropRequest)
|
||||
private:
|
||||
class _Internal;
|
||||
@@ -2856,6 +2866,7 @@ class DropRequest final :
|
||||
struct Impl_ {
|
||||
uint64_t region_id_;
|
||||
bool fast_path_;
|
||||
bool force_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
@@ -9848,6 +9859,26 @@ inline void DropRequest::set_fast_path(bool value) {
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.region.DropRequest.fast_path)
|
||||
}
|
||||
|
||||
// bool force = 3;
|
||||
inline void DropRequest::clear_force() {
|
||||
_impl_.force_ = false;
|
||||
}
|
||||
inline bool DropRequest::_internal_force() const {
|
||||
return _impl_.force_;
|
||||
}
|
||||
inline bool DropRequest::force() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.region.DropRequest.force)
|
||||
return _internal_force();
|
||||
}
|
||||
inline void DropRequest::_internal_set_force(bool value) {
|
||||
|
||||
_impl_.force_ = value;
|
||||
}
|
||||
inline void DropRequest::set_force(bool value) {
|
||||
_internal_set_force(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.region.DropRequest.force)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user