feat: region storage path (#102)
This commit is contained in:
+110
-215
@@ -153,8 +153,7 @@ PROTOBUF_CONSTEXPR CreateRequest::CreateRequest(
|
|||||||
, /*decltype(_impl_._primary_key_cached_byte_size_)*/{0}
|
, /*decltype(_impl_._primary_key_cached_byte_size_)*/{0}
|
||||||
, /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()}
|
, /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()}
|
||||||
, /*decltype(_impl_.engine_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
, /*decltype(_impl_.engine_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
, /*decltype(_impl_.catalog_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
, /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
, /*decltype(_impl_.schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
||||||
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
|
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
|
||||||
, /*decltype(_impl_.create_if_not_exists_)*/false
|
, /*decltype(_impl_.create_if_not_exists_)*/false
|
||||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||||
@@ -195,8 +194,7 @@ PROTOBUF_CONSTEXPR OpenRequest::OpenRequest(
|
|||||||
::_pbi::ConstantInitialized): _impl_{
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
/*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()}
|
/*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()}
|
||||||
, /*decltype(_impl_.engine_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
, /*decltype(_impl_.engine_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
, /*decltype(_impl_.catalog_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
, /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
, /*decltype(_impl_.schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
||||||
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
|
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||||
struct OpenRequestDefaultTypeInternal {
|
struct OpenRequestDefaultTypeInternal {
|
||||||
@@ -431,8 +429,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
|
|||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.column_defs_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.column_defs_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.primary_key_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.primary_key_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.create_if_not_exists_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.create_if_not_exists_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.catalog_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.path_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.schema_),
|
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.options_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.options_),
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DropRequest, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DropRequest, _internal_metadata_),
|
||||||
@@ -459,8 +456,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
|
|||||||
~0u, // no _inlined_string_donated_
|
~0u, // no _inlined_string_donated_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.region_id_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.region_id_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.engine_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.engine_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.catalog_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.path_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.schema_),
|
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.options_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.options_),
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CloseRequest, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CloseRequest, _internal_metadata_),
|
||||||
@@ -543,18 +539,18 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
|||||||
{ 63, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
|
{ 63, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
|
||||||
{ 72, 80, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
|
{ 72, 80, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
|
||||||
{ 82, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
|
{ 82, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
|
||||||
{ 96, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
|
{ 95, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
|
||||||
{ 103, 111, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
|
{ 102, 110, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
|
||||||
{ 113, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
|
{ 112, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
|
||||||
{ 124, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
{ 122, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
||||||
{ 131, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
{ 129, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
||||||
{ 142, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
{ 140, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
||||||
{ 149, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
{ 147, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
||||||
{ 156, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
{ 154, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
||||||
{ 164, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
{ 162, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
||||||
{ 171, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
{ 169, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||||
{ 178, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
{ 176, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||||
{ 185, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
{ 183, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
@@ -613,41 +609,40 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
|
|||||||
"(\0132\021.greptime.v1.Rows\"h\n\014QueryRequest\0227\n"
|
"(\0132\021.greptime.v1.Rows\"h\n\014QueryRequest\0227\n"
|
||||||
"\006header\030\001 \001(\0132\'.greptime.v1.region.Regio"
|
"\006header\030\001 \001(\0132\'.greptime.v1.region.Regio"
|
||||||
"nRequestHeader\022\021\n\tregion_id\030\002 \001(\004\022\014\n\004pla"
|
"nRequestHeader\022\021\n\tregion_id\030\002 \001(\004\022\014\n\004pla"
|
||||||
"n\030\003 \001(\014\"\261\002\n\rCreateRequest\022\021\n\tregion_id\030\001"
|
"n\030\003 \001(\014\"\236\002\n\rCreateRequest\022\021\n\tregion_id\030\001"
|
||||||
" \001(\004\022\016\n\006engine\030\002 \001(\t\0228\n\013column_defs\030\003 \003("
|
" \001(\004\022\016\n\006engine\030\002 \001(\t\0228\n\013column_defs\030\003 \003("
|
||||||
"\0132#.greptime.v1.region.RegionColumnDef\022\023"
|
"\0132#.greptime.v1.region.RegionColumnDef\022\023"
|
||||||
"\n\013primary_key\030\004 \003(\r\022\034\n\024create_if_not_exi"
|
"\n\013primary_key\030\004 \003(\r\022\034\n\024create_if_not_exi"
|
||||||
"sts\030\005 \001(\010\022\017\n\007catalog\030\006 \001(\t\022\016\n\006schema\030\007 \001"
|
"sts\030\005 \001(\010\022\014\n\004path\030\006 \001(\t\022\?\n\007options\030\007 \003(\013"
|
||||||
"(\t\022\?\n\007options\030\010 \003(\0132..greptime.v1.region"
|
"2..greptime.v1.region.CreateRequest.Opti"
|
||||||
".CreateRequest.OptionsEntry\032.\n\014OptionsEn"
|
"onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
|
||||||
"try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013D"
|
"\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022\021\n\tregio"
|
||||||
"ropRequest\022\021\n\tregion_id\030\001 \001(\004\"\300\001\n\013OpenRe"
|
"n_id\030\001 \001(\004\"\255\001\n\013OpenRequest\022\021\n\tregion_id\030"
|
||||||
"quest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t"
|
"\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022=\n\007o"
|
||||||
"\022\017\n\007catalog\030\003 \001(\t\022\016\n\006schema\030\004 \001(\t\022=\n\007opt"
|
"ptions\030\004 \003(\0132,.greptime.v1.region.OpenRe"
|
||||||
"ions\030\005 \003(\0132,.greptime.v1.region.OpenRequ"
|
"quest.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke"
|
||||||
"est.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030"
|
"y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseReque"
|
||||||
"\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest"
|
"st\022\021\n\tregion_id\030\001 \001(\004\"\261\001\n\014AlterRequest\022\021"
|
||||||
"\022\021\n\tregion_id\030\001 \001(\004\"\261\001\n\014AlterRequest\022\021\n\t"
|
"\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030\002 \001(\0132\036"
|
||||||
"region_id\030\001 \001(\004\0225\n\013add_columns\030\002 \001(\0132\036.g"
|
".greptime.v1.region.AddColumnsH\000\0227\n\014drop"
|
||||||
"reptime.v1.region.AddColumnsH\000\0227\n\014drop_c"
|
"_columns\030\003 \001(\0132\037.greptime.v1.region.Drop"
|
||||||
"olumns\030\003 \001(\0132\037.greptime.v1.region.DropCo"
|
"ColumnsH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004kin"
|
||||||
"lumnsH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\""
|
"d\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(\0132\035.g"
|
||||||
"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(\0132\035.gre"
|
"reptime.v1.region.AddColumn\"C\n\013DropColum"
|
||||||
"ptime.v1.region.AddColumn\"C\n\013DropColumns"
|
"ns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime.v1.r"
|
||||||
"\0224\n\014drop_columns\030\001 \003(\0132\036.greptime.v1.reg"
|
"egion.DropColumn\"v\n\tAddColumn\0227\n\ncolumn_"
|
||||||
"ion.DropColumn\"v\n\tAddColumn\0227\n\ncolumn_de"
|
"def\030\001 \001(\0132#.greptime.v1.region.RegionCol"
|
||||||
"f\030\001 \001(\0132#.greptime.v1.region.RegionColum"
|
"umnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.A"
|
||||||
"nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add"
|
"ddColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001"
|
||||||
"ColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001"
|
" \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\""
|
||||||
"(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"#\n"
|
"#\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017"
|
||||||
"\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017Re"
|
"RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.gr"
|
||||||
"gionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.grep"
|
"eptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y"
|
||||||
"time.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006"
|
"\n\006Region\022O\n\006Handle\022!.greptime.v1.region."
|
||||||
"Region\022O\n\006Handle\022!.greptime.v1.region.Re"
|
"RegionRequest\032\".greptime.v1.region.Regio"
|
||||||
"gionRequest\032\".greptime.v1.region.RegionR"
|
"nResponseB]\n\025io.greptime.v1.regionB\006Serv"
|
||||||
"esponseB]\n\025io.greptime.v1.regionB\006Server"
|
"erZ<github.com/GreptimeTeam/greptime-pro"
|
||||||
"Z<github.com/GreptimeTeam/greptime-proto"
|
"to/go/greptime/v1/regionb\006proto3"
|
||||||
"/go/greptime/v1/regionb\006proto3"
|
|
||||||
;
|
;
|
||||||
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,
|
||||||
@@ -656,7 +651,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, 2590, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
false, false, 2552, 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, 22,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 3, 22,
|
||||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
|
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
|
||||||
@@ -3006,8 +3001,7 @@ CreateRequest::CreateRequest(const CreateRequest& from)
|
|||||||
, /*decltype(_impl_._primary_key_cached_byte_size_)*/{0}
|
, /*decltype(_impl_._primary_key_cached_byte_size_)*/{0}
|
||||||
, /*decltype(_impl_.options_)*/{}
|
, /*decltype(_impl_.options_)*/{}
|
||||||
, decltype(_impl_.engine_){}
|
, decltype(_impl_.engine_){}
|
||||||
, decltype(_impl_.catalog_){}
|
, decltype(_impl_.path_){}
|
||||||
, decltype(_impl_.schema_){}
|
|
||||||
, decltype(_impl_.region_id_){}
|
, decltype(_impl_.region_id_){}
|
||||||
, decltype(_impl_.create_if_not_exists_){}
|
, decltype(_impl_.create_if_not_exists_){}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}};
|
, /*decltype(_impl_._cached_size_)*/{}};
|
||||||
@@ -3022,20 +3016,12 @@ CreateRequest::CreateRequest(const CreateRequest& from)
|
|||||||
_this->_impl_.engine_.Set(from._internal_engine(),
|
_this->_impl_.engine_.Set(from._internal_engine(),
|
||||||
_this->GetArenaForAllocation());
|
_this->GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
_impl_.catalog_.InitDefault();
|
_impl_.path_.InitDefault();
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.catalog_.Set("", GetArenaForAllocation());
|
_impl_.path_.Set("", GetArenaForAllocation());
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
if (!from._internal_catalog().empty()) {
|
if (!from._internal_path().empty()) {
|
||||||
_this->_impl_.catalog_.Set(from._internal_catalog(),
|
_this->_impl_.path_.Set(from._internal_path(),
|
||||||
_this->GetArenaForAllocation());
|
|
||||||
}
|
|
||||||
_impl_.schema_.InitDefault();
|
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
||||||
_impl_.schema_.Set("", GetArenaForAllocation());
|
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
||||||
if (!from._internal_schema().empty()) {
|
|
||||||
_this->_impl_.schema_.Set(from._internal_schema(),
|
|
||||||
_this->GetArenaForAllocation());
|
_this->GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
::memcpy(&_impl_.region_id_, &from._impl_.region_id_,
|
::memcpy(&_impl_.region_id_, &from._impl_.region_id_,
|
||||||
@@ -3054,8 +3040,7 @@ inline void CreateRequest::SharedCtor(
|
|||||||
, /*decltype(_impl_._primary_key_cached_byte_size_)*/{0}
|
, /*decltype(_impl_._primary_key_cached_byte_size_)*/{0}
|
||||||
, /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena}
|
, /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena}
|
||||||
, decltype(_impl_.engine_){}
|
, decltype(_impl_.engine_){}
|
||||||
, decltype(_impl_.catalog_){}
|
, decltype(_impl_.path_){}
|
||||||
, decltype(_impl_.schema_){}
|
|
||||||
, decltype(_impl_.region_id_){uint64_t{0u}}
|
, decltype(_impl_.region_id_){uint64_t{0u}}
|
||||||
, decltype(_impl_.create_if_not_exists_){false}
|
, decltype(_impl_.create_if_not_exists_){false}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
@@ -3064,13 +3049,9 @@ inline void CreateRequest::SharedCtor(
|
|||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.engine_.Set("", GetArenaForAllocation());
|
_impl_.engine_.Set("", GetArenaForAllocation());
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.catalog_.InitDefault();
|
_impl_.path_.InitDefault();
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.catalog_.Set("", GetArenaForAllocation());
|
_impl_.path_.Set("", GetArenaForAllocation());
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
||||||
_impl_.schema_.InitDefault();
|
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
||||||
_impl_.schema_.Set("", GetArenaForAllocation());
|
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3091,8 +3072,7 @@ inline void CreateRequest::SharedDtor() {
|
|||||||
_impl_.options_.Destruct();
|
_impl_.options_.Destruct();
|
||||||
_impl_.options_.~MapField();
|
_impl_.options_.~MapField();
|
||||||
_impl_.engine_.Destroy();
|
_impl_.engine_.Destroy();
|
||||||
_impl_.catalog_.Destroy();
|
_impl_.path_.Destroy();
|
||||||
_impl_.schema_.Destroy();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateRequest::ArenaDtor(void* object) {
|
void CreateRequest::ArenaDtor(void* object) {
|
||||||
@@ -3113,8 +3093,7 @@ void CreateRequest::Clear() {
|
|||||||
_impl_.primary_key_.Clear();
|
_impl_.primary_key_.Clear();
|
||||||
_impl_.options_.Clear();
|
_impl_.options_.Clear();
|
||||||
_impl_.engine_.ClearToEmpty();
|
_impl_.engine_.ClearToEmpty();
|
||||||
_impl_.catalog_.ClearToEmpty();
|
_impl_.path_.ClearToEmpty();
|
||||||
_impl_.schema_.ClearToEmpty();
|
|
||||||
::memset(&_impl_.region_id_, 0, static_cast<size_t>(
|
::memset(&_impl_.region_id_, 0, static_cast<size_t>(
|
||||||
reinterpret_cast<char*>(&_impl_.create_if_not_exists_) -
|
reinterpret_cast<char*>(&_impl_.create_if_not_exists_) -
|
||||||
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.create_if_not_exists_));
|
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.create_if_not_exists_));
|
||||||
@@ -3177,36 +3156,26 @@ const char* CreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// string catalog = 6;
|
// string path = 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)) {
|
||||||
auto str = _internal_mutable_catalog();
|
auto str = _internal_mutable_path();
|
||||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.CreateRequest.catalog"));
|
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.CreateRequest.path"));
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// string schema = 7;
|
// map<string, string> options = 7;
|
||||||
case 7:
|
case 7:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
|
||||||
auto str = _internal_mutable_schema();
|
|
||||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
||||||
CHK_(ptr);
|
|
||||||
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.CreateRequest.schema"));
|
|
||||||
} else
|
|
||||||
goto handle_unusual;
|
|
||||||
continue;
|
|
||||||
// map<string, string> options = 8;
|
|
||||||
case 8:
|
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
|
|
||||||
ptr -= 1;
|
ptr -= 1;
|
||||||
do {
|
do {
|
||||||
ptr += 1;
|
ptr += 1;
|
||||||
ptr = ctx->ParseMessage(&_impl_.options_, ptr);
|
ptr = ctx->ParseMessage(&_impl_.options_, ptr);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
if (!ctx->DataAvailable(ptr)) break;
|
if (!ctx->DataAvailable(ptr)) break;
|
||||||
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr));
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
@@ -3278,27 +3247,17 @@ uint8_t* CreateRequest::_InternalSerialize(
|
|||||||
target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_create_if_not_exists(), target);
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_create_if_not_exists(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// string catalog = 6;
|
// string path = 6;
|
||||||
if (!this->_internal_catalog().empty()) {
|
if (!this->_internal_path().empty()) {
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
this->_internal_catalog().data(), static_cast<int>(this->_internal_catalog().length()),
|
this->_internal_path().data(), static_cast<int>(this->_internal_path().length()),
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
"greptime.v1.region.CreateRequest.catalog");
|
"greptime.v1.region.CreateRequest.path");
|
||||||
target = stream->WriteStringMaybeAliased(
|
target = stream->WriteStringMaybeAliased(
|
||||||
6, this->_internal_catalog(), target);
|
6, this->_internal_path(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// string schema = 7;
|
// map<string, string> options = 7;
|
||||||
if (!this->_internal_schema().empty()) {
|
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
||||||
this->_internal_schema().data(), static_cast<int>(this->_internal_schema().length()),
|
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
||||||
"greptime.v1.region.CreateRequest.schema");
|
|
||||||
target = stream->WriteStringMaybeAliased(
|
|
||||||
7, this->_internal_schema(), target);
|
|
||||||
}
|
|
||||||
|
|
||||||
// map<string, string> options = 8;
|
|
||||||
if (!this->_internal_options().empty()) {
|
if (!this->_internal_options().empty()) {
|
||||||
using MapType = ::_pb::Map<std::string, std::string>;
|
using MapType = ::_pb::Map<std::string, std::string>;
|
||||||
using WireHelper = CreateRequest_OptionsEntry_DoNotUse::Funcs;
|
using WireHelper = CreateRequest_OptionsEntry_DoNotUse::Funcs;
|
||||||
@@ -3317,12 +3276,12 @@ uint8_t* CreateRequest::_InternalSerialize(
|
|||||||
|
|
||||||
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
|
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
|
||||||
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
|
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
|
||||||
target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream);
|
target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream);
|
||||||
check_utf8(entry);
|
check_utf8(entry);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (const auto& entry : map_field) {
|
for (const auto& entry : map_field) {
|
||||||
target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream);
|
target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream);
|
||||||
check_utf8(entry);
|
check_utf8(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3365,7 +3324,7 @@ size_t CreateRequest::ByteSizeLong() const {
|
|||||||
total_size += data_size;
|
total_size += data_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
// map<string, string> options = 8;
|
// map<string, string> options = 7;
|
||||||
total_size += 1 *
|
total_size += 1 *
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size());
|
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size());
|
||||||
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
|
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
|
||||||
@@ -3381,18 +3340,11 @@ size_t CreateRequest::ByteSizeLong() const {
|
|||||||
this->_internal_engine());
|
this->_internal_engine());
|
||||||
}
|
}
|
||||||
|
|
||||||
// string catalog = 6;
|
// string path = 6;
|
||||||
if (!this->_internal_catalog().empty()) {
|
if (!this->_internal_path().empty()) {
|
||||||
total_size += 1 +
|
total_size += 1 +
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||||
this->_internal_catalog());
|
this->_internal_path());
|
||||||
}
|
|
||||||
|
|
||||||
// string schema = 7;
|
|
||||||
if (!this->_internal_schema().empty()) {
|
|
||||||
total_size += 1 +
|
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
||||||
this->_internal_schema());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// uint64 region_id = 1;
|
// uint64 region_id = 1;
|
||||||
@@ -3429,11 +3381,8 @@ void CreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
|
|||||||
if (!from._internal_engine().empty()) {
|
if (!from._internal_engine().empty()) {
|
||||||
_this->_internal_set_engine(from._internal_engine());
|
_this->_internal_set_engine(from._internal_engine());
|
||||||
}
|
}
|
||||||
if (!from._internal_catalog().empty()) {
|
if (!from._internal_path().empty()) {
|
||||||
_this->_internal_set_catalog(from._internal_catalog());
|
_this->_internal_set_path(from._internal_path());
|
||||||
}
|
|
||||||
if (!from._internal_schema().empty()) {
|
|
||||||
_this->_internal_set_schema(from._internal_schema());
|
|
||||||
}
|
}
|
||||||
if (from._internal_region_id() != 0) {
|
if (from._internal_region_id() != 0) {
|
||||||
_this->_internal_set_region_id(from._internal_region_id());
|
_this->_internal_set_region_id(from._internal_region_id());
|
||||||
@@ -3468,12 +3417,8 @@ void CreateRequest::InternalSwap(CreateRequest* other) {
|
|||||||
&other->_impl_.engine_, rhs_arena
|
&other->_impl_.engine_, rhs_arena
|
||||||
);
|
);
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||||
&_impl_.catalog_, lhs_arena,
|
&_impl_.path_, lhs_arena,
|
||||||
&other->_impl_.catalog_, rhs_arena
|
&other->_impl_.path_, rhs_arena
|
||||||
);
|
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
||||||
&_impl_.schema_, lhs_arena,
|
|
||||||
&other->_impl_.schema_, rhs_arena
|
|
||||||
);
|
);
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||||
PROTOBUF_FIELD_OFFSET(CreateRequest, _impl_.create_if_not_exists_)
|
PROTOBUF_FIELD_OFFSET(CreateRequest, _impl_.create_if_not_exists_)
|
||||||
@@ -3702,8 +3647,7 @@ OpenRequest::OpenRequest(const OpenRequest& from)
|
|||||||
new (&_impl_) Impl_{
|
new (&_impl_) Impl_{
|
||||||
/*decltype(_impl_.options_)*/{}
|
/*decltype(_impl_.options_)*/{}
|
||||||
, decltype(_impl_.engine_){}
|
, decltype(_impl_.engine_){}
|
||||||
, decltype(_impl_.catalog_){}
|
, decltype(_impl_.path_){}
|
||||||
, decltype(_impl_.schema_){}
|
|
||||||
, decltype(_impl_.region_id_){}
|
, decltype(_impl_.region_id_){}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}};
|
, /*decltype(_impl_._cached_size_)*/{}};
|
||||||
|
|
||||||
@@ -3717,20 +3661,12 @@ OpenRequest::OpenRequest(const OpenRequest& from)
|
|||||||
_this->_impl_.engine_.Set(from._internal_engine(),
|
_this->_impl_.engine_.Set(from._internal_engine(),
|
||||||
_this->GetArenaForAllocation());
|
_this->GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
_impl_.catalog_.InitDefault();
|
_impl_.path_.InitDefault();
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.catalog_.Set("", GetArenaForAllocation());
|
_impl_.path_.Set("", GetArenaForAllocation());
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
if (!from._internal_catalog().empty()) {
|
if (!from._internal_path().empty()) {
|
||||||
_this->_impl_.catalog_.Set(from._internal_catalog(),
|
_this->_impl_.path_.Set(from._internal_path(),
|
||||||
_this->GetArenaForAllocation());
|
|
||||||
}
|
|
||||||
_impl_.schema_.InitDefault();
|
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
||||||
_impl_.schema_.Set("", GetArenaForAllocation());
|
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
||||||
if (!from._internal_schema().empty()) {
|
|
||||||
_this->_impl_.schema_.Set(from._internal_schema(),
|
|
||||||
_this->GetArenaForAllocation());
|
_this->GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
_this->_impl_.region_id_ = from._impl_.region_id_;
|
_this->_impl_.region_id_ = from._impl_.region_id_;
|
||||||
@@ -3744,8 +3680,7 @@ inline void OpenRequest::SharedCtor(
|
|||||||
new (&_impl_) Impl_{
|
new (&_impl_) Impl_{
|
||||||
/*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena}
|
/*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena}
|
||||||
, decltype(_impl_.engine_){}
|
, decltype(_impl_.engine_){}
|
||||||
, decltype(_impl_.catalog_){}
|
, decltype(_impl_.path_){}
|
||||||
, decltype(_impl_.schema_){}
|
|
||||||
, decltype(_impl_.region_id_){uint64_t{0u}}
|
, decltype(_impl_.region_id_){uint64_t{0u}}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
};
|
};
|
||||||
@@ -3753,13 +3688,9 @@ inline void OpenRequest::SharedCtor(
|
|||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.engine_.Set("", GetArenaForAllocation());
|
_impl_.engine_.Set("", GetArenaForAllocation());
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.catalog_.InitDefault();
|
_impl_.path_.InitDefault();
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.catalog_.Set("", GetArenaForAllocation());
|
_impl_.path_.Set("", GetArenaForAllocation());
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
||||||
_impl_.schema_.InitDefault();
|
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
||||||
_impl_.schema_.Set("", GetArenaForAllocation());
|
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3778,8 +3709,7 @@ inline void OpenRequest::SharedDtor() {
|
|||||||
_impl_.options_.Destruct();
|
_impl_.options_.Destruct();
|
||||||
_impl_.options_.~MapField();
|
_impl_.options_.~MapField();
|
||||||
_impl_.engine_.Destroy();
|
_impl_.engine_.Destroy();
|
||||||
_impl_.catalog_.Destroy();
|
_impl_.path_.Destroy();
|
||||||
_impl_.schema_.Destroy();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenRequest::ArenaDtor(void* object) {
|
void OpenRequest::ArenaDtor(void* object) {
|
||||||
@@ -3798,8 +3728,7 @@ void OpenRequest::Clear() {
|
|||||||
|
|
||||||
_impl_.options_.Clear();
|
_impl_.options_.Clear();
|
||||||
_impl_.engine_.ClearToEmpty();
|
_impl_.engine_.ClearToEmpty();
|
||||||
_impl_.catalog_.ClearToEmpty();
|
_impl_.path_.ClearToEmpty();
|
||||||
_impl_.schema_.ClearToEmpty();
|
|
||||||
_impl_.region_id_ = uint64_t{0u};
|
_impl_.region_id_ = uint64_t{0u};
|
||||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||||
}
|
}
|
||||||
@@ -3828,36 +3757,26 @@ const char* OpenRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// string catalog = 3;
|
// string path = 3;
|
||||||
case 3:
|
case 3:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
||||||
auto str = _internal_mutable_catalog();
|
auto str = _internal_mutable_path();
|
||||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.OpenRequest.catalog"));
|
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.OpenRequest.path"));
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// string schema = 4;
|
// map<string, string> options = 4;
|
||||||
case 4:
|
case 4:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
|
||||||
auto str = _internal_mutable_schema();
|
|
||||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
||||||
CHK_(ptr);
|
|
||||||
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.OpenRequest.schema"));
|
|
||||||
} else
|
|
||||||
goto handle_unusual;
|
|
||||||
continue;
|
|
||||||
// map<string, string> options = 5;
|
|
||||||
case 5:
|
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
|
|
||||||
ptr -= 1;
|
ptr -= 1;
|
||||||
do {
|
do {
|
||||||
ptr += 1;
|
ptr += 1;
|
||||||
ptr = ctx->ParseMessage(&_impl_.options_, ptr);
|
ptr = ctx->ParseMessage(&_impl_.options_, ptr);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
if (!ctx->DataAvailable(ptr)) break;
|
if (!ctx->DataAvailable(ptr)) break;
|
||||||
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
@@ -3906,27 +3825,17 @@ uint8_t* OpenRequest::_InternalSerialize(
|
|||||||
2, this->_internal_engine(), target);
|
2, this->_internal_engine(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// string catalog = 3;
|
// string path = 3;
|
||||||
if (!this->_internal_catalog().empty()) {
|
if (!this->_internal_path().empty()) {
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
this->_internal_catalog().data(), static_cast<int>(this->_internal_catalog().length()),
|
this->_internal_path().data(), static_cast<int>(this->_internal_path().length()),
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
"greptime.v1.region.OpenRequest.catalog");
|
"greptime.v1.region.OpenRequest.path");
|
||||||
target = stream->WriteStringMaybeAliased(
|
target = stream->WriteStringMaybeAliased(
|
||||||
3, this->_internal_catalog(), target);
|
3, this->_internal_path(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// string schema = 4;
|
// map<string, string> options = 4;
|
||||||
if (!this->_internal_schema().empty()) {
|
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
||||||
this->_internal_schema().data(), static_cast<int>(this->_internal_schema().length()),
|
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
||||||
"greptime.v1.region.OpenRequest.schema");
|
|
||||||
target = stream->WriteStringMaybeAliased(
|
|
||||||
4, this->_internal_schema(), target);
|
|
||||||
}
|
|
||||||
|
|
||||||
// map<string, string> options = 5;
|
|
||||||
if (!this->_internal_options().empty()) {
|
if (!this->_internal_options().empty()) {
|
||||||
using MapType = ::_pb::Map<std::string, std::string>;
|
using MapType = ::_pb::Map<std::string, std::string>;
|
||||||
using WireHelper = OpenRequest_OptionsEntry_DoNotUse::Funcs;
|
using WireHelper = OpenRequest_OptionsEntry_DoNotUse::Funcs;
|
||||||
@@ -3945,12 +3854,12 @@ uint8_t* OpenRequest::_InternalSerialize(
|
|||||||
|
|
||||||
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
|
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
|
||||||
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
|
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
|
||||||
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
|
target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream);
|
||||||
check_utf8(entry);
|
check_utf8(entry);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (const auto& entry : map_field) {
|
for (const auto& entry : map_field) {
|
||||||
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
|
target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream);
|
||||||
check_utf8(entry);
|
check_utf8(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3972,7 +3881,7 @@ size_t OpenRequest::ByteSizeLong() const {
|
|||||||
// Prevent compiler warnings about cached_has_bits being unused
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
// map<string, string> options = 5;
|
// map<string, string> options = 4;
|
||||||
total_size += 1 *
|
total_size += 1 *
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size());
|
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size());
|
||||||
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
|
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
|
||||||
@@ -3988,18 +3897,11 @@ size_t OpenRequest::ByteSizeLong() const {
|
|||||||
this->_internal_engine());
|
this->_internal_engine());
|
||||||
}
|
}
|
||||||
|
|
||||||
// string catalog = 3;
|
// string path = 3;
|
||||||
if (!this->_internal_catalog().empty()) {
|
if (!this->_internal_path().empty()) {
|
||||||
total_size += 1 +
|
total_size += 1 +
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||||
this->_internal_catalog());
|
this->_internal_path());
|
||||||
}
|
|
||||||
|
|
||||||
// string schema = 4;
|
|
||||||
if (!this->_internal_schema().empty()) {
|
|
||||||
total_size += 1 +
|
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
||||||
this->_internal_schema());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// uint64 region_id = 1;
|
// uint64 region_id = 1;
|
||||||
@@ -4029,11 +3931,8 @@ void OpenRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR
|
|||||||
if (!from._internal_engine().empty()) {
|
if (!from._internal_engine().empty()) {
|
||||||
_this->_internal_set_engine(from._internal_engine());
|
_this->_internal_set_engine(from._internal_engine());
|
||||||
}
|
}
|
||||||
if (!from._internal_catalog().empty()) {
|
if (!from._internal_path().empty()) {
|
||||||
_this->_internal_set_catalog(from._internal_catalog());
|
_this->_internal_set_path(from._internal_path());
|
||||||
}
|
|
||||||
if (!from._internal_schema().empty()) {
|
|
||||||
_this->_internal_set_schema(from._internal_schema());
|
|
||||||
}
|
}
|
||||||
if (from._internal_region_id() != 0) {
|
if (from._internal_region_id() != 0) {
|
||||||
_this->_internal_set_region_id(from._internal_region_id());
|
_this->_internal_set_region_id(from._internal_region_id());
|
||||||
@@ -4063,12 +3962,8 @@ void OpenRequest::InternalSwap(OpenRequest* other) {
|
|||||||
&other->_impl_.engine_, rhs_arena
|
&other->_impl_.engine_, rhs_arena
|
||||||
);
|
);
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||||
&_impl_.catalog_, lhs_arena,
|
&_impl_.path_, lhs_arena,
|
||||||
&other->_impl_.catalog_, rhs_arena
|
&other->_impl_.path_, rhs_arena
|
||||||
);
|
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
||||||
&_impl_.schema_, lhs_arena,
|
|
||||||
&other->_impl_.schema_, rhs_arena
|
|
||||||
);
|
);
|
||||||
swap(_impl_.region_id_, other->_impl_.region_id_);
|
swap(_impl_.region_id_, other->_impl_.region_id_);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1837,10 +1837,9 @@ class CreateRequest final :
|
|||||||
enum : int {
|
enum : int {
|
||||||
kColumnDefsFieldNumber = 3,
|
kColumnDefsFieldNumber = 3,
|
||||||
kPrimaryKeyFieldNumber = 4,
|
kPrimaryKeyFieldNumber = 4,
|
||||||
kOptionsFieldNumber = 8,
|
kOptionsFieldNumber = 7,
|
||||||
kEngineFieldNumber = 2,
|
kEngineFieldNumber = 2,
|
||||||
kCatalogFieldNumber = 6,
|
kPathFieldNumber = 6,
|
||||||
kSchemaFieldNumber = 7,
|
|
||||||
kRegionIdFieldNumber = 1,
|
kRegionIdFieldNumber = 1,
|
||||||
kCreateIfNotExistsFieldNumber = 5,
|
kCreateIfNotExistsFieldNumber = 5,
|
||||||
};
|
};
|
||||||
@@ -1884,7 +1883,7 @@ class CreateRequest final :
|
|||||||
::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
|
||||||
mutable_primary_key();
|
mutable_primary_key();
|
||||||
|
|
||||||
// map<string, string> options = 8;
|
// map<string, string> options = 7;
|
||||||
int options_size() const;
|
int options_size() const;
|
||||||
private:
|
private:
|
||||||
int _internal_options_size() const;
|
int _internal_options_size() const;
|
||||||
@@ -1915,32 +1914,18 @@ class CreateRequest final :
|
|||||||
std::string* _internal_mutable_engine();
|
std::string* _internal_mutable_engine();
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// string catalog = 6;
|
// string path = 6;
|
||||||
void clear_catalog();
|
void clear_path();
|
||||||
const std::string& catalog() const;
|
const std::string& path() const;
|
||||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||||
void set_catalog(ArgT0&& arg0, ArgT... args);
|
void set_path(ArgT0&& arg0, ArgT... args);
|
||||||
std::string* mutable_catalog();
|
std::string* mutable_path();
|
||||||
PROTOBUF_NODISCARD std::string* release_catalog();
|
PROTOBUF_NODISCARD std::string* release_path();
|
||||||
void set_allocated_catalog(std::string* catalog);
|
void set_allocated_path(std::string* path);
|
||||||
private:
|
private:
|
||||||
const std::string& _internal_catalog() const;
|
const std::string& _internal_path() const;
|
||||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog(const std::string& value);
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value);
|
||||||
std::string* _internal_mutable_catalog();
|
std::string* _internal_mutable_path();
|
||||||
public:
|
|
||||||
|
|
||||||
// string schema = 7;
|
|
||||||
void clear_schema();
|
|
||||||
const std::string& schema() const;
|
|
||||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
||||||
void set_schema(ArgT0&& arg0, ArgT... args);
|
|
||||||
std::string* mutable_schema();
|
|
||||||
PROTOBUF_NODISCARD std::string* release_schema();
|
|
||||||
void set_allocated_schema(std::string* schema);
|
|
||||||
private:
|
|
||||||
const std::string& _internal_schema() const;
|
|
||||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema(const std::string& value);
|
|
||||||
std::string* _internal_mutable_schema();
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// uint64 region_id = 1;
|
// uint64 region_id = 1;
|
||||||
@@ -1978,8 +1963,7 @@ class CreateRequest final :
|
|||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_;
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_;
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr engine_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr engine_;
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_;
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_;
|
|
||||||
uint64_t region_id_;
|
uint64_t region_id_;
|
||||||
bool create_if_not_exists_;
|
bool create_if_not_exists_;
|
||||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
@@ -2289,13 +2273,12 @@ class OpenRequest final :
|
|||||||
// accessors -------------------------------------------------------
|
// accessors -------------------------------------------------------
|
||||||
|
|
||||||
enum : int {
|
enum : int {
|
||||||
kOptionsFieldNumber = 5,
|
kOptionsFieldNumber = 4,
|
||||||
kEngineFieldNumber = 2,
|
kEngineFieldNumber = 2,
|
||||||
kCatalogFieldNumber = 3,
|
kPathFieldNumber = 3,
|
||||||
kSchemaFieldNumber = 4,
|
|
||||||
kRegionIdFieldNumber = 1,
|
kRegionIdFieldNumber = 1,
|
||||||
};
|
};
|
||||||
// map<string, string> options = 5;
|
// map<string, string> options = 4;
|
||||||
int options_size() const;
|
int options_size() const;
|
||||||
private:
|
private:
|
||||||
int _internal_options_size() const;
|
int _internal_options_size() const;
|
||||||
@@ -2326,32 +2309,18 @@ class OpenRequest final :
|
|||||||
std::string* _internal_mutable_engine();
|
std::string* _internal_mutable_engine();
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// string catalog = 3;
|
// string path = 3;
|
||||||
void clear_catalog();
|
void clear_path();
|
||||||
const std::string& catalog() const;
|
const std::string& path() const;
|
||||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||||
void set_catalog(ArgT0&& arg0, ArgT... args);
|
void set_path(ArgT0&& arg0, ArgT... args);
|
||||||
std::string* mutable_catalog();
|
std::string* mutable_path();
|
||||||
PROTOBUF_NODISCARD std::string* release_catalog();
|
PROTOBUF_NODISCARD std::string* release_path();
|
||||||
void set_allocated_catalog(std::string* catalog);
|
void set_allocated_path(std::string* path);
|
||||||
private:
|
private:
|
||||||
const std::string& _internal_catalog() const;
|
const std::string& _internal_path() const;
|
||||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog(const std::string& value);
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value);
|
||||||
std::string* _internal_mutable_catalog();
|
std::string* _internal_mutable_path();
|
||||||
public:
|
|
||||||
|
|
||||||
// string schema = 4;
|
|
||||||
void clear_schema();
|
|
||||||
const std::string& schema() const;
|
|
||||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
||||||
void set_schema(ArgT0&& arg0, ArgT... args);
|
|
||||||
std::string* mutable_schema();
|
|
||||||
PROTOBUF_NODISCARD std::string* release_schema();
|
|
||||||
void set_allocated_schema(std::string* schema);
|
|
||||||
private:
|
|
||||||
const std::string& _internal_schema() const;
|
|
||||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema(const std::string& value);
|
|
||||||
std::string* _internal_mutable_schema();
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// uint64 region_id = 1;
|
// uint64 region_id = 1;
|
||||||
@@ -2377,8 +2346,7 @@ class OpenRequest final :
|
|||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_;
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_;
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr engine_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr engine_;
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_;
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_;
|
|
||||||
uint64_t region_id_;
|
uint64_t region_id_;
|
||||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
};
|
};
|
||||||
@@ -5441,107 +5409,57 @@ inline void CreateRequest::set_create_if_not_exists(bool value) {
|
|||||||
// @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.create_if_not_exists)
|
// @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.create_if_not_exists)
|
||||||
}
|
}
|
||||||
|
|
||||||
// string catalog = 6;
|
// string path = 6;
|
||||||
inline void CreateRequest::clear_catalog() {
|
inline void CreateRequest::clear_path() {
|
||||||
_impl_.catalog_.ClearToEmpty();
|
_impl_.path_.ClearToEmpty();
|
||||||
}
|
}
|
||||||
inline const std::string& CreateRequest::catalog() const {
|
inline const std::string& CreateRequest::path() const {
|
||||||
// @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.catalog)
|
// @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.path)
|
||||||
return _internal_catalog();
|
return _internal_path();
|
||||||
}
|
}
|
||||||
template <typename ArgT0, typename... ArgT>
|
template <typename ArgT0, typename... ArgT>
|
||||||
inline PROTOBUF_ALWAYS_INLINE
|
inline PROTOBUF_ALWAYS_INLINE
|
||||||
void CreateRequest::set_catalog(ArgT0&& arg0, ArgT... args) {
|
void CreateRequest::set_path(ArgT0&& arg0, ArgT... args) {
|
||||||
|
|
||||||
_impl_.catalog_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
_impl_.path_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||||
// @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.catalog)
|
// @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.path)
|
||||||
}
|
}
|
||||||
inline std::string* CreateRequest::mutable_catalog() {
|
inline std::string* CreateRequest::mutable_path() {
|
||||||
std::string* _s = _internal_mutable_catalog();
|
std::string* _s = _internal_mutable_path();
|
||||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.CreateRequest.catalog)
|
// @@protoc_insertion_point(field_mutable:greptime.v1.region.CreateRequest.path)
|
||||||
return _s;
|
return _s;
|
||||||
}
|
}
|
||||||
inline const std::string& CreateRequest::_internal_catalog() const {
|
inline const std::string& CreateRequest::_internal_path() const {
|
||||||
return _impl_.catalog_.Get();
|
return _impl_.path_.Get();
|
||||||
}
|
}
|
||||||
inline void CreateRequest::_internal_set_catalog(const std::string& value) {
|
inline void CreateRequest::_internal_set_path(const std::string& value) {
|
||||||
|
|
||||||
_impl_.catalog_.Set(value, GetArenaForAllocation());
|
_impl_.path_.Set(value, GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
inline std::string* CreateRequest::_internal_mutable_catalog() {
|
inline std::string* CreateRequest::_internal_mutable_path() {
|
||||||
|
|
||||||
return _impl_.catalog_.Mutable(GetArenaForAllocation());
|
return _impl_.path_.Mutable(GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
inline std::string* CreateRequest::release_catalog() {
|
inline std::string* CreateRequest::release_path() {
|
||||||
// @@protoc_insertion_point(field_release:greptime.v1.region.CreateRequest.catalog)
|
// @@protoc_insertion_point(field_release:greptime.v1.region.CreateRequest.path)
|
||||||
return _impl_.catalog_.Release();
|
return _impl_.path_.Release();
|
||||||
}
|
}
|
||||||
inline void CreateRequest::set_allocated_catalog(std::string* catalog) {
|
inline void CreateRequest::set_allocated_path(std::string* path) {
|
||||||
if (catalog != nullptr) {
|
if (path != nullptr) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
_impl_.catalog_.SetAllocated(catalog, GetArenaForAllocation());
|
_impl_.path_.SetAllocated(path, GetArenaForAllocation());
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
if (_impl_.catalog_.IsDefault()) {
|
if (_impl_.path_.IsDefault()) {
|
||||||
_impl_.catalog_.Set("", GetArenaForAllocation());
|
_impl_.path_.Set("", GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.CreateRequest.catalog)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.CreateRequest.path)
|
||||||
}
|
}
|
||||||
|
|
||||||
// string schema = 7;
|
// map<string, string> options = 7;
|
||||||
inline void CreateRequest::clear_schema() {
|
|
||||||
_impl_.schema_.ClearToEmpty();
|
|
||||||
}
|
|
||||||
inline const std::string& CreateRequest::schema() const {
|
|
||||||
// @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.schema)
|
|
||||||
return _internal_schema();
|
|
||||||
}
|
|
||||||
template <typename ArgT0, typename... ArgT>
|
|
||||||
inline PROTOBUF_ALWAYS_INLINE
|
|
||||||
void CreateRequest::set_schema(ArgT0&& arg0, ArgT... args) {
|
|
||||||
|
|
||||||
_impl_.schema_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
||||||
// @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.schema)
|
|
||||||
}
|
|
||||||
inline std::string* CreateRequest::mutable_schema() {
|
|
||||||
std::string* _s = _internal_mutable_schema();
|
|
||||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.CreateRequest.schema)
|
|
||||||
return _s;
|
|
||||||
}
|
|
||||||
inline const std::string& CreateRequest::_internal_schema() const {
|
|
||||||
return _impl_.schema_.Get();
|
|
||||||
}
|
|
||||||
inline void CreateRequest::_internal_set_schema(const std::string& value) {
|
|
||||||
|
|
||||||
_impl_.schema_.Set(value, GetArenaForAllocation());
|
|
||||||
}
|
|
||||||
inline std::string* CreateRequest::_internal_mutable_schema() {
|
|
||||||
|
|
||||||
return _impl_.schema_.Mutable(GetArenaForAllocation());
|
|
||||||
}
|
|
||||||
inline std::string* CreateRequest::release_schema() {
|
|
||||||
// @@protoc_insertion_point(field_release:greptime.v1.region.CreateRequest.schema)
|
|
||||||
return _impl_.schema_.Release();
|
|
||||||
}
|
|
||||||
inline void CreateRequest::set_allocated_schema(std::string* schema) {
|
|
||||||
if (schema != nullptr) {
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
}
|
|
||||||
_impl_.schema_.SetAllocated(schema, GetArenaForAllocation());
|
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
||||||
if (_impl_.schema_.IsDefault()) {
|
|
||||||
_impl_.schema_.Set("", GetArenaForAllocation());
|
|
||||||
}
|
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.CreateRequest.schema)
|
|
||||||
}
|
|
||||||
|
|
||||||
// map<string, string> options = 8;
|
|
||||||
inline int CreateRequest::_internal_options_size() const {
|
inline int CreateRequest::_internal_options_size() const {
|
||||||
return _impl_.options_.size();
|
return _impl_.options_.size();
|
||||||
}
|
}
|
||||||
@@ -5670,107 +5588,57 @@ inline void OpenRequest::set_allocated_engine(std::string* engine) {
|
|||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.engine)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.engine)
|
||||||
}
|
}
|
||||||
|
|
||||||
// string catalog = 3;
|
// string path = 3;
|
||||||
inline void OpenRequest::clear_catalog() {
|
inline void OpenRequest::clear_path() {
|
||||||
_impl_.catalog_.ClearToEmpty();
|
_impl_.path_.ClearToEmpty();
|
||||||
}
|
}
|
||||||
inline const std::string& OpenRequest::catalog() const {
|
inline const std::string& OpenRequest::path() const {
|
||||||
// @@protoc_insertion_point(field_get:greptime.v1.region.OpenRequest.catalog)
|
// @@protoc_insertion_point(field_get:greptime.v1.region.OpenRequest.path)
|
||||||
return _internal_catalog();
|
return _internal_path();
|
||||||
}
|
}
|
||||||
template <typename ArgT0, typename... ArgT>
|
template <typename ArgT0, typename... ArgT>
|
||||||
inline PROTOBUF_ALWAYS_INLINE
|
inline PROTOBUF_ALWAYS_INLINE
|
||||||
void OpenRequest::set_catalog(ArgT0&& arg0, ArgT... args) {
|
void OpenRequest::set_path(ArgT0&& arg0, ArgT... args) {
|
||||||
|
|
||||||
_impl_.catalog_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
_impl_.path_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||||
// @@protoc_insertion_point(field_set:greptime.v1.region.OpenRequest.catalog)
|
// @@protoc_insertion_point(field_set:greptime.v1.region.OpenRequest.path)
|
||||||
}
|
}
|
||||||
inline std::string* OpenRequest::mutable_catalog() {
|
inline std::string* OpenRequest::mutable_path() {
|
||||||
std::string* _s = _internal_mutable_catalog();
|
std::string* _s = _internal_mutable_path();
|
||||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.OpenRequest.catalog)
|
// @@protoc_insertion_point(field_mutable:greptime.v1.region.OpenRequest.path)
|
||||||
return _s;
|
return _s;
|
||||||
}
|
}
|
||||||
inline const std::string& OpenRequest::_internal_catalog() const {
|
inline const std::string& OpenRequest::_internal_path() const {
|
||||||
return _impl_.catalog_.Get();
|
return _impl_.path_.Get();
|
||||||
}
|
}
|
||||||
inline void OpenRequest::_internal_set_catalog(const std::string& value) {
|
inline void OpenRequest::_internal_set_path(const std::string& value) {
|
||||||
|
|
||||||
_impl_.catalog_.Set(value, GetArenaForAllocation());
|
_impl_.path_.Set(value, GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
inline std::string* OpenRequest::_internal_mutable_catalog() {
|
inline std::string* OpenRequest::_internal_mutable_path() {
|
||||||
|
|
||||||
return _impl_.catalog_.Mutable(GetArenaForAllocation());
|
return _impl_.path_.Mutable(GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
inline std::string* OpenRequest::release_catalog() {
|
inline std::string* OpenRequest::release_path() {
|
||||||
// @@protoc_insertion_point(field_release:greptime.v1.region.OpenRequest.catalog)
|
// @@protoc_insertion_point(field_release:greptime.v1.region.OpenRequest.path)
|
||||||
return _impl_.catalog_.Release();
|
return _impl_.path_.Release();
|
||||||
}
|
}
|
||||||
inline void OpenRequest::set_allocated_catalog(std::string* catalog) {
|
inline void OpenRequest::set_allocated_path(std::string* path) {
|
||||||
if (catalog != nullptr) {
|
if (path != nullptr) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
_impl_.catalog_.SetAllocated(catalog, GetArenaForAllocation());
|
_impl_.path_.SetAllocated(path, GetArenaForAllocation());
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
if (_impl_.catalog_.IsDefault()) {
|
if (_impl_.path_.IsDefault()) {
|
||||||
_impl_.catalog_.Set("", GetArenaForAllocation());
|
_impl_.path_.Set("", GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.catalog)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.path)
|
||||||
}
|
}
|
||||||
|
|
||||||
// string schema = 4;
|
// map<string, string> options = 4;
|
||||||
inline void OpenRequest::clear_schema() {
|
|
||||||
_impl_.schema_.ClearToEmpty();
|
|
||||||
}
|
|
||||||
inline const std::string& OpenRequest::schema() const {
|
|
||||||
// @@protoc_insertion_point(field_get:greptime.v1.region.OpenRequest.schema)
|
|
||||||
return _internal_schema();
|
|
||||||
}
|
|
||||||
template <typename ArgT0, typename... ArgT>
|
|
||||||
inline PROTOBUF_ALWAYS_INLINE
|
|
||||||
void OpenRequest::set_schema(ArgT0&& arg0, ArgT... args) {
|
|
||||||
|
|
||||||
_impl_.schema_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
||||||
// @@protoc_insertion_point(field_set:greptime.v1.region.OpenRequest.schema)
|
|
||||||
}
|
|
||||||
inline std::string* OpenRequest::mutable_schema() {
|
|
||||||
std::string* _s = _internal_mutable_schema();
|
|
||||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.OpenRequest.schema)
|
|
||||||
return _s;
|
|
||||||
}
|
|
||||||
inline const std::string& OpenRequest::_internal_schema() const {
|
|
||||||
return _impl_.schema_.Get();
|
|
||||||
}
|
|
||||||
inline void OpenRequest::_internal_set_schema(const std::string& value) {
|
|
||||||
|
|
||||||
_impl_.schema_.Set(value, GetArenaForAllocation());
|
|
||||||
}
|
|
||||||
inline std::string* OpenRequest::_internal_mutable_schema() {
|
|
||||||
|
|
||||||
return _impl_.schema_.Mutable(GetArenaForAllocation());
|
|
||||||
}
|
|
||||||
inline std::string* OpenRequest::release_schema() {
|
|
||||||
// @@protoc_insertion_point(field_release:greptime.v1.region.OpenRequest.schema)
|
|
||||||
return _impl_.schema_.Release();
|
|
||||||
}
|
|
||||||
inline void OpenRequest::set_allocated_schema(std::string* schema) {
|
|
||||||
if (schema != nullptr) {
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
}
|
|
||||||
_impl_.schema_.SetAllocated(schema, GetArenaForAllocation());
|
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
||||||
if (_impl_.schema_.IsDefault()) {
|
|
||||||
_impl_.schema_.Set("", GetArenaForAllocation());
|
|
||||||
}
|
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.schema)
|
|
||||||
}
|
|
||||||
|
|
||||||
// map<string, string> options = 5;
|
|
||||||
inline int OpenRequest::_internal_options_size() const {
|
inline int OpenRequest::_internal_options_size() const {
|
||||||
return _impl_.options_.size();
|
return _impl_.options_.size();
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -85,13 +85,10 @@ message CreateRequest {
|
|||||||
repeated uint32 primary_key = 4;
|
repeated uint32 primary_key = 4;
|
||||||
// Create region if not exists.
|
// Create region if not exists.
|
||||||
bool create_if_not_exists = 5;
|
bool create_if_not_exists = 5;
|
||||||
// catalog name and schema name is to accomplish storage path
|
// Region storage path
|
||||||
// catalog name
|
string path = 6;
|
||||||
string catalog = 6;
|
|
||||||
// schema name
|
|
||||||
string schema = 7;
|
|
||||||
// Options of the created region.
|
// Options of the created region.
|
||||||
map<string, string> options = 8;
|
map<string, string> options = 7;
|
||||||
// TODO: add partition def
|
// TODO: add partition def
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,13 +98,10 @@ message OpenRequest {
|
|||||||
uint64 region_id = 1;
|
uint64 region_id = 1;
|
||||||
// Region engine name
|
// Region engine name
|
||||||
string engine = 2;
|
string engine = 2;
|
||||||
// catalog name and schema name is to accomplish storage path
|
// Region storage path
|
||||||
// catalog name
|
string path = 3;
|
||||||
string catalog = 3;
|
|
||||||
// schema name
|
|
||||||
string schema = 4;
|
|
||||||
// Options of the opened region.
|
// Options of the opened region.
|
||||||
map<string, string> options = 5;
|
map<string, string> options = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CloseRequest { uint64 region_id = 1; }
|
message CloseRequest { uint64 region_id = 1; }
|
||||||
|
|||||||
Reference in New Issue
Block a user