feat: add QueryContext to DdlTaskRequest and FlowRequestHeader (#166)

This commit is contained in:
Weny Xu
2024-05-09 15:27:41 +09:00
committed by GitHub
parent 5c28f1d7ca
commit e152fcbf17
18 changed files with 5846 additions and 3186 deletions
+524 -75
View File
@@ -22,6 +22,33 @@ namespace _pbi = _pb::internal;
namespace greptime {
namespace v1 {
PROTOBUF_CONSTEXPR QueryContext_ExtensionsEntry_DoNotUse::QueryContext_ExtensionsEntry_DoNotUse(
::_pbi::ConstantInitialized) {}
struct QueryContext_ExtensionsEntry_DoNotUseDefaultTypeInternal {
PROTOBUF_CONSTEXPR QueryContext_ExtensionsEntry_DoNotUseDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~QueryContext_ExtensionsEntry_DoNotUseDefaultTypeInternal() {}
union {
QueryContext_ExtensionsEntry_DoNotUse _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QueryContext_ExtensionsEntry_DoNotUseDefaultTypeInternal _QueryContext_ExtensionsEntry_DoNotUse_default_instance_;
PROTOBUF_CONSTEXPR QueryContext::QueryContext(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.extensions_)*/{::_pbi::ConstantInitialized()}
, /*decltype(_impl_.current_catalog_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.current_schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.timezone_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct QueryContextDefaultTypeInternal {
PROTOBUF_CONSTEXPR QueryContextDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~QueryContextDefaultTypeInternal() {}
union {
QueryContext _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QueryContextDefaultTypeInternal _QueryContext_default_instance_;
PROTOBUF_CONSTEXPR RequestHeader_TracingContextEntry_DoNotUse::RequestHeader_TracingContextEntry_DoNotUse(
::_pbi::ConstantInitialized) {}
struct RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal {
@@ -233,11 +260,31 @@ struct DecimalTypeExtensionDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_;
} // namespace v1
} // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[15];
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[17];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr;
const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse, value_),
0,
1,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext, _impl_.current_catalog_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext, _impl_.current_schema_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext, _impl_.timezone_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext, _impl_.extensions_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
@@ -365,24 +412,28 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _impl_.scale_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, 8, -1, sizeof(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse)},
{ 10, -1, -1, sizeof(::greptime::v1::RequestHeader)},
{ 22, -1, -1, sizeof(::greptime::v1::ResponseHeader)},
{ 29, -1, -1, sizeof(::greptime::v1::Status)},
{ 37, -1, -1, sizeof(::greptime::v1::AuthHeader)},
{ 46, -1, -1, sizeof(::greptime::v1::Basic)},
{ 54, -1, -1, sizeof(::greptime::v1::Token)},
{ 61, -1, -1, sizeof(::greptime::v1::TableName)},
{ 70, -1, -1, sizeof(::greptime::v1::AffectedRows)},
{ 77, -1, -1, sizeof(::greptime::v1::Metrics)},
{ 84, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
{ 92, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
{ 101, -1, -1, sizeof(::greptime::v1::Decimal128)},
{ 109, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
{ 117, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
{ 0, 8, -1, sizeof(::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse)},
{ 10, -1, -1, sizeof(::greptime::v1::QueryContext)},
{ 20, 28, -1, sizeof(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse)},
{ 30, -1, -1, sizeof(::greptime::v1::RequestHeader)},
{ 42, -1, -1, sizeof(::greptime::v1::ResponseHeader)},
{ 49, -1, -1, sizeof(::greptime::v1::Status)},
{ 57, -1, -1, sizeof(::greptime::v1::AuthHeader)},
{ 66, -1, -1, sizeof(::greptime::v1::Basic)},
{ 74, -1, -1, sizeof(::greptime::v1::Token)},
{ 81, -1, -1, sizeof(::greptime::v1::TableName)},
{ 90, -1, -1, sizeof(::greptime::v1::AffectedRows)},
{ 97, -1, -1, sizeof(::greptime::v1::Metrics)},
{ 104, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
{ 112, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
{ 121, -1, -1, sizeof(::greptime::v1::Decimal128)},
{ 129, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
{ 137, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::_QueryContext_ExtensionsEntry_DoNotUse_default_instance_._instance,
&::greptime::v1::_QueryContext_default_instance_._instance,
&::greptime::v1::_RequestHeader_TracingContextEntry_DoNotUse_default_instance_._instance,
&::greptime::v1::_RequestHeader_default_instance_._instance,
&::greptime::v1::_ResponseHeader_default_instance_._instance,
@@ -402,54 +453,59 @@ static const ::_pb::Message* const file_default_instances[] = {
const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\030greptime/v1/common.proto\022\013greptime.v1\""
"\202\002\n\rRequestHeader\022\017\n\007catalog\030\001 \001(\t\022\016\n\006sc"
"hema\030\002 \001(\t\022.\n\rauthorization\030\003 \001(\0132\027.grep"
"time.v1.AuthHeader\022\016\n\006dbname\030\004 \001(\t\022G\n\017tr"
"acing_context\030\005 \003(\0132..greptime.v1.Reques"
"tHeader.TracingContextEntry\022\020\n\010timezone\030"
"\006 \001(\t\0325\n\023TracingContextEntry\022\013\n\003key\030\001 \001("
"\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\016ResponseHeader\022#"
"\n\006status\030\001 \001(\0132\023.greptime.v1.Status\".\n\006S"
"tatus\022\023\n\013status_code\030\001 \001(\r\022\017\n\007err_msg\030\002 "
"\001(\t\"e\n\nAuthHeader\022#\n\005basic\030\001 \001(\0132\022.grept"
"ime.v1.BasicH\000\022#\n\005token\030\002 \001(\0132\022.greptime"
".v1.TokenH\000B\r\n\013auth_scheme\"+\n\005Basic\022\020\n\010u"
"sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005Token"
"\022\r\n\005token\030\001 \001(\t\"J\n\tTableName\022\024\n\014catalog_"
"name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable"
"_name\030\003 \001(\t\"\035\n\014AffectedRows\022\r\n\005value\030\001 \001"
"(\r\"\032\n\007Metrics\022\017\n\007metrics\030\001 \001(\014\"i\n\016Flight"
"Metadata\0220\n\raffected_rows\030\001 \001(\0132\031.grepti"
"me.v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132\024.gr"
"eptime.v1.Metrics\"I\n\024IntervalMonthDayNan"
"o\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanos"
"econds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n"
"\n\002lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtension\0229\n"
"\014decimal_type\030\001 \001(\0132!.greptime.v1.Decima"
"lTypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalT"
"ypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale"
"\030\002 \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD"
"\020\001\022\r\n\tTIMESTAMP\020\002*\326\003\n\016ColumnDataType\022\013\n\007"
"BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020"
"\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006U"
"INT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOA"
"T64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022"
"\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025T"
"IMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICR"
"OSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013T"
"IME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TI"
"ME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n"
"\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_T"
"IME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDE"
"CIMAL128\020\036BO\n\016io.greptime.v1B\006CommonZ5gi"
"thub.com/GreptimeTeam/greptime-proto/go/"
"greptime/v1b\006proto3"
"\303\001\n\014QueryContext\022\027\n\017current_catalog\030\001 \001("
"\t\022\026\n\016current_schema\030\002 \001(\t\022\020\n\010timezone\030\004 "
"\001(\t\022=\n\nextensions\030\005 \003(\0132).greptime.v1.Qu"
"eryContext.ExtensionsEntry\0321\n\017Extensions"
"Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\202\002"
"\n\rRequestHeader\022\017\n\007catalog\030\001 \001(\t\022\016\n\006sche"
"ma\030\002 \001(\t\022.\n\rauthorization\030\003 \001(\0132\027.grepti"
"me.v1.AuthHeader\022\016\n\006dbname\030\004 \001(\t\022G\n\017trac"
"ing_context\030\005 \003(\0132..greptime.v1.RequestH"
"eader.TracingContextEntry\022\020\n\010timezone\030\006 "
"\001(\t\0325\n\023TracingContextEntry\022\013\n\003key\030\001 \001(\t\022"
"\r\n\005value\030\002 \001(\t:\0028\001\"5\n\016ResponseHeader\022#\n\006"
"status\030\001 \001(\0132\023.greptime.v1.Status\".\n\006Sta"
"tus\022\023\n\013status_code\030\001 \001(\r\022\017\n\007err_msg\030\002 \001("
"\t\"e\n\nAuthHeader\022#\n\005basic\030\001 \001(\0132\022.greptim"
"e.v1.BasicH\000\022#\n\005token\030\002 \001(\0132\022.greptime.v"
"1.TokenH\000B\r\n\013auth_scheme\"+\n\005Basic\022\020\n\010use"
"rname\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005Token\022\r"
"\n\005token\030\001 \001(\t\"J\n\tTableName\022\024\n\014catalog_na"
"me\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_n"
"ame\030\003 \001(\t\"\035\n\014AffectedRows\022\r\n\005value\030\001 \001(\r"
"\"\032\n\007Metrics\022\017\n\007metrics\030\001 \001(\014\"i\n\016FlightMe"
"tadata\0220\n\raffected_rows\030\001 \001(\0132\031.greptime"
".v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132\024.grep"
"time.v1.Metrics\"I\n\024IntervalMonthDayNano\022"
"\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanosec"
"onds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n\n\002"
"lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtension\0229\n\014d"
"ecimal_type\030\001 \001(\0132!.greptime.v1.DecimalT"
"ypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalTyp"
"eExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002"
" \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001"
"\022\r\n\tTIMESTAMP\020\002*\326\003\n\016ColumnDataType\022\013\n\007BO"
"OLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022"
"\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UIN"
"T32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT6"
"4\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n"
"\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIM"
"ESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROS"
"ECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIM"
"E_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME"
"_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023I"
"NTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIM"
"E\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECI"
"MAL128\020\036BO\n\016io.greptime.v1B\006CommonZ5gith"
"ub.com/GreptimeTeam/greptime-proto/go/gr"
"eptime/v1b\006proto3"
;
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = {
false, false, 1699, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
false, false, 1897, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
"greptime/v1/common.proto",
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 15,
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 17,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fcommon_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto,
file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto,
@@ -517,6 +573,391 @@ bool ColumnDataType_IsValid(int value) {
}
// ===================================================================
QueryContext_ExtensionsEntry_DoNotUse::QueryContext_ExtensionsEntry_DoNotUse() {}
QueryContext_ExtensionsEntry_DoNotUse::QueryContext_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void QueryContext_ExtensionsEntry_DoNotUse::MergeFrom(const QueryContext_ExtensionsEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata QueryContext_ExtensionsEntry_DoNotUse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[0]);
}
// ===================================================================
class QueryContext::_Internal {
public:
};
QueryContext::QueryContext(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
if (arena != nullptr && !is_message_owned) {
arena->OwnCustomDestructor(this, &QueryContext::ArenaDtor);
}
// @@protoc_insertion_point(arena_constructor:greptime.v1.QueryContext)
}
QueryContext::QueryContext(const QueryContext& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
QueryContext* const _this = this; (void)_this;
new (&_impl_) Impl_{
/*decltype(_impl_.extensions_)*/{}
, decltype(_impl_.current_catalog_){}
, decltype(_impl_.current_schema_){}
, decltype(_impl_.timezone_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.extensions_.MergeFrom(from._impl_.extensions_);
_impl_.current_catalog_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.current_catalog_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_current_catalog().empty()) {
_this->_impl_.current_catalog_.Set(from._internal_current_catalog(),
_this->GetArenaForAllocation());
}
_impl_.current_schema_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.current_schema_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_current_schema().empty()) {
_this->_impl_.current_schema_.Set(from._internal_current_schema(),
_this->GetArenaForAllocation());
}
_impl_.timezone_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.timezone_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_timezone().empty()) {
_this->_impl_.timezone_.Set(from._internal_timezone(),
_this->GetArenaForAllocation());
}
// @@protoc_insertion_point(copy_constructor:greptime.v1.QueryContext)
}
inline void QueryContext::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
/*decltype(_impl_.extensions_)*/{::_pbi::ArenaInitialized(), arena}
, decltype(_impl_.current_catalog_){}
, decltype(_impl_.current_schema_){}
, decltype(_impl_.timezone_){}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.current_catalog_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.current_catalog_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.current_schema_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.current_schema_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.timezone_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.timezone_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
QueryContext::~QueryContext() {
// @@protoc_insertion_point(destructor:greptime.v1.QueryContext)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
ArenaDtor(this);
return;
}
SharedDtor();
}
inline void QueryContext::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.extensions_.Destruct();
_impl_.extensions_.~MapField();
_impl_.current_catalog_.Destroy();
_impl_.current_schema_.Destroy();
_impl_.timezone_.Destroy();
}
void QueryContext::ArenaDtor(void* object) {
QueryContext* _this = reinterpret_cast< QueryContext* >(object);
_this->_impl_.extensions_.Destruct();
}
void QueryContext::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void QueryContext::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.QueryContext)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.extensions_.Clear();
_impl_.current_catalog_.ClearToEmpty();
_impl_.current_schema_.ClearToEmpty();
_impl_.timezone_.ClearToEmpty();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* QueryContext::_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) {
// string current_catalog = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_current_catalog();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.QueryContext.current_catalog"));
} else
goto handle_unusual;
continue;
// string current_schema = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_current_schema();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.QueryContext.current_schema"));
} else
goto handle_unusual;
continue;
// string timezone = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
auto str = _internal_mutable_timezone();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.QueryContext.timezone"));
} else
goto handle_unusual;
continue;
// map<string, string> extensions = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&_impl_.extensions_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(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* QueryContext::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.QueryContext)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// string current_catalog = 1;
if (!this->_internal_current_catalog().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_current_catalog().data(), static_cast<int>(this->_internal_current_catalog().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.QueryContext.current_catalog");
target = stream->WriteStringMaybeAliased(
1, this->_internal_current_catalog(), target);
}
// string current_schema = 2;
if (!this->_internal_current_schema().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_current_schema().data(), static_cast<int>(this->_internal_current_schema().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.QueryContext.current_schema");
target = stream->WriteStringMaybeAliased(
2, this->_internal_current_schema(), target);
}
// string timezone = 4;
if (!this->_internal_timezone().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_timezone().data(), static_cast<int>(this->_internal_timezone().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.QueryContext.timezone");
target = stream->WriteStringMaybeAliased(
4, this->_internal_timezone(), target);
}
// map<string, string> extensions = 5;
if (!this->_internal_extensions().empty()) {
using MapType = ::_pb::Map<std::string, std::string>;
using WireHelper = QueryContext_ExtensionsEntry_DoNotUse::Funcs;
const auto& map_field = this->_internal_extensions();
auto check_utf8 = [](const MapType::value_type& entry) {
(void)entry;
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
entry.first.data(), static_cast<int>(entry.first.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.QueryContext.ExtensionsEntry.key");
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
entry.second.data(), static_cast<int>(entry.second.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.QueryContext.ExtensionsEntry.value");
};
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
check_utf8(entry);
}
} else {
for (const auto& entry : map_field) {
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
check_utf8(entry);
}
}
}
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.QueryContext)
return target;
}
size_t QueryContext::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.QueryContext)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// map<string, string> extensions = 5;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_extensions_size());
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
it = this->_internal_extensions().begin();
it != this->_internal_extensions().end(); ++it) {
total_size += QueryContext_ExtensionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// string current_catalog = 1;
if (!this->_internal_current_catalog().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_current_catalog());
}
// string current_schema = 2;
if (!this->_internal_current_schema().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_current_schema());
}
// string timezone = 4;
if (!this->_internal_timezone().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_timezone());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData QueryContext::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
QueryContext::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*QueryContext::GetClassData() const { return &_class_data_; }
void QueryContext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<QueryContext*>(&to_msg);
auto& from = static_cast<const QueryContext&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.QueryContext)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_impl_.extensions_.MergeFrom(from._impl_.extensions_);
if (!from._internal_current_catalog().empty()) {
_this->_internal_set_current_catalog(from._internal_current_catalog());
}
if (!from._internal_current_schema().empty()) {
_this->_internal_set_current_schema(from._internal_current_schema());
}
if (!from._internal_timezone().empty()) {
_this->_internal_set_timezone(from._internal_timezone());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void QueryContext::CopyFrom(const QueryContext& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.QueryContext)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool QueryContext::IsInitialized() const {
return true;
}
void QueryContext::InternalSwap(QueryContext* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.extensions_.InternalSwap(&other->_impl_.extensions_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.current_catalog_, lhs_arena,
&other->_impl_.current_catalog_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.current_schema_, lhs_arena,
&other->_impl_.current_schema_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.timezone_, lhs_arena,
&other->_impl_.timezone_, rhs_arena
);
}
::PROTOBUF_NAMESPACE_ID::Metadata QueryContext::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[1]);
}
// ===================================================================
RequestHeader_TracingContextEntry_DoNotUse::RequestHeader_TracingContextEntry_DoNotUse() {}
@@ -528,7 +969,7 @@ void RequestHeader_TracingContextEntry_DoNotUse::MergeFrom(const RequestHeader_T
::PROTOBUF_NAMESPACE_ID::Metadata RequestHeader_TracingContextEntry_DoNotUse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[0]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[2]);
}
// ===================================================================
@@ -991,7 +1432,7 @@ void RequestHeader::InternalSwap(RequestHeader* other) {
::PROTOBUF_NAMESPACE_ID::Metadata RequestHeader::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[1]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[3]);
}
// ===================================================================
@@ -1184,7 +1625,7 @@ void ResponseHeader::InternalSwap(ResponseHeader* other) {
::PROTOBUF_NAMESPACE_ID::Metadata ResponseHeader::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[2]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[4]);
}
// ===================================================================
@@ -1414,7 +1855,7 @@ void Status::InternalSwap(Status* other) {
::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[3]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[5]);
}
// ===================================================================
@@ -1719,7 +2160,7 @@ void AuthHeader::InternalSwap(AuthHeader* other) {
::PROTOBUF_NAMESPACE_ID::Metadata AuthHeader::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[4]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[6]);
}
// ===================================================================
@@ -1972,7 +2413,7 @@ void Basic::InternalSwap(Basic* other) {
::PROTOBUF_NAMESPACE_ID::Metadata Basic::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[5]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[7]);
}
// ===================================================================
@@ -2175,7 +2616,7 @@ void Token::InternalSwap(Token* other) {
::PROTOBUF_NAMESPACE_ID::Metadata Token::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[6]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[8]);
}
// ===================================================================
@@ -2478,7 +2919,7 @@ void TableName::InternalSwap(TableName* other) {
::PROTOBUF_NAMESPACE_ID::Metadata TableName::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[7]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[9]);
}
// ===================================================================
@@ -2656,7 +3097,7 @@ void AffectedRows::InternalSwap(AffectedRows* other) {
::PROTOBUF_NAMESPACE_ID::Metadata AffectedRows::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[8]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[10]);
}
// ===================================================================
@@ -2854,7 +3295,7 @@ void Metrics::InternalSwap(Metrics* other) {
::PROTOBUF_NAMESPACE_ID::Metadata Metrics::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[9]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[11]);
}
// ===================================================================
@@ -3093,7 +3534,7 @@ void FlightMetadata::InternalSwap(FlightMetadata* other) {
::PROTOBUF_NAMESPACE_ID::Metadata FlightMetadata::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[10]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[12]);
}
// ===================================================================
@@ -3328,7 +3769,7 @@ void IntervalMonthDayNano::InternalSwap(IntervalMonthDayNano* other) {
::PROTOBUF_NAMESPACE_ID::Metadata IntervalMonthDayNano::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[11]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[13]);
}
// ===================================================================
@@ -3539,7 +3980,7 @@ void Decimal128::InternalSwap(Decimal128* other) {
::PROTOBUF_NAMESPACE_ID::Metadata Decimal128::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[12]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[14]);
}
// ===================================================================
@@ -3786,7 +4227,7 @@ void ColumnDataTypeExtension::InternalSwap(ColumnDataTypeExtension* other) {
::PROTOBUF_NAMESPACE_ID::Metadata ColumnDataTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[13]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[15]);
}
// ===================================================================
@@ -3997,13 +4438,21 @@ void DecimalTypeExtension::InternalSwap(DecimalTypeExtension* other) {
::PROTOBUF_NAMESPACE_ID::Metadata DecimalTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[14]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[16]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace v1
} // namespace greptime
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse*
Arena::CreateMaybeMessage< ::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::QueryContext*
Arena::CreateMaybeMessage< ::greptime::v1::QueryContext >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::QueryContext >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse*
Arena::CreateMaybeMessage< ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse >(arena);
+450 -14
View File
@@ -77,6 +77,12 @@ extern IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_ins
class Metrics;
struct MetricsDefaultTypeInternal;
extern MetricsDefaultTypeInternal _Metrics_default_instance_;
class QueryContext;
struct QueryContextDefaultTypeInternal;
extern QueryContextDefaultTypeInternal _QueryContext_default_instance_;
class QueryContext_ExtensionsEntry_DoNotUse;
struct QueryContext_ExtensionsEntry_DoNotUseDefaultTypeInternal;
extern QueryContext_ExtensionsEntry_DoNotUseDefaultTypeInternal _QueryContext_ExtensionsEntry_DoNotUse_default_instance_;
class RequestHeader;
struct RequestHeaderDefaultTypeInternal;
extern RequestHeaderDefaultTypeInternal _RequestHeader_default_instance_;
@@ -107,6 +113,8 @@ template<> ::greptime::v1::DecimalTypeExtension* Arena::CreateMaybeMessage<::gre
template<> ::greptime::v1::FlightMetadata* Arena::CreateMaybeMessage<::greptime::v1::FlightMetadata>(Arena*);
template<> ::greptime::v1::IntervalMonthDayNano* Arena::CreateMaybeMessage<::greptime::v1::IntervalMonthDayNano>(Arena*);
template<> ::greptime::v1::Metrics* Arena::CreateMaybeMessage<::greptime::v1::Metrics>(Arena*);
template<> ::greptime::v1::QueryContext* Arena::CreateMaybeMessage<::greptime::v1::QueryContext>(Arena*);
template<> ::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader>(Arena*);
template<> ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::ResponseHeader>(Arena*);
@@ -195,6 +203,245 @@ inline bool ColumnDataType_Parse(
}
// ===================================================================
class QueryContext_ExtensionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<QueryContext_ExtensionsEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> {
public:
typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<QueryContext_ExtensionsEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> SuperType;
QueryContext_ExtensionsEntry_DoNotUse();
explicit PROTOBUF_CONSTEXPR QueryContext_ExtensionsEntry_DoNotUse(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
explicit QueryContext_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void MergeFrom(const QueryContext_ExtensionsEntry_DoNotUse& other);
static const QueryContext_ExtensionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const QueryContext_ExtensionsEntry_DoNotUse*>(&_QueryContext_ExtensionsEntry_DoNotUse_default_instance_); }
static bool ValidateKey(std::string* s) {
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.QueryContext.ExtensionsEntry.key");
}
static bool ValidateValue(std::string* s) {
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.QueryContext.ExtensionsEntry.value");
}
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------
class QueryContext final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.QueryContext) */ {
public:
inline QueryContext() : QueryContext(nullptr) {}
~QueryContext() override;
explicit PROTOBUF_CONSTEXPR QueryContext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
QueryContext(const QueryContext& from);
QueryContext(QueryContext&& from) noexcept
: QueryContext() {
*this = ::std::move(from);
}
inline QueryContext& operator=(const QueryContext& from) {
CopyFrom(from);
return *this;
}
inline QueryContext& operator=(QueryContext&& 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 QueryContext& default_instance() {
return *internal_default_instance();
}
static inline const QueryContext* internal_default_instance() {
return reinterpret_cast<const QueryContext*>(
&_QueryContext_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(QueryContext& a, QueryContext& b) {
a.Swap(&b);
}
inline void Swap(QueryContext* 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(QueryContext* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
QueryContext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<QueryContext>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const QueryContext& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const QueryContext& from) {
QueryContext::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(QueryContext* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.QueryContext";
}
protected:
explicit QueryContext(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
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 {
kExtensionsFieldNumber = 5,
kCurrentCatalogFieldNumber = 1,
kCurrentSchemaFieldNumber = 2,
kTimezoneFieldNumber = 4,
};
// map<string, string> extensions = 5;
int extensions_size() const;
private:
int _internal_extensions_size() const;
public:
void clear_extensions();
private:
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
_internal_extensions() const;
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
_internal_mutable_extensions();
public:
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
extensions() const;
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
mutable_extensions();
// string current_catalog = 1;
void clear_current_catalog();
const std::string& current_catalog() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_current_catalog(ArgT0&& arg0, ArgT... args);
std::string* mutable_current_catalog();
PROTOBUF_NODISCARD std::string* release_current_catalog();
void set_allocated_current_catalog(std::string* current_catalog);
private:
const std::string& _internal_current_catalog() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_current_catalog(const std::string& value);
std::string* _internal_mutable_current_catalog();
public:
// string current_schema = 2;
void clear_current_schema();
const std::string& current_schema() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_current_schema(ArgT0&& arg0, ArgT... args);
std::string* mutable_current_schema();
PROTOBUF_NODISCARD std::string* release_current_schema();
void set_allocated_current_schema(std::string* current_schema);
private:
const std::string& _internal_current_schema() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_current_schema(const std::string& value);
std::string* _internal_mutable_current_schema();
public:
// string timezone = 4;
void clear_timezone();
const std::string& timezone() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_timezone(ArgT0&& arg0, ArgT... args);
std::string* mutable_timezone();
PROTOBUF_NODISCARD std::string* release_timezone();
void set_allocated_timezone(std::string* timezone);
private:
const std::string& _internal_timezone() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_timezone(const std::string& value);
std::string* _internal_mutable_timezone();
public:
// @@protoc_insertion_point(class_scope:greptime.v1.QueryContext)
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::MapField<
QueryContext_ExtensionsEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> extensions_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr current_catalog_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr current_schema_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr timezone_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------
class RequestHeader_TracingContextEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<RequestHeader_TracingContextEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
@@ -271,7 +518,7 @@ class RequestHeader final :
&_RequestHeader_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
3;
friend void swap(RequestHeader& a, RequestHeader& b) {
a.Swap(&b);
@@ -518,7 +765,7 @@ class ResponseHeader final :
&_ResponseHeader_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
4;
friend void swap(ResponseHeader& a, ResponseHeader& b) {
a.Swap(&b);
@@ -675,7 +922,7 @@ class Status final :
&_Status_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
5;
friend void swap(Status& a, Status& b) {
a.Swap(&b);
@@ -845,7 +1092,7 @@ class AuthHeader final :
&_AuthHeader_default_instance_);
}
static constexpr int kIndexInFileMessages =
4;
6;
friend void swap(AuthHeader& a, AuthHeader& b) {
a.Swap(&b);
@@ -1035,7 +1282,7 @@ class Basic final :
&_Basic_default_instance_);
}
static constexpr int kIndexInFileMessages =
5;
7;
friend void swap(Basic& a, Basic& b) {
a.Swap(&b);
@@ -1204,7 +1451,7 @@ class Token final :
&_Token_default_instance_);
}
static constexpr int kIndexInFileMessages =
6;
8;
friend void swap(Token& a, Token& b) {
a.Swap(&b);
@@ -1357,7 +1604,7 @@ class TableName final :
&_TableName_default_instance_);
}
static constexpr int kIndexInFileMessages =
7;
9;
friend void swap(TableName& a, TableName& b) {
a.Swap(&b);
@@ -1542,7 +1789,7 @@ class AffectedRows final :
&_AffectedRows_default_instance_);
}
static constexpr int kIndexInFileMessages =
8;
10;
friend void swap(AffectedRows& a, AffectedRows& b) {
a.Swap(&b);
@@ -1690,7 +1937,7 @@ class Metrics final :
&_Metrics_default_instance_);
}
static constexpr int kIndexInFileMessages =
9;
11;
friend void swap(Metrics& a, Metrics& b) {
a.Swap(&b);
@@ -1843,7 +2090,7 @@ class FlightMetadata final :
&_FlightMetadata_default_instance_);
}
static constexpr int kIndexInFileMessages =
10;
12;
friend void swap(FlightMetadata& a, FlightMetadata& b) {
a.Swap(&b);
@@ -2020,7 +2267,7 @@ class IntervalMonthDayNano final :
&_IntervalMonthDayNano_default_instance_);
}
static constexpr int kIndexInFileMessages =
11;
13;
friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) {
a.Swap(&b);
@@ -2190,7 +2437,7 @@ class Decimal128 final :
&_Decimal128_default_instance_);
}
static constexpr int kIndexInFileMessages =
12;
14;
friend void swap(Decimal128& a, Decimal128& b) {
a.Swap(&b);
@@ -2354,7 +2601,7 @@ class ColumnDataTypeExtension final :
&_ColumnDataTypeExtension_default_instance_);
}
static constexpr int kIndexInFileMessages =
13;
15;
friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) {
a.Swap(&b);
@@ -2523,7 +2770,7 @@ class DecimalTypeExtension final :
&_DecimalTypeExtension_default_instance_);
}
static constexpr int kIndexInFileMessages =
14;
16;
friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) {
a.Swap(&b);
@@ -2643,6 +2890,191 @@ class DecimalTypeExtension final :
#endif // __GNUC__
// -------------------------------------------------------------------
// QueryContext
// string current_catalog = 1;
inline void QueryContext::clear_current_catalog() {
_impl_.current_catalog_.ClearToEmpty();
}
inline const std::string& QueryContext::current_catalog() const {
// @@protoc_insertion_point(field_get:greptime.v1.QueryContext.current_catalog)
return _internal_current_catalog();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void QueryContext::set_current_catalog(ArgT0&& arg0, ArgT... args) {
_impl_.current_catalog_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.QueryContext.current_catalog)
}
inline std::string* QueryContext::mutable_current_catalog() {
std::string* _s = _internal_mutable_current_catalog();
// @@protoc_insertion_point(field_mutable:greptime.v1.QueryContext.current_catalog)
return _s;
}
inline const std::string& QueryContext::_internal_current_catalog() const {
return _impl_.current_catalog_.Get();
}
inline void QueryContext::_internal_set_current_catalog(const std::string& value) {
_impl_.current_catalog_.Set(value, GetArenaForAllocation());
}
inline std::string* QueryContext::_internal_mutable_current_catalog() {
return _impl_.current_catalog_.Mutable(GetArenaForAllocation());
}
inline std::string* QueryContext::release_current_catalog() {
// @@protoc_insertion_point(field_release:greptime.v1.QueryContext.current_catalog)
return _impl_.current_catalog_.Release();
}
inline void QueryContext::set_allocated_current_catalog(std::string* current_catalog) {
if (current_catalog != nullptr) {
} else {
}
_impl_.current_catalog_.SetAllocated(current_catalog, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.current_catalog_.IsDefault()) {
_impl_.current_catalog_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.QueryContext.current_catalog)
}
// string current_schema = 2;
inline void QueryContext::clear_current_schema() {
_impl_.current_schema_.ClearToEmpty();
}
inline const std::string& QueryContext::current_schema() const {
// @@protoc_insertion_point(field_get:greptime.v1.QueryContext.current_schema)
return _internal_current_schema();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void QueryContext::set_current_schema(ArgT0&& arg0, ArgT... args) {
_impl_.current_schema_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.QueryContext.current_schema)
}
inline std::string* QueryContext::mutable_current_schema() {
std::string* _s = _internal_mutable_current_schema();
// @@protoc_insertion_point(field_mutable:greptime.v1.QueryContext.current_schema)
return _s;
}
inline const std::string& QueryContext::_internal_current_schema() const {
return _impl_.current_schema_.Get();
}
inline void QueryContext::_internal_set_current_schema(const std::string& value) {
_impl_.current_schema_.Set(value, GetArenaForAllocation());
}
inline std::string* QueryContext::_internal_mutable_current_schema() {
return _impl_.current_schema_.Mutable(GetArenaForAllocation());
}
inline std::string* QueryContext::release_current_schema() {
// @@protoc_insertion_point(field_release:greptime.v1.QueryContext.current_schema)
return _impl_.current_schema_.Release();
}
inline void QueryContext::set_allocated_current_schema(std::string* current_schema) {
if (current_schema != nullptr) {
} else {
}
_impl_.current_schema_.SetAllocated(current_schema, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.current_schema_.IsDefault()) {
_impl_.current_schema_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.QueryContext.current_schema)
}
// string timezone = 4;
inline void QueryContext::clear_timezone() {
_impl_.timezone_.ClearToEmpty();
}
inline const std::string& QueryContext::timezone() const {
// @@protoc_insertion_point(field_get:greptime.v1.QueryContext.timezone)
return _internal_timezone();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void QueryContext::set_timezone(ArgT0&& arg0, ArgT... args) {
_impl_.timezone_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.QueryContext.timezone)
}
inline std::string* QueryContext::mutable_timezone() {
std::string* _s = _internal_mutable_timezone();
// @@protoc_insertion_point(field_mutable:greptime.v1.QueryContext.timezone)
return _s;
}
inline const std::string& QueryContext::_internal_timezone() const {
return _impl_.timezone_.Get();
}
inline void QueryContext::_internal_set_timezone(const std::string& value) {
_impl_.timezone_.Set(value, GetArenaForAllocation());
}
inline std::string* QueryContext::_internal_mutable_timezone() {
return _impl_.timezone_.Mutable(GetArenaForAllocation());
}
inline std::string* QueryContext::release_timezone() {
// @@protoc_insertion_point(field_release:greptime.v1.QueryContext.timezone)
return _impl_.timezone_.Release();
}
inline void QueryContext::set_allocated_timezone(std::string* timezone) {
if (timezone != nullptr) {
} else {
}
_impl_.timezone_.SetAllocated(timezone, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.timezone_.IsDefault()) {
_impl_.timezone_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.QueryContext.timezone)
}
// map<string, string> extensions = 5;
inline int QueryContext::_internal_extensions_size() const {
return _impl_.extensions_.size();
}
inline int QueryContext::extensions_size() const {
return _internal_extensions_size();
}
inline void QueryContext::clear_extensions() {
_impl_.extensions_.Clear();
}
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
QueryContext::_internal_extensions() const {
return _impl_.extensions_.GetMap();
}
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
QueryContext::extensions() const {
// @@protoc_insertion_point(field_map:greptime.v1.QueryContext.extensions)
return _internal_extensions();
}
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
QueryContext::_internal_mutable_extensions() {
return _impl_.extensions_.MutableMap();
}
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
QueryContext::mutable_extensions() {
// @@protoc_insertion_point(field_mutable_map:greptime.v1.QueryContext.extensions)
return _internal_mutable_extensions();
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// RequestHeader
// string catalog = 1;
@@ -4137,6 +4569,10 @@ inline void DecimalTypeExtension::set_scale(int32_t value) {
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
+442 -55
View File
@@ -23,6 +23,31 @@ namespace _pbi = _pb::internal;
namespace greptime {
namespace v1 {
namespace flow {
PROTOBUF_CONSTEXPR FlowRequestHeader_TracingContextEntry_DoNotUse::FlowRequestHeader_TracingContextEntry_DoNotUse(
::_pbi::ConstantInitialized) {}
struct FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal {
PROTOBUF_CONSTEXPR FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal() {}
union {
FlowRequestHeader_TracingContextEntry_DoNotUse _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal _FlowRequestHeader_TracingContextEntry_DoNotUse_default_instance_;
PROTOBUF_CONSTEXPR FlowRequestHeader::FlowRequestHeader(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.tracing_context_)*/{::_pbi::ConstantInitialized()}
, /*decltype(_impl_.query_context_)*/nullptr
, /*decltype(_impl_._cached_size_)*/{}} {}
struct FlowRequestHeaderDefaultTypeInternal {
PROTOBUF_CONSTEXPR FlowRequestHeaderDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~FlowRequestHeaderDefaultTypeInternal() {}
union {
FlowRequestHeader _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowRequestHeaderDefaultTypeInternal _FlowRequestHeader_default_instance_;
PROTOBUF_CONSTEXPR InsertRequests::InsertRequests(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.requests_)*/{}
@@ -52,7 +77,8 @@ struct InsertRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InsertRequestDefaultTypeInternal _InsertRequest_default_instance_;
PROTOBUF_CONSTEXPR FlowRequest::FlowRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.body_)*/{}
/*decltype(_impl_.header_)*/nullptr
, /*decltype(_impl_.body_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}} {}
struct FlowRequestDefaultTypeInternal {
@@ -151,11 +177,29 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
} // namespace flow
} // namespace v1
} // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[9];
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[11];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fflow_2fserver_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fflow_2fserver_2eproto = nullptr;
const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse, value_),
0,
1,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader, _impl_.tracing_context_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader, _impl_.query_context_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::InsertRequests, _internal_metadata_),
~0u, // no _extensions_
@@ -177,6 +221,7 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequest, _impl_._oneof_case_[0]),
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequest, _impl_.header_),
::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag,
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequest, _impl_.body_),
@@ -240,18 +285,22 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::TaskId, _impl_.id_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::greptime::v1::flow::InsertRequests)},
{ 7, -1, -1, sizeof(::greptime::v1::flow::InsertRequest)},
{ 15, -1, -1, sizeof(::greptime::v1::flow::FlowRequest)},
{ 24, 32, -1, sizeof(::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse)},
{ 34, -1, -1, sizeof(::greptime::v1::flow::FlowResponse)},
{ 44, 52, -1, sizeof(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse)},
{ 54, -1, -1, sizeof(::greptime::v1::flow::CreateRequest)},
{ 68, -1, -1, sizeof(::greptime::v1::flow::DropRequest)},
{ 75, -1, -1, sizeof(::greptime::v1::flow::TaskId)},
{ 0, 8, -1, sizeof(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse)},
{ 10, -1, -1, sizeof(::greptime::v1::flow::FlowRequestHeader)},
{ 18, -1, -1, sizeof(::greptime::v1::flow::InsertRequests)},
{ 25, -1, -1, sizeof(::greptime::v1::flow::InsertRequest)},
{ 33, -1, -1, sizeof(::greptime::v1::flow::FlowRequest)},
{ 43, 51, -1, sizeof(::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse)},
{ 53, -1, -1, sizeof(::greptime::v1::flow::FlowResponse)},
{ 63, 71, -1, sizeof(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse)},
{ 73, -1, -1, sizeof(::greptime::v1::flow::CreateRequest)},
{ 87, -1, -1, sizeof(::greptime::v1::flow::DropRequest)},
{ 94, -1, -1, sizeof(::greptime::v1::flow::TaskId)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::flow::_FlowRequestHeader_TracingContextEntry_DoNotUse_default_instance_._instance,
&::greptime::v1::flow::_FlowRequestHeader_default_instance_._instance,
&::greptime::v1::flow::_InsertRequests_default_instance_._instance,
&::greptime::v1::flow::_InsertRequest_default_instance_._instance,
&::greptime::v1::flow::_FlowRequest_default_instance_._instance,
@@ -267,37 +316,44 @@ const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PRO
"\n\035greptime/v1/flow/server.proto\022\020greptim"
"e.v1.flow\032\030greptime/v1/common.proto\032\025gre"
"ptime/v1/ddl.proto\032\025greptime/v1/row.prot"
"o\"C\n\016InsertRequests\0221\n\010requests\030\001 \003(\0132\037."
"greptime.v1.flow.InsertRequest\"C\n\rInsert"
"Request\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\013"
"2\021.greptime.v1.Rows\"w\n\013FlowRequest\0221\n\006cr"
"eate\030\001 \001(\0132\037.greptime.v1.flow.CreateRequ"
"estH\000\022-\n\004drop\030\002 \001(\0132\035.greptime.v1.flow.D"
"ropRequestH\000B\006\n\004body\"\370\001\n\014FlowResponse\022+\n"
"\006header\030\001 \001(\0132\033.greptime.v1.ResponseHead"
"er\022\025\n\raffected_rows\030\002 \001(\004\022@\n\textension\030\003"
" \003(\0132-.greptime.v1.flow.FlowResponse.Ext"
"ensionEntry\0220\n\016affected_tasks\030\004 \003(\0132\030.gr"
"eptime.v1.flow.TaskId\0320\n\016ExtensionEntry\022"
"\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\350\002\n\rCrea"
"teRequest\022)\n\007flow_id\030\001 \001(\0132\030.greptime.v1"
".flow.TaskId\022.\n\020source_table_ids\030\002 \003(\0132\024"
".greptime.v1.TableId\022/\n\017sink_table_name\030"
"\003 \001(\0132\026.greptime.v1.TableName\022\034\n\024create_"
"if_not_exists\030\004 \001(\010\022\023\n\013expire_when\030\005 \001(\t"
"\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030\007 \001(\t\022F\n\014flow_o"
"ptions\030\010 \003(\01320.greptime.v1.flow.CreateRe"
"quest.FlowOptionsEntry\0322\n\020FlowOptionsEnt"
"ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\013Dr"
"opRequest\022)\n\007flow_id\030\001 \001(\0132\030.greptime.v1"
".flow.TaskId\"\024\n\006TaskId\022\n\n\002id\030\001 \001(\r2\264\001\n\004F"
"low\022S\n\022HandleCreateRemove\022\035.greptime.v1."
"flow.FlowRequest\032\036.greptime.v1.flow.Flow"
"Response\022W\n\023HandleMirrorRequest\022 .grepti"
"me.v1.flow.InsertRequests\032\036.greptime.v1."
"flow.FlowResponseBY\n\023io.greptime.v1.flow"
"B\006ServerZ:github.com/GreptimeTeam/grepti"
"me-proto/go/greptime/v1/flowb\006proto3"
"o\"\316\001\n\021FlowRequestHeader\022P\n\017tracing_conte"
"xt\030\001 \003(\01327.greptime.v1.flow.FlowRequestH"
"eader.TracingContextEntry\0220\n\rquery_conte"
"xt\030\002 \001(\0132\031.greptime.v1.QueryContext\0325\n\023T"
"racingContextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value"
"\030\002 \001(\t:\0028\001\"C\n\016InsertRequests\0221\n\010requests"
"\030\001 \003(\0132\037.greptime.v1.flow.InsertRequest\""
"C\n\rInsertRequest\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004r"
"ows\030\002 \001(\0132\021.greptime.v1.Rows\"\254\001\n\013FlowReq"
"uest\0223\n\006header\030@ \001(\0132#.greptime.v1.flow."
"FlowRequestHeader\0221\n\006create\030\001 \001(\0132\037.grep"
"time.v1.flow.CreateRequestH\000\022-\n\004drop\030\002 \001"
"(\0132\035.greptime.v1.flow.DropRequestH\000B\006\n\004b"
"ody\"\370\001\n\014FlowResponse\022+\n\006header\030\001 \001(\0132\033.g"
"reptime.v1.ResponseHeader\022\025\n\raffected_ro"
"ws\030\002 \001(\004\022@\n\textension\030\003 \003(\0132-.greptime.v"
"1.flow.FlowResponse.ExtensionEntry\0220\n\016af"
"fected_tasks\030\004 \003(\0132\030.greptime.v1.flow.Ta"
"skId\0320\n\016ExtensionEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
"alue\030\002 \001(\014:\0028\001\"\350\002\n\rCreateRequest\022)\n\007flow"
"_id\030\001 \001(\0132\030.greptime.v1.flow.TaskId\022.\n\020s"
"ource_table_ids\030\002 \003(\0132\024.greptime.v1.Tabl"
"eId\022/\n\017sink_table_name\030\003 \001(\0132\026.greptime."
"v1.TableName\022\034\n\024create_if_not_exists\030\004 \001"
"(\010\022\023\n\013expire_when\030\005 \001(\t\022\017\n\007comment\030\006 \001(\t"
"\022\013\n\003sql\030\007 \001(\t\022F\n\014flow_options\030\010 \003(\01320.gr"
"eptime.v1.flow.CreateRequest.FlowOptions"
"Entry\0322\n\020FlowOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r"
"\n\005value\030\002 \001(\t:\0028\001\"8\n\013DropRequest\022)\n\007flow"
"_id\030\001 \001(\0132\030.greptime.v1.flow.TaskId\"\024\n\006T"
"askId\022\n\n\002id\030\001 \001(\r2\264\001\n\004Flow\022S\n\022HandleCrea"
"teRemove\022\035.greptime.v1.flow.FlowRequest\032"
"\036.greptime.v1.flow.FlowResponse\022W\n\023Handl"
"eMirrorRequest\022 .greptime.v1.flow.Insert"
"Requests\032\036.greptime.v1.flow.FlowResponse"
"BY\n\023io.greptime.v1.flowB\006ServerZ:github."
"com/GreptimeTeam/greptime-proto/go/grept"
"ime/v1/flowb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps[3] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -306,9 +362,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflo
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto = {
false, false, 1356, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
false, false, 1619, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
"greptime/v1/flow/server.proto",
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps, 3, 9,
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps, 3, 11,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto, file_level_enum_descriptors_greptime_2fv1_2fflow_2fserver_2eproto,
file_level_service_descriptors_greptime_2fv1_2fflow_2fserver_2eproto,
@@ -325,6 +381,287 @@ namespace flow {
// ===================================================================
FlowRequestHeader_TracingContextEntry_DoNotUse::FlowRequestHeader_TracingContextEntry_DoNotUse() {}
FlowRequestHeader_TracingContextEntry_DoNotUse::FlowRequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void FlowRequestHeader_TracingContextEntry_DoNotUse::MergeFrom(const FlowRequestHeader_TracingContextEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata FlowRequestHeader_TracingContextEntry_DoNotUse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[0]);
}
// ===================================================================
class FlowRequestHeader::_Internal {
public:
static const ::greptime::v1::QueryContext& query_context(const FlowRequestHeader* msg);
};
const ::greptime::v1::QueryContext&
FlowRequestHeader::_Internal::query_context(const FlowRequestHeader* msg) {
return *msg->_impl_.query_context_;
}
void FlowRequestHeader::clear_query_context() {
if (GetArenaForAllocation() == nullptr && _impl_.query_context_ != nullptr) {
delete _impl_.query_context_;
}
_impl_.query_context_ = nullptr;
}
FlowRequestHeader::FlowRequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
if (arena != nullptr && !is_message_owned) {
arena->OwnCustomDestructor(this, &FlowRequestHeader::ArenaDtor);
}
// @@protoc_insertion_point(arena_constructor:greptime.v1.flow.FlowRequestHeader)
}
FlowRequestHeader::FlowRequestHeader(const FlowRequestHeader& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
FlowRequestHeader* const _this = this; (void)_this;
new (&_impl_) Impl_{
/*decltype(_impl_.tracing_context_)*/{}
, decltype(_impl_.query_context_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.tracing_context_.MergeFrom(from._impl_.tracing_context_);
if (from._internal_has_query_context()) {
_this->_impl_.query_context_ = new ::greptime::v1::QueryContext(*from._impl_.query_context_);
}
// @@protoc_insertion_point(copy_constructor:greptime.v1.flow.FlowRequestHeader)
}
inline void FlowRequestHeader::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
/*decltype(_impl_.tracing_context_)*/{::_pbi::ArenaInitialized(), arena}
, decltype(_impl_.query_context_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}
};
}
FlowRequestHeader::~FlowRequestHeader() {
// @@protoc_insertion_point(destructor:greptime.v1.flow.FlowRequestHeader)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
ArenaDtor(this);
return;
}
SharedDtor();
}
inline void FlowRequestHeader::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.tracing_context_.Destruct();
_impl_.tracing_context_.~MapField();
if (this != internal_default_instance()) delete _impl_.query_context_;
}
void FlowRequestHeader::ArenaDtor(void* object) {
FlowRequestHeader* _this = reinterpret_cast< FlowRequestHeader* >(object);
_this->_impl_.tracing_context_.Destruct();
}
void FlowRequestHeader::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void FlowRequestHeader::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.flow.FlowRequestHeader)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.tracing_context_.Clear();
if (GetArenaForAllocation() == nullptr && _impl_.query_context_ != nullptr) {
delete _impl_.query_context_;
}
_impl_.query_context_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* FlowRequestHeader::_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) {
// map<string, string> tracing_context = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&_impl_.tracing_context_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else
goto handle_unusual;
continue;
// .greptime.v1.QueryContext query_context = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_query_context(), ptr);
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* FlowRequestHeader::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.flow.FlowRequestHeader)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// map<string, string> tracing_context = 1;
if (!this->_internal_tracing_context().empty()) {
using MapType = ::_pb::Map<std::string, std::string>;
using WireHelper = FlowRequestHeader_TracingContextEntry_DoNotUse::Funcs;
const auto& map_field = this->_internal_tracing_context();
auto check_utf8 = [](const MapType::value_type& entry) {
(void)entry;
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
entry.first.data(), static_cast<int>(entry.first.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.flow.FlowRequestHeader.TracingContextEntry.key");
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
entry.second.data(), static_cast<int>(entry.second.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.flow.FlowRequestHeader.TracingContextEntry.value");
};
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream);
check_utf8(entry);
}
} else {
for (const auto& entry : map_field) {
target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream);
check_utf8(entry);
}
}
}
// .greptime.v1.QueryContext query_context = 2;
if (this->_internal_has_query_context()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(2, _Internal::query_context(this),
_Internal::query_context(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.flow.FlowRequestHeader)
return target;
}
size_t FlowRequestHeader::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.flow.FlowRequestHeader)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// map<string, string> tracing_context = 1;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_tracing_context_size());
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
it = this->_internal_tracing_context().begin();
it != this->_internal_tracing_context().end(); ++it) {
total_size += FlowRequestHeader_TracingContextEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// .greptime.v1.QueryContext query_context = 2;
if (this->_internal_has_query_context()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.query_context_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlowRequestHeader::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
FlowRequestHeader::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlowRequestHeader::GetClassData() const { return &_class_data_; }
void FlowRequestHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<FlowRequestHeader*>(&to_msg);
auto& from = static_cast<const FlowRequestHeader&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.flow.FlowRequestHeader)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_impl_.tracing_context_.MergeFrom(from._impl_.tracing_context_);
if (from._internal_has_query_context()) {
_this->_internal_mutable_query_context()->::greptime::v1::QueryContext::MergeFrom(
from._internal_query_context());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void FlowRequestHeader::CopyFrom(const FlowRequestHeader& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.flow.FlowRequestHeader)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FlowRequestHeader::IsInitialized() const {
return true;
}
void FlowRequestHeader::InternalSwap(FlowRequestHeader* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.tracing_context_.InternalSwap(&other->_impl_.tracing_context_);
swap(_impl_.query_context_, other->_impl_.query_context_);
}
::PROTOBUF_NAMESPACE_ID::Metadata FlowRequestHeader::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[1]);
}
// ===================================================================
class InsertRequests::_Internal {
public:
};
@@ -505,7 +842,7 @@ void InsertRequests::InternalSwap(InsertRequests* other) {
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequests::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[0]);
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[2]);
}
// ===================================================================
@@ -735,17 +1072,22 @@ void InsertRequest::InternalSwap(InsertRequest* other) {
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[1]);
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[3]);
}
// ===================================================================
class FlowRequest::_Internal {
public:
static const ::greptime::v1::flow::FlowRequestHeader& header(const FlowRequest* msg);
static const ::greptime::v1::flow::CreateRequest& create(const FlowRequest* msg);
static const ::greptime::v1::flow::DropRequest& drop(const FlowRequest* msg);
};
const ::greptime::v1::flow::FlowRequestHeader&
FlowRequest::_Internal::header(const FlowRequest* msg) {
return *msg->_impl_.header_;
}
const ::greptime::v1::flow::CreateRequest&
FlowRequest::_Internal::create(const FlowRequest* msg) {
return *msg->_impl_.body_.create_;
@@ -794,11 +1136,15 @@ FlowRequest::FlowRequest(const FlowRequest& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
FlowRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.body_){}
decltype(_impl_.header_){nullptr}
, decltype(_impl_.body_){}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
if (from._internal_has_header()) {
_this->_impl_.header_ = new ::greptime::v1::flow::FlowRequestHeader(*from._impl_.header_);
}
clear_has_body();
switch (from.body_case()) {
case kCreate: {
@@ -823,7 +1169,8 @@ inline void FlowRequest::SharedCtor(
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.body_){}
decltype(_impl_.header_){nullptr}
, decltype(_impl_.body_){}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}
};
@@ -841,6 +1188,7 @@ FlowRequest::~FlowRequest() {
inline void FlowRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.header_;
if (has_body()) {
clear_body();
}
@@ -879,6 +1227,10 @@ void FlowRequest::Clear() {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
delete _impl_.header_;
}
_impl_.header_ = nullptr;
clear_body();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -905,6 +1257,14 @@ const char* FlowRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c
} else
goto handle_unusual;
continue;
// .greptime.v1.flow.FlowRequestHeader header = 64;
case 64:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 2)) {
ptr = ctx->ParseMessage(_internal_mutable_header(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -948,6 +1308,13 @@ uint8_t* FlowRequest::_InternalSerialize(
_Internal::drop(this).GetCachedSize(), target, stream);
}
// .greptime.v1.flow.FlowRequestHeader header = 64;
if (this->_internal_has_header()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(64, _Internal::header(this),
_Internal::header(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -964,6 +1331,13 @@ size_t FlowRequest::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// .greptime.v1.flow.FlowRequestHeader header = 64;
if (this->_internal_has_header()) {
total_size += 2 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.header_);
}
switch (body_case()) {
// .greptime.v1.flow.CreateRequest create = 1;
case kCreate: {
@@ -1001,6 +1375,10 @@ void FlowRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_has_header()) {
_this->_internal_mutable_header()->::greptime::v1::flow::FlowRequestHeader::MergeFrom(
from._internal_header());
}
switch (from.body_case()) {
case kCreate: {
_this->_internal_mutable_create()->::greptime::v1::flow::CreateRequest::MergeFrom(
@@ -1033,6 +1411,7 @@ bool FlowRequest::IsInitialized() const {
void FlowRequest::InternalSwap(FlowRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.header_, other->_impl_.header_);
swap(_impl_.body_, other->_impl_.body_);
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}
@@ -1040,7 +1419,7 @@ void FlowRequest::InternalSwap(FlowRequest* other) {
::PROTOBUF_NAMESPACE_ID::Metadata FlowRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[2]);
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[4]);
}
// ===================================================================
@@ -1054,7 +1433,7 @@ void FlowResponse_ExtensionEntry_DoNotUse::MergeFrom(const FlowResponse_Extensio
::PROTOBUF_NAMESPACE_ID::Metadata FlowResponse_ExtensionEntry_DoNotUse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[3]);
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[5]);
}
// ===================================================================
@@ -1382,7 +1761,7 @@ void FlowResponse::InternalSwap(FlowResponse* other) {
::PROTOBUF_NAMESPACE_ID::Metadata FlowResponse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[4]);
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[6]);
}
// ===================================================================
@@ -1396,7 +1775,7 @@ void CreateRequest_FlowOptionsEntry_DoNotUse::MergeFrom(const CreateRequest_Flow
::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest_FlowOptionsEntry_DoNotUse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[5]);
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[7]);
}
// ===================================================================
@@ -1924,7 +2303,7 @@ void CreateRequest::InternalSwap(CreateRequest* other) {
::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[6]);
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[8]);
}
// ===================================================================
@@ -2117,7 +2496,7 @@ void DropRequest::InternalSwap(DropRequest* other) {
::PROTOBUF_NAMESPACE_ID::Metadata DropRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[7]);
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[9]);
}
// ===================================================================
@@ -2295,7 +2674,7 @@ void TaskId::InternalSwap(TaskId* other) {
::PROTOBUF_NAMESPACE_ID::Metadata TaskId::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[8]);
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[10]);
}
// @@protoc_insertion_point(namespace_scope)
@@ -2303,6 +2682,14 @@ void TaskId::InternalSwap(TaskId* other) {
} // namespace v1
} // namespace greptime
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse*
Arena::CreateMaybeMessage< ::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::flow::FlowRequestHeader*
Arena::CreateMaybeMessage< ::greptime::v1::flow::FlowRequestHeader >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::flow::FlowRequestHeader >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::flow::InsertRequests*
Arena::CreateMaybeMessage< ::greptime::v1::flow::InsertRequests >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::flow::InsertRequests >(arena);
+460 -7
View File
@@ -65,6 +65,12 @@ extern DropRequestDefaultTypeInternal _DropRequest_default_instance_;
class FlowRequest;
struct FlowRequestDefaultTypeInternal;
extern FlowRequestDefaultTypeInternal _FlowRequest_default_instance_;
class FlowRequestHeader;
struct FlowRequestHeaderDefaultTypeInternal;
extern FlowRequestHeaderDefaultTypeInternal _FlowRequestHeader_default_instance_;
class FlowRequestHeader_TracingContextEntry_DoNotUse;
struct FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal;
extern FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal _FlowRequestHeader_TracingContextEntry_DoNotUse_default_instance_;
class FlowResponse;
struct FlowResponseDefaultTypeInternal;
extern FlowResponseDefaultTypeInternal _FlowResponse_default_instance_;
@@ -88,6 +94,8 @@ template<> ::greptime::v1::flow::CreateRequest* Arena::CreateMaybeMessage<::grep
template<> ::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::flow::DropRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::DropRequest>(Arena*);
template<> ::greptime::v1::flow::FlowRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowRequest>(Arena*);
template<> ::greptime::v1::flow::FlowRequestHeader* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowRequestHeader>(Arena*);
template<> ::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::flow::FlowResponse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowResponse>(Arena*);
template<> ::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::flow::InsertRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::InsertRequest>(Arena*);
@@ -100,6 +108,217 @@ namespace flow {
// ===================================================================
class FlowRequestHeader_TracingContextEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FlowRequestHeader_TracingContextEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> {
public:
typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FlowRequestHeader_TracingContextEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> SuperType;
FlowRequestHeader_TracingContextEntry_DoNotUse();
explicit PROTOBUF_CONSTEXPR FlowRequestHeader_TracingContextEntry_DoNotUse(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
explicit FlowRequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void MergeFrom(const FlowRequestHeader_TracingContextEntry_DoNotUse& other);
static const FlowRequestHeader_TracingContextEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FlowRequestHeader_TracingContextEntry_DoNotUse*>(&_FlowRequestHeader_TracingContextEntry_DoNotUse_default_instance_); }
static bool ValidateKey(std::string* s) {
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.flow.FlowRequestHeader.TracingContextEntry.key");
}
static bool ValidateValue(std::string* s) {
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.flow.FlowRequestHeader.TracingContextEntry.value");
}
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
friend struct ::TableStruct_greptime_2fv1_2fflow_2fserver_2eproto;
};
// -------------------------------------------------------------------
class FlowRequestHeader final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.flow.FlowRequestHeader) */ {
public:
inline FlowRequestHeader() : FlowRequestHeader(nullptr) {}
~FlowRequestHeader() override;
explicit PROTOBUF_CONSTEXPR FlowRequestHeader(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
FlowRequestHeader(const FlowRequestHeader& from);
FlowRequestHeader(FlowRequestHeader&& from) noexcept
: FlowRequestHeader() {
*this = ::std::move(from);
}
inline FlowRequestHeader& operator=(const FlowRequestHeader& from) {
CopyFrom(from);
return *this;
}
inline FlowRequestHeader& operator=(FlowRequestHeader&& 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 FlowRequestHeader& default_instance() {
return *internal_default_instance();
}
static inline const FlowRequestHeader* internal_default_instance() {
return reinterpret_cast<const FlowRequestHeader*>(
&_FlowRequestHeader_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(FlowRequestHeader& a, FlowRequestHeader& b) {
a.Swap(&b);
}
inline void Swap(FlowRequestHeader* 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(FlowRequestHeader* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
FlowRequestHeader* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<FlowRequestHeader>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const FlowRequestHeader& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const FlowRequestHeader& from) {
FlowRequestHeader::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(FlowRequestHeader* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.flow.FlowRequestHeader";
}
protected:
explicit FlowRequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
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 {
kTracingContextFieldNumber = 1,
kQueryContextFieldNumber = 2,
};
// map<string, string> tracing_context = 1;
int tracing_context_size() const;
private:
int _internal_tracing_context_size() const;
public:
void clear_tracing_context();
private:
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
_internal_tracing_context() const;
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
_internal_mutable_tracing_context();
public:
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
tracing_context() const;
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
mutable_tracing_context();
// .greptime.v1.QueryContext query_context = 2;
bool has_query_context() const;
private:
bool _internal_has_query_context() const;
public:
void clear_query_context();
const ::greptime::v1::QueryContext& query_context() const;
PROTOBUF_NODISCARD ::greptime::v1::QueryContext* release_query_context();
::greptime::v1::QueryContext* mutable_query_context();
void set_allocated_query_context(::greptime::v1::QueryContext* query_context);
private:
const ::greptime::v1::QueryContext& _internal_query_context() const;
::greptime::v1::QueryContext* _internal_mutable_query_context();
public:
void unsafe_arena_set_allocated_query_context(
::greptime::v1::QueryContext* query_context);
::greptime::v1::QueryContext* unsafe_arena_release_query_context();
// @@protoc_insertion_point(class_scope:greptime.v1.flow.FlowRequestHeader)
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::MapField<
FlowRequestHeader_TracingContextEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> tracing_context_;
::greptime::v1::QueryContext* query_context_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fflow_2fserver_2eproto;
};
// -------------------------------------------------------------------
class InsertRequests final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.flow.InsertRequests) */ {
public:
@@ -148,7 +367,7 @@ class InsertRequests final :
&_InsertRequests_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
2;
friend void swap(InsertRequests& a, InsertRequests& b) {
a.Swap(&b);
@@ -305,7 +524,7 @@ class InsertRequest final :
&_InsertRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
3;
friend void swap(InsertRequest& a, InsertRequest& b) {
a.Swap(&b);
@@ -479,7 +698,7 @@ class FlowRequest final :
&_FlowRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
4;
friend void swap(FlowRequest& a, FlowRequest& b) {
a.Swap(&b);
@@ -552,9 +771,28 @@ class FlowRequest final :
// accessors -------------------------------------------------------
enum : int {
kHeaderFieldNumber = 64,
kCreateFieldNumber = 1,
kDropFieldNumber = 2,
};
// .greptime.v1.flow.FlowRequestHeader header = 64;
bool has_header() const;
private:
bool _internal_has_header() const;
public:
void clear_header();
const ::greptime::v1::flow::FlowRequestHeader& header() const;
PROTOBUF_NODISCARD ::greptime::v1::flow::FlowRequestHeader* release_header();
::greptime::v1::flow::FlowRequestHeader* mutable_header();
void set_allocated_header(::greptime::v1::flow::FlowRequestHeader* header);
private:
const ::greptime::v1::flow::FlowRequestHeader& _internal_header() const;
::greptime::v1::flow::FlowRequestHeader* _internal_mutable_header();
public:
void unsafe_arena_set_allocated_header(
::greptime::v1::flow::FlowRequestHeader* header);
::greptime::v1::flow::FlowRequestHeader* unsafe_arena_release_header();
// .greptime.v1.flow.CreateRequest create = 1;
bool has_create() const;
private:
@@ -606,6 +844,7 @@ class FlowRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::flow::FlowRequestHeader* header_;
union BodyUnion {
constexpr BodyUnion() : _constinit_{} {}
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
@@ -695,7 +934,7 @@ class FlowResponse final :
&_FlowResponse_default_instance_);
}
static constexpr int kIndexInFileMessages =
4;
6;
friend void swap(FlowResponse& a, FlowResponse& b) {
a.Swap(&b);
@@ -937,7 +1176,7 @@ class CreateRequest final :
&_CreateRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
6;
8;
friend void swap(CreateRequest& a, CreateRequest& b) {
a.Swap(&b);
@@ -1219,7 +1458,7 @@ class DropRequest final :
&_DropRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
7;
9;
friend void swap(DropRequest& a, DropRequest& b) {
a.Swap(&b);
@@ -1376,7 +1615,7 @@ class TaskId final :
&_TaskId_default_instance_);
}
static constexpr int kIndexInFileMessages =
8;
10;
friend void swap(TaskId& a, TaskId& b) {
a.Swap(&b);
@@ -1483,6 +1722,126 @@ class TaskId final :
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// FlowRequestHeader
// map<string, string> tracing_context = 1;
inline int FlowRequestHeader::_internal_tracing_context_size() const {
return _impl_.tracing_context_.size();
}
inline int FlowRequestHeader::tracing_context_size() const {
return _internal_tracing_context_size();
}
inline void FlowRequestHeader::clear_tracing_context() {
_impl_.tracing_context_.Clear();
}
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
FlowRequestHeader::_internal_tracing_context() const {
return _impl_.tracing_context_.GetMap();
}
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
FlowRequestHeader::tracing_context() const {
// @@protoc_insertion_point(field_map:greptime.v1.flow.FlowRequestHeader.tracing_context)
return _internal_tracing_context();
}
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
FlowRequestHeader::_internal_mutable_tracing_context() {
return _impl_.tracing_context_.MutableMap();
}
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
FlowRequestHeader::mutable_tracing_context() {
// @@protoc_insertion_point(field_mutable_map:greptime.v1.flow.FlowRequestHeader.tracing_context)
return _internal_mutable_tracing_context();
}
// .greptime.v1.QueryContext query_context = 2;
inline bool FlowRequestHeader::_internal_has_query_context() const {
return this != internal_default_instance() && _impl_.query_context_ != nullptr;
}
inline bool FlowRequestHeader::has_query_context() const {
return _internal_has_query_context();
}
inline const ::greptime::v1::QueryContext& FlowRequestHeader::_internal_query_context() const {
const ::greptime::v1::QueryContext* p = _impl_.query_context_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::QueryContext&>(
::greptime::v1::_QueryContext_default_instance_);
}
inline const ::greptime::v1::QueryContext& FlowRequestHeader::query_context() const {
// @@protoc_insertion_point(field_get:greptime.v1.flow.FlowRequestHeader.query_context)
return _internal_query_context();
}
inline void FlowRequestHeader::unsafe_arena_set_allocated_query_context(
::greptime::v1::QueryContext* query_context) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_context_);
}
_impl_.query_context_ = query_context;
if (query_context) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.FlowRequestHeader.query_context)
}
inline ::greptime::v1::QueryContext* FlowRequestHeader::release_query_context() {
::greptime::v1::QueryContext* temp = _impl_.query_context_;
_impl_.query_context_ = 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::QueryContext* FlowRequestHeader::unsafe_arena_release_query_context() {
// @@protoc_insertion_point(field_release:greptime.v1.flow.FlowRequestHeader.query_context)
::greptime::v1::QueryContext* temp = _impl_.query_context_;
_impl_.query_context_ = nullptr;
return temp;
}
inline ::greptime::v1::QueryContext* FlowRequestHeader::_internal_mutable_query_context() {
if (_impl_.query_context_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::QueryContext>(GetArenaForAllocation());
_impl_.query_context_ = p;
}
return _impl_.query_context_;
}
inline ::greptime::v1::QueryContext* FlowRequestHeader::mutable_query_context() {
::greptime::v1::QueryContext* _msg = _internal_mutable_query_context();
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowRequestHeader.query_context)
return _msg;
}
inline void FlowRequestHeader::set_allocated_query_context(::greptime::v1::QueryContext* query_context) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_context_);
}
if (query_context) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(query_context));
if (message_arena != submessage_arena) {
query_context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, query_context, submessage_arena);
}
} else {
}
_impl_.query_context_ = query_context;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowRequestHeader.query_context)
}
// -------------------------------------------------------------------
// InsertRequests
// repeated .greptime.v1.flow.InsertRequest requests = 1;
@@ -1638,6 +1997,96 @@ inline void InsertRequest::set_allocated_rows(::greptime::v1::Rows* rows) {
// FlowRequest
// .greptime.v1.flow.FlowRequestHeader header = 64;
inline bool FlowRequest::_internal_has_header() const {
return this != internal_default_instance() && _impl_.header_ != nullptr;
}
inline bool FlowRequest::has_header() const {
return _internal_has_header();
}
inline void FlowRequest::clear_header() {
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
delete _impl_.header_;
}
_impl_.header_ = nullptr;
}
inline const ::greptime::v1::flow::FlowRequestHeader& FlowRequest::_internal_header() const {
const ::greptime::v1::flow::FlowRequestHeader* p = _impl_.header_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::flow::FlowRequestHeader&>(
::greptime::v1::flow::_FlowRequestHeader_default_instance_);
}
inline const ::greptime::v1::flow::FlowRequestHeader& FlowRequest::header() const {
// @@protoc_insertion_point(field_get:greptime.v1.flow.FlowRequest.header)
return _internal_header();
}
inline void FlowRequest::unsafe_arena_set_allocated_header(
::greptime::v1::flow::FlowRequestHeader* header) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
}
_impl_.header_ = header;
if (header) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.FlowRequest.header)
}
inline ::greptime::v1::flow::FlowRequestHeader* FlowRequest::release_header() {
::greptime::v1::flow::FlowRequestHeader* temp = _impl_.header_;
_impl_.header_ = 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::flow::FlowRequestHeader* FlowRequest::unsafe_arena_release_header() {
// @@protoc_insertion_point(field_release:greptime.v1.flow.FlowRequest.header)
::greptime::v1::flow::FlowRequestHeader* temp = _impl_.header_;
_impl_.header_ = nullptr;
return temp;
}
inline ::greptime::v1::flow::FlowRequestHeader* FlowRequest::_internal_mutable_header() {
if (_impl_.header_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::flow::FlowRequestHeader>(GetArenaForAllocation());
_impl_.header_ = p;
}
return _impl_.header_;
}
inline ::greptime::v1::flow::FlowRequestHeader* FlowRequest::mutable_header() {
::greptime::v1::flow::FlowRequestHeader* _msg = _internal_mutable_header();
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowRequest.header)
return _msg;
}
inline void FlowRequest::set_allocated_header(::greptime::v1::flow::FlowRequestHeader* header) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.header_;
}
if (header) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(header);
if (message_arena != submessage_arena) {
header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, header, submessage_arena);
}
} else {
}
_impl_.header_ = header;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowRequest.header)
}
// .greptime.v1.flow.CreateRequest create = 1;
inline bool FlowRequest::_internal_has_create() const {
return body_case() == kCreate;
@@ -2529,6 +2978,10 @@ inline void TaskId::set_id(uint32_t value) {
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
+111 -54
View File
@@ -171,6 +171,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
PROTOBUF_CONSTEXPR DdlTaskRequest::DdlTaskRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.header_)*/nullptr
, /*decltype(_impl_.query_context_)*/nullptr
, /*decltype(_impl_.task_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}} {}
@@ -293,6 +294,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_.header_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_.query_context_),
::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag,
@@ -329,7 +331,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 65, -1, -1, sizeof(::greptime::v1::meta::CreateFlowTask)},
{ 72, -1, -1, sizeof(::greptime::v1::meta::DropFlowTask)},
{ 79, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)},
{ 98, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)},
{ 99, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -352,66 +354,69 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto[] PROTOB
"\n\032greptime/v1/meta/ddl.proto\022\020greptime.v"
"1.meta\032\035greptime/v1/meta/common.proto\032\034g"
"reptime/v1/meta/route.proto\032\025greptime/v1"
"/ddl.proto\"N\n\022CreateDatabaseTask\0228\n\017crea"
"te_database\030\001 \001(\0132\037.greptime.v1.CreateDa"
"tabaseExpr\"\212\001\n\017CreateTableTask\0222\n\014create"
"_table\030\001 \001(\0132\034.greptime.v1.CreateTableEx"
"pr\022/\n\npartitions\030\002 \003(\0132\033.greptime.v1.met"
"a.Partition\022\022\n\ntable_info\030\003 \001(\014\"D\n\020Creat"
"eTableTasks\0220\n\005tasks\030\001 \003(\0132!.greptime.v1"
".meta.CreateTableTask\"\?\n\rDropTableTask\022."
"\n\ndrop_table\030\001 \001(\0132\032.greptime.v1.DropTab"
"leExpr\"@\n\016DropTableTasks\022.\n\005tasks\030\001 \003(\0132"
"\037.greptime.v1.meta.DropTableTask\"=\n\016Alte"
"rTableTask\022+\n\013alter_table\030\001 \001(\0132\026.grepti"
"me.v1.AlterExpr\"B\n\017AlterTableTasks\022/\n\005ta"
"sks\030\001 \003(\0132 .greptime.v1.meta.AlterTableT"
"ask\"K\n\021TruncateTableTask\0226\n\016truncate_tab"
"le\030\001 \001(\0132\036.greptime.v1.TruncateTableExpr"
"\"H\n\020DropDatabaseTask\0224\n\rdrop_database\030\001 "
"\001(\0132\035.greptime.v1.DropDatabaseExpr\"B\n\016Cr"
"eateFlowTask\0220\n\013create_flow\030\001 \001(\0132\033.grep"
"time.v1.CreateFlowExpr\"<\n\014DropFlowTask\022,"
"\n\tdrop_flow\030\001 \001(\0132\031.greptime.v1.DropFlow"
"Expr\"\207\006\n\016DdlTaskRequest\022/\n\006header\030\001 \001(\0132"
"\037.greptime.v1.meta.RequestHeader\022>\n\021crea"
"te_table_task\030\002 \001(\0132!.greptime.v1.meta.C"
"reateTableTaskH\000\022:\n\017drop_table_task\030\003 \001("
"\0132\037.greptime.v1.meta.DropTableTaskH\000\022<\n\020"
"alter_table_task\030\004 \001(\0132 .greptime.v1.met"
"a.AlterTableTaskH\000\022B\n\023truncate_table_tas"
"k\030\005 \001(\0132#.greptime.v1.meta.TruncateTable"
"TaskH\000\022@\n\022create_table_tasks\030\006 \001(\0132\".gre"
"ptime.v1.meta.CreateTableTasksH\000\022<\n\020drop"
"_table_tasks\030\007 \001(\0132 .greptime.v1.meta.Dr"
"opTableTasksH\000\022>\n\021alter_table_tasks\030\010 \001("
"\0132!.greptime.v1.meta.AlterTableTasksH\000\022@"
"\n\022drop_database_task\030\t \001(\0132\".greptime.v1"
".meta.DropDatabaseTaskH\000\022D\n\024create_datab"
"ase_task\030\n \001(\0132$.greptime.v1.meta.Create"
"DatabaseTaskH\000\022<\n\020create_flow_task\030\013 \001(\013"
"2 .greptime.v1.meta.CreateFlowTaskH\000\0228\n\016"
"drop_flow_task\030\014 \001(\0132\036.greptime.v1.meta."
"DropFlowTaskH\000B\006\n\004task\"\312\001\n\017DdlTaskRespon"
"se\0220\n\006header\030\001 \001(\0132 .greptime.v1.meta.Re"
"sponseHeader\022*\n\003pid\030\002 \001(\0132\035.greptime.v1."
"meta.ProcedureId\022+\n\010table_id\030\004 \001(\0132\031.gre"
"ptime.v1.meta.TableId\022,\n\ttable_ids\030\005 \003(\013"
"2\031.greptime.v1.meta.TableId*#\n\013DdlTaskTy"
"pe\022\n\n\006Create\020\000\022\010\n\004Drop\020\001B<Z:github.com/G"
"reptimeTeam/greptime-proto/go/greptime/v"
"1/metab\006proto3"
"/ddl.proto\032\030greptime/v1/common.proto\"N\n\022"
"CreateDatabaseTask\0228\n\017create_database\030\001 "
"\001(\0132\037.greptime.v1.CreateDatabaseExpr\"\212\001\n"
"\017CreateTableTask\0222\n\014create_table\030\001 \001(\0132\034"
".greptime.v1.CreateTableExpr\022/\n\npartitio"
"ns\030\002 \003(\0132\033.greptime.v1.meta.Partition\022\022\n"
"\ntable_info\030\003 \001(\014\"D\n\020CreateTableTasks\0220\n"
"\005tasks\030\001 \003(\0132!.greptime.v1.meta.CreateTa"
"bleTask\"\?\n\rDropTableTask\022.\n\ndrop_table\030\001"
" \001(\0132\032.greptime.v1.DropTableExpr\"@\n\016Drop"
"TableTasks\022.\n\005tasks\030\001 \003(\0132\037.greptime.v1."
"meta.DropTableTask\"=\n\016AlterTableTask\022+\n\013"
"alter_table\030\001 \001(\0132\026.greptime.v1.AlterExp"
"r\"B\n\017AlterTableTasks\022/\n\005tasks\030\001 \003(\0132 .gr"
"eptime.v1.meta.AlterTableTask\"K\n\021Truncat"
"eTableTask\0226\n\016truncate_table\030\001 \001(\0132\036.gre"
"ptime.v1.TruncateTableExpr\"H\n\020DropDataba"
"seTask\0224\n\rdrop_database\030\001 \001(\0132\035.greptime"
".v1.DropDatabaseExpr\"B\n\016CreateFlowTask\0220"
"\n\013create_flow\030\001 \001(\0132\033.greptime.v1.Create"
"FlowExpr\"<\n\014DropFlowTask\022,\n\tdrop_flow\030\001 "
"\001(\0132\031.greptime.v1.DropFlowExpr\"\271\006\n\016DdlTa"
"skRequest\022/\n\006header\030\001 \001(\0132\037.greptime.v1."
"meta.RequestHeader\0220\n\rquery_context\030@ \001("
"\0132\031.greptime.v1.QueryContext\022>\n\021create_t"
"able_task\030\002 \001(\0132!.greptime.v1.meta.Creat"
"eTableTaskH\000\022:\n\017drop_table_task\030\003 \001(\0132\037."
"greptime.v1.meta.DropTableTaskH\000\022<\n\020alte"
"r_table_task\030\004 \001(\0132 .greptime.v1.meta.Al"
"terTableTaskH\000\022B\n\023truncate_table_task\030\005 "
"\001(\0132#.greptime.v1.meta.TruncateTableTask"
"H\000\022@\n\022create_table_tasks\030\006 \001(\0132\".greptim"
"e.v1.meta.CreateTableTasksH\000\022<\n\020drop_tab"
"le_tasks\030\007 \001(\0132 .greptime.v1.meta.DropTa"
"bleTasksH\000\022>\n\021alter_table_tasks\030\010 \001(\0132!."
"greptime.v1.meta.AlterTableTasksH\000\022@\n\022dr"
"op_database_task\030\t \001(\0132\".greptime.v1.met"
"a.DropDatabaseTaskH\000\022D\n\024create_database_"
"task\030\n \001(\0132$.greptime.v1.meta.CreateData"
"baseTaskH\000\022<\n\020create_flow_task\030\013 \001(\0132 .g"
"reptime.v1.meta.CreateFlowTaskH\000\0228\n\016drop"
"_flow_task\030\014 \001(\0132\036.greptime.v1.meta.Drop"
"FlowTaskH\000B\006\n\004task\"\312\001\n\017DdlTaskResponse\0220"
"\n\006header\030\001 \001(\0132 .greptime.v1.meta.Respon"
"seHeader\022*\n\003pid\030\002 \001(\0132\035.greptime.v1.meta"
".ProcedureId\022+\n\010table_id\030\004 \001(\0132\031.greptim"
"e.v1.meta.TableId\022,\n\ttable_ids\030\005 \003(\0132\031.g"
"reptime.v1.meta.TableId*#\n\013DdlTaskType\022\n"
"\n\006Create\020\000\022\010\n\004Drop\020\001B<Z:github.com/Grept"
"imeTeam/greptime-proto/go/greptime/v1/me"
"tab\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps[3] = {
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps[4] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
&::descriptor_table_greptime_2fv1_2fddl_2eproto,
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
&::descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto = {
false, false, 2054, descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto,
false, false, 2130, descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto,
"greptime/v1/meta/ddl.proto",
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps, 3, 13,
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps, 4, 13,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto,
file_level_service_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto,
@@ -2676,6 +2681,7 @@ void DropFlowTask::InternalSwap(DropFlowTask* other) {
class DdlTaskRequest::_Internal {
public:
static const ::greptime::v1::meta::RequestHeader& header(const DdlTaskRequest* msg);
static const ::greptime::v1::QueryContext& query_context(const DdlTaskRequest* msg);
static const ::greptime::v1::meta::CreateTableTask& create_table_task(const DdlTaskRequest* msg);
static const ::greptime::v1::meta::DropTableTask& drop_table_task(const DdlTaskRequest* msg);
static const ::greptime::v1::meta::AlterTableTask& alter_table_task(const DdlTaskRequest* msg);
@@ -2693,6 +2699,10 @@ const ::greptime::v1::meta::RequestHeader&
DdlTaskRequest::_Internal::header(const DdlTaskRequest* msg) {
return *msg->_impl_.header_;
}
const ::greptime::v1::QueryContext&
DdlTaskRequest::_Internal::query_context(const DdlTaskRequest* msg) {
return *msg->_impl_.query_context_;
}
const ::greptime::v1::meta::CreateTableTask&
DdlTaskRequest::_Internal::create_table_task(const DdlTaskRequest* msg) {
return *msg->_impl_.task_.create_table_task_;
@@ -2743,6 +2753,12 @@ void DdlTaskRequest::clear_header() {
}
_impl_.header_ = nullptr;
}
void DdlTaskRequest::clear_query_context() {
if (GetArenaForAllocation() == nullptr && _impl_.query_context_ != nullptr) {
delete _impl_.query_context_;
}
_impl_.query_context_ = nullptr;
}
void DdlTaskRequest::set_allocated_create_table_task(::greptime::v1::meta::CreateTableTask* create_table_task) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_task();
@@ -2919,6 +2935,7 @@ DdlTaskRequest::DdlTaskRequest(const DdlTaskRequest& from)
DdlTaskRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.header_){nullptr}
, decltype(_impl_.query_context_){nullptr}
, decltype(_impl_.task_){}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}};
@@ -2927,6 +2944,9 @@ DdlTaskRequest::DdlTaskRequest(const DdlTaskRequest& from)
if (from._internal_has_header()) {
_this->_impl_.header_ = new ::greptime::v1::meta::RequestHeader(*from._impl_.header_);
}
if (from._internal_has_query_context()) {
_this->_impl_.query_context_ = new ::greptime::v1::QueryContext(*from._impl_.query_context_);
}
clear_has_task();
switch (from.task_case()) {
case kCreateTableTask: {
@@ -2997,6 +3017,7 @@ inline void DdlTaskRequest::SharedCtor(
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.header_){nullptr}
, decltype(_impl_.query_context_){nullptr}
, decltype(_impl_.task_){}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}
@@ -3016,6 +3037,7 @@ DdlTaskRequest::~DdlTaskRequest() {
inline void DdlTaskRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.header_;
if (this != internal_default_instance()) delete _impl_.query_context_;
if (has_task()) {
clear_task();
}
@@ -3112,6 +3134,10 @@ void DdlTaskRequest::Clear() {
delete _impl_.header_;
}
_impl_.header_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.query_context_ != nullptr) {
delete _impl_.query_context_;
}
_impl_.query_context_ = nullptr;
clear_task();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3218,6 +3244,14 @@ const char* DdlTaskRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext
} else
goto handle_unusual;
continue;
// .greptime.v1.QueryContext query_context = 64;
case 64:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 2)) {
ptr = ctx->ParseMessage(_internal_mutable_query_context(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -3331,6 +3365,13 @@ uint8_t* DdlTaskRequest::_InternalSerialize(
_Internal::drop_flow_task(this).GetCachedSize(), target, stream);
}
// .greptime.v1.QueryContext query_context = 64;
if (this->_internal_has_query_context()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(64, _Internal::query_context(this),
_Internal::query_context(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -3354,6 +3395,13 @@ size_t DdlTaskRequest::ByteSizeLong() const {
*_impl_.header_);
}
// .greptime.v1.QueryContext query_context = 64;
if (this->_internal_has_query_context()) {
total_size += 2 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.query_context_);
}
switch (task_case()) {
// .greptime.v1.meta.CreateTableTask create_table_task = 2;
case kCreateTableTask: {
@@ -3458,6 +3506,10 @@ void DdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
_this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom(
from._internal_header());
}
if (from._internal_has_query_context()) {
_this->_internal_mutable_query_context()->::greptime::v1::QueryContext::MergeFrom(
from._internal_query_context());
}
switch (from.task_case()) {
case kCreateTableTask: {
_this->_internal_mutable_create_table_task()->::greptime::v1::meta::CreateTableTask::MergeFrom(
@@ -3535,7 +3587,12 @@ bool DdlTaskRequest::IsInitialized() const {
void DdlTaskRequest::InternalSwap(DdlTaskRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.header_, other->_impl_.header_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(DdlTaskRequest, _impl_.query_context_)
+ sizeof(DdlTaskRequest::_impl_.query_context_)
- PROTOBUF_FIELD_OFFSET(DdlTaskRequest, _impl_.header_)>(
reinterpret_cast<char*>(&_impl_.header_),
reinterpret_cast<char*>(&other->_impl_.header_));
swap(_impl_.task_, other->_impl_.task_);
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}
+106
View File
@@ -34,6 +34,7 @@
#include "greptime/v1/meta/common.pb.h"
#include "greptime/v1/meta/route.pb.h"
#include "greptime/v1/ddl.pb.h"
#include "greptime/v1/common.pb.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fmeta_2fddl_2eproto
@@ -2039,6 +2040,7 @@ class DdlTaskRequest final :
enum : int {
kHeaderFieldNumber = 1,
kQueryContextFieldNumber = 64,
kCreateTableTaskFieldNumber = 2,
kDropTableTaskFieldNumber = 3,
kAlterTableTaskFieldNumber = 4,
@@ -2069,6 +2071,24 @@ class DdlTaskRequest final :
::greptime::v1::meta::RequestHeader* header);
::greptime::v1::meta::RequestHeader* unsafe_arena_release_header();
// .greptime.v1.QueryContext query_context = 64;
bool has_query_context() const;
private:
bool _internal_has_query_context() const;
public:
void clear_query_context();
const ::greptime::v1::QueryContext& query_context() const;
PROTOBUF_NODISCARD ::greptime::v1::QueryContext* release_query_context();
::greptime::v1::QueryContext* mutable_query_context();
void set_allocated_query_context(::greptime::v1::QueryContext* query_context);
private:
const ::greptime::v1::QueryContext& _internal_query_context() const;
::greptime::v1::QueryContext* _internal_mutable_query_context();
public:
void unsafe_arena_set_allocated_query_context(
::greptime::v1::QueryContext* query_context);
::greptime::v1::QueryContext* unsafe_arena_release_query_context();
// .greptime.v1.meta.CreateTableTask create_table_task = 2;
bool has_create_table_task() const;
private:
@@ -2292,6 +2312,7 @@ class DdlTaskRequest final :
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::meta::RequestHeader* header_;
::greptime::v1::QueryContext* query_context_;
union TaskUnion {
constexpr TaskUnion() : _constinit_{} {}
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
@@ -3558,6 +3579,91 @@ inline void DdlTaskRequest::set_allocated_header(::greptime::v1::meta::RequestHe
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.header)
}
// .greptime.v1.QueryContext query_context = 64;
inline bool DdlTaskRequest::_internal_has_query_context() const {
return this != internal_default_instance() && _impl_.query_context_ != nullptr;
}
inline bool DdlTaskRequest::has_query_context() const {
return _internal_has_query_context();
}
inline const ::greptime::v1::QueryContext& DdlTaskRequest::_internal_query_context() const {
const ::greptime::v1::QueryContext* p = _impl_.query_context_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::QueryContext&>(
::greptime::v1::_QueryContext_default_instance_);
}
inline const ::greptime::v1::QueryContext& DdlTaskRequest::query_context() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.query_context)
return _internal_query_context();
}
inline void DdlTaskRequest::unsafe_arena_set_allocated_query_context(
::greptime::v1::QueryContext* query_context) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_context_);
}
_impl_.query_context_ = query_context;
if (query_context) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.query_context)
}
inline ::greptime::v1::QueryContext* DdlTaskRequest::release_query_context() {
::greptime::v1::QueryContext* temp = _impl_.query_context_;
_impl_.query_context_ = 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::QueryContext* DdlTaskRequest::unsafe_arena_release_query_context() {
// @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.query_context)
::greptime::v1::QueryContext* temp = _impl_.query_context_;
_impl_.query_context_ = nullptr;
return temp;
}
inline ::greptime::v1::QueryContext* DdlTaskRequest::_internal_mutable_query_context() {
if (_impl_.query_context_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::QueryContext>(GetArenaForAllocation());
_impl_.query_context_ = p;
}
return _impl_.query_context_;
}
inline ::greptime::v1::QueryContext* DdlTaskRequest::mutable_query_context() {
::greptime::v1::QueryContext* _msg = _internal_mutable_query_context();
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.query_context)
return _msg;
}
inline void DdlTaskRequest::set_allocated_query_context(::greptime::v1::QueryContext* query_context) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_context_);
}
if (query_context) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(query_context));
if (message_arena != submessage_arena) {
query_context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, query_context, submessage_arena);
}
} else {
}
_impl_.query_context_ = query_context;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.query_context)
}
// .greptime.v1.meta.CreateTableTask create_table_task = 2;
inline bool DdlTaskRequest::_internal_has_create_table_task() const {
return task_case() == kCreateTableTask;
File diff suppressed because it is too large Load Diff
+53 -494
View File
@@ -113,12 +113,6 @@ extern OpenRequestDefaultTypeInternal _OpenRequest_default_instance_;
class OpenRequest_OptionsEntry_DoNotUse;
struct OpenRequest_OptionsEntry_DoNotUseDefaultTypeInternal;
extern OpenRequest_OptionsEntry_DoNotUseDefaultTypeInternal _OpenRequest_OptionsEntry_DoNotUse_default_instance_;
class QueryContext;
struct QueryContextDefaultTypeInternal;
extern QueryContextDefaultTypeInternal _QueryContext_default_instance_;
class QueryContext_ExtensionsEntry_DoNotUse;
struct QueryContext_ExtensionsEntry_DoNotUseDefaultTypeInternal;
extern QueryContext_ExtensionsEntry_DoNotUseDefaultTypeInternal _QueryContext_ExtensionsEntry_DoNotUse_default_instance_;
class QueryRequest;
struct QueryRequestDefaultTypeInternal;
extern QueryRequestDefaultTypeInternal _QueryRequest_default_instance_;
@@ -167,8 +161,6 @@ template<> ::greptime::v1::region::InsertRequest* Arena::CreateMaybeMessage<::gr
template<> ::greptime::v1::region::InsertRequests* Arena::CreateMaybeMessage<::greptime::v1::region::InsertRequests>(Arena*);
template<> ::greptime::v1::region::OpenRequest* Arena::CreateMaybeMessage<::greptime::v1::region::OpenRequest>(Arena*);
template<> ::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::region::QueryContext* Arena::CreateMaybeMessage<::greptime::v1::region::QueryContext>(Arena*);
template<> ::greptime::v1::region::QueryContext_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::region::QueryContext_ExtensionsEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::region::QueryRequest* Arena::CreateMaybeMessage<::greptime::v1::region::QueryRequest>(Arena*);
template<> ::greptime::v1::region::RegionColumnDef* Arena::CreateMaybeMessage<::greptime::v1::region::RegionColumnDef>(Arena*);
template<> ::greptime::v1::region::RegionRequest* Arena::CreateMaybeMessage<::greptime::v1::region::RegionRequest>(Arena*);
@@ -184,245 +176,6 @@ namespace region {
// ===================================================================
class QueryContext_ExtensionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<QueryContext_ExtensionsEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> {
public:
typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<QueryContext_ExtensionsEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> SuperType;
QueryContext_ExtensionsEntry_DoNotUse();
explicit PROTOBUF_CONSTEXPR QueryContext_ExtensionsEntry_DoNotUse(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
explicit QueryContext_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void MergeFrom(const QueryContext_ExtensionsEntry_DoNotUse& other);
static const QueryContext_ExtensionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const QueryContext_ExtensionsEntry_DoNotUse*>(&_QueryContext_ExtensionsEntry_DoNotUse_default_instance_); }
static bool ValidateKey(std::string* s) {
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.region.QueryContext.ExtensionsEntry.key");
}
static bool ValidateValue(std::string* s) {
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.region.QueryContext.ExtensionsEntry.value");
}
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto;
};
// -------------------------------------------------------------------
class QueryContext final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.QueryContext) */ {
public:
inline QueryContext() : QueryContext(nullptr) {}
~QueryContext() override;
explicit PROTOBUF_CONSTEXPR QueryContext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
QueryContext(const QueryContext& from);
QueryContext(QueryContext&& from) noexcept
: QueryContext() {
*this = ::std::move(from);
}
inline QueryContext& operator=(const QueryContext& from) {
CopyFrom(from);
return *this;
}
inline QueryContext& operator=(QueryContext&& 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 QueryContext& default_instance() {
return *internal_default_instance();
}
static inline const QueryContext* internal_default_instance() {
return reinterpret_cast<const QueryContext*>(
&_QueryContext_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(QueryContext& a, QueryContext& b) {
a.Swap(&b);
}
inline void Swap(QueryContext* 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(QueryContext* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
QueryContext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<QueryContext>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const QueryContext& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const QueryContext& from) {
QueryContext::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(QueryContext* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.region.QueryContext";
}
protected:
explicit QueryContext(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
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 {
kExtensionsFieldNumber = 5,
kCurrentCatalogFieldNumber = 1,
kCurrentSchemaFieldNumber = 2,
kTimezoneFieldNumber = 4,
};
// map<string, string> extensions = 5;
int extensions_size() const;
private:
int _internal_extensions_size() const;
public:
void clear_extensions();
private:
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
_internal_extensions() const;
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
_internal_mutable_extensions();
public:
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
extensions() const;
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
mutable_extensions();
// string current_catalog = 1;
void clear_current_catalog();
const std::string& current_catalog() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_current_catalog(ArgT0&& arg0, ArgT... args);
std::string* mutable_current_catalog();
PROTOBUF_NODISCARD std::string* release_current_catalog();
void set_allocated_current_catalog(std::string* current_catalog);
private:
const std::string& _internal_current_catalog() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_current_catalog(const std::string& value);
std::string* _internal_mutable_current_catalog();
public:
// string current_schema = 2;
void clear_current_schema();
const std::string& current_schema() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_current_schema(ArgT0&& arg0, ArgT... args);
std::string* mutable_current_schema();
PROTOBUF_NODISCARD std::string* release_current_schema();
void set_allocated_current_schema(std::string* current_schema);
private:
const std::string& _internal_current_schema() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_current_schema(const std::string& value);
std::string* _internal_mutable_current_schema();
public:
// string timezone = 4;
void clear_timezone();
const std::string& timezone() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_timezone(ArgT0&& arg0, ArgT... args);
std::string* mutable_timezone();
PROTOBUF_NODISCARD std::string* release_timezone();
void set_allocated_timezone(std::string* timezone);
private:
const std::string& _internal_timezone() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_timezone(const std::string& value);
std::string* _internal_mutable_timezone();
public:
// @@protoc_insertion_point(class_scope:greptime.v1.region.QueryContext)
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::MapField<
QueryContext_ExtensionsEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> extensions_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr current_catalog_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr current_schema_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr timezone_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto;
};
// -------------------------------------------------------------------
class RegionRequestHeader_TracingContextEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<RegionRequestHeader_TracingContextEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
@@ -499,7 +252,7 @@ class RegionRequestHeader final :
&_RegionRequestHeader_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
1;
friend void swap(RegionRequestHeader& a, RegionRequestHeader& b) {
a.Swap(&b);
@@ -610,23 +363,23 @@ class RegionRequestHeader final :
std::string* _internal_mutable_dbname();
public:
// .greptime.v1.region.QueryContext query_context = 6;
// .greptime.v1.QueryContext query_context = 6;
bool has_query_context() const;
private:
bool _internal_has_query_context() const;
public:
void clear_query_context();
const ::greptime::v1::region::QueryContext& query_context() const;
PROTOBUF_NODISCARD ::greptime::v1::region::QueryContext* release_query_context();
::greptime::v1::region::QueryContext* mutable_query_context();
void set_allocated_query_context(::greptime::v1::region::QueryContext* query_context);
const ::greptime::v1::QueryContext& query_context() const;
PROTOBUF_NODISCARD ::greptime::v1::QueryContext* release_query_context();
::greptime::v1::QueryContext* mutable_query_context();
void set_allocated_query_context(::greptime::v1::QueryContext* query_context);
private:
const ::greptime::v1::region::QueryContext& _internal_query_context() const;
::greptime::v1::region::QueryContext* _internal_mutable_query_context();
const ::greptime::v1::QueryContext& _internal_query_context() const;
::greptime::v1::QueryContext* _internal_mutable_query_context();
public:
void unsafe_arena_set_allocated_query_context(
::greptime::v1::region::QueryContext* query_context);
::greptime::v1::region::QueryContext* unsafe_arena_release_query_context();
::greptime::v1::QueryContext* query_context);
::greptime::v1::QueryContext* unsafe_arena_release_query_context();
// @@protoc_insertion_point(class_scope:greptime.v1.region.RegionRequestHeader)
private:
@@ -642,7 +395,7 @@ class RegionRequestHeader final :
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> tracing_context_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbname_;
::greptime::v1::region::QueryContext* query_context_;
::greptime::v1::QueryContext* query_context_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
@@ -715,7 +468,7 @@ class RegionRequest final :
&_RegionRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
4;
2;
friend void swap(RegionRequest& a, RegionRequest& b) {
a.Swap(&b);
@@ -1182,7 +935,7 @@ class RegionResponse final :
&_RegionResponse_default_instance_);
}
static constexpr int kIndexInFileMessages =
6;
4;
friend void swap(RegionResponse& a, RegionResponse& b) {
a.Swap(&b);
@@ -1376,7 +1129,7 @@ class InsertRequests final :
&_InsertRequests_default_instance_);
}
static constexpr int kIndexInFileMessages =
7;
5;
friend void swap(InsertRequests& a, InsertRequests& b) {
a.Swap(&b);
@@ -1533,7 +1286,7 @@ class DeleteRequests final :
&_DeleteRequests_default_instance_);
}
static constexpr int kIndexInFileMessages =
8;
6;
friend void swap(DeleteRequests& a, DeleteRequests& b) {
a.Swap(&b);
@@ -1690,7 +1443,7 @@ class InsertRequest final :
&_InsertRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
9;
7;
friend void swap(InsertRequest& a, InsertRequest& b) {
a.Swap(&b);
@@ -1858,7 +1611,7 @@ class DeleteRequest final :
&_DeleteRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
10;
8;
friend void swap(DeleteRequest& a, DeleteRequest& b) {
a.Swap(&b);
@@ -2026,7 +1779,7 @@ class QueryRequest final :
&_QueryRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
11;
9;
friend void swap(QueryRequest& a, QueryRequest& b) {
a.Swap(&b);
@@ -2210,7 +1963,7 @@ class CreateRequests final :
&_CreateRequests_default_instance_);
}
static constexpr int kIndexInFileMessages =
12;
10;
friend void swap(CreateRequests& a, CreateRequests& b) {
a.Swap(&b);
@@ -2395,7 +2148,7 @@ class CreateRequest final :
&_CreateRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
14;
12;
friend void swap(CreateRequest& a, CreateRequest& b) {
a.Swap(&b);
@@ -2646,7 +2399,7 @@ class DropRequests final :
&_DropRequests_default_instance_);
}
static constexpr int kIndexInFileMessages =
15;
13;
friend void swap(DropRequests& a, DropRequests& b) {
a.Swap(&b);
@@ -2803,7 +2556,7 @@ class DropRequest final :
&_DropRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
16;
14;
friend void swap(DropRequest& a, DropRequest& b) {
a.Swap(&b);
@@ -2979,7 +2732,7 @@ class OpenRequest final :
&_OpenRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
18;
16;
friend void swap(OpenRequest& a, OpenRequest& b) {
a.Swap(&b);
@@ -3185,7 +2938,7 @@ class CloseRequest final :
&_CloseRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
19;
17;
friend void swap(CloseRequest& a, CloseRequest& b) {
a.Swap(&b);
@@ -3333,7 +3086,7 @@ class AlterRequests final :
&_AlterRequests_default_instance_);
}
static constexpr int kIndexInFileMessages =
20;
18;
friend void swap(AlterRequests& a, AlterRequests& b) {
a.Swap(&b);
@@ -3497,7 +3250,7 @@ class AlterRequest final :
&_AlterRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
21;
19;
friend void swap(AlterRequest& a, AlterRequest& b) {
a.Swap(&b);
@@ -3730,7 +3483,7 @@ class AddColumns final :
&_AddColumns_default_instance_);
}
static constexpr int kIndexInFileMessages =
22;
20;
friend void swap(AddColumns& a, AddColumns& b) {
a.Swap(&b);
@@ -3887,7 +3640,7 @@ class DropColumns final :
&_DropColumns_default_instance_);
}
static constexpr int kIndexInFileMessages =
23;
21;
friend void swap(DropColumns& a, DropColumns& b) {
a.Swap(&b);
@@ -4044,7 +3797,7 @@ class AddColumn final :
&_AddColumn_default_instance_);
}
static constexpr int kIndexInFileMessages =
24;
22;
friend void swap(AddColumn& a, AddColumn& b) {
a.Swap(&b);
@@ -4221,7 +3974,7 @@ class DropColumn final :
&_DropColumn_default_instance_);
}
static constexpr int kIndexInFileMessages =
25;
23;
friend void swap(DropColumn& a, DropColumn& b) {
a.Swap(&b);
@@ -4374,7 +4127,7 @@ class FlushRequest final :
&_FlushRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
26;
24;
friend void swap(FlushRequest& a, FlushRequest& b) {
a.Swap(&b);
@@ -4522,7 +4275,7 @@ class CompactRequest final :
&_CompactRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
27;
25;
friend void swap(CompactRequest& a, CompactRequest& b) {
a.Swap(&b);
@@ -4670,7 +4423,7 @@ class TruncateRequest final :
&_TruncateRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
28;
26;
friend void swap(TruncateRequest& a, TruncateRequest& b) {
a.Swap(&b);
@@ -4818,7 +4571,7 @@ class RegionColumnDef final :
&_RegionColumnDef_default_instance_);
}
static constexpr int kIndexInFileMessages =
29;
27;
friend void swap(RegionColumnDef& a, RegionColumnDef& b) {
a.Swap(&b);
@@ -4947,191 +4700,6 @@ class RegionColumnDef final :
#endif // __GNUC__
// -------------------------------------------------------------------
// QueryContext
// string current_catalog = 1;
inline void QueryContext::clear_current_catalog() {
_impl_.current_catalog_.ClearToEmpty();
}
inline const std::string& QueryContext::current_catalog() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.QueryContext.current_catalog)
return _internal_current_catalog();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void QueryContext::set_current_catalog(ArgT0&& arg0, ArgT... args) {
_impl_.current_catalog_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.region.QueryContext.current_catalog)
}
inline std::string* QueryContext::mutable_current_catalog() {
std::string* _s = _internal_mutable_current_catalog();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.QueryContext.current_catalog)
return _s;
}
inline const std::string& QueryContext::_internal_current_catalog() const {
return _impl_.current_catalog_.Get();
}
inline void QueryContext::_internal_set_current_catalog(const std::string& value) {
_impl_.current_catalog_.Set(value, GetArenaForAllocation());
}
inline std::string* QueryContext::_internal_mutable_current_catalog() {
return _impl_.current_catalog_.Mutable(GetArenaForAllocation());
}
inline std::string* QueryContext::release_current_catalog() {
// @@protoc_insertion_point(field_release:greptime.v1.region.QueryContext.current_catalog)
return _impl_.current_catalog_.Release();
}
inline void QueryContext::set_allocated_current_catalog(std::string* current_catalog) {
if (current_catalog != nullptr) {
} else {
}
_impl_.current_catalog_.SetAllocated(current_catalog, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.current_catalog_.IsDefault()) {
_impl_.current_catalog_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.QueryContext.current_catalog)
}
// string current_schema = 2;
inline void QueryContext::clear_current_schema() {
_impl_.current_schema_.ClearToEmpty();
}
inline const std::string& QueryContext::current_schema() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.QueryContext.current_schema)
return _internal_current_schema();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void QueryContext::set_current_schema(ArgT0&& arg0, ArgT... args) {
_impl_.current_schema_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.region.QueryContext.current_schema)
}
inline std::string* QueryContext::mutable_current_schema() {
std::string* _s = _internal_mutable_current_schema();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.QueryContext.current_schema)
return _s;
}
inline const std::string& QueryContext::_internal_current_schema() const {
return _impl_.current_schema_.Get();
}
inline void QueryContext::_internal_set_current_schema(const std::string& value) {
_impl_.current_schema_.Set(value, GetArenaForAllocation());
}
inline std::string* QueryContext::_internal_mutable_current_schema() {
return _impl_.current_schema_.Mutable(GetArenaForAllocation());
}
inline std::string* QueryContext::release_current_schema() {
// @@protoc_insertion_point(field_release:greptime.v1.region.QueryContext.current_schema)
return _impl_.current_schema_.Release();
}
inline void QueryContext::set_allocated_current_schema(std::string* current_schema) {
if (current_schema != nullptr) {
} else {
}
_impl_.current_schema_.SetAllocated(current_schema, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.current_schema_.IsDefault()) {
_impl_.current_schema_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.QueryContext.current_schema)
}
// string timezone = 4;
inline void QueryContext::clear_timezone() {
_impl_.timezone_.ClearToEmpty();
}
inline const std::string& QueryContext::timezone() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.QueryContext.timezone)
return _internal_timezone();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void QueryContext::set_timezone(ArgT0&& arg0, ArgT... args) {
_impl_.timezone_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.region.QueryContext.timezone)
}
inline std::string* QueryContext::mutable_timezone() {
std::string* _s = _internal_mutable_timezone();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.QueryContext.timezone)
return _s;
}
inline const std::string& QueryContext::_internal_timezone() const {
return _impl_.timezone_.Get();
}
inline void QueryContext::_internal_set_timezone(const std::string& value) {
_impl_.timezone_.Set(value, GetArenaForAllocation());
}
inline std::string* QueryContext::_internal_mutable_timezone() {
return _impl_.timezone_.Mutable(GetArenaForAllocation());
}
inline std::string* QueryContext::release_timezone() {
// @@protoc_insertion_point(field_release:greptime.v1.region.QueryContext.timezone)
return _impl_.timezone_.Release();
}
inline void QueryContext::set_allocated_timezone(std::string* timezone) {
if (timezone != nullptr) {
} else {
}
_impl_.timezone_.SetAllocated(timezone, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.timezone_.IsDefault()) {
_impl_.timezone_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.QueryContext.timezone)
}
// map<string, string> extensions = 5;
inline int QueryContext::_internal_extensions_size() const {
return _impl_.extensions_.size();
}
inline int QueryContext::extensions_size() const {
return _internal_extensions_size();
}
inline void QueryContext::clear_extensions() {
_impl_.extensions_.Clear();
}
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
QueryContext::_internal_extensions() const {
return _impl_.extensions_.GetMap();
}
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
QueryContext::extensions() const {
// @@protoc_insertion_point(field_map:greptime.v1.region.QueryContext.extensions)
return _internal_extensions();
}
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
QueryContext::_internal_mutable_extensions() {
return _impl_.extensions_.MutableMap();
}
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
QueryContext::mutable_extensions() {
// @@protoc_insertion_point(field_mutable_map:greptime.v1.region.QueryContext.extensions)
return _internal_mutable_extensions();
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// RegionRequestHeader
// map<string, string> tracing_context = 5;
@@ -5213,30 +4781,24 @@ inline void RegionRequestHeader::set_allocated_dbname(std::string* dbname) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.RegionRequestHeader.dbname)
}
// .greptime.v1.region.QueryContext query_context = 6;
// .greptime.v1.QueryContext query_context = 6;
inline bool RegionRequestHeader::_internal_has_query_context() const {
return this != internal_default_instance() && _impl_.query_context_ != nullptr;
}
inline bool RegionRequestHeader::has_query_context() const {
return _internal_has_query_context();
}
inline void RegionRequestHeader::clear_query_context() {
if (GetArenaForAllocation() == nullptr && _impl_.query_context_ != nullptr) {
delete _impl_.query_context_;
}
_impl_.query_context_ = nullptr;
inline const ::greptime::v1::QueryContext& RegionRequestHeader::_internal_query_context() const {
const ::greptime::v1::QueryContext* p = _impl_.query_context_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::QueryContext&>(
::greptime::v1::_QueryContext_default_instance_);
}
inline const ::greptime::v1::region::QueryContext& RegionRequestHeader::_internal_query_context() const {
const ::greptime::v1::region::QueryContext* p = _impl_.query_context_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::region::QueryContext&>(
::greptime::v1::region::_QueryContext_default_instance_);
}
inline const ::greptime::v1::region::QueryContext& RegionRequestHeader::query_context() const {
inline const ::greptime::v1::QueryContext& RegionRequestHeader::query_context() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequestHeader.query_context)
return _internal_query_context();
}
inline void RegionRequestHeader::unsafe_arena_set_allocated_query_context(
::greptime::v1::region::QueryContext* query_context) {
::greptime::v1::QueryContext* query_context) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_context_);
}
@@ -5248,9 +4810,9 @@ inline void RegionRequestHeader::unsafe_arena_set_allocated_query_context(
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.RegionRequestHeader.query_context)
}
inline ::greptime::v1::region::QueryContext* RegionRequestHeader::release_query_context() {
inline ::greptime::v1::QueryContext* RegionRequestHeader::release_query_context() {
::greptime::v1::region::QueryContext* temp = _impl_.query_context_;
::greptime::v1::QueryContext* temp = _impl_.query_context_;
_impl_.query_context_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
@@ -5263,34 +4825,35 @@ inline ::greptime::v1::region::QueryContext* RegionRequestHeader::release_query_
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::region::QueryContext* RegionRequestHeader::unsafe_arena_release_query_context() {
inline ::greptime::v1::QueryContext* RegionRequestHeader::unsafe_arena_release_query_context() {
// @@protoc_insertion_point(field_release:greptime.v1.region.RegionRequestHeader.query_context)
::greptime::v1::region::QueryContext* temp = _impl_.query_context_;
::greptime::v1::QueryContext* temp = _impl_.query_context_;
_impl_.query_context_ = nullptr;
return temp;
}
inline ::greptime::v1::region::QueryContext* RegionRequestHeader::_internal_mutable_query_context() {
inline ::greptime::v1::QueryContext* RegionRequestHeader::_internal_mutable_query_context() {
if (_impl_.query_context_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::region::QueryContext>(GetArenaForAllocation());
auto* p = CreateMaybeMessage<::greptime::v1::QueryContext>(GetArenaForAllocation());
_impl_.query_context_ = p;
}
return _impl_.query_context_;
}
inline ::greptime::v1::region::QueryContext* RegionRequestHeader::mutable_query_context() {
::greptime::v1::region::QueryContext* _msg = _internal_mutable_query_context();
inline ::greptime::v1::QueryContext* RegionRequestHeader::mutable_query_context() {
::greptime::v1::QueryContext* _msg = _internal_mutable_query_context();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionRequestHeader.query_context)
return _msg;
}
inline void RegionRequestHeader::set_allocated_query_context(::greptime::v1::region::QueryContext* query_context) {
inline void RegionRequestHeader::set_allocated_query_context(::greptime::v1::QueryContext* query_context) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.query_context_;
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_context_);
}
if (query_context) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(query_context);
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(query_context));
if (message_arena != submessage_arena) {
query_context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, query_context, submessage_arena);
@@ -8381,10 +7944,6 @@ inline void RegionColumnDef::set_column_id(uint32_t value) {
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)