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
+45 -45
View File
@@ -488,19 +488,19 @@ struct ArrowIpcDefaultTypeInternal {
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrowIpcDefaultTypeInternal _ArrowIpc_default_instance_;
PROTOBUF_CONSTEXPR PartitionRuleVersion::PartitionRuleVersion(
PROTOBUF_CONSTEXPR PartitionExprVersion::PartitionExprVersion(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.value_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct PartitionRuleVersionDefaultTypeInternal {
PROTOBUF_CONSTEXPR PartitionRuleVersionDefaultTypeInternal()
struct PartitionExprVersionDefaultTypeInternal {
PROTOBUF_CONSTEXPR PartitionExprVersionDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~PartitionRuleVersionDefaultTypeInternal() {}
~PartitionExprVersionDefaultTypeInternal() {}
union {
PartitionRuleVersion _instance;
PartitionExprVersion _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PartitionRuleVersionDefaultTypeInternal _PartitionRuleVersion_default_instance_;
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PartitionExprVersionDefaultTypeInternal _PartitionExprVersion_default_instance_;
} // namespace v1
} // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[35];
@@ -803,12 +803,12 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
PROTOBUF_FIELD_OFFSET(::greptime::v1::ArrowIpc, _impl_.data_header_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ArrowIpc, _impl_.payload_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::PartitionRuleVersion, _internal_metadata_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::PartitionExprVersion, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::PartitionRuleVersion, _impl_.value_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::PartitionExprVersion, _impl_.value_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, 8, -1, sizeof(::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse)},
@@ -845,7 +845,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 268, 276, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)},
{ 278, -1, -1, sizeof(::greptime::v1::ColumnOptions)},
{ 285, -1, -1, sizeof(::greptime::v1::ArrowIpc)},
{ 294, -1, -1, sizeof(::greptime::v1::PartitionRuleVersion)},
{ 294, -1, -1, sizeof(::greptime::v1::PartitionExprVersion)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -883,7 +883,7 @@ static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::_ColumnOptions_OptionsEntry_DoNotUse_default_instance_._instance,
&::greptime::v1::_ColumnOptions_default_instance_._instance,
&::greptime::v1::_ArrowIpc_default_instance_._instance,
&::greptime::v1::_PartitionRuleVersion_default_instance_._instance,
&::greptime::v1::_PartitionExprVersion_default_instance_._instance,
};
const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
@@ -968,7 +968,7 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S
".ColumnOptions.OptionsEntry\032.\n\014OptionsEn"
"try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\010A"
"rrowIpc\022\016\n\006schema\030\001 \001(\014\022\023\n\013data_header\030\002"
" \001(\014\022\017\n\007payload\030\003 \001(\014\"%\n\024PartitionRuleVe"
" \001(\014\022\017\n\007payload\030\003 \001(\014\"%\n\024PartitionExprVe"
"rsion\022\r\n\005value\030\001 \001(\004*1\n\014SemanticType\022\007\n\003"
"TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\222\004\n\016Colu"
"mnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT"
@@ -8563,29 +8563,29 @@ void ArrowIpc::InternalSwap(ArrowIpc* other) {
// ===================================================================
class PartitionRuleVersion::_Internal {
class PartitionExprVersion::_Internal {
public:
};
PartitionRuleVersion::PartitionRuleVersion(::PROTOBUF_NAMESPACE_ID::Arena* arena,
PartitionExprVersion::PartitionExprVersion(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:greptime.v1.PartitionRuleVersion)
// @@protoc_insertion_point(arena_constructor:greptime.v1.PartitionExprVersion)
}
PartitionRuleVersion::PartitionRuleVersion(const PartitionRuleVersion& from)
PartitionExprVersion::PartitionExprVersion(const PartitionExprVersion& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
PartitionRuleVersion* const _this = this; (void)_this;
PartitionExprVersion* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.value_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.value_ = from._impl_.value_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.PartitionRuleVersion)
// @@protoc_insertion_point(copy_constructor:greptime.v1.PartitionExprVersion)
}
inline void PartitionRuleVersion::SharedCtor(
inline void PartitionExprVersion::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
@@ -8595,8 +8595,8 @@ inline void PartitionRuleVersion::SharedCtor(
};
}
PartitionRuleVersion::~PartitionRuleVersion() {
// @@protoc_insertion_point(destructor:greptime.v1.PartitionRuleVersion)
PartitionExprVersion::~PartitionExprVersion() {
// @@protoc_insertion_point(destructor:greptime.v1.PartitionExprVersion)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
@@ -8604,16 +8604,16 @@ PartitionRuleVersion::~PartitionRuleVersion() {
SharedDtor();
}
inline void PartitionRuleVersion::SharedDtor() {
inline void PartitionExprVersion::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void PartitionRuleVersion::SetCachedSize(int size) const {
void PartitionExprVersion::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void PartitionRuleVersion::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.PartitionRuleVersion)
void PartitionExprVersion::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.PartitionExprVersion)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
@@ -8622,7 +8622,7 @@ void PartitionRuleVersion::Clear() {
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* PartitionRuleVersion::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
const char* PartitionExprVersion::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
@@ -8659,9 +8659,9 @@ failure:
#undef CHK_
}
uint8_t* PartitionRuleVersion::_InternalSerialize(
uint8_t* PartitionExprVersion::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.PartitionRuleVersion)
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.PartitionExprVersion)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
@@ -8675,12 +8675,12 @@ uint8_t* PartitionRuleVersion::_InternalSerialize(
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.PartitionRuleVersion)
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.PartitionExprVersion)
return target;
}
size_t PartitionRuleVersion::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.PartitionRuleVersion)
size_t PartitionExprVersion::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.PartitionExprVersion)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
@@ -8695,17 +8695,17 @@ size_t PartitionRuleVersion::ByteSizeLong() const {
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PartitionRuleVersion::_class_data_ = {
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PartitionExprVersion::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
PartitionRuleVersion::MergeImpl
PartitionExprVersion::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PartitionRuleVersion::GetClassData() const { return &_class_data_; }
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PartitionExprVersion::GetClassData() const { return &_class_data_; }
void PartitionRuleVersion::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<PartitionRuleVersion*>(&to_msg);
auto& from = static_cast<const PartitionRuleVersion&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.PartitionRuleVersion)
void PartitionExprVersion::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<PartitionExprVersion*>(&to_msg);
auto& from = static_cast<const PartitionExprVersion&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.PartitionExprVersion)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
@@ -8716,24 +8716,24 @@ void PartitionRuleVersion::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, c
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void PartitionRuleVersion::CopyFrom(const PartitionRuleVersion& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.PartitionRuleVersion)
void PartitionExprVersion::CopyFrom(const PartitionExprVersion& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.PartitionExprVersion)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PartitionRuleVersion::IsInitialized() const {
bool PartitionExprVersion::IsInitialized() const {
return true;
}
void PartitionRuleVersion::InternalSwap(PartitionRuleVersion* other) {
void PartitionExprVersion::InternalSwap(PartitionExprVersion* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.value_, other->_impl_.value_);
}
::PROTOBUF_NAMESPACE_ID::Metadata PartitionRuleVersion::GetMetadata() const {
::PROTOBUF_NAMESPACE_ID::Metadata PartitionExprVersion::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[34]);
@@ -8879,9 +8879,9 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::ArrowIpc*
Arena::CreateMaybeMessage< ::greptime::v1::ArrowIpc >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::ArrowIpc >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::PartitionRuleVersion*
Arena::CreateMaybeMessage< ::greptime::v1::PartitionRuleVersion >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::PartitionRuleVersion >(arena);
template<> PROTOBUF_NOINLINE ::greptime::v1::PartitionExprVersion*
Arena::CreateMaybeMessage< ::greptime::v1::PartitionExprVersion >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::PartitionExprVersion >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
+38 -38
View File
@@ -104,9 +104,9 @@ extern ListTypeExtensionDefaultTypeInternal _ListTypeExtension_default_instance_
class Metrics;
struct MetricsDefaultTypeInternal;
extern MetricsDefaultTypeInternal _Metrics_default_instance_;
class PartitionRuleVersion;
struct PartitionRuleVersionDefaultTypeInternal;
extern PartitionRuleVersionDefaultTypeInternal _PartitionRuleVersion_default_instance_;
class PartitionExprVersion;
struct PartitionExprVersionDefaultTypeInternal;
extern PartitionExprVersionDefaultTypeInternal _PartitionExprVersion_default_instance_;
class QueryContext;
struct QueryContextDefaultTypeInternal;
extern QueryContextDefaultTypeInternal _QueryContext_default_instance_;
@@ -176,7 +176,7 @@ template<> ::greptime::v1::IntervalMonthDayNano* Arena::CreateMaybeMessage<::gre
template<> ::greptime::v1::JsonNativeTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::JsonNativeTypeExtension>(Arena*);
template<> ::greptime::v1::ListTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::ListTypeExtension>(Arena*);
template<> ::greptime::v1::Metrics* Arena::CreateMaybeMessage<::greptime::v1::Metrics>(Arena*);
template<> ::greptime::v1::PartitionRuleVersion* Arena::CreateMaybeMessage<::greptime::v1::PartitionRuleVersion>(Arena*);
template<> ::greptime::v1::PartitionExprVersion* Arena::CreateMaybeMessage<::greptime::v1::PartitionExprVersion>(Arena*);
template<> ::greptime::v1::QueryContext* Arena::CreateMaybeMessage<::greptime::v1::QueryContext>(Arena*);
template<> ::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader>(Arena*);
@@ -5592,24 +5592,24 @@ class ArrowIpc final :
};
// -------------------------------------------------------------------
class PartitionRuleVersion final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.PartitionRuleVersion) */ {
class PartitionExprVersion final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.PartitionExprVersion) */ {
public:
inline PartitionRuleVersion() : PartitionRuleVersion(nullptr) {}
~PartitionRuleVersion() override;
explicit PROTOBUF_CONSTEXPR PartitionRuleVersion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
inline PartitionExprVersion() : PartitionExprVersion(nullptr) {}
~PartitionExprVersion() override;
explicit PROTOBUF_CONSTEXPR PartitionExprVersion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
PartitionRuleVersion(const PartitionRuleVersion& from);
PartitionRuleVersion(PartitionRuleVersion&& from) noexcept
: PartitionRuleVersion() {
PartitionExprVersion(const PartitionExprVersion& from);
PartitionExprVersion(PartitionExprVersion&& from) noexcept
: PartitionExprVersion() {
*this = ::std::move(from);
}
inline PartitionRuleVersion& operator=(const PartitionRuleVersion& from) {
inline PartitionExprVersion& operator=(const PartitionExprVersion& from) {
CopyFrom(from);
return *this;
}
inline PartitionRuleVersion& operator=(PartitionRuleVersion&& from) noexcept {
inline PartitionExprVersion& operator=(PartitionExprVersion&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
@@ -5632,20 +5632,20 @@ class PartitionRuleVersion final :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const PartitionRuleVersion& default_instance() {
static const PartitionExprVersion& default_instance() {
return *internal_default_instance();
}
static inline const PartitionRuleVersion* internal_default_instance() {
return reinterpret_cast<const PartitionRuleVersion*>(
&_PartitionRuleVersion_default_instance_);
static inline const PartitionExprVersion* internal_default_instance() {
return reinterpret_cast<const PartitionExprVersion*>(
&_PartitionExprVersion_default_instance_);
}
static constexpr int kIndexInFileMessages =
34;
friend void swap(PartitionRuleVersion& a, PartitionRuleVersion& b) {
friend void swap(PartitionExprVersion& a, PartitionExprVersion& b) {
a.Swap(&b);
}
inline void Swap(PartitionRuleVersion* other) {
inline void Swap(PartitionExprVersion* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
@@ -5658,7 +5658,7 @@ class PartitionRuleVersion final :
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(PartitionRuleVersion* other) {
void UnsafeArenaSwap(PartitionExprVersion* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
@@ -5666,14 +5666,14 @@ class PartitionRuleVersion final :
// implements Message ----------------------------------------------
PartitionRuleVersion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<PartitionRuleVersion>(arena);
PartitionExprVersion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<PartitionExprVersion>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const PartitionRuleVersion& from);
void CopyFrom(const PartitionExprVersion& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const PartitionRuleVersion& from) {
PartitionRuleVersion::MergeImpl(*this, from);
void MergeFrom( const PartitionExprVersion& from) {
PartitionExprVersion::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
@@ -5691,15 +5691,15 @@ class PartitionRuleVersion final :
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(PartitionRuleVersion* other);
void InternalSwap(PartitionExprVersion* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.PartitionRuleVersion";
return "greptime.v1.PartitionExprVersion";
}
protected:
explicit PartitionRuleVersion(::PROTOBUF_NAMESPACE_ID::Arena* arena,
explicit PartitionExprVersion(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
@@ -5724,7 +5724,7 @@ class PartitionRuleVersion final :
void _internal_set_value(uint64_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.PartitionRuleVersion)
// @@protoc_insertion_point(class_scope:greptime.v1.PartitionExprVersion)
private:
class _Internal;
@@ -9126,26 +9126,26 @@ inline void ArrowIpc::set_allocated_payload(std::string* payload) {
// -------------------------------------------------------------------
// PartitionRuleVersion
// PartitionExprVersion
// uint64 value = 1;
inline void PartitionRuleVersion::clear_value() {
inline void PartitionExprVersion::clear_value() {
_impl_.value_ = uint64_t{0u};
}
inline uint64_t PartitionRuleVersion::_internal_value() const {
inline uint64_t PartitionExprVersion::_internal_value() const {
return _impl_.value_;
}
inline uint64_t PartitionRuleVersion::value() const {
// @@protoc_insertion_point(field_get:greptime.v1.PartitionRuleVersion.value)
inline uint64_t PartitionExprVersion::value() const {
// @@protoc_insertion_point(field_get:greptime.v1.PartitionExprVersion.value)
return _internal_value();
}
inline void PartitionRuleVersion::_internal_set_value(uint64_t value) {
inline void PartitionExprVersion::_internal_set_value(uint64_t value) {
_impl_.value_ = value;
}
inline void PartitionRuleVersion::set_value(uint64_t value) {
inline void PartitionExprVersion::set_value(uint64_t value) {
_internal_set_value(value);
// @@protoc_insertion_point(field_set:greptime.v1.PartitionRuleVersion.value)
// @@protoc_insertion_point(field_set:greptime.v1.PartitionExprVersion.value)
}
#ifdef __GNUC__
+32 -32
View File
@@ -92,7 +92,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 {
@@ -261,7 +261,7 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::InsertRequest, _impl_.region_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::InsertRequest, _impl_.rows_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::InsertRequest, _impl_.partition_rule_version_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::InsertRequest, _impl_.partition_expr_version_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -382,8 +382,8 @@ const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PRO
"equests\0221\n\010requests\030\001 \003(\0132\037.greptime.v1."
"flow.InsertRequest\"\206\001\n\rInsertRequest\022\021\n\t"
"region_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime"
".v1.Rows\022A\n\026partition_rule_version\030\003 \001(\013"
"2!.greptime.v1.PartitionRuleVersion\"\332\001\n\013"
".v1.Rows\022A\n\026partition_expr_version\030\003 \001(\013"
"2!.greptime.v1.PartitionExprVersion\"\332\001\n\013"
"FlowRequest\0223\n\006header\030@ \001(\0132#.greptime.v"
"1.flow.FlowRequestHeader\0221\n\006create\030\001 \001(\013"
"2\037.greptime.v1.flow.CreateRequestH\000\022-\n\004d"
@@ -1321,16 +1321,16 @@ void InsertRequests::InternalSwap(InsertRequests* 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) {
@@ -1338,11 +1338,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)
@@ -1355,7 +1355,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_)*/{}};
@@ -1363,8 +1363,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.flow.InsertRequest)
@@ -1376,7 +1376,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_)*/{}
};
@@ -1394,7 +1394,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 {
@@ -1411,10 +1411,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>();
}
@@ -1441,10 +1441,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;
@@ -1491,11 +1491,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())) {
@@ -1521,11 +1521,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;
@@ -1555,9 +1555,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());
+56 -56
View File
@@ -936,7 +936,7 @@ class InsertRequest final :
enum : int {
kRowsFieldNumber = 2,
kPartitionRuleVersionFieldNumber = 3,
kPartitionExprVersionFieldNumber = 3,
kRegionIdFieldNumber = 1,
};
// .greptime.v1.Rows rows = 2;
@@ -957,23 +957,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();
@@ -993,7 +993,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_;
};
@@ -2532,39 +2532,39 @@ inline void InsertRequest::set_allocated_rows(::greptime::v1::Rows* rows) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.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.flow.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.flow.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.flow.InsertRequest.partition_rule_version)
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.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);
@@ -2576,45 +2576,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.flow.InsertRequest.partition_rule_version)
inline ::greptime::v1::PartitionExprVersion* InsertRequest::unsafe_arena_release_partition_expr_version() {
// @@protoc_insertion_point(field_release:greptime.v1.flow.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.flow.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.flow.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.flow.InsertRequest.partition_rule_version)
_impl_.partition_expr_version_ = partition_expr_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.InsertRequest.partition_expr_version)
}
// -------------------------------------------------------------------
+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 {