refactor: rename PartitionExprVersion (#309)

Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
Weny Xu
2026-02-10 17:16:46 +08:00
committed by GitHub
parent b9452e3411
commit 030f1e48ab
15 changed files with 972 additions and 972 deletions
+99 -99
View File
@@ -120,7 +120,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
PROTOBUF_CONSTEXPR InsertRequest::InsertRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.rows_)*/nullptr
, /*decltype(_impl_.partition_rule_version_)*/nullptr
, /*decltype(_impl_.partition_expr_version_)*/nullptr
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct InsertRequestDefaultTypeInternal {
@@ -135,7 +135,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
PROTOBUF_CONSTEXPR DeleteRequest::DeleteRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.rows_)*/nullptr
, /*decltype(_impl_.partition_rule_version_)*/nullptr
, /*decltype(_impl_.partition_expr_version_)*/nullptr
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct DeleteRequestDefaultTypeInternal {
@@ -465,7 +465,7 @@ struct RegionColumnDefDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegionColumnDefDefaultTypeInternal _RegionColumnDef_default_instance_;
PROTOBUF_CONSTEXPR BulkInsertRequest::BulkInsertRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.partition_rule_version_)*/nullptr
/*decltype(_impl_.partition_expr_version_)*/nullptr
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_.body_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
@@ -672,7 +672,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::InsertRequest, _impl_.region_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::InsertRequest, _impl_.rows_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::InsertRequest, _impl_.partition_rule_version_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::InsertRequest, _impl_.partition_expr_version_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -681,7 +681,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _impl_.region_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _impl_.rows_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _impl_.partition_rule_version_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _impl_.partition_expr_version_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -892,7 +892,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::BulkInsertRequest, _impl_.region_id_),
::_pbi::kInvalidFieldOffsetTag,
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::BulkInsertRequest, _impl_.partition_rule_version_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::BulkInsertRequest, _impl_.partition_expr_version_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::BulkInsertRequest, _impl_.body_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::MitoManifestInfo, _internal_metadata_),
@@ -1086,11 +1086,11 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
"uests\030\001 \003(\0132!.greptime.v1.region.DeleteR"
"equest\"\206\001\n\rInsertRequest\022\021\n\tregion_id\030\001 "
"\001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\022A\n\026"
"partition_rule_version\030\003 \001(\0132!.greptime."
"v1.PartitionRuleVersion\"\206\001\n\rDeleteReques"
"partition_expr_version\030\003 \001(\0132!.greptime."
"v1.PartitionExprVersion\"\206\001\n\rDeleteReques"
"t\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.gre"
"ptime.v1.Rows\022A\n\026partition_rule_version\030"
"\003 \001(\0132!.greptime.v1.PartitionRuleVersion"
"ptime.v1.Rows\022A\n\026partition_expr_version\030"
"\003 \001(\0132!.greptime.v1.PartitionExprVersion"
"\"h\n\014QueryRequest\0227\n\006header\030\001 \001(\0132\'.grept"
"ime.v1.region.RegionRequestHeader\022\021\n\treg"
"ion_id\030\002 \001(\004\022\014\n\004plan\030\003 \001(\014\"E\n\016CreateRequ"
@@ -1155,8 +1155,8 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
"greptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r"
"\"\235\001\n\021BulkInsertRequest\022\021\n\tregion_id\030\001 \001("
"\004\022*\n\tarrow_ipc\030\002 \001(\0132\025.greptime.v1.Arrow"
"IpcH\000\022A\n\026partition_rule_version\030\003 \001(\0132!."
"greptime.v1.PartitionRuleVersionB\006\n\004body"
"IpcH\000\022A\n\026partition_expr_version\030\003 \001(\0132!."
"greptime.v1.PartitionExprVersionB\006\n\004body"
"\"1\n\020MitoManifestInfo\022\035\n\025data_manifest_ve"
"rsion\030\001 \001(\004\"V\n\022MetricManifestInfo\022\035\n\025dat"
"a_manifest_version\030\001 \001(\004\022!\n\031metadata_man"
@@ -3540,16 +3540,16 @@ void DeleteRequests::InternalSwap(DeleteRequests* other) {
class InsertRequest::_Internal {
public:
static const ::greptime::v1::Rows& rows(const InsertRequest* msg);
static const ::greptime::v1::PartitionRuleVersion& partition_rule_version(const InsertRequest* msg);
static const ::greptime::v1::PartitionExprVersion& partition_expr_version(const InsertRequest* msg);
};
const ::greptime::v1::Rows&
InsertRequest::_Internal::rows(const InsertRequest* msg) {
return *msg->_impl_.rows_;
}
const ::greptime::v1::PartitionRuleVersion&
InsertRequest::_Internal::partition_rule_version(const InsertRequest* msg) {
return *msg->_impl_.partition_rule_version_;
const ::greptime::v1::PartitionExprVersion&
InsertRequest::_Internal::partition_expr_version(const InsertRequest* msg) {
return *msg->_impl_.partition_expr_version_;
}
void InsertRequest::clear_rows() {
if (GetArenaForAllocation() == nullptr && _impl_.rows_ != nullptr) {
@@ -3557,11 +3557,11 @@ void InsertRequest::clear_rows() {
}
_impl_.rows_ = nullptr;
}
void InsertRequest::clear_partition_rule_version() {
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
void InsertRequest::clear_partition_expr_version() {
if (GetArenaForAllocation() == nullptr && _impl_.partition_expr_version_ != nullptr) {
delete _impl_.partition_expr_version_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.partition_expr_version_ = nullptr;
}
InsertRequest::InsertRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
@@ -3574,7 +3574,7 @@ InsertRequest::InsertRequest(const InsertRequest& from)
InsertRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.rows_){nullptr}
, decltype(_impl_.partition_rule_version_){nullptr}
, decltype(_impl_.partition_expr_version_){nullptr}
, decltype(_impl_.region_id_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -3582,8 +3582,8 @@ InsertRequest::InsertRequest(const InsertRequest& from)
if (from._internal_has_rows()) {
_this->_impl_.rows_ = new ::greptime::v1::Rows(*from._impl_.rows_);
}
if (from._internal_has_partition_rule_version()) {
_this->_impl_.partition_rule_version_ = new ::greptime::v1::PartitionRuleVersion(*from._impl_.partition_rule_version_);
if (from._internal_has_partition_expr_version()) {
_this->_impl_.partition_expr_version_ = new ::greptime::v1::PartitionExprVersion(*from._impl_.partition_expr_version_);
}
_this->_impl_.region_id_ = from._impl_.region_id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.InsertRequest)
@@ -3595,7 +3595,7 @@ inline void InsertRequest::SharedCtor(
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.rows_){nullptr}
, decltype(_impl_.partition_rule_version_){nullptr}
, decltype(_impl_.partition_expr_version_){nullptr}
, decltype(_impl_.region_id_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
@@ -3613,7 +3613,7 @@ InsertRequest::~InsertRequest() {
inline void InsertRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.rows_;
if (this != internal_default_instance()) delete _impl_.partition_rule_version_;
if (this != internal_default_instance()) delete _impl_.partition_expr_version_;
}
void InsertRequest::SetCachedSize(int size) const {
@@ -3630,10 +3630,10 @@ void InsertRequest::Clear() {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
if (GetArenaForAllocation() == nullptr && _impl_.partition_expr_version_ != nullptr) {
delete _impl_.partition_expr_version_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.partition_expr_version_ = nullptr;
_impl_.region_id_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3660,10 +3660,10 @@ const char* InsertRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_partition_rule_version(), ptr);
ptr = ctx->ParseMessage(_internal_mutable_partition_expr_version(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
@@ -3710,11 +3710,11 @@ uint8_t* InsertRequest::_InternalSerialize(
_Internal::rows(this).GetCachedSize(), target, stream);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
if (this->_internal_has_partition_expr_version()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::partition_rule_version(this),
_Internal::partition_rule_version(this).GetCachedSize(), target, stream);
InternalWriteMessage(3, _Internal::partition_expr_version(this),
_Internal::partition_expr_version(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -3740,11 +3740,11 @@ size_t InsertRequest::ByteSizeLong() const {
*_impl_.rows_);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
if (this->_internal_has_partition_expr_version()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.partition_rule_version_);
*_impl_.partition_expr_version_);
}
// uint64 region_id = 1;
@@ -3774,9 +3774,9 @@ void InsertRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
_this->_internal_mutable_rows()->::greptime::v1::Rows::MergeFrom(
from._internal_rows());
}
if (from._internal_has_partition_rule_version()) {
_this->_internal_mutable_partition_rule_version()->::greptime::v1::PartitionRuleVersion::MergeFrom(
from._internal_partition_rule_version());
if (from._internal_has_partition_expr_version()) {
_this->_internal_mutable_partition_expr_version()->::greptime::v1::PartitionExprVersion::MergeFrom(
from._internal_partition_expr_version());
}
if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
@@ -3817,16 +3817,16 @@ void InsertRequest::InternalSwap(InsertRequest* other) {
class DeleteRequest::_Internal {
public:
static const ::greptime::v1::Rows& rows(const DeleteRequest* msg);
static const ::greptime::v1::PartitionRuleVersion& partition_rule_version(const DeleteRequest* msg);
static const ::greptime::v1::PartitionExprVersion& partition_expr_version(const DeleteRequest* msg);
};
const ::greptime::v1::Rows&
DeleteRequest::_Internal::rows(const DeleteRequest* msg) {
return *msg->_impl_.rows_;
}
const ::greptime::v1::PartitionRuleVersion&
DeleteRequest::_Internal::partition_rule_version(const DeleteRequest* msg) {
return *msg->_impl_.partition_rule_version_;
const ::greptime::v1::PartitionExprVersion&
DeleteRequest::_Internal::partition_expr_version(const DeleteRequest* msg) {
return *msg->_impl_.partition_expr_version_;
}
void DeleteRequest::clear_rows() {
if (GetArenaForAllocation() == nullptr && _impl_.rows_ != nullptr) {
@@ -3834,11 +3834,11 @@ void DeleteRequest::clear_rows() {
}
_impl_.rows_ = nullptr;
}
void DeleteRequest::clear_partition_rule_version() {
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
void DeleteRequest::clear_partition_expr_version() {
if (GetArenaForAllocation() == nullptr && _impl_.partition_expr_version_ != nullptr) {
delete _impl_.partition_expr_version_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.partition_expr_version_ = nullptr;
}
DeleteRequest::DeleteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
@@ -3851,7 +3851,7 @@ DeleteRequest::DeleteRequest(const DeleteRequest& from)
DeleteRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.rows_){nullptr}
, decltype(_impl_.partition_rule_version_){nullptr}
, decltype(_impl_.partition_expr_version_){nullptr}
, decltype(_impl_.region_id_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -3859,8 +3859,8 @@ DeleteRequest::DeleteRequest(const DeleteRequest& from)
if (from._internal_has_rows()) {
_this->_impl_.rows_ = new ::greptime::v1::Rows(*from._impl_.rows_);
}
if (from._internal_has_partition_rule_version()) {
_this->_impl_.partition_rule_version_ = new ::greptime::v1::PartitionRuleVersion(*from._impl_.partition_rule_version_);
if (from._internal_has_partition_expr_version()) {
_this->_impl_.partition_expr_version_ = new ::greptime::v1::PartitionExprVersion(*from._impl_.partition_expr_version_);
}
_this->_impl_.region_id_ = from._impl_.region_id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.DeleteRequest)
@@ -3872,7 +3872,7 @@ inline void DeleteRequest::SharedCtor(
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.rows_){nullptr}
, decltype(_impl_.partition_rule_version_){nullptr}
, decltype(_impl_.partition_expr_version_){nullptr}
, decltype(_impl_.region_id_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
@@ -3890,7 +3890,7 @@ DeleteRequest::~DeleteRequest() {
inline void DeleteRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.rows_;
if (this != internal_default_instance()) delete _impl_.partition_rule_version_;
if (this != internal_default_instance()) delete _impl_.partition_expr_version_;
}
void DeleteRequest::SetCachedSize(int size) const {
@@ -3907,10 +3907,10 @@ void DeleteRequest::Clear() {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
if (GetArenaForAllocation() == nullptr && _impl_.partition_expr_version_ != nullptr) {
delete _impl_.partition_expr_version_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.partition_expr_version_ = nullptr;
_impl_.region_id_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3937,10 +3937,10 @@ const char* DeleteRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_partition_rule_version(), ptr);
ptr = ctx->ParseMessage(_internal_mutable_partition_expr_version(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
@@ -3987,11 +3987,11 @@ uint8_t* DeleteRequest::_InternalSerialize(
_Internal::rows(this).GetCachedSize(), target, stream);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
if (this->_internal_has_partition_expr_version()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::partition_rule_version(this),
_Internal::partition_rule_version(this).GetCachedSize(), target, stream);
InternalWriteMessage(3, _Internal::partition_expr_version(this),
_Internal::partition_expr_version(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -4017,11 +4017,11 @@ size_t DeleteRequest::ByteSizeLong() const {
*_impl_.rows_);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
if (this->_internal_has_partition_expr_version()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.partition_rule_version_);
*_impl_.partition_expr_version_);
}
// uint64 region_id = 1;
@@ -4051,9 +4051,9 @@ void DeleteRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
_this->_internal_mutable_rows()->::greptime::v1::Rows::MergeFrom(
from._internal_rows());
}
if (from._internal_has_partition_rule_version()) {
_this->_internal_mutable_partition_rule_version()->::greptime::v1::PartitionRuleVersion::MergeFrom(
from._internal_partition_rule_version());
if (from._internal_has_partition_expr_version()) {
_this->_internal_mutable_partition_expr_version()->::greptime::v1::PartitionExprVersion::MergeFrom(
from._internal_partition_expr_version());
}
if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
@@ -9610,16 +9610,16 @@ void RegionColumnDef::InternalSwap(RegionColumnDef* other) {
class BulkInsertRequest::_Internal {
public:
static const ::greptime::v1::ArrowIpc& arrow_ipc(const BulkInsertRequest* msg);
static const ::greptime::v1::PartitionRuleVersion& partition_rule_version(const BulkInsertRequest* msg);
static const ::greptime::v1::PartitionExprVersion& partition_expr_version(const BulkInsertRequest* msg);
};
const ::greptime::v1::ArrowIpc&
BulkInsertRequest::_Internal::arrow_ipc(const BulkInsertRequest* msg) {
return *msg->_impl_.body_.arrow_ipc_;
}
const ::greptime::v1::PartitionRuleVersion&
BulkInsertRequest::_Internal::partition_rule_version(const BulkInsertRequest* msg) {
return *msg->_impl_.partition_rule_version_;
const ::greptime::v1::PartitionExprVersion&
BulkInsertRequest::_Internal::partition_expr_version(const BulkInsertRequest* msg) {
return *msg->_impl_.partition_expr_version_;
}
void BulkInsertRequest::set_allocated_arrow_ipc(::greptime::v1::ArrowIpc* arrow_ipc) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
@@ -9645,11 +9645,11 @@ void BulkInsertRequest::clear_arrow_ipc() {
clear_has_body();
}
}
void BulkInsertRequest::clear_partition_rule_version() {
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
void BulkInsertRequest::clear_partition_expr_version() {
if (GetArenaForAllocation() == nullptr && _impl_.partition_expr_version_ != nullptr) {
delete _impl_.partition_expr_version_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.partition_expr_version_ = nullptr;
}
BulkInsertRequest::BulkInsertRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
@@ -9661,15 +9661,15 @@ BulkInsertRequest::BulkInsertRequest(const BulkInsertRequest& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
BulkInsertRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.partition_rule_version_){nullptr}
decltype(_impl_.partition_expr_version_){nullptr}
, decltype(_impl_.region_id_){}
, decltype(_impl_.body_){}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
if (from._internal_has_partition_rule_version()) {
_this->_impl_.partition_rule_version_ = new ::greptime::v1::PartitionRuleVersion(*from._impl_.partition_rule_version_);
if (from._internal_has_partition_expr_version()) {
_this->_impl_.partition_expr_version_ = new ::greptime::v1::PartitionExprVersion(*from._impl_.partition_expr_version_);
}
_this->_impl_.region_id_ = from._impl_.region_id_;
clear_has_body();
@@ -9691,7 +9691,7 @@ inline void BulkInsertRequest::SharedCtor(
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.partition_rule_version_){nullptr}
decltype(_impl_.partition_expr_version_){nullptr}
, decltype(_impl_.region_id_){uint64_t{0u}}
, decltype(_impl_.body_){}
, /*decltype(_impl_._cached_size_)*/{}
@@ -9711,7 +9711,7 @@ BulkInsertRequest::~BulkInsertRequest() {
inline void BulkInsertRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.partition_rule_version_;
if (this != internal_default_instance()) delete _impl_.partition_expr_version_;
if (has_body()) {
clear_body();
}
@@ -9744,10 +9744,10 @@ void BulkInsertRequest::Clear() {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
if (GetArenaForAllocation() == nullptr && _impl_.partition_expr_version_ != nullptr) {
delete _impl_.partition_expr_version_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.partition_expr_version_ = nullptr;
_impl_.region_id_ = uint64_t{0u};
clear_body();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
@@ -9775,10 +9775,10 @@ const char* BulkInsertRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont
} else
goto handle_unusual;
continue;
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_partition_rule_version(), ptr);
ptr = ctx->ParseMessage(_internal_mutable_partition_expr_version(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
@@ -9825,11 +9825,11 @@ uint8_t* BulkInsertRequest::_InternalSerialize(
_Internal::arrow_ipc(this).GetCachedSize(), target, stream);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
if (this->_internal_has_partition_expr_version()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::partition_rule_version(this),
_Internal::partition_rule_version(this).GetCachedSize(), target, stream);
InternalWriteMessage(3, _Internal::partition_expr_version(this),
_Internal::partition_expr_version(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -9848,11 +9848,11 @@ size_t BulkInsertRequest::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
if (this->_internal_has_partition_expr_version()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.partition_rule_version_);
*_impl_.partition_expr_version_);
}
// uint64 region_id = 1;
@@ -9890,9 +9890,9 @@ void BulkInsertRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_has_partition_rule_version()) {
_this->_internal_mutable_partition_rule_version()->::greptime::v1::PartitionRuleVersion::MergeFrom(
from._internal_partition_rule_version());
if (from._internal_has_partition_expr_version()) {
_this->_internal_mutable_partition_expr_version()->::greptime::v1::PartitionExprVersion::MergeFrom(
from._internal_partition_expr_version());
}
if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
@@ -9927,9 +9927,9 @@ void BulkInsertRequest::InternalSwap(BulkInsertRequest* other) {
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(BulkInsertRequest, _impl_.region_id_)
+ sizeof(BulkInsertRequest::_impl_.region_id_)
- PROTOBUF_FIELD_OFFSET(BulkInsertRequest, _impl_.partition_rule_version_)>(
reinterpret_cast<char*>(&_impl_.partition_rule_version_),
reinterpret_cast<char*>(&other->_impl_.partition_rule_version_));
- PROTOBUF_FIELD_OFFSET(BulkInsertRequest, _impl_.partition_expr_version_)>(
reinterpret_cast<char*>(&_impl_.partition_expr_version_),
reinterpret_cast<char*>(&other->_impl_.partition_expr_version_));
swap(_impl_.body_, other->_impl_.body_);
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}
+168 -168
View File
@@ -1693,7 +1693,7 @@ class InsertRequest final :
enum : int {
kRowsFieldNumber = 2,
kPartitionRuleVersionFieldNumber = 3,
kPartitionExprVersionFieldNumber = 3,
kRegionIdFieldNumber = 1,
};
// .greptime.v1.Rows rows = 2;
@@ -1714,23 +1714,23 @@ class InsertRequest final :
::greptime::v1::Rows* rows);
::greptime::v1::Rows* unsafe_arena_release_rows();
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
bool has_partition_rule_version() const;
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
bool has_partition_expr_version() const;
private:
bool _internal_has_partition_rule_version() const;
bool _internal_has_partition_expr_version() const;
public:
void clear_partition_rule_version();
const ::greptime::v1::PartitionRuleVersion& partition_rule_version() const;
PROTOBUF_NODISCARD ::greptime::v1::PartitionRuleVersion* release_partition_rule_version();
::greptime::v1::PartitionRuleVersion* mutable_partition_rule_version();
void set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version);
void clear_partition_expr_version();
const ::greptime::v1::PartitionExprVersion& partition_expr_version() const;
PROTOBUF_NODISCARD ::greptime::v1::PartitionExprVersion* release_partition_expr_version();
::greptime::v1::PartitionExprVersion* mutable_partition_expr_version();
void set_allocated_partition_expr_version(::greptime::v1::PartitionExprVersion* partition_expr_version);
private:
const ::greptime::v1::PartitionRuleVersion& _internal_partition_rule_version() const;
::greptime::v1::PartitionRuleVersion* _internal_mutable_partition_rule_version();
const ::greptime::v1::PartitionExprVersion& _internal_partition_expr_version() const;
::greptime::v1::PartitionExprVersion* _internal_mutable_partition_expr_version();
public:
void unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version);
::greptime::v1::PartitionRuleVersion* unsafe_arena_release_partition_rule_version();
void unsafe_arena_set_allocated_partition_expr_version(
::greptime::v1::PartitionExprVersion* partition_expr_version);
::greptime::v1::PartitionExprVersion* unsafe_arena_release_partition_expr_version();
// uint64 region_id = 1;
void clear_region_id();
@@ -1750,7 +1750,7 @@ class InsertRequest final :
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::Rows* rows_;
::greptime::v1::PartitionRuleVersion* partition_rule_version_;
::greptime::v1::PartitionExprVersion* partition_expr_version_;
uint64_t region_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
@@ -1881,7 +1881,7 @@ class DeleteRequest final :
enum : int {
kRowsFieldNumber = 2,
kPartitionRuleVersionFieldNumber = 3,
kPartitionExprVersionFieldNumber = 3,
kRegionIdFieldNumber = 1,
};
// .greptime.v1.Rows rows = 2;
@@ -1902,23 +1902,23 @@ class DeleteRequest final :
::greptime::v1::Rows* rows);
::greptime::v1::Rows* unsafe_arena_release_rows();
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
bool has_partition_rule_version() const;
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
bool has_partition_expr_version() const;
private:
bool _internal_has_partition_rule_version() const;
bool _internal_has_partition_expr_version() const;
public:
void clear_partition_rule_version();
const ::greptime::v1::PartitionRuleVersion& partition_rule_version() const;
PROTOBUF_NODISCARD ::greptime::v1::PartitionRuleVersion* release_partition_rule_version();
::greptime::v1::PartitionRuleVersion* mutable_partition_rule_version();
void set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version);
void clear_partition_expr_version();
const ::greptime::v1::PartitionExprVersion& partition_expr_version() const;
PROTOBUF_NODISCARD ::greptime::v1::PartitionExprVersion* release_partition_expr_version();
::greptime::v1::PartitionExprVersion* mutable_partition_expr_version();
void set_allocated_partition_expr_version(::greptime::v1::PartitionExprVersion* partition_expr_version);
private:
const ::greptime::v1::PartitionRuleVersion& _internal_partition_rule_version() const;
::greptime::v1::PartitionRuleVersion* _internal_mutable_partition_rule_version();
const ::greptime::v1::PartitionExprVersion& _internal_partition_expr_version() const;
::greptime::v1::PartitionExprVersion* _internal_mutable_partition_expr_version();
public:
void unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version);
::greptime::v1::PartitionRuleVersion* unsafe_arena_release_partition_rule_version();
void unsafe_arena_set_allocated_partition_expr_version(
::greptime::v1::PartitionExprVersion* partition_expr_version);
::greptime::v1::PartitionExprVersion* unsafe_arena_release_partition_expr_version();
// uint64 region_id = 1;
void clear_region_id();
@@ -1938,7 +1938,7 @@ class DeleteRequest final :
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::Rows* rows_;
::greptime::v1::PartitionRuleVersion* partition_rule_version_;
::greptime::v1::PartitionExprVersion* partition_expr_version_;
uint64_t region_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
@@ -5954,27 +5954,27 @@ class BulkInsertRequest final :
// accessors -------------------------------------------------------
enum : int {
kPartitionRuleVersionFieldNumber = 3,
kPartitionExprVersionFieldNumber = 3,
kRegionIdFieldNumber = 1,
kArrowIpcFieldNumber = 2,
};
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
bool has_partition_rule_version() const;
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
bool has_partition_expr_version() const;
private:
bool _internal_has_partition_rule_version() const;
bool _internal_has_partition_expr_version() const;
public:
void clear_partition_rule_version();
const ::greptime::v1::PartitionRuleVersion& partition_rule_version() const;
PROTOBUF_NODISCARD ::greptime::v1::PartitionRuleVersion* release_partition_rule_version();
::greptime::v1::PartitionRuleVersion* mutable_partition_rule_version();
void set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version);
void clear_partition_expr_version();
const ::greptime::v1::PartitionExprVersion& partition_expr_version() const;
PROTOBUF_NODISCARD ::greptime::v1::PartitionExprVersion* release_partition_expr_version();
::greptime::v1::PartitionExprVersion* mutable_partition_expr_version();
void set_allocated_partition_expr_version(::greptime::v1::PartitionExprVersion* partition_expr_version);
private:
const ::greptime::v1::PartitionRuleVersion& _internal_partition_rule_version() const;
::greptime::v1::PartitionRuleVersion* _internal_mutable_partition_rule_version();
const ::greptime::v1::PartitionExprVersion& _internal_partition_expr_version() const;
::greptime::v1::PartitionExprVersion* _internal_mutable_partition_expr_version();
public:
void unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version);
::greptime::v1::PartitionRuleVersion* unsafe_arena_release_partition_rule_version();
void unsafe_arena_set_allocated_partition_expr_version(
::greptime::v1::PartitionExprVersion* partition_expr_version);
::greptime::v1::PartitionExprVersion* unsafe_arena_release_partition_expr_version();
// uint64 region_id = 1;
void clear_region_id();
@@ -6017,7 +6017,7 @@ class BulkInsertRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::PartitionRuleVersion* partition_rule_version_;
::greptime::v1::PartitionExprVersion* partition_expr_version_;
uint64_t region_id_;
union BodyUnion {
constexpr BodyUnion() : _constinit_{} {}
@@ -9198,39 +9198,39 @@ inline void InsertRequest::set_allocated_rows(::greptime::v1::Rows* rows) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.InsertRequest.rows)
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
inline bool InsertRequest::_internal_has_partition_rule_version() const {
return this != internal_default_instance() && _impl_.partition_rule_version_ != nullptr;
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
inline bool InsertRequest::_internal_has_partition_expr_version() const {
return this != internal_default_instance() && _impl_.partition_expr_version_ != nullptr;
}
inline bool InsertRequest::has_partition_rule_version() const {
return _internal_has_partition_rule_version();
inline bool InsertRequest::has_partition_expr_version() const {
return _internal_has_partition_expr_version();
}
inline const ::greptime::v1::PartitionRuleVersion& InsertRequest::_internal_partition_rule_version() const {
const ::greptime::v1::PartitionRuleVersion* p = _impl_.partition_rule_version_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::PartitionRuleVersion&>(
::greptime::v1::_PartitionRuleVersion_default_instance_);
inline const ::greptime::v1::PartitionExprVersion& InsertRequest::_internal_partition_expr_version() const {
const ::greptime::v1::PartitionExprVersion* p = _impl_.partition_expr_version_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::PartitionExprVersion&>(
::greptime::v1::_PartitionExprVersion_default_instance_);
}
inline const ::greptime::v1::PartitionRuleVersion& InsertRequest::partition_rule_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.InsertRequest.partition_rule_version)
return _internal_partition_rule_version();
inline const ::greptime::v1::PartitionExprVersion& InsertRequest::partition_expr_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.InsertRequest.partition_expr_version)
return _internal_partition_expr_version();
}
inline void InsertRequest::unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version) {
inline void InsertRequest::unsafe_arena_set_allocated_partition_expr_version(
::greptime::v1::PartitionExprVersion* partition_expr_version) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_expr_version_);
}
_impl_.partition_rule_version_ = partition_rule_version;
if (partition_rule_version) {
_impl_.partition_expr_version_ = partition_expr_version;
if (partition_expr_version) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.InsertRequest.partition_rule_version)
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.InsertRequest.partition_expr_version)
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::release_partition_rule_version() {
inline ::greptime::v1::PartitionExprVersion* InsertRequest::release_partition_expr_version() {
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
::greptime::v1::PartitionExprVersion* temp = _impl_.partition_expr_version_;
_impl_.partition_expr_version_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -9242,45 +9242,45 @@ inline ::greptime::v1::PartitionRuleVersion* InsertRequest::release_partition_ru
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::unsafe_arena_release_partition_rule_version() {
// @@protoc_insertion_point(field_release:greptime.v1.region.InsertRequest.partition_rule_version)
inline ::greptime::v1::PartitionExprVersion* InsertRequest::unsafe_arena_release_partition_expr_version() {
// @@protoc_insertion_point(field_release:greptime.v1.region.InsertRequest.partition_expr_version)
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
::greptime::v1::PartitionExprVersion* temp = _impl_.partition_expr_version_;
_impl_.partition_expr_version_ = nullptr;
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::_internal_mutable_partition_rule_version() {
inline ::greptime::v1::PartitionExprVersion* InsertRequest::_internal_mutable_partition_expr_version() {
if (_impl_.partition_rule_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionRuleVersion>(GetArenaForAllocation());
_impl_.partition_rule_version_ = p;
if (_impl_.partition_expr_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionExprVersion>(GetArenaForAllocation());
_impl_.partition_expr_version_ = p;
}
return _impl_.partition_rule_version_;
return _impl_.partition_expr_version_;
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::mutable_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* _msg = _internal_mutable_partition_rule_version();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.InsertRequest.partition_rule_version)
inline ::greptime::v1::PartitionExprVersion* InsertRequest::mutable_partition_expr_version() {
::greptime::v1::PartitionExprVersion* _msg = _internal_mutable_partition_expr_version();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.InsertRequest.partition_expr_version)
return _msg;
}
inline void InsertRequest::set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version) {
inline void InsertRequest::set_allocated_partition_expr_version(::greptime::v1::PartitionExprVersion* partition_expr_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_expr_version_);
}
if (partition_rule_version) {
if (partition_expr_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_rule_version));
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_expr_version));
if (message_arena != submessage_arena) {
partition_rule_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_rule_version, submessage_arena);
partition_expr_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_expr_version, submessage_arena);
}
} else {
}
_impl_.partition_rule_version_ = partition_rule_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.InsertRequest.partition_rule_version)
_impl_.partition_expr_version_ = partition_expr_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.InsertRequest.partition_expr_version)
}
// -------------------------------------------------------------------
@@ -9392,39 +9392,39 @@ inline void DeleteRequest::set_allocated_rows(::greptime::v1::Rows* rows) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.DeleteRequest.rows)
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
inline bool DeleteRequest::_internal_has_partition_rule_version() const {
return this != internal_default_instance() && _impl_.partition_rule_version_ != nullptr;
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
inline bool DeleteRequest::_internal_has_partition_expr_version() const {
return this != internal_default_instance() && _impl_.partition_expr_version_ != nullptr;
}
inline bool DeleteRequest::has_partition_rule_version() const {
return _internal_has_partition_rule_version();
inline bool DeleteRequest::has_partition_expr_version() const {
return _internal_has_partition_expr_version();
}
inline const ::greptime::v1::PartitionRuleVersion& DeleteRequest::_internal_partition_rule_version() const {
const ::greptime::v1::PartitionRuleVersion* p = _impl_.partition_rule_version_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::PartitionRuleVersion&>(
::greptime::v1::_PartitionRuleVersion_default_instance_);
inline const ::greptime::v1::PartitionExprVersion& DeleteRequest::_internal_partition_expr_version() const {
const ::greptime::v1::PartitionExprVersion* p = _impl_.partition_expr_version_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::PartitionExprVersion&>(
::greptime::v1::_PartitionExprVersion_default_instance_);
}
inline const ::greptime::v1::PartitionRuleVersion& DeleteRequest::partition_rule_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.DeleteRequest.partition_rule_version)
return _internal_partition_rule_version();
inline const ::greptime::v1::PartitionExprVersion& DeleteRequest::partition_expr_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.DeleteRequest.partition_expr_version)
return _internal_partition_expr_version();
}
inline void DeleteRequest::unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version) {
inline void DeleteRequest::unsafe_arena_set_allocated_partition_expr_version(
::greptime::v1::PartitionExprVersion* partition_expr_version) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_expr_version_);
}
_impl_.partition_rule_version_ = partition_rule_version;
if (partition_rule_version) {
_impl_.partition_expr_version_ = partition_expr_version;
if (partition_expr_version) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.DeleteRequest.partition_rule_version)
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.DeleteRequest.partition_expr_version)
}
inline ::greptime::v1::PartitionRuleVersion* DeleteRequest::release_partition_rule_version() {
inline ::greptime::v1::PartitionExprVersion* DeleteRequest::release_partition_expr_version() {
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
::greptime::v1::PartitionExprVersion* temp = _impl_.partition_expr_version_;
_impl_.partition_expr_version_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -9436,45 +9436,45 @@ inline ::greptime::v1::PartitionRuleVersion* DeleteRequest::release_partition_ru
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* DeleteRequest::unsafe_arena_release_partition_rule_version() {
// @@protoc_insertion_point(field_release:greptime.v1.region.DeleteRequest.partition_rule_version)
inline ::greptime::v1::PartitionExprVersion* DeleteRequest::unsafe_arena_release_partition_expr_version() {
// @@protoc_insertion_point(field_release:greptime.v1.region.DeleteRequest.partition_expr_version)
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
::greptime::v1::PartitionExprVersion* temp = _impl_.partition_expr_version_;
_impl_.partition_expr_version_ = nullptr;
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* DeleteRequest::_internal_mutable_partition_rule_version() {
inline ::greptime::v1::PartitionExprVersion* DeleteRequest::_internal_mutable_partition_expr_version() {
if (_impl_.partition_rule_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionRuleVersion>(GetArenaForAllocation());
_impl_.partition_rule_version_ = p;
if (_impl_.partition_expr_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionExprVersion>(GetArenaForAllocation());
_impl_.partition_expr_version_ = p;
}
return _impl_.partition_rule_version_;
return _impl_.partition_expr_version_;
}
inline ::greptime::v1::PartitionRuleVersion* DeleteRequest::mutable_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* _msg = _internal_mutable_partition_rule_version();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.DeleteRequest.partition_rule_version)
inline ::greptime::v1::PartitionExprVersion* DeleteRequest::mutable_partition_expr_version() {
::greptime::v1::PartitionExprVersion* _msg = _internal_mutable_partition_expr_version();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.DeleteRequest.partition_expr_version)
return _msg;
}
inline void DeleteRequest::set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version) {
inline void DeleteRequest::set_allocated_partition_expr_version(::greptime::v1::PartitionExprVersion* partition_expr_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_expr_version_);
}
if (partition_rule_version) {
if (partition_expr_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_rule_version));
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_expr_version));
if (message_arena != submessage_arena) {
partition_rule_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_rule_version, submessage_arena);
partition_expr_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_expr_version, submessage_arena);
}
} else {
}
_impl_.partition_rule_version_ = partition_rule_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.DeleteRequest.partition_rule_version)
_impl_.partition_expr_version_ = partition_expr_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.DeleteRequest.partition_expr_version)
}
// -------------------------------------------------------------------
@@ -12226,39 +12226,39 @@ inline ::greptime::v1::ArrowIpc* BulkInsertRequest::mutable_arrow_ipc() {
return _msg;
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
inline bool BulkInsertRequest::_internal_has_partition_rule_version() const {
return this != internal_default_instance() && _impl_.partition_rule_version_ != nullptr;
// .greptime.v1.PartitionExprVersion partition_expr_version = 3;
inline bool BulkInsertRequest::_internal_has_partition_expr_version() const {
return this != internal_default_instance() && _impl_.partition_expr_version_ != nullptr;
}
inline bool BulkInsertRequest::has_partition_rule_version() const {
return _internal_has_partition_rule_version();
inline bool BulkInsertRequest::has_partition_expr_version() const {
return _internal_has_partition_expr_version();
}
inline const ::greptime::v1::PartitionRuleVersion& BulkInsertRequest::_internal_partition_rule_version() const {
const ::greptime::v1::PartitionRuleVersion* p = _impl_.partition_rule_version_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::PartitionRuleVersion&>(
::greptime::v1::_PartitionRuleVersion_default_instance_);
inline const ::greptime::v1::PartitionExprVersion& BulkInsertRequest::_internal_partition_expr_version() const {
const ::greptime::v1::PartitionExprVersion* p = _impl_.partition_expr_version_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::PartitionExprVersion&>(
::greptime::v1::_PartitionExprVersion_default_instance_);
}
inline const ::greptime::v1::PartitionRuleVersion& BulkInsertRequest::partition_rule_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.BulkInsertRequest.partition_rule_version)
return _internal_partition_rule_version();
inline const ::greptime::v1::PartitionExprVersion& BulkInsertRequest::partition_expr_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.BulkInsertRequest.partition_expr_version)
return _internal_partition_expr_version();
}
inline void BulkInsertRequest::unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version) {
inline void BulkInsertRequest::unsafe_arena_set_allocated_partition_expr_version(
::greptime::v1::PartitionExprVersion* partition_expr_version) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_expr_version_);
}
_impl_.partition_rule_version_ = partition_rule_version;
if (partition_rule_version) {
_impl_.partition_expr_version_ = partition_expr_version;
if (partition_expr_version) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.BulkInsertRequest.partition_rule_version)
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.BulkInsertRequest.partition_expr_version)
}
inline ::greptime::v1::PartitionRuleVersion* BulkInsertRequest::release_partition_rule_version() {
inline ::greptime::v1::PartitionExprVersion* BulkInsertRequest::release_partition_expr_version() {
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
::greptime::v1::PartitionExprVersion* temp = _impl_.partition_expr_version_;
_impl_.partition_expr_version_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
@@ -12270,45 +12270,45 @@ inline ::greptime::v1::PartitionRuleVersion* BulkInsertRequest::release_partitio
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* BulkInsertRequest::unsafe_arena_release_partition_rule_version() {
// @@protoc_insertion_point(field_release:greptime.v1.region.BulkInsertRequest.partition_rule_version)
inline ::greptime::v1::PartitionExprVersion* BulkInsertRequest::unsafe_arena_release_partition_expr_version() {
// @@protoc_insertion_point(field_release:greptime.v1.region.BulkInsertRequest.partition_expr_version)
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
::greptime::v1::PartitionExprVersion* temp = _impl_.partition_expr_version_;
_impl_.partition_expr_version_ = nullptr;
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* BulkInsertRequest::_internal_mutable_partition_rule_version() {
inline ::greptime::v1::PartitionExprVersion* BulkInsertRequest::_internal_mutable_partition_expr_version() {
if (_impl_.partition_rule_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionRuleVersion>(GetArenaForAllocation());
_impl_.partition_rule_version_ = p;
if (_impl_.partition_expr_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionExprVersion>(GetArenaForAllocation());
_impl_.partition_expr_version_ = p;
}
return _impl_.partition_rule_version_;
return _impl_.partition_expr_version_;
}
inline ::greptime::v1::PartitionRuleVersion* BulkInsertRequest::mutable_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* _msg = _internal_mutable_partition_rule_version();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.BulkInsertRequest.partition_rule_version)
inline ::greptime::v1::PartitionExprVersion* BulkInsertRequest::mutable_partition_expr_version() {
::greptime::v1::PartitionExprVersion* _msg = _internal_mutable_partition_expr_version();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.BulkInsertRequest.partition_expr_version)
return _msg;
}
inline void BulkInsertRequest::set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version) {
inline void BulkInsertRequest::set_allocated_partition_expr_version(::greptime::v1::PartitionExprVersion* partition_expr_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_expr_version_);
}
if (partition_rule_version) {
if (partition_expr_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_rule_version));
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_expr_version));
if (message_arena != submessage_arena) {
partition_rule_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_rule_version, submessage_arena);
partition_expr_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_expr_version, submessage_arena);
}
} else {
}
_impl_.partition_rule_version_ = partition_rule_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.BulkInsertRequest.partition_rule_version)
_impl_.partition_expr_version_ = partition_expr_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.BulkInsertRequest.partition_expr_version)
}
inline bool BulkInsertRequest::has_body() const {