feat: add insert into logical plan in request (#231)
* feat: insert into logical plan * chore: make all * feat: use TableName instead * chore: make all * chore: per review
This commit is contained in:
+380
-44
@@ -66,6 +66,20 @@ struct QueryRequestDefaultTypeInternal {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QueryRequestDefaultTypeInternal _QueryRequest_default_instance_;
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QueryRequestDefaultTypeInternal _QueryRequest_default_instance_;
|
||||||
|
PROTOBUF_CONSTEXPR InsertIntoPlan::InsertIntoPlan(
|
||||||
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
|
/*decltype(_impl_.logical_plan_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
|
, /*decltype(_impl_.table_name_)*/nullptr
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||||
|
struct InsertIntoPlanDefaultTypeInternal {
|
||||||
|
PROTOBUF_CONSTEXPR InsertIntoPlanDefaultTypeInternal()
|
||||||
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||||
|
~InsertIntoPlanDefaultTypeInternal() {}
|
||||||
|
union {
|
||||||
|
InsertIntoPlan _instance;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InsertIntoPlanDefaultTypeInternal _InsertIntoPlan_default_instance_;
|
||||||
PROTOBUF_CONSTEXPR InsertRequests::InsertRequests(
|
PROTOBUF_CONSTEXPR InsertRequests::InsertRequests(
|
||||||
::_pbi::ConstantInitialized): _impl_{
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
/*decltype(_impl_.inserts_)*/{}
|
/*decltype(_impl_.inserts_)*/{}
|
||||||
@@ -178,7 +192,7 @@ struct RowDeleteRequestDefaultTypeInternal {
|
|||||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RowDeleteRequestDefaultTypeInternal _RowDeleteRequest_default_instance_;
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RowDeleteRequestDefaultTypeInternal _RowDeleteRequest_default_instance_;
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fdatabase_2eproto[11];
|
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fdatabase_2eproto[12];
|
||||||
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fdatabase_2eproto = nullptr;
|
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fdatabase_2eproto = nullptr;
|
||||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fdatabase_2eproto = nullptr;
|
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fdatabase_2eproto = nullptr;
|
||||||
|
|
||||||
@@ -215,8 +229,17 @@ const uint32_t TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets[] PROTOBUF_
|
|||||||
::_pbi::kInvalidFieldOffsetTag,
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
::_pbi::kInvalidFieldOffsetTag,
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
::_pbi::kInvalidFieldOffsetTag,
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryRequest, _impl_.query_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryRequest, _impl_.query_),
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::InsertIntoPlan, _internal_metadata_),
|
||||||
|
~0u, // no _extensions_
|
||||||
|
~0u, // no _oneof_case_
|
||||||
|
~0u, // no _weak_field_map_
|
||||||
|
~0u, // no _inlined_string_donated_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::InsertIntoPlan, _impl_.table_name_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::InsertIntoPlan, _impl_.logical_plan_),
|
||||||
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::InsertRequests, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::InsertRequests, _internal_metadata_),
|
||||||
~0u, // no _extensions_
|
~0u, // no _extensions_
|
||||||
~0u, // no _oneof_case_
|
~0u, // no _oneof_case_
|
||||||
@@ -283,20 +306,22 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
|||||||
{ 0, -1, -1, sizeof(::greptime::v1::GreptimeRequest)},
|
{ 0, -1, -1, sizeof(::greptime::v1::GreptimeRequest)},
|
||||||
{ 14, -1, -1, sizeof(::greptime::v1::GreptimeResponse)},
|
{ 14, -1, -1, sizeof(::greptime::v1::GreptimeResponse)},
|
||||||
{ 23, -1, -1, sizeof(::greptime::v1::QueryRequest)},
|
{ 23, -1, -1, sizeof(::greptime::v1::QueryRequest)},
|
||||||
{ 33, -1, -1, sizeof(::greptime::v1::InsertRequests)},
|
{ 34, -1, -1, sizeof(::greptime::v1::InsertIntoPlan)},
|
||||||
{ 40, -1, -1, sizeof(::greptime::v1::InsertRequest)},
|
{ 42, -1, -1, sizeof(::greptime::v1::InsertRequests)},
|
||||||
{ 49, -1, -1, sizeof(::greptime::v1::DeleteRequests)},
|
{ 49, -1, -1, sizeof(::greptime::v1::InsertRequest)},
|
||||||
{ 56, -1, -1, sizeof(::greptime::v1::DeleteRequest)},
|
{ 58, -1, -1, sizeof(::greptime::v1::DeleteRequests)},
|
||||||
{ 65, -1, -1, sizeof(::greptime::v1::RowInsertRequests)},
|
{ 65, -1, -1, sizeof(::greptime::v1::DeleteRequest)},
|
||||||
{ 72, -1, -1, sizeof(::greptime::v1::RowInsertRequest)},
|
{ 74, -1, -1, sizeof(::greptime::v1::RowInsertRequests)},
|
||||||
{ 80, -1, -1, sizeof(::greptime::v1::RowDeleteRequests)},
|
{ 81, -1, -1, sizeof(::greptime::v1::RowInsertRequest)},
|
||||||
{ 87, -1, -1, sizeof(::greptime::v1::RowDeleteRequest)},
|
{ 89, -1, -1, sizeof(::greptime::v1::RowDeleteRequests)},
|
||||||
|
{ 96, -1, -1, sizeof(::greptime::v1::RowDeleteRequest)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
&::greptime::v1::_GreptimeRequest_default_instance_._instance,
|
&::greptime::v1::_GreptimeRequest_default_instance_._instance,
|
||||||
&::greptime::v1::_GreptimeResponse_default_instance_._instance,
|
&::greptime::v1::_GreptimeResponse_default_instance_._instance,
|
||||||
&::greptime::v1::_QueryRequest_default_instance_._instance,
|
&::greptime::v1::_QueryRequest_default_instance_._instance,
|
||||||
|
&::greptime::v1::_InsertIntoPlan_default_instance_._instance,
|
||||||
&::greptime::v1::_InsertRequests_default_instance_._instance,
|
&::greptime::v1::_InsertRequests_default_instance_._instance,
|
||||||
&::greptime::v1::_InsertRequest_default_instance_._instance,
|
&::greptime::v1::_InsertRequest_default_instance_._instance,
|
||||||
&::greptime::v1::_DeleteRequests_default_instance_._instance,
|
&::greptime::v1::_DeleteRequests_default_instance_._instance,
|
||||||
@@ -324,32 +349,35 @@ const char descriptor_table_protodef_greptime_2fv1_2fdatabase_2eproto[] PROTOBUF
|
|||||||
"\007request\"\177\n\020GreptimeResponse\022+\n\006header\030\001"
|
"\007request\"\177\n\020GreptimeResponse\022+\n\006header\030\001"
|
||||||
" \001(\0132\033.greptime.v1.ResponseHeader\0222\n\raff"
|
" \001(\0132\033.greptime.v1.ResponseHeader\0222\n\raff"
|
||||||
"ected_rows\030\002 \001(\0132\031.greptime.v1.AffectedR"
|
"ected_rows\030\002 \001(\0132\031.greptime.v1.AffectedR"
|
||||||
"owsH\000B\n\n\010response\"w\n\014QueryRequest\022\r\n\003sql"
|
"owsH\000B\n\n\010response\"\260\001\n\014QueryRequest\022\r\n\003sq"
|
||||||
"\030\001 \001(\tH\000\022\026\n\014logical_plan\030\002 \001(\014H\000\0227\n\020prom"
|
"l\030\001 \001(\tH\000\022\026\n\014logical_plan\030\002 \001(\014H\000\0227\n\020pro"
|
||||||
"_range_query\030\003 \001(\0132\033.greptime.v1.PromRan"
|
"m_range_query\030\003 \001(\0132\033.greptime.v1.PromRa"
|
||||||
"geQueryH\000B\007\n\005query\"=\n\016InsertRequests\022+\n\007"
|
"ngeQueryH\000\0227\n\020insert_into_plan\030\004 \001(\0132\033.g"
|
||||||
"inserts\030\001 \003(\0132\032.greptime.v1.InsertReques"
|
"reptime.v1.InsertIntoPlanH\000B\007\n\005query\"R\n\016"
|
||||||
"t\"\\\n\rInsertRequest\022\022\n\ntable_name\030\001 \001(\t\022$"
|
"InsertIntoPlan\022*\n\ntable_name\030\001 \001(\0132\026.gre"
|
||||||
"\n\007columns\030\003 \003(\0132\023.greptime.v1.Column\022\021\n\t"
|
"ptime.v1.TableName\022\024\n\014logical_plan\030\002 \001(\014"
|
||||||
"row_count\030\004 \001(\r\"=\n\016DeleteRequests\022+\n\007del"
|
"\"=\n\016InsertRequests\022+\n\007inserts\030\001 \003(\0132\032.gr"
|
||||||
"etes\030\001 \003(\0132\032.greptime.v1.DeleteRequest\"`"
|
"eptime.v1.InsertRequest\"\\\n\rInsertRequest"
|
||||||
"\n\rDeleteRequest\022\022\n\ntable_name\030\001 \001(\t\022(\n\013k"
|
"\022\022\n\ntable_name\030\001 \001(\t\022$\n\007columns\030\003 \003(\0132\023."
|
||||||
"ey_columns\030\003 \003(\0132\023.greptime.v1.Column\022\021\n"
|
"greptime.v1.Column\022\021\n\trow_count\030\004 \001(\r\"=\n"
|
||||||
"\trow_count\030\004 \001(\r\"C\n\021RowInsertRequests\022.\n"
|
"\016DeleteRequests\022+\n\007deletes\030\001 \003(\0132\032.grept"
|
||||||
"\007inserts\030\001 \003(\0132\035.greptime.v1.RowInsertRe"
|
"ime.v1.DeleteRequest\"`\n\rDeleteRequest\022\022\n"
|
||||||
"quest\"G\n\020RowInsertRequest\022\022\n\ntable_name\030"
|
"\ntable_name\030\001 \001(\t\022(\n\013key_columns\030\003 \003(\0132\023"
|
||||||
"\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"C"
|
".greptime.v1.Column\022\021\n\trow_count\030\004 \001(\r\"C"
|
||||||
"\n\021RowDeleteRequests\022.\n\007deletes\030\001 \003(\0132\035.g"
|
"\n\021RowInsertRequests\022.\n\007inserts\030\001 \003(\0132\035.g"
|
||||||
"reptime.v1.RowDeleteRequest\"G\n\020RowDelete"
|
"reptime.v1.RowInsertRequest\"G\n\020RowInsert"
|
||||||
"Request\022\022\n\ntable_name\030\001 \001(\t\022\037\n\004rows\030\002 \001("
|
"Request\022\022\n\ntable_name\030\001 \001(\t\022\037\n\004rows\030\002 \001("
|
||||||
"\0132\021.greptime.v1.Rows2\252\001\n\020GreptimeDatabas"
|
"\0132\021.greptime.v1.Rows\"C\n\021RowDeleteRequest"
|
||||||
"e\022E\n\006Handle\022\034.greptime.v1.GreptimeReques"
|
"s\022.\n\007deletes\030\001 \003(\0132\035.greptime.v1.RowDele"
|
||||||
"t\032\035.greptime.v1.GreptimeResponse\022O\n\016Hand"
|
"teRequest\"G\n\020RowDeleteRequest\022\022\n\ntable_n"
|
||||||
"leRequests\022\034.greptime.v1.GreptimeRequest"
|
"ame\030\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Ro"
|
||||||
"\032\035.greptime.v1.GreptimeResponse(\001BQ\n\016io."
|
"ws2\252\001\n\020GreptimeDatabase\022E\n\006Handle\022\034.grep"
|
||||||
"greptime.v1B\010DatabaseZ5github.com/Grepti"
|
"time.v1.GreptimeRequest\032\035.greptime.v1.Gr"
|
||||||
"meTeam/greptime-proto/go/greptime/v1b\006pr"
|
"eptimeResponse\022O\n\016HandleRequests\022\034.grept"
|
||||||
"oto3"
|
"ime.v1.GreptimeRequest\032\035.greptime.v1.Gre"
|
||||||
|
"ptimeResponse(\001BQ\n\016io.greptime.v1B\010Datab"
|
||||||
|
"aseZ5github.com/GreptimeTeam/greptime-pr"
|
||||||
|
"oto/go/greptime/v1b\006proto3"
|
||||||
;
|
;
|
||||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps[5] = {
|
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps[5] = {
|
||||||
&::descriptor_table_greptime_2fv1_2fcolumn_2eproto,
|
&::descriptor_table_greptime_2fv1_2fcolumn_2eproto,
|
||||||
@@ -360,9 +388,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fdat
|
|||||||
};
|
};
|
||||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fdatabase_2eproto_once;
|
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fdatabase_2eproto_once;
|
||||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fdatabase_2eproto = {
|
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fdatabase_2eproto = {
|
||||||
false, false, 1644, descriptor_table_protodef_greptime_2fv1_2fdatabase_2eproto,
|
false, false, 1786, descriptor_table_protodef_greptime_2fv1_2fdatabase_2eproto,
|
||||||
"greptime/v1/database.proto",
|
"greptime/v1/database.proto",
|
||||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_once, descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps, 5, 11,
|
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_once, descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps, 5, 12,
|
||||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets,
|
schemas, file_default_instances, TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets,
|
||||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto, file_level_enum_descriptors_greptime_2fv1_2fdatabase_2eproto,
|
file_level_metadata_greptime_2fv1_2fdatabase_2eproto, file_level_enum_descriptors_greptime_2fv1_2fdatabase_2eproto,
|
||||||
file_level_service_descriptors_greptime_2fv1_2fdatabase_2eproto,
|
file_level_service_descriptors_greptime_2fv1_2fdatabase_2eproto,
|
||||||
@@ -1279,12 +1307,17 @@ void GreptimeResponse::InternalSwap(GreptimeResponse* other) {
|
|||||||
class QueryRequest::_Internal {
|
class QueryRequest::_Internal {
|
||||||
public:
|
public:
|
||||||
static const ::greptime::v1::PromRangeQuery& prom_range_query(const QueryRequest* msg);
|
static const ::greptime::v1::PromRangeQuery& prom_range_query(const QueryRequest* msg);
|
||||||
|
static const ::greptime::v1::InsertIntoPlan& insert_into_plan(const QueryRequest* msg);
|
||||||
};
|
};
|
||||||
|
|
||||||
const ::greptime::v1::PromRangeQuery&
|
const ::greptime::v1::PromRangeQuery&
|
||||||
QueryRequest::_Internal::prom_range_query(const QueryRequest* msg) {
|
QueryRequest::_Internal::prom_range_query(const QueryRequest* msg) {
|
||||||
return *msg->_impl_.query_.prom_range_query_;
|
return *msg->_impl_.query_.prom_range_query_;
|
||||||
}
|
}
|
||||||
|
const ::greptime::v1::InsertIntoPlan&
|
||||||
|
QueryRequest::_Internal::insert_into_plan(const QueryRequest* msg) {
|
||||||
|
return *msg->_impl_.query_.insert_into_plan_;
|
||||||
|
}
|
||||||
void QueryRequest::set_allocated_prom_range_query(::greptime::v1::PromRangeQuery* prom_range_query) {
|
void QueryRequest::set_allocated_prom_range_query(::greptime::v1::PromRangeQuery* prom_range_query) {
|
||||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||||
clear_query();
|
clear_query();
|
||||||
@@ -1309,6 +1342,21 @@ void QueryRequest::clear_prom_range_query() {
|
|||||||
clear_has_query();
|
clear_has_query();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
void QueryRequest::set_allocated_insert_into_plan(::greptime::v1::InsertIntoPlan* insert_into_plan) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||||
|
clear_query();
|
||||||
|
if (insert_into_plan) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(insert_into_plan);
|
||||||
|
if (message_arena != submessage_arena) {
|
||||||
|
insert_into_plan = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||||
|
message_arena, insert_into_plan, submessage_arena);
|
||||||
|
}
|
||||||
|
set_has_insert_into_plan();
|
||||||
|
_impl_.query_.insert_into_plan_ = insert_into_plan;
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.QueryRequest.insert_into_plan)
|
||||||
|
}
|
||||||
QueryRequest::QueryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
QueryRequest::QueryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||||
bool is_message_owned)
|
bool is_message_owned)
|
||||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||||
@@ -1339,6 +1387,11 @@ QueryRequest::QueryRequest(const QueryRequest& from)
|
|||||||
from._internal_prom_range_query());
|
from._internal_prom_range_query());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kInsertIntoPlan: {
|
||||||
|
_this->_internal_mutable_insert_into_plan()->::greptime::v1::InsertIntoPlan::MergeFrom(
|
||||||
|
from._internal_insert_into_plan());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case QUERY_NOT_SET: {
|
case QUERY_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1395,6 +1448,12 @@ void QueryRequest::clear_query() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kInsertIntoPlan: {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete _impl_.query_.insert_into_plan_;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case QUERY_NOT_SET: {
|
case QUERY_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1446,6 +1505,14 @@ const char* QueryRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
|
// .greptime.v1.InsertIntoPlan insert_into_plan = 4;
|
||||||
|
case 4:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
|
||||||
|
ptr = ctx->ParseMessage(_internal_mutable_insert_into_plan(), ptr);
|
||||||
|
CHK_(ptr);
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
default:
|
default:
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
} // switch
|
} // switch
|
||||||
@@ -1498,6 +1565,13 @@ uint8_t* QueryRequest::_InternalSerialize(
|
|||||||
_Internal::prom_range_query(this).GetCachedSize(), target, stream);
|
_Internal::prom_range_query(this).GetCachedSize(), target, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .greptime.v1.InsertIntoPlan insert_into_plan = 4;
|
||||||
|
if (_internal_has_insert_into_plan()) {
|
||||||
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
|
InternalWriteMessage(4, _Internal::insert_into_plan(this),
|
||||||
|
_Internal::insert_into_plan(this).GetCachedSize(), target, stream);
|
||||||
|
}
|
||||||
|
|
||||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||||
@@ -1536,6 +1610,13 @@ size_t QueryRequest::ByteSizeLong() const {
|
|||||||
*_impl_.query_.prom_range_query_);
|
*_impl_.query_.prom_range_query_);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// .greptime.v1.InsertIntoPlan insert_into_plan = 4;
|
||||||
|
case kInsertIntoPlan: {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||||
|
*_impl_.query_.insert_into_plan_);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case QUERY_NOT_SET: {
|
case QUERY_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1572,6 +1653,11 @@ void QueryRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
|
|||||||
from._internal_prom_range_query());
|
from._internal_prom_range_query());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kInsertIntoPlan: {
|
||||||
|
_this->_internal_mutable_insert_into_plan()->::greptime::v1::InsertIntoPlan::MergeFrom(
|
||||||
|
from._internal_insert_into_plan());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case QUERY_NOT_SET: {
|
case QUERY_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1605,6 +1691,252 @@ void QueryRequest::InternalSwap(QueryRequest* other) {
|
|||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
|
class InsertIntoPlan::_Internal {
|
||||||
|
public:
|
||||||
|
static const ::greptime::v1::TableName& table_name(const InsertIntoPlan* msg);
|
||||||
|
};
|
||||||
|
|
||||||
|
const ::greptime::v1::TableName&
|
||||||
|
InsertIntoPlan::_Internal::table_name(const InsertIntoPlan* msg) {
|
||||||
|
return *msg->_impl_.table_name_;
|
||||||
|
}
|
||||||
|
void InsertIntoPlan::clear_table_name() {
|
||||||
|
if (GetArenaForAllocation() == nullptr && _impl_.table_name_ != nullptr) {
|
||||||
|
delete _impl_.table_name_;
|
||||||
|
}
|
||||||
|
_impl_.table_name_ = nullptr;
|
||||||
|
}
|
||||||
|
InsertIntoPlan::InsertIntoPlan(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||||
|
bool is_message_owned)
|
||||||
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||||
|
SharedCtor(arena, is_message_owned);
|
||||||
|
// @@protoc_insertion_point(arena_constructor:greptime.v1.InsertIntoPlan)
|
||||||
|
}
|
||||||
|
InsertIntoPlan::InsertIntoPlan(const InsertIntoPlan& from)
|
||||||
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||||
|
InsertIntoPlan* const _this = this; (void)_this;
|
||||||
|
new (&_impl_) Impl_{
|
||||||
|
decltype(_impl_.logical_plan_){}
|
||||||
|
, decltype(_impl_.table_name_){nullptr}
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}};
|
||||||
|
|
||||||
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
|
_impl_.logical_plan_.InitDefault();
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
_impl_.logical_plan_.Set("", GetArenaForAllocation());
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
if (!from._internal_logical_plan().empty()) {
|
||||||
|
_this->_impl_.logical_plan_.Set(from._internal_logical_plan(),
|
||||||
|
_this->GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
if (from._internal_has_table_name()) {
|
||||||
|
_this->_impl_.table_name_ = new ::greptime::v1::TableName(*from._impl_.table_name_);
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(copy_constructor:greptime.v1.InsertIntoPlan)
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void InsertIntoPlan::SharedCtor(
|
||||||
|
::_pb::Arena* arena, bool is_message_owned) {
|
||||||
|
(void)arena;
|
||||||
|
(void)is_message_owned;
|
||||||
|
new (&_impl_) Impl_{
|
||||||
|
decltype(_impl_.logical_plan_){}
|
||||||
|
, decltype(_impl_.table_name_){nullptr}
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
|
};
|
||||||
|
_impl_.logical_plan_.InitDefault();
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
_impl_.logical_plan_.Set("", GetArenaForAllocation());
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
}
|
||||||
|
|
||||||
|
InsertIntoPlan::~InsertIntoPlan() {
|
||||||
|
// @@protoc_insertion_point(destructor:greptime.v1.InsertIntoPlan)
|
||||||
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||||
|
(void)arena;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SharedDtor();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void InsertIntoPlan::SharedDtor() {
|
||||||
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||||
|
_impl_.logical_plan_.Destroy();
|
||||||
|
if (this != internal_default_instance()) delete _impl_.table_name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void InsertIntoPlan::SetCachedSize(int size) const {
|
||||||
|
_impl_._cached_size_.Set(size);
|
||||||
|
}
|
||||||
|
|
||||||
|
void InsertIntoPlan::Clear() {
|
||||||
|
// @@protoc_insertion_point(message_clear_start:greptime.v1.InsertIntoPlan)
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
_impl_.logical_plan_.ClearToEmpty();
|
||||||
|
if (GetArenaForAllocation() == nullptr && _impl_.table_name_ != nullptr) {
|
||||||
|
delete _impl_.table_name_;
|
||||||
|
}
|
||||||
|
_impl_.table_name_ = nullptr;
|
||||||
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* InsertIntoPlan::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||||
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||||
|
while (!ctx->Done(&ptr)) {
|
||||||
|
uint32_t tag;
|
||||||
|
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||||
|
switch (tag >> 3) {
|
||||||
|
// .greptime.v1.TableName table_name = 1;
|
||||||
|
case 1:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||||
|
ptr = ctx->ParseMessage(_internal_mutable_table_name(), ptr);
|
||||||
|
CHK_(ptr);
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
|
// bytes logical_plan = 2;
|
||||||
|
case 2:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||||
|
auto str = _internal_mutable_logical_plan();
|
||||||
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||||
|
CHK_(ptr);
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
|
default:
|
||||||
|
goto handle_unusual;
|
||||||
|
} // switch
|
||||||
|
handle_unusual:
|
||||||
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||||
|
CHK_(ptr);
|
||||||
|
ctx->SetLastTag(tag);
|
||||||
|
goto message_done;
|
||||||
|
}
|
||||||
|
ptr = UnknownFieldParse(
|
||||||
|
tag,
|
||||||
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||||
|
ptr, ctx);
|
||||||
|
CHK_(ptr != nullptr);
|
||||||
|
} // while
|
||||||
|
message_done:
|
||||||
|
return ptr;
|
||||||
|
failure:
|
||||||
|
ptr = nullptr;
|
||||||
|
goto message_done;
|
||||||
|
#undef CHK_
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8_t* InsertIntoPlan::_InternalSerialize(
|
||||||
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||||
|
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.InsertIntoPlan)
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
// .greptime.v1.TableName table_name = 1;
|
||||||
|
if (this->_internal_has_table_name()) {
|
||||||
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
|
InternalWriteMessage(1, _Internal::table_name(this),
|
||||||
|
_Internal::table_name(this).GetCachedSize(), target, stream);
|
||||||
|
}
|
||||||
|
|
||||||
|
// bytes logical_plan = 2;
|
||||||
|
if (!this->_internal_logical_plan().empty()) {
|
||||||
|
target = stream->WriteBytesMaybeAliased(
|
||||||
|
2, this->_internal_logical_plan(), target);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||||
|
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||||
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.InsertIntoPlan)
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t InsertIntoPlan::ByteSizeLong() const {
|
||||||
|
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.InsertIntoPlan)
|
||||||
|
size_t total_size = 0;
|
||||||
|
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
// bytes logical_plan = 2;
|
||||||
|
if (!this->_internal_logical_plan().empty()) {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
||||||
|
this->_internal_logical_plan());
|
||||||
|
}
|
||||||
|
|
||||||
|
// .greptime.v1.TableName table_name = 1;
|
||||||
|
if (this->_internal_has_table_name()) {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||||
|
*_impl_.table_name_);
|
||||||
|
}
|
||||||
|
|
||||||
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||||
|
}
|
||||||
|
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InsertIntoPlan::_class_data_ = {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||||
|
InsertIntoPlan::MergeImpl
|
||||||
|
};
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InsertIntoPlan::GetClassData() const { return &_class_data_; }
|
||||||
|
|
||||||
|
|
||||||
|
void InsertIntoPlan::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||||
|
auto* const _this = static_cast<InsertIntoPlan*>(&to_msg);
|
||||||
|
auto& from = static_cast<const InsertIntoPlan&>(from_msg);
|
||||||
|
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.InsertIntoPlan)
|
||||||
|
GOOGLE_DCHECK_NE(&from, _this);
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
if (!from._internal_logical_plan().empty()) {
|
||||||
|
_this->_internal_set_logical_plan(from._internal_logical_plan());
|
||||||
|
}
|
||||||
|
if (from._internal_has_table_name()) {
|
||||||
|
_this->_internal_mutable_table_name()->::greptime::v1::TableName::MergeFrom(
|
||||||
|
from._internal_table_name());
|
||||||
|
}
|
||||||
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
|
}
|
||||||
|
|
||||||
|
void InsertIntoPlan::CopyFrom(const InsertIntoPlan& from) {
|
||||||
|
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.InsertIntoPlan)
|
||||||
|
if (&from == this) return;
|
||||||
|
Clear();
|
||||||
|
MergeFrom(from);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool InsertIntoPlan::IsInitialized() const {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void InsertIntoPlan::InternalSwap(InsertIntoPlan* other) {
|
||||||
|
using std::swap;
|
||||||
|
auto* lhs_arena = GetArenaForAllocation();
|
||||||
|
auto* rhs_arena = other->GetArenaForAllocation();
|
||||||
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||||
|
&_impl_.logical_plan_, lhs_arena,
|
||||||
|
&other->_impl_.logical_plan_, rhs_arena
|
||||||
|
);
|
||||||
|
swap(_impl_.table_name_, other->_impl_.table_name_);
|
||||||
|
}
|
||||||
|
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata InsertIntoPlan::GetMetadata() const {
|
||||||
|
return ::_pbi::AssignDescriptors(
|
||||||
|
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
||||||
|
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[3]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===================================================================
|
||||||
|
|
||||||
class InsertRequests::_Internal {
|
class InsertRequests::_Internal {
|
||||||
public:
|
public:
|
||||||
};
|
};
|
||||||
@@ -1785,7 +2117,7 @@ void InsertRequests::InternalSwap(InsertRequests* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequests::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequests::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[3]);
|
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[4]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2052,7 +2384,7 @@ void InsertRequest::InternalSwap(InsertRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[4]);
|
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[5]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2237,7 +2569,7 @@ void DeleteRequests::InternalSwap(DeleteRequests* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequests::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequests::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[5]);
|
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[6]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2504,7 +2836,7 @@ void DeleteRequest::InternalSwap(DeleteRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[6]);
|
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[7]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2689,7 +3021,7 @@ void RowInsertRequests::InternalSwap(RowInsertRequests* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata RowInsertRequests::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata RowInsertRequests::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[7]);
|
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[8]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2940,7 +3272,7 @@ void RowInsertRequest::InternalSwap(RowInsertRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata RowInsertRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata RowInsertRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[8]);
|
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[9]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -3125,7 +3457,7 @@ void RowDeleteRequests::InternalSwap(RowDeleteRequests* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata RowDeleteRequests::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata RowDeleteRequests::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[9]);
|
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[10]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -3376,7 +3708,7 @@ void RowDeleteRequest::InternalSwap(RowDeleteRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata RowDeleteRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata RowDeleteRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[10]);
|
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[11]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
@@ -3395,6 +3727,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::QueryRequest*
|
|||||||
Arena::CreateMaybeMessage< ::greptime::v1::QueryRequest >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::QueryRequest >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::QueryRequest >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::QueryRequest >(arena);
|
||||||
}
|
}
|
||||||
|
template<> PROTOBUF_NOINLINE ::greptime::v1::InsertIntoPlan*
|
||||||
|
Arena::CreateMaybeMessage< ::greptime::v1::InsertIntoPlan >(Arena* arena) {
|
||||||
|
return Arena::CreateMessageInternal< ::greptime::v1::InsertIntoPlan >(arena);
|
||||||
|
}
|
||||||
template<> PROTOBUF_NOINLINE ::greptime::v1::InsertRequests*
|
template<> PROTOBUF_NOINLINE ::greptime::v1::InsertRequests*
|
||||||
Arena::CreateMaybeMessage< ::greptime::v1::InsertRequests >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::InsertRequests >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::InsertRequests >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::InsertRequests >(arena);
|
||||||
|
|||||||
@@ -63,6 +63,9 @@ extern GreptimeRequestDefaultTypeInternal _GreptimeRequest_default_instance_;
|
|||||||
class GreptimeResponse;
|
class GreptimeResponse;
|
||||||
struct GreptimeResponseDefaultTypeInternal;
|
struct GreptimeResponseDefaultTypeInternal;
|
||||||
extern GreptimeResponseDefaultTypeInternal _GreptimeResponse_default_instance_;
|
extern GreptimeResponseDefaultTypeInternal _GreptimeResponse_default_instance_;
|
||||||
|
class InsertIntoPlan;
|
||||||
|
struct InsertIntoPlanDefaultTypeInternal;
|
||||||
|
extern InsertIntoPlanDefaultTypeInternal _InsertIntoPlan_default_instance_;
|
||||||
class InsertRequest;
|
class InsertRequest;
|
||||||
struct InsertRequestDefaultTypeInternal;
|
struct InsertRequestDefaultTypeInternal;
|
||||||
extern InsertRequestDefaultTypeInternal _InsertRequest_default_instance_;
|
extern InsertRequestDefaultTypeInternal _InsertRequest_default_instance_;
|
||||||
@@ -91,6 +94,7 @@ template<> ::greptime::v1::DeleteRequest* Arena::CreateMaybeMessage<::greptime::
|
|||||||
template<> ::greptime::v1::DeleteRequests* Arena::CreateMaybeMessage<::greptime::v1::DeleteRequests>(Arena*);
|
template<> ::greptime::v1::DeleteRequests* Arena::CreateMaybeMessage<::greptime::v1::DeleteRequests>(Arena*);
|
||||||
template<> ::greptime::v1::GreptimeRequest* Arena::CreateMaybeMessage<::greptime::v1::GreptimeRequest>(Arena*);
|
template<> ::greptime::v1::GreptimeRequest* Arena::CreateMaybeMessage<::greptime::v1::GreptimeRequest>(Arena*);
|
||||||
template<> ::greptime::v1::GreptimeResponse* Arena::CreateMaybeMessage<::greptime::v1::GreptimeResponse>(Arena*);
|
template<> ::greptime::v1::GreptimeResponse* Arena::CreateMaybeMessage<::greptime::v1::GreptimeResponse>(Arena*);
|
||||||
|
template<> ::greptime::v1::InsertIntoPlan* Arena::CreateMaybeMessage<::greptime::v1::InsertIntoPlan>(Arena*);
|
||||||
template<> ::greptime::v1::InsertRequest* Arena::CreateMaybeMessage<::greptime::v1::InsertRequest>(Arena*);
|
template<> ::greptime::v1::InsertRequest* Arena::CreateMaybeMessage<::greptime::v1::InsertRequest>(Arena*);
|
||||||
template<> ::greptime::v1::InsertRequests* Arena::CreateMaybeMessage<::greptime::v1::InsertRequests>(Arena*);
|
template<> ::greptime::v1::InsertRequests* Arena::CreateMaybeMessage<::greptime::v1::InsertRequests>(Arena*);
|
||||||
template<> ::greptime::v1::QueryRequest* Arena::CreateMaybeMessage<::greptime::v1::QueryRequest>(Arena*);
|
template<> ::greptime::v1::QueryRequest* Arena::CreateMaybeMessage<::greptime::v1::QueryRequest>(Arena*);
|
||||||
@@ -649,6 +653,7 @@ class QueryRequest final :
|
|||||||
kSql = 1,
|
kSql = 1,
|
||||||
kLogicalPlan = 2,
|
kLogicalPlan = 2,
|
||||||
kPromRangeQuery = 3,
|
kPromRangeQuery = 3,
|
||||||
|
kInsertIntoPlan = 4,
|
||||||
QUERY_NOT_SET = 0,
|
QUERY_NOT_SET = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -733,6 +738,7 @@ class QueryRequest final :
|
|||||||
kSqlFieldNumber = 1,
|
kSqlFieldNumber = 1,
|
||||||
kLogicalPlanFieldNumber = 2,
|
kLogicalPlanFieldNumber = 2,
|
||||||
kPromRangeQueryFieldNumber = 3,
|
kPromRangeQueryFieldNumber = 3,
|
||||||
|
kInsertIntoPlanFieldNumber = 4,
|
||||||
};
|
};
|
||||||
// string sql = 1;
|
// string sql = 1;
|
||||||
bool has_sql() const;
|
bool has_sql() const;
|
||||||
@@ -788,6 +794,24 @@ class QueryRequest final :
|
|||||||
::greptime::v1::PromRangeQuery* prom_range_query);
|
::greptime::v1::PromRangeQuery* prom_range_query);
|
||||||
::greptime::v1::PromRangeQuery* unsafe_arena_release_prom_range_query();
|
::greptime::v1::PromRangeQuery* unsafe_arena_release_prom_range_query();
|
||||||
|
|
||||||
|
// .greptime.v1.InsertIntoPlan insert_into_plan = 4;
|
||||||
|
bool has_insert_into_plan() const;
|
||||||
|
private:
|
||||||
|
bool _internal_has_insert_into_plan() const;
|
||||||
|
public:
|
||||||
|
void clear_insert_into_plan();
|
||||||
|
const ::greptime::v1::InsertIntoPlan& insert_into_plan() const;
|
||||||
|
PROTOBUF_NODISCARD ::greptime::v1::InsertIntoPlan* release_insert_into_plan();
|
||||||
|
::greptime::v1::InsertIntoPlan* mutable_insert_into_plan();
|
||||||
|
void set_allocated_insert_into_plan(::greptime::v1::InsertIntoPlan* insert_into_plan);
|
||||||
|
private:
|
||||||
|
const ::greptime::v1::InsertIntoPlan& _internal_insert_into_plan() const;
|
||||||
|
::greptime::v1::InsertIntoPlan* _internal_mutable_insert_into_plan();
|
||||||
|
public:
|
||||||
|
void unsafe_arena_set_allocated_insert_into_plan(
|
||||||
|
::greptime::v1::InsertIntoPlan* insert_into_plan);
|
||||||
|
::greptime::v1::InsertIntoPlan* unsafe_arena_release_insert_into_plan();
|
||||||
|
|
||||||
void clear_query();
|
void clear_query();
|
||||||
QueryCase query_case() const;
|
QueryCase query_case() const;
|
||||||
// @@protoc_insertion_point(class_scope:greptime.v1.QueryRequest)
|
// @@protoc_insertion_point(class_scope:greptime.v1.QueryRequest)
|
||||||
@@ -796,6 +820,7 @@ class QueryRequest final :
|
|||||||
void set_has_sql();
|
void set_has_sql();
|
||||||
void set_has_logical_plan();
|
void set_has_logical_plan();
|
||||||
void set_has_prom_range_query();
|
void set_has_prom_range_query();
|
||||||
|
void set_has_insert_into_plan();
|
||||||
|
|
||||||
inline bool has_query() const;
|
inline bool has_query() const;
|
||||||
inline void clear_has_query();
|
inline void clear_has_query();
|
||||||
@@ -810,6 +835,7 @@ class QueryRequest final :
|
|||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_;
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logical_plan_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logical_plan_;
|
||||||
::greptime::v1::PromRangeQuery* prom_range_query_;
|
::greptime::v1::PromRangeQuery* prom_range_query_;
|
||||||
|
::greptime::v1::InsertIntoPlan* insert_into_plan_;
|
||||||
} query_;
|
} query_;
|
||||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
uint32_t _oneof_case_[1];
|
uint32_t _oneof_case_[1];
|
||||||
@@ -820,6 +846,179 @@ class QueryRequest final :
|
|||||||
};
|
};
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
class InsertIntoPlan final :
|
||||||
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.InsertIntoPlan) */ {
|
||||||
|
public:
|
||||||
|
inline InsertIntoPlan() : InsertIntoPlan(nullptr) {}
|
||||||
|
~InsertIntoPlan() override;
|
||||||
|
explicit PROTOBUF_CONSTEXPR InsertIntoPlan(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||||
|
|
||||||
|
InsertIntoPlan(const InsertIntoPlan& from);
|
||||||
|
InsertIntoPlan(InsertIntoPlan&& from) noexcept
|
||||||
|
: InsertIntoPlan() {
|
||||||
|
*this = ::std::move(from);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline InsertIntoPlan& operator=(const InsertIntoPlan& from) {
|
||||||
|
CopyFrom(from);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
inline InsertIntoPlan& operator=(InsertIntoPlan&& from) noexcept {
|
||||||
|
if (this == &from) return *this;
|
||||||
|
if (GetOwningArena() == from.GetOwningArena()
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
|
||||||
|
&& GetOwningArena() != nullptr
|
||||||
|
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
|
||||||
|
) {
|
||||||
|
InternalSwap(&from);
|
||||||
|
} else {
|
||||||
|
CopyFrom(from);
|
||||||
|
}
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
||||||
|
return GetDescriptor();
|
||||||
|
}
|
||||||
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
||||||
|
return default_instance().GetMetadata().descriptor;
|
||||||
|
}
|
||||||
|
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
||||||
|
return default_instance().GetMetadata().reflection;
|
||||||
|
}
|
||||||
|
static const InsertIntoPlan& default_instance() {
|
||||||
|
return *internal_default_instance();
|
||||||
|
}
|
||||||
|
static inline const InsertIntoPlan* internal_default_instance() {
|
||||||
|
return reinterpret_cast<const InsertIntoPlan*>(
|
||||||
|
&_InsertIntoPlan_default_instance_);
|
||||||
|
}
|
||||||
|
static constexpr int kIndexInFileMessages =
|
||||||
|
3;
|
||||||
|
|
||||||
|
friend void swap(InsertIntoPlan& a, InsertIntoPlan& b) {
|
||||||
|
a.Swap(&b);
|
||||||
|
}
|
||||||
|
inline void Swap(InsertIntoPlan* other) {
|
||||||
|
if (other == this) return;
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
|
||||||
|
if (GetOwningArena() != nullptr &&
|
||||||
|
GetOwningArena() == other->GetOwningArena()) {
|
||||||
|
#else // PROTOBUF_FORCE_COPY_IN_SWAP
|
||||||
|
if (GetOwningArena() == other->GetOwningArena()) {
|
||||||
|
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
|
||||||
|
InternalSwap(other);
|
||||||
|
} else {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
void UnsafeArenaSwap(InsertIntoPlan* other) {
|
||||||
|
if (other == this) return;
|
||||||
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||||
|
InternalSwap(other);
|
||||||
|
}
|
||||||
|
|
||||||
|
// implements Message ----------------------------------------------
|
||||||
|
|
||||||
|
InsertIntoPlan* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||||
|
return CreateMaybeMessage<InsertIntoPlan>(arena);
|
||||||
|
}
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||||
|
void CopyFrom(const InsertIntoPlan& from);
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||||
|
void MergeFrom( const InsertIntoPlan& from) {
|
||||||
|
InsertIntoPlan::MergeImpl(*this, from);
|
||||||
|
}
|
||||||
|
private:
|
||||||
|
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
|
||||||
|
public:
|
||||||
|
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||||
|
bool IsInitialized() const final;
|
||||||
|
|
||||||
|
size_t ByteSizeLong() const final;
|
||||||
|
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
||||||
|
uint8_t* _InternalSerialize(
|
||||||
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
||||||
|
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
|
||||||
|
|
||||||
|
private:
|
||||||
|
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
|
||||||
|
void SharedDtor();
|
||||||
|
void SetCachedSize(int size) const final;
|
||||||
|
void InternalSwap(InsertIntoPlan* other);
|
||||||
|
|
||||||
|
private:
|
||||||
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||||
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||||
|
return "greptime.v1.InsertIntoPlan";
|
||||||
|
}
|
||||||
|
protected:
|
||||||
|
explicit InsertIntoPlan(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||||
|
bool is_message_owned = false);
|
||||||
|
public:
|
||||||
|
|
||||||
|
static const ClassData _class_data_;
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
||||||
|
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||||
|
|
||||||
|
// nested types ----------------------------------------------------
|
||||||
|
|
||||||
|
// accessors -------------------------------------------------------
|
||||||
|
|
||||||
|
enum : int {
|
||||||
|
kLogicalPlanFieldNumber = 2,
|
||||||
|
kTableNameFieldNumber = 1,
|
||||||
|
};
|
||||||
|
// bytes logical_plan = 2;
|
||||||
|
void clear_logical_plan();
|
||||||
|
const std::string& logical_plan() const;
|
||||||
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||||
|
void set_logical_plan(ArgT0&& arg0, ArgT... args);
|
||||||
|
std::string* mutable_logical_plan();
|
||||||
|
PROTOBUF_NODISCARD std::string* release_logical_plan();
|
||||||
|
void set_allocated_logical_plan(std::string* logical_plan);
|
||||||
|
private:
|
||||||
|
const std::string& _internal_logical_plan() const;
|
||||||
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_logical_plan(const std::string& value);
|
||||||
|
std::string* _internal_mutable_logical_plan();
|
||||||
|
public:
|
||||||
|
|
||||||
|
// .greptime.v1.TableName table_name = 1;
|
||||||
|
bool has_table_name() const;
|
||||||
|
private:
|
||||||
|
bool _internal_has_table_name() const;
|
||||||
|
public:
|
||||||
|
void clear_table_name();
|
||||||
|
const ::greptime::v1::TableName& table_name() const;
|
||||||
|
PROTOBUF_NODISCARD ::greptime::v1::TableName* release_table_name();
|
||||||
|
::greptime::v1::TableName* mutable_table_name();
|
||||||
|
void set_allocated_table_name(::greptime::v1::TableName* table_name);
|
||||||
|
private:
|
||||||
|
const ::greptime::v1::TableName& _internal_table_name() const;
|
||||||
|
::greptime::v1::TableName* _internal_mutable_table_name();
|
||||||
|
public:
|
||||||
|
void unsafe_arena_set_allocated_table_name(
|
||||||
|
::greptime::v1::TableName* table_name);
|
||||||
|
::greptime::v1::TableName* unsafe_arena_release_table_name();
|
||||||
|
|
||||||
|
// @@protoc_insertion_point(class_scope:greptime.v1.InsertIntoPlan)
|
||||||
|
private:
|
||||||
|
class _Internal;
|
||||||
|
|
||||||
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||||
|
typedef void InternalArenaConstructable_;
|
||||||
|
typedef void DestructorSkippable_;
|
||||||
|
struct Impl_ {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logical_plan_;
|
||||||
|
::greptime::v1::TableName* table_name_;
|
||||||
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
|
};
|
||||||
|
union { Impl_ _impl_; };
|
||||||
|
friend struct ::TableStruct_greptime_2fv1_2fdatabase_2eproto;
|
||||||
|
};
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
class InsertRequests final :
|
class InsertRequests final :
|
||||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.InsertRequests) */ {
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.InsertRequests) */ {
|
||||||
public:
|
public:
|
||||||
@@ -868,7 +1067,7 @@ class InsertRequests final :
|
|||||||
&_InsertRequests_default_instance_);
|
&_InsertRequests_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
3;
|
4;
|
||||||
|
|
||||||
friend void swap(InsertRequests& a, InsertRequests& b) {
|
friend void swap(InsertRequests& a, InsertRequests& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1025,7 +1224,7 @@ class InsertRequest final :
|
|||||||
&_InsertRequest_default_instance_);
|
&_InsertRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
4;
|
5;
|
||||||
|
|
||||||
friend void swap(InsertRequest& a, InsertRequest& b) {
|
friend void swap(InsertRequest& a, InsertRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1209,7 +1408,7 @@ class DeleteRequests final :
|
|||||||
&_DeleteRequests_default_instance_);
|
&_DeleteRequests_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
5;
|
6;
|
||||||
|
|
||||||
friend void swap(DeleteRequests& a, DeleteRequests& b) {
|
friend void swap(DeleteRequests& a, DeleteRequests& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1366,7 +1565,7 @@ class DeleteRequest final :
|
|||||||
&_DeleteRequest_default_instance_);
|
&_DeleteRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
6;
|
7;
|
||||||
|
|
||||||
friend void swap(DeleteRequest& a, DeleteRequest& b) {
|
friend void swap(DeleteRequest& a, DeleteRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1550,7 +1749,7 @@ class RowInsertRequests final :
|
|||||||
&_RowInsertRequests_default_instance_);
|
&_RowInsertRequests_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
7;
|
8;
|
||||||
|
|
||||||
friend void swap(RowInsertRequests& a, RowInsertRequests& b) {
|
friend void swap(RowInsertRequests& a, RowInsertRequests& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1707,7 +1906,7 @@ class RowInsertRequest final :
|
|||||||
&_RowInsertRequest_default_instance_);
|
&_RowInsertRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
8;
|
9;
|
||||||
|
|
||||||
friend void swap(RowInsertRequest& a, RowInsertRequest& b) {
|
friend void swap(RowInsertRequest& a, RowInsertRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1880,7 +2079,7 @@ class RowDeleteRequests final :
|
|||||||
&_RowDeleteRequests_default_instance_);
|
&_RowDeleteRequests_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
9;
|
10;
|
||||||
|
|
||||||
friend void swap(RowDeleteRequests& a, RowDeleteRequests& b) {
|
friend void swap(RowDeleteRequests& a, RowDeleteRequests& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2037,7 +2236,7 @@ class RowDeleteRequest final :
|
|||||||
&_RowDeleteRequest_default_instance_);
|
&_RowDeleteRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
10;
|
11;
|
||||||
|
|
||||||
friend void swap(RowDeleteRequest& a, RowDeleteRequest& b) {
|
friend void swap(RowDeleteRequest& a, RowDeleteRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -3089,6 +3288,80 @@ inline ::greptime::v1::PromRangeQuery* QueryRequest::mutable_prom_range_query()
|
|||||||
return _msg;
|
return _msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .greptime.v1.InsertIntoPlan insert_into_plan = 4;
|
||||||
|
inline bool QueryRequest::_internal_has_insert_into_plan() const {
|
||||||
|
return query_case() == kInsertIntoPlan;
|
||||||
|
}
|
||||||
|
inline bool QueryRequest::has_insert_into_plan() const {
|
||||||
|
return _internal_has_insert_into_plan();
|
||||||
|
}
|
||||||
|
inline void QueryRequest::set_has_insert_into_plan() {
|
||||||
|
_impl_._oneof_case_[0] = kInsertIntoPlan;
|
||||||
|
}
|
||||||
|
inline void QueryRequest::clear_insert_into_plan() {
|
||||||
|
if (_internal_has_insert_into_plan()) {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete _impl_.query_.insert_into_plan_;
|
||||||
|
}
|
||||||
|
clear_has_query();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::InsertIntoPlan* QueryRequest::release_insert_into_plan() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.QueryRequest.insert_into_plan)
|
||||||
|
if (_internal_has_insert_into_plan()) {
|
||||||
|
clear_has_query();
|
||||||
|
::greptime::v1::InsertIntoPlan* temp = _impl_.query_.insert_into_plan_;
|
||||||
|
if (GetArenaForAllocation() != nullptr) {
|
||||||
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||||
|
}
|
||||||
|
_impl_.query_.insert_into_plan_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::InsertIntoPlan& QueryRequest::_internal_insert_into_plan() const {
|
||||||
|
return _internal_has_insert_into_plan()
|
||||||
|
? *_impl_.query_.insert_into_plan_
|
||||||
|
: reinterpret_cast< ::greptime::v1::InsertIntoPlan&>(::greptime::v1::_InsertIntoPlan_default_instance_);
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::InsertIntoPlan& QueryRequest::insert_into_plan() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.QueryRequest.insert_into_plan)
|
||||||
|
return _internal_insert_into_plan();
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::InsertIntoPlan* QueryRequest::unsafe_arena_release_insert_into_plan() {
|
||||||
|
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.QueryRequest.insert_into_plan)
|
||||||
|
if (_internal_has_insert_into_plan()) {
|
||||||
|
clear_has_query();
|
||||||
|
::greptime::v1::InsertIntoPlan* temp = _impl_.query_.insert_into_plan_;
|
||||||
|
_impl_.query_.insert_into_plan_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline void QueryRequest::unsafe_arena_set_allocated_insert_into_plan(::greptime::v1::InsertIntoPlan* insert_into_plan) {
|
||||||
|
clear_query();
|
||||||
|
if (insert_into_plan) {
|
||||||
|
set_has_insert_into_plan();
|
||||||
|
_impl_.query_.insert_into_plan_ = insert_into_plan;
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.QueryRequest.insert_into_plan)
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::InsertIntoPlan* QueryRequest::_internal_mutable_insert_into_plan() {
|
||||||
|
if (!_internal_has_insert_into_plan()) {
|
||||||
|
clear_query();
|
||||||
|
set_has_insert_into_plan();
|
||||||
|
_impl_.query_.insert_into_plan_ = CreateMaybeMessage< ::greptime::v1::InsertIntoPlan >(GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
return _impl_.query_.insert_into_plan_;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::InsertIntoPlan* QueryRequest::mutable_insert_into_plan() {
|
||||||
|
::greptime::v1::InsertIntoPlan* _msg = _internal_mutable_insert_into_plan();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.QueryRequest.insert_into_plan)
|
||||||
|
return _msg;
|
||||||
|
}
|
||||||
|
|
||||||
inline bool QueryRequest::has_query() const {
|
inline bool QueryRequest::has_query() const {
|
||||||
return query_case() != QUERY_NOT_SET;
|
return query_case() != QUERY_NOT_SET;
|
||||||
}
|
}
|
||||||
@@ -3100,6 +3373,145 @@ inline QueryRequest::QueryCase QueryRequest::query_case() const {
|
|||||||
}
|
}
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// InsertIntoPlan
|
||||||
|
|
||||||
|
// .greptime.v1.TableName table_name = 1;
|
||||||
|
inline bool InsertIntoPlan::_internal_has_table_name() const {
|
||||||
|
return this != internal_default_instance() && _impl_.table_name_ != nullptr;
|
||||||
|
}
|
||||||
|
inline bool InsertIntoPlan::has_table_name() const {
|
||||||
|
return _internal_has_table_name();
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::TableName& InsertIntoPlan::_internal_table_name() const {
|
||||||
|
const ::greptime::v1::TableName* p = _impl_.table_name_;
|
||||||
|
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::TableName&>(
|
||||||
|
::greptime::v1::_TableName_default_instance_);
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::TableName& InsertIntoPlan::table_name() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.InsertIntoPlan.table_name)
|
||||||
|
return _internal_table_name();
|
||||||
|
}
|
||||||
|
inline void InsertIntoPlan::unsafe_arena_set_allocated_table_name(
|
||||||
|
::greptime::v1::TableName* table_name) {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_name_);
|
||||||
|
}
|
||||||
|
_impl_.table_name_ = table_name;
|
||||||
|
if (table_name) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.InsertIntoPlan.table_name)
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::TableName* InsertIntoPlan::release_table_name() {
|
||||||
|
|
||||||
|
::greptime::v1::TableName* temp = _impl_.table_name_;
|
||||||
|
_impl_.table_name_ = nullptr;
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||||
|
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
||||||
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||||
|
if (GetArenaForAllocation() == nullptr) { delete old; }
|
||||||
|
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||||
|
if (GetArenaForAllocation() != nullptr) {
|
||||||
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||||
|
}
|
||||||
|
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||||
|
return temp;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::TableName* InsertIntoPlan::unsafe_arena_release_table_name() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.InsertIntoPlan.table_name)
|
||||||
|
|
||||||
|
::greptime::v1::TableName* temp = _impl_.table_name_;
|
||||||
|
_impl_.table_name_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::TableName* InsertIntoPlan::_internal_mutable_table_name() {
|
||||||
|
|
||||||
|
if (_impl_.table_name_ == nullptr) {
|
||||||
|
auto* p = CreateMaybeMessage<::greptime::v1::TableName>(GetArenaForAllocation());
|
||||||
|
_impl_.table_name_ = p;
|
||||||
|
}
|
||||||
|
return _impl_.table_name_;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::TableName* InsertIntoPlan::mutable_table_name() {
|
||||||
|
::greptime::v1::TableName* _msg = _internal_mutable_table_name();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.InsertIntoPlan.table_name)
|
||||||
|
return _msg;
|
||||||
|
}
|
||||||
|
inline void InsertIntoPlan::set_allocated_table_name(::greptime::v1::TableName* table_name) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||||
|
if (message_arena == nullptr) {
|
||||||
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_name_);
|
||||||
|
}
|
||||||
|
if (table_name) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||||
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(table_name));
|
||||||
|
if (message_arena != submessage_arena) {
|
||||||
|
table_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||||
|
message_arena, table_name, submessage_arena);
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
_impl_.table_name_ = table_name;
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.InsertIntoPlan.table_name)
|
||||||
|
}
|
||||||
|
|
||||||
|
// bytes logical_plan = 2;
|
||||||
|
inline void InsertIntoPlan::clear_logical_plan() {
|
||||||
|
_impl_.logical_plan_.ClearToEmpty();
|
||||||
|
}
|
||||||
|
inline const std::string& InsertIntoPlan::logical_plan() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.InsertIntoPlan.logical_plan)
|
||||||
|
return _internal_logical_plan();
|
||||||
|
}
|
||||||
|
template <typename ArgT0, typename... ArgT>
|
||||||
|
inline PROTOBUF_ALWAYS_INLINE
|
||||||
|
void InsertIntoPlan::set_logical_plan(ArgT0&& arg0, ArgT... args) {
|
||||||
|
|
||||||
|
_impl_.logical_plan_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||||
|
// @@protoc_insertion_point(field_set:greptime.v1.InsertIntoPlan.logical_plan)
|
||||||
|
}
|
||||||
|
inline std::string* InsertIntoPlan::mutable_logical_plan() {
|
||||||
|
std::string* _s = _internal_mutable_logical_plan();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.InsertIntoPlan.logical_plan)
|
||||||
|
return _s;
|
||||||
|
}
|
||||||
|
inline const std::string& InsertIntoPlan::_internal_logical_plan() const {
|
||||||
|
return _impl_.logical_plan_.Get();
|
||||||
|
}
|
||||||
|
inline void InsertIntoPlan::_internal_set_logical_plan(const std::string& value) {
|
||||||
|
|
||||||
|
_impl_.logical_plan_.Set(value, GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* InsertIntoPlan::_internal_mutable_logical_plan() {
|
||||||
|
|
||||||
|
return _impl_.logical_plan_.Mutable(GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* InsertIntoPlan::release_logical_plan() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.InsertIntoPlan.logical_plan)
|
||||||
|
return _impl_.logical_plan_.Release();
|
||||||
|
}
|
||||||
|
inline void InsertIntoPlan::set_allocated_logical_plan(std::string* logical_plan) {
|
||||||
|
if (logical_plan != nullptr) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
_impl_.logical_plan_.SetAllocated(logical_plan, GetArenaForAllocation());
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
if (_impl_.logical_plan_.IsDefault()) {
|
||||||
|
_impl_.logical_plan_.Set("", GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.InsertIntoPlan.logical_plan)
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
// InsertRequests
|
// InsertRequests
|
||||||
|
|
||||||
// repeated .greptime.v1.InsertRequest inserts = 1;
|
// repeated .greptime.v1.InsertRequest inserts = 1;
|
||||||
@@ -3797,6 +4209,8 @@ inline void RowDeleteRequest::set_allocated_rows(::greptime::v1::Rows* rows) {
|
|||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
|
|
||||||
|
|||||||
+236
-137
@@ -264,6 +264,7 @@ type QueryRequest struct {
|
|||||||
// *QueryRequest_Sql
|
// *QueryRequest_Sql
|
||||||
// *QueryRequest_LogicalPlan
|
// *QueryRequest_LogicalPlan
|
||||||
// *QueryRequest_PromRangeQuery
|
// *QueryRequest_PromRangeQuery
|
||||||
|
// *QueryRequest_InsertIntoPlan
|
||||||
Query isQueryRequest_Query `protobuf_oneof:"query"`
|
Query isQueryRequest_Query `protobuf_oneof:"query"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -327,6 +328,13 @@ func (x *QueryRequest) GetPromRangeQuery() *PromRangeQuery {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *QueryRequest) GetInsertIntoPlan() *InsertIntoPlan {
|
||||||
|
if x, ok := x.GetQuery().(*QueryRequest_InsertIntoPlan); ok {
|
||||||
|
return x.InsertIntoPlan
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type isQueryRequest_Query interface {
|
type isQueryRequest_Query interface {
|
||||||
isQueryRequest_Query()
|
isQueryRequest_Query()
|
||||||
}
|
}
|
||||||
@@ -343,12 +351,75 @@ type QueryRequest_PromRangeQuery struct {
|
|||||||
PromRangeQuery *PromRangeQuery `protobuf:"bytes,3,opt,name=prom_range_query,json=promRangeQuery,proto3,oneof"`
|
PromRangeQuery *PromRangeQuery `protobuf:"bytes,3,opt,name=prom_range_query,json=promRangeQuery,proto3,oneof"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type QueryRequest_InsertIntoPlan struct {
|
||||||
|
InsertIntoPlan *InsertIntoPlan `protobuf:"bytes,4,opt,name=insert_into_plan,json=insertIntoPlan,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
func (*QueryRequest_Sql) isQueryRequest_Query() {}
|
func (*QueryRequest_Sql) isQueryRequest_Query() {}
|
||||||
|
|
||||||
func (*QueryRequest_LogicalPlan) isQueryRequest_Query() {}
|
func (*QueryRequest_LogicalPlan) isQueryRequest_Query() {}
|
||||||
|
|
||||||
func (*QueryRequest_PromRangeQuery) isQueryRequest_Query() {}
|
func (*QueryRequest_PromRangeQuery) isQueryRequest_Query() {}
|
||||||
|
|
||||||
|
func (*QueryRequest_InsertIntoPlan) isQueryRequest_Query() {}
|
||||||
|
|
||||||
|
// A temporary solution for executing insert into table SELECT .. with logical plan
|
||||||
|
// since substrait to logical plan doesn't support dml yet.
|
||||||
|
type InsertIntoPlan struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
TableName *TableName `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
|
||||||
|
LogicalPlan []byte `protobuf:"bytes,2,opt,name=logical_plan,json=logicalPlan,proto3" json:"logical_plan,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InsertIntoPlan) Reset() {
|
||||||
|
*x = InsertIntoPlan{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_greptime_v1_database_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InsertIntoPlan) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InsertIntoPlan) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *InsertIntoPlan) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_greptime_v1_database_proto_msgTypes[3]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use InsertIntoPlan.ProtoReflect.Descriptor instead.
|
||||||
|
func (*InsertIntoPlan) Descriptor() ([]byte, []int) {
|
||||||
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InsertIntoPlan) GetTableName() *TableName {
|
||||||
|
if x != nil {
|
||||||
|
return x.TableName
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InsertIntoPlan) GetLogicalPlan() []byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.LogicalPlan
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type InsertRequests struct {
|
type InsertRequests struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@@ -360,7 +431,7 @@ type InsertRequests struct {
|
|||||||
func (x *InsertRequests) Reset() {
|
func (x *InsertRequests) Reset() {
|
||||||
*x = InsertRequests{}
|
*x = InsertRequests{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[3]
|
mi := &file_greptime_v1_database_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -373,7 +444,7 @@ func (x *InsertRequests) String() string {
|
|||||||
func (*InsertRequests) ProtoMessage() {}
|
func (*InsertRequests) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *InsertRequests) ProtoReflect() protoreflect.Message {
|
func (x *InsertRequests) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[3]
|
mi := &file_greptime_v1_database_proto_msgTypes[4]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -386,7 +457,7 @@ func (x *InsertRequests) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use InsertRequests.ProtoReflect.Descriptor instead.
|
// Deprecated: Use InsertRequests.ProtoReflect.Descriptor instead.
|
||||||
func (*InsertRequests) Descriptor() ([]byte, []int) {
|
func (*InsertRequests) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{3}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *InsertRequests) GetInserts() []*InsertRequest {
|
func (x *InsertRequests) GetInserts() []*InsertRequest {
|
||||||
@@ -413,7 +484,7 @@ type InsertRequest struct {
|
|||||||
func (x *InsertRequest) Reset() {
|
func (x *InsertRequest) Reset() {
|
||||||
*x = InsertRequest{}
|
*x = InsertRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[4]
|
mi := &file_greptime_v1_database_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -426,7 +497,7 @@ func (x *InsertRequest) String() string {
|
|||||||
func (*InsertRequest) ProtoMessage() {}
|
func (*InsertRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *InsertRequest) ProtoReflect() protoreflect.Message {
|
func (x *InsertRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[4]
|
mi := &file_greptime_v1_database_proto_msgTypes[5]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -439,7 +510,7 @@ func (x *InsertRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use InsertRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use InsertRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*InsertRequest) Descriptor() ([]byte, []int) {
|
func (*InsertRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{4}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *InsertRequest) GetTableName() string {
|
func (x *InsertRequest) GetTableName() string {
|
||||||
@@ -474,7 +545,7 @@ type DeleteRequests struct {
|
|||||||
func (x *DeleteRequests) Reset() {
|
func (x *DeleteRequests) Reset() {
|
||||||
*x = DeleteRequests{}
|
*x = DeleteRequests{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[5]
|
mi := &file_greptime_v1_database_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -487,7 +558,7 @@ func (x *DeleteRequests) String() string {
|
|||||||
func (*DeleteRequests) ProtoMessage() {}
|
func (*DeleteRequests) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DeleteRequests) ProtoReflect() protoreflect.Message {
|
func (x *DeleteRequests) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[5]
|
mi := &file_greptime_v1_database_proto_msgTypes[6]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -500,7 +571,7 @@ func (x *DeleteRequests) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DeleteRequests.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DeleteRequests.ProtoReflect.Descriptor instead.
|
||||||
func (*DeleteRequests) Descriptor() ([]byte, []int) {
|
func (*DeleteRequests) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{5}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DeleteRequests) GetDeletes() []*DeleteRequest {
|
func (x *DeleteRequests) GetDeletes() []*DeleteRequest {
|
||||||
@@ -527,7 +598,7 @@ type DeleteRequest struct {
|
|||||||
func (x *DeleteRequest) Reset() {
|
func (x *DeleteRequest) Reset() {
|
||||||
*x = DeleteRequest{}
|
*x = DeleteRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[6]
|
mi := &file_greptime_v1_database_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -540,7 +611,7 @@ func (x *DeleteRequest) String() string {
|
|||||||
func (*DeleteRequest) ProtoMessage() {}
|
func (*DeleteRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
|
func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[6]
|
mi := &file_greptime_v1_database_proto_msgTypes[7]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -553,7 +624,7 @@ func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{6}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DeleteRequest) GetTableName() string {
|
func (x *DeleteRequest) GetTableName() string {
|
||||||
@@ -588,7 +659,7 @@ type RowInsertRequests struct {
|
|||||||
func (x *RowInsertRequests) Reset() {
|
func (x *RowInsertRequests) Reset() {
|
||||||
*x = RowInsertRequests{}
|
*x = RowInsertRequests{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[7]
|
mi := &file_greptime_v1_database_proto_msgTypes[8]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -601,7 +672,7 @@ func (x *RowInsertRequests) String() string {
|
|||||||
func (*RowInsertRequests) ProtoMessage() {}
|
func (*RowInsertRequests) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *RowInsertRequests) ProtoReflect() protoreflect.Message {
|
func (x *RowInsertRequests) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[7]
|
mi := &file_greptime_v1_database_proto_msgTypes[8]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -614,7 +685,7 @@ func (x *RowInsertRequests) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use RowInsertRequests.ProtoReflect.Descriptor instead.
|
// Deprecated: Use RowInsertRequests.ProtoReflect.Descriptor instead.
|
||||||
func (*RowInsertRequests) Descriptor() ([]byte, []int) {
|
func (*RowInsertRequests) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{7}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RowInsertRequests) GetInserts() []*RowInsertRequest {
|
func (x *RowInsertRequests) GetInserts() []*RowInsertRequest {
|
||||||
@@ -637,7 +708,7 @@ type RowInsertRequest struct {
|
|||||||
func (x *RowInsertRequest) Reset() {
|
func (x *RowInsertRequest) Reset() {
|
||||||
*x = RowInsertRequest{}
|
*x = RowInsertRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[8]
|
mi := &file_greptime_v1_database_proto_msgTypes[9]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -650,7 +721,7 @@ func (x *RowInsertRequest) String() string {
|
|||||||
func (*RowInsertRequest) ProtoMessage() {}
|
func (*RowInsertRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *RowInsertRequest) ProtoReflect() protoreflect.Message {
|
func (x *RowInsertRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[8]
|
mi := &file_greptime_v1_database_proto_msgTypes[9]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -663,7 +734,7 @@ func (x *RowInsertRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use RowInsertRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use RowInsertRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*RowInsertRequest) Descriptor() ([]byte, []int) {
|
func (*RowInsertRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{8}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{9}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RowInsertRequest) GetTableName() string {
|
func (x *RowInsertRequest) GetTableName() string {
|
||||||
@@ -691,7 +762,7 @@ type RowDeleteRequests struct {
|
|||||||
func (x *RowDeleteRequests) Reset() {
|
func (x *RowDeleteRequests) Reset() {
|
||||||
*x = RowDeleteRequests{}
|
*x = RowDeleteRequests{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[9]
|
mi := &file_greptime_v1_database_proto_msgTypes[10]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -704,7 +775,7 @@ func (x *RowDeleteRequests) String() string {
|
|||||||
func (*RowDeleteRequests) ProtoMessage() {}
|
func (*RowDeleteRequests) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *RowDeleteRequests) ProtoReflect() protoreflect.Message {
|
func (x *RowDeleteRequests) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[9]
|
mi := &file_greptime_v1_database_proto_msgTypes[10]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -717,7 +788,7 @@ func (x *RowDeleteRequests) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use RowDeleteRequests.ProtoReflect.Descriptor instead.
|
// Deprecated: Use RowDeleteRequests.ProtoReflect.Descriptor instead.
|
||||||
func (*RowDeleteRequests) Descriptor() ([]byte, []int) {
|
func (*RowDeleteRequests) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{9}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{10}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RowDeleteRequests) GetDeletes() []*RowDeleteRequest {
|
func (x *RowDeleteRequests) GetDeletes() []*RowDeleteRequest {
|
||||||
@@ -742,7 +813,7 @@ type RowDeleteRequest struct {
|
|||||||
func (x *RowDeleteRequest) Reset() {
|
func (x *RowDeleteRequest) Reset() {
|
||||||
*x = RowDeleteRequest{}
|
*x = RowDeleteRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[10]
|
mi := &file_greptime_v1_database_proto_msgTypes[11]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -755,7 +826,7 @@ func (x *RowDeleteRequest) String() string {
|
|||||||
func (*RowDeleteRequest) ProtoMessage() {}
|
func (*RowDeleteRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *RowDeleteRequest) ProtoReflect() protoreflect.Message {
|
func (x *RowDeleteRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[10]
|
mi := &file_greptime_v1_database_proto_msgTypes[11]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -768,7 +839,7 @@ func (x *RowDeleteRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use RowDeleteRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use RowDeleteRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*RowDeleteRequest) Descriptor() ([]byte, []int) {
|
func (*RowDeleteRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{10}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{11}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RowDeleteRequest) GetTableName() string {
|
func (x *RowDeleteRequest) GetTableName() string {
|
||||||
@@ -834,7 +905,7 @@ var file_greptime_v1_database_proto_rawDesc = []byte{
|
|||||||
0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66,
|
0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66,
|
||||||
0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x66,
|
0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x66,
|
||||||
0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65,
|
0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65,
|
||||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x99, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79,
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe2, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79,
|
||||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x01,
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x01,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, 0x23, 0x0a, 0x0c, 0x6c,
|
0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, 0x23, 0x0a, 0x0c, 0x6c,
|
||||||
0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
@@ -843,70 +914,81 @@ var file_greptime_v1_database_proto_rawDesc = []byte{
|
|||||||
0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65,
|
0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65,
|
||||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x52, 0x61, 0x6e,
|
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x52, 0x61, 0x6e,
|
||||||
0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x6d, 0x52,
|
0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x6d, 0x52,
|
||||||
0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65,
|
0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x47, 0x0a, 0x10, 0x69, 0x6e, 0x73,
|
||||||
0x72, 0x79, 0x22, 0x46, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75,
|
0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x6f, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x04, 0x20,
|
||||||
0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x18,
|
0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||||
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x49, 0x6e, 0x74, 0x6f, 0x50, 0x6c, 0x61, 0x6e,
|
||||||
0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
0x48, 0x00, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x49, 0x6e, 0x74, 0x6f, 0x50, 0x6c,
|
||||||
0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x22, 0x7a, 0x0a, 0x0d, 0x49, 0x6e,
|
0x61, 0x6e, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x6a, 0x0a, 0x0e, 0x49,
|
||||||
0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
|
0x6e, 0x73, 0x65, 0x72, 0x74, 0x49, 0x6e, 0x74, 0x6f, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x35, 0x0a,
|
||||||
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x63, 0x6f,
|
0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||||
0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72,
|
0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65,
|
||||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
|
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f,
|
||||||
0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77,
|
0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6c, 0x6f, 0x67, 0x69,
|
||||||
0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x6f,
|
0x63, 0x61, 0x6c, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x46, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x65, 0x72,
|
||||||
0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x46, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
|
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x69, 0x6e, 0x73,
|
||||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65,
|
0x65, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65,
|
||||||
0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52,
|
||||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65,
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x22,
|
||||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x22, 0x81,
|
0x7a, 0x0a, 0x0d, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||||
0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
||||||
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
|
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
|
||||||
0x34, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03,
|
0x2d, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
|
||||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
|
||||||
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x43, 0x6f,
|
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b,
|
||||||
0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75,
|
0x0a, 0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||||
0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75,
|
0x0d, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x46, 0x0a, 0x0e, 0x44,
|
||||||
0x6e, 0x74, 0x22, 0x4c, 0x0a, 0x11, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52,
|
0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a,
|
||||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72,
|
0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a,
|
||||||
0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c,
|
||||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74,
|
0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65,
|
||||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73,
|
0x74, 0x65, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65,
|
||||||
0x22, 0x58, 0x0a, 0x10, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71,
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e,
|
||||||
0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61,
|
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65,
|
||||||
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e,
|
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75,
|
||||||
0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
||||||
0x0b, 0x32, 0x11, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a,
|
||||||
0x52, 0x6f, 0x77, 0x73, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x22, 0x4c, 0x0a, 0x11, 0x52, 0x6f,
|
0x6b, 0x65, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f,
|
||||||
0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12,
|
0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72,
|
||||||
0x37, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x4c, 0x0a, 0x11, 0x52, 0x6f, 0x77, 0x49, 0x6e,
|
||||||
0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52,
|
0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x07,
|
||||||
0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52,
|
0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
|
||||||
0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x22, 0x58, 0x0a, 0x10, 0x52, 0x6f, 0x77, 0x44,
|
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x49,
|
||||||
0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
|
0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x69, 0x6e,
|
||||||
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
0x73, 0x65, 0x72, 0x74, 0x73, 0x22, 0x58, 0x0a, 0x10, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65,
|
||||||
0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x72,
|
0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62,
|
||||||
0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74,
|
||||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x04, 0x72, 0x6f,
|
0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73,
|
||||||
0x77, 0x73, 0x32, 0xaa, 0x01, 0x0a, 0x10, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x44,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c,
|
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x22,
|
||||||
0x65, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
0x4c, 0x0a, 0x11, 0x52, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||||
0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
0x65, 0x73, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18,
|
||||||
0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72,
|
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f,
|
0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71,
|
||||||
0x0a, 0x0e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73,
|
0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x22, 0x58, 0x0a,
|
||||||
0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,
|
0x10, 0x52, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d,
|
0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
||||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65,
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65,
|
||||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x42,
|
0x12, 0x25, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11,
|
||||||
0x51, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77,
|
||||||
0x31, 0x42, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5a, 0x35, 0x67, 0x69, 0x74,
|
0x73, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x32, 0xaa, 0x01, 0x0a, 0x10, 0x47, 0x72, 0x65, 0x70,
|
||||||
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
0x74, 0x69, 0x6d, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06,
|
||||||
0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72,
|
0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f,
|
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71,
|
||||||
0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||||
|
0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||||
|
0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71,
|
||||||
|
0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||||
|
0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||||
|
0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||||
|
0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||||
|
0x73, 0x65, 0x28, 0x01, 0x42, 0x51, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||||
|
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
|
||||||
|
0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65,
|
||||||
|
0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||||
|
0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70,
|
||||||
|
0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -921,55 +1003,59 @@ func file_greptime_v1_database_proto_rawDescGZIP() []byte {
|
|||||||
return file_greptime_v1_database_proto_rawDescData
|
return file_greptime_v1_database_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_greptime_v1_database_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
var file_greptime_v1_database_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
||||||
var file_greptime_v1_database_proto_goTypes = []interface{}{
|
var file_greptime_v1_database_proto_goTypes = []interface{}{
|
||||||
(*GreptimeRequest)(nil), // 0: greptime.v1.GreptimeRequest
|
(*GreptimeRequest)(nil), // 0: greptime.v1.GreptimeRequest
|
||||||
(*GreptimeResponse)(nil), // 1: greptime.v1.GreptimeResponse
|
(*GreptimeResponse)(nil), // 1: greptime.v1.GreptimeResponse
|
||||||
(*QueryRequest)(nil), // 2: greptime.v1.QueryRequest
|
(*QueryRequest)(nil), // 2: greptime.v1.QueryRequest
|
||||||
(*InsertRequests)(nil), // 3: greptime.v1.InsertRequests
|
(*InsertIntoPlan)(nil), // 3: greptime.v1.InsertIntoPlan
|
||||||
(*InsertRequest)(nil), // 4: greptime.v1.InsertRequest
|
(*InsertRequests)(nil), // 4: greptime.v1.InsertRequests
|
||||||
(*DeleteRequests)(nil), // 5: greptime.v1.DeleteRequests
|
(*InsertRequest)(nil), // 5: greptime.v1.InsertRequest
|
||||||
(*DeleteRequest)(nil), // 6: greptime.v1.DeleteRequest
|
(*DeleteRequests)(nil), // 6: greptime.v1.DeleteRequests
|
||||||
(*RowInsertRequests)(nil), // 7: greptime.v1.RowInsertRequests
|
(*DeleteRequest)(nil), // 7: greptime.v1.DeleteRequest
|
||||||
(*RowInsertRequest)(nil), // 8: greptime.v1.RowInsertRequest
|
(*RowInsertRequests)(nil), // 8: greptime.v1.RowInsertRequests
|
||||||
(*RowDeleteRequests)(nil), // 9: greptime.v1.RowDeleteRequests
|
(*RowInsertRequest)(nil), // 9: greptime.v1.RowInsertRequest
|
||||||
(*RowDeleteRequest)(nil), // 10: greptime.v1.RowDeleteRequest
|
(*RowDeleteRequests)(nil), // 10: greptime.v1.RowDeleteRequests
|
||||||
(*RequestHeader)(nil), // 11: greptime.v1.RequestHeader
|
(*RowDeleteRequest)(nil), // 11: greptime.v1.RowDeleteRequest
|
||||||
(*DdlRequest)(nil), // 12: greptime.v1.DdlRequest
|
(*RequestHeader)(nil), // 12: greptime.v1.RequestHeader
|
||||||
(*ResponseHeader)(nil), // 13: greptime.v1.ResponseHeader
|
(*DdlRequest)(nil), // 13: greptime.v1.DdlRequest
|
||||||
(*AffectedRows)(nil), // 14: greptime.v1.AffectedRows
|
(*ResponseHeader)(nil), // 14: greptime.v1.ResponseHeader
|
||||||
(*PromRangeQuery)(nil), // 15: greptime.v1.PromRangeQuery
|
(*AffectedRows)(nil), // 15: greptime.v1.AffectedRows
|
||||||
(*Column)(nil), // 16: greptime.v1.Column
|
(*PromRangeQuery)(nil), // 16: greptime.v1.PromRangeQuery
|
||||||
(*Rows)(nil), // 17: greptime.v1.Rows
|
(*TableName)(nil), // 17: greptime.v1.TableName
|
||||||
|
(*Column)(nil), // 18: greptime.v1.Column
|
||||||
|
(*Rows)(nil), // 19: greptime.v1.Rows
|
||||||
}
|
}
|
||||||
var file_greptime_v1_database_proto_depIdxs = []int32{
|
var file_greptime_v1_database_proto_depIdxs = []int32{
|
||||||
11, // 0: greptime.v1.GreptimeRequest.header:type_name -> greptime.v1.RequestHeader
|
12, // 0: greptime.v1.GreptimeRequest.header:type_name -> greptime.v1.RequestHeader
|
||||||
3, // 1: greptime.v1.GreptimeRequest.inserts:type_name -> greptime.v1.InsertRequests
|
4, // 1: greptime.v1.GreptimeRequest.inserts:type_name -> greptime.v1.InsertRequests
|
||||||
2, // 2: greptime.v1.GreptimeRequest.query:type_name -> greptime.v1.QueryRequest
|
2, // 2: greptime.v1.GreptimeRequest.query:type_name -> greptime.v1.QueryRequest
|
||||||
12, // 3: greptime.v1.GreptimeRequest.ddl:type_name -> greptime.v1.DdlRequest
|
13, // 3: greptime.v1.GreptimeRequest.ddl:type_name -> greptime.v1.DdlRequest
|
||||||
5, // 4: greptime.v1.GreptimeRequest.deletes:type_name -> greptime.v1.DeleteRequests
|
6, // 4: greptime.v1.GreptimeRequest.deletes:type_name -> greptime.v1.DeleteRequests
|
||||||
7, // 5: greptime.v1.GreptimeRequest.row_inserts:type_name -> greptime.v1.RowInsertRequests
|
8, // 5: greptime.v1.GreptimeRequest.row_inserts:type_name -> greptime.v1.RowInsertRequests
|
||||||
9, // 6: greptime.v1.GreptimeRequest.row_deletes:type_name -> greptime.v1.RowDeleteRequests
|
10, // 6: greptime.v1.GreptimeRequest.row_deletes:type_name -> greptime.v1.RowDeleteRequests
|
||||||
13, // 7: greptime.v1.GreptimeResponse.header:type_name -> greptime.v1.ResponseHeader
|
14, // 7: greptime.v1.GreptimeResponse.header:type_name -> greptime.v1.ResponseHeader
|
||||||
14, // 8: greptime.v1.GreptimeResponse.affected_rows:type_name -> greptime.v1.AffectedRows
|
15, // 8: greptime.v1.GreptimeResponse.affected_rows:type_name -> greptime.v1.AffectedRows
|
||||||
15, // 9: greptime.v1.QueryRequest.prom_range_query:type_name -> greptime.v1.PromRangeQuery
|
16, // 9: greptime.v1.QueryRequest.prom_range_query:type_name -> greptime.v1.PromRangeQuery
|
||||||
4, // 10: greptime.v1.InsertRequests.inserts:type_name -> greptime.v1.InsertRequest
|
3, // 10: greptime.v1.QueryRequest.insert_into_plan:type_name -> greptime.v1.InsertIntoPlan
|
||||||
16, // 11: greptime.v1.InsertRequest.columns:type_name -> greptime.v1.Column
|
17, // 11: greptime.v1.InsertIntoPlan.table_name:type_name -> greptime.v1.TableName
|
||||||
6, // 12: greptime.v1.DeleteRequests.deletes:type_name -> greptime.v1.DeleteRequest
|
5, // 12: greptime.v1.InsertRequests.inserts:type_name -> greptime.v1.InsertRequest
|
||||||
16, // 13: greptime.v1.DeleteRequest.key_columns:type_name -> greptime.v1.Column
|
18, // 13: greptime.v1.InsertRequest.columns:type_name -> greptime.v1.Column
|
||||||
8, // 14: greptime.v1.RowInsertRequests.inserts:type_name -> greptime.v1.RowInsertRequest
|
7, // 14: greptime.v1.DeleteRequests.deletes:type_name -> greptime.v1.DeleteRequest
|
||||||
17, // 15: greptime.v1.RowInsertRequest.rows:type_name -> greptime.v1.Rows
|
18, // 15: greptime.v1.DeleteRequest.key_columns:type_name -> greptime.v1.Column
|
||||||
10, // 16: greptime.v1.RowDeleteRequests.deletes:type_name -> greptime.v1.RowDeleteRequest
|
9, // 16: greptime.v1.RowInsertRequests.inserts:type_name -> greptime.v1.RowInsertRequest
|
||||||
17, // 17: greptime.v1.RowDeleteRequest.rows:type_name -> greptime.v1.Rows
|
19, // 17: greptime.v1.RowInsertRequest.rows:type_name -> greptime.v1.Rows
|
||||||
0, // 18: greptime.v1.GreptimeDatabase.Handle:input_type -> greptime.v1.GreptimeRequest
|
11, // 18: greptime.v1.RowDeleteRequests.deletes:type_name -> greptime.v1.RowDeleteRequest
|
||||||
0, // 19: greptime.v1.GreptimeDatabase.HandleRequests:input_type -> greptime.v1.GreptimeRequest
|
19, // 19: greptime.v1.RowDeleteRequest.rows:type_name -> greptime.v1.Rows
|
||||||
1, // 20: greptime.v1.GreptimeDatabase.Handle:output_type -> greptime.v1.GreptimeResponse
|
0, // 20: greptime.v1.GreptimeDatabase.Handle:input_type -> greptime.v1.GreptimeRequest
|
||||||
1, // 21: greptime.v1.GreptimeDatabase.HandleRequests:output_type -> greptime.v1.GreptimeResponse
|
0, // 21: greptime.v1.GreptimeDatabase.HandleRequests:input_type -> greptime.v1.GreptimeRequest
|
||||||
20, // [20:22] is the sub-list for method output_type
|
1, // 22: greptime.v1.GreptimeDatabase.Handle:output_type -> greptime.v1.GreptimeResponse
|
||||||
18, // [18:20] is the sub-list for method input_type
|
1, // 23: greptime.v1.GreptimeDatabase.HandleRequests:output_type -> greptime.v1.GreptimeResponse
|
||||||
18, // [18:18] is the sub-list for extension type_name
|
22, // [22:24] is the sub-list for method output_type
|
||||||
18, // [18:18] is the sub-list for extension extendee
|
20, // [20:22] is the sub-list for method input_type
|
||||||
0, // [0:18] is the sub-list for field type_name
|
20, // [20:20] is the sub-list for extension type_name
|
||||||
|
20, // [20:20] is the sub-list for extension extendee
|
||||||
|
0, // [0:20] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_greptime_v1_database_proto_init() }
|
func init() { file_greptime_v1_database_proto_init() }
|
||||||
@@ -1020,7 +1106,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*InsertRequests); i {
|
switch v := v.(*InsertIntoPlan); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1032,7 +1118,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*InsertRequest); i {
|
switch v := v.(*InsertRequests); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1044,7 +1130,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DeleteRequests); i {
|
switch v := v.(*InsertRequest); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1056,7 +1142,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DeleteRequest); i {
|
switch v := v.(*DeleteRequests); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1068,7 +1154,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*RowInsertRequests); i {
|
switch v := v.(*DeleteRequest); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1080,7 +1166,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*RowInsertRequest); i {
|
switch v := v.(*RowInsertRequests); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1092,7 +1178,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*RowDeleteRequests); i {
|
switch v := v.(*RowInsertRequest); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1104,6 +1190,18 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*RowDeleteRequests); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_greptime_v1_database_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*RowDeleteRequest); i {
|
switch v := v.(*RowDeleteRequest); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@@ -1131,6 +1229,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
(*QueryRequest_Sql)(nil),
|
(*QueryRequest_Sql)(nil),
|
||||||
(*QueryRequest_LogicalPlan)(nil),
|
(*QueryRequest_LogicalPlan)(nil),
|
||||||
(*QueryRequest_PromRangeQuery)(nil),
|
(*QueryRequest_PromRangeQuery)(nil),
|
||||||
|
(*QueryRequest_InsertIntoPlan)(nil),
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
@@ -1138,7 +1237,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_greptime_v1_database_proto_rawDesc,
|
RawDescriptor: file_greptime_v1_database_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 11,
|
NumMessages: 12,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -54,9 +54,17 @@ message QueryRequest {
|
|||||||
string sql = 1;
|
string sql = 1;
|
||||||
bytes logical_plan = 2;
|
bytes logical_plan = 2;
|
||||||
PromRangeQuery prom_range_query = 3;
|
PromRangeQuery prom_range_query = 3;
|
||||||
|
InsertIntoPlan insert_into_plan = 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A temporary solution for executing insert into table SELECT .. with logical plan
|
||||||
|
// since substrait to logical plan doesn't support dml yet.
|
||||||
|
message InsertIntoPlan {
|
||||||
|
TableName table_name = 1;
|
||||||
|
bytes logical_plan = 2;
|
||||||
|
}
|
||||||
|
|
||||||
message InsertRequests { repeated InsertRequest inserts = 1; }
|
message InsertRequests { repeated InsertRequest inserts = 1; }
|
||||||
|
|
||||||
message InsertRequest {
|
message InsertRequest {
|
||||||
|
|||||||
Reference in New Issue
Block a user