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,
|
||||||
::_pbi::kInvalidFieldOffsetTag,
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.schema_version_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.schema_version_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.kind_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.kind_),
|
||||||
~0u, // no _has_bits_
|
~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)},
|
{ 161, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
||||||
{ 168, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
|
{ 168, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
|
||||||
{ 175, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
{ 175, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
||||||
{ 190, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
{ 191, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
||||||
{ 197, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
{ 198, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
||||||
{ 204, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
{ 205, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
||||||
{ 212, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
{ 213, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
||||||
{ 219, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
{ 220, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||||
{ 226, -1, -1, sizeof(::greptime::v1::region::Regular)},
|
{ 227, -1, -1, sizeof(::greptime::v1::region::Regular)},
|
||||||
{ 232, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
{ 233, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
||||||
{ 239, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
{ 240, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||||
{ 249, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
{ 250, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
||||||
{ 256, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
{ 257, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
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 "
|
".\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"
|
"\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 ."
|
"(\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"
|
"rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum"
|
||||||
"ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns"
|
"ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns"
|
||||||
"H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r"
|
"H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r"
|
||||||
"egion.DropColumnsH\000\022=\n\023modify_column_typ"
|
"egion.DropColumnsH\000\022=\n\023modify_column_typ"
|
||||||
"es\030\005 \001(\0132\036.greptime.v1.ModifyColumnTypes"
|
"es\030\005 \001(\0132\036.greptime.v1.ModifyColumnTypes"
|
||||||
"H\000\022\?\n\024change_table_options\030\006 \001(\0132\037.grept"
|
"H\000\0229\n\021set_table_options\030\006 \001(\0132\034.greptime"
|
||||||
"ime.v1.ChangeTableOptionsH\000\022=\n\023set_colum"
|
".v1.SetTableOptionsH\000\022=\n\023set_column_full"
|
||||||
"n_fulltext\030\007 \001(\0132\036.greptime.v1.SetColumn"
|
"text\030\007 \001(\0132\036.greptime.v1.SetColumnFullte"
|
||||||
"FulltextH\000\022A\n\025unset_column_fulltext\030\010 \001("
|
"xtH\000\022A\n\025unset_column_fulltext\030\010 \001(\0132 .gr"
|
||||||
"\0132 .greptime.v1.UnsetColumnFulltextH\000\022\026\n"
|
"eptime.v1.UnsetColumnFulltextH\000\022=\n\023unset"
|
||||||
"\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddColu"
|
"_table_options\030\t \001(\0132\036.greptime.v1.Unset"
|
||||||
"mns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v1.r"
|
"TableOptionsH\000\022\026\n\016schema_version\030\004 \001(\004B\006"
|
||||||
"egion.AddColumn\"C\n\013DropColumns\0224\n\014drop_c"
|
"\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003("
|
||||||
"olumns\030\001 \003(\0132\036.greptime.v1.region.DropCo"
|
"\0132\035.greptime.v1.region.AddColumn\"C\n\013Drop"
|
||||||
"lumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132#."
|
"Columns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime"
|
||||||
"greptime.v1.region.RegionColumnDef\0220\n\010lo"
|
".v1.region.DropColumn\"v\n\tAddColumn\0227\n\nco"
|
||||||
"cation\030\003 \001(\0132\036.greptime.v1.AddColumnLoca"
|
"lumn_def\030\001 \001(\0132#.greptime.v1.region.Regi"
|
||||||
"tion\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014Flus"
|
"onColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime"
|
||||||
"hRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&"
|
".v1.AddColumnLocation\"\032\n\nDropColumn\022\014\n\004n"
|
||||||
"\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001(\003\"\231"
|
"ame\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001"
|
||||||
"\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022.\n\007"
|
" \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016windo"
|
||||||
"regular\030\002 \001(\0132\033.greptime.v1.region.Regul"
|
"w_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\tre"
|
||||||
"arH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptime.v"
|
"gion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.greptim"
|
||||||
"1.region.StrictWindowH\000B\t\n\007options\"$\n\017Tr"
|
"e.v1.region.RegularH\000\0229\n\rstrict_window\030\003"
|
||||||
"uncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017Regi"
|
" \001(\0132 .greptime.v1.region.StrictWindowH\000"
|
||||||
"onColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.grepti"
|
"B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregion"
|
||||||
"me.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Re"
|
"_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_d"
|
||||||
"gion\022O\n\006Handle\022!.greptime.v1.region.Regi"
|
"ef\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolu"
|
||||||
"onRequest\032\".greptime.v1.region.RegionRes"
|
"mn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grepti"
|
||||||
"ponseB]\n\025io.greptime.v1.regionB\006ServerZ<"
|
"me.v1.region.RegionRequest\032\".greptime.v1"
|
||||||
"github.com/GreptimeTeam/greptime-proto/g"
|
".region.RegionResponseB]\n\025io.greptime.v1"
|
||||||
"o/greptime/v1/regionb\006proto3"
|
".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] = {
|
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
|
||||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
&::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;
|
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
|
||||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
|
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",
|
"greptime/v1/region/server.proto",
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 3, 30,
|
&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,
|
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::AddColumns& add_columns(const AlterRequest* msg);
|
||||||
static const ::greptime::v1::region::DropColumns& drop_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::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::SetColumnFulltext& set_column_fulltext(const AlterRequest* msg);
|
||||||
static const ::greptime::v1::UnsetColumnFulltext& unset_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&
|
const ::greptime::v1::region::AddColumns&
|
||||||
@@ -5349,9 +5353,9 @@ const ::greptime::v1::ModifyColumnTypes&
|
|||||||
AlterRequest::_Internal::modify_column_types(const AlterRequest* msg) {
|
AlterRequest::_Internal::modify_column_types(const AlterRequest* msg) {
|
||||||
return *msg->_impl_.kind_.modify_column_types_;
|
return *msg->_impl_.kind_.modify_column_types_;
|
||||||
}
|
}
|
||||||
const ::greptime::v1::ChangeTableOptions&
|
const ::greptime::v1::SetTableOptions&
|
||||||
AlterRequest::_Internal::change_table_options(const AlterRequest* msg) {
|
AlterRequest::_Internal::set_table_options(const AlterRequest* msg) {
|
||||||
return *msg->_impl_.kind_.change_table_options_;
|
return *msg->_impl_.kind_.set_table_options_;
|
||||||
}
|
}
|
||||||
const ::greptime::v1::SetColumnFulltext&
|
const ::greptime::v1::SetColumnFulltext&
|
||||||
AlterRequest::_Internal::set_column_fulltext(const AlterRequest* msg) {
|
AlterRequest::_Internal::set_column_fulltext(const AlterRequest* msg) {
|
||||||
@@ -5361,6 +5365,10 @@ const ::greptime::v1::UnsetColumnFulltext&
|
|||||||
AlterRequest::_Internal::unset_column_fulltext(const AlterRequest* msg) {
|
AlterRequest::_Internal::unset_column_fulltext(const AlterRequest* msg) {
|
||||||
return *msg->_impl_.kind_.unset_column_fulltext_;
|
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) {
|
void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) {
|
||||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||||
clear_kind();
|
clear_kind();
|
||||||
@@ -5415,26 +5423,26 @@ void AlterRequest::clear_modify_column_types() {
|
|||||||
clear_has_kind();
|
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();
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||||
clear_kind();
|
clear_kind();
|
||||||
if (change_table_options) {
|
if (set_table_options) {
|
||||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
::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) {
|
if (message_arena != submessage_arena) {
|
||||||
change_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
set_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||||
message_arena, change_table_options, submessage_arena);
|
message_arena, set_table_options, submessage_arena);
|
||||||
}
|
}
|
||||||
set_has_change_table_options();
|
set_has_set_table_options();
|
||||||
_impl_.kind_.change_table_options_ = change_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() {
|
void AlterRequest::clear_set_table_options() {
|
||||||
if (_internal_has_change_table_options()) {
|
if (_internal_has_set_table_options()) {
|
||||||
if (GetArenaForAllocation() == nullptr) {
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
delete _impl_.kind_.change_table_options_;
|
delete _impl_.kind_.set_table_options_;
|
||||||
}
|
}
|
||||||
clear_has_kind();
|
clear_has_kind();
|
||||||
}
|
}
|
||||||
@@ -5487,6 +5495,30 @@ void AlterRequest::clear_unset_column_fulltext() {
|
|||||||
clear_has_kind();
|
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,
|
AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||||
bool is_message_owned)
|
bool is_message_owned)
|
||||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, 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());
|
from._internal_modify_column_types());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case kChangeTableOptions: {
|
case kSetTableOptions: {
|
||||||
_this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom(
|
_this->_internal_mutable_set_table_options()->::greptime::v1::SetTableOptions::MergeFrom(
|
||||||
from._internal_change_table_options());
|
from._internal_set_table_options());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case kSetColumnFulltext: {
|
case kSetColumnFulltext: {
|
||||||
@@ -5539,6 +5571,11 @@ AlterRequest::AlterRequest(const AlterRequest& from)
|
|||||||
from._internal_unset_column_fulltext());
|
from._internal_unset_column_fulltext());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kUnsetTableOptions: {
|
||||||
|
_this->_internal_mutable_unset_table_options()->::greptime::v1::UnsetTableOptions::MergeFrom(
|
||||||
|
from._internal_unset_table_options());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -5601,9 +5638,9 @@ void AlterRequest::clear_kind() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case kChangeTableOptions: {
|
case kSetTableOptions: {
|
||||||
if (GetArenaForAllocation() == nullptr) {
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
delete _impl_.kind_.change_table_options_;
|
delete _impl_.kind_.set_table_options_;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -5619,6 +5656,12 @@ void AlterRequest::clear_kind() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kUnsetTableOptions: {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete _impl_.kind_.unset_table_options_;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -5686,10 +5729,10 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
// .greptime.v1.SetTableOptions set_table_options = 6;
|
||||||
case 6:
|
case 6:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
|
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);
|
CHK_(ptr);
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
@@ -5710,6 +5753,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
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:
|
default:
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
} // switch
|
} // switch
|
||||||
@@ -5772,11 +5823,11 @@ uint8_t* AlterRequest::_InternalSerialize(
|
|||||||
_Internal::modify_column_types(this).GetCachedSize(), target, stream);
|
_Internal::modify_column_types(this).GetCachedSize(), target, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
// .greptime.v1.SetTableOptions set_table_options = 6;
|
||||||
if (_internal_has_change_table_options()) {
|
if (_internal_has_set_table_options()) {
|
||||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
InternalWriteMessage(6, _Internal::change_table_options(this),
|
InternalWriteMessage(6, _Internal::set_table_options(this),
|
||||||
_Internal::change_table_options(this).GetCachedSize(), target, stream);
|
_Internal::set_table_options(this).GetCachedSize(), target, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
// .greptime.v1.SetColumnFulltext set_column_fulltext = 7;
|
// .greptime.v1.SetColumnFulltext set_column_fulltext = 7;
|
||||||
@@ -5793,6 +5844,13 @@ uint8_t* AlterRequest::_InternalSerialize(
|
|||||||
_Internal::unset_column_fulltext(this).GetCachedSize(), target, stream);
|
_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())) {
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
_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_);
|
*_impl_.kind_.modify_column_types_);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
// .greptime.v1.SetTableOptions set_table_options = 6;
|
||||||
case kChangeTableOptions: {
|
case kSetTableOptions: {
|
||||||
total_size += 1 +
|
total_size += 1 +
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||||
*_impl_.kind_.change_table_options_);
|
*_impl_.kind_.set_table_options_);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// .greptime.v1.SetColumnFulltext set_column_fulltext = 7;
|
// .greptime.v1.SetColumnFulltext set_column_fulltext = 7;
|
||||||
@@ -5862,6 +5920,13 @@ size_t AlterRequest::ByteSizeLong() const {
|
|||||||
*_impl_.kind_.unset_column_fulltext_);
|
*_impl_.kind_.unset_column_fulltext_);
|
||||||
break;
|
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: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -5906,9 +5971,9 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
|
|||||||
from._internal_modify_column_types());
|
from._internal_modify_column_types());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case kChangeTableOptions: {
|
case kSetTableOptions: {
|
||||||
_this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom(
|
_this->_internal_mutable_set_table_options()->::greptime::v1::SetTableOptions::MergeFrom(
|
||||||
from._internal_change_table_options());
|
from._internal_set_table_options());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case kSetColumnFulltext: {
|
case kSetColumnFulltext: {
|
||||||
@@ -5921,6 +5986,11 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
|
|||||||
from._internal_unset_column_fulltext());
|
from._internal_unset_column_fulltext());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kUnsetTableOptions: {
|
||||||
|
_this->_internal_mutable_unset_table_options()->::greptime::v1::UnsetTableOptions::MergeFrom(
|
||||||
|
from._internal_unset_table_options());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3251,9 +3251,10 @@ class AlterRequest final :
|
|||||||
kAddColumns = 2,
|
kAddColumns = 2,
|
||||||
kDropColumns = 3,
|
kDropColumns = 3,
|
||||||
kModifyColumnTypes = 5,
|
kModifyColumnTypes = 5,
|
||||||
kChangeTableOptions = 6,
|
kSetTableOptions = 6,
|
||||||
kSetColumnFulltext = 7,
|
kSetColumnFulltext = 7,
|
||||||
kUnsetColumnFulltext = 8,
|
kUnsetColumnFulltext = 8,
|
||||||
|
kUnsetTableOptions = 9,
|
||||||
KIND_NOT_SET = 0,
|
KIND_NOT_SET = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3340,9 +3341,10 @@ class AlterRequest final :
|
|||||||
kAddColumnsFieldNumber = 2,
|
kAddColumnsFieldNumber = 2,
|
||||||
kDropColumnsFieldNumber = 3,
|
kDropColumnsFieldNumber = 3,
|
||||||
kModifyColumnTypesFieldNumber = 5,
|
kModifyColumnTypesFieldNumber = 5,
|
||||||
kChangeTableOptionsFieldNumber = 6,
|
kSetTableOptionsFieldNumber = 6,
|
||||||
kSetColumnFulltextFieldNumber = 7,
|
kSetColumnFulltextFieldNumber = 7,
|
||||||
kUnsetColumnFulltextFieldNumber = 8,
|
kUnsetColumnFulltextFieldNumber = 8,
|
||||||
|
kUnsetTableOptionsFieldNumber = 9,
|
||||||
};
|
};
|
||||||
// uint64 region_id = 1;
|
// uint64 region_id = 1;
|
||||||
void clear_region_id();
|
void clear_region_id();
|
||||||
@@ -3416,23 +3418,23 @@ class AlterRequest final :
|
|||||||
::greptime::v1::ModifyColumnTypes* modify_column_types);
|
::greptime::v1::ModifyColumnTypes* modify_column_types);
|
||||||
::greptime::v1::ModifyColumnTypes* unsafe_arena_release_modify_column_types();
|
::greptime::v1::ModifyColumnTypes* unsafe_arena_release_modify_column_types();
|
||||||
|
|
||||||
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
// .greptime.v1.SetTableOptions set_table_options = 6;
|
||||||
bool has_change_table_options() const;
|
bool has_set_table_options() const;
|
||||||
private:
|
private:
|
||||||
bool _internal_has_change_table_options() const;
|
bool _internal_has_set_table_options() const;
|
||||||
public:
|
public:
|
||||||
void clear_change_table_options();
|
void clear_set_table_options();
|
||||||
const ::greptime::v1::ChangeTableOptions& change_table_options() const;
|
const ::greptime::v1::SetTableOptions& set_table_options() const;
|
||||||
PROTOBUF_NODISCARD ::greptime::v1::ChangeTableOptions* release_change_table_options();
|
PROTOBUF_NODISCARD ::greptime::v1::SetTableOptions* release_set_table_options();
|
||||||
::greptime::v1::ChangeTableOptions* mutable_change_table_options();
|
::greptime::v1::SetTableOptions* mutable_set_table_options();
|
||||||
void set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options);
|
void set_allocated_set_table_options(::greptime::v1::SetTableOptions* set_table_options);
|
||||||
private:
|
private:
|
||||||
const ::greptime::v1::ChangeTableOptions& _internal_change_table_options() const;
|
const ::greptime::v1::SetTableOptions& _internal_set_table_options() const;
|
||||||
::greptime::v1::ChangeTableOptions* _internal_mutable_change_table_options();
|
::greptime::v1::SetTableOptions* _internal_mutable_set_table_options();
|
||||||
public:
|
public:
|
||||||
void unsafe_arena_set_allocated_change_table_options(
|
void unsafe_arena_set_allocated_set_table_options(
|
||||||
::greptime::v1::ChangeTableOptions* change_table_options);
|
::greptime::v1::SetTableOptions* set_table_options);
|
||||||
::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options();
|
::greptime::v1::SetTableOptions* unsafe_arena_release_set_table_options();
|
||||||
|
|
||||||
// .greptime.v1.SetColumnFulltext set_column_fulltext = 7;
|
// .greptime.v1.SetColumnFulltext set_column_fulltext = 7;
|
||||||
bool has_set_column_fulltext() const;
|
bool has_set_column_fulltext() const;
|
||||||
@@ -3470,6 +3472,24 @@ class AlterRequest final :
|
|||||||
::greptime::v1::UnsetColumnFulltext* unset_column_fulltext);
|
::greptime::v1::UnsetColumnFulltext* unset_column_fulltext);
|
||||||
::greptime::v1::UnsetColumnFulltext* unsafe_arena_release_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();
|
void clear_kind();
|
||||||
KindCase kind_case() const;
|
KindCase kind_case() const;
|
||||||
// @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest)
|
// @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest)
|
||||||
@@ -3478,9 +3498,10 @@ class AlterRequest final :
|
|||||||
void set_has_add_columns();
|
void set_has_add_columns();
|
||||||
void set_has_drop_columns();
|
void set_has_drop_columns();
|
||||||
void set_has_modify_column_types();
|
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_set_column_fulltext();
|
||||||
void set_has_unset_column_fulltext();
|
void set_has_unset_column_fulltext();
|
||||||
|
void set_has_unset_table_options();
|
||||||
|
|
||||||
inline bool has_kind() const;
|
inline bool has_kind() const;
|
||||||
inline void clear_has_kind();
|
inline void clear_has_kind();
|
||||||
@@ -3497,9 +3518,10 @@ class AlterRequest final :
|
|||||||
::greptime::v1::region::AddColumns* add_columns_;
|
::greptime::v1::region::AddColumns* add_columns_;
|
||||||
::greptime::v1::region::DropColumns* drop_columns_;
|
::greptime::v1::region::DropColumns* drop_columns_;
|
||||||
::greptime::v1::ModifyColumnTypes* modify_column_types_;
|
::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::SetColumnFulltext* set_column_fulltext_;
|
||||||
::greptime::v1::UnsetColumnFulltext* unset_column_fulltext_;
|
::greptime::v1::UnsetColumnFulltext* unset_column_fulltext_;
|
||||||
|
::greptime::v1::UnsetTableOptions* unset_table_options_;
|
||||||
} kind_;
|
} kind_;
|
||||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
uint32_t _oneof_case_[1];
|
uint32_t _oneof_case_[1];
|
||||||
@@ -7756,69 +7778,69 @@ inline ::greptime::v1::ModifyColumnTypes* AlterRequest::mutable_modify_column_ty
|
|||||||
return _msg;
|
return _msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
// .greptime.v1.ChangeTableOptions change_table_options = 6;
|
// .greptime.v1.SetTableOptions set_table_options = 6;
|
||||||
inline bool AlterRequest::_internal_has_change_table_options() const {
|
inline bool AlterRequest::_internal_has_set_table_options() const {
|
||||||
return kind_case() == kChangeTableOptions;
|
return kind_case() == kSetTableOptions;
|
||||||
}
|
}
|
||||||
inline bool AlterRequest::has_change_table_options() const {
|
inline bool AlterRequest::has_set_table_options() const {
|
||||||
return _internal_has_change_table_options();
|
return _internal_has_set_table_options();
|
||||||
}
|
}
|
||||||
inline void AlterRequest::set_has_change_table_options() {
|
inline void AlterRequest::set_has_set_table_options() {
|
||||||
_impl_._oneof_case_[0] = kChangeTableOptions;
|
_impl_._oneof_case_[0] = kSetTableOptions;
|
||||||
}
|
}
|
||||||
inline ::greptime::v1::ChangeTableOptions* AlterRequest::release_change_table_options() {
|
inline ::greptime::v1::SetTableOptions* AlterRequest::release_set_table_options() {
|
||||||
// @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_table_options)
|
// @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.set_table_options)
|
||||||
if (_internal_has_change_table_options()) {
|
if (_internal_has_set_table_options()) {
|
||||||
clear_has_kind();
|
clear_has_kind();
|
||||||
::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_;
|
::greptime::v1::SetTableOptions* temp = _impl_.kind_.set_table_options_;
|
||||||
if (GetArenaForAllocation() != nullptr) {
|
if (GetArenaForAllocation() != nullptr) {
|
||||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||||
}
|
}
|
||||||
_impl_.kind_.change_table_options_ = nullptr;
|
_impl_.kind_.set_table_options_ = nullptr;
|
||||||
return temp;
|
return temp;
|
||||||
} else {
|
} else {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
inline const ::greptime::v1::ChangeTableOptions& AlterRequest::_internal_change_table_options() const {
|
inline const ::greptime::v1::SetTableOptions& AlterRequest::_internal_set_table_options() const {
|
||||||
return _internal_has_change_table_options()
|
return _internal_has_set_table_options()
|
||||||
? *_impl_.kind_.change_table_options_
|
? *_impl_.kind_.set_table_options_
|
||||||
: reinterpret_cast< ::greptime::v1::ChangeTableOptions&>(::greptime::v1::_ChangeTableOptions_default_instance_);
|
: reinterpret_cast< ::greptime::v1::SetTableOptions&>(::greptime::v1::_SetTableOptions_default_instance_);
|
||||||
}
|
}
|
||||||
inline const ::greptime::v1::ChangeTableOptions& AlterRequest::change_table_options() const {
|
inline const ::greptime::v1::SetTableOptions& AlterRequest::set_table_options() const {
|
||||||
// @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_table_options)
|
// @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.set_table_options)
|
||||||
return _internal_change_table_options();
|
return _internal_set_table_options();
|
||||||
}
|
}
|
||||||
inline ::greptime::v1::ChangeTableOptions* AlterRequest::unsafe_arena_release_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.change_table_options)
|
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.set_table_options)
|
||||||
if (_internal_has_change_table_options()) {
|
if (_internal_has_set_table_options()) {
|
||||||
clear_has_kind();
|
clear_has_kind();
|
||||||
::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_;
|
::greptime::v1::SetTableOptions* temp = _impl_.kind_.set_table_options_;
|
||||||
_impl_.kind_.change_table_options_ = nullptr;
|
_impl_.kind_.set_table_options_ = nullptr;
|
||||||
return temp;
|
return temp;
|
||||||
} else {
|
} else {
|
||||||
return nullptr;
|
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();
|
clear_kind();
|
||||||
if (change_table_options) {
|
if (set_table_options) {
|
||||||
set_has_change_table_options();
|
set_has_set_table_options();
|
||||||
_impl_.kind_.change_table_options_ = change_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() {
|
inline ::greptime::v1::SetTableOptions* AlterRequest::_internal_mutable_set_table_options() {
|
||||||
if (!_internal_has_change_table_options()) {
|
if (!_internal_has_set_table_options()) {
|
||||||
clear_kind();
|
clear_kind();
|
||||||
set_has_change_table_options();
|
set_has_set_table_options();
|
||||||
_impl_.kind_.change_table_options_ = CreateMaybeMessage< ::greptime::v1::ChangeTableOptions >(GetArenaForAllocation());
|
_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() {
|
inline ::greptime::v1::SetTableOptions* AlterRequest::mutable_set_table_options() {
|
||||||
::greptime::v1::ChangeTableOptions* _msg = _internal_mutable_change_table_options();
|
::greptime::v1::SetTableOptions* _msg = _internal_mutable_set_table_options();
|
||||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_table_options)
|
// @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.set_table_options)
|
||||||
return _msg;
|
return _msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7954,6 +7976,72 @@ inline ::greptime::v1::UnsetColumnFulltext* AlterRequest::mutable_unset_column_f
|
|||||||
return _msg;
|
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;
|
// uint64 schema_version = 4;
|
||||||
inline void AlterRequest::clear_schema_version() {
|
inline void AlterRequest::clear_schema_version() {
|
||||||
_impl_.schema_version_ = uint64_t{0u};
|
_impl_.schema_version_ = uint64_t{0u};
|
||||||
|
|||||||
+368
-287
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -16434,19 +16434,19 @@ java.lang.String defaultValue);
|
|||||||
io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuilder();
|
io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuilder();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
* @return Whether the changeTableOptions field is set.
|
* @return Whether the setTableOptions field is set.
|
||||||
*/
|
*/
|
||||||
boolean hasChangeTableOptions();
|
boolean hasSetTableOptions();
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
* @return The changeTableOptions.
|
* @return The setTableOptions.
|
||||||
*/
|
*/
|
||||||
io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions();
|
io.greptime.v1.Ddl.SetTableOptions getSetTableOptions();
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
*/
|
*/
|
||||||
io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder();
|
io.greptime.v1.Ddl.SetTableOptionsOrBuilder getSetTableOptionsOrBuilder();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.SetColumnFulltext set_column_fulltext = 7;</code>
|
* <code>.greptime.v1.SetColumnFulltext set_column_fulltext = 7;</code>
|
||||||
@@ -16478,6 +16478,21 @@ java.lang.String defaultValue);
|
|||||||
*/
|
*/
|
||||||
io.greptime.v1.Ddl.UnsetColumnFulltextOrBuilder getUnsetColumnFulltextOrBuilder();
|
io.greptime.v1.Ddl.UnsetColumnFulltextOrBuilder getUnsetColumnFulltextOrBuilder();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
* @return Whether the unsetTableOptions field is set.
|
||||||
|
*/
|
||||||
|
boolean hasUnsetTableOptions();
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
* @return The unsetTableOptions.
|
||||||
|
*/
|
||||||
|
io.greptime.v1.Ddl.UnsetTableOptions getUnsetTableOptions();
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
*/
|
||||||
|
io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder getUnsetTableOptionsOrBuilder();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* The version of the schema before applying the alteration.
|
* The version of the schema before applying the alteration.
|
||||||
@@ -16588,14 +16603,14 @@ java.lang.String defaultValue);
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 50: {
|
case 50: {
|
||||||
io.greptime.v1.Ddl.ChangeTableOptions.Builder subBuilder = null;
|
io.greptime.v1.Ddl.SetTableOptions.Builder subBuilder = null;
|
||||||
if (kindCase_ == 6) {
|
if (kindCase_ == 6) {
|
||||||
subBuilder = ((io.greptime.v1.Ddl.ChangeTableOptions) kind_).toBuilder();
|
subBuilder = ((io.greptime.v1.Ddl.SetTableOptions) kind_).toBuilder();
|
||||||
}
|
}
|
||||||
kind_ =
|
kind_ =
|
||||||
input.readMessage(io.greptime.v1.Ddl.ChangeTableOptions.parser(), extensionRegistry);
|
input.readMessage(io.greptime.v1.Ddl.SetTableOptions.parser(), extensionRegistry);
|
||||||
if (subBuilder != null) {
|
if (subBuilder != null) {
|
||||||
subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeTableOptions) kind_);
|
subBuilder.mergeFrom((io.greptime.v1.Ddl.SetTableOptions) kind_);
|
||||||
kind_ = subBuilder.buildPartial();
|
kind_ = subBuilder.buildPartial();
|
||||||
}
|
}
|
||||||
kindCase_ = 6;
|
kindCase_ = 6;
|
||||||
@@ -16629,6 +16644,20 @@ java.lang.String defaultValue);
|
|||||||
kindCase_ = 8;
|
kindCase_ = 8;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 74: {
|
||||||
|
io.greptime.v1.Ddl.UnsetTableOptions.Builder subBuilder = null;
|
||||||
|
if (kindCase_ == 9) {
|
||||||
|
subBuilder = ((io.greptime.v1.Ddl.UnsetTableOptions) kind_).toBuilder();
|
||||||
|
}
|
||||||
|
kind_ =
|
||||||
|
input.readMessage(io.greptime.v1.Ddl.UnsetTableOptions.parser(), extensionRegistry);
|
||||||
|
if (subBuilder != null) {
|
||||||
|
subBuilder.mergeFrom((io.greptime.v1.Ddl.UnsetTableOptions) kind_);
|
||||||
|
kind_ = subBuilder.buildPartial();
|
||||||
|
}
|
||||||
|
kindCase_ = 9;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
if (!parseUnknownField(
|
if (!parseUnknownField(
|
||||||
input, unknownFields, extensionRegistry, tag)) {
|
input, unknownFields, extensionRegistry, tag)) {
|
||||||
@@ -16671,9 +16700,10 @@ java.lang.String defaultValue);
|
|||||||
ADD_COLUMNS(2),
|
ADD_COLUMNS(2),
|
||||||
DROP_COLUMNS(3),
|
DROP_COLUMNS(3),
|
||||||
MODIFY_COLUMN_TYPES(5),
|
MODIFY_COLUMN_TYPES(5),
|
||||||
CHANGE_TABLE_OPTIONS(6),
|
SET_TABLE_OPTIONS(6),
|
||||||
SET_COLUMN_FULLTEXT(7),
|
SET_COLUMN_FULLTEXT(7),
|
||||||
UNSET_COLUMN_FULLTEXT(8),
|
UNSET_COLUMN_FULLTEXT(8),
|
||||||
|
UNSET_TABLE_OPTIONS(9),
|
||||||
KIND_NOT_SET(0);
|
KIND_NOT_SET(0);
|
||||||
private final int value;
|
private final int value;
|
||||||
private KindCase(int value) {
|
private KindCase(int value) {
|
||||||
@@ -16694,9 +16724,10 @@ java.lang.String defaultValue);
|
|||||||
case 2: return ADD_COLUMNS;
|
case 2: return ADD_COLUMNS;
|
||||||
case 3: return DROP_COLUMNS;
|
case 3: return DROP_COLUMNS;
|
||||||
case 5: return MODIFY_COLUMN_TYPES;
|
case 5: return MODIFY_COLUMN_TYPES;
|
||||||
case 6: return CHANGE_TABLE_OPTIONS;
|
case 6: return SET_TABLE_OPTIONS;
|
||||||
case 7: return SET_COLUMN_FULLTEXT;
|
case 7: return SET_COLUMN_FULLTEXT;
|
||||||
case 8: return UNSET_COLUMN_FULLTEXT;
|
case 8: return UNSET_COLUMN_FULLTEXT;
|
||||||
|
case 9: return UNSET_TABLE_OPTIONS;
|
||||||
case 0: return KIND_NOT_SET;
|
case 0: return KIND_NOT_SET;
|
||||||
default: return null;
|
default: return null;
|
||||||
}
|
}
|
||||||
@@ -16816,35 +16847,35 @@ java.lang.String defaultValue);
|
|||||||
return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance();
|
return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int CHANGE_TABLE_OPTIONS_FIELD_NUMBER = 6;
|
public static final int SET_TABLE_OPTIONS_FIELD_NUMBER = 6;
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
* @return Whether the changeTableOptions field is set.
|
* @return Whether the setTableOptions field is set.
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public boolean hasChangeTableOptions() {
|
public boolean hasSetTableOptions() {
|
||||||
return kindCase_ == 6;
|
return kindCase_ == 6;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
* @return The changeTableOptions.
|
* @return The setTableOptions.
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions() {
|
public io.greptime.v1.Ddl.SetTableOptions getSetTableOptions() {
|
||||||
if (kindCase_ == 6) {
|
if (kindCase_ == 6) {
|
||||||
return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
|
return (io.greptime.v1.Ddl.SetTableOptions) kind_;
|
||||||
}
|
}
|
||||||
return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
|
return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder() {
|
public io.greptime.v1.Ddl.SetTableOptionsOrBuilder getSetTableOptionsOrBuilder() {
|
||||||
if (kindCase_ == 6) {
|
if (kindCase_ == 6) {
|
||||||
return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
|
return (io.greptime.v1.Ddl.SetTableOptions) kind_;
|
||||||
}
|
}
|
||||||
return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
|
return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int SET_COLUMN_FULLTEXT_FIELD_NUMBER = 7;
|
public static final int SET_COLUMN_FULLTEXT_FIELD_NUMBER = 7;
|
||||||
@@ -16909,6 +16940,37 @@ java.lang.String defaultValue);
|
|||||||
return io.greptime.v1.Ddl.UnsetColumnFulltext.getDefaultInstance();
|
return io.greptime.v1.Ddl.UnsetColumnFulltext.getDefaultInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static final int UNSET_TABLE_OPTIONS_FIELD_NUMBER = 9;
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
* @return Whether the unsetTableOptions field is set.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean hasUnsetTableOptions() {
|
||||||
|
return kindCase_ == 9;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
* @return The unsetTableOptions.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public io.greptime.v1.Ddl.UnsetTableOptions getUnsetTableOptions() {
|
||||||
|
if (kindCase_ == 9) {
|
||||||
|
return (io.greptime.v1.Ddl.UnsetTableOptions) kind_;
|
||||||
|
}
|
||||||
|
return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder getUnsetTableOptionsOrBuilder() {
|
||||||
|
if (kindCase_ == 9) {
|
||||||
|
return (io.greptime.v1.Ddl.UnsetTableOptions) kind_;
|
||||||
|
}
|
||||||
|
return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance();
|
||||||
|
}
|
||||||
|
|
||||||
public static final int SCHEMA_VERSION_FIELD_NUMBER = 4;
|
public static final int SCHEMA_VERSION_FIELD_NUMBER = 4;
|
||||||
private long schemaVersion_;
|
private long schemaVersion_;
|
||||||
/**
|
/**
|
||||||
@@ -16954,7 +17016,7 @@ java.lang.String defaultValue);
|
|||||||
output.writeMessage(5, (io.greptime.v1.Ddl.ModifyColumnTypes) kind_);
|
output.writeMessage(5, (io.greptime.v1.Ddl.ModifyColumnTypes) kind_);
|
||||||
}
|
}
|
||||||
if (kindCase_ == 6) {
|
if (kindCase_ == 6) {
|
||||||
output.writeMessage(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_);
|
output.writeMessage(6, (io.greptime.v1.Ddl.SetTableOptions) kind_);
|
||||||
}
|
}
|
||||||
if (kindCase_ == 7) {
|
if (kindCase_ == 7) {
|
||||||
output.writeMessage(7, (io.greptime.v1.Ddl.SetColumnFulltext) kind_);
|
output.writeMessage(7, (io.greptime.v1.Ddl.SetColumnFulltext) kind_);
|
||||||
@@ -16962,6 +17024,9 @@ java.lang.String defaultValue);
|
|||||||
if (kindCase_ == 8) {
|
if (kindCase_ == 8) {
|
||||||
output.writeMessage(8, (io.greptime.v1.Ddl.UnsetColumnFulltext) kind_);
|
output.writeMessage(8, (io.greptime.v1.Ddl.UnsetColumnFulltext) kind_);
|
||||||
}
|
}
|
||||||
|
if (kindCase_ == 9) {
|
||||||
|
output.writeMessage(9, (io.greptime.v1.Ddl.UnsetTableOptions) kind_);
|
||||||
|
}
|
||||||
unknownFields.writeTo(output);
|
unknownFields.writeTo(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -16993,7 +17058,7 @@ java.lang.String defaultValue);
|
|||||||
}
|
}
|
||||||
if (kindCase_ == 6) {
|
if (kindCase_ == 6) {
|
||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeMessageSize(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_);
|
.computeMessageSize(6, (io.greptime.v1.Ddl.SetTableOptions) kind_);
|
||||||
}
|
}
|
||||||
if (kindCase_ == 7) {
|
if (kindCase_ == 7) {
|
||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
@@ -17003,6 +17068,10 @@ java.lang.String defaultValue);
|
|||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeMessageSize(8, (io.greptime.v1.Ddl.UnsetColumnFulltext) kind_);
|
.computeMessageSize(8, (io.greptime.v1.Ddl.UnsetColumnFulltext) kind_);
|
||||||
}
|
}
|
||||||
|
if (kindCase_ == 9) {
|
||||||
|
size += com.google.protobuf.CodedOutputStream
|
||||||
|
.computeMessageSize(9, (io.greptime.v1.Ddl.UnsetTableOptions) kind_);
|
||||||
|
}
|
||||||
size += unknownFields.getSerializedSize();
|
size += unknownFields.getSerializedSize();
|
||||||
memoizedSize = size;
|
memoizedSize = size;
|
||||||
return size;
|
return size;
|
||||||
@@ -17037,8 +17106,8 @@ java.lang.String defaultValue);
|
|||||||
.equals(other.getModifyColumnTypes())) return false;
|
.equals(other.getModifyColumnTypes())) return false;
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
if (!getChangeTableOptions()
|
if (!getSetTableOptions()
|
||||||
.equals(other.getChangeTableOptions())) return false;
|
.equals(other.getSetTableOptions())) return false;
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
if (!getSetColumnFulltext()
|
if (!getSetColumnFulltext()
|
||||||
@@ -17048,6 +17117,10 @@ java.lang.String defaultValue);
|
|||||||
if (!getUnsetColumnFulltext()
|
if (!getUnsetColumnFulltext()
|
||||||
.equals(other.getUnsetColumnFulltext())) return false;
|
.equals(other.getUnsetColumnFulltext())) return false;
|
||||||
break;
|
break;
|
||||||
|
case 9:
|
||||||
|
if (!getUnsetTableOptions()
|
||||||
|
.equals(other.getUnsetTableOptions())) return false;
|
||||||
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
@@ -17082,8 +17155,8 @@ java.lang.String defaultValue);
|
|||||||
hash = (53 * hash) + getModifyColumnTypes().hashCode();
|
hash = (53 * hash) + getModifyColumnTypes().hashCode();
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER;
|
hash = (37 * hash) + SET_TABLE_OPTIONS_FIELD_NUMBER;
|
||||||
hash = (53 * hash) + getChangeTableOptions().hashCode();
|
hash = (53 * hash) + getSetTableOptions().hashCode();
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
hash = (37 * hash) + SET_COLUMN_FULLTEXT_FIELD_NUMBER;
|
hash = (37 * hash) + SET_COLUMN_FULLTEXT_FIELD_NUMBER;
|
||||||
@@ -17093,6 +17166,10 @@ java.lang.String defaultValue);
|
|||||||
hash = (37 * hash) + UNSET_COLUMN_FULLTEXT_FIELD_NUMBER;
|
hash = (37 * hash) + UNSET_COLUMN_FULLTEXT_FIELD_NUMBER;
|
||||||
hash = (53 * hash) + getUnsetColumnFulltext().hashCode();
|
hash = (53 * hash) + getUnsetColumnFulltext().hashCode();
|
||||||
break;
|
break;
|
||||||
|
case 9:
|
||||||
|
hash = (37 * hash) + UNSET_TABLE_OPTIONS_FIELD_NUMBER;
|
||||||
|
hash = (53 * hash) + getUnsetTableOptions().hashCode();
|
||||||
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
@@ -17284,10 +17361,10 @@ java.lang.String defaultValue);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (kindCase_ == 6) {
|
if (kindCase_ == 6) {
|
||||||
if (changeTableOptionsBuilder_ == null) {
|
if (setTableOptionsBuilder_ == null) {
|
||||||
result.kind_ = kind_;
|
result.kind_ = kind_;
|
||||||
} else {
|
} else {
|
||||||
result.kind_ = changeTableOptionsBuilder_.build();
|
result.kind_ = setTableOptionsBuilder_.build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (kindCase_ == 7) {
|
if (kindCase_ == 7) {
|
||||||
@@ -17304,6 +17381,13 @@ java.lang.String defaultValue);
|
|||||||
result.kind_ = unsetColumnFulltextBuilder_.build();
|
result.kind_ = unsetColumnFulltextBuilder_.build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (kindCase_ == 9) {
|
||||||
|
if (unsetTableOptionsBuilder_ == null) {
|
||||||
|
result.kind_ = kind_;
|
||||||
|
} else {
|
||||||
|
result.kind_ = unsetTableOptionsBuilder_.build();
|
||||||
|
}
|
||||||
|
}
|
||||||
result.schemaVersion_ = schemaVersion_;
|
result.schemaVersion_ = schemaVersion_;
|
||||||
result.kindCase_ = kindCase_;
|
result.kindCase_ = kindCase_;
|
||||||
onBuilt();
|
onBuilt();
|
||||||
@@ -17373,8 +17457,8 @@ java.lang.String defaultValue);
|
|||||||
mergeModifyColumnTypes(other.getModifyColumnTypes());
|
mergeModifyColumnTypes(other.getModifyColumnTypes());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CHANGE_TABLE_OPTIONS: {
|
case SET_TABLE_OPTIONS: {
|
||||||
mergeChangeTableOptions(other.getChangeTableOptions());
|
mergeSetTableOptions(other.getSetTableOptions());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SET_COLUMN_FULLTEXT: {
|
case SET_COLUMN_FULLTEXT: {
|
||||||
@@ -17385,6 +17469,10 @@ java.lang.String defaultValue);
|
|||||||
mergeUnsetColumnFulltext(other.getUnsetColumnFulltext());
|
mergeUnsetColumnFulltext(other.getUnsetColumnFulltext());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case UNSET_TABLE_OPTIONS: {
|
||||||
|
mergeUnsetTableOptions(other.getUnsetTableOptions());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case KIND_NOT_SET: {
|
case KIND_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -17891,71 +17979,71 @@ java.lang.String defaultValue);
|
|||||||
}
|
}
|
||||||
|
|
||||||
private com.google.protobuf.SingleFieldBuilderV3<
|
private com.google.protobuf.SingleFieldBuilderV3<
|
||||||
io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder> changeTableOptionsBuilder_;
|
io.greptime.v1.Ddl.SetTableOptions, io.greptime.v1.Ddl.SetTableOptions.Builder, io.greptime.v1.Ddl.SetTableOptionsOrBuilder> setTableOptionsBuilder_;
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
* @return Whether the changeTableOptions field is set.
|
* @return Whether the setTableOptions field is set.
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public boolean hasChangeTableOptions() {
|
public boolean hasSetTableOptions() {
|
||||||
return kindCase_ == 6;
|
return kindCase_ == 6;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
* @return The changeTableOptions.
|
* @return The setTableOptions.
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions() {
|
public io.greptime.v1.Ddl.SetTableOptions getSetTableOptions() {
|
||||||
if (changeTableOptionsBuilder_ == null) {
|
if (setTableOptionsBuilder_ == null) {
|
||||||
if (kindCase_ == 6) {
|
if (kindCase_ == 6) {
|
||||||
return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
|
return (io.greptime.v1.Ddl.SetTableOptions) kind_;
|
||||||
}
|
}
|
||||||
return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
|
return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance();
|
||||||
} else {
|
} else {
|
||||||
if (kindCase_ == 6) {
|
if (kindCase_ == 6) {
|
||||||
return changeTableOptionsBuilder_.getMessage();
|
return setTableOptionsBuilder_.getMessage();
|
||||||
}
|
}
|
||||||
return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
|
return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions value) {
|
public Builder setSetTableOptions(io.greptime.v1.Ddl.SetTableOptions value) {
|
||||||
if (changeTableOptionsBuilder_ == null) {
|
if (setTableOptionsBuilder_ == null) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
}
|
}
|
||||||
kind_ = value;
|
kind_ = value;
|
||||||
onChanged();
|
onChanged();
|
||||||
} else {
|
} else {
|
||||||
changeTableOptionsBuilder_.setMessage(value);
|
setTableOptionsBuilder_.setMessage(value);
|
||||||
}
|
}
|
||||||
kindCase_ = 6;
|
kindCase_ = 6;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setChangeTableOptions(
|
public Builder setSetTableOptions(
|
||||||
io.greptime.v1.Ddl.ChangeTableOptions.Builder builderForValue) {
|
io.greptime.v1.Ddl.SetTableOptions.Builder builderForValue) {
|
||||||
if (changeTableOptionsBuilder_ == null) {
|
if (setTableOptionsBuilder_ == null) {
|
||||||
kind_ = builderForValue.build();
|
kind_ = builderForValue.build();
|
||||||
onChanged();
|
onChanged();
|
||||||
} else {
|
} else {
|
||||||
changeTableOptionsBuilder_.setMessage(builderForValue.build());
|
setTableOptionsBuilder_.setMessage(builderForValue.build());
|
||||||
}
|
}
|
||||||
kindCase_ = 6;
|
kindCase_ = 6;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
*/
|
*/
|
||||||
public Builder mergeChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions value) {
|
public Builder mergeSetTableOptions(io.greptime.v1.Ddl.SetTableOptions value) {
|
||||||
if (changeTableOptionsBuilder_ == null) {
|
if (setTableOptionsBuilder_ == null) {
|
||||||
if (kindCase_ == 6 &&
|
if (kindCase_ == 6 &&
|
||||||
kind_ != io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance()) {
|
kind_ != io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance()) {
|
||||||
kind_ = io.greptime.v1.Ddl.ChangeTableOptions.newBuilder((io.greptime.v1.Ddl.ChangeTableOptions) kind_)
|
kind_ = io.greptime.v1.Ddl.SetTableOptions.newBuilder((io.greptime.v1.Ddl.SetTableOptions) kind_)
|
||||||
.mergeFrom(value).buildPartial();
|
.mergeFrom(value).buildPartial();
|
||||||
} else {
|
} else {
|
||||||
kind_ = value;
|
kind_ = value;
|
||||||
@@ -17963,19 +18051,19 @@ java.lang.String defaultValue);
|
|||||||
onChanged();
|
onChanged();
|
||||||
} else {
|
} else {
|
||||||
if (kindCase_ == 6) {
|
if (kindCase_ == 6) {
|
||||||
changeTableOptionsBuilder_.mergeFrom(value);
|
setTableOptionsBuilder_.mergeFrom(value);
|
||||||
} else {
|
} else {
|
||||||
changeTableOptionsBuilder_.setMessage(value);
|
setTableOptionsBuilder_.setMessage(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
kindCase_ = 6;
|
kindCase_ = 6;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
*/
|
*/
|
||||||
public Builder clearChangeTableOptions() {
|
public Builder clearSetTableOptions() {
|
||||||
if (changeTableOptionsBuilder_ == null) {
|
if (setTableOptionsBuilder_ == null) {
|
||||||
if (kindCase_ == 6) {
|
if (kindCase_ == 6) {
|
||||||
kindCase_ = 0;
|
kindCase_ = 0;
|
||||||
kind_ = null;
|
kind_ = null;
|
||||||
@@ -17986,50 +18074,50 @@ java.lang.String defaultValue);
|
|||||||
kindCase_ = 0;
|
kindCase_ = 0;
|
||||||
kind_ = null;
|
kind_ = null;
|
||||||
}
|
}
|
||||||
changeTableOptionsBuilder_.clear();
|
setTableOptionsBuilder_.clear();
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
*/
|
*/
|
||||||
public io.greptime.v1.Ddl.ChangeTableOptions.Builder getChangeTableOptionsBuilder() {
|
public io.greptime.v1.Ddl.SetTableOptions.Builder getSetTableOptionsBuilder() {
|
||||||
return getChangeTableOptionsFieldBuilder().getBuilder();
|
return getSetTableOptionsFieldBuilder().getBuilder();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder() {
|
public io.greptime.v1.Ddl.SetTableOptionsOrBuilder getSetTableOptionsOrBuilder() {
|
||||||
if ((kindCase_ == 6) && (changeTableOptionsBuilder_ != null)) {
|
if ((kindCase_ == 6) && (setTableOptionsBuilder_ != null)) {
|
||||||
return changeTableOptionsBuilder_.getMessageOrBuilder();
|
return setTableOptionsBuilder_.getMessageOrBuilder();
|
||||||
} else {
|
} else {
|
||||||
if (kindCase_ == 6) {
|
if (kindCase_ == 6) {
|
||||||
return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
|
return (io.greptime.v1.Ddl.SetTableOptions) kind_;
|
||||||
}
|
}
|
||||||
return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
|
return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ChangeTableOptions change_table_options = 6;</code>
|
* <code>.greptime.v1.SetTableOptions set_table_options = 6;</code>
|
||||||
*/
|
*/
|
||||||
private com.google.protobuf.SingleFieldBuilderV3<
|
private com.google.protobuf.SingleFieldBuilderV3<
|
||||||
io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder>
|
io.greptime.v1.Ddl.SetTableOptions, io.greptime.v1.Ddl.SetTableOptions.Builder, io.greptime.v1.Ddl.SetTableOptionsOrBuilder>
|
||||||
getChangeTableOptionsFieldBuilder() {
|
getSetTableOptionsFieldBuilder() {
|
||||||
if (changeTableOptionsBuilder_ == null) {
|
if (setTableOptionsBuilder_ == null) {
|
||||||
if (!(kindCase_ == 6)) {
|
if (!(kindCase_ == 6)) {
|
||||||
kind_ = io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
|
kind_ = io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance();
|
||||||
}
|
}
|
||||||
changeTableOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
setTableOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||||
io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder>(
|
io.greptime.v1.Ddl.SetTableOptions, io.greptime.v1.Ddl.SetTableOptions.Builder, io.greptime.v1.Ddl.SetTableOptionsOrBuilder>(
|
||||||
(io.greptime.v1.Ddl.ChangeTableOptions) kind_,
|
(io.greptime.v1.Ddl.SetTableOptions) kind_,
|
||||||
getParentForChildren(),
|
getParentForChildren(),
|
||||||
isClean());
|
isClean());
|
||||||
kind_ = null;
|
kind_ = null;
|
||||||
}
|
}
|
||||||
kindCase_ = 6;
|
kindCase_ = 6;
|
||||||
onChanged();;
|
onChanged();;
|
||||||
return changeTableOptionsBuilder_;
|
return setTableOptionsBuilder_;
|
||||||
}
|
}
|
||||||
|
|
||||||
private com.google.protobuf.SingleFieldBuilderV3<
|
private com.google.protobuf.SingleFieldBuilderV3<
|
||||||
@@ -18316,6 +18404,148 @@ java.lang.String defaultValue);
|
|||||||
return unsetColumnFulltextBuilder_;
|
return unsetColumnFulltextBuilder_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private com.google.protobuf.SingleFieldBuilderV3<
|
||||||
|
io.greptime.v1.Ddl.UnsetTableOptions, io.greptime.v1.Ddl.UnsetTableOptions.Builder, io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder> unsetTableOptionsBuilder_;
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
* @return Whether the unsetTableOptions field is set.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean hasUnsetTableOptions() {
|
||||||
|
return kindCase_ == 9;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
* @return The unsetTableOptions.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public io.greptime.v1.Ddl.UnsetTableOptions getUnsetTableOptions() {
|
||||||
|
if (unsetTableOptionsBuilder_ == null) {
|
||||||
|
if (kindCase_ == 9) {
|
||||||
|
return (io.greptime.v1.Ddl.UnsetTableOptions) kind_;
|
||||||
|
}
|
||||||
|
return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance();
|
||||||
|
} else {
|
||||||
|
if (kindCase_ == 9) {
|
||||||
|
return unsetTableOptionsBuilder_.getMessage();
|
||||||
|
}
|
||||||
|
return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
*/
|
||||||
|
public Builder setUnsetTableOptions(io.greptime.v1.Ddl.UnsetTableOptions value) {
|
||||||
|
if (unsetTableOptionsBuilder_ == null) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new NullPointerException();
|
||||||
|
}
|
||||||
|
kind_ = value;
|
||||||
|
onChanged();
|
||||||
|
} else {
|
||||||
|
unsetTableOptionsBuilder_.setMessage(value);
|
||||||
|
}
|
||||||
|
kindCase_ = 9;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
*/
|
||||||
|
public Builder setUnsetTableOptions(
|
||||||
|
io.greptime.v1.Ddl.UnsetTableOptions.Builder builderForValue) {
|
||||||
|
if (unsetTableOptionsBuilder_ == null) {
|
||||||
|
kind_ = builderForValue.build();
|
||||||
|
onChanged();
|
||||||
|
} else {
|
||||||
|
unsetTableOptionsBuilder_.setMessage(builderForValue.build());
|
||||||
|
}
|
||||||
|
kindCase_ = 9;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
*/
|
||||||
|
public Builder mergeUnsetTableOptions(io.greptime.v1.Ddl.UnsetTableOptions value) {
|
||||||
|
if (unsetTableOptionsBuilder_ == null) {
|
||||||
|
if (kindCase_ == 9 &&
|
||||||
|
kind_ != io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance()) {
|
||||||
|
kind_ = io.greptime.v1.Ddl.UnsetTableOptions.newBuilder((io.greptime.v1.Ddl.UnsetTableOptions) kind_)
|
||||||
|
.mergeFrom(value).buildPartial();
|
||||||
|
} else {
|
||||||
|
kind_ = value;
|
||||||
|
}
|
||||||
|
onChanged();
|
||||||
|
} else {
|
||||||
|
if (kindCase_ == 9) {
|
||||||
|
unsetTableOptionsBuilder_.mergeFrom(value);
|
||||||
|
} else {
|
||||||
|
unsetTableOptionsBuilder_.setMessage(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
kindCase_ = 9;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
*/
|
||||||
|
public Builder clearUnsetTableOptions() {
|
||||||
|
if (unsetTableOptionsBuilder_ == null) {
|
||||||
|
if (kindCase_ == 9) {
|
||||||
|
kindCase_ = 0;
|
||||||
|
kind_ = null;
|
||||||
|
onChanged();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (kindCase_ == 9) {
|
||||||
|
kindCase_ = 0;
|
||||||
|
kind_ = null;
|
||||||
|
}
|
||||||
|
unsetTableOptionsBuilder_.clear();
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
*/
|
||||||
|
public io.greptime.v1.Ddl.UnsetTableOptions.Builder getUnsetTableOptionsBuilder() {
|
||||||
|
return getUnsetTableOptionsFieldBuilder().getBuilder();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder getUnsetTableOptionsOrBuilder() {
|
||||||
|
if ((kindCase_ == 9) && (unsetTableOptionsBuilder_ != null)) {
|
||||||
|
return unsetTableOptionsBuilder_.getMessageOrBuilder();
|
||||||
|
} else {
|
||||||
|
if (kindCase_ == 9) {
|
||||||
|
return (io.greptime.v1.Ddl.UnsetTableOptions) kind_;
|
||||||
|
}
|
||||||
|
return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>.greptime.v1.UnsetTableOptions unset_table_options = 9;</code>
|
||||||
|
*/
|
||||||
|
private com.google.protobuf.SingleFieldBuilderV3<
|
||||||
|
io.greptime.v1.Ddl.UnsetTableOptions, io.greptime.v1.Ddl.UnsetTableOptions.Builder, io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder>
|
||||||
|
getUnsetTableOptionsFieldBuilder() {
|
||||||
|
if (unsetTableOptionsBuilder_ == null) {
|
||||||
|
if (!(kindCase_ == 9)) {
|
||||||
|
kind_ = io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance();
|
||||||
|
}
|
||||||
|
unsetTableOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||||
|
io.greptime.v1.Ddl.UnsetTableOptions, io.greptime.v1.Ddl.UnsetTableOptions.Builder, io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder>(
|
||||||
|
(io.greptime.v1.Ddl.UnsetTableOptions) kind_,
|
||||||
|
getParentForChildren(),
|
||||||
|
isClean());
|
||||||
|
kind_ = null;
|
||||||
|
}
|
||||||
|
kindCase_ = 9;
|
||||||
|
onChanged();;
|
||||||
|
return unsetTableOptionsBuilder_;
|
||||||
|
}
|
||||||
|
|
||||||
private long schemaVersion_ ;
|
private long schemaVersion_ ;
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
@@ -25254,39 +25484,41 @@ java.lang.String defaultValue);
|
|||||||
".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " +
|
".\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" +
|
"\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 ." +
|
"(\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" +
|
"rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum" +
|
||||||
"ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns" +
|
"ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns" +
|
||||||
"H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r" +
|
"H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r" +
|
||||||
"egion.DropColumnsH\000\022=\n\023modify_column_typ" +
|
"egion.DropColumnsH\000\022=\n\023modify_column_typ" +
|
||||||
"es\030\005 \001(\0132\036.greptime.v1.ModifyColumnTypes" +
|
"es\030\005 \001(\0132\036.greptime.v1.ModifyColumnTypes" +
|
||||||
"H\000\022?\n\024change_table_options\030\006 \001(\0132\037.grept" +
|
"H\000\0229\n\021set_table_options\030\006 \001(\0132\034.greptime" +
|
||||||
"ime.v1.ChangeTableOptionsH\000\022=\n\023set_colum" +
|
".v1.SetTableOptionsH\000\022=\n\023set_column_full" +
|
||||||
"n_fulltext\030\007 \001(\0132\036.greptime.v1.SetColumn" +
|
"text\030\007 \001(\0132\036.greptime.v1.SetColumnFullte" +
|
||||||
"FulltextH\000\022A\n\025unset_column_fulltext\030\010 \001(" +
|
"xtH\000\022A\n\025unset_column_fulltext\030\010 \001(\0132 .gr" +
|
||||||
"\0132 .greptime.v1.UnsetColumnFulltextH\000\022\026\n" +
|
"eptime.v1.UnsetColumnFulltextH\000\022=\n\023unset" +
|
||||||
"\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddColu" +
|
"_table_options\030\t \001(\0132\036.greptime.v1.Unset" +
|
||||||
"mns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v1.r" +
|
"TableOptionsH\000\022\026\n\016schema_version\030\004 \001(\004B\006" +
|
||||||
"egion.AddColumn\"C\n\013DropColumns\0224\n\014drop_c" +
|
"\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(" +
|
||||||
"olumns\030\001 \003(\0132\036.greptime.v1.region.DropCo" +
|
"\0132\035.greptime.v1.region.AddColumn\"C\n\013Drop" +
|
||||||
"lumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132#." +
|
"Columns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime" +
|
||||||
"greptime.v1.region.RegionColumnDef\0220\n\010lo" +
|
".v1.region.DropColumn\"v\n\tAddColumn\0227\n\nco" +
|
||||||
"cation\030\003 \001(\0132\036.greptime.v1.AddColumnLoca" +
|
"lumn_def\030\001 \001(\0132#.greptime.v1.region.Regi" +
|
||||||
"tion\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014Flus" +
|
"onColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime" +
|
||||||
"hRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&" +
|
".v1.AddColumnLocation\"\032\n\nDropColumn\022\014\n\004n" +
|
||||||
"\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001(\003\"\231" +
|
"ame\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001" +
|
||||||
"\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022.\n\007" +
|
" \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016windo" +
|
||||||
"regular\030\002 \001(\0132\033.greptime.v1.region.Regul" +
|
"w_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\tre" +
|
||||||
"arH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptime.v" +
|
"gion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.greptim" +
|
||||||
"1.region.StrictWindowH\000B\t\n\007options\"$\n\017Tr" +
|
"e.v1.region.RegularH\000\0229\n\rstrict_window\030\003" +
|
||||||
"uncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017Regi" +
|
" \001(\0132 .greptime.v1.region.StrictWindowH\000" +
|
||||||
"onColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.grepti" +
|
"B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregion" +
|
||||||
"me.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Re" +
|
"_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_d" +
|
||||||
"gion\022O\n\006Handle\022!.greptime.v1.region.Regi" +
|
"ef\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolu" +
|
||||||
"onRequest\032\".greptime.v1.region.RegionRes" +
|
"mn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grepti" +
|
||||||
"ponseB]\n\025io.greptime.v1.regionB\006ServerZ<" +
|
"me.v1.region.RegionRequest\032\".greptime.v1" +
|
||||||
"github.com/GreptimeTeam/greptime-proto/g" +
|
".region.RegionResponseB]\n\025io.greptime.v1" +
|
||||||
"o/greptime/v1/regionb\006proto3"
|
".regionB\006ServerZ<github.com/GreptimeTeam" +
|
||||||
|
"/greptime-proto/go/greptime/v1/regionb\006p" +
|
||||||
|
"roto3"
|
||||||
};
|
};
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
.internalBuildGeneratedFileFrom(descriptorData,
|
||||||
@@ -25414,7 +25646,7 @@ java.lang.String defaultValue);
|
|||||||
internal_static_greptime_v1_region_AlterRequest_fieldAccessorTable = new
|
internal_static_greptime_v1_region_AlterRequest_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_region_AlterRequest_descriptor,
|
internal_static_greptime_v1_region_AlterRequest_descriptor,
|
||||||
new java.lang.String[] { "RegionId", "AddColumns", "DropColumns", "ModifyColumnTypes", "ChangeTableOptions", "SetColumnFulltext", "UnsetColumnFulltext", "SchemaVersion", "Kind", });
|
new java.lang.String[] { "RegionId", "AddColumns", "DropColumns", "ModifyColumnTypes", "SetTableOptions", "SetColumnFulltext", "UnsetColumnFulltext", "UnsetTableOptions", "SchemaVersion", "Kind", });
|
||||||
internal_static_greptime_v1_region_AddColumns_descriptor =
|
internal_static_greptime_v1_region_AddColumns_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(16);
|
getDescriptor().getMessageTypes().get(16);
|
||||||
internal_static_greptime_v1_region_AddColumns_fieldAccessorTable = new
|
internal_static_greptime_v1_region_AddColumns_fieldAccessorTable = new
|
||||||
|
|||||||
@@ -109,9 +109,10 @@ message AlterExpr {
|
|||||||
DropColumns drop_columns = 5;
|
DropColumns drop_columns = 5;
|
||||||
RenameTable rename_table = 6;
|
RenameTable rename_table = 6;
|
||||||
ModifyColumnTypes modify_column_types = 7;
|
ModifyColumnTypes modify_column_types = 7;
|
||||||
ChangeTableOptions change_table_options = 8;
|
SetTableOptions set_table_options = 8;
|
||||||
SetColumnFulltext set_column_fulltext = 9;
|
SetColumnFulltext set_column_fulltext = 9;
|
||||||
UnsetColumnFulltext unset_column_fulltext = 10;
|
UnsetColumnFulltext unset_column_fulltext = 10;
|
||||||
|
UnsetTableOptions unset_table_options = 11;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,15 +163,19 @@ message ModifyColumnType {
|
|||||||
ColumnDataTypeExtension target_type_extension = 3;
|
ColumnDataTypeExtension target_type_extension = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ChangeTableOptions {
|
message SetTableOptions {
|
||||||
repeated ChangeTableOption change_table_options = 1;
|
repeated TableOption table_options = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ChangeTableOption {
|
message TableOption {
|
||||||
string key = 1;
|
string key = 1;
|
||||||
string value = 2;
|
string value = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message UnsetTableOptions {
|
||||||
|
repeated string keys = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message DropColumn { string name = 1; }
|
message DropColumn { string name = 1; }
|
||||||
|
|
||||||
message TableId { uint32 id = 1; }
|
message TableId { uint32 id = 1; }
|
||||||
|
|||||||
@@ -128,9 +128,10 @@ message AlterRequest {
|
|||||||
AddColumns add_columns = 2;
|
AddColumns add_columns = 2;
|
||||||
DropColumns drop_columns = 3;
|
DropColumns drop_columns = 3;
|
||||||
ModifyColumnTypes modify_column_types = 5;
|
ModifyColumnTypes modify_column_types = 5;
|
||||||
ChangeTableOptions change_table_options = 6;
|
SetTableOptions set_table_options = 6;
|
||||||
SetColumnFulltext set_column_fulltext = 7;
|
SetColumnFulltext set_column_fulltext = 7;
|
||||||
UnsetColumnFulltext unset_column_fulltext = 8;
|
UnsetColumnFulltext unset_column_fulltext = 8;
|
||||||
|
UnsetTableOptions unset_table_options = 9;
|
||||||
}
|
}
|
||||||
// The version of the schema before applying the alteration.
|
// The version of the schema before applying the alteration.
|
||||||
uint64 schema_version = 4;
|
uint64 schema_version = 4;
|
||||||
|
|||||||
Reference in New Issue
Block a user