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_;
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_);
}
_impl_.query_context_ = nullptr;
}
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)
+312 -210
View File
@@ -204,6 +204,77 @@ func (ColumnDataType) EnumDescriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{1}
}
type QueryContext struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CurrentCatalog string `protobuf:"bytes,1,opt,name=current_catalog,json=currentCatalog,proto3" json:"current_catalog,omitempty"`
CurrentSchema string `protobuf:"bytes,2,opt,name=current_schema,json=currentSchema,proto3" json:"current_schema,omitempty"`
Timezone string `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"`
Extensions map[string]string `protobuf:"bytes,5,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *QueryContext) Reset() {
*x = QueryContext{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryContext) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryContext) ProtoMessage() {}
func (x *QueryContext) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QueryContext.ProtoReflect.Descriptor instead.
func (*QueryContext) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{0}
}
func (x *QueryContext) GetCurrentCatalog() string {
if x != nil {
return x.CurrentCatalog
}
return ""
}
func (x *QueryContext) GetCurrentSchema() string {
if x != nil {
return x.CurrentSchema
}
return ""
}
func (x *QueryContext) GetTimezone() string {
if x != nil {
return x.Timezone
}
return ""
}
func (x *QueryContext) GetExtensions() map[string]string {
if x != nil {
return x.Extensions
}
return nil
}
type RequestHeader struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -227,7 +298,7 @@ type RequestHeader struct {
func (x *RequestHeader) Reset() {
*x = RequestHeader{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[0]
mi := &file_greptime_v1_common_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -240,7 +311,7 @@ func (x *RequestHeader) String() string {
func (*RequestHeader) ProtoMessage() {}
func (x *RequestHeader) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[0]
mi := &file_greptime_v1_common_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -253,7 +324,7 @@ func (x *RequestHeader) ProtoReflect() protoreflect.Message {
// Deprecated: Use RequestHeader.ProtoReflect.Descriptor instead.
func (*RequestHeader) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{0}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{1}
}
func (x *RequestHeader) GetCatalog() string {
@@ -309,7 +380,7 @@ type ResponseHeader struct {
func (x *ResponseHeader) Reset() {
*x = ResponseHeader{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[1]
mi := &file_greptime_v1_common_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -322,7 +393,7 @@ func (x *ResponseHeader) String() string {
func (*ResponseHeader) ProtoMessage() {}
func (x *ResponseHeader) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[1]
mi := &file_greptime_v1_common_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -335,7 +406,7 @@ func (x *ResponseHeader) ProtoReflect() protoreflect.Message {
// Deprecated: Use ResponseHeader.ProtoReflect.Descriptor instead.
func (*ResponseHeader) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{1}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{2}
}
func (x *ResponseHeader) GetStatus() *Status {
@@ -358,7 +429,7 @@ type Status struct {
func (x *Status) Reset() {
*x = Status{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[2]
mi := &file_greptime_v1_common_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -371,7 +442,7 @@ func (x *Status) String() string {
func (*Status) ProtoMessage() {}
func (x *Status) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[2]
mi := &file_greptime_v1_common_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -384,7 +455,7 @@ func (x *Status) ProtoReflect() protoreflect.Message {
// Deprecated: Use Status.ProtoReflect.Descriptor instead.
func (*Status) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{2}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{3}
}
func (x *Status) GetStatusCode() uint32 {
@@ -416,7 +487,7 @@ type AuthHeader struct {
func (x *AuthHeader) Reset() {
*x = AuthHeader{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[3]
mi := &file_greptime_v1_common_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -429,7 +500,7 @@ func (x *AuthHeader) String() string {
func (*AuthHeader) ProtoMessage() {}
func (x *AuthHeader) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[3]
mi := &file_greptime_v1_common_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -442,7 +513,7 @@ func (x *AuthHeader) ProtoReflect() protoreflect.Message {
// Deprecated: Use AuthHeader.ProtoReflect.Descriptor instead.
func (*AuthHeader) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{3}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{4}
}
func (m *AuthHeader) GetAuthScheme() isAuthHeader_AuthScheme {
@@ -494,7 +565,7 @@ type Basic struct {
func (x *Basic) Reset() {
*x = Basic{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[4]
mi := &file_greptime_v1_common_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -507,7 +578,7 @@ func (x *Basic) String() string {
func (*Basic) ProtoMessage() {}
func (x *Basic) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[4]
mi := &file_greptime_v1_common_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -520,7 +591,7 @@ func (x *Basic) ProtoReflect() protoreflect.Message {
// Deprecated: Use Basic.ProtoReflect.Descriptor instead.
func (*Basic) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{4}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{5}
}
func (x *Basic) GetUsername() string {
@@ -548,7 +619,7 @@ type Token struct {
func (x *Token) Reset() {
*x = Token{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[5]
mi := &file_greptime_v1_common_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -561,7 +632,7 @@ func (x *Token) String() string {
func (*Token) ProtoMessage() {}
func (x *Token) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[5]
mi := &file_greptime_v1_common_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -574,7 +645,7 @@ func (x *Token) ProtoReflect() protoreflect.Message {
// Deprecated: Use Token.ProtoReflect.Descriptor instead.
func (*Token) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{5}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{6}
}
func (x *Token) GetToken() string {
@@ -597,7 +668,7 @@ type TableName struct {
func (x *TableName) Reset() {
*x = TableName{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[6]
mi := &file_greptime_v1_common_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -610,7 +681,7 @@ func (x *TableName) String() string {
func (*TableName) ProtoMessage() {}
func (x *TableName) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[6]
mi := &file_greptime_v1_common_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -623,7 +694,7 @@ func (x *TableName) ProtoReflect() protoreflect.Message {
// Deprecated: Use TableName.ProtoReflect.Descriptor instead.
func (*TableName) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{6}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{7}
}
func (x *TableName) GetCatalogName() string {
@@ -658,7 +729,7 @@ type AffectedRows struct {
func (x *AffectedRows) Reset() {
*x = AffectedRows{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[7]
mi := &file_greptime_v1_common_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -671,7 +742,7 @@ func (x *AffectedRows) String() string {
func (*AffectedRows) ProtoMessage() {}
func (x *AffectedRows) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[7]
mi := &file_greptime_v1_common_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -684,7 +755,7 @@ func (x *AffectedRows) ProtoReflect() protoreflect.Message {
// Deprecated: Use AffectedRows.ProtoReflect.Descriptor instead.
func (*AffectedRows) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{7}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{8}
}
func (x *AffectedRows) GetValue() uint32 {
@@ -705,7 +776,7 @@ type Metrics struct {
func (x *Metrics) Reset() {
*x = Metrics{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[8]
mi := &file_greptime_v1_common_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -718,7 +789,7 @@ func (x *Metrics) String() string {
func (*Metrics) ProtoMessage() {}
func (x *Metrics) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[8]
mi := &file_greptime_v1_common_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -731,7 +802,7 @@ func (x *Metrics) ProtoReflect() protoreflect.Message {
// Deprecated: Use Metrics.ProtoReflect.Descriptor instead.
func (*Metrics) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{8}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{9}
}
func (x *Metrics) GetMetrics() []byte {
@@ -753,7 +824,7 @@ type FlightMetadata struct {
func (x *FlightMetadata) Reset() {
*x = FlightMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[9]
mi := &file_greptime_v1_common_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -766,7 +837,7 @@ func (x *FlightMetadata) String() string {
func (*FlightMetadata) ProtoMessage() {}
func (x *FlightMetadata) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[9]
mi := &file_greptime_v1_common_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -779,7 +850,7 @@ func (x *FlightMetadata) ProtoReflect() protoreflect.Message {
// Deprecated: Use FlightMetadata.ProtoReflect.Descriptor instead.
func (*FlightMetadata) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{9}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{10}
}
func (x *FlightMetadata) GetAffectedRows() *AffectedRows {
@@ -809,7 +880,7 @@ type IntervalMonthDayNano struct {
func (x *IntervalMonthDayNano) Reset() {
*x = IntervalMonthDayNano{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[10]
mi := &file_greptime_v1_common_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -822,7 +893,7 @@ func (x *IntervalMonthDayNano) String() string {
func (*IntervalMonthDayNano) ProtoMessage() {}
func (x *IntervalMonthDayNano) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[10]
mi := &file_greptime_v1_common_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -835,7 +906,7 @@ func (x *IntervalMonthDayNano) ProtoReflect() protoreflect.Message {
// Deprecated: Use IntervalMonthDayNano.ProtoReflect.Descriptor instead.
func (*IntervalMonthDayNano) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{10}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{11}
}
func (x *IntervalMonthDayNano) GetMonths() int32 {
@@ -872,7 +943,7 @@ type Decimal128 struct {
func (x *Decimal128) Reset() {
*x = Decimal128{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[11]
mi := &file_greptime_v1_common_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -885,7 +956,7 @@ func (x *Decimal128) String() string {
func (*Decimal128) ProtoMessage() {}
func (x *Decimal128) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[11]
mi := &file_greptime_v1_common_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -898,7 +969,7 @@ func (x *Decimal128) ProtoReflect() protoreflect.Message {
// Deprecated: Use Decimal128.ProtoReflect.Descriptor instead.
func (*Decimal128) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{11}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{12}
}
func (x *Decimal128) GetHi() int64 {
@@ -930,7 +1001,7 @@ type ColumnDataTypeExtension struct {
func (x *ColumnDataTypeExtension) Reset() {
*x = ColumnDataTypeExtension{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[12]
mi := &file_greptime_v1_common_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -943,7 +1014,7 @@ func (x *ColumnDataTypeExtension) String() string {
func (*ColumnDataTypeExtension) ProtoMessage() {}
func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[12]
mi := &file_greptime_v1_common_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -956,7 +1027,7 @@ func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message {
// Deprecated: Use ColumnDataTypeExtension.ProtoReflect.Descriptor instead.
func (*ColumnDataTypeExtension) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{12}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{13}
}
func (m *ColumnDataTypeExtension) GetTypeExt() isColumnDataTypeExtension_TypeExt {
@@ -995,7 +1066,7 @@ type DecimalTypeExtension struct {
func (x *DecimalTypeExtension) Reset() {
*x = DecimalTypeExtension{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[13]
mi := &file_greptime_v1_common_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1008,7 +1079,7 @@ func (x *DecimalTypeExtension) String() string {
func (*DecimalTypeExtension) ProtoMessage() {}
func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[13]
mi := &file_greptime_v1_common_proto_msgTypes[14]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1021,7 +1092,7 @@ func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message {
// Deprecated: Use DecimalTypeExtension.ProtoReflect.Descriptor instead.
func (*DecimalTypeExtension) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{13}
return file_greptime_v1_common_proto_rawDescGZIP(), []int{14}
}
func (x *DecimalTypeExtension) GetPrecision() int32 {
@@ -1043,129 +1114,145 @@ var File_greptime_v1_common_proto protoreflect.FileDescriptor
var file_greptime_v1_common_proto_rawDesc = []byte{
0x0a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f,
0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x22, 0xd0, 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x61, 0x74,
0x61, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61,
0x6c, 0x6f, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x3d, 0x0a, 0x0d, 0x61,
0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x41, 0x75, 0x74, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0d, 0x61, 0x75, 0x74,
0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x62,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, 0x6e, 0x61,
0x6d, 0x65, 0x12, 0x57, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f,
0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43,
0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x74, 0x72, 0x61,
0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x74,
0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74,
0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x1a, 0x41, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x63, 0x69,
0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x0e, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x06,
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,
0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x42, 0x0a, 0x06, 0x53, 0x74, 0x61,
0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f,
0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
0x43, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x22, 0x73, 0x0a,
0x0a, 0x41, 0x75, 0x74, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x05, 0x62,
0x61, 0x73, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x48, 0x00,
0x52, 0x05, 0x62, 0x61, 0x73, 0x69, 0x63, 0x12, 0x2a, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f,
0x6b, 0x65, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x05, 0x42, 0x61, 0x73, 0x69, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x75,
0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
0x6f, 0x72, 0x64, 0x22, 0x1d, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x22, 0x6e, 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61,
0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e,
0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61,
0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f,
0x77, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72,
0x69, 0x63, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x80, 0x01,
0x0a, 0x0e, 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
0x12, 0x3e, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77,
0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f,
0x77, 0x73, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73,
0x12, 0x2e, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
0x22, 0x64, 0x0a, 0x14, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74,
0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x6e, 0x74,
0x68, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73,
0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04,
0x64, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73,
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x2c, 0x0a, 0x0a, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61,
0x6c, 0x31, 0x32, 0x38, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x02, 0x68, 0x69, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
0x52, 0x02, 0x6c, 0x6f, 0x22, 0x6d, 0x0a, 0x17, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61,
0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
0x46, 0x0a, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x45,
0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x63, 0x69,
0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f,
0x65, 0x78, 0x74, 0x22, 0x4a, 0x0a, 0x14, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79,
0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70,
0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09,
0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61,
0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x2a,
0x31, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12,
0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c,
0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50,
0x10, 0x02, 0x2a, 0xd6, 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74,
0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e,
0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05,
0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32,
0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a,
0x05, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54,
0x31, 0x36, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07,
0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07,
0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f,
0x41, 0x54, 0x36, 0x34, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59,
0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08,
0x0a, 0x04, 0x44, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45,
0x54, 0x49, 0x4d, 0x45, 0x10, 0x0e, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54,
0x41, 0x4d, 0x50, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15,
0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53,
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x10, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53,
0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44,
0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f,
0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b,
0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a,
0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e,
0x44, 0x10, 0x14, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52,
0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d,
0x45, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17,
0x0a, 0x13, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f,
0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x17, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52,
0x56, 0x41, 0x4c, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b,
0x0a, 0x17, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48,
0x5f, 0x44, 0x41, 0x59, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x19, 0x12, 0x0e, 0x0a, 0x0a, 0x44,
0x45, 0x43, 0x49, 0x4d, 0x41, 0x4c, 0x31, 0x32, 0x38, 0x10, 0x1e, 0x42, 0x4f, 0x0a, 0x0e, 0x69,
0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43,
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x84, 0x02, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72,
0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x75, 0x72, 0x72,
0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f,
0x67, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65,
0x6e, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65,
0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65,
0x7a, 0x6f, 0x6e, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74,
0x65, 0x78, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e,
0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a,
0x3d, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd0,
0x02, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
0x12, 0x18, 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63,
0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x12, 0x3d, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x48, 0x65, 0x61, 0x64,
0x65, 0x72, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x62, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x64, 0x62, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x57, 0x0a, 0x0f, 0x74, 0x72, 0x61,
0x63, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x54,
0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x52, 0x0e, 0x74, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65,
0x78, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x06,
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x1a, 0x41,
0x0a, 0x13, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
0x01, 0x22, 0x3d, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61,
0x64, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
0x22, 0x42, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74,
0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x65,
0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72,
0x72, 0x4d, 0x73, 0x67, 0x22, 0x73, 0x0a, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x48, 0x65, 0x61, 0x64,
0x65, 0x72, 0x12, 0x2a, 0x0a, 0x05, 0x62, 0x61, 0x73, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x42, 0x61, 0x73, 0x69, 0x63, 0x48, 0x00, 0x52, 0x05, 0x62, 0x61, 0x73, 0x69, 0x63, 0x12, 0x2a,
0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65,
0x6e, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75,
0x74, 0x68, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x05, 0x42, 0x61, 0x73,
0x69, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a,
0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x1d, 0x0a, 0x05, 0x54, 0x6f,
0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6e, 0x0a, 0x09, 0x54, 0x61, 0x62,
0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f,
0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61,
0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61,
0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x41, 0x66, 0x66,
0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22,
0x23, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65,
0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x74,
0x72, 0x69, 0x63, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x0e, 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x4d,
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3e, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63,
0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66, 0x66,
0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63,
0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x2e, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69,
0x63, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x07,
0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x64, 0x0a, 0x14, 0x49, 0x6e, 0x74, 0x65, 0x72,
0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x12,
0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18,
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x64, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e,
0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x2c, 0x0a,
0x0a, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x12, 0x0e, 0x0a, 0x02, 0x68,
0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x68, 0x69, 0x12, 0x0e, 0x0a, 0x02, 0x6c,
0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x6c, 0x6f, 0x22, 0x6d, 0x0a, 0x17, 0x43,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74,
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61,
0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d,
0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48,
0x00, 0x52, 0x0b, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0a,
0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x22, 0x4a, 0x0a, 0x14, 0x44, 0x65,
0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18,
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e,
0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x2a, 0x31, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74,
0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x00, 0x12,
0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49,
0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02, 0x2a, 0xd6, 0x03, 0x0a, 0x0e, 0x43, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07,
0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x54,
0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x02, 0x12, 0x09,
0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54,
0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x05, 0x12,
0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55,
0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x36,
0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x09,
0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x0a, 0x12, 0x0a, 0x0a,
0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52,
0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12,
0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x0e, 0x12, 0x14, 0x0a,
0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e,
0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50,
0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x10, 0x12, 0x19,
0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x43, 0x52,
0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d,
0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e,
0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53, 0x45, 0x43, 0x4f,
0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x4c,
0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49,
0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x15,
0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43,
0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41,
0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x17, 0x12, 0x15,
0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x54,
0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41,
0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x4e, 0x41, 0x4e, 0x4f,
0x10, 0x19, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x43, 0x49, 0x4d, 0x41, 0x4c, 0x31, 0x32, 0x38,
0x10, 0x1e, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5a, 0x35, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -1181,40 +1268,43 @@ func file_greptime_v1_common_proto_rawDescGZIP() []byte {
}
var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
var file_greptime_v1_common_proto_goTypes = []interface{}{
(SemanticType)(0), // 0: greptime.v1.SemanticType
(ColumnDataType)(0), // 1: greptime.v1.ColumnDataType
(*RequestHeader)(nil), // 2: greptime.v1.RequestHeader
(*ResponseHeader)(nil), // 3: greptime.v1.ResponseHeader
(*Status)(nil), // 4: greptime.v1.Status
(*AuthHeader)(nil), // 5: greptime.v1.AuthHeader
(*Basic)(nil), // 6: greptime.v1.Basic
(*Token)(nil), // 7: greptime.v1.Token
(*TableName)(nil), // 8: greptime.v1.TableName
(*AffectedRows)(nil), // 9: greptime.v1.AffectedRows
(*Metrics)(nil), // 10: greptime.v1.Metrics
(*FlightMetadata)(nil), // 11: greptime.v1.FlightMetadata
(*IntervalMonthDayNano)(nil), // 12: greptime.v1.IntervalMonthDayNano
(*Decimal128)(nil), // 13: greptime.v1.Decimal128
(*ColumnDataTypeExtension)(nil), // 14: greptime.v1.ColumnDataTypeExtension
(*DecimalTypeExtension)(nil), // 15: greptime.v1.DecimalTypeExtension
nil, // 16: greptime.v1.RequestHeader.TracingContextEntry
(*QueryContext)(nil), // 2: greptime.v1.QueryContext
(*RequestHeader)(nil), // 3: greptime.v1.RequestHeader
(*ResponseHeader)(nil), // 4: greptime.v1.ResponseHeader
(*Status)(nil), // 5: greptime.v1.Status
(*AuthHeader)(nil), // 6: greptime.v1.AuthHeader
(*Basic)(nil), // 7: greptime.v1.Basic
(*Token)(nil), // 8: greptime.v1.Token
(*TableName)(nil), // 9: greptime.v1.TableName
(*AffectedRows)(nil), // 10: greptime.v1.AffectedRows
(*Metrics)(nil), // 11: greptime.v1.Metrics
(*FlightMetadata)(nil), // 12: greptime.v1.FlightMetadata
(*IntervalMonthDayNano)(nil), // 13: greptime.v1.IntervalMonthDayNano
(*Decimal128)(nil), // 14: greptime.v1.Decimal128
(*ColumnDataTypeExtension)(nil), // 15: greptime.v1.ColumnDataTypeExtension
(*DecimalTypeExtension)(nil), // 16: greptime.v1.DecimalTypeExtension
nil, // 17: greptime.v1.QueryContext.ExtensionsEntry
nil, // 18: greptime.v1.RequestHeader.TracingContextEntry
}
var file_greptime_v1_common_proto_depIdxs = []int32{
5, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader
16, // 1: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry
4, // 2: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status
6, // 3: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
7, // 4: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
9, // 5: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
10, // 6: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics
15, // 7: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
17, // 0: greptime.v1.QueryContext.extensions:type_name -> greptime.v1.QueryContext.ExtensionsEntry
6, // 1: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader
18, // 2: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry
5, // 3: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status
7, // 4: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
8, // 5: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
10, // 6: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
11, // 7: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics
16, // 8: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension
9, // [9:9] is the sub-list for method output_type
9, // [9:9] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
}
func init() { file_greptime_v1_common_proto_init() }
@@ -1224,7 +1314,7 @@ func file_greptime_v1_common_proto_init() {
}
if !protoimpl.UnsafeEnabled {
file_greptime_v1_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RequestHeader); i {
switch v := v.(*QueryContext); i {
case 0:
return &v.state
case 1:
@@ -1236,7 +1326,7 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResponseHeader); i {
switch v := v.(*RequestHeader); i {
case 0:
return &v.state
case 1:
@@ -1248,7 +1338,7 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Status); i {
switch v := v.(*ResponseHeader); i {
case 0:
return &v.state
case 1:
@@ -1260,7 +1350,7 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AuthHeader); i {
switch v := v.(*Status); i {
case 0:
return &v.state
case 1:
@@ -1272,7 +1362,7 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Basic); i {
switch v := v.(*AuthHeader); i {
case 0:
return &v.state
case 1:
@@ -1284,7 +1374,7 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Token); i {
switch v := v.(*Basic); i {
case 0:
return &v.state
case 1:
@@ -1296,7 +1386,7 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TableName); i {
switch v := v.(*Token); i {
case 0:
return &v.state
case 1:
@@ -1308,7 +1398,7 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AffectedRows); i {
switch v := v.(*TableName); i {
case 0:
return &v.state
case 1:
@@ -1320,7 +1410,7 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Metrics); i {
switch v := v.(*AffectedRows); i {
case 0:
return &v.state
case 1:
@@ -1332,7 +1422,7 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FlightMetadata); i {
switch v := v.(*Metrics); i {
case 0:
return &v.state
case 1:
@@ -1344,7 +1434,7 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IntervalMonthDayNano); i {
switch v := v.(*FlightMetadata); i {
case 0:
return &v.state
case 1:
@@ -1356,7 +1446,7 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Decimal128); i {
switch v := v.(*IntervalMonthDayNano); i {
case 0:
return &v.state
case 1:
@@ -1368,7 +1458,7 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ColumnDataTypeExtension); i {
switch v := v.(*Decimal128); i {
case 0:
return &v.state
case 1:
@@ -1380,6 +1470,18 @@ func file_greptime_v1_common_proto_init() {
}
}
file_greptime_v1_common_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ColumnDataTypeExtension); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_common_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DecimalTypeExtension); i {
case 0:
return &v.state
@@ -1392,11 +1494,11 @@ func file_greptime_v1_common_proto_init() {
}
}
}
file_greptime_v1_common_proto_msgTypes[3].OneofWrappers = []interface{}{
file_greptime_v1_common_proto_msgTypes[4].OneofWrappers = []interface{}{
(*AuthHeader_Basic)(nil),
(*AuthHeader_Token)(nil),
}
file_greptime_v1_common_proto_msgTypes[12].OneofWrappers = []interface{}{
file_greptime_v1_common_proto_msgTypes[13].OneofWrappers = []interface{}{
(*ColumnDataTypeExtension_DecimalType)(nil),
}
type x struct{}
@@ -1405,7 +1507,7 @@ func file_greptime_v1_common_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_common_proto_rawDesc,
NumEnums: 2,
NumMessages: 15,
NumMessages: 17,
NumExtensions: 0,
NumServices: 0,
},
+181 -165
View File
@@ -620,6 +620,7 @@ type DdlTaskRequest struct {
unknownFields protoimpl.UnknownFields
Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
QueryContext *v1.QueryContext `protobuf:"bytes,64,opt,name=query_context,json=queryContext,proto3" json:"query_context,omitempty"`
// Types that are assignable to Task:
//
// *DdlTaskRequest_CreateTableTask
@@ -675,6 +676,13 @@ func (x *DdlTaskRequest) GetHeader() *RequestHeader {
return nil
}
func (x *DdlTaskRequest) GetQueryContext() *v1.QueryContext {
if x != nil {
return x.QueryContext
}
return nil
}
func (m *DdlTaskRequest) GetTask() isDdlTaskRequest_Task {
if m != nil {
return m.Task
@@ -914,150 +922,156 @@ var file_greptime_v1_meta_ddl_proto_rawDesc = []byte{
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f,
0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x64, 0x6c, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0x5e, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,
0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x48, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78,
0x70, 0x72, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
0x73, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62,
0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x3f, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50,
0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6e,
0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49,
0x6e, 0x66, 0x6f, 0x22, 0x4b, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62,
0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x37, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73,
0x22, 0x4a, 0x0a, 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73,
0x6b, 0x12, 0x39, 0x0a, 0x0a, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70,
0x72, 0x52, 0x09, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x47, 0x0a, 0x0e,
0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x35,
0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05,
0x74, 0x61, 0x73, 0x6b, 0x73, 0x22, 0x49, 0x0a, 0x0e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61,
0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x6c, 0x74, 0x65, 0x72,
0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72,
0x45, 0x78, 0x70, 0x72, 0x52, 0x0a, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x22, 0x49, 0x0a, 0x0f, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61,
0x73, 0x6b, 0x73, 0x12, 0x36, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x22, 0x5a, 0x0a, 0x11, 0x54,
0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b,
0x12, 0x45, 0x0a, 0x0e, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62,
0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54,
0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61,
0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x56, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44,
0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x42, 0x0a, 0x0d, 0x64,
0x72, 0x6f, 0x70, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70,
0x72, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22,
0x4e, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73,
0x6b, 0x12, 0x3c, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x77,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x45,
0x78, 0x70, 0x72, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x22,
0x46, 0x0a, 0x0c, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12,
0x36, 0x0a, 0x09, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x70, 0x72, 0x52, 0x08, 0x64,
0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x22, 0xc9, 0x07, 0x0a, 0x0e, 0x44, 0x64, 0x6c, 0x54,
0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65,
0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61,
0x64, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61,
0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73,
0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0f, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62,
0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00,
0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12,
0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74,
0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74,
0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61,
0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a,
0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72,
0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48,
0x00, 0x52, 0x11, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x54, 0x61, 0x73, 0x6b, 0x12, 0x52, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74,
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x74, 0x6f, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f,
0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5e, 0x0a, 0x12,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61,
0x73, 0x6b, 0x12, 0x48, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74,
0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0e, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0xae, 0x01, 0x0a,
0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b,
0x12, 0x3f, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x45, 0x78, 0x70, 0x72, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c,
0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18,
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69,
0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d,
0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01,
0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x4b, 0x0a,
0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b,
0x73, 0x12, 0x37, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61,
0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4c, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70,
0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c,
0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4f, 0x0a, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62,
0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x52, 0x0a, 0x12, 0x64, 0x72, 0x6f, 0x70, 0x5f,
0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x09, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62,
0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x44,
0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x58, 0x0a, 0x14, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74,
0x61, 0x73, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48,
0x00, 0x52, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f,
0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73,
0x6b, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54,
0x61, 0x73, 0x6b, 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x66, 0x6c, 0x6f, 0x77,
0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44,
0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0c, 0x64,
0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x74,
0x61, 0x73, 0x6b, 0x22, 0xea, 0x01, 0x0a, 0x0f, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65,
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65,
0x72, 0x12, 0x2f, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70,
0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04,
0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x22, 0x4a, 0x0a, 0x0d, 0x44, 0x72,
0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x39, 0x0a, 0x0a, 0x64,
0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72,
0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x64, 0x72, 0x6f,
0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x47, 0x0a, 0x0e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61,
0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x35, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54,
0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x22,
0x49, 0x0a, 0x0e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73,
0x6b, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0a,
0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x49, 0x0a, 0x0f, 0x41, 0x6c,
0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x36, 0x0a,
0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e,
0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05,
0x74, 0x61, 0x73, 0x6b, 0x73, 0x22, 0x5a, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74,
0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x45, 0x0a, 0x0e, 0x74, 0x72,
0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78,
0x70, 0x72, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c,
0x65, 0x22, 0x56, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x42, 0x0a, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x61,
0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44,
0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0c, 0x64, 0x72, 0x6f,
0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x4e, 0x0a, 0x0e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x3c, 0x0a, 0x0b, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0a, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x22, 0x46, 0x0a, 0x0c, 0x44, 0x72, 0x6f,
0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x36, 0x0a, 0x09, 0x64, 0x72, 0x6f,
0x70, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x46,
0x6c, 0x6f, 0x77, 0x45, 0x78, 0x70, 0x72, 0x52, 0x08, 0x64, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f,
0x77, 0x22, 0x89, 0x08, 0x0a, 0x0e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48,
0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3e, 0x0a,
0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x40,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52,
0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c,
0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54,
0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73,
0x2a, 0x23, 0x0a, 0x0b, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12,
0x0a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44,
0x72, 0x6f, 0x70, 0x10, 0x01, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d,
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d,
0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52,
0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x4f, 0x0a,
0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61,
0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x49,
0x0a, 0x0f, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73,
0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54,
0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74,
0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c,
0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61,
0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x72, 0x75, 0x6e, 0x63,
0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x05,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x11, 0x74, 0x72, 0x75,
0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x52,
0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74,
0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00,
0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73,
0x6b, 0x73, 0x12, 0x4c, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e,
0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00,
0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73,
0x12, 0x4f, 0x0a, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41,
0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00,
0x52, 0x0f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b,
0x73, 0x12, 0x52, 0x0a, 0x12, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
0x73, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73,
0x6b, 0x48, 0x00, 0x52, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x58, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f,
0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0a, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74,
0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x12, 0x63, 0x72, 0x65,
0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12,
0x4c, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74,
0x61, 0x73, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x46, 0x0a,
0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18,
0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f,
0x77, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f,
0x77, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, 0xea, 0x01,
0x0a, 0x0f, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61,
0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x03, 0x70,
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63,
0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x49, 0x64, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18,
0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x2a, 0x23, 0x0a, 0x0b, 0x44, 0x64,
0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10, 0x01, 0x42,
0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -1099,9 +1113,10 @@ var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{
(*v1.CreateFlowExpr)(nil), // 21: greptime.v1.CreateFlowExpr
(*v1.DropFlowExpr)(nil), // 22: greptime.v1.DropFlowExpr
(*RequestHeader)(nil), // 23: greptime.v1.meta.RequestHeader
(*ResponseHeader)(nil), // 24: greptime.v1.meta.ResponseHeader
(*ProcedureId)(nil), // 25: greptime.v1.meta.ProcedureId
(*TableId)(nil), // 26: greptime.v1.meta.TableId
(*v1.QueryContext)(nil), // 24: greptime.v1.QueryContext
(*ResponseHeader)(nil), // 25: greptime.v1.meta.ResponseHeader
(*ProcedureId)(nil), // 26: greptime.v1.meta.ProcedureId
(*TableId)(nil), // 27: greptime.v1.meta.TableId
}
var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{
14, // 0: greptime.v1.meta.CreateDatabaseTask.create_database:type_name -> greptime.v1.CreateDatabaseExpr
@@ -1117,26 +1132,27 @@ var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{
21, // 10: greptime.v1.meta.CreateFlowTask.create_flow:type_name -> greptime.v1.CreateFlowExpr
22, // 11: greptime.v1.meta.DropFlowTask.drop_flow:type_name -> greptime.v1.DropFlowExpr
23, // 12: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader
2, // 13: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
4, // 14: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
6, // 15: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
8, // 16: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
3, // 17: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks
5, // 18: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks
7, // 19: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks
9, // 20: greptime.v1.meta.DdlTaskRequest.drop_database_task:type_name -> greptime.v1.meta.DropDatabaseTask
1, // 21: greptime.v1.meta.DdlTaskRequest.create_database_task:type_name -> greptime.v1.meta.CreateDatabaseTask
10, // 22: greptime.v1.meta.DdlTaskRequest.create_flow_task:type_name -> greptime.v1.meta.CreateFlowTask
11, // 23: greptime.v1.meta.DdlTaskRequest.drop_flow_task:type_name -> greptime.v1.meta.DropFlowTask
24, // 24: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
25, // 25: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId
26, // 26: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId
26, // 27: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId
28, // [28:28] is the sub-list for method output_type
28, // [28:28] is the sub-list for method input_type
28, // [28:28] is the sub-list for extension type_name
28, // [28:28] is the sub-list for extension extendee
0, // [0:28] is the sub-list for field type_name
24, // 13: greptime.v1.meta.DdlTaskRequest.query_context:type_name -> greptime.v1.QueryContext
2, // 14: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
4, // 15: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
6, // 16: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
8, // 17: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
3, // 18: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks
5, // 19: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks
7, // 20: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks
9, // 21: greptime.v1.meta.DdlTaskRequest.drop_database_task:type_name -> greptime.v1.meta.DropDatabaseTask
1, // 22: greptime.v1.meta.DdlTaskRequest.create_database_task:type_name -> greptime.v1.meta.CreateDatabaseTask
10, // 23: greptime.v1.meta.DdlTaskRequest.create_flow_task:type_name -> greptime.v1.meta.CreateFlowTask
11, // 24: greptime.v1.meta.DdlTaskRequest.drop_flow_task:type_name -> greptime.v1.meta.DropFlowTask
25, // 25: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
26, // 26: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId
27, // 27: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId
27, // 28: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId
29, // [29:29] is the sub-list for method output_type
29, // [29:29] is the sub-list for method input_type
29, // [29:29] is the sub-list for extension type_name
29, // [29:29] is the sub-list for extension extendee
0, // [0:29] is the sub-list for field type_name
}
func init() { file_greptime_v1_meta_ddl_proto_init() }
+257 -50
View File
@@ -7959,6 +7959,21 @@ public final class Ddl {
*/
greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder();
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
* @return Whether the queryContext field is set.
*/
boolean hasQueryContext();
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
* @return The queryContext.
*/
io.greptime.v1.Common.QueryContext getQueryContext();
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
*/
io.greptime.v1.Common.QueryContextOrBuilder getQueryContextOrBuilder();
/**
* <code>.greptime.v1.meta.CreateTableTask create_table_task = 2;</code>
* @return Whether the createTableTask field is set.
@@ -8338,6 +8353,19 @@ public final class Ddl {
taskCase_ = 12;
break;
}
case 514: {
io.greptime.v1.Common.QueryContext.Builder subBuilder = null;
if (queryContext_ != null) {
subBuilder = queryContext_.toBuilder();
}
queryContext_ = input.readMessage(io.greptime.v1.Common.QueryContext.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(queryContext_);
queryContext_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -8457,6 +8485,32 @@ public final class Ddl {
return getHeader();
}
public static final int QUERY_CONTEXT_FIELD_NUMBER = 64;
private io.greptime.v1.Common.QueryContext queryContext_;
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
* @return Whether the queryContext field is set.
*/
@java.lang.Override
public boolean hasQueryContext() {
return queryContext_ != null;
}
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
* @return The queryContext.
*/
@java.lang.Override
public io.greptime.v1.Common.QueryContext getQueryContext() {
return queryContext_ == null ? io.greptime.v1.Common.QueryContext.getDefaultInstance() : queryContext_;
}
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
*/
@java.lang.Override
public io.greptime.v1.Common.QueryContextOrBuilder getQueryContextOrBuilder() {
return getQueryContext();
}
public static final int CREATE_TABLE_TASK_FIELD_NUMBER = 2;
/**
* <code>.greptime.v1.meta.CreateTableTask create_table_task = 2;</code>
@@ -8848,6 +8902,9 @@ public final class Ddl {
if (taskCase_ == 12) {
output.writeMessage(12, (greptime.v1.meta.Ddl.DropFlowTask) task_);
}
if (queryContext_ != null) {
output.writeMessage(64, getQueryContext());
}
unknownFields.writeTo(output);
}
@@ -8905,6 +8962,10 @@ public final class Ddl {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (greptime.v1.meta.Ddl.DropFlowTask) task_);
}
if (queryContext_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(64, getQueryContext());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -8925,6 +8986,11 @@ public final class Ddl {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (hasQueryContext() != other.hasQueryContext()) return false;
if (hasQueryContext()) {
if (!getQueryContext()
.equals(other.getQueryContext())) return false;
}
if (!getTaskCase().equals(other.getTaskCase())) return false;
switch (taskCase_) {
case 2:
@@ -8989,6 +9055,10 @@ public final class Ddl {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
if (hasQueryContext()) {
hash = (37 * hash) + QUERY_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getQueryContext().hashCode();
}
switch (taskCase_) {
case 2:
hash = (37 * hash) + CREATE_TABLE_TASK_FIELD_NUMBER;
@@ -9176,6 +9246,12 @@ public final class Ddl {
header_ = null;
headerBuilder_ = null;
}
if (queryContextBuilder_ == null) {
queryContext_ = null;
} else {
queryContext_ = null;
queryContextBuilder_ = null;
}
taskCase_ = 0;
task_ = null;
return this;
@@ -9209,6 +9285,11 @@ public final class Ddl {
} else {
result.header_ = headerBuilder_.build();
}
if (queryContextBuilder_ == null) {
result.queryContext_ = queryContext_;
} else {
result.queryContext_ = queryContextBuilder_.build();
}
if (taskCase_ == 2) {
if (createTableTaskBuilder_ == null) {
result.task_ = task_;
@@ -9338,6 +9419,9 @@ public final class Ddl {
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasQueryContext()) {
mergeQueryContext(other.getQueryContext());
}
switch (other.getTaskCase()) {
case CREATE_TABLE_TASK: {
mergeCreateTableTask(other.getCreateTableTask());
@@ -9550,6 +9634,125 @@ public final class Ddl {
return headerBuilder_;
}
private io.greptime.v1.Common.QueryContext queryContext_;
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.QueryContext, io.greptime.v1.Common.QueryContext.Builder, io.greptime.v1.Common.QueryContextOrBuilder> queryContextBuilder_;
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
* @return Whether the queryContext field is set.
*/
public boolean hasQueryContext() {
return queryContextBuilder_ != null || queryContext_ != null;
}
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
* @return The queryContext.
*/
public io.greptime.v1.Common.QueryContext getQueryContext() {
if (queryContextBuilder_ == null) {
return queryContext_ == null ? io.greptime.v1.Common.QueryContext.getDefaultInstance() : queryContext_;
} else {
return queryContextBuilder_.getMessage();
}
}
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
*/
public Builder setQueryContext(io.greptime.v1.Common.QueryContext value) {
if (queryContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryContext_ = value;
onChanged();
} else {
queryContextBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
*/
public Builder setQueryContext(
io.greptime.v1.Common.QueryContext.Builder builderForValue) {
if (queryContextBuilder_ == null) {
queryContext_ = builderForValue.build();
onChanged();
} else {
queryContextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
*/
public Builder mergeQueryContext(io.greptime.v1.Common.QueryContext value) {
if (queryContextBuilder_ == null) {
if (queryContext_ != null) {
queryContext_ =
io.greptime.v1.Common.QueryContext.newBuilder(queryContext_).mergeFrom(value).buildPartial();
} else {
queryContext_ = value;
}
onChanged();
} else {
queryContextBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
*/
public Builder clearQueryContext() {
if (queryContextBuilder_ == null) {
queryContext_ = null;
onChanged();
} else {
queryContext_ = null;
queryContextBuilder_ = null;
}
return this;
}
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
*/
public io.greptime.v1.Common.QueryContext.Builder getQueryContextBuilder() {
onChanged();
return getQueryContextFieldBuilder().getBuilder();
}
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
*/
public io.greptime.v1.Common.QueryContextOrBuilder getQueryContextOrBuilder() {
if (queryContextBuilder_ != null) {
return queryContextBuilder_.getMessageOrBuilder();
} else {
return queryContext_ == null ?
io.greptime.v1.Common.QueryContext.getDefaultInstance() : queryContext_;
}
}
/**
* <code>.greptime.v1.QueryContext query_context = 64;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.QueryContext, io.greptime.v1.Common.QueryContext.Builder, io.greptime.v1.Common.QueryContextOrBuilder>
getQueryContextFieldBuilder() {
if (queryContextBuilder_ == null) {
queryContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.QueryContext, io.greptime.v1.Common.QueryContext.Builder, io.greptime.v1.Common.QueryContextOrBuilder>(
getQueryContext(),
getParentForChildren(),
isClean());
queryContext_ = null;
}
return queryContextBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
greptime.v1.meta.Ddl.CreateTableTask, greptime.v1.meta.Ddl.CreateTableTask.Builder, greptime.v1.meta.Ddl.CreateTableTaskOrBuilder> createTableTaskBuilder_;
/**
@@ -12832,55 +13035,57 @@ public final class Ddl {
"\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"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -12888,6 +13093,7 @@ public final class Ddl {
greptime.v1.meta.Common.getDescriptor(),
greptime.v1.meta.Route.getDescriptor(),
io.greptime.v1.Ddl.getDescriptor(),
io.greptime.v1.Common.getDescriptor(),
});
internal_static_greptime_v1_meta_CreateDatabaseTask_descriptor =
getDescriptor().getMessageTypes().get(0);
@@ -12960,7 +13166,7 @@ public final class Ddl {
internal_static_greptime_v1_meta_DdlTaskRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_meta_DdlTaskRequest_descriptor,
new java.lang.String[] { "Header", "CreateTableTask", "DropTableTask", "AlterTableTask", "TruncateTableTask", "CreateTableTasks", "DropTableTasks", "AlterTableTasks", "DropDatabaseTask", "CreateDatabaseTask", "CreateFlowTask", "DropFlowTask", "Task", });
new java.lang.String[] { "Header", "QueryContext", "CreateTableTask", "DropTableTask", "AlterTableTask", "TruncateTableTask", "CreateTableTasks", "DropTableTasks", "AlterTableTasks", "DropDatabaseTask", "CreateDatabaseTask", "CreateFlowTask", "DropFlowTask", "Task", });
internal_static_greptime_v1_meta_DdlTaskResponse_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_greptime_v1_meta_DdlTaskResponse_fieldAccessorTable = new
@@ -12970,6 +13176,7 @@ public final class Ddl {
greptime.v1.meta.Common.getDescriptor();
greptime.v1.meta.Route.getDescriptor();
io.greptime.v1.Ddl.getDescriptor();
io.greptime.v1.Common.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+7
View File
@@ -20,6 +20,13 @@ option java_package = "io.greptime.v1";
option java_outer_classname = "Common";
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
message QueryContext {
string current_catalog = 1;
string current_schema = 2;
string timezone = 4;
map<string, string> extensions = 5;
}
message RequestHeader {
// The `catalog` that is selected to be used in this request.
string catalog = 1;
+9
View File
@@ -33,6 +33,14 @@ service Flow {
rpc HandleMirrorRequest(InsertRequests) returns (FlowResponse);
}
message FlowRequestHeader {
// Encoded trace_id & span_id, follow the w3c Trace Context
// https://www.w3.org/TR/trace-context/#header-name
map<string, string> tracing_context = 1;
// The contextual information of the query
QueryContext query_context = 2;
}
message InsertRequests { repeated InsertRequest requests = 1; }
message InsertRequest {
@@ -41,6 +49,7 @@ message InsertRequest {
}
message FlowRequest {
FlowRequestHeader header = 64;
oneof body {
CreateRequest create = 1;
DropRequest drop = 2;
+2
View File
@@ -21,6 +21,7 @@ option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta"
import "greptime/v1/meta/common.proto";
import "greptime/v1/meta/route.proto";
import "greptime/v1/ddl.proto";
import "greptime/v1/common.proto";
enum DdlTaskType {
Create = 0;
@@ -69,6 +70,7 @@ message DropFlowTask {
message DdlTaskRequest {
RequestHeader header = 1;
QueryContext query_context = 64;
oneof task {
CreateTableTask create_table_task = 2;
-7
View File
@@ -26,13 +26,6 @@ import "greptime/v1/ddl.proto";
service Region { rpc Handle(RegionRequest) returns (RegionResponse); }
message QueryContext {
string current_catalog = 1;
string current_schema = 2;
string timezone = 4;
map<string, string> extensions = 5;
}
message RegionRequestHeader {
// Encoded trace_id & span_id, follow the w3c Trace Context
// https://www.w3.org/TR/trace-context/#header-name