diff --git a/c++/greptime/v1/common.pb.cc b/c++/greptime/v1/common.pb.cc index 70f1353a..43ad3751 100644 --- a/c++/greptime/v1/common.pb.cc +++ b/c++/greptime/v1/common.pb.cc @@ -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(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(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(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 extensions = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(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(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(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(this->_internal_timezone().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.QueryContext.timezone"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_timezone(), target); + } + + // map extensions = 5; + if (!this->_internal_extensions().empty()) { + using MapType = ::_pb::Map; + 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(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(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(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 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(&to_msg); + auto& from = static_cast(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); diff --git a/c++/greptime/v1/common.pb.h b/c++/greptime/v1/common.pb.h index 33b47a91..816cad96 100644 --- a/c++/greptime/v1/common.pb.h +++ b/c++/greptime/v1/common.pb.h @@ -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 { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry 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(&_QueryContext_ExtensionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(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(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( + &_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(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 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 + 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 + 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 + 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 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 +inline PROTOBUF_ALWAYS_INLINE +void QueryContext::set_current_catalog(ArgT0&& arg0, ArgT... args) { + + _impl_.current_catalog_.Set(static_cast(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 +inline PROTOBUF_ALWAYS_INLINE +void QueryContext::set_current_schema(ArgT0&& arg0, ArgT... args) { + + _impl_.current_schema_.Set(static_cast(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 +inline PROTOBUF_ALWAYS_INLINE +void QueryContext::set_timezone(ArgT0&& arg0, ArgT... args) { + + _impl_.timezone_.Set(static_cast(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 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) diff --git a/c++/greptime/v1/flow/server.pb.cc b/c++/greptime/v1/flow/server.pb.cc index b1304e64..2c4798e2 100644 --- a/c++/greptime/v1/flow/server.pb.cc +++ b/c++/greptime/v1/flow/server.pb.cc @@ -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 tracing_context = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(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(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 tracing_context = 1; + if (!this->_internal_tracing_context().empty()) { + using MapType = ::_pb::Map; + 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(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(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(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 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(&to_msg); + auto& from = static_cast(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(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 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TaskId::GetMetadata() const { } // 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); diff --git a/c++/greptime/v1/flow/server.pb.h b/c++/greptime/v1/flow/server.pb.h index 3e0169cb..44217efe 100644 --- a/c++/greptime/v1/flow/server.pb.h +++ b/c++/greptime/v1/flow/server.pb.h @@ -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 { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry 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(&_FlowRequestHeader_TracingContextEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(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(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( + &_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(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 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 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 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( + ::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( + ::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) diff --git a/c++/greptime/v1/meta/ddl.pb.cc b/c++/greptime/v1/meta/ddl.pb.cc index 4467a8f3..4b888220 100644 --- a/c++/greptime/v1/meta/ddl.pb.cc +++ b/c++/greptime/v1/meta/ddl.pb.cc @@ -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\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_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(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(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); swap(_impl_.task_, other->_impl_.task_); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } diff --git a/c++/greptime/v1/meta/ddl.pb.h b/c++/greptime/v1/meta/ddl.pb.h index 2bfee292..00217a82 100644 --- a/c++/greptime/v1/meta/ddl.pb.h +++ b/c++/greptime/v1/meta/ddl.pb.h @@ -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 #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( + ::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; diff --git a/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc index 612cddbd..b17c95b0 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -23,33 +23,6 @@ namespace _pbi = _pb::internal; namespace greptime { namespace v1 { namespace region { -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 RegionRequestHeader_TracingContextEntry_DoNotUse::RegionRequestHeader_TracingContextEntry_DoNotUse( ::_pbi::ConstantInitialized) {} struct RegionRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal { @@ -433,31 +406,11 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace region } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[30]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[28]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr; const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryContext_ExtensionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::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::region::QueryContext_ExtensionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryContext_ExtensionsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::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::region::QueryContext, _impl_.current_catalog_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryContext, _impl_.current_schema_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryContext, _impl_.timezone_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryContext, _impl_.extensions_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -705,41 +658,37 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionColumnDef, _impl_.column_id_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 8, -1, sizeof(::greptime::v1::region::QueryContext_ExtensionsEntry_DoNotUse)}, - { 10, -1, -1, sizeof(::greptime::v1::region::QueryContext)}, - { 20, 28, -1, sizeof(::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse)}, - { 30, -1, -1, sizeof(::greptime::v1::region::RegionRequestHeader)}, - { 39, -1, -1, sizeof(::greptime::v1::region::RegionRequest)}, - { 60, 68, -1, sizeof(::greptime::v1::region::RegionResponse_ExtensionEntry_DoNotUse)}, - { 70, -1, -1, sizeof(::greptime::v1::region::RegionResponse)}, - { 79, -1, -1, sizeof(::greptime::v1::region::InsertRequests)}, - { 86, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)}, - { 93, -1, -1, sizeof(::greptime::v1::region::InsertRequest)}, - { 101, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)}, - { 109, -1, -1, sizeof(::greptime::v1::region::QueryRequest)}, - { 118, -1, -1, sizeof(::greptime::v1::region::CreateRequests)}, - { 125, 133, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)}, - { 135, -1, -1, sizeof(::greptime::v1::region::CreateRequest)}, - { 147, -1, -1, sizeof(::greptime::v1::region::DropRequests)}, - { 154, -1, -1, sizeof(::greptime::v1::region::DropRequest)}, - { 161, 169, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)}, - { 171, -1, -1, sizeof(::greptime::v1::region::OpenRequest)}, - { 181, -1, -1, sizeof(::greptime::v1::region::CloseRequest)}, - { 188, -1, -1, sizeof(::greptime::v1::region::AlterRequests)}, - { 195, -1, -1, sizeof(::greptime::v1::region::AlterRequest)}, - { 207, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, - { 214, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, - { 221, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, - { 229, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, - { 236, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, - { 243, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, - { 250, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, - { 257, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, + { 0, 8, -1, sizeof(::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse)}, + { 10, -1, -1, sizeof(::greptime::v1::region::RegionRequestHeader)}, + { 19, -1, -1, sizeof(::greptime::v1::region::RegionRequest)}, + { 40, 48, -1, sizeof(::greptime::v1::region::RegionResponse_ExtensionEntry_DoNotUse)}, + { 50, -1, -1, sizeof(::greptime::v1::region::RegionResponse)}, + { 59, -1, -1, sizeof(::greptime::v1::region::InsertRequests)}, + { 66, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)}, + { 73, -1, -1, sizeof(::greptime::v1::region::InsertRequest)}, + { 81, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)}, + { 89, -1, -1, sizeof(::greptime::v1::region::QueryRequest)}, + { 98, -1, -1, sizeof(::greptime::v1::region::CreateRequests)}, + { 105, 113, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)}, + { 115, -1, -1, sizeof(::greptime::v1::region::CreateRequest)}, + { 127, -1, -1, sizeof(::greptime::v1::region::DropRequests)}, + { 134, -1, -1, sizeof(::greptime::v1::region::DropRequest)}, + { 141, 149, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)}, + { 151, -1, -1, sizeof(::greptime::v1::region::OpenRequest)}, + { 161, -1, -1, sizeof(::greptime::v1::region::CloseRequest)}, + { 168, -1, -1, sizeof(::greptime::v1::region::AlterRequests)}, + { 175, -1, -1, sizeof(::greptime::v1::region::AlterRequest)}, + { 187, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, + { 194, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, + { 201, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, + { 209, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, + { 216, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, + { 223, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, + { 230, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, + { 237, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::greptime::v1::region::_QueryContext_ExtensionsEntry_DoNotUse_default_instance_._instance, - &::greptime::v1::region::_QueryContext_default_instance_._instance, &::greptime::v1::region::_RegionRequestHeader_TracingContextEntry_DoNotUse_default_instance_._instance, &::greptime::v1::region::_RegionRequestHeader_default_instance_._instance, &::greptime::v1::region::_RegionRequest_default_instance_._instance, @@ -774,92 +723,87 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P "\n\037greptime/v1/region/server.proto\022\022grept" "ime.v1.region\032\030greptime/v1/common.proto\032" "\025greptime/v1/row.proto\032\025greptime/v1/ddl." - "proto\"\312\001\n\014QueryContext\022\027\n\017current_catalo" - "g\030\001 \001(\t\022\026\n\016current_schema\030\002 \001(\t\022\020\n\010timez" - "one\030\004 \001(\t\022D\n\nextensions\030\005 \003(\01320.greptime" - ".v1.region.QueryContext.ExtensionsEntry\032" - "1\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - "\030\002 \001(\t:\0028\001\"\353\001\n\023RegionRequestHeader\022T\n\017tr" - "acing_context\030\005 \003(\0132;.greptime.v1.region" - ".RegionRequestHeader.TracingContextEntry" - "\022\016\n\006dbname\030\003 \001(\t\0227\n\rquery_context\030\006 \001(\0132" - " .greptime.v1.region.QueryContext\0325\n\023Tra" - "cingContextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - " \001(\t:\0028\001\"\375\005\n\rRegionRequest\0227\n\006header\030\001 \001" - "(\0132\'.greptime.v1.region.RegionRequestHea" - "der\0225\n\007inserts\030\003 \001(\0132\".greptime.v1.regio" - "n.InsertRequestsH\000\0225\n\007deletes\030\004 \001(\0132\".gr" - "eptime.v1.region.DeleteRequestsH\000\0223\n\006cre" - "ate\030\005 \001(\0132!.greptime.v1.region.CreateReq" - "uestH\000\022/\n\004drop\030\006 \001(\0132\037.greptime.v1.regio" - "n.DropRequestH\000\022/\n\004open\030\007 \001(\0132\037.greptime" - ".v1.region.OpenRequestH\000\0221\n\005close\030\010 \001(\0132" - " .greptime.v1.region.CloseRequestH\000\0221\n\005a" - "lter\030\t \001(\0132 .greptime.v1.region.AlterReq" - "uestH\000\0221\n\005flush\030\n \001(\0132 .greptime.v1.regi" - "on.FlushRequestH\000\0225\n\007compact\030\013 \001(\0132\".gre" - "ptime.v1.region.CompactRequestH\000\0227\n\010trun" - "cate\030\014 \001(\0132#.greptime.v1.region.Truncate" - "RequestH\000\0225\n\007creates\030\r \001(\0132\".greptime.v1" - ".region.CreateRequestsH\000\0221\n\005drops\030\016 \001(\0132" - " .greptime.v1.region.DropRequestsH\000\0223\n\006a" - "lters\030\017 \001(\0132!.greptime.v1.region.AlterRe" - "questsH\000B\006\n\004body\"\314\001\n\016RegionResponse\022+\n\006h" - "eader\030\001 \001(\0132\033.greptime.v1.ResponseHeader" - "\022\025\n\raffected_rows\030\002 \001(\004\022D\n\textension\030\003 \003" - "(\01321.greptime.v1.region.RegionResponse.E" - "xtensionEntry\0320\n\016ExtensionEntry\022\013\n\003key\030\001" - " \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"E\n\016InsertRequest" - "s\0223\n\010requests\030\001 \003(\0132!.greptime.v1.region" - ".InsertRequest\"E\n\016DeleteRequests\0223\n\010requ" - "ests\030\001 \003(\0132!.greptime.v1.region.DeleteRe" - "quest\"C\n\rInsertRequest\022\021\n\tregion_id\030\001 \001(" - "\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"C\n\rDe" - "leteRequest\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002" - " \001(\0132\021.greptime.v1.Rows\"h\n\014QueryRequest\022" - "7\n\006header\030\001 \001(\0132\'.greptime.v1.region.Reg" - "ionRequestHeader\022\021\n\tregion_id\030\002 \001(\004\022\014\n\004p" - "lan\030\003 \001(\014\"E\n\016CreateRequests\0223\n\010requests\030" - "\001 \003(\0132!.greptime.v1.region.CreateRequest" - "\"\200\002\n\rCreateRequest\022\021\n\tregion_id\030\001 \001(\004\022\016\n" - "\006engine\030\002 \001(\t\0228\n\013column_defs\030\003 \003(\0132#.gre" - "ptime.v1.region.RegionColumnDef\022\023\n\013prima" - "ry_key\030\004 \003(\r\022\014\n\004path\030\005 \001(\t\022\?\n\007options\030\006 " - "\003(\0132..greptime.v1.region.CreateRequest.O" - "ptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t" - "\022\r\n\005value\030\002 \001(\t:\0028\001\"A\n\014DropRequests\0221\n\010r" - "equests\030\001 \003(\0132\037.greptime.v1.region.DropR" - "equest\" \n\013DropRequest\022\021\n\tregion_id\030\001 \001(\004" - "\"\255\001\n\013OpenRequest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006e" - "ngine\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022=\n\007options\030\004 \003" - "(\0132,.greptime.v1.region.OpenRequest.Opti" - "onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - "\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregi" - "on_id\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010requests" - "\030\001 \003(\0132 .greptime.v1.region.AlterRequest" - "\"\360\001\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013" - "add_columns\030\002 \001(\0132\036.greptime.v1.region.A" - "ddColumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037.grep" - "time.v1.region.DropColumnsH\000\022=\n\023change_c" - "olumn_types\030\005 \001(\0132\036.greptime.v1.ChangeCo" - "lumnTypesH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004k" - "ind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(\0132\035" - ".greptime.v1.region.AddColumn\"C\n\013DropCol" - "umns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime.v1" - ".region.DropColumn\"v\n\tAddColumn\0227\n\ncolum" - "n_def\030\001 \001(\0132#.greptime.v1.region.RegionC" - "olumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1" - ".AddColumnLocation\"\032\n\nDropColumn\022\014\n\004name" - "\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001(" - "\004\"#\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"$" - "\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017" - "RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.gr" - "eptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y" - "\n\006Region\022O\n\006Handle\022!.greptime.v1.region." - "RegionRequest\032\".greptime.v1.region.Regio" - "nResponseB]\n\025io.greptime.v1.regionB\006Serv" - "erZOwnCustomDestructor(this, &QueryContext::ArenaDtor); - } - // @@protoc_insertion_point(arena_constructor:greptime.v1.region.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.region.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.region.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.region.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(tag) == 10)) { - auto str = _internal_mutable_current_catalog(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.QueryContext.current_catalog")); - } else - goto handle_unusual; - continue; - // string current_schema = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_current_schema(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.QueryContext.current_schema")); - } else - goto handle_unusual; - continue; - // string timezone = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_timezone(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.QueryContext.timezone")); - } else - goto handle_unusual; - continue; - // map extensions = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(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.region.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(this->_internal_current_catalog().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.region.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(this->_internal_current_schema().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.region.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(this->_internal_timezone().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.region.QueryContext.timezone"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_timezone(), target); - } - - // map extensions = 5; - if (!this->_internal_extensions().empty()) { - using MapType = ::_pb::Map; - 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(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.region.QueryContext.ExtensionsEntry.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.region.QueryContext.ExtensionsEntry.value"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(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.region.QueryContext) - return target; -} - -size_t QueryContext::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.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 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(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.region.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.region.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_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[1]); -} - -// =================================================================== - RegionRequestHeader_TracingContextEntry_DoNotUse::RegionRequestHeader_TracingContextEntry_DoNotUse() {} RegionRequestHeader_TracingContextEntry_DoNotUse::RegionRequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} @@ -1281,20 +840,26 @@ void RegionRequestHeader_TracingContextEntry_DoNotUse::MergeFrom(const RegionReq ::PROTOBUF_NAMESPACE_ID::Metadata RegionRequestHeader_TracingContextEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[2]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[0]); } // =================================================================== class RegionRequestHeader::_Internal { public: - static const ::greptime::v1::region::QueryContext& query_context(const RegionRequestHeader* msg); + static const ::greptime::v1::QueryContext& query_context(const RegionRequestHeader* msg); }; -const ::greptime::v1::region::QueryContext& +const ::greptime::v1::QueryContext& RegionRequestHeader::_Internal::query_context(const RegionRequestHeader* msg) { return *msg->_impl_.query_context_; } +void RegionRequestHeader::clear_query_context() { + if (GetArenaForAllocation() == nullptr && _impl_.query_context_ != nullptr) { + delete _impl_.query_context_; + } + _impl_.query_context_ = nullptr; +} RegionRequestHeader::RegionRequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -1324,7 +889,7 @@ RegionRequestHeader::RegionRequestHeader(const RegionRequestHeader& from) _this->GetArenaForAllocation()); } if (from._internal_has_query_context()) { - _this->_impl_.query_context_ = new ::greptime::v1::region::QueryContext(*from._impl_.query_context_); + _this->_impl_.query_context_ = new ::greptime::v1::QueryContext(*from._impl_.query_context_); } // @@protoc_insertion_point(copy_constructor:greptime.v1.region.RegionRequestHeader) } @@ -1415,7 +980,7 @@ const char* RegionRequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseCo } else goto handle_unusual; continue; - // .greptime.v1.region.QueryContext query_context = 6; + // .greptime.v1.QueryContext query_context = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { ptr = ctx->ParseMessage(_internal_mutable_query_context(), ptr); @@ -1492,7 +1057,7 @@ uint8_t* RegionRequestHeader::_InternalSerialize( } } - // .greptime.v1.region.QueryContext query_context = 6; + // .greptime.v1.QueryContext query_context = 6; if (this->_internal_has_query_context()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(6, _Internal::query_context(this), @@ -1531,7 +1096,7 @@ size_t RegionRequestHeader::ByteSizeLong() const { this->_internal_dbname()); } - // .greptime.v1.region.QueryContext query_context = 6; + // .greptime.v1.QueryContext query_context = 6; if (this->_internal_has_query_context()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( @@ -1561,7 +1126,7 @@ void RegionRequestHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co _this->_internal_set_dbname(from._internal_dbname()); } if (from._internal_has_query_context()) { - _this->_internal_mutable_query_context()->::greptime::v1::region::QueryContext::MergeFrom( + _this->_internal_mutable_query_context()->::greptime::v1::QueryContext::MergeFrom( from._internal_query_context()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -1594,7 +1159,7 @@ void RegionRequestHeader::InternalSwap(RegionRequestHeader* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RegionRequestHeader::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[3]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[1]); } // =================================================================== @@ -2579,7 +2144,7 @@ void RegionRequest::InternalSwap(RegionRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RegionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[4]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[2]); } // =================================================================== @@ -2593,7 +2158,7 @@ void RegionResponse_ExtensionEntry_DoNotUse::MergeFrom(const RegionResponse_Exte ::PROTOBUF_NAMESPACE_ID::Metadata RegionResponse_ExtensionEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[5]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[3]); } // =================================================================== @@ -2887,7 +2452,7 @@ void RegionResponse::InternalSwap(RegionResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RegionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[6]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[4]); } // =================================================================== @@ -3072,7 +2637,7 @@ void InsertRequests::InternalSwap(InsertRequests* other) { ::PROTOBUF_NAMESPACE_ID::Metadata InsertRequests::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[7]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[5]); } // =================================================================== @@ -3257,7 +2822,7 @@ void DeleteRequests::InternalSwap(DeleteRequests* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequests::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[8]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[6]); } // =================================================================== @@ -3487,7 +3052,7 @@ void InsertRequest::InternalSwap(InsertRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata InsertRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[9]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[7]); } // =================================================================== @@ -3717,7 +3282,7 @@ void DeleteRequest::InternalSwap(DeleteRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[10]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[8]); } // =================================================================== @@ -3988,7 +3553,7 @@ void QueryRequest::InternalSwap(QueryRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata QueryRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[11]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[9]); } // =================================================================== @@ -4173,7 +3738,7 @@ void CreateRequests::InternalSwap(CreateRequests* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateRequests::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[12]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[10]); } // =================================================================== @@ -4187,7 +3752,7 @@ void CreateRequest_OptionsEntry_DoNotUse::MergeFrom(const CreateRequest_OptionsE ::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest_OptionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[13]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[11]); } // =================================================================== @@ -4611,7 +4176,7 @@ void CreateRequest::InternalSwap(CreateRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[14]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[12]); } // =================================================================== @@ -4796,7 +4361,7 @@ void DropRequests::InternalSwap(DropRequests* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropRequests::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[15]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[13]); } // =================================================================== @@ -4974,7 +4539,7 @@ void DropRequest::InternalSwap(DropRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[16]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[14]); } // =================================================================== @@ -4988,7 +4553,7 @@ void OpenRequest_OptionsEntry_DoNotUse::MergeFrom(const OpenRequest_OptionsEntry ::PROTOBUF_NAMESPACE_ID::Metadata OpenRequest_OptionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[17]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[15]); } // =================================================================== @@ -5336,7 +4901,7 @@ void OpenRequest::InternalSwap(OpenRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata OpenRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[18]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[16]); } // =================================================================== @@ -5514,7 +5079,7 @@ void CloseRequest::InternalSwap(CloseRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CloseRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[19]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[17]); } // =================================================================== @@ -5699,7 +5264,7 @@ void AlterRequests::InternalSwap(AlterRequests* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AlterRequests::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[20]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[18]); } // =================================================================== @@ -6131,7 +5696,7 @@ void AlterRequest::InternalSwap(AlterRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AlterRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[21]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[19]); } // =================================================================== @@ -6316,7 +5881,7 @@ void AddColumns::InternalSwap(AddColumns* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumns::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[22]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[20]); } // =================================================================== @@ -6501,7 +6066,7 @@ void DropColumns::InternalSwap(DropColumns* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[23]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[21]); } // =================================================================== @@ -6746,7 +6311,7 @@ void AddColumn::InternalSwap(AddColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[24]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[22]); } // =================================================================== @@ -6949,7 +6514,7 @@ void DropColumn::InternalSwap(DropColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[25]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[23]); } // =================================================================== @@ -7127,7 +6692,7 @@ void FlushRequest::InternalSwap(FlushRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata FlushRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[26]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[24]); } // =================================================================== @@ -7305,7 +6870,7 @@ void CompactRequest::InternalSwap(CompactRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CompactRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[27]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[25]); } // =================================================================== @@ -7483,7 +7048,7 @@ void TruncateRequest::InternalSwap(TruncateRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TruncateRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[28]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[26]); } // =================================================================== @@ -7713,7 +7278,7 @@ void RegionColumnDef::InternalSwap(RegionColumnDef* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RegionColumnDef::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[29]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[27]); } // @@protoc_insertion_point(namespace_scope) @@ -7721,14 +7286,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata RegionColumnDef::GetMetadata() const { } // namespace v1 } // namespace greptime PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::greptime::v1::region::QueryContext_ExtensionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::greptime::v1::region::QueryContext_ExtensionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::region::QueryContext_ExtensionsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::greptime::v1::region::QueryContext* -Arena::CreateMaybeMessage< ::greptime::v1::region::QueryContext >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::region::QueryContext >(arena); -} template<> PROTOBUF_NOINLINE ::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage< ::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse >(arena); diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h index 22a4bc30..5508d5bb 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -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 { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry 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(&_QueryContext_ExtensionsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(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(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( - &_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(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 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 - 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 - 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 - 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 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 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 -inline PROTOBUF_ALWAYS_INLINE -void QueryContext::set_current_catalog(ArgT0&& arg0, ArgT... args) { - - _impl_.current_catalog_.Set(static_cast(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 -inline PROTOBUF_ALWAYS_INLINE -void QueryContext::set_current_schema(ArgT0&& arg0, ArgT... args) { - - _impl_.current_schema_.Set(static_cast(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 -inline PROTOBUF_ALWAYS_INLINE -void QueryContext::set_timezone(ArgT0&& arg0, ArgT... args) { - - _impl_.timezone_.Set(static_cast(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 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 tracing_context = 5; @@ -5213,30 +4781,24 @@ inline void RegionRequestHeader::set_allocated_dbname(std::string* dbname) { // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.RegionRequestHeader.dbname) } -// .greptime.v1.region.QueryContext query_context = 6; +// .greptime.v1.QueryContext query_context = 6; inline bool RegionRequestHeader::_internal_has_query_context() const { return this != internal_default_instance() && _impl_.query_context_ != nullptr; } inline bool RegionRequestHeader::has_query_context() const { return _internal_has_query_context(); } -inline void RegionRequestHeader::clear_query_context() { - if (GetArenaForAllocation() == nullptr && _impl_.query_context_ != nullptr) { - delete _impl_.query_context_; - } - _impl_.query_context_ = nullptr; +inline const ::greptime::v1::QueryContext& RegionRequestHeader::_internal_query_context() const { + const ::greptime::v1::QueryContext* p = _impl_.query_context_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_QueryContext_default_instance_); } -inline const ::greptime::v1::region::QueryContext& RegionRequestHeader::_internal_query_context() const { - const ::greptime::v1::region::QueryContext* p = _impl_.query_context_; - return p != nullptr ? *p : reinterpret_cast( - ::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) diff --git a/go/greptime/v1/common.pb.go b/go/greptime/v1/common.pb.go index 2f3c7a60..3416436e 100644 --- a/go/greptime/v1/common.pb.go +++ b/go/greptime/v1/common.pb.go @@ -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, }, diff --git a/go/greptime/v1/meta/ddl.pb.go b/go/greptime/v1/meta/ddl.pb.go index 669e0232..1c9fb5e5 100644 --- a/go/greptime/v1/meta/ddl.pb.go +++ b/go/greptime/v1/meta/ddl.pb.go @@ -619,7 +619,8 @@ type DdlTaskRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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, + 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, 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, 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, + 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, 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, + 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() } diff --git a/java/src/main/java/greptime/v1/meta/Ddl.java b/java/src/main/java/greptime/v1/meta/Ddl.java index e8573e8c..3cb9aabd 100644 --- a/java/src/main/java/greptime/v1/meta/Ddl.java +++ b/java/src/main/java/greptime/v1/meta/Ddl.java @@ -7959,6 +7959,21 @@ public interface DdlTaskRequestOrBuilder extends */ greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder(); + /** + * .greptime.v1.QueryContext query_context = 64; + * @return Whether the queryContext field is set. + */ + boolean hasQueryContext(); + /** + * .greptime.v1.QueryContext query_context = 64; + * @return The queryContext. + */ + io.greptime.v1.Common.QueryContext getQueryContext(); + /** + * .greptime.v1.QueryContext query_context = 64; + */ + io.greptime.v1.Common.QueryContextOrBuilder getQueryContextOrBuilder(); + /** * .greptime.v1.meta.CreateTableTask create_table_task = 2; * @return Whether the createTableTask field is set. @@ -8338,6 +8353,19 @@ private DdlTaskRequest( 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 greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } + public static final int QUERY_CONTEXT_FIELD_NUMBER = 64; + private io.greptime.v1.Common.QueryContext queryContext_; + /** + * .greptime.v1.QueryContext query_context = 64; + * @return Whether the queryContext field is set. + */ + @java.lang.Override + public boolean hasQueryContext() { + return queryContext_ != null; + } + /** + * .greptime.v1.QueryContext query_context = 64; + * @return The queryContext. + */ + @java.lang.Override + public io.greptime.v1.Common.QueryContext getQueryContext() { + return queryContext_ == null ? io.greptime.v1.Common.QueryContext.getDefaultInstance() : queryContext_; + } + /** + * .greptime.v1.QueryContext query_context = 64; + */ + @java.lang.Override + public io.greptime.v1.Common.QueryContextOrBuilder getQueryContextOrBuilder() { + return getQueryContext(); + } + public static final int CREATE_TABLE_TASK_FIELD_NUMBER = 2; /** * .greptime.v1.meta.CreateTableTask create_table_task = 2; @@ -8848,6 +8902,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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 int getSerializedSize() { 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 boolean equals(final java.lang.Object obj) { 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 int hashCode() { 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 Builder clear() { 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 greptime.v1.meta.Ddl.DdlTaskRequest buildPartial() { } 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 Builder mergeFrom(greptime.v1.meta.Ddl.DdlTaskRequest other) { 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 greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { 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_; + /** + * .greptime.v1.QueryContext query_context = 64; + * @return Whether the queryContext field is set. + */ + public boolean hasQueryContext() { + return queryContextBuilder_ != null || queryContext_ != null; + } + /** + * .greptime.v1.QueryContext query_context = 64; + * @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(); + } + } + /** + * .greptime.v1.QueryContext query_context = 64; + */ + 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; + } + /** + * .greptime.v1.QueryContext query_context = 64; + */ + public Builder setQueryContext( + io.greptime.v1.Common.QueryContext.Builder builderForValue) { + if (queryContextBuilder_ == null) { + queryContext_ = builderForValue.build(); + onChanged(); + } else { + queryContextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.QueryContext query_context = 64; + */ + 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; + } + /** + * .greptime.v1.QueryContext query_context = 64; + */ + public Builder clearQueryContext() { + if (queryContextBuilder_ == null) { + queryContext_ = null; + onChanged(); + } else { + queryContext_ = null; + queryContextBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.QueryContext query_context = 64; + */ + public io.greptime.v1.Common.QueryContext.Builder getQueryContextBuilder() { + + onChanged(); + return getQueryContextFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.QueryContext query_context = 64; + */ + public io.greptime.v1.Common.QueryContextOrBuilder getQueryContextOrBuilder() { + if (queryContextBuilder_ != null) { + return queryContextBuilder_.getMessageOrBuilder(); + } else { + return queryContext_ == null ? + io.greptime.v1.Common.QueryContext.getDefaultInstance() : queryContext_; + } + } + /** + * .greptime.v1.QueryContext query_context = 64; + */ + 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 greptime.v1.meta.Ddl.DdlTaskResponse getDefaultInstanceForType() { "\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\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\001Bstring current_catalog = 1; + * @return The currentCatalog. + */ + java.lang.String getCurrentCatalog(); + /** + * string current_catalog = 1; + * @return The bytes for currentCatalog. + */ + com.google.protobuf.ByteString + getCurrentCatalogBytes(); + + /** + * string current_schema = 2; + * @return The currentSchema. + */ + java.lang.String getCurrentSchema(); + /** + * string current_schema = 2; + * @return The bytes for currentSchema. + */ + com.google.protobuf.ByteString + getCurrentSchemaBytes(); + + /** + * string timezone = 4; + * @return The timezone. + */ + java.lang.String getTimezone(); + /** + * string timezone = 4; + * @return The bytes for timezone. + */ + com.google.protobuf.ByteString + getTimezoneBytes(); + + /** + * map<string, string> extensions = 5; + */ + int getExtensionsCount(); + /** + * map<string, string> extensions = 5; + */ + boolean containsExtensions( + java.lang.String key); + /** + * Use {@link #getExtensionsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getExtensions(); + /** + * map<string, string> extensions = 5; + */ + java.util.Map + getExtensionsMap(); + /** + * map<string, string> extensions = 5; + */ + + /* nullable */ +java.lang.String getExtensionsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + * map<string, string> extensions = 5; + */ + + java.lang.String getExtensionsOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code greptime.v1.QueryContext} + */ + public static final class QueryContext extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.QueryContext) + QueryContextOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryContext.newBuilder() to construct. + private QueryContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QueryContext() { + currentCatalog_ = ""; + currentSchema_ = ""; + timezone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QueryContext(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QueryContext( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + currentCatalog_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + currentSchema_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + timezone_ = s; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + extensions_ = com.google.protobuf.MapField.newMapField( + ExtensionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + extensions__ = input.readMessage( + ExtensionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + extensions_.getMutableMap().put( + extensions__.getKey(), extensions__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_QueryContext_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetExtensions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_QueryContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.QueryContext.class, io.greptime.v1.Common.QueryContext.Builder.class); + } + + public static final int CURRENT_CATALOG_FIELD_NUMBER = 1; + private volatile java.lang.Object currentCatalog_; + /** + * string current_catalog = 1; + * @return The currentCatalog. + */ + @java.lang.Override + public java.lang.String getCurrentCatalog() { + java.lang.Object ref = currentCatalog_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentCatalog_ = s; + return s; + } + } + /** + * string current_catalog = 1; + * @return The bytes for currentCatalog. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCurrentCatalogBytes() { + java.lang.Object ref = currentCatalog_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentCatalog_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_SCHEMA_FIELD_NUMBER = 2; + private volatile java.lang.Object currentSchema_; + /** + * string current_schema = 2; + * @return The currentSchema. + */ + @java.lang.Override + public java.lang.String getCurrentSchema() { + java.lang.Object ref = currentSchema_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentSchema_ = s; + return s; + } + } + /** + * string current_schema = 2; + * @return The bytes for currentSchema. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCurrentSchemaBytes() { + java.lang.Object ref = currentSchema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEZONE_FIELD_NUMBER = 4; + private volatile java.lang.Object timezone_; + /** + * string timezone = 4; + * @return The timezone. + */ + @java.lang.Override + public java.lang.String getTimezone() { + java.lang.Object ref = timezone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timezone_ = s; + return s; + } + } + /** + * string timezone = 4; + * @return The bytes for timezone. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTimezoneBytes() { + java.lang.Object ref = timezone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + timezone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTENSIONS_FIELD_NUMBER = 5; + private static final class ExtensionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.greptime.v1.Common.internal_static_greptime_v1_QueryContext_ExtensionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> extensions_; + private com.google.protobuf.MapField + internalGetExtensions() { + if (extensions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ExtensionsDefaultEntryHolder.defaultEntry); + } + return extensions_; + } + + public int getExtensionsCount() { + return internalGetExtensions().getMap().size(); + } + /** + * map<string, string> extensions = 5; + */ + + @java.lang.Override + public boolean containsExtensions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetExtensions().getMap().containsKey(key); + } + /** + * Use {@link #getExtensionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getExtensions() { + return getExtensionsMap(); + } + /** + * map<string, string> extensions = 5; + */ + @java.lang.Override + + public java.util.Map getExtensionsMap() { + return internalGetExtensions().getMap(); + } + /** + * map<string, string> extensions = 5; + */ + @java.lang.Override + + public java.lang.String getExtensionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetExtensions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> extensions = 5; + */ + @java.lang.Override + + public java.lang.String getExtensionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetExtensions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentCatalog_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentCatalog_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentSchema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currentSchema_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, timezone_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetExtensions(), + ExtensionsDefaultEntryHolder.defaultEntry, + 5); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentCatalog_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentCatalog_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentSchema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currentSchema_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timezone_); + } + for (java.util.Map.Entry entry + : internalGetExtensions().getMap().entrySet()) { + com.google.protobuf.MapEntry + extensions__ = ExtensionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, extensions__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Common.QueryContext)) { + return super.equals(obj); + } + io.greptime.v1.Common.QueryContext other = (io.greptime.v1.Common.QueryContext) obj; + + if (!getCurrentCatalog() + .equals(other.getCurrentCatalog())) return false; + if (!getCurrentSchema() + .equals(other.getCurrentSchema())) return false; + if (!getTimezone() + .equals(other.getTimezone())) return false; + if (!internalGetExtensions().equals( + other.internalGetExtensions())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CURRENT_CATALOG_FIELD_NUMBER; + hash = (53 * hash) + getCurrentCatalog().hashCode(); + hash = (37 * hash) + CURRENT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getCurrentSchema().hashCode(); + hash = (37 * hash) + TIMEZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimezone().hashCode(); + if (!internalGetExtensions().getMap().isEmpty()) { + hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetExtensions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Common.QueryContext parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.QueryContext parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.QueryContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.QueryContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.QueryContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.QueryContext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.QueryContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.QueryContext parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Common.QueryContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.QueryContext parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Common.QueryContext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.QueryContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Common.QueryContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.QueryContext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.QueryContext) + io.greptime.v1.Common.QueryContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_QueryContext_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetExtensions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 5: + return internalGetMutableExtensions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_QueryContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.QueryContext.class, io.greptime.v1.Common.QueryContext.Builder.class); + } + + // Construct using io.greptime.v1.Common.QueryContext.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + currentCatalog_ = ""; + + currentSchema_ = ""; + + timezone_ = ""; + + internalGetMutableExtensions().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Common.internal_static_greptime_v1_QueryContext_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Common.QueryContext getDefaultInstanceForType() { + return io.greptime.v1.Common.QueryContext.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Common.QueryContext build() { + io.greptime.v1.Common.QueryContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Common.QueryContext buildPartial() { + io.greptime.v1.Common.QueryContext result = new io.greptime.v1.Common.QueryContext(this); + int from_bitField0_ = bitField0_; + result.currentCatalog_ = currentCatalog_; + result.currentSchema_ = currentSchema_; + result.timezone_ = timezone_; + result.extensions_ = internalGetExtensions(); + result.extensions_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Common.QueryContext) { + return mergeFrom((io.greptime.v1.Common.QueryContext)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Common.QueryContext other) { + if (other == io.greptime.v1.Common.QueryContext.getDefaultInstance()) return this; + if (!other.getCurrentCatalog().isEmpty()) { + currentCatalog_ = other.currentCatalog_; + onChanged(); + } + if (!other.getCurrentSchema().isEmpty()) { + currentSchema_ = other.currentSchema_; + onChanged(); + } + if (!other.getTimezone().isEmpty()) { + timezone_ = other.timezone_; + onChanged(); + } + internalGetMutableExtensions().mergeFrom( + other.internalGetExtensions()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Common.QueryContext parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Common.QueryContext) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object currentCatalog_ = ""; + /** + * string current_catalog = 1; + * @return The currentCatalog. + */ + public java.lang.String getCurrentCatalog() { + java.lang.Object ref = currentCatalog_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentCatalog_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string current_catalog = 1; + * @return The bytes for currentCatalog. + */ + public com.google.protobuf.ByteString + getCurrentCatalogBytes() { + java.lang.Object ref = currentCatalog_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentCatalog_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string current_catalog = 1; + * @param value The currentCatalog to set. + * @return This builder for chaining. + */ + public Builder setCurrentCatalog( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentCatalog_ = value; + onChanged(); + return this; + } + /** + * string current_catalog = 1; + * @return This builder for chaining. + */ + public Builder clearCurrentCatalog() { + + currentCatalog_ = getDefaultInstance().getCurrentCatalog(); + onChanged(); + return this; + } + /** + * string current_catalog = 1; + * @param value The bytes for currentCatalog to set. + * @return This builder for chaining. + */ + public Builder setCurrentCatalogBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentCatalog_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentSchema_ = ""; + /** + * string current_schema = 2; + * @return The currentSchema. + */ + public java.lang.String getCurrentSchema() { + java.lang.Object ref = currentSchema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentSchema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string current_schema = 2; + * @return The bytes for currentSchema. + */ + public com.google.protobuf.ByteString + getCurrentSchemaBytes() { + java.lang.Object ref = currentSchema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string current_schema = 2; + * @param value The currentSchema to set. + * @return This builder for chaining. + */ + public Builder setCurrentSchema( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentSchema_ = value; + onChanged(); + return this; + } + /** + * string current_schema = 2; + * @return This builder for chaining. + */ + public Builder clearCurrentSchema() { + + currentSchema_ = getDefaultInstance().getCurrentSchema(); + onChanged(); + return this; + } + /** + * string current_schema = 2; + * @param value The bytes for currentSchema to set. + * @return This builder for chaining. + */ + public Builder setCurrentSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentSchema_ = value; + onChanged(); + return this; + } + + private java.lang.Object timezone_ = ""; + /** + * string timezone = 4; + * @return The timezone. + */ + public java.lang.String getTimezone() { + java.lang.Object ref = timezone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timezone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string timezone = 4; + * @return The bytes for timezone. + */ + public com.google.protobuf.ByteString + getTimezoneBytes() { + java.lang.Object ref = timezone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + timezone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string timezone = 4; + * @param value The timezone to set. + * @return This builder for chaining. + */ + public Builder setTimezone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + timezone_ = value; + onChanged(); + return this; + } + /** + * string timezone = 4; + * @return This builder for chaining. + */ + public Builder clearTimezone() { + + timezone_ = getDefaultInstance().getTimezone(); + onChanged(); + return this; + } + /** + * string timezone = 4; + * @param value The bytes for timezone to set. + * @return This builder for chaining. + */ + public Builder setTimezoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + timezone_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> extensions_; + private com.google.protobuf.MapField + internalGetExtensions() { + if (extensions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ExtensionsDefaultEntryHolder.defaultEntry); + } + return extensions_; + } + private com.google.protobuf.MapField + internalGetMutableExtensions() { + onChanged();; + if (extensions_ == null) { + extensions_ = com.google.protobuf.MapField.newMapField( + ExtensionsDefaultEntryHolder.defaultEntry); + } + if (!extensions_.isMutable()) { + extensions_ = extensions_.copy(); + } + return extensions_; + } + + public int getExtensionsCount() { + return internalGetExtensions().getMap().size(); + } + /** + * map<string, string> extensions = 5; + */ + + @java.lang.Override + public boolean containsExtensions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetExtensions().getMap().containsKey(key); + } + /** + * Use {@link #getExtensionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getExtensions() { + return getExtensionsMap(); + } + /** + * map<string, string> extensions = 5; + */ + @java.lang.Override + + public java.util.Map getExtensionsMap() { + return internalGetExtensions().getMap(); + } + /** + * map<string, string> extensions = 5; + */ + @java.lang.Override + + public java.lang.String getExtensionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetExtensions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> extensions = 5; + */ + @java.lang.Override + + public java.lang.String getExtensionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetExtensions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearExtensions() { + internalGetMutableExtensions().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> extensions = 5; + */ + + public Builder removeExtensions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableExtensions().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableExtensions() { + return internalGetMutableExtensions().getMutableMap(); + } + /** + * map<string, string> extensions = 5; + */ + public Builder putExtensions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableExtensions().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, string> extensions = 5; + */ + + public Builder putAllExtensions( + java.util.Map values) { + internalGetMutableExtensions().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.QueryContext) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.QueryContext) + private static final io.greptime.v1.Common.QueryContext DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Common.QueryContext(); + } + + public static io.greptime.v1.Common.QueryContext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryContext(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.Common.QueryContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface RequestHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.RequestHeader) com.google.protobuf.MessageOrBuilder { @@ -10990,6 +12185,16 @@ public io.greptime.v1.Common.DecimalTypeExtension getDefaultInstanceForType() { } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_QueryContext_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_QueryContext_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_QueryContext_ExtensionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_QueryContext_ExtensionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_RequestHeader_descriptor; private static final @@ -11075,55 +12280,72 @@ public io.greptime.v1.Common.DecimalTypeExtension getDefaultInstanceForType() { static { java.lang.String[] descriptorData = { "\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); - internal_static_greptime_v1_RequestHeader_descriptor = + internal_static_greptime_v1_QueryContext_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_greptime_v1_QueryContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_QueryContext_descriptor, + new java.lang.String[] { "CurrentCatalog", "CurrentSchema", "Timezone", "Extensions", }); + internal_static_greptime_v1_QueryContext_ExtensionsEntry_descriptor = + internal_static_greptime_v1_QueryContext_descriptor.getNestedTypes().get(0); + internal_static_greptime_v1_QueryContext_ExtensionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_QueryContext_ExtensionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_greptime_v1_RequestHeader_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_greptime_v1_RequestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_RequestHeader_descriptor, @@ -11135,79 +12357,79 @@ public io.greptime.v1.Common.DecimalTypeExtension getDefaultInstanceForType() { internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_ResponseHeader_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(2); internal_static_greptime_v1_ResponseHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ResponseHeader_descriptor, new java.lang.String[] { "Status", }); internal_static_greptime_v1_Status_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_greptime_v1_Status_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Status_descriptor, new java.lang.String[] { "StatusCode", "ErrMsg", }); internal_static_greptime_v1_AuthHeader_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_greptime_v1_AuthHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AuthHeader_descriptor, new java.lang.String[] { "Basic", "Token", "AuthScheme", }); internal_static_greptime_v1_Basic_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_greptime_v1_Basic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Basic_descriptor, new java.lang.String[] { "Username", "Password", }); internal_static_greptime_v1_Token_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_greptime_v1_Token_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Token_descriptor, new java.lang.String[] { "Token", }); internal_static_greptime_v1_TableName_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_TableName_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_TableName_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "TableName", }); internal_static_greptime_v1_AffectedRows_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_greptime_v1_AffectedRows_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AffectedRows_descriptor, new java.lang.String[] { "Value", }); internal_static_greptime_v1_Metrics_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_greptime_v1_Metrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Metrics_descriptor, new java.lang.String[] { "Metrics", }); internal_static_greptime_v1_FlightMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_greptime_v1_FlightMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_FlightMetadata_descriptor, new java.lang.String[] { "AffectedRows", "Metrics", }); internal_static_greptime_v1_IntervalMonthDayNano_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_greptime_v1_IntervalMonthDayNano_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_IntervalMonthDayNano_descriptor, new java.lang.String[] { "Months", "Days", "Nanoseconds", }); internal_static_greptime_v1_Decimal128_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_greptime_v1_Decimal128_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Decimal128_descriptor, new java.lang.String[] { "Hi", "Lo", }); internal_static_greptime_v1_ColumnDataTypeExtension_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_greptime_v1_ColumnDataTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnDataTypeExtension_descriptor, new java.lang.String[] { "DecimalType", "TypeExt", }); internal_static_greptime_v1_DecimalTypeExtension_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_greptime_v1_DecimalTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DecimalTypeExtension_descriptor, diff --git a/java/src/main/java/io/greptime/v1/flow/Server.java b/java/src/main/java/io/greptime/v1/flow/Server.java index fcb895fa..ee249a6f 100644 --- a/java/src/main/java/io/greptime/v1/flow/Server.java +++ b/java/src/main/java/io/greptime/v1/flow/Server.java @@ -14,6 +14,1094 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } + public interface FlowRequestHeaderOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.flow.FlowRequestHeader) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * 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; + */ + int getTracingContextCount(); + /** + *
+     * 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; + */ + boolean containsTracingContext( + java.lang.String key); + /** + * Use {@link #getTracingContextMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getTracingContext(); + /** + *
+     * 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; + */ + java.util.Map + getTracingContextMap(); + /** + *
+     * 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; + */ + + /* nullable */ +java.lang.String getTracingContextOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+     * 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; + */ + + java.lang.String getTracingContextOrThrow( + java.lang.String key); + + /** + *
+     * The contextual information of the query
+     * 
+ * + * .greptime.v1.QueryContext query_context = 2; + * @return Whether the queryContext field is set. + */ + boolean hasQueryContext(); + /** + *
+     * The contextual information of the query
+     * 
+ * + * .greptime.v1.QueryContext query_context = 2; + * @return The queryContext. + */ + io.greptime.v1.Common.QueryContext getQueryContext(); + /** + *
+     * The contextual information of the query
+     * 
+ * + * .greptime.v1.QueryContext query_context = 2; + */ + io.greptime.v1.Common.QueryContextOrBuilder getQueryContextOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.flow.FlowRequestHeader} + */ + public static final class FlowRequestHeader extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.flow.FlowRequestHeader) + FlowRequestHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use FlowRequestHeader.newBuilder() to construct. + private FlowRequestHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FlowRequestHeader() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FlowRequestHeader(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FlowRequestHeader( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tracingContext_ = com.google.protobuf.MapField.newMapField( + TracingContextDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + tracingContext__ = input.readMessage( + TracingContextDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + tracingContext_.getMutableMap().put( + tracingContext__.getKey(), tracingContext__.getValue()); + break; + } + case 18: { + 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)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowRequestHeader_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetTracingContext(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowRequestHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.flow.Server.FlowRequestHeader.class, io.greptime.v1.flow.Server.FlowRequestHeader.Builder.class); + } + + public static final int TRACING_CONTEXT_FIELD_NUMBER = 1; + private static final class TracingContextDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowRequestHeader_TracingContextEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> tracingContext_; + private com.google.protobuf.MapField + internalGetTracingContext() { + if (tracingContext_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TracingContextDefaultEntryHolder.defaultEntry); + } + return tracingContext_; + } + + public int getTracingContextCount() { + return internalGetTracingContext().getMap().size(); + } + /** + *
+     * 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; + */ + + @java.lang.Override + public boolean containsTracingContext( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetTracingContext().getMap().containsKey(key); + } + /** + * Use {@link #getTracingContextMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTracingContext() { + return getTracingContextMap(); + } + /** + *
+     * 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; + */ + @java.lang.Override + + public java.util.Map getTracingContextMap() { + return internalGetTracingContext().getMap(); + } + /** + *
+     * 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; + */ + @java.lang.Override + + public java.lang.String getTracingContextOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTracingContext().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * 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; + */ + @java.lang.Override + + public java.lang.String getTracingContextOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTracingContext().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int QUERY_CONTEXT_FIELD_NUMBER = 2; + private io.greptime.v1.Common.QueryContext queryContext_; + /** + *
+     * The contextual information of the query
+     * 
+ * + * .greptime.v1.QueryContext query_context = 2; + * @return Whether the queryContext field is set. + */ + @java.lang.Override + public boolean hasQueryContext() { + return queryContext_ != null; + } + /** + *
+     * The contextual information of the query
+     * 
+ * + * .greptime.v1.QueryContext query_context = 2; + * @return The queryContext. + */ + @java.lang.Override + public io.greptime.v1.Common.QueryContext getQueryContext() { + return queryContext_ == null ? io.greptime.v1.Common.QueryContext.getDefaultInstance() : queryContext_; + } + /** + *
+     * The contextual information of the query
+     * 
+ * + * .greptime.v1.QueryContext query_context = 2; + */ + @java.lang.Override + public io.greptime.v1.Common.QueryContextOrBuilder getQueryContextOrBuilder() { + return getQueryContext(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetTracingContext(), + TracingContextDefaultEntryHolder.defaultEntry, + 1); + if (queryContext_ != null) { + output.writeMessage(2, getQueryContext()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetTracingContext().getMap().entrySet()) { + com.google.protobuf.MapEntry + tracingContext__ = TracingContextDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tracingContext__); + } + if (queryContext_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQueryContext()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.flow.Server.FlowRequestHeader)) { + return super.equals(obj); + } + io.greptime.v1.flow.Server.FlowRequestHeader other = (io.greptime.v1.flow.Server.FlowRequestHeader) obj; + + if (!internalGetTracingContext().equals( + other.internalGetTracingContext())) return false; + if (hasQueryContext() != other.hasQueryContext()) return false; + if (hasQueryContext()) { + if (!getQueryContext() + .equals(other.getQueryContext())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetTracingContext().getMap().isEmpty()) { + hash = (37 * hash) + TRACING_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + internalGetTracingContext().hashCode(); + } + if (hasQueryContext()) { + hash = (37 * hash) + QUERY_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getQueryContext().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.flow.Server.FlowRequestHeader parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.flow.Server.FlowRequestHeader parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.flow.Server.FlowRequestHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.flow.Server.FlowRequestHeader parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.flow.Server.FlowRequestHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.flow.Server.FlowRequestHeader parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.flow.Server.FlowRequestHeader parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.flow.Server.FlowRequestHeader parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.flow.Server.FlowRequestHeader parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.flow.Server.FlowRequestHeader parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.flow.Server.FlowRequestHeader parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.flow.Server.FlowRequestHeader parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.flow.Server.FlowRequestHeader prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.flow.FlowRequestHeader} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.flow.FlowRequestHeader) + io.greptime.v1.flow.Server.FlowRequestHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowRequestHeader_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetTracingContext(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableTracingContext(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowRequestHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.flow.Server.FlowRequestHeader.class, io.greptime.v1.flow.Server.FlowRequestHeader.Builder.class); + } + + // Construct using io.greptime.v1.flow.Server.FlowRequestHeader.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableTracingContext().clear(); + if (queryContextBuilder_ == null) { + queryContext_ = null; + } else { + queryContext_ = null; + queryContextBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.flow.Server.internal_static_greptime_v1_flow_FlowRequestHeader_descriptor; + } + + @java.lang.Override + public io.greptime.v1.flow.Server.FlowRequestHeader getDefaultInstanceForType() { + return io.greptime.v1.flow.Server.FlowRequestHeader.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.flow.Server.FlowRequestHeader build() { + io.greptime.v1.flow.Server.FlowRequestHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.flow.Server.FlowRequestHeader buildPartial() { + io.greptime.v1.flow.Server.FlowRequestHeader result = new io.greptime.v1.flow.Server.FlowRequestHeader(this); + int from_bitField0_ = bitField0_; + result.tracingContext_ = internalGetTracingContext(); + result.tracingContext_.makeImmutable(); + if (queryContextBuilder_ == null) { + result.queryContext_ = queryContext_; + } else { + result.queryContext_ = queryContextBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.flow.Server.FlowRequestHeader) { + return mergeFrom((io.greptime.v1.flow.Server.FlowRequestHeader)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.flow.Server.FlowRequestHeader other) { + if (other == io.greptime.v1.flow.Server.FlowRequestHeader.getDefaultInstance()) return this; + internalGetMutableTracingContext().mergeFrom( + other.internalGetTracingContext()); + if (other.hasQueryContext()) { + mergeQueryContext(other.getQueryContext()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.flow.Server.FlowRequestHeader parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.flow.Server.FlowRequestHeader) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> tracingContext_; + private com.google.protobuf.MapField + internalGetTracingContext() { + if (tracingContext_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TracingContextDefaultEntryHolder.defaultEntry); + } + return tracingContext_; + } + private com.google.protobuf.MapField + internalGetMutableTracingContext() { + onChanged();; + if (tracingContext_ == null) { + tracingContext_ = com.google.protobuf.MapField.newMapField( + TracingContextDefaultEntryHolder.defaultEntry); + } + if (!tracingContext_.isMutable()) { + tracingContext_ = tracingContext_.copy(); + } + return tracingContext_; + } + + public int getTracingContextCount() { + return internalGetTracingContext().getMap().size(); + } + /** + *
+       * 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; + */ + + @java.lang.Override + public boolean containsTracingContext( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetTracingContext().getMap().containsKey(key); + } + /** + * Use {@link #getTracingContextMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTracingContext() { + return getTracingContextMap(); + } + /** + *
+       * 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; + */ + @java.lang.Override + + public java.util.Map getTracingContextMap() { + return internalGetTracingContext().getMap(); + } + /** + *
+       * 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; + */ + @java.lang.Override + + public java.lang.String getTracingContextOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTracingContext().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * 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; + */ + @java.lang.Override + + public java.lang.String getTracingContextOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTracingContext().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTracingContext() { + internalGetMutableTracingContext().getMutableMap() + .clear(); + return this; + } + /** + *
+       * 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; + */ + + public Builder removeTracingContext( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableTracingContext().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableTracingContext() { + return internalGetMutableTracingContext().getMutableMap(); + } + /** + *
+       * 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; + */ + public Builder putTracingContext( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableTracingContext().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * 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; + */ + + public Builder putAllTracingContext( + java.util.Map values) { + internalGetMutableTracingContext().getMutableMap() + .putAll(values); + return this; + } + + 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_; + /** + *
+       * The contextual information of the query
+       * 
+ * + * .greptime.v1.QueryContext query_context = 2; + * @return Whether the queryContext field is set. + */ + public boolean hasQueryContext() { + return queryContextBuilder_ != null || queryContext_ != null; + } + /** + *
+       * The contextual information of the query
+       * 
+ * + * .greptime.v1.QueryContext query_context = 2; + * @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(); + } + } + /** + *
+       * The contextual information of the query
+       * 
+ * + * .greptime.v1.QueryContext query_context = 2; + */ + 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; + } + /** + *
+       * The contextual information of the query
+       * 
+ * + * .greptime.v1.QueryContext query_context = 2; + */ + public Builder setQueryContext( + io.greptime.v1.Common.QueryContext.Builder builderForValue) { + if (queryContextBuilder_ == null) { + queryContext_ = builderForValue.build(); + onChanged(); + } else { + queryContextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The contextual information of the query
+       * 
+ * + * .greptime.v1.QueryContext query_context = 2; + */ + 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; + } + /** + *
+       * The contextual information of the query
+       * 
+ * + * .greptime.v1.QueryContext query_context = 2; + */ + public Builder clearQueryContext() { + if (queryContextBuilder_ == null) { + queryContext_ = null; + onChanged(); + } else { + queryContext_ = null; + queryContextBuilder_ = null; + } + + return this; + } + /** + *
+       * The contextual information of the query
+       * 
+ * + * .greptime.v1.QueryContext query_context = 2; + */ + public io.greptime.v1.Common.QueryContext.Builder getQueryContextBuilder() { + + onChanged(); + return getQueryContextFieldBuilder().getBuilder(); + } + /** + *
+       * The contextual information of the query
+       * 
+ * + * .greptime.v1.QueryContext query_context = 2; + */ + public io.greptime.v1.Common.QueryContextOrBuilder getQueryContextOrBuilder() { + if (queryContextBuilder_ != null) { + return queryContextBuilder_.getMessageOrBuilder(); + } else { + return queryContext_ == null ? + io.greptime.v1.Common.QueryContext.getDefaultInstance() : queryContext_; + } + } + /** + *
+       * The contextual information of the query
+       * 
+ * + * .greptime.v1.QueryContext query_context = 2; + */ + 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_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.flow.FlowRequestHeader) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.flow.FlowRequestHeader) + private static final io.greptime.v1.flow.Server.FlowRequestHeader DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.flow.Server.FlowRequestHeader(); + } + + public static io.greptime.v1.flow.Server.FlowRequestHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlowRequestHeader parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FlowRequestHeader(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.flow.Server.FlowRequestHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface InsertRequestsOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.flow.InsertRequests) com.google.protobuf.MessageOrBuilder { @@ -1507,6 +2595,21 @@ public interface FlowRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.flow.FlowRequest) com.google.protobuf.MessageOrBuilder { + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + * @return The header. + */ + io.greptime.v1.flow.Server.FlowRequestHeader getHeader(); + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + */ + io.greptime.v1.flow.Server.FlowRequestHeaderOrBuilder getHeaderOrBuilder(); + /** * .greptime.v1.flow.CreateRequest create = 1; * @return Whether the create field is set. @@ -1612,6 +2715,19 @@ private FlowRequest( bodyCase_ = 2; break; } + case 514: { + io.greptime.v1.flow.Server.FlowRequestHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(io.greptime.v1.flow.Server.FlowRequestHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -1687,6 +2803,32 @@ public int getNumber() { bodyCase_); } + public static final int HEADER_FIELD_NUMBER = 64; + private io.greptime.v1.flow.Server.FlowRequestHeader header_; + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + * @return The header. + */ + @java.lang.Override + public io.greptime.v1.flow.Server.FlowRequestHeader getHeader() { + return header_ == null ? io.greptime.v1.flow.Server.FlowRequestHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + */ + @java.lang.Override + public io.greptime.v1.flow.Server.FlowRequestHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + public static final int CREATE_FIELD_NUMBER = 1; /** * .greptime.v1.flow.CreateRequest create = 1; @@ -1769,6 +2911,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (bodyCase_ == 2) { output.writeMessage(2, (io.greptime.v1.flow.Server.DropRequest) body_); } + if (header_ != null) { + output.writeMessage(64, getHeader()); + } unknownFields.writeTo(output); } @@ -1786,6 +2931,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.greptime.v1.flow.Server.DropRequest) body_); } + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(64, getHeader()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1801,6 +2950,11 @@ public boolean equals(final java.lang.Object obj) { } io.greptime.v1.flow.Server.FlowRequest other = (io.greptime.v1.flow.Server.FlowRequest) obj; + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } if (!getBodyCase().equals(other.getBodyCase())) return false; switch (bodyCase_) { case 1: @@ -1825,6 +2979,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } switch (bodyCase_) { case 1: hash = (37 * hash) + CREATE_FIELD_NUMBER; @@ -1970,6 +3128,12 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } bodyCase_ = 0; body_ = null; return this; @@ -1998,6 +3162,11 @@ public io.greptime.v1.flow.Server.FlowRequest build() { @java.lang.Override public io.greptime.v1.flow.Server.FlowRequest buildPartial() { io.greptime.v1.flow.Server.FlowRequest result = new io.greptime.v1.flow.Server.FlowRequest(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } if (bodyCase_ == 1) { if (createBuilder_ == null) { result.body_ = body_; @@ -2061,6 +3230,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.greptime.v1.flow.Server.FlowRequest other) { if (other == io.greptime.v1.flow.Server.FlowRequest.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } switch (other.getBodyCase()) { case CREATE: { mergeCreate(other.getCreate()); @@ -2118,6 +3290,125 @@ public Builder clearBody() { } + private io.greptime.v1.flow.Server.FlowRequestHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.flow.Server.FlowRequestHeader, io.greptime.v1.flow.Server.FlowRequestHeader.Builder, io.greptime.v1.flow.Server.FlowRequestHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + * @return The header. + */ + public io.greptime.v1.flow.Server.FlowRequestHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? io.greptime.v1.flow.Server.FlowRequestHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + */ + public Builder setHeader(io.greptime.v1.flow.Server.FlowRequestHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + */ + public Builder setHeader( + io.greptime.v1.flow.Server.FlowRequestHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + */ + public Builder mergeHeader(io.greptime.v1.flow.Server.FlowRequestHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + io.greptime.v1.flow.Server.FlowRequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + */ + public io.greptime.v1.flow.Server.FlowRequestHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + */ + public io.greptime.v1.flow.Server.FlowRequestHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + io.greptime.v1.flow.Server.FlowRequestHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.flow.FlowRequestHeader header = 64; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.flow.Server.FlowRequestHeader, io.greptime.v1.flow.Server.FlowRequestHeader.Builder, io.greptime.v1.flow.Server.FlowRequestHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.flow.Server.FlowRequestHeader, io.greptime.v1.flow.Server.FlowRequestHeader.Builder, io.greptime.v1.flow.Server.FlowRequestHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< io.greptime.v1.flow.Server.CreateRequest, io.greptime.v1.flow.Server.CreateRequest.Builder, io.greptime.v1.flow.Server.CreateRequestOrBuilder> createBuilder_; /** @@ -7128,6 +8419,16 @@ public io.greptime.v1.flow.Server.TaskId getDefaultInstanceForType() { } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_flow_FlowRequestHeader_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_flow_FlowRequestHeader_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_flow_FlowRequestHeader_TracingContextEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_flow_FlowRequestHeader_TracingContextEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_flow_InsertRequests_descriptor; private static final @@ -7185,37 +8486,44 @@ public io.greptime.v1.flow.Server.TaskId getDefaultInstanceForType() { "\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -7224,26 +8532,38 @@ public io.greptime.v1.flow.Server.TaskId getDefaultInstanceForType() { io.greptime.v1.Ddl.getDescriptor(), io.greptime.v1.RowData.getDescriptor(), }); - internal_static_greptime_v1_flow_InsertRequests_descriptor = + internal_static_greptime_v1_flow_FlowRequestHeader_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_greptime_v1_flow_FlowRequestHeader_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_flow_FlowRequestHeader_descriptor, + new java.lang.String[] { "TracingContext", "QueryContext", }); + internal_static_greptime_v1_flow_FlowRequestHeader_TracingContextEntry_descriptor = + internal_static_greptime_v1_flow_FlowRequestHeader_descriptor.getNestedTypes().get(0); + internal_static_greptime_v1_flow_FlowRequestHeader_TracingContextEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_flow_FlowRequestHeader_TracingContextEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_greptime_v1_flow_InsertRequests_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_greptime_v1_flow_InsertRequests_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_InsertRequests_descriptor, new java.lang.String[] { "Requests", }); internal_static_greptime_v1_flow_InsertRequest_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(2); internal_static_greptime_v1_flow_InsertRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_InsertRequest_descriptor, new java.lang.String[] { "RegionId", "Rows", }); internal_static_greptime_v1_flow_FlowRequest_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_greptime_v1_flow_FlowRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_FlowRequest_descriptor, - new java.lang.String[] { "Create", "Drop", "Body", }); + new java.lang.String[] { "Header", "Create", "Drop", "Body", }); internal_static_greptime_v1_flow_FlowResponse_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_greptime_v1_flow_FlowResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_FlowResponse_descriptor, @@ -7255,7 +8575,7 @@ public io.greptime.v1.flow.Server.TaskId getDefaultInstanceForType() { internal_static_greptime_v1_flow_FlowResponse_ExtensionEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_flow_CreateRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_greptime_v1_flow_CreateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_CreateRequest_descriptor, @@ -7267,13 +8587,13 @@ public io.greptime.v1.flow.Server.TaskId getDefaultInstanceForType() { internal_static_greptime_v1_flow_CreateRequest_FlowOptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_flow_DropRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_greptime_v1_flow_DropRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_DropRequest_descriptor, new java.lang.String[] { "FlowId", }); internal_static_greptime_v1_flow_TaskId_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_flow_TaskId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_flow_TaskId_descriptor, diff --git a/java/src/main/java/io/greptime/v1/region/Server.java b/java/src/main/java/io/greptime/v1/region/Server.java index b054e1b4..da5ca01a 100644 --- a/java/src/main/java/io/greptime/v1/region/Server.java +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -14,1201 +14,6 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface QueryContextOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.region.QueryContext) - com.google.protobuf.MessageOrBuilder { - - /** - * string current_catalog = 1; - * @return The currentCatalog. - */ - java.lang.String getCurrentCatalog(); - /** - * string current_catalog = 1; - * @return The bytes for currentCatalog. - */ - com.google.protobuf.ByteString - getCurrentCatalogBytes(); - - /** - * string current_schema = 2; - * @return The currentSchema. - */ - java.lang.String getCurrentSchema(); - /** - * string current_schema = 2; - * @return The bytes for currentSchema. - */ - com.google.protobuf.ByteString - getCurrentSchemaBytes(); - - /** - * string timezone = 4; - * @return The timezone. - */ - java.lang.String getTimezone(); - /** - * string timezone = 4; - * @return The bytes for timezone. - */ - com.google.protobuf.ByteString - getTimezoneBytes(); - - /** - * map<string, string> extensions = 5; - */ - int getExtensionsCount(); - /** - * map<string, string> extensions = 5; - */ - boolean containsExtensions( - java.lang.String key); - /** - * Use {@link #getExtensionsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getExtensions(); - /** - * map<string, string> extensions = 5; - */ - java.util.Map - getExtensionsMap(); - /** - * map<string, string> extensions = 5; - */ - - /* nullable */ -java.lang.String getExtensionsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> extensions = 5; - */ - - java.lang.String getExtensionsOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code greptime.v1.region.QueryContext} - */ - public static final class QueryContext extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.region.QueryContext) - QueryContextOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueryContext.newBuilder() to construct. - private QueryContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryContext() { - currentCatalog_ = ""; - currentSchema_ = ""; - timezone_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueryContext(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryContext( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - currentCatalog_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - currentSchema_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - timezone_ = s; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - extensions_ = com.google.protobuf.MapField.newMapField( - ExtensionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - extensions__ = input.readMessage( - ExtensionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - extensions_.getMutableMap().put( - extensions__.getKey(), extensions__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.greptime.v1.region.Server.internal_static_greptime_v1_region_QueryContext_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetExtensions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.greptime.v1.region.Server.internal_static_greptime_v1_region_QueryContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.greptime.v1.region.Server.QueryContext.class, io.greptime.v1.region.Server.QueryContext.Builder.class); - } - - public static final int CURRENT_CATALOG_FIELD_NUMBER = 1; - private volatile java.lang.Object currentCatalog_; - /** - * string current_catalog = 1; - * @return The currentCatalog. - */ - @java.lang.Override - public java.lang.String getCurrentCatalog() { - java.lang.Object ref = currentCatalog_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentCatalog_ = s; - return s; - } - } - /** - * string current_catalog = 1; - * @return The bytes for currentCatalog. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCurrentCatalogBytes() { - java.lang.Object ref = currentCatalog_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentCatalog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENT_SCHEMA_FIELD_NUMBER = 2; - private volatile java.lang.Object currentSchema_; - /** - * string current_schema = 2; - * @return The currentSchema. - */ - @java.lang.Override - public java.lang.String getCurrentSchema() { - java.lang.Object ref = currentSchema_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentSchema_ = s; - return s; - } - } - /** - * string current_schema = 2; - * @return The bytes for currentSchema. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCurrentSchemaBytes() { - java.lang.Object ref = currentSchema_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentSchema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIMEZONE_FIELD_NUMBER = 4; - private volatile java.lang.Object timezone_; - /** - * string timezone = 4; - * @return The timezone. - */ - @java.lang.Override - public java.lang.String getTimezone() { - java.lang.Object ref = timezone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timezone_ = s; - return s; - } - } - /** - * string timezone = 4; - * @return The bytes for timezone. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTimezoneBytes() { - java.lang.Object ref = timezone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timezone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXTENSIONS_FIELD_NUMBER = 5; - private static final class ExtensionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - io.greptime.v1.region.Server.internal_static_greptime_v1_region_QueryContext_ExtensionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> extensions_; - private com.google.protobuf.MapField - internalGetExtensions() { - if (extensions_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ExtensionsDefaultEntryHolder.defaultEntry); - } - return extensions_; - } - - public int getExtensionsCount() { - return internalGetExtensions().getMap().size(); - } - /** - * map<string, string> extensions = 5; - */ - - @java.lang.Override - public boolean containsExtensions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetExtensions().getMap().containsKey(key); - } - /** - * Use {@link #getExtensionsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getExtensions() { - return getExtensionsMap(); - } - /** - * map<string, string> extensions = 5; - */ - @java.lang.Override - - public java.util.Map getExtensionsMap() { - return internalGetExtensions().getMap(); - } - /** - * map<string, string> extensions = 5; - */ - @java.lang.Override - - public java.lang.String getExtensionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetExtensions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> extensions = 5; - */ - @java.lang.Override - - public java.lang.String getExtensionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetExtensions().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentCatalog_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentCatalog_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentSchema_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currentSchema_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, timezone_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetExtensions(), - ExtensionsDefaultEntryHolder.defaultEntry, - 5); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentCatalog_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentCatalog_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentSchema_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currentSchema_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timezone_); - } - for (java.util.Map.Entry entry - : internalGetExtensions().getMap().entrySet()) { - com.google.protobuf.MapEntry - extensions__ = ExtensionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, extensions__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.greptime.v1.region.Server.QueryContext)) { - return super.equals(obj); - } - io.greptime.v1.region.Server.QueryContext other = (io.greptime.v1.region.Server.QueryContext) obj; - - if (!getCurrentCatalog() - .equals(other.getCurrentCatalog())) return false; - if (!getCurrentSchema() - .equals(other.getCurrentSchema())) return false; - if (!getTimezone() - .equals(other.getTimezone())) return false; - if (!internalGetExtensions().equals( - other.internalGetExtensions())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CURRENT_CATALOG_FIELD_NUMBER; - hash = (53 * hash) + getCurrentCatalog().hashCode(); - hash = (37 * hash) + CURRENT_SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getCurrentSchema().hashCode(); - hash = (37 * hash) + TIMEZONE_FIELD_NUMBER; - hash = (53 * hash) + getTimezone().hashCode(); - if (!internalGetExtensions().getMap().isEmpty()) { - hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetExtensions().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.greptime.v1.region.Server.QueryContext parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.greptime.v1.region.Server.QueryContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.greptime.v1.region.Server.QueryContext parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.greptime.v1.region.Server.QueryContext parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.greptime.v1.region.Server.QueryContext parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.greptime.v1.region.Server.QueryContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.greptime.v1.region.Server.QueryContext parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.greptime.v1.region.Server.QueryContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.greptime.v1.region.Server.QueryContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.greptime.v1.region.Server.QueryContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.greptime.v1.region.Server.QueryContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.greptime.v1.region.Server.QueryContext parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.greptime.v1.region.Server.QueryContext prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code greptime.v1.region.QueryContext} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.region.QueryContext) - io.greptime.v1.region.Server.QueryContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.greptime.v1.region.Server.internal_static_greptime_v1_region_QueryContext_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetExtensions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 5: - return internalGetMutableExtensions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.greptime.v1.region.Server.internal_static_greptime_v1_region_QueryContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.greptime.v1.region.Server.QueryContext.class, io.greptime.v1.region.Server.QueryContext.Builder.class); - } - - // Construct using io.greptime.v1.region.Server.QueryContext.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - currentCatalog_ = ""; - - currentSchema_ = ""; - - timezone_ = ""; - - internalGetMutableExtensions().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.greptime.v1.region.Server.internal_static_greptime_v1_region_QueryContext_descriptor; - } - - @java.lang.Override - public io.greptime.v1.region.Server.QueryContext getDefaultInstanceForType() { - return io.greptime.v1.region.Server.QueryContext.getDefaultInstance(); - } - - @java.lang.Override - public io.greptime.v1.region.Server.QueryContext build() { - io.greptime.v1.region.Server.QueryContext result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.greptime.v1.region.Server.QueryContext buildPartial() { - io.greptime.v1.region.Server.QueryContext result = new io.greptime.v1.region.Server.QueryContext(this); - int from_bitField0_ = bitField0_; - result.currentCatalog_ = currentCatalog_; - result.currentSchema_ = currentSchema_; - result.timezone_ = timezone_; - result.extensions_ = internalGetExtensions(); - result.extensions_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.region.Server.QueryContext) { - return mergeFrom((io.greptime.v1.region.Server.QueryContext)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.greptime.v1.region.Server.QueryContext other) { - if (other == io.greptime.v1.region.Server.QueryContext.getDefaultInstance()) return this; - if (!other.getCurrentCatalog().isEmpty()) { - currentCatalog_ = other.currentCatalog_; - onChanged(); - } - if (!other.getCurrentSchema().isEmpty()) { - currentSchema_ = other.currentSchema_; - onChanged(); - } - if (!other.getTimezone().isEmpty()) { - timezone_ = other.timezone_; - onChanged(); - } - internalGetMutableExtensions().mergeFrom( - other.internalGetExtensions()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.greptime.v1.region.Server.QueryContext parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.region.Server.QueryContext) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object currentCatalog_ = ""; - /** - * string current_catalog = 1; - * @return The currentCatalog. - */ - public java.lang.String getCurrentCatalog() { - java.lang.Object ref = currentCatalog_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentCatalog_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string current_catalog = 1; - * @return The bytes for currentCatalog. - */ - public com.google.protobuf.ByteString - getCurrentCatalogBytes() { - java.lang.Object ref = currentCatalog_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentCatalog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string current_catalog = 1; - * @param value The currentCatalog to set. - * @return This builder for chaining. - */ - public Builder setCurrentCatalog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentCatalog_ = value; - onChanged(); - return this; - } - /** - * string current_catalog = 1; - * @return This builder for chaining. - */ - public Builder clearCurrentCatalog() { - - currentCatalog_ = getDefaultInstance().getCurrentCatalog(); - onChanged(); - return this; - } - /** - * string current_catalog = 1; - * @param value The bytes for currentCatalog to set. - * @return This builder for chaining. - */ - public Builder setCurrentCatalogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentCatalog_ = value; - onChanged(); - return this; - } - - private java.lang.Object currentSchema_ = ""; - /** - * string current_schema = 2; - * @return The currentSchema. - */ - public java.lang.String getCurrentSchema() { - java.lang.Object ref = currentSchema_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentSchema_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string current_schema = 2; - * @return The bytes for currentSchema. - */ - public com.google.protobuf.ByteString - getCurrentSchemaBytes() { - java.lang.Object ref = currentSchema_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentSchema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string current_schema = 2; - * @param value The currentSchema to set. - * @return This builder for chaining. - */ - public Builder setCurrentSchema( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentSchema_ = value; - onChanged(); - return this; - } - /** - * string current_schema = 2; - * @return This builder for chaining. - */ - public Builder clearCurrentSchema() { - - currentSchema_ = getDefaultInstance().getCurrentSchema(); - onChanged(); - return this; - } - /** - * string current_schema = 2; - * @param value The bytes for currentSchema to set. - * @return This builder for chaining. - */ - public Builder setCurrentSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentSchema_ = value; - onChanged(); - return this; - } - - private java.lang.Object timezone_ = ""; - /** - * string timezone = 4; - * @return The timezone. - */ - public java.lang.String getTimezone() { - java.lang.Object ref = timezone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timezone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string timezone = 4; - * @return The bytes for timezone. - */ - public com.google.protobuf.ByteString - getTimezoneBytes() { - java.lang.Object ref = timezone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timezone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string timezone = 4; - * @param value The timezone to set. - * @return This builder for chaining. - */ - public Builder setTimezone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - timezone_ = value; - onChanged(); - return this; - } - /** - * string timezone = 4; - * @return This builder for chaining. - */ - public Builder clearTimezone() { - - timezone_ = getDefaultInstance().getTimezone(); - onChanged(); - return this; - } - /** - * string timezone = 4; - * @param value The bytes for timezone to set. - * @return This builder for chaining. - */ - public Builder setTimezoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - timezone_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> extensions_; - private com.google.protobuf.MapField - internalGetExtensions() { - if (extensions_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ExtensionsDefaultEntryHolder.defaultEntry); - } - return extensions_; - } - private com.google.protobuf.MapField - internalGetMutableExtensions() { - onChanged();; - if (extensions_ == null) { - extensions_ = com.google.protobuf.MapField.newMapField( - ExtensionsDefaultEntryHolder.defaultEntry); - } - if (!extensions_.isMutable()) { - extensions_ = extensions_.copy(); - } - return extensions_; - } - - public int getExtensionsCount() { - return internalGetExtensions().getMap().size(); - } - /** - * map<string, string> extensions = 5; - */ - - @java.lang.Override - public boolean containsExtensions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetExtensions().getMap().containsKey(key); - } - /** - * Use {@link #getExtensionsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getExtensions() { - return getExtensionsMap(); - } - /** - * map<string, string> extensions = 5; - */ - @java.lang.Override - - public java.util.Map getExtensionsMap() { - return internalGetExtensions().getMap(); - } - /** - * map<string, string> extensions = 5; - */ - @java.lang.Override - - public java.lang.String getExtensionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetExtensions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> extensions = 5; - */ - @java.lang.Override - - public java.lang.String getExtensionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetExtensions().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearExtensions() { - internalGetMutableExtensions().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> extensions = 5; - */ - - public Builder removeExtensions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableExtensions().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableExtensions() { - return internalGetMutableExtensions().getMutableMap(); - } - /** - * map<string, string> extensions = 5; - */ - public Builder putExtensions( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableExtensions().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, string> extensions = 5; - */ - - public Builder putAllExtensions( - java.util.Map values) { - internalGetMutableExtensions().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:greptime.v1.region.QueryContext) - } - - // @@protoc_insertion_point(class_scope:greptime.v1.region.QueryContext) - private static final io.greptime.v1.region.Server.QueryContext DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.greptime.v1.region.Server.QueryContext(); - } - - public static io.greptime.v1.region.Server.QueryContext getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryContext(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.greptime.v1.region.Server.QueryContext getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - public interface RegionRequestHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.region.RegionRequestHeader) com.google.protobuf.MessageOrBuilder { @@ -1299,7 +104,7 @@ java.lang.String getTracingContextOrThrow( * The contextual information of the query * * - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; * @return Whether the queryContext field is set. */ boolean hasQueryContext(); @@ -1308,18 +113,18 @@ java.lang.String getTracingContextOrThrow( * The contextual information of the query * * - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; * @return The queryContext. */ - io.greptime.v1.region.Server.QueryContext getQueryContext(); + io.greptime.v1.Common.QueryContext getQueryContext(); /** *
      * The contextual information of the query
      * 
* - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; */ - io.greptime.v1.region.Server.QueryContextOrBuilder getQueryContextOrBuilder(); + io.greptime.v1.Common.QueryContextOrBuilder getQueryContextOrBuilder(); } /** * Protobuf type {@code greptime.v1.region.RegionRequestHeader} @@ -1388,11 +193,11 @@ private RegionRequestHeader( break; } case 50: { - io.greptime.v1.region.Server.QueryContext.Builder subBuilder = null; + io.greptime.v1.Common.QueryContext.Builder subBuilder = null; if (queryContext_ != null) { subBuilder = queryContext_.toBuilder(); } - queryContext_ = input.readMessage(io.greptime.v1.region.Server.QueryContext.parser(), extensionRegistry); + queryContext_ = input.readMessage(io.greptime.v1.Common.QueryContext.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(queryContext_); queryContext_ = subBuilder.buildPartial(); @@ -1594,13 +399,13 @@ public java.lang.String getDbname() { } public static final int QUERY_CONTEXT_FIELD_NUMBER = 6; - private io.greptime.v1.region.Server.QueryContext queryContext_; + private io.greptime.v1.Common.QueryContext queryContext_; /** *
      * The contextual information of the query
      * 
* - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; * @return Whether the queryContext field is set. */ @java.lang.Override @@ -1612,22 +417,22 @@ public boolean hasQueryContext() { * The contextual information of the query * * - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; * @return The queryContext. */ @java.lang.Override - public io.greptime.v1.region.Server.QueryContext getQueryContext() { - return queryContext_ == null ? io.greptime.v1.region.Server.QueryContext.getDefaultInstance() : queryContext_; + public io.greptime.v1.Common.QueryContext getQueryContext() { + return queryContext_ == null ? io.greptime.v1.Common.QueryContext.getDefaultInstance() : queryContext_; } /** *
      * The contextual information of the query
      * 
* - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; */ @java.lang.Override - public io.greptime.v1.region.Server.QueryContextOrBuilder getQueryContextOrBuilder() { + public io.greptime.v1.Common.QueryContextOrBuilder getQueryContextOrBuilder() { return getQueryContext(); } @@ -2276,15 +1081,15 @@ public Builder setDbnameBytes( return this; } - private io.greptime.v1.region.Server.QueryContext queryContext_; + private io.greptime.v1.Common.QueryContext queryContext_; private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.region.Server.QueryContext, io.greptime.v1.region.Server.QueryContext.Builder, io.greptime.v1.region.Server.QueryContextOrBuilder> queryContextBuilder_; + io.greptime.v1.Common.QueryContext, io.greptime.v1.Common.QueryContext.Builder, io.greptime.v1.Common.QueryContextOrBuilder> queryContextBuilder_; /** *
        * The contextual information of the query
        * 
* - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; * @return Whether the queryContext field is set. */ public boolean hasQueryContext() { @@ -2295,12 +1100,12 @@ public boolean hasQueryContext() { * The contextual information of the query * * - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; * @return The queryContext. */ - public io.greptime.v1.region.Server.QueryContext getQueryContext() { + public io.greptime.v1.Common.QueryContext getQueryContext() { if (queryContextBuilder_ == null) { - return queryContext_ == null ? io.greptime.v1.region.Server.QueryContext.getDefaultInstance() : queryContext_; + return queryContext_ == null ? io.greptime.v1.Common.QueryContext.getDefaultInstance() : queryContext_; } else { return queryContextBuilder_.getMessage(); } @@ -2310,9 +1115,9 @@ public io.greptime.v1.region.Server.QueryContext getQueryContext() { * The contextual information of the query * * - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; */ - public Builder setQueryContext(io.greptime.v1.region.Server.QueryContext value) { + public Builder setQueryContext(io.greptime.v1.Common.QueryContext value) { if (queryContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2330,10 +1135,10 @@ public Builder setQueryContext(io.greptime.v1.region.Server.QueryContext value) * The contextual information of the query * * - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; */ public Builder setQueryContext( - io.greptime.v1.region.Server.QueryContext.Builder builderForValue) { + io.greptime.v1.Common.QueryContext.Builder builderForValue) { if (queryContextBuilder_ == null) { queryContext_ = builderForValue.build(); onChanged(); @@ -2348,13 +1153,13 @@ public Builder setQueryContext( * The contextual information of the query * * - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; */ - public Builder mergeQueryContext(io.greptime.v1.region.Server.QueryContext value) { + public Builder mergeQueryContext(io.greptime.v1.Common.QueryContext value) { if (queryContextBuilder_ == null) { if (queryContext_ != null) { queryContext_ = - io.greptime.v1.region.Server.QueryContext.newBuilder(queryContext_).mergeFrom(value).buildPartial(); + io.greptime.v1.Common.QueryContext.newBuilder(queryContext_).mergeFrom(value).buildPartial(); } else { queryContext_ = value; } @@ -2370,7 +1175,7 @@ public Builder mergeQueryContext(io.greptime.v1.region.Server.QueryContext value * The contextual information of the query * * - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; */ public Builder clearQueryContext() { if (queryContextBuilder_ == null) { @@ -2388,9 +1193,9 @@ public Builder clearQueryContext() { * The contextual information of the query * * - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; */ - public io.greptime.v1.region.Server.QueryContext.Builder getQueryContextBuilder() { + public io.greptime.v1.Common.QueryContext.Builder getQueryContextBuilder() { onChanged(); return getQueryContextFieldBuilder().getBuilder(); @@ -2400,14 +1205,14 @@ public io.greptime.v1.region.Server.QueryContext.Builder getQueryContextBuilder( * The contextual information of the query * * - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; */ - public io.greptime.v1.region.Server.QueryContextOrBuilder getQueryContextOrBuilder() { + public io.greptime.v1.Common.QueryContextOrBuilder getQueryContextOrBuilder() { if (queryContextBuilder_ != null) { return queryContextBuilder_.getMessageOrBuilder(); } else { return queryContext_ == null ? - io.greptime.v1.region.Server.QueryContext.getDefaultInstance() : queryContext_; + io.greptime.v1.Common.QueryContext.getDefaultInstance() : queryContext_; } } /** @@ -2415,14 +1220,14 @@ public io.greptime.v1.region.Server.QueryContextOrBuilder getQueryContextOrBuild * The contextual information of the query * * - * .greptime.v1.region.QueryContext query_context = 6; + * .greptime.v1.QueryContext query_context = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.region.Server.QueryContext, io.greptime.v1.region.Server.QueryContext.Builder, io.greptime.v1.region.Server.QueryContextOrBuilder> + 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.region.Server.QueryContext, io.greptime.v1.region.Server.QueryContext.Builder, io.greptime.v1.region.Server.QueryContextOrBuilder>( + io.greptime.v1.Common.QueryContext, io.greptime.v1.Common.QueryContext.Builder, io.greptime.v1.Common.QueryContextOrBuilder>( getQueryContext(), getParentForChildren(), isClean()); @@ -24082,16 +22887,6 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType() } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_region_QueryContext_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_region_QueryContext_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_region_QueryContext_ExtensionsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_region_QueryContext_ExtensionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_region_RegionRequestHeader_descriptor; private static final @@ -24244,92 +23039,87 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType() "\n\037greptime/v1/region/server.proto\022\022grept" + "ime.v1.region\032\030greptime/v1/common.proto\032" + "\025greptime/v1/row.proto\032\025greptime/v1/ddl." + - "proto\"\312\001\n\014QueryContext\022\027\n\017current_catalo" + - "g\030\001 \001(\t\022\026\n\016current_schema\030\002 \001(\t\022\020\n\010timez" + - "one\030\004 \001(\t\022D\n\nextensions\030\005 \003(\01320.greptime" + - ".v1.region.QueryContext.ExtensionsEntry\032" + - "1\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + - "\030\002 \001(\t:\0028\001\"\353\001\n\023RegionRequestHeader\022T\n\017tr" + - "acing_context\030\005 \003(\0132;.greptime.v1.region" + - ".RegionRequestHeader.TracingContextEntry" + - "\022\016\n\006dbname\030\003 \001(\t\0227\n\rquery_context\030\006 \001(\0132" + - " .greptime.v1.region.QueryContext\0325\n\023Tra" + - "cingContextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + - " \001(\t:\0028\001\"\375\005\n\rRegionRequest\0227\n\006header\030\001 \001" + - "(\0132\'.greptime.v1.region.RegionRequestHea" + - "der\0225\n\007inserts\030\003 \001(\0132\".greptime.v1.regio" + - "n.InsertRequestsH\000\0225\n\007deletes\030\004 \001(\0132\".gr" + - "eptime.v1.region.DeleteRequestsH\000\0223\n\006cre" + - "ate\030\005 \001(\0132!.greptime.v1.region.CreateReq" + - "uestH\000\022/\n\004drop\030\006 \001(\0132\037.greptime.v1.regio" + - "n.DropRequestH\000\022/\n\004open\030\007 \001(\0132\037.greptime" + - ".v1.region.OpenRequestH\000\0221\n\005close\030\010 \001(\0132" + - " .greptime.v1.region.CloseRequestH\000\0221\n\005a" + - "lter\030\t \001(\0132 .greptime.v1.region.AlterReq" + - "uestH\000\0221\n\005flush\030\n \001(\0132 .greptime.v1.regi" + - "on.FlushRequestH\000\0225\n\007compact\030\013 \001(\0132\".gre" + - "ptime.v1.region.CompactRequestH\000\0227\n\010trun" + - "cate\030\014 \001(\0132#.greptime.v1.region.Truncate" + - "RequestH\000\0225\n\007creates\030\r \001(\0132\".greptime.v1" + - ".region.CreateRequestsH\000\0221\n\005drops\030\016 \001(\0132" + - " .greptime.v1.region.DropRequestsH\000\0223\n\006a" + - "lters\030\017 \001(\0132!.greptime.v1.region.AlterRe" + - "questsH\000B\006\n\004body\"\314\001\n\016RegionResponse\022+\n\006h" + - "eader\030\001 \001(\0132\033.greptime.v1.ResponseHeader" + - "\022\025\n\raffected_rows\030\002 \001(\004\022D\n\textension\030\003 \003" + - "(\01321.greptime.v1.region.RegionResponse.E" + - "xtensionEntry\0320\n\016ExtensionEntry\022\013\n\003key\030\001" + - " \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"E\n\016InsertRequest" + - "s\0223\n\010requests\030\001 \003(\0132!.greptime.v1.region" + - ".InsertRequest\"E\n\016DeleteRequests\0223\n\010requ" + - "ests\030\001 \003(\0132!.greptime.v1.region.DeleteRe" + - "quest\"C\n\rInsertRequest\022\021\n\tregion_id\030\001 \001(" + - "\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"C\n\rDe" + - "leteRequest\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002" + - " \001(\0132\021.greptime.v1.Rows\"h\n\014QueryRequest\022" + - "7\n\006header\030\001 \001(\0132\'.greptime.v1.region.Reg" + - "ionRequestHeader\022\021\n\tregion_id\030\002 \001(\004\022\014\n\004p" + - "lan\030\003 \001(\014\"E\n\016CreateRequests\0223\n\010requests\030" + - "\001 \003(\0132!.greptime.v1.region.CreateRequest" + - "\"\200\002\n\rCreateRequest\022\021\n\tregion_id\030\001 \001(\004\022\016\n" + - "\006engine\030\002 \001(\t\0228\n\013column_defs\030\003 \003(\0132#.gre" + - "ptime.v1.region.RegionColumnDef\022\023\n\013prima" + - "ry_key\030\004 \003(\r\022\014\n\004path\030\005 \001(\t\022?\n\007options\030\006 " + - "\003(\0132..greptime.v1.region.CreateRequest.O" + - "ptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001\"A\n\014DropRequests\0221\n\010r" + - "equests\030\001 \003(\0132\037.greptime.v1.region.DropR" + - "equest\" \n\013DropRequest\022\021\n\tregion_id\030\001 \001(\004" + - "\"\255\001\n\013OpenRequest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006e" + - "ngine\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022=\n\007options\030\004 \003" + - "(\0132,.greptime.v1.region.OpenRequest.Opti" + - "onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregi" + - "on_id\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010requests" + - "\030\001 \003(\0132 .greptime.v1.region.AlterRequest" + - "\"\360\001\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013" + - "add_columns\030\002 \001(\0132\036.greptime.v1.region.A" + - "ddColumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037.grep" + - "time.v1.region.DropColumnsH\000\022=\n\023change_c" + - "olumn_types\030\005 \001(\0132\036.greptime.v1.ChangeCo" + - "lumnTypesH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004k" + - "ind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(\0132\035" + - ".greptime.v1.region.AddColumn\"C\n\013DropCol" + - "umns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime.v1" + - ".region.DropColumn\"v\n\tAddColumn\0227\n\ncolum" + - "n_def\030\001 \001(\0132#.greptime.v1.region.RegionC" + - "olumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1" + - ".AddColumnLocation\"\032\n\nDropColumn\022\014\n\004name" + - "\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001(" + - "\004\"#\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"$" + - "\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017" + - "RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.gr" + - "eptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y" + - "\n\006Region\022O\n\006Handle\022!.greptime.v1.region." + - "RegionRequest\032\".greptime.v1.region.Regio" + - "nResponseB]\n\025io.greptime.v1.regionB\006Serv" + - "erZ extensions = 5; +} + message RequestHeader { // The `catalog` that is selected to be used in this request. string catalog = 1; diff --git a/proto/greptime/v1/flow/server.proto b/proto/greptime/v1/flow/server.proto index 0273cc4c..b7a17bef 100644 --- a/proto/greptime/v1/flow/server.proto +++ b/proto/greptime/v1/flow/server.proto @@ -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 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; diff --git a/proto/greptime/v1/meta/ddl.proto b/proto/greptime/v1/meta/ddl.proto index 06133c09..84229406 100644 --- a/proto/greptime/v1/meta/ddl.proto +++ b/proto/greptime/v1/meta/ddl.proto @@ -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; diff --git a/proto/greptime/v1/region/server.proto b/proto/greptime/v1/region/server.proto index a9cd32c0..7e42d96a 100644 --- a/proto/greptime/v1/region/server.proto +++ b/proto/greptime/v1/region/server.proto @@ -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 extensions = 5; -} - message RegionRequestHeader { // Encoded trace_id & span_id, follow the w3c Trace Context // https://www.w3.org/TR/trace-context/#header-name