feat: add partial_drop to DropRequest (#304)

Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
Weny Xu
2026-01-27 16:41:14 +08:00
committed by GitHub
parent 4a14b140f2
commit d8e09e8487
5 changed files with 552 additions and 384 deletions
+127 -101
View File
@@ -222,6 +222,7 @@ PROTOBUF_CONSTEXPR DropRequest::DropRequest(
/*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_.fast_path_)*/false
, /*decltype(_impl_.force_)*/false
, /*decltype(_impl_.partial_drop_)*/false
, /*decltype(_impl_._cached_size_)*/{}} {}
struct DropRequestDefaultTypeInternal {
PROTOBUF_CONSTEXPR DropRequestDefaultTypeInternal()
@@ -731,6 +732,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
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::DropRequest, _impl_.partial_drop_),
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_
@@ -959,31 +961,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)},
{ 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)},
{ 151, 159, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
{ 161, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
{ 171, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
{ 178, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
{ 185, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
{ 206, -1, -1, sizeof(::greptime::v1::region::SyncColumns)},
{ 213, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
{ 220, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
{ 227, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
{ 235, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
{ 242, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
{ 249, -1, -1, sizeof(::greptime::v1::region::Regular)},
{ 255, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
{ 262, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 273, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
{ 283, -1, -1, sizeof(::greptime::v1::region::All)},
{ 289, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
{ 297, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
{ 306, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
{ 313, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
{ 321, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
{ 331, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
{ 338, -1, -1, sizeof(::greptime::v1::region::BuildIndexRequest)},
{ 345, -1, -1, sizeof(::greptime::v1::region::FileMetas)},
{ 352, -1, -1, sizeof(::greptime::v1::region::ApplyStagingManifestRequest)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -1093,76 +1095,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\"B\n\013DropRequest\022\021\n\tregion"
"ion.DropRequest\"X\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"
"\001(\010\022\024\n\014partial_drop\030\004 \001(\010\"\255\001\n\013OpenReques"
"t\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\014\n\004"
"path\030\003 \001(\t\022=\n\007options\030\004 \003(\0132,.greptime.v"
"1.region.OpenRequest.OptionsEntry\032.\n\014Opt"
"ionsEntry\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\r"
"AlterRequests\0222\n\010requests\030\001 \003(\0132 .grepti"
"me.v1.region.AlterRequest\"\311\005\n\014AlterReque"
"st\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030\002 \001"
"(\0132\036.greptime.v1.region.AddColumnsH\000\0227\n\014"
"drop_columns\030\003 \001(\0132\037.greptime.v1.region."
"DropColumnsH\000\022=\n\023modify_column_types\030\005 \001"
"(\0132\036.greptime.v1.ModifyColumnTypesH\000\0229\n\021"
"set_table_options\030\006 \001(\0132\034.greptime.v1.Se"
"tTableOptionsH\000\022=\n\023unset_table_options\030\t"
" \001(\0132\036.greptime.v1.UnsetTableOptionsH\000\022*"
"\n\tset_index\030\n \001(\0132\025.greptime.v1.SetIndex"
"H\000\022.\n\013unset_index\030\013 \001(\0132\027.greptime.v1.Un"
"setIndexH\000\0222\n\rdrop_defaults\030\014 \001(\0132\031.grep"
"time.v1.DropDefaultsH\000\022.\n\013set_indexes\030\r "
"\001(\0132\027.greptime.v1.SetIndexesH\000\0222\n\runset_"
"indexes\030\016 \001(\0132\031.greptime.v1.UnsetIndexes"
"H\000\0220\n\014set_defaults\030\017 \001(\0132\030.greptime.v1.S"
"etDefaultsH\000\0227\n\014sync_columns\030\020 \001(\0132\037.gre"
"ptime.v1.region.SyncColumnsH\000\022\026\n\016schema_"
"version\030\004 \001(\004B\006\n\004kind\"G\n\013SyncColumns\0228\n\013"
"column_defs\030\001 \003(\0132#.greptime.v1.region.R"
"egionColumnDef\"@\n\nAddColumns\0222\n\013add_colu"
"mns\030\001 \003(\0132\035.greptime.v1.region.AddColumn"
"\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003(\0132\036."
"greptime.v1.region.DropColumn\"v\n\tAddColu"
"mn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.reg"
"ion.RegionColumnDef\0220\n\010location\030\003 \001(\0132\036."
"greptime.v1.AddColumnLocation\"\032\n\nDropCol"
"umn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\treg"
"ion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022"
"\026\n\016window_seconds\030\001 \001(\003\"\256\001\n\016CompactReque"
"st\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033"
".greptime.v1.region.RegularH\000\0229\n\rstrict_"
"window\030\003 \001(\0132 .greptime.v1.region.Strict"
"WindowH\000\022\023\n\013parallelism\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.greptime.v1.region.AllH\000\022"
".\n\013time_ranges\030\003 \001(\0132\027.greptime.v1.TimeR"
"angesH\000B\006\n\004kind\"\005\n\003All\"P\n\017RegionColumnDe"
"f\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colu"
"mnDef\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInsertRe"
"quest\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\020"
"MitoManifestInfo\022\035\n\025data_manifest_versio"
"n\030\001 \001(\004\"V\n\022MetricManifestInfo\022\035\n\025data_ma"
"nifest_version\030\001 \001(\004\022!\n\031metadata_manifes"
"t_version\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregio"
"n_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&.greptime."
"v1.region.MetricManifestInfoH\000B\017\n\rmanife"
"st_info\")\n\023ListMetadataRequest\022\022\n\nregion"
"_ids\030\001 \003(\004\"&\n\021BuildIndexRequest\022\021\n\tregio"
"n_id\030\001 \001(\004\"\031\n\tFileMetas\022\014\n\004data\030\001 \001(\014\"z\n"
"\033ApplyStagingManifestRequest\022\021\n\tregion_i"
"d\030\001 \001(\004\022\026\n\016partition_expr\030\002 \001(\t\022\031\n\021centr"
"al_region_id\030\003 \001(\004\022\025\n\rmanifest_path\030\004 \001("
"\t2Y\n\006Region\022O\n\006Handle\022!.greptime.v1.regi"
"on.RegionRequest\032\".greptime.v1.region.Re"
"gionResponseB]\n\025io.greptime.v1.regionB\006S"
"erverZ<github.com/GreptimeTeam/greptime-"
"proto/go/greptime/v1/regionb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[4] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -1172,7 +1174,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, 5293, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
false, false, 5315, 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,
@@ -5132,12 +5134,13 @@ DropRequest::DropRequest(const DropRequest& from)
decltype(_impl_.region_id_){}
, decltype(_impl_.fast_path_){}
, decltype(_impl_.force_){}
, decltype(_impl_.partial_drop_){}
, /*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_.force_) -
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.force_));
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.partial_drop_) -
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.partial_drop_));
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.DropRequest)
}
@@ -5149,6 +5152,7 @@ inline void DropRequest::SharedCtor(
decltype(_impl_.region_id_){uint64_t{0u}}
, decltype(_impl_.fast_path_){false}
, decltype(_impl_.force_){false}
, decltype(_impl_.partial_drop_){false}
, /*decltype(_impl_._cached_size_)*/{}
};
}
@@ -5177,8 +5181,8 @@ void DropRequest::Clear() {
(void) cached_has_bits;
::memset(&_impl_.region_id_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.force_) -
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.force_));
reinterpret_cast<char*>(&_impl_.partial_drop_) -
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.partial_drop_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -5212,6 +5216,14 @@ const char* DropRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c
} else
goto handle_unusual;
continue;
// bool partial_drop = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
_impl_.partial_drop_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -5259,6 +5271,12 @@ uint8_t* DropRequest::_InternalSerialize(
target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_force(), target);
}
// bool partial_drop = 4;
if (this->_internal_partial_drop() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_partial_drop(), 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);
@@ -5290,6 +5308,11 @@ size_t DropRequest::ByteSizeLong() const {
total_size += 1 + 1;
}
// bool partial_drop = 4;
if (this->_internal_partial_drop() != 0) {
total_size += 1 + 1;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
@@ -5317,6 +5340,9 @@ void DropRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR
if (from._internal_force() != 0) {
_this->_internal_set_force(from._internal_force());
}
if (from._internal_partial_drop() != 0) {
_this->_internal_set_partial_drop(from._internal_partial_drop());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -5335,8 +5361,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_.force_)
+ sizeof(DropRequest::_impl_.force_)
PROTOBUF_FIELD_OFFSET(DropRequest, _impl_.partial_drop_)
+ sizeof(DropRequest::_impl_.partial_drop_)
- PROTOBUF_FIELD_OFFSET(DropRequest, _impl_.region_id_)>(
reinterpret_cast<char*>(&_impl_.region_id_),
reinterpret_cast<char*>(&other->_impl_.region_id_));
+31
View File
@@ -2828,6 +2828,7 @@ class DropRequest final :
kRegionIdFieldNumber = 1,
kFastPathFieldNumber = 2,
kForceFieldNumber = 3,
kPartialDropFieldNumber = 4,
};
// uint64 region_id = 1;
void clear_region_id();
@@ -2856,6 +2857,15 @@ class DropRequest final :
void _internal_set_force(bool value);
public:
// bool partial_drop = 4;
void clear_partial_drop();
bool partial_drop() const;
void set_partial_drop(bool value);
private:
bool _internal_partial_drop() const;
void _internal_set_partial_drop(bool value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.region.DropRequest)
private:
class _Internal;
@@ -2867,6 +2877,7 @@ class DropRequest final :
uint64_t region_id_;
bool fast_path_;
bool force_;
bool partial_drop_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
@@ -9879,6 +9890,26 @@ inline void DropRequest::set_force(bool value) {
// @@protoc_insertion_point(field_set:greptime.v1.region.DropRequest.force)
}
// bool partial_drop = 4;
inline void DropRequest::clear_partial_drop() {
_impl_.partial_drop_ = false;
}
inline bool DropRequest::_internal_partial_drop() const {
return _impl_.partial_drop_;
}
inline bool DropRequest::partial_drop() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.DropRequest.partial_drop)
return _internal_partial_drop();
}
inline void DropRequest::_internal_set_partial_drop(bool value) {
_impl_.partial_drop_ = value;
}
inline void DropRequest::set_partial_drop(bool value) {
_internal_set_partial_drop(value);
// @@protoc_insertion_point(field_set:greptime.v1.region.DropRequest.partial_drop)
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------