feat: add UnsetTableOptions (#201)
This commit is contained in:
+500
-223
File diff suppressed because it is too large
Load Diff
+541
-197
File diff suppressed because it is too large
Load Diff
@@ -625,6 +625,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.schema_version_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.kind_),
|
||||
~0u, // no _has_bits_
|
||||
@@ -723,16 +724,16 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 161, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
||||
{ 168, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
|
||||
{ 175, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
||||
{ 190, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
||||
{ 197, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
||||
{ 204, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
||||
{ 212, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
||||
{ 219, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||
{ 226, -1, -1, sizeof(::greptime::v1::region::Regular)},
|
||||
{ 232, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
||||
{ 239, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||
{ 249, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
||||
{ 256, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||
{ 191, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
||||
{ 198, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
||||
{ 205, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
||||
{ 213, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
||||
{ 220, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||
{ 227, -1, -1, sizeof(::greptime::v1::region::Regular)},
|
||||
{ 233, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
||||
{ 240, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||
{ 250, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
||||
{ 257, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -829,39 +830,41 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
|
||||
".\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\tregion_id\030\001 \001"
|
||||
"(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003(\0132 ."
|
||||
"greptime.v1.region.AlterRequest\"\263\003\n\014Alte"
|
||||
"greptime.v1.region.AlterRequest\"\354\003\n\014Alte"
|
||||
"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\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\022=\n\023set_colum"
|
||||
"n_fulltext\030\007 \001(\0132\036.greptime.v1.SetColumn"
|
||||
"FulltextH\000\022A\n\025unset_column_fulltext\030\010 \001("
|
||||
"\0132 .greptime.v1.UnsetColumnFulltextH\000\022\026\n"
|
||||
"\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddColu"
|
||||
"mns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v1.r"
|
||||
"egion.AddColumn\"C\n\013DropColumns\0224\n\014drop_c"
|
||||
"olumns\030\001 \003(\0132\036.greptime.v1.region.DropCo"
|
||||
"lumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132#."
|
||||
"greptime.v1.region.RegionColumnDef\0220\n\010lo"
|
||||
"cation\030\003 \001(\0132\036.greptime.v1.AddColumnLoca"
|
||||
"tion\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014Flus"
|
||||
"hRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&"
|
||||
"\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001(\003\"\231"
|
||||
"\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022.\n\007"
|
||||
"regular\030\002 \001(\0132\033.greptime.v1.region.Regul"
|
||||
"arH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptime.v"
|
||||
"1.region.StrictWindowH\000B\t\n\007options\"$\n\017Tr"
|
||||
"uncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017Regi"
|
||||
"onColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.grepti"
|
||||
"me.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Re"
|
||||
"gion\022O\n\006Handle\022!.greptime.v1.region.Regi"
|
||||
"onRequest\032\".greptime.v1.region.RegionRes"
|
||||
"ponseB]\n\025io.greptime.v1.regionB\006ServerZ<"
|
||||
"github.com/GreptimeTeam/greptime-proto/g"
|
||||
"o/greptime/v1/regionb\006proto3"
|
||||
"H\000\0229\n\021set_table_options\030\006 \001(\0132\034.greptime"
|
||||
".v1.SetTableOptionsH\000\022=\n\023set_column_full"
|
||||
"text\030\007 \001(\0132\036.greptime.v1.SetColumnFullte"
|
||||
"xtH\000\022A\n\025unset_column_fulltext\030\010 \001(\0132 .gr"
|
||||
"eptime.v1.UnsetColumnFulltextH\000\022=\n\023unset"
|
||||
"_table_options\030\t \001(\0132\036.greptime.v1.Unset"
|
||||
"TableOptionsH\000\022\026\n\016schema_version\030\004 \001(\004B\006"
|
||||
"\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003("
|
||||
"\0132\035.greptime.v1.region.AddColumn\"C\n\013Drop"
|
||||
"Columns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime"
|
||||
".v1.region.DropColumn\"v\n\tAddColumn\0227\n\nco"
|
||||
"lumn_def\030\001 \001(\0132#.greptime.v1.region.Regi"
|
||||
"onColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime"
|
||||
".v1.AddColumnLocation\"\032\n\nDropColumn\022\014\n\004n"
|
||||
"ame\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001"
|
||||
" \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016windo"
|
||||
"w_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\tre"
|
||||
"gion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.greptim"
|
||||
"e.v1.region.RegularH\000\0229\n\rstrict_window\030\003"
|
||||
" \001(\0132 .greptime.v1.region.StrictWindowH\000"
|
||||
"B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregion"
|
||||
"_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_d"
|
||||
"ef\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolu"
|
||||
"mn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grepti"
|
||||
"me.v1.region.RegionRequest\032\".greptime.v1"
|
||||
".region.RegionResponseB]\n\025io.greptime.v1"
|
||||
".regionB\006ServerZ<github.com/GreptimeTeam"
|
||||
"/greptime-proto/go/greptime/v1/regionb\006p"
|
||||
"roto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
@@ -870,7 +873,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, 3708, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||
false, false, 3765, 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, 3, 30,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
|
||||
@@ -5332,9 +5335,10 @@ class AlterRequest::_Internal {
|
||||
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::ModifyColumnTypes& modify_column_types(const AlterRequest* msg);
|
||||
static const ::greptime::v1::ChangeTableOptions& change_table_options(const AlterRequest* msg);
|
||||
static const ::greptime::v1::SetTableOptions& set_table_options(const AlterRequest* msg);
|
||||
static const ::greptime::v1::SetColumnFulltext& set_column_fulltext(const AlterRequest* msg);
|
||||
static const ::greptime::v1::UnsetColumnFulltext& unset_column_fulltext(const AlterRequest* msg);
|
||||
static const ::greptime::v1::UnsetTableOptions& unset_table_options(const AlterRequest* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::region::AddColumns&
|
||||
@@ -5349,9 +5353,9 @@ 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) {
|
||||
return *msg->_impl_.kind_.change_table_options_;
|
||||
const ::greptime::v1::SetTableOptions&
|
||||
AlterRequest::_Internal::set_table_options(const AlterRequest* msg) {
|
||||
return *msg->_impl_.kind_.set_table_options_;
|
||||
}
|
||||
const ::greptime::v1::SetColumnFulltext&
|
||||
AlterRequest::_Internal::set_column_fulltext(const AlterRequest* msg) {
|
||||
@@ -5361,6 +5365,10 @@ const ::greptime::v1::UnsetColumnFulltext&
|
||||
AlterRequest::_Internal::unset_column_fulltext(const AlterRequest* msg) {
|
||||
return *msg->_impl_.kind_.unset_column_fulltext_;
|
||||
}
|
||||
const ::greptime::v1::UnsetTableOptions&
|
||||
AlterRequest::_Internal::unset_table_options(const AlterRequest* msg) {
|
||||
return *msg->_impl_.kind_.unset_table_options_;
|
||||
}
|
||||
void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_kind();
|
||||
@@ -5415,26 +5423,26 @@ void AlterRequest::clear_modify_column_types() {
|
||||
clear_has_kind();
|
||||
}
|
||||
}
|
||||
void AlterRequest::set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) {
|
||||
void AlterRequest::set_allocated_set_table_options(::greptime::v1::SetTableOptions* set_table_options) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_kind();
|
||||
if (change_table_options) {
|
||||
if (set_table_options) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_table_options));
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(set_table_options));
|
||||
if (message_arena != submessage_arena) {
|
||||
change_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, change_table_options, submessage_arena);
|
||||
set_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, set_table_options, submessage_arena);
|
||||
}
|
||||
set_has_change_table_options();
|
||||
_impl_.kind_.change_table_options_ = change_table_options;
|
||||
set_has_set_table_options();
|
||||
_impl_.kind_.set_table_options_ = set_table_options;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_table_options)
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.set_table_options)
|
||||
}
|
||||
void AlterRequest::clear_change_table_options() {
|
||||
if (_internal_has_change_table_options()) {
|
||||
void AlterRequest::clear_set_table_options() {
|
||||
if (_internal_has_set_table_options()) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.change_table_options_;
|
||||
delete _impl_.kind_.set_table_options_;
|
||||
}
|
||||
clear_has_kind();
|
||||
}
|
||||
@@ -5487,6 +5495,30 @@ void AlterRequest::clear_unset_column_fulltext() {
|
||||
clear_has_kind();
|
||||
}
|
||||
}
|
||||
void AlterRequest::set_allocated_unset_table_options(::greptime::v1::UnsetTableOptions* unset_table_options) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_kind();
|
||||
if (unset_table_options) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(unset_table_options));
|
||||
if (message_arena != submessage_arena) {
|
||||
unset_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, unset_table_options, submessage_arena);
|
||||
}
|
||||
set_has_unset_table_options();
|
||||
_impl_.kind_.unset_table_options_ = unset_table_options;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.unset_table_options)
|
||||
}
|
||||
void AlterRequest::clear_unset_table_options() {
|
||||
if (_internal_has_unset_table_options()) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.unset_table_options_;
|
||||
}
|
||||
clear_has_kind();
|
||||
}
|
||||
}
|
||||
AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -5524,9 +5556,9 @@ AlterRequest::AlterRequest(const AlterRequest& from)
|
||||
from._internal_modify_column_types());
|
||||
break;
|
||||
}
|
||||
case kChangeTableOptions: {
|
||||
_this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom(
|
||||
from._internal_change_table_options());
|
||||
case kSetTableOptions: {
|
||||
_this->_internal_mutable_set_table_options()->::greptime::v1::SetTableOptions::MergeFrom(
|
||||
from._internal_set_table_options());
|
||||
break;
|
||||
}
|
||||
case kSetColumnFulltext: {
|
||||
@@ -5539,6 +5571,11 @@ AlterRequest::AlterRequest(const AlterRequest& from)
|
||||
from._internal_unset_column_fulltext());
|
||||
break;
|
||||
}
|
||||
case kUnsetTableOptions: {
|
||||
_this->_internal_mutable_unset_table_options()->::greptime::v1::UnsetTableOptions::MergeFrom(
|
||||
from._internal_unset_table_options());
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -5601,9 +5638,9 @@ void AlterRequest::clear_kind() {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case kChangeTableOptions: {
|
||||
case kSetTableOptions: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.change_table_options_;
|
||||
delete _impl_.kind_.set_table_options_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -5619,6 +5656,12 @@ void AlterRequest::clear_kind() {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case kUnsetTableOptions: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.unset_table_options_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -5686,10 +5729,10 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
||||
// .greptime.v1.SetTableOptions set_table_options = 6;
|
||||
case 6:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_change_table_options(), ptr);
|
||||
ptr = ctx->ParseMessage(_internal_mutable_set_table_options(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
@@ -5710,6 +5753,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.UnsetTableOptions unset_table_options = 9;
|
||||
case 9:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_unset_table_options(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -5772,11 +5823,11 @@ uint8_t* AlterRequest::_InternalSerialize(
|
||||
_Internal::modify_column_types(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
||||
if (_internal_has_change_table_options()) {
|
||||
// .greptime.v1.SetTableOptions set_table_options = 6;
|
||||
if (_internal_has_set_table_options()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(6, _Internal::change_table_options(this),
|
||||
_Internal::change_table_options(this).GetCachedSize(), target, stream);
|
||||
InternalWriteMessage(6, _Internal::set_table_options(this),
|
||||
_Internal::set_table_options(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.SetColumnFulltext set_column_fulltext = 7;
|
||||
@@ -5793,6 +5844,13 @@ uint8_t* AlterRequest::_InternalSerialize(
|
||||
_Internal::unset_column_fulltext(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.UnsetTableOptions unset_table_options = 9;
|
||||
if (_internal_has_unset_table_options()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(9, _Internal::unset_table_options(this),
|
||||
_Internal::unset_table_options(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);
|
||||
@@ -5841,11 +5899,11 @@ size_t AlterRequest::ByteSizeLong() const {
|
||||
*_impl_.kind_.modify_column_types_);
|
||||
break;
|
||||
}
|
||||
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
||||
case kChangeTableOptions: {
|
||||
// .greptime.v1.SetTableOptions set_table_options = 6;
|
||||
case kSetTableOptions: {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.kind_.change_table_options_);
|
||||
*_impl_.kind_.set_table_options_);
|
||||
break;
|
||||
}
|
||||
// .greptime.v1.SetColumnFulltext set_column_fulltext = 7;
|
||||
@@ -5862,6 +5920,13 @@ size_t AlterRequest::ByteSizeLong() const {
|
||||
*_impl_.kind_.unset_column_fulltext_);
|
||||
break;
|
||||
}
|
||||
// .greptime.v1.UnsetTableOptions unset_table_options = 9;
|
||||
case kUnsetTableOptions: {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.kind_.unset_table_options_);
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -5906,9 +5971,9 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
|
||||
from._internal_modify_column_types());
|
||||
break;
|
||||
}
|
||||
case kChangeTableOptions: {
|
||||
_this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom(
|
||||
from._internal_change_table_options());
|
||||
case kSetTableOptions: {
|
||||
_this->_internal_mutable_set_table_options()->::greptime::v1::SetTableOptions::MergeFrom(
|
||||
from._internal_set_table_options());
|
||||
break;
|
||||
}
|
||||
case kSetColumnFulltext: {
|
||||
@@ -5921,6 +5986,11 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
|
||||
from._internal_unset_column_fulltext());
|
||||
break;
|
||||
}
|
||||
case kUnsetTableOptions: {
|
||||
_this->_internal_mutable_unset_table_options()->::greptime::v1::UnsetTableOptions::MergeFrom(
|
||||
from._internal_unset_table_options());
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -3251,9 +3251,10 @@ class AlterRequest final :
|
||||
kAddColumns = 2,
|
||||
kDropColumns = 3,
|
||||
kModifyColumnTypes = 5,
|
||||
kChangeTableOptions = 6,
|
||||
kSetTableOptions = 6,
|
||||
kSetColumnFulltext = 7,
|
||||
kUnsetColumnFulltext = 8,
|
||||
kUnsetTableOptions = 9,
|
||||
KIND_NOT_SET = 0,
|
||||
};
|
||||
|
||||
@@ -3340,9 +3341,10 @@ class AlterRequest final :
|
||||
kAddColumnsFieldNumber = 2,
|
||||
kDropColumnsFieldNumber = 3,
|
||||
kModifyColumnTypesFieldNumber = 5,
|
||||
kChangeTableOptionsFieldNumber = 6,
|
||||
kSetTableOptionsFieldNumber = 6,
|
||||
kSetColumnFulltextFieldNumber = 7,
|
||||
kUnsetColumnFulltextFieldNumber = 8,
|
||||
kUnsetTableOptionsFieldNumber = 9,
|
||||
};
|
||||
// uint64 region_id = 1;
|
||||
void clear_region_id();
|
||||
@@ -3416,23 +3418,23 @@ class AlterRequest final :
|
||||
::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;
|
||||
// .greptime.v1.SetTableOptions set_table_options = 6;
|
||||
bool has_set_table_options() const;
|
||||
private:
|
||||
bool _internal_has_change_table_options() const;
|
||||
bool _internal_has_set_table_options() const;
|
||||
public:
|
||||
void clear_change_table_options();
|
||||
const ::greptime::v1::ChangeTableOptions& change_table_options() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::ChangeTableOptions* release_change_table_options();
|
||||
::greptime::v1::ChangeTableOptions* mutable_change_table_options();
|
||||
void set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options);
|
||||
void clear_set_table_options();
|
||||
const ::greptime::v1::SetTableOptions& set_table_options() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::SetTableOptions* release_set_table_options();
|
||||
::greptime::v1::SetTableOptions* mutable_set_table_options();
|
||||
void set_allocated_set_table_options(::greptime::v1::SetTableOptions* set_table_options);
|
||||
private:
|
||||
const ::greptime::v1::ChangeTableOptions& _internal_change_table_options() const;
|
||||
::greptime::v1::ChangeTableOptions* _internal_mutable_change_table_options();
|
||||
const ::greptime::v1::SetTableOptions& _internal_set_table_options() const;
|
||||
::greptime::v1::SetTableOptions* _internal_mutable_set_table_options();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_change_table_options(
|
||||
::greptime::v1::ChangeTableOptions* change_table_options);
|
||||
::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options();
|
||||
void unsafe_arena_set_allocated_set_table_options(
|
||||
::greptime::v1::SetTableOptions* set_table_options);
|
||||
::greptime::v1::SetTableOptions* unsafe_arena_release_set_table_options();
|
||||
|
||||
// .greptime.v1.SetColumnFulltext set_column_fulltext = 7;
|
||||
bool has_set_column_fulltext() const;
|
||||
@@ -3470,6 +3472,24 @@ class AlterRequest final :
|
||||
::greptime::v1::UnsetColumnFulltext* unset_column_fulltext);
|
||||
::greptime::v1::UnsetColumnFulltext* unsafe_arena_release_unset_column_fulltext();
|
||||
|
||||
// .greptime.v1.UnsetTableOptions unset_table_options = 9;
|
||||
bool has_unset_table_options() const;
|
||||
private:
|
||||
bool _internal_has_unset_table_options() const;
|
||||
public:
|
||||
void clear_unset_table_options();
|
||||
const ::greptime::v1::UnsetTableOptions& unset_table_options() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::UnsetTableOptions* release_unset_table_options();
|
||||
::greptime::v1::UnsetTableOptions* mutable_unset_table_options();
|
||||
void set_allocated_unset_table_options(::greptime::v1::UnsetTableOptions* unset_table_options);
|
||||
private:
|
||||
const ::greptime::v1::UnsetTableOptions& _internal_unset_table_options() const;
|
||||
::greptime::v1::UnsetTableOptions* _internal_mutable_unset_table_options();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_unset_table_options(
|
||||
::greptime::v1::UnsetTableOptions* unset_table_options);
|
||||
::greptime::v1::UnsetTableOptions* unsafe_arena_release_unset_table_options();
|
||||
|
||||
void clear_kind();
|
||||
KindCase kind_case() const;
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest)
|
||||
@@ -3478,9 +3498,10 @@ class AlterRequest final :
|
||||
void set_has_add_columns();
|
||||
void set_has_drop_columns();
|
||||
void set_has_modify_column_types();
|
||||
void set_has_change_table_options();
|
||||
void set_has_set_table_options();
|
||||
void set_has_set_column_fulltext();
|
||||
void set_has_unset_column_fulltext();
|
||||
void set_has_unset_table_options();
|
||||
|
||||
inline bool has_kind() const;
|
||||
inline void clear_has_kind();
|
||||
@@ -3497,9 +3518,10 @@ class AlterRequest final :
|
||||
::greptime::v1::region::AddColumns* add_columns_;
|
||||
::greptime::v1::region::DropColumns* drop_columns_;
|
||||
::greptime::v1::ModifyColumnTypes* modify_column_types_;
|
||||
::greptime::v1::ChangeTableOptions* change_table_options_;
|
||||
::greptime::v1::SetTableOptions* set_table_options_;
|
||||
::greptime::v1::SetColumnFulltext* set_column_fulltext_;
|
||||
::greptime::v1::UnsetColumnFulltext* unset_column_fulltext_;
|
||||
::greptime::v1::UnsetTableOptions* unset_table_options_;
|
||||
} kind_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
uint32_t _oneof_case_[1];
|
||||
@@ -7756,69 +7778,69 @@ inline ::greptime::v1::ModifyColumnTypes* AlterRequest::mutable_modify_column_ty
|
||||
return _msg;
|
||||
}
|
||||
|
||||
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
||||
inline bool AlterRequest::_internal_has_change_table_options() const {
|
||||
return kind_case() == kChangeTableOptions;
|
||||
// .greptime.v1.SetTableOptions set_table_options = 6;
|
||||
inline bool AlterRequest::_internal_has_set_table_options() const {
|
||||
return kind_case() == kSetTableOptions;
|
||||
}
|
||||
inline bool AlterRequest::has_change_table_options() const {
|
||||
return _internal_has_change_table_options();
|
||||
inline bool AlterRequest::has_set_table_options() const {
|
||||
return _internal_has_set_table_options();
|
||||
}
|
||||
inline void AlterRequest::set_has_change_table_options() {
|
||||
_impl_._oneof_case_[0] = kChangeTableOptions;
|
||||
inline void AlterRequest::set_has_set_table_options() {
|
||||
_impl_._oneof_case_[0] = kSetTableOptions;
|
||||
}
|
||||
inline ::greptime::v1::ChangeTableOptions* AlterRequest::release_change_table_options() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_table_options)
|
||||
if (_internal_has_change_table_options()) {
|
||||
inline ::greptime::v1::SetTableOptions* AlterRequest::release_set_table_options() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.set_table_options)
|
||||
if (_internal_has_set_table_options()) {
|
||||
clear_has_kind();
|
||||
::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_;
|
||||
::greptime::v1::SetTableOptions* temp = _impl_.kind_.set_table_options_;
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
_impl_.kind_.change_table_options_ = nullptr;
|
||||
_impl_.kind_.set_table_options_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline const ::greptime::v1::ChangeTableOptions& AlterRequest::_internal_change_table_options() const {
|
||||
return _internal_has_change_table_options()
|
||||
? *_impl_.kind_.change_table_options_
|
||||
: reinterpret_cast< ::greptime::v1::ChangeTableOptions&>(::greptime::v1::_ChangeTableOptions_default_instance_);
|
||||
inline const ::greptime::v1::SetTableOptions& AlterRequest::_internal_set_table_options() const {
|
||||
return _internal_has_set_table_options()
|
||||
? *_impl_.kind_.set_table_options_
|
||||
: reinterpret_cast< ::greptime::v1::SetTableOptions&>(::greptime::v1::_SetTableOptions_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::ChangeTableOptions& AlterRequest::change_table_options() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_table_options)
|
||||
return _internal_change_table_options();
|
||||
inline const ::greptime::v1::SetTableOptions& AlterRequest::set_table_options() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.set_table_options)
|
||||
return _internal_set_table_options();
|
||||
}
|
||||
inline ::greptime::v1::ChangeTableOptions* AlterRequest::unsafe_arena_release_change_table_options() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_table_options)
|
||||
if (_internal_has_change_table_options()) {
|
||||
inline ::greptime::v1::SetTableOptions* AlterRequest::unsafe_arena_release_set_table_options() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.set_table_options)
|
||||
if (_internal_has_set_table_options()) {
|
||||
clear_has_kind();
|
||||
::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_;
|
||||
_impl_.kind_.change_table_options_ = nullptr;
|
||||
::greptime::v1::SetTableOptions* temp = _impl_.kind_.set_table_options_;
|
||||
_impl_.kind_.set_table_options_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline void AlterRequest::unsafe_arena_set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) {
|
||||
inline void AlterRequest::unsafe_arena_set_allocated_set_table_options(::greptime::v1::SetTableOptions* set_table_options) {
|
||||
clear_kind();
|
||||
if (change_table_options) {
|
||||
set_has_change_table_options();
|
||||
_impl_.kind_.change_table_options_ = change_table_options;
|
||||
if (set_table_options) {
|
||||
set_has_set_table_options();
|
||||
_impl_.kind_.set_table_options_ = set_table_options;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_table_options)
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.set_table_options)
|
||||
}
|
||||
inline ::greptime::v1::ChangeTableOptions* AlterRequest::_internal_mutable_change_table_options() {
|
||||
if (!_internal_has_change_table_options()) {
|
||||
inline ::greptime::v1::SetTableOptions* AlterRequest::_internal_mutable_set_table_options() {
|
||||
if (!_internal_has_set_table_options()) {
|
||||
clear_kind();
|
||||
set_has_change_table_options();
|
||||
_impl_.kind_.change_table_options_ = CreateMaybeMessage< ::greptime::v1::ChangeTableOptions >(GetArenaForAllocation());
|
||||
set_has_set_table_options();
|
||||
_impl_.kind_.set_table_options_ = CreateMaybeMessage< ::greptime::v1::SetTableOptions >(GetArenaForAllocation());
|
||||
}
|
||||
return _impl_.kind_.change_table_options_;
|
||||
return _impl_.kind_.set_table_options_;
|
||||
}
|
||||
inline ::greptime::v1::ChangeTableOptions* AlterRequest::mutable_change_table_options() {
|
||||
::greptime::v1::ChangeTableOptions* _msg = _internal_mutable_change_table_options();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_table_options)
|
||||
inline ::greptime::v1::SetTableOptions* AlterRequest::mutable_set_table_options() {
|
||||
::greptime::v1::SetTableOptions* _msg = _internal_mutable_set_table_options();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.set_table_options)
|
||||
return _msg;
|
||||
}
|
||||
|
||||
@@ -7954,6 +7976,72 @@ inline ::greptime::v1::UnsetColumnFulltext* AlterRequest::mutable_unset_column_f
|
||||
return _msg;
|
||||
}
|
||||
|
||||
// .greptime.v1.UnsetTableOptions unset_table_options = 9;
|
||||
inline bool AlterRequest::_internal_has_unset_table_options() const {
|
||||
return kind_case() == kUnsetTableOptions;
|
||||
}
|
||||
inline bool AlterRequest::has_unset_table_options() const {
|
||||
return _internal_has_unset_table_options();
|
||||
}
|
||||
inline void AlterRequest::set_has_unset_table_options() {
|
||||
_impl_._oneof_case_[0] = kUnsetTableOptions;
|
||||
}
|
||||
inline ::greptime::v1::UnsetTableOptions* AlterRequest::release_unset_table_options() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.unset_table_options)
|
||||
if (_internal_has_unset_table_options()) {
|
||||
clear_has_kind();
|
||||
::greptime::v1::UnsetTableOptions* temp = _impl_.kind_.unset_table_options_;
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
_impl_.kind_.unset_table_options_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline const ::greptime::v1::UnsetTableOptions& AlterRequest::_internal_unset_table_options() const {
|
||||
return _internal_has_unset_table_options()
|
||||
? *_impl_.kind_.unset_table_options_
|
||||
: reinterpret_cast< ::greptime::v1::UnsetTableOptions&>(::greptime::v1::_UnsetTableOptions_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::UnsetTableOptions& AlterRequest::unset_table_options() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.unset_table_options)
|
||||
return _internal_unset_table_options();
|
||||
}
|
||||
inline ::greptime::v1::UnsetTableOptions* AlterRequest::unsafe_arena_release_unset_table_options() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.unset_table_options)
|
||||
if (_internal_has_unset_table_options()) {
|
||||
clear_has_kind();
|
||||
::greptime::v1::UnsetTableOptions* temp = _impl_.kind_.unset_table_options_;
|
||||
_impl_.kind_.unset_table_options_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline void AlterRequest::unsafe_arena_set_allocated_unset_table_options(::greptime::v1::UnsetTableOptions* unset_table_options) {
|
||||
clear_kind();
|
||||
if (unset_table_options) {
|
||||
set_has_unset_table_options();
|
||||
_impl_.kind_.unset_table_options_ = unset_table_options;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.unset_table_options)
|
||||
}
|
||||
inline ::greptime::v1::UnsetTableOptions* AlterRequest::_internal_mutable_unset_table_options() {
|
||||
if (!_internal_has_unset_table_options()) {
|
||||
clear_kind();
|
||||
set_has_unset_table_options();
|
||||
_impl_.kind_.unset_table_options_ = CreateMaybeMessage< ::greptime::v1::UnsetTableOptions >(GetArenaForAllocation());
|
||||
}
|
||||
return _impl_.kind_.unset_table_options_;
|
||||
}
|
||||
inline ::greptime::v1::UnsetTableOptions* AlterRequest::mutable_unset_table_options() {
|
||||
::greptime::v1::UnsetTableOptions* _msg = _internal_mutable_unset_table_options();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.unset_table_options)
|
||||
return _msg;
|
||||
}
|
||||
|
||||
// uint64 schema_version = 4;
|
||||
inline void AlterRequest::clear_schema_version() {
|
||||
_impl_.schema_version_ = uint64_t{0u};
|
||||
|
||||
Reference in New Issue
Block a user