feat: introduce partition_rule_version (#306)

* feat: introduce `partition_rule_version`

Signed-off-by: WenyXu <wenymedia@gmail.com>

* feat: introduce `partition_rule_version`

Signed-off-by: WenyXu <wenymedia@gmail.com>

* feat: introduce PartitionRuleVersion

Signed-off-by: WenyXu <wenymedia@gmail.com>

* chore: apply suggestions

Signed-off-by: WenyXu <wenymedia@gmail.com>

---------

Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
Weny Xu
2026-02-06 19:34:18 +08:00
committed by GitHub
parent f1e0ea3a71
commit b9452e3411
15 changed files with 3348 additions and 884 deletions
+229 -24
View File
@@ -488,9 +488,22 @@ struct ArrowIpcDefaultTypeInternal {
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrowIpcDefaultTypeInternal _ArrowIpc_default_instance_;
PROTOBUF_CONSTEXPR PartitionRuleVersion::PartitionRuleVersion(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.value_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct PartitionRuleVersionDefaultTypeInternal {
PROTOBUF_CONSTEXPR PartitionRuleVersionDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~PartitionRuleVersionDefaultTypeInternal() {}
union {
PartitionRuleVersion _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PartitionRuleVersionDefaultTypeInternal _PartitionRuleVersion_default_instance_;
} // namespace v1
} // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[34];
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[35];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[4];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr;
@@ -789,6 +802,13 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
PROTOBUF_FIELD_OFFSET(::greptime::v1::ArrowIpc, _impl_.schema_),
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_),
~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_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, 8, -1, sizeof(::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse)},
@@ -825,6 +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)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -862,6 +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,
};
const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
@@ -946,33 +968,34 @@ 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*1\n\014SemanticType\022\007\n"
"\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\222\004\n\016Col"
"umnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005IN"
"T16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n"
"\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FL"
"OAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRI"
"NG\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAM"
"P_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031\n"
"\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIMESTAMP_NA"
"NOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MILL"
"ISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022\023\n\017TIME_"
"NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n"
"\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL_MONTH_D"
"AY_NANO\020\031\022\016\n\nDECIMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006V"
"ECTOR\020 \022\010\n\004LIST\020(\022\n\n\006STRUCT\020)\022\016\n\nDICTION"
"ARY\020**H\n\010TimeUnit\022\017\n\013MILLISECOND\020\000\022\n\n\006SE"
"COND\020\001\022\017\n\013MICROSECOND\020\002\022\016\n\nNANOSECOND\020\003*"
"$\n\021JsonTypeExtension\022\017\n\013JSON_BINARY\020\000BO\n"
"\016io.greptime.v1B\006CommonZ5github.com/Grep"
"timeTeam/greptime-proto/go/greptime/v1b\006"
"proto3"
" \001(\014\022\017\n\007payload\030\003 \001(\014\"%\n\024PartitionRuleVe"
"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"
"16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n"
"\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLO"
"AT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRIN"
"G\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP"
"_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031\n\025"
"TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIMESTAMP_NAN"
"OSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MILLI"
"SECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022\023\n\017TIME_N"
"ANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021"
"INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL_MONTH_DA"
"Y_NANO\020\031\022\016\n\nDECIMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006VE"
"CTOR\020 \022\010\n\004LIST\020(\022\n\n\006STRUCT\020)\022\016\n\nDICTIONA"
"RY\020**H\n\010TimeUnit\022\017\n\013MILLISECOND\020\000\022\n\n\006SEC"
"OND\020\001\022\017\n\013MICROSECOND\020\002\022\016\n\nNANOSECOND\020\003*$"
"\n\021JsonTypeExtension\022\017\n\013JSON_BINARY\020\000BO\n\016"
"io.greptime.v1B\006CommonZ5github.com/Grept"
"imeTeam/greptime-proto/go/greptime/v1b\006p"
"roto3"
;
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = {
false, false, 4046, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
false, false, 4085, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
"greptime/v1/common.proto",
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 34,
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 35,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fcommon_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto,
file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto,
@@ -8538,6 +8561,184 @@ void ArrowIpc::InternalSwap(ArrowIpc* other) {
file_level_metadata_greptime_2fv1_2fcommon_2eproto[33]);
}
// ===================================================================
class PartitionRuleVersion::_Internal {
public:
};
PartitionRuleVersion::PartitionRuleVersion(::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)
}
PartitionRuleVersion::PartitionRuleVersion(const PartitionRuleVersion& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
PartitionRuleVersion* 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)
}
inline void PartitionRuleVersion::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.value_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
}
PartitionRuleVersion::~PartitionRuleVersion() {
// @@protoc_insertion_point(destructor:greptime.v1.PartitionRuleVersion)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void PartitionRuleVersion::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void PartitionRuleVersion::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void PartitionRuleVersion::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.PartitionRuleVersion)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.value_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* PartitionRuleVersion::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint64 value = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* PartitionRuleVersion::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.PartitionRuleVersion)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint64 value = 1;
if (this->_internal_value() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_value(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.PartitionRuleVersion)
return target;
}
size_t PartitionRuleVersion::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.PartitionRuleVersion)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint64 value = 1;
if (this->_internal_value() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_value());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PartitionRuleVersion::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
PartitionRuleVersion::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PartitionRuleVersion::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)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_value() != 0) {
_this->_internal_set_value(from._internal_value());
}
_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)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PartitionRuleVersion::IsInitialized() const {
return true;
}
void PartitionRuleVersion::InternalSwap(PartitionRuleVersion* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.value_, other->_impl_.value_);
}
::PROTOBUF_NAMESPACE_ID::Metadata PartitionRuleVersion::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]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace v1
} // namespace greptime
@@ -8678,6 +8879,10 @@ 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);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
+178
View File
@@ -104,6 +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 QueryContext;
struct QueryContextDefaultTypeInternal;
extern QueryContextDefaultTypeInternal _QueryContext_default_instance_;
@@ -173,6 +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::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*);
@@ -5586,6 +5590,154 @@ class ArrowIpc final :
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------
class PartitionRuleVersion final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.PartitionRuleVersion) */ {
public:
inline PartitionRuleVersion() : PartitionRuleVersion(nullptr) {}
~PartitionRuleVersion() override;
explicit PROTOBUF_CONSTEXPR PartitionRuleVersion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
PartitionRuleVersion(const PartitionRuleVersion& from);
PartitionRuleVersion(PartitionRuleVersion&& from) noexcept
: PartitionRuleVersion() {
*this = ::std::move(from);
}
inline PartitionRuleVersion& operator=(const PartitionRuleVersion& from) {
CopyFrom(from);
return *this;
}
inline PartitionRuleVersion& operator=(PartitionRuleVersion&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const PartitionRuleVersion& default_instance() {
return *internal_default_instance();
}
static inline const PartitionRuleVersion* internal_default_instance() {
return reinterpret_cast<const PartitionRuleVersion*>(
&_PartitionRuleVersion_default_instance_);
}
static constexpr int kIndexInFileMessages =
34;
friend void swap(PartitionRuleVersion& a, PartitionRuleVersion& b) {
a.Swap(&b);
}
inline void Swap(PartitionRuleVersion* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(PartitionRuleVersion* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
PartitionRuleVersion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<PartitionRuleVersion>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const PartitionRuleVersion& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const PartitionRuleVersion& from) {
PartitionRuleVersion::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(PartitionRuleVersion* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.PartitionRuleVersion";
}
protected:
explicit PartitionRuleVersion(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kValueFieldNumber = 1,
};
// uint64 value = 1;
void clear_value();
uint64_t value() const;
void set_value(uint64_t value);
private:
uint64_t _internal_value() const;
void _internal_set_value(uint64_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.PartitionRuleVersion)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
uint64_t value_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
};
// ===================================================================
@@ -8972,6 +9124,30 @@ inline void ArrowIpc::set_allocated_payload(std::string* payload) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.ArrowIpc.payload)
}
// -------------------------------------------------------------------
// PartitionRuleVersion
// uint64 value = 1;
inline void PartitionRuleVersion::clear_value() {
_impl_.value_ = uint64_t{0u};
}
inline uint64_t PartitionRuleVersion::_internal_value() const {
return _impl_.value_;
}
inline uint64_t PartitionRuleVersion::value() const {
// @@protoc_insertion_point(field_get:greptime.v1.PartitionRuleVersion.value)
return _internal_value();
}
inline void PartitionRuleVersion::_internal_set_value(uint64_t value) {
_impl_.value_ = value;
}
inline void PartitionRuleVersion::set_value(uint64_t value) {
_internal_set_value(value);
// @@protoc_insertion_point(field_set:greptime.v1.PartitionRuleVersion.value)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
@@ -9041,6 +9217,8 @@ inline void ArrowIpc::set_allocated_payload(std::string* payload) {
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
+97 -46
View File
@@ -92,6 +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_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct InsertRequestDefaultTypeInternal {
@@ -260,6 +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_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -339,13 +341,13 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 25, -1, -1, sizeof(::greptime::v1::flow::FlowRequestHeader)},
{ 33, -1, -1, sizeof(::greptime::v1::flow::InsertRequests)},
{ 40, -1, -1, sizeof(::greptime::v1::flow::InsertRequest)},
{ 48, -1, -1, sizeof(::greptime::v1::flow::FlowRequest)},
{ 59, 67, -1, sizeof(::greptime::v1::flow::FlowResponse_ExtensionsEntry_DoNotUse)},
{ 69, -1, -1, sizeof(::greptime::v1::flow::FlowResponse)},
{ 79, 87, -1, sizeof(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse)},
{ 89, -1, -1, sizeof(::greptime::v1::flow::CreateRequest)},
{ 105, -1, -1, sizeof(::greptime::v1::flow::DropRequest)},
{ 112, -1, -1, sizeof(::greptime::v1::flow::FlushFlow)},
{ 49, -1, -1, sizeof(::greptime::v1::flow::FlowRequest)},
{ 60, 68, -1, sizeof(::greptime::v1::flow::FlowResponse_ExtensionsEntry_DoNotUse)},
{ 70, -1, -1, sizeof(::greptime::v1::flow::FlowResponse)},
{ 80, 88, -1, sizeof(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse)},
{ 90, -1, -1, sizeof(::greptime::v1::flow::CreateRequest)},
{ 106, -1, -1, sizeof(::greptime::v1::flow::DropRequest)},
{ 113, -1, -1, sizeof(::greptime::v1::flow::FlushFlow)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -378,44 +380,46 @@ const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PRO
"1.QueryContext\0325\n\023TracingContextEntry\022\013\n"
"\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"C\n\016InsertR"
"equests\0221\n\010requests\030\001 \003(\0132\037.greptime.v1."
"flow.InsertRequest\"C\n\rInsertRequest\022\021\n\tr"
"egion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime."
"v1.Rows\"\332\001\n\013FlowRequest\0223\n\006header\030@ \001(\0132"
"#.greptime.v1.flow.FlowRequestHeader\0221\n\006"
"create\030\001 \001(\0132\037.greptime.v1.flow.CreateRe"
"questH\000\022-\n\004drop\030\002 \001(\0132\035.greptime.v1.flow"
".DropRequestH\000\022,\n\005flush\030\003 \001(\0132\033.greptime"
".v1.flow.FlushFlowH\000B\006\n\004body\"\366\001\n\014FlowRes"
"ponse\022+\n\006header\030\001 \001(\0132\033.greptime.v1.Resp"
"onseHeader\022\025\n\raffected_rows\030\002 \001(\004\022+\n\016aff"
"ected_flows\030\003 \003(\0132\023.greptime.v1.FlowId\022B"
"\n\nextensions\030\004 \003(\0132..greptime.v1.flow.Fl"
"owResponse.ExtensionsEntry\0321\n\017Extensions"
"Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\304\003"
"\n\rCreateRequest\022$\n\007flow_id\030\001 \001(\0132\023.grept"
"ime.v1.FlowId\022.\n\020source_table_ids\030\002 \003(\0132"
"\024.greptime.v1.TableId\022/\n\017sink_table_name"
"\030\003 \001(\0132\026.greptime.v1.TableName\022\034\n\024create"
"_if_not_exists\030\004 \001(\010\022.\n\014expire_after\030\005 \001"
"(\0132\030.greptime.v1.ExpireAfter\0220\n\reval_int"
"erval\030\n \001(\0132\031.greptime.v1.EvalInterval\022\017"
"\n\007comment\030\006 \001(\t\022\013\n\003sql\030\007 \001(\t\022F\n\014flow_opt"
"ions\030\010 \003(\01320.greptime.v1.flow.CreateRequ"
"est.FlowOptionsEntry\022\022\n\nor_replace\030\t \001(\010"
"\0322\n\020FlowOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val"
"ue\030\002 \001(\t:\0028\001\"3\n\013DropRequest\022$\n\007flow_id\030\001"
" \001(\0132\023.greptime.v1.FlowId\"1\n\tFlushFlow\022$"
"\n\007flow_id\030\001 \001(\0132\023.greptime.v1.FlowId2\230\002\n"
"\004Flow\022S\n\022HandleCreateRemove\022\035.greptime.v"
"1.flow.FlowRequest\032\036.greptime.v1.flow.Fl"
"owResponse\022W\n\023HandleMirrorRequest\022 .grep"
"time.v1.flow.InsertRequests\032\036.greptime.v"
"1.flow.FlowResponse\022b\n\031HandleMarkDirtyTi"
"meWindow\022%.greptime.v1.flow.DirtyWindowR"
"equests\032\036.greptime.v1.flow.FlowResponseB"
"Y\n\023io.greptime.v1.flowB\006ServerZ:github.c"
"om/GreptimeTeam/greptime-proto/go/grepti"
"me/v1/flowb\006proto3"
"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"
"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"
"rop\030\002 \001(\0132\035.greptime.v1.flow.DropRequest"
"H\000\022,\n\005flush\030\003 \001(\0132\033.greptime.v1.flow.Flu"
"shFlowH\000B\006\n\004body\"\366\001\n\014FlowResponse\022+\n\006hea"
"der\030\001 \001(\0132\033.greptime.v1.ResponseHeader\022\025"
"\n\raffected_rows\030\002 \001(\004\022+\n\016affected_flows\030"
"\003 \003(\0132\023.greptime.v1.FlowId\022B\n\nextensions"
"\030\004 \003(\0132..greptime.v1.flow.FlowResponse.E"
"xtensionsEntry\0321\n\017ExtensionsEntry\022\013\n\003key"
"\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\304\003\n\rCreateRequ"
"est\022$\n\007flow_id\030\001 \001(\0132\023.greptime.v1.FlowI"
"d\022.\n\020source_table_ids\030\002 \003(\0132\024.greptime.v"
"1.TableId\022/\n\017sink_table_name\030\003 \001(\0132\026.gre"
"ptime.v1.TableName\022\034\n\024create_if_not_exis"
"ts\030\004 \001(\010\022.\n\014expire_after\030\005 \001(\0132\030.greptim"
"e.v1.ExpireAfter\0220\n\reval_interval\030\n \001(\0132"
"\031.greptime.v1.EvalInterval\022\017\n\007comment\030\006 "
"\001(\t\022\013\n\003sql\030\007 \001(\t\022F\n\014flow_options\030\010 \003(\01320"
".greptime.v1.flow.CreateRequest.FlowOpti"
"onsEntry\022\022\n\nor_replace\030\t \001(\010\0322\n\020FlowOpti"
"onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001"
"\"3\n\013DropRequest\022$\n\007flow_id\030\001 \001(\0132\023.grept"
"ime.v1.FlowId\"1\n\tFlushFlow\022$\n\007flow_id\030\001 "
"\001(\0132\023.greptime.v1.FlowId2\230\002\n\004Flow\022S\n\022Han"
"dleCreateRemove\022\035.greptime.v1.flow.FlowR"
"equest\032\036.greptime.v1.flow.FlowResponse\022W"
"\n\023HandleMirrorRequest\022 .greptime.v1.flow"
".InsertRequests\032\036.greptime.v1.flow.FlowR"
"esponse\022b\n\031HandleMarkDirtyTimeWindow\022%.g"
"reptime.v1.flow.DirtyWindowRequests\032\036.gr"
"eptime.v1.flow.FlowResponseBY\n\023io.grepti"
"me.v1.flowB\006ServerZ:github.com/GreptimeT"
"eam/greptime-proto/go/greptime/v1/flowb\006"
"proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps[3] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -424,7 +428,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflo
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto = {
false, false, 2018, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
false, false, 2086, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
"greptime/v1/flow/server.proto",
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps, 3, 13,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets,
@@ -1317,18 +1321,29 @@ 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);
};
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_;
}
void InsertRequest::clear_rows() {
if (GetArenaForAllocation() == nullptr && _impl_.rows_ != nullptr) {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
}
void InsertRequest::clear_partition_rule_version() {
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
}
_impl_.partition_rule_version_ = nullptr;
}
InsertRequest::InsertRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -1340,6 +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_.region_id_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -1347,6 +1363,9 @@ 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_);
}
_this->_impl_.region_id_ = from._impl_.region_id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.flow.InsertRequest)
}
@@ -1357,6 +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_.region_id_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
@@ -1374,6 +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_;
}
void InsertRequest::SetCachedSize(int size) const {
@@ -1390,6 +1411,10 @@ void InsertRequest::Clear() {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.region_id_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -1416,6 +1441,14 @@ const char* InsertRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_partition_rule_version(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -1458,6 +1491,13 @@ uint8_t* InsertRequest::_InternalSerialize(
_Internal::rows(this).GetCachedSize(), target, stream);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::partition_rule_version(this),
_Internal::partition_rule_version(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -1481,6 +1521,13 @@ size_t InsertRequest::ByteSizeLong() const {
*_impl_.rows_);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.partition_rule_version_);
}
// uint64 region_id = 1;
if (this->_internal_region_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
@@ -1508,6 +1555,10 @@ 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_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
}
+105
View File
@@ -936,6 +936,7 @@ class InsertRequest final :
enum : int {
kRowsFieldNumber = 2,
kPartitionRuleVersionFieldNumber = 3,
kRegionIdFieldNumber = 1,
};
// .greptime.v1.Rows rows = 2;
@@ -956,6 +957,24 @@ 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;
private:
bool _internal_has_partition_rule_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);
private:
const ::greptime::v1::PartitionRuleVersion& _internal_partition_rule_version() const;
::greptime::v1::PartitionRuleVersion* _internal_mutable_partition_rule_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();
// uint64 region_id = 1;
void clear_region_id();
uint64_t region_id() const;
@@ -974,6 +993,7 @@ class InsertRequest final :
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::Rows* rows_;
::greptime::v1::PartitionRuleVersion* partition_rule_version_;
uint64_t region_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
@@ -2512,6 +2532,91 @@ 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;
}
inline bool InsertRequest::has_partition_rule_version() const {
return _internal_has_partition_rule_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::PartitionRuleVersion& InsertRequest::partition_rule_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.flow.InsertRequest.partition_rule_version)
return _internal_partition_rule_version();
}
inline void InsertRequest::unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
_impl_.partition_rule_version_ = partition_rule_version;
if (partition_rule_version) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.InsertRequest.partition_rule_version)
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::release_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::unsafe_arena_release_partition_rule_version() {
// @@protoc_insertion_point(field_release:greptime.v1.flow.InsertRequest.partition_rule_version)
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::_internal_mutable_partition_rule_version() {
if (_impl_.partition_rule_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionRuleVersion>(GetArenaForAllocation());
_impl_.partition_rule_version_ = p;
}
return _impl_.partition_rule_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)
return _msg;
}
inline void InsertRequest::set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
if (partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_rule_version));
if (message_arena != submessage_arena) {
partition_rule_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_rule_version, submessage_arena);
}
} else {
}
_impl_.partition_rule_version_ = partition_rule_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.InsertRequest.partition_rule_version)
}
// -------------------------------------------------------------------
// FlowRequest
+281 -124
View File
@@ -120,6 +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_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct InsertRequestDefaultTypeInternal {
@@ -134,6 +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_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct DeleteRequestDefaultTypeInternal {
@@ -463,7 +465,8 @@ 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_.region_id_)*/uint64_t{0u}
/*decltype(_impl_.partition_rule_version_)*/nullptr
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_.body_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}} {}
@@ -669,6 +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_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -677,6 +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_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -887,6 +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_.body_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::MitoManifestInfo, _internal_metadata_),
@@ -954,38 +960,38 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 65, -1, -1, sizeof(::greptime::v1::region::InsertRequests)},
{ 72, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)},
{ 79, -1, -1, sizeof(::greptime::v1::region::InsertRequest)},
{ 87, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
{ 95, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
{ 104, -1, -1, sizeof(::greptime::v1::region::CreateRequests)},
{ 111, 119, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
{ 121, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
{ 134, -1, -1, sizeof(::greptime::v1::region::DropRequests)},
{ 141, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
{ 151, 159, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
{ 161, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
{ 171, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
{ 178, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
{ 185, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
{ 206, -1, -1, sizeof(::greptime::v1::region::SyncColumns)},
{ 213, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
{ 220, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
{ 227, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
{ 235, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
{ 242, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
{ 249, -1, -1, sizeof(::greptime::v1::region::Regular)},
{ 255, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
{ 262, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 273, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
{ 283, -1, -1, sizeof(::greptime::v1::region::All)},
{ 289, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
{ 297, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
{ 306, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
{ 313, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
{ 321, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
{ 331, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
{ 338, -1, -1, sizeof(::greptime::v1::region::BuildIndexRequest)},
{ 345, -1, -1, sizeof(::greptime::v1::region::FileMetas)},
{ 352, -1, -1, sizeof(::greptime::v1::region::ApplyStagingManifestRequest)},
{ 88, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
{ 97, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
{ 106, -1, -1, sizeof(::greptime::v1::region::CreateRequests)},
{ 113, 121, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
{ 123, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
{ 136, -1, -1, sizeof(::greptime::v1::region::DropRequests)},
{ 143, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
{ 153, 161, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
{ 163, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
{ 173, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
{ 180, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
{ 187, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
{ 208, -1, -1, sizeof(::greptime::v1::region::SyncColumns)},
{ 215, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
{ 222, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
{ 229, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
{ 237, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
{ 244, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
{ 251, -1, -1, sizeof(::greptime::v1::region::Regular)},
{ 257, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
{ 264, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 275, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
{ 285, -1, -1, sizeof(::greptime::v1::region::All)},
{ 291, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
{ 299, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
{ 309, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
{ 316, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
{ 324, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
{ 334, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
{ 341, -1, -1, sizeof(::greptime::v1::region::BuildIndexRequest)},
{ 348, -1, -1, sizeof(::greptime::v1::region::FileMetas)},
{ 355, -1, -1, sizeof(::greptime::v1::region::ApplyStagingManifestRequest)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -1078,93 +1084,98 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
"ts\0223\n\010requests\030\001 \003(\0132!.greptime.v1.regio"
"n.InsertRequest\"E\n\016DeleteRequests\0223\n\010req"
"uests\030\001 \003(\0132!.greptime.v1.region.DeleteR"
"equest\"C\n\rInsertRequest\022\021\n\tregion_id\030\001 \001"
"(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"C\n\rD"
"eleteRequest\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030"
"\002 \001(\0132\021.greptime.v1.Rows\"h\n\014QueryRequest"
"\0227\n\006header\030\001 \001(\0132\'.greptime.v1.region.Re"
"gionRequestHeader\022\021\n\tregion_id\030\002 \001(\004\022\014\n\004"
"plan\030\003 \001(\014\"E\n\016CreateRequests\0223\n\010requests"
"\030\001 \003(\0132!.greptime.v1.region.CreateReques"
"t\"\260\002\n\rCreateRequest\022\021\n\tregion_id\030\001 \001(\004\022\016"
"\n\006engine\030\002 \001(\t\0228\n\013column_defs\030\003 \003(\0132#.gr"
"eptime.v1.region.RegionColumnDef\022\023\n\013prim"
"ary_key\030\004 \003(\r\022\014\n\004path\030\005 \001(\t\022\?\n\007options\030\006"
" \003(\0132..greptime.v1.region.CreateRequest."
"OptionsEntry\022.\n\tpartition\030\007 \001(\0132\033.grepti"
"me.v1.meta.Partition\032.\n\014OptionsEntry\022\013\n\003"
"key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"A\n\014DropRequ"
"ests\0221\n\010requests\030\001 \003(\0132\037.greptime.v1.reg"
"ion.DropRequest\"X\n\013DropRequest\022\021\n\tregion"
"_id\030\001 \001(\004\022\021\n\tfast_path\030\002 \001(\010\022\r\n\005force\030\003 "
"\001(\010\022\024\n\014partial_drop\030\004 \001(\010\"\255\001\n\013OpenReques"
"t\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\014\n\004"
"path\030\003 \001(\t\022=\n\007options\030\004 \003(\0132,.greptime.v"
"1.region.OpenRequest.OptionsEntry\032.\n\014Opt"
"ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028"
"\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001(\004\"C\n\r"
"AlterRequests\0222\n\010requests\030\001 \003(\0132 .grepti"
"me.v1.region.AlterRequest\"\311\005\n\014AlterReque"
"st\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030\002 \001"
"(\0132\036.greptime.v1.region.AddColumnsH\000\0227\n\014"
"drop_columns\030\003 \001(\0132\037.greptime.v1.region."
"DropColumnsH\000\022=\n\023modify_column_types\030\005 \001"
"(\0132\036.greptime.v1.ModifyColumnTypesH\000\0229\n\021"
"set_table_options\030\006 \001(\0132\034.greptime.v1.Se"
"tTableOptionsH\000\022=\n\023unset_table_options\030\t"
" \001(\0132\036.greptime.v1.UnsetTableOptionsH\000\022*"
"\n\tset_index\030\n \001(\0132\025.greptime.v1.SetIndex"
"H\000\022.\n\013unset_index\030\013 \001(\0132\027.greptime.v1.Un"
"setIndexH\000\0222\n\rdrop_defaults\030\014 \001(\0132\031.grep"
"time.v1.DropDefaultsH\000\022.\n\013set_indexes\030\r "
"\001(\0132\027.greptime.v1.SetIndexesH\000\0222\n\runset_"
"indexes\030\016 \001(\0132\031.greptime.v1.UnsetIndexes"
"H\000\0220\n\014set_defaults\030\017 \001(\0132\030.greptime.v1.S"
"etDefaultsH\000\0227\n\014sync_columns\030\020 \001(\0132\037.gre"
"ptime.v1.region.SyncColumnsH\000\022\026\n\016schema_"
"version\030\004 \001(\004B\006\n\004kind\"G\n\013SyncColumns\0228\n\013"
"column_defs\030\001 \003(\0132#.greptime.v1.region.R"
"egionColumnDef\"@\n\nAddColumns\0222\n\013add_colu"
"mns\030\001 \003(\0132\035.greptime.v1.region.AddColumn"
"\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003(\0132\036."
"greptime.v1.region.DropColumn\"v\n\tAddColu"
"mn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.reg"
"ion.RegionColumnDef\0220\n\010location\030\003 \001(\0132\036."
"greptime.v1.AddColumnLocation\"\032\n\nDropCol"
"umn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\treg"
"ion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022"
"\026\n\016window_seconds\030\001 \001(\003\"\256\001\n\016CompactReque"
"st\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033"
".greptime.v1.region.RegularH\000\0229\n\rstrict_"
"window\030\003 \001(\0132 .greptime.v1.region.Strict"
"WindowH\000\022\023\n\013parallelism\030\004 \001(\rB\t\n\007options"
"\"\204\001\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\022"
"&\n\003all\030\002 \001(\0132\027.greptime.v1.region.AllH\000\022"
".\n\013time_ranges\030\003 \001(\0132\027.greptime.v1.TimeR"
"angesH\000B\006\n\004kind\"\005\n\003All\"P\n\017RegionColumnDe"
"f\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colu"
"mnDef\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInsertRe"
"quest\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_ipc\030\002 "
"\001(\0132\025.greptime.v1.ArrowIpcH\000B\006\n\004body\"1\n\020"
"MitoManifestInfo\022\035\n\025data_manifest_versio"
"n\030\001 \001(\004\"V\n\022MetricManifestInfo\022\035\n\025data_ma"
"nifest_version\030\001 \001(\004\022!\n\031metadata_manifes"
"t_version\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregio"
"n_id\030\001 \001(\004\022B\n\022mito_manifest_info\030\002 \001(\0132$"
".greptime.v1.region.MitoManifestInfoH\000\022F"
"\n\024metric_manifest_info\030\003 \001(\0132&.greptime."
"v1.region.MetricManifestInfoH\000B\017\n\rmanife"
"st_info\")\n\023ListMetadataRequest\022\022\n\nregion"
"_ids\030\001 \003(\004\"&\n\021BuildIndexRequest\022\021\n\tregio"
"n_id\030\001 \001(\004\"\031\n\tFileMetas\022\014\n\004data\030\001 \001(\014\"z\n"
"\033ApplyStagingManifestRequest\022\021\n\tregion_i"
"d\030\001 \001(\004\022\026\n\016partition_expr\030\002 \001(\t\022\031\n\021centr"
"al_region_id\030\003 \001(\004\022\025\n\rmanifest_path\030\004 \001("
"\t2Y\n\006Region\022O\n\006Handle\022!.greptime.v1.regi"
"on.RegionRequest\032\".greptime.v1.region.Re"
"gionResponseB]\n\025io.greptime.v1.regionB\006S"
"erverZ<github.com/GreptimeTeam/greptime-"
"proto/go/greptime/v1/regionb\006proto3"
"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"
"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"
"\"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"
"ests\0223\n\010requests\030\001 \003(\0132!.greptime.v1.reg"
"ion.CreateRequest\"\260\002\n\rCreateRequest\022\021\n\tr"
"egion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\0228\n\013column"
"_defs\030\003 \003(\0132#.greptime.v1.region.RegionC"
"olumnDef\022\023\n\013primary_key\030\004 \003(\r\022\014\n\004path\030\005 "
"\001(\t\022\?\n\007options\030\006 \003(\0132..greptime.v1.regio"
"n.CreateRequest.OptionsEntry\022.\n\tpartitio"
"n\030\007 \001(\0132\033.greptime.v1.meta.Partition\032.\n\014"
"OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
":\0028\001\"A\n\014DropRequests\0221\n\010requests\030\001 \003(\0132\037"
".greptime.v1.region.DropRequest\"X\n\013DropR"
"equest\022\021\n\tregion_id\030\001 \001(\004\022\021\n\tfast_path\030\002"
" \001(\010\022\r\n\005force\030\003 \001(\010\022\024\n\014partial_drop\030\004 \001("
"\010\"\255\001\n\013OpenRequest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006"
"engine\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022=\n\007options\030\004 "
"\003(\0132,.greptime.v1.region.OpenRequest.Opt"
"ionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r"
"\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\treg"
"ion_id\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010request"
"s\030\001 \003(\0132 .greptime.v1.region.AlterReques"
"t\"\311\005\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n"
"\013add_columns\030\002 \001(\0132\036.greptime.v1.region."
"AddColumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037.gre"
"ptime.v1.region.DropColumnsH\000\022=\n\023modify_"
"column_types\030\005 \001(\0132\036.greptime.v1.ModifyC"
"olumnTypesH\000\0229\n\021set_table_options\030\006 \001(\0132"
"\034.greptime.v1.SetTableOptionsH\000\022=\n\023unset"
"_table_options\030\t \001(\0132\036.greptime.v1.Unset"
"TableOptionsH\000\022*\n\tset_index\030\n \001(\0132\025.grep"
"time.v1.SetIndexH\000\022.\n\013unset_index\030\013 \001(\0132"
"\027.greptime.v1.UnsetIndexH\000\0222\n\rdrop_defau"
"lts\030\014 \001(\0132\031.greptime.v1.DropDefaultsH\000\022."
"\n\013set_indexes\030\r \001(\0132\027.greptime.v1.SetInd"
"exesH\000\0222\n\runset_indexes\030\016 \001(\0132\031.greptime"
".v1.UnsetIndexesH\000\0220\n\014set_defaults\030\017 \001(\013"
"2\030.greptime.v1.SetDefaultsH\000\0227\n\014sync_col"
"umns\030\020 \001(\0132\037.greptime.v1.region.SyncColu"
"mnsH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\"G\n"
"\013SyncColumns\0228\n\013column_defs\030\001 \003(\0132#.grep"
"time.v1.region.RegionColumnDef\"@\n\nAddCol"
"umns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v1."
"region.AddColumn\"C\n\013DropColumns\0224\n\014drop_"
"columns\030\001 \003(\0132\036.greptime.v1.region.DropC"
"olumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132#"
".greptime.v1.region.RegionColumnDef\0220\n\010l"
"ocation\030\003 \001(\0132\036.greptime.v1.AddColumnLoc"
"ation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014Flu"
"shRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\""
"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001(\003\""
"\256\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022.\n"
"\007regular\030\002 \001(\0132\033.greptime.v1.region.Regu"
"larH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptime."
"v1.region.StrictWindowH\000\022\023\n\013parallelism\030"
"\004 \001(\rB\t\n\007options\"\204\001\n\017TruncateRequest\022\021\n\t"
"region_id\030\001 \001(\004\022&\n\003all\030\002 \001(\0132\027.greptime."
"v1.region.AllH\000\022.\n\013time_ranges\030\003 \001(\0132\027.g"
"reptime.v1.TimeRangesH\000B\006\n\004kind\"\005\n\003All\"P"
"\n\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026."
"greptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r"
"\"\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"
"\"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"
"ifest_version\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tr"
"egion_id\030\001 \001(\004\022B\n\022mito_manifest_info\030\002 \001"
"(\0132$.greptime.v1.region.MitoManifestInfo"
"H\000\022F\n\024metric_manifest_info\030\003 \001(\0132&.grept"
"ime.v1.region.MetricManifestInfoH\000B\017\n\rma"
"nifest_info\")\n\023ListMetadataRequest\022\022\n\nre"
"gion_ids\030\001 \003(\004\"&\n\021BuildIndexRequest\022\021\n\tr"
"egion_id\030\001 \001(\004\"\031\n\tFileMetas\022\014\n\004data\030\001 \001("
"\014\"z\n\033ApplyStagingManifestRequest\022\021\n\tregi"
"on_id\030\001 \001(\004\022\026\n\016partition_expr\030\002 \001(\t\022\031\n\021c"
"entral_region_id\030\003 \001(\004\022\025\n\rmanifest_path\030"
"\004 \001(\t2Y\n\006Region\022O\n\006Handle\022!.greptime.v1."
"region.RegionRequest\032\".greptime.v1.regio"
"n.RegionResponseB]\n\025io.greptime.v1.regio"
"nB\006ServerZ<github.com/GreptimeTeam/grept"
"ime-proto/go/greptime/v1/regionb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[4] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -1174,7 +1185,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2freg
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
false, false, 5315, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
false, false, 5519, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
"greptime/v1/region/server.proto",
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 4, 40,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
@@ -3529,18 +3540,29 @@ 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);
};
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_;
}
void InsertRequest::clear_rows() {
if (GetArenaForAllocation() == nullptr && _impl_.rows_ != nullptr) {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
}
void InsertRequest::clear_partition_rule_version() {
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
}
_impl_.partition_rule_version_ = nullptr;
}
InsertRequest::InsertRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -3552,6 +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_.region_id_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -3559,6 +3582,9 @@ 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_);
}
_this->_impl_.region_id_ = from._impl_.region_id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.InsertRequest)
}
@@ -3569,6 +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_.region_id_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
@@ -3586,6 +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_;
}
void InsertRequest::SetCachedSize(int size) const {
@@ -3602,6 +3630,10 @@ void InsertRequest::Clear() {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.region_id_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3628,6 +3660,14 @@ const char* InsertRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_partition_rule_version(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -3670,6 +3710,13 @@ uint8_t* InsertRequest::_InternalSerialize(
_Internal::rows(this).GetCachedSize(), target, stream);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::partition_rule_version(this),
_Internal::partition_rule_version(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -3693,6 +3740,13 @@ size_t InsertRequest::ByteSizeLong() const {
*_impl_.rows_);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.partition_rule_version_);
}
// uint64 region_id = 1;
if (this->_internal_region_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
@@ -3720,6 +3774,10 @@ 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_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
}
@@ -3759,18 +3817,29 @@ 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);
};
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_;
}
void DeleteRequest::clear_rows() {
if (GetArenaForAllocation() == nullptr && _impl_.rows_ != nullptr) {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
}
void DeleteRequest::clear_partition_rule_version() {
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
}
_impl_.partition_rule_version_ = nullptr;
}
DeleteRequest::DeleteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -3782,6 +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_.region_id_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -3789,6 +3859,9 @@ 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_);
}
_this->_impl_.region_id_ = from._impl_.region_id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.DeleteRequest)
}
@@ -3799,6 +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_.region_id_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
@@ -3816,6 +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_;
}
void DeleteRequest::SetCachedSize(int size) const {
@@ -3832,6 +3907,10 @@ void DeleteRequest::Clear() {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.region_id_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3858,6 +3937,14 @@ const char* DeleteRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_partition_rule_version(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -3900,6 +3987,13 @@ uint8_t* DeleteRequest::_InternalSerialize(
_Internal::rows(this).GetCachedSize(), target, stream);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::partition_rule_version(this),
_Internal::partition_rule_version(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -3923,6 +4017,13 @@ size_t DeleteRequest::ByteSizeLong() const {
*_impl_.rows_);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.partition_rule_version_);
}
// uint64 region_id = 1;
if (this->_internal_region_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
@@ -3950,6 +4051,10 @@ 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_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
}
@@ -9505,12 +9610,17 @@ 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);
};
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_;
}
void BulkInsertRequest::set_allocated_arrow_ipc(::greptime::v1::ArrowIpc* arrow_ipc) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_body();
@@ -9535,6 +9645,12 @@ 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_;
}
_impl_.partition_rule_version_ = nullptr;
}
BulkInsertRequest::BulkInsertRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -9545,12 +9661,16 @@ BulkInsertRequest::BulkInsertRequest(const BulkInsertRequest& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
BulkInsertRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.region_id_){}
decltype(_impl_.partition_rule_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_);
}
_this->_impl_.region_id_ = from._impl_.region_id_;
clear_has_body();
switch (from.body_case()) {
@@ -9571,7 +9691,8 @@ inline void BulkInsertRequest::SharedCtor(
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.region_id_){uint64_t{0u}}
decltype(_impl_.partition_rule_version_){nullptr}
, decltype(_impl_.region_id_){uint64_t{0u}}
, decltype(_impl_.body_){}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}
@@ -9590,6 +9711,7 @@ BulkInsertRequest::~BulkInsertRequest() {
inline void BulkInsertRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.partition_rule_version_;
if (has_body()) {
clear_body();
}
@@ -9622,6 +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_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.region_id_ = uint64_t{0u};
clear_body();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
@@ -9649,6 +9775,14 @@ const char* BulkInsertRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont
} else
goto handle_unusual;
continue;
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_partition_rule_version(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -9691,6 +9825,13 @@ 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()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::partition_rule_version(this),
_Internal::partition_rule_version(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -9707,6 +9848,13 @@ 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()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.partition_rule_version_);
}
// uint64 region_id = 1;
if (this->_internal_region_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
@@ -9742,6 +9890,10 @@ 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_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
}
@@ -9772,7 +9924,12 @@ bool BulkInsertRequest::IsInitialized() const {
void BulkInsertRequest::InternalSwap(BulkInsertRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.region_id_, other->_impl_.region_id_);
::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_));
swap(_impl_.body_, other->_impl_.body_);
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}
+315
View File
@@ -1693,6 +1693,7 @@ class InsertRequest final :
enum : int {
kRowsFieldNumber = 2,
kPartitionRuleVersionFieldNumber = 3,
kRegionIdFieldNumber = 1,
};
// .greptime.v1.Rows rows = 2;
@@ -1713,6 +1714,24 @@ 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;
private:
bool _internal_has_partition_rule_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);
private:
const ::greptime::v1::PartitionRuleVersion& _internal_partition_rule_version() const;
::greptime::v1::PartitionRuleVersion* _internal_mutable_partition_rule_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();
// uint64 region_id = 1;
void clear_region_id();
uint64_t region_id() const;
@@ -1731,6 +1750,7 @@ class InsertRequest final :
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::Rows* rows_;
::greptime::v1::PartitionRuleVersion* partition_rule_version_;
uint64_t region_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
@@ -1861,6 +1881,7 @@ class DeleteRequest final :
enum : int {
kRowsFieldNumber = 2,
kPartitionRuleVersionFieldNumber = 3,
kRegionIdFieldNumber = 1,
};
// .greptime.v1.Rows rows = 2;
@@ -1881,6 +1902,24 @@ 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;
private:
bool _internal_has_partition_rule_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);
private:
const ::greptime::v1::PartitionRuleVersion& _internal_partition_rule_version() const;
::greptime::v1::PartitionRuleVersion* _internal_mutable_partition_rule_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();
// uint64 region_id = 1;
void clear_region_id();
uint64_t region_id() const;
@@ -1899,6 +1938,7 @@ class DeleteRequest final :
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::Rows* rows_;
::greptime::v1::PartitionRuleVersion* partition_rule_version_;
uint64_t region_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
@@ -5914,9 +5954,28 @@ class BulkInsertRequest final :
// accessors -------------------------------------------------------
enum : int {
kPartitionRuleVersionFieldNumber = 3,
kRegionIdFieldNumber = 1,
kArrowIpcFieldNumber = 2,
};
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
bool has_partition_rule_version() const;
private:
bool _internal_has_partition_rule_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);
private:
const ::greptime::v1::PartitionRuleVersion& _internal_partition_rule_version() const;
::greptime::v1::PartitionRuleVersion* _internal_mutable_partition_rule_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();
// uint64 region_id = 1;
void clear_region_id();
uint64_t region_id() const;
@@ -5958,6 +6017,7 @@ class BulkInsertRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::PartitionRuleVersion* partition_rule_version_;
uint64_t region_id_;
union BodyUnion {
constexpr BodyUnion() : _constinit_{} {}
@@ -9138,6 +9198,91 @@ 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;
}
inline bool InsertRequest::has_partition_rule_version() const {
return _internal_has_partition_rule_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::PartitionRuleVersion& InsertRequest::partition_rule_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.InsertRequest.partition_rule_version)
return _internal_partition_rule_version();
}
inline void InsertRequest::unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
_impl_.partition_rule_version_ = partition_rule_version;
if (partition_rule_version) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.InsertRequest.partition_rule_version)
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::release_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::unsafe_arena_release_partition_rule_version() {
// @@protoc_insertion_point(field_release:greptime.v1.region.InsertRequest.partition_rule_version)
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::_internal_mutable_partition_rule_version() {
if (_impl_.partition_rule_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionRuleVersion>(GetArenaForAllocation());
_impl_.partition_rule_version_ = p;
}
return _impl_.partition_rule_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)
return _msg;
}
inline void InsertRequest::set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
if (partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_rule_version));
if (message_arena != submessage_arena) {
partition_rule_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_rule_version, submessage_arena);
}
} else {
}
_impl_.partition_rule_version_ = partition_rule_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.InsertRequest.partition_rule_version)
}
// -------------------------------------------------------------------
// DeleteRequest
@@ -9247,6 +9392,91 @@ 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;
}
inline bool DeleteRequest::has_partition_rule_version() const {
return _internal_has_partition_rule_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::PartitionRuleVersion& DeleteRequest::partition_rule_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.DeleteRequest.partition_rule_version)
return _internal_partition_rule_version();
}
inline void DeleteRequest::unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
_impl_.partition_rule_version_ = partition_rule_version;
if (partition_rule_version) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.DeleteRequest.partition_rule_version)
}
inline ::greptime::v1::PartitionRuleVersion* DeleteRequest::release_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* DeleteRequest::unsafe_arena_release_partition_rule_version() {
// @@protoc_insertion_point(field_release:greptime.v1.region.DeleteRequest.partition_rule_version)
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* DeleteRequest::_internal_mutable_partition_rule_version() {
if (_impl_.partition_rule_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionRuleVersion>(GetArenaForAllocation());
_impl_.partition_rule_version_ = p;
}
return _impl_.partition_rule_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)
return _msg;
}
inline void DeleteRequest::set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
if (partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_rule_version));
if (message_arena != submessage_arena) {
partition_rule_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_rule_version, submessage_arena);
}
} else {
}
_impl_.partition_rule_version_ = partition_rule_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.DeleteRequest.partition_rule_version)
}
// -------------------------------------------------------------------
// QueryRequest
@@ -11996,6 +12226,91 @@ 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;
}
inline bool BulkInsertRequest::has_partition_rule_version() const {
return _internal_has_partition_rule_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::PartitionRuleVersion& BulkInsertRequest::partition_rule_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.BulkInsertRequest.partition_rule_version)
return _internal_partition_rule_version();
}
inline void BulkInsertRequest::unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
_impl_.partition_rule_version_ = partition_rule_version;
if (partition_rule_version) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.BulkInsertRequest.partition_rule_version)
}
inline ::greptime::v1::PartitionRuleVersion* BulkInsertRequest::release_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* BulkInsertRequest::unsafe_arena_release_partition_rule_version() {
// @@protoc_insertion_point(field_release:greptime.v1.region.BulkInsertRequest.partition_rule_version)
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* BulkInsertRequest::_internal_mutable_partition_rule_version() {
if (_impl_.partition_rule_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionRuleVersion>(GetArenaForAllocation());
_impl_.partition_rule_version_ = p;
}
return _impl_.partition_rule_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)
return _msg;
}
inline void BulkInsertRequest::set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
if (partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_rule_version));
if (message_arena != submessage_arena) {
partition_rule_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_rule_version, submessage_arena);
}
} else {
}
_impl_.partition_rule_version_ = partition_rule_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.BulkInsertRequest.partition_rule_version)
}
inline bool BulkInsertRequest::has_body() const {
return body_case() != BODY_NOT_SET;
}