chore: rename flags (#200)

This commit is contained in:
Yohan Wal
2024-11-15 14:38:11 +08:00
committed by GitHub
parent e1070ad3e7
commit fb4e2146b1
9 changed files with 983 additions and 983 deletions
+34 -34
View File
@@ -832,8 +832,8 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
"rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum"
"ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns"
"H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r"
"egion.DropColumnsH\000\022=\n\023change_column_typ"
"es\030\005 \001(\0132\036.greptime.v1.ChangeColumnTypes"
"egion.DropColumnsH\000\022=\n\023modify_column_typ"
"es\030\005 \001(\0132\036.greptime.v1.ModifyColumnTypes"
"H\000\022\?\n\024change_table_options\030\006 \001(\0132\037.grept"
"ime.v1.ChangeTableOptionsH\000\022C\n\026change_co"
"lumn_fulltext\030\007 \001(\0132!.greptime.v1.Change"
@@ -5329,7 +5329,7 @@ class AlterRequest::_Internal {
public:
static const ::greptime::v1::region::AddColumns& add_columns(const AlterRequest* msg);
static const ::greptime::v1::region::DropColumns& drop_columns(const AlterRequest* msg);
static const ::greptime::v1::ChangeColumnTypes& change_column_types(const AlterRequest* msg);
static const ::greptime::v1::ModifyColumnTypes& modify_column_types(const AlterRequest* msg);
static const ::greptime::v1::ChangeTableOptions& change_table_options(const AlterRequest* msg);
static const ::greptime::v1::ChangeColumnFulltext& change_column_fulltext(const AlterRequest* msg);
};
@@ -5342,9 +5342,9 @@ const ::greptime::v1::region::DropColumns&
AlterRequest::_Internal::drop_columns(const AlterRequest* msg) {
return *msg->_impl_.kind_.drop_columns_;
}
const ::greptime::v1::ChangeColumnTypes&
AlterRequest::_Internal::change_column_types(const AlterRequest* msg) {
return *msg->_impl_.kind_.change_column_types_;
const ::greptime::v1::ModifyColumnTypes&
AlterRequest::_Internal::modify_column_types(const AlterRequest* msg) {
return *msg->_impl_.kind_.modify_column_types_;
}
const ::greptime::v1::ChangeTableOptions&
AlterRequest::_Internal::change_table_options(const AlterRequest* msg) {
@@ -5384,26 +5384,26 @@ void AlterRequest::set_allocated_drop_columns(::greptime::v1::region::DropColumn
}
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.drop_columns)
}
void AlterRequest::set_allocated_change_column_types(::greptime::v1::ChangeColumnTypes* change_column_types) {
void AlterRequest::set_allocated_modify_column_types(::greptime::v1::ModifyColumnTypes* modify_column_types) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_kind();
if (change_column_types) {
if (modify_column_types) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_column_types));
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(modify_column_types));
if (message_arena != submessage_arena) {
change_column_types = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, change_column_types, submessage_arena);
modify_column_types = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, modify_column_types, submessage_arena);
}
set_has_change_column_types();
_impl_.kind_.change_column_types_ = change_column_types;
set_has_modify_column_types();
_impl_.kind_.modify_column_types_ = modify_column_types;
}
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_column_types)
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.modify_column_types)
}
void AlterRequest::clear_change_column_types() {
if (_internal_has_change_column_types()) {
void AlterRequest::clear_modify_column_types() {
if (_internal_has_modify_column_types()) {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.kind_.change_column_types_;
delete _impl_.kind_.modify_column_types_;
}
clear_has_kind();
}
@@ -5488,9 +5488,9 @@ AlterRequest::AlterRequest(const AlterRequest& from)
from._internal_drop_columns());
break;
}
case kChangeColumnTypes: {
_this->_internal_mutable_change_column_types()->::greptime::v1::ChangeColumnTypes::MergeFrom(
from._internal_change_column_types());
case kModifyColumnTypes: {
_this->_internal_mutable_modify_column_types()->::greptime::v1::ModifyColumnTypes::MergeFrom(
from._internal_modify_column_types());
break;
}
case kChangeTableOptions: {
@@ -5559,9 +5559,9 @@ void AlterRequest::clear_kind() {
}
break;
}
case kChangeColumnTypes: {
case kModifyColumnTypes: {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.kind_.change_column_types_;
delete _impl_.kind_.modify_column_types_;
}
break;
}
@@ -5636,10 +5636,10 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// .greptime.v1.ChangeColumnTypes change_column_types = 5;
// .greptime.v1.ModifyColumnTypes modify_column_types = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
ptr = ctx->ParseMessage(_internal_mutable_change_column_types(), ptr);
ptr = ctx->ParseMessage(_internal_mutable_modify_column_types(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
@@ -5715,11 +5715,11 @@ uint8_t* AlterRequest::_InternalSerialize(
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_schema_version(), target);
}
// .greptime.v1.ChangeColumnTypes change_column_types = 5;
if (_internal_has_change_column_types()) {
// .greptime.v1.ModifyColumnTypes modify_column_types = 5;
if (_internal_has_modify_column_types()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(5, _Internal::change_column_types(this),
_Internal::change_column_types(this).GetCachedSize(), target, stream);
InternalWriteMessage(5, _Internal::modify_column_types(this),
_Internal::modify_column_types(this).GetCachedSize(), target, stream);
}
// .greptime.v1.ChangeTableOptions change_table_options = 6;
@@ -5777,11 +5777,11 @@ size_t AlterRequest::ByteSizeLong() const {
*_impl_.kind_.drop_columns_);
break;
}
// .greptime.v1.ChangeColumnTypes change_column_types = 5;
case kChangeColumnTypes: {
// .greptime.v1.ModifyColumnTypes modify_column_types = 5;
case kModifyColumnTypes: {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.kind_.change_column_types_);
*_impl_.kind_.modify_column_types_);
break;
}
// .greptime.v1.ChangeTableOptions change_table_options = 6;
@@ -5837,9 +5837,9 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
from._internal_drop_columns());
break;
}
case kChangeColumnTypes: {
_this->_internal_mutable_change_column_types()->::greptime::v1::ChangeColumnTypes::MergeFrom(
from._internal_change_column_types());
case kModifyColumnTypes: {
_this->_internal_mutable_modify_column_types()->::greptime::v1::ModifyColumnTypes::MergeFrom(
from._internal_modify_column_types());
break;
}
case kChangeTableOptions: {
+54 -54
View File
@@ -3250,7 +3250,7 @@ class AlterRequest final :
enum KindCase {
kAddColumns = 2,
kDropColumns = 3,
kChangeColumnTypes = 5,
kModifyColumnTypes = 5,
kChangeTableOptions = 6,
kChangeColumnFulltext = 7,
KIND_NOT_SET = 0,
@@ -3338,7 +3338,7 @@ class AlterRequest final :
kSchemaVersionFieldNumber = 4,
kAddColumnsFieldNumber = 2,
kDropColumnsFieldNumber = 3,
kChangeColumnTypesFieldNumber = 5,
kModifyColumnTypesFieldNumber = 5,
kChangeTableOptionsFieldNumber = 6,
kChangeColumnFulltextFieldNumber = 7,
};
@@ -3396,23 +3396,23 @@ class AlterRequest final :
::greptime::v1::region::DropColumns* drop_columns);
::greptime::v1::region::DropColumns* unsafe_arena_release_drop_columns();
// .greptime.v1.ChangeColumnTypes change_column_types = 5;
bool has_change_column_types() const;
// .greptime.v1.ModifyColumnTypes modify_column_types = 5;
bool has_modify_column_types() const;
private:
bool _internal_has_change_column_types() const;
bool _internal_has_modify_column_types() const;
public:
void clear_change_column_types();
const ::greptime::v1::ChangeColumnTypes& change_column_types() const;
PROTOBUF_NODISCARD ::greptime::v1::ChangeColumnTypes* release_change_column_types();
::greptime::v1::ChangeColumnTypes* mutable_change_column_types();
void set_allocated_change_column_types(::greptime::v1::ChangeColumnTypes* change_column_types);
void clear_modify_column_types();
const ::greptime::v1::ModifyColumnTypes& modify_column_types() const;
PROTOBUF_NODISCARD ::greptime::v1::ModifyColumnTypes* release_modify_column_types();
::greptime::v1::ModifyColumnTypes* mutable_modify_column_types();
void set_allocated_modify_column_types(::greptime::v1::ModifyColumnTypes* modify_column_types);
private:
const ::greptime::v1::ChangeColumnTypes& _internal_change_column_types() const;
::greptime::v1::ChangeColumnTypes* _internal_mutable_change_column_types();
const ::greptime::v1::ModifyColumnTypes& _internal_modify_column_types() const;
::greptime::v1::ModifyColumnTypes* _internal_mutable_modify_column_types();
public:
void unsafe_arena_set_allocated_change_column_types(
::greptime::v1::ChangeColumnTypes* change_column_types);
::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types();
void unsafe_arena_set_allocated_modify_column_types(
::greptime::v1::ModifyColumnTypes* modify_column_types);
::greptime::v1::ModifyColumnTypes* unsafe_arena_release_modify_column_types();
// .greptime.v1.ChangeTableOptions change_table_options = 6;
bool has_change_table_options() const;
@@ -3457,7 +3457,7 @@ class AlterRequest final :
class _Internal;
void set_has_add_columns();
void set_has_drop_columns();
void set_has_change_column_types();
void set_has_modify_column_types();
void set_has_change_table_options();
void set_has_change_column_fulltext();
@@ -3475,7 +3475,7 @@ class AlterRequest final :
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
::greptime::v1::region::AddColumns* add_columns_;
::greptime::v1::region::DropColumns* drop_columns_;
::greptime::v1::ChangeColumnTypes* change_column_types_;
::greptime::v1::ModifyColumnTypes* modify_column_types_;
::greptime::v1::ChangeTableOptions* change_table_options_;
::greptime::v1::ChangeColumnFulltext* change_column_fulltext_;
} kind_;
@@ -7668,69 +7668,69 @@ inline ::greptime::v1::region::DropColumns* AlterRequest::mutable_drop_columns()
return _msg;
}
// .greptime.v1.ChangeColumnTypes change_column_types = 5;
inline bool AlterRequest::_internal_has_change_column_types() const {
return kind_case() == kChangeColumnTypes;
// .greptime.v1.ModifyColumnTypes modify_column_types = 5;
inline bool AlterRequest::_internal_has_modify_column_types() const {
return kind_case() == kModifyColumnTypes;
}
inline bool AlterRequest::has_change_column_types() const {
return _internal_has_change_column_types();
inline bool AlterRequest::has_modify_column_types() const {
return _internal_has_modify_column_types();
}
inline void AlterRequest::set_has_change_column_types() {
_impl_._oneof_case_[0] = kChangeColumnTypes;
inline void AlterRequest::set_has_modify_column_types() {
_impl_._oneof_case_[0] = kModifyColumnTypes;
}
inline ::greptime::v1::ChangeColumnTypes* AlterRequest::release_change_column_types() {
// @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_column_types)
if (_internal_has_change_column_types()) {
inline ::greptime::v1::ModifyColumnTypes* AlterRequest::release_modify_column_types() {
// @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.modify_column_types)
if (_internal_has_modify_column_types()) {
clear_has_kind();
::greptime::v1::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_;
::greptime::v1::ModifyColumnTypes* temp = _impl_.kind_.modify_column_types_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
_impl_.kind_.change_column_types_ = nullptr;
_impl_.kind_.modify_column_types_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::greptime::v1::ChangeColumnTypes& AlterRequest::_internal_change_column_types() const {
return _internal_has_change_column_types()
? *_impl_.kind_.change_column_types_
: reinterpret_cast< ::greptime::v1::ChangeColumnTypes&>(::greptime::v1::_ChangeColumnTypes_default_instance_);
inline const ::greptime::v1::ModifyColumnTypes& AlterRequest::_internal_modify_column_types() const {
return _internal_has_modify_column_types()
? *_impl_.kind_.modify_column_types_
: reinterpret_cast< ::greptime::v1::ModifyColumnTypes&>(::greptime::v1::_ModifyColumnTypes_default_instance_);
}
inline const ::greptime::v1::ChangeColumnTypes& AlterRequest::change_column_types() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_column_types)
return _internal_change_column_types();
inline const ::greptime::v1::ModifyColumnTypes& AlterRequest::modify_column_types() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.modify_column_types)
return _internal_modify_column_types();
}
inline ::greptime::v1::ChangeColumnTypes* AlterRequest::unsafe_arena_release_change_column_types() {
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_column_types)
if (_internal_has_change_column_types()) {
inline ::greptime::v1::ModifyColumnTypes* AlterRequest::unsafe_arena_release_modify_column_types() {
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.modify_column_types)
if (_internal_has_modify_column_types()) {
clear_has_kind();
::greptime::v1::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_;
_impl_.kind_.change_column_types_ = nullptr;
::greptime::v1::ModifyColumnTypes* temp = _impl_.kind_.modify_column_types_;
_impl_.kind_.modify_column_types_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void AlterRequest::unsafe_arena_set_allocated_change_column_types(::greptime::v1::ChangeColumnTypes* change_column_types) {
inline void AlterRequest::unsafe_arena_set_allocated_modify_column_types(::greptime::v1::ModifyColumnTypes* modify_column_types) {
clear_kind();
if (change_column_types) {
set_has_change_column_types();
_impl_.kind_.change_column_types_ = change_column_types;
if (modify_column_types) {
set_has_modify_column_types();
_impl_.kind_.modify_column_types_ = modify_column_types;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_column_types)
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.modify_column_types)
}
inline ::greptime::v1::ChangeColumnTypes* AlterRequest::_internal_mutable_change_column_types() {
if (!_internal_has_change_column_types()) {
inline ::greptime::v1::ModifyColumnTypes* AlterRequest::_internal_mutable_modify_column_types() {
if (!_internal_has_modify_column_types()) {
clear_kind();
set_has_change_column_types();
_impl_.kind_.change_column_types_ = CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(GetArenaForAllocation());
set_has_modify_column_types();
_impl_.kind_.modify_column_types_ = CreateMaybeMessage< ::greptime::v1::ModifyColumnTypes >(GetArenaForAllocation());
}
return _impl_.kind_.change_column_types_;
return _impl_.kind_.modify_column_types_;
}
inline ::greptime::v1::ChangeColumnTypes* AlterRequest::mutable_change_column_types() {
::greptime::v1::ChangeColumnTypes* _msg = _internal_mutable_change_column_types();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_column_types)
inline ::greptime::v1::ModifyColumnTypes* AlterRequest::mutable_modify_column_types() {
::greptime::v1::ModifyColumnTypes* _msg = _internal_mutable_modify_column_types();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.modify_column_types)
return _msg;
}