feat: remove storage path in open/create request (#92)
* feat: remove storage path in open/create request Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * generate code Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * sync changes Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
+302
-169
@@ -25,9 +25,10 @@ namespace v1 {
|
|||||||
namespace region {
|
namespace region {
|
||||||
PROTOBUF_CONSTEXPR RegionRequestHeader::RegionRequestHeader(
|
PROTOBUF_CONSTEXPR RegionRequestHeader::RegionRequestHeader(
|
||||||
::_pbi::ConstantInitialized): _impl_{
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
/*decltype(_impl_.trace_id_)*/uint64_t{0u}
|
/*decltype(_impl_._has_bits_)*/{}
|
||||||
, /*decltype(_impl_.span_id_)*/uint64_t{0u}
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
, /*decltype(_impl_.trace_id_)*/uint64_t{0u}
|
||||||
|
, /*decltype(_impl_.span_id_)*/uint64_t{0u}} {}
|
||||||
struct RegionRequestHeaderDefaultTypeInternal {
|
struct RegionRequestHeaderDefaultTypeInternal {
|
||||||
PROTOBUF_CONSTEXPR RegionRequestHeaderDefaultTypeInternal()
|
PROTOBUF_CONSTEXPR RegionRequestHeaderDefaultTypeInternal()
|
||||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||||
@@ -152,7 +153,8 @@ 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_.region_dir_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
, /*decltype(_impl_.catalog_)*/{&::_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_)*/{}} {}
|
||||||
@@ -193,7 +195,8 @@ 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_.region_dir_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
, /*decltype(_impl_.catalog_)*/{&::_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 {
|
||||||
@@ -283,7 +286,7 @@ static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_grept
|
|||||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr;
|
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr;
|
||||||
|
|
||||||
const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
~0u, // no _has_bits_
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_._has_bits_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _internal_metadata_),
|
||||||
~0u, // no _extensions_
|
~0u, // no _extensions_
|
||||||
~0u, // no _oneof_case_
|
~0u, // no _oneof_case_
|
||||||
@@ -291,6 +294,8 @@ 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::RegionRequestHeader, _impl_.trace_id_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_.trace_id_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_.span_id_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_.span_id_),
|
||||||
|
0,
|
||||||
|
1,
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequest, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequest, _internal_metadata_),
|
||||||
~0u, // no _extensions_
|
~0u, // no _extensions_
|
||||||
@@ -375,7 +380,8 @@ 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_.region_dir_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.catalog_),
|
||||||
|
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_),
|
||||||
@@ -402,7 +408,8 @@ 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_.region_dir_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.catalog_),
|
||||||
|
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_),
|
||||||
@@ -446,24 +453,24 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
|
|||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ColumnDef, _impl_.semantic_type_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ColumnDef, _impl_.semantic_type_),
|
||||||
};
|
};
|
||||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
{ 0, -1, -1, sizeof(::greptime::v1::region::RegionRequestHeader)},
|
{ 0, 8, -1, sizeof(::greptime::v1::region::RegionRequestHeader)},
|
||||||
{ 8, -1, -1, sizeof(::greptime::v1::region::RegionRequest)},
|
{ 10, -1, -1, sizeof(::greptime::v1::region::RegionRequest)},
|
||||||
{ 25, -1, -1, sizeof(::greptime::v1::region::RegionResponse)},
|
{ 27, -1, -1, sizeof(::greptime::v1::region::RegionResponse)},
|
||||||
{ 33, -1, -1, sizeof(::greptime::v1::region::InsertRequests)},
|
{ 35, -1, -1, sizeof(::greptime::v1::region::InsertRequests)},
|
||||||
{ 40, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)},
|
{ 42, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)},
|
||||||
{ 47, -1, -1, sizeof(::greptime::v1::region::InsertRequest)},
|
{ 49, -1, -1, sizeof(::greptime::v1::region::InsertRequest)},
|
||||||
{ 55, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
|
{ 57, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
|
||||||
{ 63, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
|
{ 65, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
|
||||||
{ 71, 79, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
|
{ 73, 81, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
|
||||||
{ 81, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
|
{ 83, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
|
||||||
{ 94, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
|
{ 97, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
|
||||||
{ 101, 109, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
|
{ 104, 112, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
|
||||||
{ 111, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
|
{ 114, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
|
||||||
{ 121, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
{ 125, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
||||||
{ 128, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
{ 132, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
||||||
{ 135, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
{ 139, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||||
{ 142, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
{ 146, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||||
{ 149, -1, -1, sizeof(::greptime::v1::region::ColumnDef)},
|
{ 153, -1, -1, sizeof(::greptime::v1::region::ColumnDef)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
@@ -490,59 +497,60 @@ static const ::_pb::Message* const file_default_instances[] = {
|
|||||||
const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||||
"\n\037greptime/v1/region/server.proto\022\022grept"
|
"\n\037greptime/v1/region/server.proto\022\022grept"
|
||||||
"ime.v1.region\032\030greptime/v1/common.proto\032"
|
"ime.v1.region\032\030greptime/v1/common.proto\032"
|
||||||
"\025greptime/v1/row.proto\"8\n\023RegionRequestH"
|
"\025greptime/v1/row.proto\"[\n\023RegionRequestH"
|
||||||
"eader\022\020\n\010trace_id\030\001 \001(\004\022\017\n\007span_id\030\002 \001(\004"
|
"eader\022\025\n\010trace_id\030\001 \001(\004H\000\210\001\001\022\024\n\007span_id\030"
|
||||||
"\"\245\004\n\rRegionRequest\0227\n\006header\030\001 \001(\0132\'.gre"
|
"\002 \001(\004H\001\210\001\001B\013\n\t_trace_idB\n\n\010_span_id\"\245\004\n\r"
|
||||||
"ptime.v1.region.RegionRequestHeader\0225\n\007i"
|
"RegionRequest\0227\n\006header\030\001 \001(\0132\'.greptime"
|
||||||
"nserts\030\003 \001(\0132\".greptime.v1.region.Insert"
|
".v1.region.RegionRequestHeader\0225\n\007insert"
|
||||||
"RequestsH\000\0225\n\007deletes\030\004 \001(\0132\".greptime.v"
|
"s\030\003 \001(\0132\".greptime.v1.region.InsertReque"
|
||||||
"1.region.DeleteRequestsH\000\0223\n\006create\030\005 \001("
|
"stsH\000\0225\n\007deletes\030\004 \001(\0132\".greptime.v1.reg"
|
||||||
"\0132!.greptime.v1.region.CreateRequestH\000\022/"
|
"ion.DeleteRequestsH\000\0223\n\006create\030\005 \001(\0132!.g"
|
||||||
"\n\004drop\030\006 \001(\0132\037.greptime.v1.region.DropRe"
|
"reptime.v1.region.CreateRequestH\000\022/\n\004dro"
|
||||||
"questH\000\022/\n\004open\030\007 \001(\0132\037.greptime.v1.regi"
|
"p\030\006 \001(\0132\037.greptime.v1.region.DropRequest"
|
||||||
"on.OpenRequestH\000\0221\n\005close\030\010 \001(\0132 .grepti"
|
"H\000\022/\n\004open\030\007 \001(\0132\037.greptime.v1.region.Op"
|
||||||
"me.v1.region.CloseRequestH\000\0221\n\005alter\030\t \001"
|
"enRequestH\000\0221\n\005close\030\010 \001(\0132 .greptime.v1"
|
||||||
"(\0132 .greptime.v1.region.AlterRequestH\000\0221"
|
".region.CloseRequestH\000\0221\n\005alter\030\t \001(\0132 ."
|
||||||
"\n\005flush\030\n \001(\0132 .greptime.v1.region.Flush"
|
"greptime.v1.region.AlterRequestH\000\0221\n\005flu"
|
||||||
"RequestH\000\0225\n\007compact\030\013 \001(\0132\".greptime.v1"
|
"sh\030\n \001(\0132 .greptime.v1.region.FlushReque"
|
||||||
".region.CompactRequestH\000B\006\n\004body\"T\n\016Regi"
|
"stH\000\0225\n\007compact\030\013 \001(\0132\".greptime.v1.regi"
|
||||||
"onResponse\022+\n\006header\030\001 \001(\0132\033.greptime.v1"
|
"on.CompactRequestH\000B\006\n\004body\"T\n\016RegionRes"
|
||||||
".ResponseHeader\022\025\n\raffected_rows\030\002 \001(\004\"E"
|
"ponse\022+\n\006header\030\001 \001(\0132\033.greptime.v1.Resp"
|
||||||
"\n\016InsertRequests\0223\n\010requests\030\001 \003(\0132!.gre"
|
"onseHeader\022\025\n\raffected_rows\030\002 \001(\004\"E\n\016Ins"
|
||||||
"ptime.v1.region.InsertRequest\"E\n\016DeleteR"
|
"ertRequests\0223\n\010requests\030\001 \003(\0132!.greptime"
|
||||||
"equests\0223\n\010requests\030\001 \003(\0132!.greptime.v1."
|
".v1.region.InsertRequest\"E\n\016DeleteReques"
|
||||||
"region.DeleteRequest\"C\n\rInsertRequest\022\021\n"
|
"ts\0223\n\010requests\030\001 \003(\0132!.greptime.v1.regio"
|
||||||
"\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptim"
|
"n.DeleteRequest\"C\n\rInsertRequest\022\021\n\tregi"
|
||||||
"e.v1.Rows\"C\n\rDeleteRequest\022\021\n\tregion_id\030"
|
"on_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1."
|
||||||
"\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"/"
|
"Rows\"C\n\rDeleteRequest\022\021\n\tregion_id\030\001 \001(\004"
|
||||||
"\n\014QueryRequest\022\021\n\tregion_id\030\001 \001(\004\022\014\n\004pla"
|
"\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"/\n\014Que"
|
||||||
"n\030\002 \001(\014\"\236\002\n\rCreateRequest\022\021\n\tregion_id\030\001"
|
"ryRequest\022\021\n\tregion_id\030\001 \001(\004\022\014\n\004plan\030\002 \001"
|
||||||
" \001(\004\022\016\n\006engine\030\002 \001(\t\0222\n\013column_defs\030\003 \003("
|
"(\014\"\253\002\n\rCreateRequest\022\021\n\tregion_id\030\001 \001(\004\022"
|
||||||
"\0132\035.greptime.v1.region.ColumnDef\022\023\n\013prim"
|
"\016\n\006engine\030\002 \001(\t\0222\n\013column_defs\030\003 \003(\0132\035.g"
|
||||||
"ary_key\030\004 \003(\r\022\034\n\024create_if_not_exists\030\005 "
|
"reptime.v1.region.ColumnDef\022\023\n\013primary_k"
|
||||||
"\001(\010\022\022\n\nregion_dir\030\006 \001(\t\022\?\n\007options\030\007 \003(\013"
|
"ey\030\004 \003(\r\022\034\n\024create_if_not_exists\030\005 \001(\010\022\017"
|
||||||
"2..greptime.v1.region.CreateRequest.Opti"
|
"\n\007catalog\030\006 \001(\t\022\016\n\006schema\030\007 \001(\t\022\?\n\007optio"
|
||||||
"onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
|
"ns\030\010 \003(\0132..greptime.v1.region.CreateRequ"
|
||||||
"\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022\021\n\tregio"
|
"est.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030"
|
||||||
"n_id\030\001 \001(\004\"\263\001\n\013OpenRequest\022\021\n\tregion_id\030"
|
"\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022"
|
||||||
"\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\022\n\nregion_dir\030\003 \001("
|
"\021\n\tregion_id\030\001 \001(\004\"\300\001\n\013OpenRequest\022\021\n\tre"
|
||||||
"\t\022=\n\007options\030\004 \003(\0132,.greptime.v1.region."
|
"gion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\017\n\007catalog"
|
||||||
"OpenRequest.OptionsEntry\032.\n\014OptionsEntry"
|
"\030\003 \001(\t\022\016\n\006schema\030\004 \001(\t\022=\n\007options\030\005 \003(\0132"
|
||||||
"\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014Clos"
|
",.greptime.v1.region.OpenRequest.Options"
|
||||||
"eRequest\022\021\n\tregion_id\030\001 \001(\004\"!\n\014AlterRequ"
|
"Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
|
||||||
"est\022\021\n\tregion_id\030\001 \001(\004\"!\n\014FlushRequest\022\021"
|
"lue\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_"
|
||||||
"\n\tregion_id\030\001 \001(\004\"#\n\016CompactRequest\022\021\n\tr"
|
"id\030\001 \001(\004\"!\n\014AlterRequest\022\021\n\tregion_id\030\001 "
|
||||||
"egion_id\030\001 \001(\004\"\276\001\n\tColumnDef\022\014\n\004name\030\001 \001"
|
"\001(\004\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"#"
|
||||||
"(\t\022\021\n\tcolumn_id\030\002 \001(\r\022-\n\010datatype\030\003 \001(\0162"
|
"\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"\276\001\n\t"
|
||||||
"\033.greptime.v1.ColumnDataType\022\023\n\013is_nulla"
|
"ColumnDef\022\014\n\004name\030\001 \001(\t\022\021\n\tcolumn_id\030\002 \001"
|
||||||
"ble\030\004 \001(\010\022\032\n\022default_constraint\030\005 \001(\014\0220\n"
|
"(\r\022-\n\010datatype\030\003 \001(\0162\033.greptime.v1.Colum"
|
||||||
"\rsemantic_type\030\006 \001(\0162\031.greptime.v1.Seman"
|
"nDataType\022\023\n\013is_nullable\030\004 \001(\010\022\032\n\022defaul"
|
||||||
"ticType2Y\n\006Region\022O\n\006Handle\022!.greptime.v"
|
"t_constraint\030\005 \001(\014\0220\n\rsemantic_type\030\006 \001("
|
||||||
"1.region.RegionRequest\032\".greptime.v1.reg"
|
"\0162\031.greptime.v1.SemanticType2Y\n\006Region\022O"
|
||||||
"ion.RegionResponseB]\n\025io.greptime.v1.reg"
|
"\n\006Handle\022!.greptime.v1.region.RegionRequ"
|
||||||
"ionB\006ServerZ<github.com/GreptimeTeam/gre"
|
"est\032\".greptime.v1.region.RegionResponseB"
|
||||||
"ptime-proto/go/greptime/v1/regionb\006proto"
|
"]\n\025io.greptime.v1.regionB\006ServerZ<github"
|
||||||
"3"
|
".com/GreptimeTeam/greptime-proto/go/grep"
|
||||||
|
"time/v1/regionb\006proto3"
|
||||||
;
|
;
|
||||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[2] = {
|
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[2] = {
|
||||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||||
@@ -550,7 +558,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, 2161, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
false, false, 2222, 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, 2, 18,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 2, 18,
|
||||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
|
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
|
||||||
@@ -571,6 +579,13 @@ namespace region {
|
|||||||
|
|
||||||
class RegionRequestHeader::_Internal {
|
class RegionRequestHeader::_Internal {
|
||||||
public:
|
public:
|
||||||
|
using HasBits = decltype(std::declval<RegionRequestHeader>()._impl_._has_bits_);
|
||||||
|
static void set_has_trace_id(HasBits* has_bits) {
|
||||||
|
(*has_bits)[0] |= 1u;
|
||||||
|
}
|
||||||
|
static void set_has_span_id(HasBits* has_bits) {
|
||||||
|
(*has_bits)[0] |= 2u;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
RegionRequestHeader::RegionRequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
RegionRequestHeader::RegionRequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||||
@@ -583,9 +598,10 @@ RegionRequestHeader::RegionRequestHeader(const RegionRequestHeader& from)
|
|||||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||||
RegionRequestHeader* const _this = this; (void)_this;
|
RegionRequestHeader* const _this = this; (void)_this;
|
||||||
new (&_impl_) Impl_{
|
new (&_impl_) Impl_{
|
||||||
decltype(_impl_.trace_id_){}
|
decltype(_impl_._has_bits_){from._impl_._has_bits_}
|
||||||
, decltype(_impl_.span_id_){}
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}};
|
, decltype(_impl_.trace_id_){}
|
||||||
|
, decltype(_impl_.span_id_){}};
|
||||||
|
|
||||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
::memcpy(&_impl_.trace_id_, &from._impl_.trace_id_,
|
::memcpy(&_impl_.trace_id_, &from._impl_.trace_id_,
|
||||||
@@ -599,9 +615,10 @@ inline void RegionRequestHeader::SharedCtor(
|
|||||||
(void)arena;
|
(void)arena;
|
||||||
(void)is_message_owned;
|
(void)is_message_owned;
|
||||||
new (&_impl_) Impl_{
|
new (&_impl_) Impl_{
|
||||||
decltype(_impl_.trace_id_){uint64_t{0u}}
|
decltype(_impl_._has_bits_){}
|
||||||
, decltype(_impl_.span_id_){uint64_t{0u}}
|
|
||||||
, /*decltype(_impl_._cached_size_)*/{}
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
|
, decltype(_impl_.trace_id_){uint64_t{0u}}
|
||||||
|
, decltype(_impl_.span_id_){uint64_t{0u}}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -628,29 +645,36 @@ void RegionRequestHeader::Clear() {
|
|||||||
// 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;
|
||||||
|
|
||||||
::memset(&_impl_.trace_id_, 0, static_cast<size_t>(
|
cached_has_bits = _impl_._has_bits_[0];
|
||||||
reinterpret_cast<char*>(&_impl_.span_id_) -
|
if (cached_has_bits & 0x00000003u) {
|
||||||
reinterpret_cast<char*>(&_impl_.trace_id_)) + sizeof(_impl_.span_id_));
|
::memset(&_impl_.trace_id_, 0, static_cast<size_t>(
|
||||||
|
reinterpret_cast<char*>(&_impl_.span_id_) -
|
||||||
|
reinterpret_cast<char*>(&_impl_.trace_id_)) + sizeof(_impl_.span_id_));
|
||||||
|
}
|
||||||
|
_impl_._has_bits_.Clear();
|
||||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* RegionRequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
const char* RegionRequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||||
|
_Internal::HasBits has_bits{};
|
||||||
while (!ctx->Done(&ptr)) {
|
while (!ctx->Done(&ptr)) {
|
||||||
uint32_t tag;
|
uint32_t tag;
|
||||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||||
switch (tag >> 3) {
|
switch (tag >> 3) {
|
||||||
// uint64 trace_id = 1;
|
// optional uint64 trace_id = 1;
|
||||||
case 1:
|
case 1:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
||||||
|
_Internal::set_has_trace_id(&has_bits);
|
||||||
_impl_.trace_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
_impl_.trace_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// uint64 span_id = 2;
|
// optional uint64 span_id = 2;
|
||||||
case 2:
|
case 2:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
||||||
|
_Internal::set_has_span_id(&has_bits);
|
||||||
_impl_.span_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
_impl_.span_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
} else
|
} else
|
||||||
@@ -672,6 +696,7 @@ const char* RegionRequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseCo
|
|||||||
CHK_(ptr != nullptr);
|
CHK_(ptr != nullptr);
|
||||||
} // while
|
} // while
|
||||||
message_done:
|
message_done:
|
||||||
|
_impl_._has_bits_.Or(has_bits);
|
||||||
return ptr;
|
return ptr;
|
||||||
failure:
|
failure:
|
||||||
ptr = nullptr;
|
ptr = nullptr;
|
||||||
@@ -685,14 +710,14 @@ uint8_t* RegionRequestHeader::_InternalSerialize(
|
|||||||
uint32_t cached_has_bits = 0;
|
uint32_t cached_has_bits = 0;
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
// uint64 trace_id = 1;
|
// optional uint64 trace_id = 1;
|
||||||
if (this->_internal_trace_id() != 0) {
|
if (_internal_has_trace_id()) {
|
||||||
target = stream->EnsureSpace(target);
|
target = stream->EnsureSpace(target);
|
||||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_trace_id(), target);
|
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_trace_id(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// uint64 span_id = 2;
|
// optional uint64 span_id = 2;
|
||||||
if (this->_internal_span_id() != 0) {
|
if (_internal_has_span_id()) {
|
||||||
target = stream->EnsureSpace(target);
|
target = stream->EnsureSpace(target);
|
||||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_span_id(), target);
|
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_span_id(), target);
|
||||||
}
|
}
|
||||||
@@ -713,16 +738,19 @@ size_t RegionRequestHeader::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;
|
||||||
|
|
||||||
// uint64 trace_id = 1;
|
cached_has_bits = _impl_._has_bits_[0];
|
||||||
if (this->_internal_trace_id() != 0) {
|
if (cached_has_bits & 0x00000003u) {
|
||||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_trace_id());
|
// optional uint64 trace_id = 1;
|
||||||
}
|
if (cached_has_bits & 0x00000001u) {
|
||||||
|
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_trace_id());
|
||||||
|
}
|
||||||
|
|
||||||
// uint64 span_id = 2;
|
// optional uint64 span_id = 2;
|
||||||
if (this->_internal_span_id() != 0) {
|
if (cached_has_bits & 0x00000002u) {
|
||||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_span_id());
|
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_span_id());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -741,11 +769,15 @@ void RegionRequestHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co
|
|||||||
uint32_t cached_has_bits = 0;
|
uint32_t cached_has_bits = 0;
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
if (from._internal_trace_id() != 0) {
|
cached_has_bits = from._impl_._has_bits_[0];
|
||||||
_this->_internal_set_trace_id(from._internal_trace_id());
|
if (cached_has_bits & 0x00000003u) {
|
||||||
}
|
if (cached_has_bits & 0x00000001u) {
|
||||||
if (from._internal_span_id() != 0) {
|
_this->_impl_.trace_id_ = from._impl_.trace_id_;
|
||||||
_this->_internal_set_span_id(from._internal_span_id());
|
}
|
||||||
|
if (cached_has_bits & 0x00000002u) {
|
||||||
|
_this->_impl_.span_id_ = from._impl_.span_id_;
|
||||||
|
}
|
||||||
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
||||||
}
|
}
|
||||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
}
|
}
|
||||||
@@ -764,6 +796,7 @@ bool RegionRequestHeader::IsInitialized() const {
|
|||||||
void RegionRequestHeader::InternalSwap(RegionRequestHeader* other) {
|
void RegionRequestHeader::InternalSwap(RegionRequestHeader* other) {
|
||||||
using std::swap;
|
using std::swap;
|
||||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||||
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||||
PROTOBUF_FIELD_OFFSET(RegionRequestHeader, _impl_.span_id_)
|
PROTOBUF_FIELD_OFFSET(RegionRequestHeader, _impl_.span_id_)
|
||||||
+ sizeof(RegionRequestHeader::_impl_.span_id_)
|
+ sizeof(RegionRequestHeader::_impl_.span_id_)
|
||||||
@@ -2854,7 +2887,8 @@ 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_.region_dir_){}
|
, decltype(_impl_.catalog_){}
|
||||||
|
, 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_)*/{}};
|
||||||
@@ -2869,12 +2903,20 @@ CreateRequest::CreateRequest(const CreateRequest& from)
|
|||||||
_this->_impl_.engine_.Set(from._internal_engine(),
|
_this->_impl_.engine_.Set(from._internal_engine(),
|
||||||
_this->GetArenaForAllocation());
|
_this->GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
_impl_.region_dir_.InitDefault();
|
_impl_.catalog_.InitDefault();
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.region_dir_.Set("", GetArenaForAllocation());
|
_impl_.catalog_.Set("", GetArenaForAllocation());
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
if (!from._internal_region_dir().empty()) {
|
if (!from._internal_catalog().empty()) {
|
||||||
_this->_impl_.region_dir_.Set(from._internal_region_dir(),
|
_this->_impl_.catalog_.Set(from._internal_catalog(),
|
||||||
|
_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_,
|
||||||
@@ -2893,7 +2935,8 @@ 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_.region_dir_){}
|
, decltype(_impl_.catalog_){}
|
||||||
|
, 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_)*/{}
|
||||||
@@ -2902,9 +2945,13 @@ 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_.region_dir_.InitDefault();
|
_impl_.catalog_.InitDefault();
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.region_dir_.Set("", GetArenaForAllocation());
|
_impl_.catalog_.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
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2925,7 +2972,8 @@ inline void CreateRequest::SharedDtor() {
|
|||||||
_impl_.options_.Destruct();
|
_impl_.options_.Destruct();
|
||||||
_impl_.options_.~MapField();
|
_impl_.options_.~MapField();
|
||||||
_impl_.engine_.Destroy();
|
_impl_.engine_.Destroy();
|
||||||
_impl_.region_dir_.Destroy();
|
_impl_.catalog_.Destroy();
|
||||||
|
_impl_.schema_.Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateRequest::ArenaDtor(void* object) {
|
void CreateRequest::ArenaDtor(void* object) {
|
||||||
@@ -2946,7 +2994,8 @@ void CreateRequest::Clear() {
|
|||||||
_impl_.primary_key_.Clear();
|
_impl_.primary_key_.Clear();
|
||||||
_impl_.options_.Clear();
|
_impl_.options_.Clear();
|
||||||
_impl_.engine_.ClearToEmpty();
|
_impl_.engine_.ClearToEmpty();
|
||||||
_impl_.region_dir_.ClearToEmpty();
|
_impl_.catalog_.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_));
|
||||||
@@ -3009,26 +3058,36 @@ const char* CreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// string region_dir = 6;
|
// string catalog = 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_region_dir();
|
auto str = _internal_mutable_catalog();
|
||||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.CreateRequest.region_dir"));
|
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.CreateRequest.catalog"));
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// map<string, string> options = 7;
|
// string schema = 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<58>(ptr));
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
@@ -3100,17 +3159,27 @@ 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 region_dir = 6;
|
// string catalog = 6;
|
||||||
if (!this->_internal_region_dir().empty()) {
|
if (!this->_internal_catalog().empty()) {
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
this->_internal_region_dir().data(), static_cast<int>(this->_internal_region_dir().length()),
|
this->_internal_catalog().data(), static_cast<int>(this->_internal_catalog().length()),
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
"greptime.v1.region.CreateRequest.region_dir");
|
"greptime.v1.region.CreateRequest.catalog");
|
||||||
target = stream->WriteStringMaybeAliased(
|
target = stream->WriteStringMaybeAliased(
|
||||||
6, this->_internal_region_dir(), target);
|
6, this->_internal_catalog(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// map<string, string> options = 7;
|
// string schema = 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;
|
||||||
@@ -3129,12 +3198,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(7, entry.first, entry.second, target, stream);
|
target = WireHelper::InternalSerialize(8, 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(7, entry.first, entry.second, target, stream);
|
target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream);
|
||||||
check_utf8(entry);
|
check_utf8(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3177,7 +3246,7 @@ size_t CreateRequest::ByteSizeLong() const {
|
|||||||
total_size += data_size;
|
total_size += data_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
// map<string, string> options = 7;
|
// map<string, string> options = 8;
|
||||||
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
|
||||||
@@ -3193,11 +3262,18 @@ size_t CreateRequest::ByteSizeLong() const {
|
|||||||
this->_internal_engine());
|
this->_internal_engine());
|
||||||
}
|
}
|
||||||
|
|
||||||
// string region_dir = 6;
|
// string catalog = 6;
|
||||||
if (!this->_internal_region_dir().empty()) {
|
if (!this->_internal_catalog().empty()) {
|
||||||
total_size += 1 +
|
total_size += 1 +
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||||
this->_internal_region_dir());
|
this->_internal_catalog());
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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;
|
||||||
@@ -3234,8 +3310,11 @@ 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_region_dir().empty()) {
|
if (!from._internal_catalog().empty()) {
|
||||||
_this->_internal_set_region_dir(from._internal_region_dir());
|
_this->_internal_set_catalog(from._internal_catalog());
|
||||||
|
}
|
||||||
|
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());
|
||||||
@@ -3270,8 +3349,12 @@ 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_.region_dir_, lhs_arena,
|
&_impl_.catalog_, lhs_arena,
|
||||||
&other->_impl_.region_dir_, rhs_arena
|
&other->_impl_.catalog_, 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_)
|
||||||
@@ -3500,7 +3583,8 @@ 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_.region_dir_){}
|
, decltype(_impl_.catalog_){}
|
||||||
|
, decltype(_impl_.schema_){}
|
||||||
, decltype(_impl_.region_id_){}
|
, decltype(_impl_.region_id_){}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}};
|
, /*decltype(_impl_._cached_size_)*/{}};
|
||||||
|
|
||||||
@@ -3514,12 +3598,20 @@ OpenRequest::OpenRequest(const OpenRequest& from)
|
|||||||
_this->_impl_.engine_.Set(from._internal_engine(),
|
_this->_impl_.engine_.Set(from._internal_engine(),
|
||||||
_this->GetArenaForAllocation());
|
_this->GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
_impl_.region_dir_.InitDefault();
|
_impl_.catalog_.InitDefault();
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.region_dir_.Set("", GetArenaForAllocation());
|
_impl_.catalog_.Set("", GetArenaForAllocation());
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
if (!from._internal_region_dir().empty()) {
|
if (!from._internal_catalog().empty()) {
|
||||||
_this->_impl_.region_dir_.Set(from._internal_region_dir(),
|
_this->_impl_.catalog_.Set(from._internal_catalog(),
|
||||||
|
_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_;
|
||||||
@@ -3533,7 +3625,8 @@ 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_.region_dir_){}
|
, decltype(_impl_.catalog_){}
|
||||||
|
, 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_)*/{}
|
||||||
};
|
};
|
||||||
@@ -3541,9 +3634,13 @@ 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_.region_dir_.InitDefault();
|
_impl_.catalog_.InitDefault();
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.region_dir_.Set("", GetArenaForAllocation());
|
_impl_.catalog_.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
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3562,7 +3659,8 @@ inline void OpenRequest::SharedDtor() {
|
|||||||
_impl_.options_.Destruct();
|
_impl_.options_.Destruct();
|
||||||
_impl_.options_.~MapField();
|
_impl_.options_.~MapField();
|
||||||
_impl_.engine_.Destroy();
|
_impl_.engine_.Destroy();
|
||||||
_impl_.region_dir_.Destroy();
|
_impl_.catalog_.Destroy();
|
||||||
|
_impl_.schema_.Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenRequest::ArenaDtor(void* object) {
|
void OpenRequest::ArenaDtor(void* object) {
|
||||||
@@ -3581,7 +3679,8 @@ void OpenRequest::Clear() {
|
|||||||
|
|
||||||
_impl_.options_.Clear();
|
_impl_.options_.Clear();
|
||||||
_impl_.engine_.ClearToEmpty();
|
_impl_.engine_.ClearToEmpty();
|
||||||
_impl_.region_dir_.ClearToEmpty();
|
_impl_.catalog_.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>();
|
||||||
}
|
}
|
||||||
@@ -3610,26 +3709,36 @@ const char* OpenRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// string region_dir = 3;
|
// string catalog = 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_region_dir();
|
auto str = _internal_mutable_catalog();
|
||||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.OpenRequest.region_dir"));
|
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.OpenRequest.catalog"));
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// map<string, string> options = 4;
|
// string schema = 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<34>(ptr));
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
@@ -3678,17 +3787,27 @@ uint8_t* OpenRequest::_InternalSerialize(
|
|||||||
2, this->_internal_engine(), target);
|
2, this->_internal_engine(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// string region_dir = 3;
|
// string catalog = 3;
|
||||||
if (!this->_internal_region_dir().empty()) {
|
if (!this->_internal_catalog().empty()) {
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
this->_internal_region_dir().data(), static_cast<int>(this->_internal_region_dir().length()),
|
this->_internal_catalog().data(), static_cast<int>(this->_internal_catalog().length()),
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
"greptime.v1.region.OpenRequest.region_dir");
|
"greptime.v1.region.OpenRequest.catalog");
|
||||||
target = stream->WriteStringMaybeAliased(
|
target = stream->WriteStringMaybeAliased(
|
||||||
3, this->_internal_region_dir(), target);
|
3, this->_internal_catalog(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// map<string, string> options = 4;
|
// string schema = 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;
|
||||||
@@ -3707,12 +3826,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(4, entry.first, entry.second, target, stream);
|
target = WireHelper::InternalSerialize(5, 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(4, entry.first, entry.second, target, stream);
|
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
|
||||||
check_utf8(entry);
|
check_utf8(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3734,7 +3853,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 = 4;
|
// map<string, string> options = 5;
|
||||||
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
|
||||||
@@ -3750,11 +3869,18 @@ size_t OpenRequest::ByteSizeLong() const {
|
|||||||
this->_internal_engine());
|
this->_internal_engine());
|
||||||
}
|
}
|
||||||
|
|
||||||
// string region_dir = 3;
|
// string catalog = 3;
|
||||||
if (!this->_internal_region_dir().empty()) {
|
if (!this->_internal_catalog().empty()) {
|
||||||
total_size += 1 +
|
total_size += 1 +
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||||
this->_internal_region_dir());
|
this->_internal_catalog());
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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;
|
||||||
@@ -3784,8 +3910,11 @@ 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_region_dir().empty()) {
|
if (!from._internal_catalog().empty()) {
|
||||||
_this->_internal_set_region_dir(from._internal_region_dir());
|
_this->_internal_set_catalog(from._internal_catalog());
|
||||||
|
}
|
||||||
|
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());
|
||||||
@@ -3815,8 +3944,12 @@ 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_.region_dir_, lhs_arena,
|
&_impl_.catalog_, lhs_arena,
|
||||||
&other->_impl_.region_dir_, rhs_arena
|
&other->_impl_.catalog_, 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_);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -259,7 +259,11 @@ class RegionRequestHeader final :
|
|||||||
kTraceIdFieldNumber = 1,
|
kTraceIdFieldNumber = 1,
|
||||||
kSpanIdFieldNumber = 2,
|
kSpanIdFieldNumber = 2,
|
||||||
};
|
};
|
||||||
// uint64 trace_id = 1;
|
// optional uint64 trace_id = 1;
|
||||||
|
bool has_trace_id() const;
|
||||||
|
private:
|
||||||
|
bool _internal_has_trace_id() const;
|
||||||
|
public:
|
||||||
void clear_trace_id();
|
void clear_trace_id();
|
||||||
uint64_t trace_id() const;
|
uint64_t trace_id() const;
|
||||||
void set_trace_id(uint64_t value);
|
void set_trace_id(uint64_t value);
|
||||||
@@ -268,7 +272,11 @@ class RegionRequestHeader final :
|
|||||||
void _internal_set_trace_id(uint64_t value);
|
void _internal_set_trace_id(uint64_t value);
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// uint64 span_id = 2;
|
// optional uint64 span_id = 2;
|
||||||
|
bool has_span_id() const;
|
||||||
|
private:
|
||||||
|
bool _internal_has_span_id() const;
|
||||||
|
public:
|
||||||
void clear_span_id();
|
void clear_span_id();
|
||||||
uint64_t span_id() const;
|
uint64_t span_id() const;
|
||||||
void set_span_id(uint64_t value);
|
void set_span_id(uint64_t value);
|
||||||
@@ -285,9 +293,10 @@ class RegionRequestHeader final :
|
|||||||
typedef void InternalArenaConstructable_;
|
typedef void InternalArenaConstructable_;
|
||||||
typedef void DestructorSkippable_;
|
typedef void DestructorSkippable_;
|
||||||
struct Impl_ {
|
struct Impl_ {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
|
||||||
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
uint64_t trace_id_;
|
uint64_t trace_id_;
|
||||||
uint64_t span_id_;
|
uint64_t span_id_;
|
||||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
||||||
};
|
};
|
||||||
union { Impl_ _impl_; };
|
union { Impl_ _impl_; };
|
||||||
friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto;
|
friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto;
|
||||||
@@ -1800,9 +1809,10 @@ class CreateRequest final :
|
|||||||
enum : int {
|
enum : int {
|
||||||
kColumnDefsFieldNumber = 3,
|
kColumnDefsFieldNumber = 3,
|
||||||
kPrimaryKeyFieldNumber = 4,
|
kPrimaryKeyFieldNumber = 4,
|
||||||
kOptionsFieldNumber = 7,
|
kOptionsFieldNumber = 8,
|
||||||
kEngineFieldNumber = 2,
|
kEngineFieldNumber = 2,
|
||||||
kRegionDirFieldNumber = 6,
|
kCatalogFieldNumber = 6,
|
||||||
|
kSchemaFieldNumber = 7,
|
||||||
kRegionIdFieldNumber = 1,
|
kRegionIdFieldNumber = 1,
|
||||||
kCreateIfNotExistsFieldNumber = 5,
|
kCreateIfNotExistsFieldNumber = 5,
|
||||||
};
|
};
|
||||||
@@ -1846,7 +1856,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 = 7;
|
// map<string, string> options = 8;
|
||||||
int options_size() const;
|
int options_size() const;
|
||||||
private:
|
private:
|
||||||
int _internal_options_size() const;
|
int _internal_options_size() const;
|
||||||
@@ -1877,18 +1887,32 @@ class CreateRequest final :
|
|||||||
std::string* _internal_mutable_engine();
|
std::string* _internal_mutable_engine();
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// string region_dir = 6;
|
// string catalog = 6;
|
||||||
void clear_region_dir();
|
void clear_catalog();
|
||||||
const std::string& region_dir() const;
|
const std::string& catalog() const;
|
||||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||||
void set_region_dir(ArgT0&& arg0, ArgT... args);
|
void set_catalog(ArgT0&& arg0, ArgT... args);
|
||||||
std::string* mutable_region_dir();
|
std::string* mutable_catalog();
|
||||||
PROTOBUF_NODISCARD std::string* release_region_dir();
|
PROTOBUF_NODISCARD std::string* release_catalog();
|
||||||
void set_allocated_region_dir(std::string* region_dir);
|
void set_allocated_catalog(std::string* catalog);
|
||||||
private:
|
private:
|
||||||
const std::string& _internal_region_dir() const;
|
const std::string& _internal_catalog() const;
|
||||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_region_dir(const std::string& value);
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog(const std::string& value);
|
||||||
std::string* _internal_mutable_region_dir();
|
std::string* _internal_mutable_catalog();
|
||||||
|
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;
|
||||||
@@ -1926,7 +1950,8 @@ 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 region_dir_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_;
|
||||||
|
::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_;
|
||||||
@@ -2236,12 +2261,13 @@ class OpenRequest final :
|
|||||||
// accessors -------------------------------------------------------
|
// accessors -------------------------------------------------------
|
||||||
|
|
||||||
enum : int {
|
enum : int {
|
||||||
kOptionsFieldNumber = 4,
|
kOptionsFieldNumber = 5,
|
||||||
kEngineFieldNumber = 2,
|
kEngineFieldNumber = 2,
|
||||||
kRegionDirFieldNumber = 3,
|
kCatalogFieldNumber = 3,
|
||||||
|
kSchemaFieldNumber = 4,
|
||||||
kRegionIdFieldNumber = 1,
|
kRegionIdFieldNumber = 1,
|
||||||
};
|
};
|
||||||
// map<string, string> options = 4;
|
// map<string, string> options = 5;
|
||||||
int options_size() const;
|
int options_size() const;
|
||||||
private:
|
private:
|
||||||
int _internal_options_size() const;
|
int _internal_options_size() const;
|
||||||
@@ -2272,18 +2298,32 @@ class OpenRequest final :
|
|||||||
std::string* _internal_mutable_engine();
|
std::string* _internal_mutable_engine();
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// string region_dir = 3;
|
// string catalog = 3;
|
||||||
void clear_region_dir();
|
void clear_catalog();
|
||||||
const std::string& region_dir() const;
|
const std::string& catalog() const;
|
||||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||||
void set_region_dir(ArgT0&& arg0, ArgT... args);
|
void set_catalog(ArgT0&& arg0, ArgT... args);
|
||||||
std::string* mutable_region_dir();
|
std::string* mutable_catalog();
|
||||||
PROTOBUF_NODISCARD std::string* release_region_dir();
|
PROTOBUF_NODISCARD std::string* release_catalog();
|
||||||
void set_allocated_region_dir(std::string* region_dir);
|
void set_allocated_catalog(std::string* catalog);
|
||||||
private:
|
private:
|
||||||
const std::string& _internal_region_dir() const;
|
const std::string& _internal_catalog() const;
|
||||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_region_dir(const std::string& value);
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog(const std::string& value);
|
||||||
std::string* _internal_mutable_region_dir();
|
std::string* _internal_mutable_catalog();
|
||||||
|
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;
|
||||||
@@ -2309,7 +2349,8 @@ 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 region_dir_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_;
|
||||||
|
::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_;
|
||||||
};
|
};
|
||||||
@@ -3132,9 +3173,17 @@ class ColumnDef final :
|
|||||||
#endif // __GNUC__
|
#endif // __GNUC__
|
||||||
// RegionRequestHeader
|
// RegionRequestHeader
|
||||||
|
|
||||||
// uint64 trace_id = 1;
|
// optional uint64 trace_id = 1;
|
||||||
|
inline bool RegionRequestHeader::_internal_has_trace_id() const {
|
||||||
|
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
inline bool RegionRequestHeader::has_trace_id() const {
|
||||||
|
return _internal_has_trace_id();
|
||||||
|
}
|
||||||
inline void RegionRequestHeader::clear_trace_id() {
|
inline void RegionRequestHeader::clear_trace_id() {
|
||||||
_impl_.trace_id_ = uint64_t{0u};
|
_impl_.trace_id_ = uint64_t{0u};
|
||||||
|
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||||
}
|
}
|
||||||
inline uint64_t RegionRequestHeader::_internal_trace_id() const {
|
inline uint64_t RegionRequestHeader::_internal_trace_id() const {
|
||||||
return _impl_.trace_id_;
|
return _impl_.trace_id_;
|
||||||
@@ -3144,7 +3193,7 @@ inline uint64_t RegionRequestHeader::trace_id() const {
|
|||||||
return _internal_trace_id();
|
return _internal_trace_id();
|
||||||
}
|
}
|
||||||
inline void RegionRequestHeader::_internal_set_trace_id(uint64_t value) {
|
inline void RegionRequestHeader::_internal_set_trace_id(uint64_t value) {
|
||||||
|
_impl_._has_bits_[0] |= 0x00000001u;
|
||||||
_impl_.trace_id_ = value;
|
_impl_.trace_id_ = value;
|
||||||
}
|
}
|
||||||
inline void RegionRequestHeader::set_trace_id(uint64_t value) {
|
inline void RegionRequestHeader::set_trace_id(uint64_t value) {
|
||||||
@@ -3152,9 +3201,17 @@ inline void RegionRequestHeader::set_trace_id(uint64_t value) {
|
|||||||
// @@protoc_insertion_point(field_set:greptime.v1.region.RegionRequestHeader.trace_id)
|
// @@protoc_insertion_point(field_set:greptime.v1.region.RegionRequestHeader.trace_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
// uint64 span_id = 2;
|
// optional uint64 span_id = 2;
|
||||||
|
inline bool RegionRequestHeader::_internal_has_span_id() const {
|
||||||
|
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
inline bool RegionRequestHeader::has_span_id() const {
|
||||||
|
return _internal_has_span_id();
|
||||||
|
}
|
||||||
inline void RegionRequestHeader::clear_span_id() {
|
inline void RegionRequestHeader::clear_span_id() {
|
||||||
_impl_.span_id_ = uint64_t{0u};
|
_impl_.span_id_ = uint64_t{0u};
|
||||||
|
_impl_._has_bits_[0] &= ~0x00000002u;
|
||||||
}
|
}
|
||||||
inline uint64_t RegionRequestHeader::_internal_span_id() const {
|
inline uint64_t RegionRequestHeader::_internal_span_id() const {
|
||||||
return _impl_.span_id_;
|
return _impl_.span_id_;
|
||||||
@@ -3164,7 +3221,7 @@ inline uint64_t RegionRequestHeader::span_id() const {
|
|||||||
return _internal_span_id();
|
return _internal_span_id();
|
||||||
}
|
}
|
||||||
inline void RegionRequestHeader::_internal_set_span_id(uint64_t value) {
|
inline void RegionRequestHeader::_internal_set_span_id(uint64_t value) {
|
||||||
|
_impl_._has_bits_[0] |= 0x00000002u;
|
||||||
_impl_.span_id_ = value;
|
_impl_.span_id_ = value;
|
||||||
}
|
}
|
||||||
inline void RegionRequestHeader::set_span_id(uint64_t value) {
|
inline void RegionRequestHeader::set_span_id(uint64_t value) {
|
||||||
@@ -4613,57 +4670,107 @@ 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 region_dir = 6;
|
// string catalog = 6;
|
||||||
inline void CreateRequest::clear_region_dir() {
|
inline void CreateRequest::clear_catalog() {
|
||||||
_impl_.region_dir_.ClearToEmpty();
|
_impl_.catalog_.ClearToEmpty();
|
||||||
}
|
}
|
||||||
inline const std::string& CreateRequest::region_dir() const {
|
inline const std::string& CreateRequest::catalog() const {
|
||||||
// @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.region_dir)
|
// @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.catalog)
|
||||||
return _internal_region_dir();
|
return _internal_catalog();
|
||||||
}
|
}
|
||||||
template <typename ArgT0, typename... ArgT>
|
template <typename ArgT0, typename... ArgT>
|
||||||
inline PROTOBUF_ALWAYS_INLINE
|
inline PROTOBUF_ALWAYS_INLINE
|
||||||
void CreateRequest::set_region_dir(ArgT0&& arg0, ArgT... args) {
|
void CreateRequest::set_catalog(ArgT0&& arg0, ArgT... args) {
|
||||||
|
|
||||||
_impl_.region_dir_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
_impl_.catalog_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||||
// @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.region_dir)
|
// @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.catalog)
|
||||||
}
|
}
|
||||||
inline std::string* CreateRequest::mutable_region_dir() {
|
inline std::string* CreateRequest::mutable_catalog() {
|
||||||
std::string* _s = _internal_mutable_region_dir();
|
std::string* _s = _internal_mutable_catalog();
|
||||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.CreateRequest.region_dir)
|
// @@protoc_insertion_point(field_mutable:greptime.v1.region.CreateRequest.catalog)
|
||||||
return _s;
|
return _s;
|
||||||
}
|
}
|
||||||
inline const std::string& CreateRequest::_internal_region_dir() const {
|
inline const std::string& CreateRequest::_internal_catalog() const {
|
||||||
return _impl_.region_dir_.Get();
|
return _impl_.catalog_.Get();
|
||||||
}
|
}
|
||||||
inline void CreateRequest::_internal_set_region_dir(const std::string& value) {
|
inline void CreateRequest::_internal_set_catalog(const std::string& value) {
|
||||||
|
|
||||||
_impl_.region_dir_.Set(value, GetArenaForAllocation());
|
_impl_.catalog_.Set(value, GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
inline std::string* CreateRequest::_internal_mutable_region_dir() {
|
inline std::string* CreateRequest::_internal_mutable_catalog() {
|
||||||
|
|
||||||
return _impl_.region_dir_.Mutable(GetArenaForAllocation());
|
return _impl_.catalog_.Mutable(GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
inline std::string* CreateRequest::release_region_dir() {
|
inline std::string* CreateRequest::release_catalog() {
|
||||||
// @@protoc_insertion_point(field_release:greptime.v1.region.CreateRequest.region_dir)
|
// @@protoc_insertion_point(field_release:greptime.v1.region.CreateRequest.catalog)
|
||||||
return _impl_.region_dir_.Release();
|
return _impl_.catalog_.Release();
|
||||||
}
|
}
|
||||||
inline void CreateRequest::set_allocated_region_dir(std::string* region_dir) {
|
inline void CreateRequest::set_allocated_catalog(std::string* catalog) {
|
||||||
if (region_dir != nullptr) {
|
if (catalog != nullptr) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
_impl_.region_dir_.SetAllocated(region_dir, GetArenaForAllocation());
|
_impl_.catalog_.SetAllocated(catalog, GetArenaForAllocation());
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
if (_impl_.region_dir_.IsDefault()) {
|
if (_impl_.catalog_.IsDefault()) {
|
||||||
_impl_.region_dir_.Set("", GetArenaForAllocation());
|
_impl_.catalog_.Set("", GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.CreateRequest.region_dir)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.CreateRequest.catalog)
|
||||||
}
|
}
|
||||||
|
|
||||||
// map<string, string> options = 7;
|
// string schema = 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();
|
||||||
}
|
}
|
||||||
@@ -4792,57 +4899,107 @@ 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 region_dir = 3;
|
// string catalog = 3;
|
||||||
inline void OpenRequest::clear_region_dir() {
|
inline void OpenRequest::clear_catalog() {
|
||||||
_impl_.region_dir_.ClearToEmpty();
|
_impl_.catalog_.ClearToEmpty();
|
||||||
}
|
}
|
||||||
inline const std::string& OpenRequest::region_dir() const {
|
inline const std::string& OpenRequest::catalog() const {
|
||||||
// @@protoc_insertion_point(field_get:greptime.v1.region.OpenRequest.region_dir)
|
// @@protoc_insertion_point(field_get:greptime.v1.region.OpenRequest.catalog)
|
||||||
return _internal_region_dir();
|
return _internal_catalog();
|
||||||
}
|
}
|
||||||
template <typename ArgT0, typename... ArgT>
|
template <typename ArgT0, typename... ArgT>
|
||||||
inline PROTOBUF_ALWAYS_INLINE
|
inline PROTOBUF_ALWAYS_INLINE
|
||||||
void OpenRequest::set_region_dir(ArgT0&& arg0, ArgT... args) {
|
void OpenRequest::set_catalog(ArgT0&& arg0, ArgT... args) {
|
||||||
|
|
||||||
_impl_.region_dir_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
_impl_.catalog_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||||
// @@protoc_insertion_point(field_set:greptime.v1.region.OpenRequest.region_dir)
|
// @@protoc_insertion_point(field_set:greptime.v1.region.OpenRequest.catalog)
|
||||||
}
|
}
|
||||||
inline std::string* OpenRequest::mutable_region_dir() {
|
inline std::string* OpenRequest::mutable_catalog() {
|
||||||
std::string* _s = _internal_mutable_region_dir();
|
std::string* _s = _internal_mutable_catalog();
|
||||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.OpenRequest.region_dir)
|
// @@protoc_insertion_point(field_mutable:greptime.v1.region.OpenRequest.catalog)
|
||||||
return _s;
|
return _s;
|
||||||
}
|
}
|
||||||
inline const std::string& OpenRequest::_internal_region_dir() const {
|
inline const std::string& OpenRequest::_internal_catalog() const {
|
||||||
return _impl_.region_dir_.Get();
|
return _impl_.catalog_.Get();
|
||||||
}
|
}
|
||||||
inline void OpenRequest::_internal_set_region_dir(const std::string& value) {
|
inline void OpenRequest::_internal_set_catalog(const std::string& value) {
|
||||||
|
|
||||||
_impl_.region_dir_.Set(value, GetArenaForAllocation());
|
_impl_.catalog_.Set(value, GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
inline std::string* OpenRequest::_internal_mutable_region_dir() {
|
inline std::string* OpenRequest::_internal_mutable_catalog() {
|
||||||
|
|
||||||
return _impl_.region_dir_.Mutable(GetArenaForAllocation());
|
return _impl_.catalog_.Mutable(GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
inline std::string* OpenRequest::release_region_dir() {
|
inline std::string* OpenRequest::release_catalog() {
|
||||||
// @@protoc_insertion_point(field_release:greptime.v1.region.OpenRequest.region_dir)
|
// @@protoc_insertion_point(field_release:greptime.v1.region.OpenRequest.catalog)
|
||||||
return _impl_.region_dir_.Release();
|
return _impl_.catalog_.Release();
|
||||||
}
|
}
|
||||||
inline void OpenRequest::set_allocated_region_dir(std::string* region_dir) {
|
inline void OpenRequest::set_allocated_catalog(std::string* catalog) {
|
||||||
if (region_dir != nullptr) {
|
if (catalog != nullptr) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
_impl_.region_dir_.SetAllocated(region_dir, GetArenaForAllocation());
|
_impl_.catalog_.SetAllocated(catalog, GetArenaForAllocation());
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
if (_impl_.region_dir_.IsDefault()) {
|
if (_impl_.catalog_.IsDefault()) {
|
||||||
_impl_.region_dir_.Set("", GetArenaForAllocation());
|
_impl_.catalog_.Set("", GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.region_dir)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.catalog)
|
||||||
}
|
}
|
||||||
|
|
||||||
// map<string, string> options = 4;
|
// string schema = 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
@@ -79,15 +79,17 @@ message CreateRequest {
|
|||||||
string engine = 2;
|
string engine = 2;
|
||||||
// Columns in this region.
|
// Columns in this region.
|
||||||
repeated ColumnDef column_defs = 3;
|
repeated ColumnDef column_defs = 3;
|
||||||
// Id of columns in the primary key.
|
// Column Id of primary keys.
|
||||||
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;
|
||||||
// Directory for region's data home. Usually is composed by catalog and table
|
// catalog name and schema name is to accomplish storage path
|
||||||
// id
|
// catalog name
|
||||||
string region_dir = 6;
|
string catalog = 6;
|
||||||
|
// schema name
|
||||||
|
string schema = 7;
|
||||||
// Options of the created region.
|
// Options of the created region.
|
||||||
map<string, string> options = 7;
|
map<string, string> options = 8;
|
||||||
// TODO: add partition def
|
// TODO: add partition def
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,10 +99,13 @@ message OpenRequest {
|
|||||||
uint64 region_id = 1;
|
uint64 region_id = 1;
|
||||||
// Region engine name
|
// Region engine name
|
||||||
string engine = 2;
|
string engine = 2;
|
||||||
// Data directory of the region.
|
// catalog name and schema name is to accomplish storage path
|
||||||
string region_dir = 3;
|
// catalog name
|
||||||
|
string catalog = 3;
|
||||||
|
// schema name
|
||||||
|
string schema = 4;
|
||||||
// Options of the opened region.
|
// Options of the opened region.
|
||||||
map<string, string> options = 4;
|
map<string, string> options = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CloseRequest { uint64 region_id = 1; }
|
message CloseRequest { uint64 region_id = 1; }
|
||||||
|
|||||||
Reference in New Issue
Block a user