diff --git a/c++/greptime/v1/common.pb.cc b/c++/greptime/v1/common.pb.cc index cb6e6c96..54eef43e 100644 --- a/c++/greptime/v1/common.pb.cc +++ b/c++/greptime/v1/common.pb.cc @@ -39,6 +39,7 @@ PROTOBUF_CONSTEXPR QueryContext::QueryContext( , /*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_.seq_snapshot_)*/nullptr , /*decltype(_impl_.channel_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct QueryContextDefaultTypeInternal { @@ -50,6 +51,30 @@ struct QueryContextDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QueryContextDefaultTypeInternal _QueryContext_default_instance_; +PROTOBUF_CONSTEXPR SequenceSnapshot_SeqSnapshotEntry_DoNotUse::SequenceSnapshot_SeqSnapshotEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct SequenceSnapshot_SeqSnapshotEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SequenceSnapshot_SeqSnapshotEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SequenceSnapshot_SeqSnapshotEntry_DoNotUseDefaultTypeInternal() {} + union { + SequenceSnapshot_SeqSnapshotEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SequenceSnapshot_SeqSnapshotEntry_DoNotUseDefaultTypeInternal _SequenceSnapshot_SeqSnapshotEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR SequenceSnapshot::SequenceSnapshot( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.seq_snapshot_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SequenceSnapshotDefaultTypeInternal { + PROTOBUF_CONSTEXPR SequenceSnapshotDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SequenceSnapshotDefaultTypeInternal() {} + union { + SequenceSnapshot _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SequenceSnapshotDefaultTypeInternal _SequenceSnapshot_default_instance_; PROTOBUF_CONSTEXPR RequestHeader_TracingContextEntry_DoNotUse::RequestHeader_TracingContextEntry_DoNotUse( ::_pbi::ConstantInitialized) {} struct RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal { @@ -311,7 +336,7 @@ struct ColumnOptionsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnOptionsDefaultTypeInternal _ColumnOptions_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[21]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[23]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[3]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr; @@ -337,6 +362,24 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext, _impl_.timezone_), PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext, _impl_.extensions_), PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext, _impl_.channel_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext, _impl_.seq_snapshot_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SequenceSnapshot_SeqSnapshotEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SequenceSnapshot_SeqSnapshotEntry_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::SequenceSnapshot_SeqSnapshotEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SequenceSnapshot_SeqSnapshotEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SequenceSnapshot, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SequenceSnapshot, _impl_.seq_snapshot_), PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -499,30 +542,34 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 8, -1, sizeof(::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse)}, { 10, -1, -1, sizeof(::greptime::v1::QueryContext)}, - { 21, 29, -1, sizeof(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse)}, - { 31, -1, -1, sizeof(::greptime::v1::RequestHeader)}, - { 43, -1, -1, sizeof(::greptime::v1::ResponseHeader)}, - { 50, -1, -1, sizeof(::greptime::v1::Status)}, - { 58, -1, -1, sizeof(::greptime::v1::AuthHeader)}, - { 67, -1, -1, sizeof(::greptime::v1::Basic)}, - { 75, -1, -1, sizeof(::greptime::v1::Token)}, - { 82, -1, -1, sizeof(::greptime::v1::TableName)}, - { 91, -1, -1, sizeof(::greptime::v1::AffectedRows)}, - { 98, -1, -1, sizeof(::greptime::v1::Metrics)}, - { 105, -1, -1, sizeof(::greptime::v1::ExpireAfter)}, - { 112, -1, -1, sizeof(::greptime::v1::FlightMetadata)}, - { 120, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)}, - { 129, -1, -1, sizeof(::greptime::v1::Decimal128)}, - { 137, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, - { 147, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, - { 155, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)}, - { 162, 170, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)}, - { 172, -1, -1, sizeof(::greptime::v1::ColumnOptions)}, + { 22, 30, -1, sizeof(::greptime::v1::SequenceSnapshot_SeqSnapshotEntry_DoNotUse)}, + { 32, -1, -1, sizeof(::greptime::v1::SequenceSnapshot)}, + { 39, 47, -1, sizeof(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse)}, + { 49, -1, -1, sizeof(::greptime::v1::RequestHeader)}, + { 61, -1, -1, sizeof(::greptime::v1::ResponseHeader)}, + { 68, -1, -1, sizeof(::greptime::v1::Status)}, + { 76, -1, -1, sizeof(::greptime::v1::AuthHeader)}, + { 85, -1, -1, sizeof(::greptime::v1::Basic)}, + { 93, -1, -1, sizeof(::greptime::v1::Token)}, + { 100, -1, -1, sizeof(::greptime::v1::TableName)}, + { 109, -1, -1, sizeof(::greptime::v1::AffectedRows)}, + { 116, -1, -1, sizeof(::greptime::v1::Metrics)}, + { 123, -1, -1, sizeof(::greptime::v1::ExpireAfter)}, + { 130, -1, -1, sizeof(::greptime::v1::FlightMetadata)}, + { 138, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)}, + { 147, -1, -1, sizeof(::greptime::v1::Decimal128)}, + { 155, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, + { 165, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, + { 173, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)}, + { 180, 188, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)}, + { 190, -1, -1, sizeof(::greptime::v1::ColumnOptions)}, }; static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_QueryContext_ExtensionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_QueryContext_default_instance_._instance, + &::greptime::v1::_SequenceSnapshot_SeqSnapshotEntry_DoNotUse_default_instance_._instance, + &::greptime::v1::_SequenceSnapshot_default_instance_._instance, &::greptime::v1::_RequestHeader_TracingContextEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_RequestHeader_default_instance_._instance, &::greptime::v1::_ResponseHeader_default_instance_._instance, @@ -546,68 +593,73 @@ 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\"" - "\324\001\n\014QueryContext\022\027\n\017current_catalog\030\001 \001(" + "\211\002\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\022\017\n\007channel\030\006 " - "\001(\r\0321\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - "alue\030\002 \001(\t:\0028\001\"\202\002\n\rRequestHeader\022\017\n\007cata" - "log\030\001 \001(\t\022\016\n\006schema\030\002 \001(\t\022.\n\rauthorizati" - "on\030\003 \001(\0132\027.greptime.v1.AuthHeader\022\016\n\006dbn" - "ame\030\004 \001(\t\022G\n\017tracing_context\030\005 \003(\0132..gre" - "ptime.v1.RequestHeader.TracingContextEnt" - "ry\022\020\n\010timezone\030\006 \001(\t\0325\n\023TracingContextEn" - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\016R" - "esponseHeader\022#\n\006status\030\001 \001(\0132\023.greptime" - ".v1.Status\".\n\006Status\022\023\n\013status_code\030\001 \001(" - "\r\022\017\n\007err_msg\030\002 \001(\t\"e\n\nAuthHeader\022#\n\005basi" - "c\030\001 \001(\0132\022.greptime.v1.BasicH\000\022#\n\005token\030\002" - " \001(\0132\022.greptime.v1.TokenH\000B\r\n\013auth_schem" - "e\"+\n\005Basic\022\020\n\010username\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\tTableN" - "ame\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\014AffectedRo" - "ws\022\r\n\005value\030\001 \001(\r\"\032\n\007Metrics\022\017\n\007metrics\030" - "\001 \001(\014\"\034\n\013ExpireAfter\022\r\n\005value\030\001 \001(\003\"i\n\016F" - "lightMetadata\0220\n\raffected_rows\030\001 \001(\0132\031.g" - "reptime.v1.AffectedRows\022%\n\007metrics\030\002 \001(\013" - "2\024.greptime.v1.Metrics\"I\n\024IntervalMonthD" - "ayNano\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013" - "nanoseconds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 " - "\001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExtens" - "ion\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v1." - "DecimalTypeExtensionH\000\0223\n\tjson_type\030\002 \001(" - "\0162\036.greptime.v1.JsonTypeExtensionH\000\0227\n\013v" - "ector_type\030\003 \001(\0132 .greptime.v1.VectorTyp" - "eExtensionH\000B\n\n\010type_ext\"8\n\024DecimalTypeE" - "xtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001" - "(\005\"\"\n\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r\"y" - "\n\rColumnOptions\0228\n\007options\030\001 \003(\0132\'.grept" - "ime.v1.ColumnOptions.OptionsEntry\032.\n\014Opt" - "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - "\001*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n" - "\tTIMESTAMP\020\002*\354\003\n\016ColumnDataType\022\013\n\007BOOLE" - "AN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005" - "INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32" - "\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n" - "\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DA" - "TETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMEST" - "AMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECO" - "ND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_S" - "ECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MI" - "CROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTE" - "RVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030" - "\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL" - "128\020\036\022\010\n\004JSON\020\037\022\n\n\006VECTOR\020 *$\n\021JsonTypeE" - "xtension\022\017\n\013JSON_BINARY\020\000BO\n\016io.greptime" - ".v1B\006CommonZ5github.com/GreptimeTeam/gre" - "ptime-proto/go/greptime/v1b\006proto3" + "\001(\r\0223\n\014seq_snapshot\030\007 \001(\0132\035.greptime.v1." + "SequenceSnapshot\0321\n\017ExtensionsEntry\022\013\n\003k" + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\214\001\n\020Sequence" + "Snapshot\022D\n\014seq_snapshot\030\007 \003(\0132..greptim" + "e.v1.SequenceSnapshot.SeqSnapshotEntry\0322" + "\n\020SeqSnapshotEntry\022\013\n\003key\030\001 \001(\004\022\r\n\005value" + "\030\002 \001(\004:\0028\001\"\202\002\n\rRequestHeader\022\017\n\007catalog\030" + "\001 \001(\t\022\016\n\006schema\030\002 \001(\t\022.\n\rauthorization\030\003" + " \001(\0132\027.greptime.v1.AuthHeader\022\016\n\006dbname\030" + "\004 \001(\t\022G\n\017tracing_context\030\005 \003(\0132..greptim" + "e.v1.RequestHeader.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\016Respo" + "nseHeader\022#\n\006status\030\001 \001(\0132\023.greptime.v1." + "Status\".\n\006Status\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.greptime.v1.BasicH\000\022#\n\005token\030\002 \001(\013" + "2\022.greptime.v1.TokenH\000B\r\n\013auth_scheme\"+\n" + "\005Basic\022\020\n\010username\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\"\034\n\013ExpireAfter\022\r\n\005value\030\001 \001(\003\"i\n\016Fligh" + "tMetadata\0220\n\raffected_rows\030\001 \001(\0132\031.grept" + "ime.v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132\024.g" + "reptime.v1.Metrics\"I\n\024IntervalMonthDayNa" + "no\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nano" + "seconds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022" + "\n\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExtension\022" + "9\n\014decimal_type\030\001 \001(\0132!.greptime.v1.Deci" + "malTypeExtensionH\000\0223\n\tjson_type\030\002 \001(\0162\036." + "greptime.v1.JsonTypeExtensionH\000\0227\n\013vecto" + "r_type\030\003 \001(\0132 .greptime.v1.VectorTypeExt" + "ensionH\000B\n\n\010type_ext\"8\n\024DecimalTypeExten" + "sion\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"\"" + "\n\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r\"y\n\rCo" + "lumnOptions\0228\n\007options\030\001 \003(\0132\'.greptime." + "v1.ColumnOptions.OptionsEntry\032.\n\014Options" + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001*1\n" + "\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIM" + "ESTAMP\020\002*\354\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000" + "\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT6" + "4\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n" + "\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006" + "BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETI" + "ME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_" + "MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021" + "\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_SECON" + "D\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MICROS" + "ECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL" + "_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027" + "INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020" + "\036\022\010\n\004JSON\020\037\022\n\n\006VECTOR\020 *$\n\021JsonTypeExten" + "sion\022\017\n\013JSON_BINARY\020\000BO\n\016io.greptime.v1B" + "\006CommonZ5github.com/GreptimeTeam/greptim" + "e-proto/go/greptime/v1b\006proto3" ; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = { - false, false, 2274, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, + false, false, 2470, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, "greptime/v1/common.proto", - &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 21, + &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 23, 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, @@ -708,8 +760,13 @@ ::PROTOBUF_NAMESPACE_ID::Metadata QueryContext_ExtensionsEntry_DoNotUse::GetMeta class QueryContext::_Internal { public: + static const ::greptime::v1::SequenceSnapshot& seq_snapshot(const QueryContext* msg); }; +const ::greptime::v1::SequenceSnapshot& +QueryContext::_Internal::seq_snapshot(const QueryContext* msg) { + return *msg->_impl_.seq_snapshot_; +} QueryContext::QueryContext(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -727,6 +784,7 @@ QueryContext::QueryContext(const QueryContext& from) , decltype(_impl_.current_catalog_){} , decltype(_impl_.current_schema_){} , decltype(_impl_.timezone_){} + , decltype(_impl_.seq_snapshot_){nullptr} , decltype(_impl_.channel_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -756,6 +814,9 @@ QueryContext::QueryContext(const QueryContext& from) _this->_impl_.timezone_.Set(from._internal_timezone(), _this->GetArenaForAllocation()); } + if (from._internal_has_seq_snapshot()) { + _this->_impl_.seq_snapshot_ = new ::greptime::v1::SequenceSnapshot(*from._impl_.seq_snapshot_); + } _this->_impl_.channel_ = from._impl_.channel_; // @@protoc_insertion_point(copy_constructor:greptime.v1.QueryContext) } @@ -769,6 +830,7 @@ inline void QueryContext::SharedCtor( , decltype(_impl_.current_catalog_){} , decltype(_impl_.current_schema_){} , decltype(_impl_.timezone_){} + , decltype(_impl_.seq_snapshot_){nullptr} , decltype(_impl_.channel_){0u} , /*decltype(_impl_._cached_size_)*/{} }; @@ -803,6 +865,7 @@ inline void QueryContext::SharedDtor() { _impl_.current_catalog_.Destroy(); _impl_.current_schema_.Destroy(); _impl_.timezone_.Destroy(); + if (this != internal_default_instance()) delete _impl_.seq_snapshot_; } void QueryContext::ArenaDtor(void* object) { @@ -823,6 +886,10 @@ void QueryContext::Clear() { _impl_.current_catalog_.ClearToEmpty(); _impl_.current_schema_.ClearToEmpty(); _impl_.timezone_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.seq_snapshot_ != nullptr) { + delete _impl_.seq_snapshot_; + } + _impl_.seq_snapshot_ = nullptr; _impl_.channel_ = 0u; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -884,6 +951,14 @@ const char* QueryContext::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // .greptime.v1.SequenceSnapshot seq_snapshot = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_seq_snapshot(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -979,6 +1054,13 @@ uint8_t* QueryContext::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_channel(), target); } + // .greptime.v1.SequenceSnapshot seq_snapshot = 7; + if (this->_internal_has_seq_snapshot()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::seq_snapshot(this), + _Internal::seq_snapshot(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); @@ -1025,6 +1107,13 @@ size_t QueryContext::ByteSizeLong() const { this->_internal_timezone()); } + // .greptime.v1.SequenceSnapshot seq_snapshot = 7; + if (this->_internal_has_seq_snapshot()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.seq_snapshot_); + } + // uint32 channel = 6; if (this->_internal_channel() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_channel()); @@ -1058,6 +1147,10 @@ void QueryContext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P if (!from._internal_timezone().empty()) { _this->_internal_set_timezone(from._internal_timezone()); } + if (from._internal_has_seq_snapshot()) { + _this->_internal_mutable_seq_snapshot()->::greptime::v1::SequenceSnapshot::MergeFrom( + from._internal_seq_snapshot()); + } if (from._internal_channel() != 0) { _this->_internal_set_channel(from._internal_channel()); } @@ -1093,7 +1186,12 @@ void QueryContext::InternalSwap(QueryContext* other) { &_impl_.timezone_, lhs_arena, &other->_impl_.timezone_, rhs_arena ); - swap(_impl_.channel_, other->_impl_.channel_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(QueryContext, _impl_.channel_) + + sizeof(QueryContext::_impl_.channel_) + - PROTOBUF_FIELD_OFFSET(QueryContext, _impl_.seq_snapshot_)>( + reinterpret_cast(&_impl_.seq_snapshot_), + reinterpret_cast(&other->_impl_.seq_snapshot_)); } ::PROTOBUF_NAMESPACE_ID::Metadata QueryContext::GetMetadata() const { @@ -1104,6 +1202,226 @@ ::PROTOBUF_NAMESPACE_ID::Metadata QueryContext::GetMetadata() const { // =================================================================== +SequenceSnapshot_SeqSnapshotEntry_DoNotUse::SequenceSnapshot_SeqSnapshotEntry_DoNotUse() {} +SequenceSnapshot_SeqSnapshotEntry_DoNotUse::SequenceSnapshot_SeqSnapshotEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void SequenceSnapshot_SeqSnapshotEntry_DoNotUse::MergeFrom(const SequenceSnapshot_SeqSnapshotEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata SequenceSnapshot_SeqSnapshotEntry_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[2]); +} + +// =================================================================== + +class SequenceSnapshot::_Internal { + public: +}; + +SequenceSnapshot::SequenceSnapshot(::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, &SequenceSnapshot::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:greptime.v1.SequenceSnapshot) +} +SequenceSnapshot::SequenceSnapshot(const SequenceSnapshot& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SequenceSnapshot* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.seq_snapshot_)*/{} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.seq_snapshot_.MergeFrom(from._impl_.seq_snapshot_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.SequenceSnapshot) +} + +inline void SequenceSnapshot::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.seq_snapshot_)*/{::_pbi::ArenaInitialized(), arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +SequenceSnapshot::~SequenceSnapshot() { + // @@protoc_insertion_point(destructor:greptime.v1.SequenceSnapshot) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void SequenceSnapshot::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.seq_snapshot_.Destruct(); + _impl_.seq_snapshot_.~MapField(); +} + +void SequenceSnapshot::ArenaDtor(void* object) { + SequenceSnapshot* _this = reinterpret_cast< SequenceSnapshot* >(object); + _this->_impl_.seq_snapshot_.Destruct(); +} +void SequenceSnapshot::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SequenceSnapshot::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.SequenceSnapshot) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.seq_snapshot_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SequenceSnapshot::_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 seq_snapshot = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.seq_snapshot_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(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* SequenceSnapshot::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SequenceSnapshot) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // map seq_snapshot = 7; + if (!this->_internal_seq_snapshot().empty()) { + using MapType = ::_pb::Map; + using WireHelper = SequenceSnapshot_SeqSnapshotEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_seq_snapshot(); + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterFlat(map_field)) { + target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(7, entry.first, entry.second, 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.SequenceSnapshot) + return target; +} + +size_t SequenceSnapshot::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.SequenceSnapshot) + 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 seq_snapshot = 7; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_seq_snapshot_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >::const_iterator + it = this->_internal_seq_snapshot().begin(); + it != this->_internal_seq_snapshot().end(); ++it) { + total_size += SequenceSnapshot_SeqSnapshotEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SequenceSnapshot::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SequenceSnapshot::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SequenceSnapshot::GetClassData() const { return &_class_data_; } + + +void SequenceSnapshot::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.SequenceSnapshot) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.seq_snapshot_.MergeFrom(from._impl_.seq_snapshot_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SequenceSnapshot::CopyFrom(const SequenceSnapshot& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.SequenceSnapshot) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SequenceSnapshot::IsInitialized() const { + return true; +} + +void SequenceSnapshot::InternalSwap(SequenceSnapshot* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.seq_snapshot_.InternalSwap(&other->_impl_.seq_snapshot_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SequenceSnapshot::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]); +} + +// =================================================================== + RequestHeader_TracingContextEntry_DoNotUse::RequestHeader_TracingContextEntry_DoNotUse() {} RequestHeader_TracingContextEntry_DoNotUse::RequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} @@ -1113,7 +1431,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[2]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[4]); } // =================================================================== @@ -1576,7 +1894,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[3]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[5]); } // =================================================================== @@ -1769,7 +2087,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[4]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[6]); } // =================================================================== @@ -1999,7 +2317,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[5]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[7]); } // =================================================================== @@ -2304,7 +2622,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[6]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[8]); } // =================================================================== @@ -2557,7 +2875,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[7]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[9]); } // =================================================================== @@ -2760,7 +3078,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[8]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[10]); } // =================================================================== @@ -3063,7 +3381,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[9]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[11]); } // =================================================================== @@ -3241,7 +3559,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[10]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[12]); } // =================================================================== @@ -3439,7 +3757,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[11]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[13]); } // =================================================================== @@ -3617,7 +3935,7 @@ void ExpireAfter::InternalSwap(ExpireAfter* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ExpireAfter::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]); } // =================================================================== @@ -3856,7 +4174,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[13]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[15]); } // =================================================================== @@ -4091,7 +4409,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[14]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[16]); } // =================================================================== @@ -4302,7 +4620,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[15]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[17]); } // =================================================================== @@ -4641,7 +4959,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[16]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[18]); } // =================================================================== @@ -4852,7 +5170,7 @@ 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[17]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[19]); } // =================================================================== @@ -5030,7 +5348,7 @@ void VectorTypeExtension::InternalSwap(VectorTypeExtension* other) { ::PROTOBUF_NAMESPACE_ID::Metadata VectorTypeExtension::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[18]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[20]); } // =================================================================== @@ -5044,7 +5362,7 @@ void ColumnOptions_OptionsEntry_DoNotUse::MergeFrom(const ColumnOptions_OptionsE ::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions_OptionsEntry_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[19]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[21]); } // =================================================================== @@ -5263,7 +5581,7 @@ void ColumnOptions::InternalSwap(ColumnOptions* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions::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[20]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[22]); } // @@protoc_insertion_point(namespace_scope) @@ -5278,6 +5596,14 @@ 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::SequenceSnapshot_SeqSnapshotEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::SequenceSnapshot_SeqSnapshotEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::SequenceSnapshot_SeqSnapshotEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::SequenceSnapshot* +Arena::CreateMaybeMessage< ::greptime::v1::SequenceSnapshot >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::SequenceSnapshot >(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 06c3109b..87c99c2d 100644 --- a/c++/greptime/v1/common.pb.h +++ b/c++/greptime/v1/common.pb.h @@ -101,6 +101,12 @@ extern RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal _RequestHea class ResponseHeader; struct ResponseHeaderDefaultTypeInternal; extern ResponseHeaderDefaultTypeInternal _ResponseHeader_default_instance_; +class SequenceSnapshot; +struct SequenceSnapshotDefaultTypeInternal; +extern SequenceSnapshotDefaultTypeInternal _SequenceSnapshot_default_instance_; +class SequenceSnapshot_SeqSnapshotEntry_DoNotUse; +struct SequenceSnapshot_SeqSnapshotEntry_DoNotUseDefaultTypeInternal; +extern SequenceSnapshot_SeqSnapshotEntry_DoNotUseDefaultTypeInternal _SequenceSnapshot_SeqSnapshotEntry_DoNotUse_default_instance_; class Status; struct StatusDefaultTypeInternal; extern StatusDefaultTypeInternal _Status_default_instance_; @@ -133,6 +139,8 @@ template<> ::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse* Arena::CreateM 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*); +template<> ::greptime::v1::SequenceSnapshot* Arena::CreateMaybeMessage<::greptime::v1::SequenceSnapshot>(Arena*); +template<> ::greptime::v1::SequenceSnapshot_SeqSnapshotEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::SequenceSnapshot_SeqSnapshotEntry_DoNotUse>(Arena*); template<> ::greptime::v1::Status* Arena::CreateMaybeMessage<::greptime::v1::Status>(Arena*); template<> ::greptime::v1::TableName* Arena::CreateMaybeMessage<::greptime::v1::TableName>(Arena*); template<> ::greptime::v1::Token* Arena::CreateMaybeMessage<::greptime::v1::Token>(Arena*); @@ -401,6 +409,7 @@ class QueryContext final : kCurrentCatalogFieldNumber = 1, kCurrentSchemaFieldNumber = 2, kTimezoneFieldNumber = 4, + kSeqSnapshotFieldNumber = 7, kChannelFieldNumber = 6, }; // map extensions = 5; @@ -462,6 +471,24 @@ class QueryContext final : std::string* _internal_mutable_timezone(); public: + // .greptime.v1.SequenceSnapshot seq_snapshot = 7; + bool has_seq_snapshot() const; + private: + bool _internal_has_seq_snapshot() const; + public: + void clear_seq_snapshot(); + const ::greptime::v1::SequenceSnapshot& seq_snapshot() const; + PROTOBUF_NODISCARD ::greptime::v1::SequenceSnapshot* release_seq_snapshot(); + ::greptime::v1::SequenceSnapshot* mutable_seq_snapshot(); + void set_allocated_seq_snapshot(::greptime::v1::SequenceSnapshot* seq_snapshot); + private: + const ::greptime::v1::SequenceSnapshot& _internal_seq_snapshot() const; + ::greptime::v1::SequenceSnapshot* _internal_mutable_seq_snapshot(); + public: + void unsafe_arena_set_allocated_seq_snapshot( + ::greptime::v1::SequenceSnapshot* seq_snapshot); + ::greptime::v1::SequenceSnapshot* unsafe_arena_release_seq_snapshot(); + // uint32 channel = 6; void clear_channel(); uint32_t channel() const; @@ -487,6 +514,7 @@ class QueryContext final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr current_catalog_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr current_schema_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr timezone_; + ::greptime::v1::SequenceSnapshot* seq_snapshot_; uint32_t channel_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; @@ -495,6 +523,193 @@ class QueryContext final : }; // ------------------------------------------------------------------- +class SequenceSnapshot_SeqSnapshotEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + SequenceSnapshot_SeqSnapshotEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR SequenceSnapshot_SeqSnapshotEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit SequenceSnapshot_SeqSnapshotEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const SequenceSnapshot_SeqSnapshotEntry_DoNotUse& other); + static const SequenceSnapshot_SeqSnapshotEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SequenceSnapshot_SeqSnapshotEntry_DoNotUse_default_instance_); } + static bool ValidateKey(void*) { return true; } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto; +}; + +// ------------------------------------------------------------------- + +class SequenceSnapshot final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SequenceSnapshot) */ { + public: + inline SequenceSnapshot() : SequenceSnapshot(nullptr) {} + ~SequenceSnapshot() override; + explicit PROTOBUF_CONSTEXPR SequenceSnapshot(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SequenceSnapshot(const SequenceSnapshot& from); + SequenceSnapshot(SequenceSnapshot&& from) noexcept + : SequenceSnapshot() { + *this = ::std::move(from); + } + + inline SequenceSnapshot& operator=(const SequenceSnapshot& from) { + CopyFrom(from); + return *this; + } + inline SequenceSnapshot& operator=(SequenceSnapshot&& 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 SequenceSnapshot& default_instance() { + return *internal_default_instance(); + } + static inline const SequenceSnapshot* internal_default_instance() { + return reinterpret_cast( + &_SequenceSnapshot_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(SequenceSnapshot& a, SequenceSnapshot& b) { + a.Swap(&b); + } + inline void Swap(SequenceSnapshot* 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(SequenceSnapshot* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SequenceSnapshot* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SequenceSnapshot& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SequenceSnapshot& from) { + SequenceSnapshot::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(SequenceSnapshot* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.SequenceSnapshot"; + } + protected: + explicit SequenceSnapshot(::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 { + kSeqSnapshotFieldNumber = 7, + }; + // map seq_snapshot = 7; + int seq_snapshot_size() const; + private: + int _internal_seq_snapshot_size() const; + public: + void clear_seq_snapshot(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >& + _internal_seq_snapshot() const; + ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >* + _internal_mutable_seq_snapshot(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >& + seq_snapshot() const; + ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >* + mutable_seq_snapshot(); + + // @@protoc_insertion_point(class_scope:greptime.v1.SequenceSnapshot) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + SequenceSnapshot_SeqSnapshotEntry_DoNotUse, + uint64_t, uint64_t, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64> seq_snapshot_; + 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( + ::greptime::v1::_SequenceSnapshot_default_instance_); +} +inline const ::greptime::v1::SequenceSnapshot& QueryContext::seq_snapshot() const { + // @@protoc_insertion_point(field_get:greptime.v1.QueryContext.seq_snapshot) + return _internal_seq_snapshot(); +} +inline void QueryContext::unsafe_arena_set_allocated_seq_snapshot( + ::greptime::v1::SequenceSnapshot* seq_snapshot) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.seq_snapshot_); + } + _impl_.seq_snapshot_ = seq_snapshot; + if (seq_snapshot) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.QueryContext.seq_snapshot) +} +inline ::greptime::v1::SequenceSnapshot* QueryContext::release_seq_snapshot() { + + ::greptime::v1::SequenceSnapshot* temp = _impl_.seq_snapshot_; + _impl_.seq_snapshot_ = 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::SequenceSnapshot* QueryContext::unsafe_arena_release_seq_snapshot() { + // @@protoc_insertion_point(field_release:greptime.v1.QueryContext.seq_snapshot) + + ::greptime::v1::SequenceSnapshot* temp = _impl_.seq_snapshot_; + _impl_.seq_snapshot_ = nullptr; + return temp; +} +inline ::greptime::v1::SequenceSnapshot* QueryContext::_internal_mutable_seq_snapshot() { + + if (_impl_.seq_snapshot_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::SequenceSnapshot>(GetArenaForAllocation()); + _impl_.seq_snapshot_ = p; + } + return _impl_.seq_snapshot_; +} +inline ::greptime::v1::SequenceSnapshot* QueryContext::mutable_seq_snapshot() { + ::greptime::v1::SequenceSnapshot* _msg = _internal_mutable_seq_snapshot(); + // @@protoc_insertion_point(field_mutable:greptime.v1.QueryContext.seq_snapshot) + return _msg; +} +inline void QueryContext::set_allocated_seq_snapshot(::greptime::v1::SequenceSnapshot* seq_snapshot) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.seq_snapshot_; + } + if (seq_snapshot) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(seq_snapshot); + if (message_arena != submessage_arena) { + seq_snapshot = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, seq_snapshot, submessage_arena); + } + + } else { + + } + _impl_.seq_snapshot_ = seq_snapshot; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.QueryContext.seq_snapshot) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// SequenceSnapshot + +// map seq_snapshot = 7; +inline int SequenceSnapshot::_internal_seq_snapshot_size() const { + return _impl_.seq_snapshot_.size(); +} +inline int SequenceSnapshot::seq_snapshot_size() const { + return _internal_seq_snapshot_size(); +} +inline void SequenceSnapshot::clear_seq_snapshot() { + _impl_.seq_snapshot_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >& +SequenceSnapshot::_internal_seq_snapshot() const { + return _impl_.seq_snapshot_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >& +SequenceSnapshot::seq_snapshot() const { + // @@protoc_insertion_point(field_map:greptime.v1.SequenceSnapshot.seq_snapshot) + return _internal_seq_snapshot(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >* +SequenceSnapshot::_internal_mutable_seq_snapshot() { + return _impl_.seq_snapshot_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >* +SequenceSnapshot::mutable_seq_snapshot() { + // @@protoc_insertion_point(field_mutable_map:greptime.v1.SequenceSnapshot.seq_snapshot) + return _internal_mutable_seq_snapshot(); +} + // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -5375,6 +5715,10 @@ ColumnOptions::mutable_options() { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/common.pb.go b/go/greptime/v1/common.pb.go index 263db8d2..af665a24 100644 --- a/go/greptime/v1/common.pb.go +++ b/go/greptime/v1/common.pb.go @@ -263,6 +263,7 @@ type QueryContext struct { 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"` Channel uint32 `protobuf:"varint,6,opt,name=channel,proto3" json:"channel,omitempty"` + SeqSnapshot *SequenceSnapshot `protobuf:"bytes,7,opt,name=seq_snapshot,json=seqSnapshot,proto3" json:"seq_snapshot,omitempty"` } func (x *QueryContext) Reset() { @@ -332,6 +333,63 @@ func (x *QueryContext) GetChannel() uint32 { return 0 } +func (x *QueryContext) GetSeqSnapshot() *SequenceSnapshot { + if x != nil { + return x.SeqSnapshot + } + return nil +} + +type SequenceSnapshot struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // mapping of RegionId to SequenceNumber, for snapshot read, meaning that the + // read should only container data that was committed before(and include) the + // given sequence number + SeqSnapshot map[uint64]uint64 `protobuf:"bytes,7,rep,name=seq_snapshot,json=seqSnapshot,proto3" json:"seq_snapshot,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` +} + +func (x *SequenceSnapshot) Reset() { + *x = SequenceSnapshot{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_common_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SequenceSnapshot) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SequenceSnapshot) ProtoMessage() {} + +func (x *SequenceSnapshot) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_common_proto_msgTypes[1] + 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 SequenceSnapshot.ProtoReflect.Descriptor instead. +func (*SequenceSnapshot) Descriptor() ([]byte, []int) { + return file_greptime_v1_common_proto_rawDescGZIP(), []int{1} +} + +func (x *SequenceSnapshot) GetSeqSnapshot() map[uint64]uint64 { + if x != nil { + return x.SeqSnapshot + } + return nil +} + type RequestHeader struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -355,7 +413,7 @@ type RequestHeader struct { func (x *RequestHeader) Reset() { *x = RequestHeader{} 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) } @@ -368,7 +426,7 @@ func (x *RequestHeader) String() string { func (*RequestHeader) ProtoMessage() {} func (x *RequestHeader) 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 { @@ -381,7 +439,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{1} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{2} } func (x *RequestHeader) GetCatalog() string { @@ -437,7 +495,7 @@ type ResponseHeader struct { func (x *ResponseHeader) Reset() { *x = ResponseHeader{} 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) } @@ -450,7 +508,7 @@ func (x *ResponseHeader) String() string { func (*ResponseHeader) ProtoMessage() {} func (x *ResponseHeader) 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 { @@ -463,7 +521,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{2} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{3} } func (x *ResponseHeader) GetStatus() *Status { @@ -486,7 +544,7 @@ type Status struct { func (x *Status) Reset() { *x = Status{} 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) } @@ -499,7 +557,7 @@ func (x *Status) String() string { func (*Status) ProtoMessage() {} func (x *Status) 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 { @@ -512,7 +570,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{3} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{4} } func (x *Status) GetStatusCode() uint32 { @@ -544,7 +602,7 @@ type AuthHeader struct { func (x *AuthHeader) Reset() { *x = AuthHeader{} 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) } @@ -557,7 +615,7 @@ func (x *AuthHeader) String() string { func (*AuthHeader) ProtoMessage() {} func (x *AuthHeader) 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 { @@ -570,7 +628,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{4} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{5} } func (m *AuthHeader) GetAuthScheme() isAuthHeader_AuthScheme { @@ -622,7 +680,7 @@ type Basic struct { func (x *Basic) Reset() { *x = Basic{} 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) } @@ -635,7 +693,7 @@ func (x *Basic) String() string { func (*Basic) ProtoMessage() {} func (x *Basic) 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 { @@ -648,7 +706,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{5} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{6} } func (x *Basic) GetUsername() string { @@ -676,7 +734,7 @@ type Token struct { func (x *Token) Reset() { *x = Token{} 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) } @@ -689,7 +747,7 @@ func (x *Token) String() string { func (*Token) ProtoMessage() {} func (x *Token) 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 { @@ -702,7 +760,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{6} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{7} } func (x *Token) GetToken() string { @@ -725,7 +783,7 @@ type TableName struct { func (x *TableName) Reset() { *x = TableName{} 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) } @@ -738,7 +796,7 @@ func (x *TableName) String() string { func (*TableName) ProtoMessage() {} func (x *TableName) 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 { @@ -751,7 +809,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{7} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{8} } func (x *TableName) GetCatalogName() string { @@ -786,7 +844,7 @@ type AffectedRows struct { func (x *AffectedRows) Reset() { *x = AffectedRows{} 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) } @@ -799,7 +857,7 @@ func (x *AffectedRows) String() string { func (*AffectedRows) ProtoMessage() {} func (x *AffectedRows) 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 { @@ -812,7 +870,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{8} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{9} } func (x *AffectedRows) GetValue() uint32 { @@ -833,7 +891,7 @@ type Metrics struct { func (x *Metrics) Reset() { *x = Metrics{} 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) } @@ -846,7 +904,7 @@ func (x *Metrics) String() string { func (*Metrics) ProtoMessage() {} func (x *Metrics) 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 { @@ -859,7 +917,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{9} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{10} } func (x *Metrics) GetMetrics() []byte { @@ -880,7 +938,7 @@ type ExpireAfter struct { func (x *ExpireAfter) Reset() { *x = ExpireAfter{} 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) } @@ -893,7 +951,7 @@ func (x *ExpireAfter) String() string { func (*ExpireAfter) ProtoMessage() {} func (x *ExpireAfter) 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 { @@ -906,7 +964,7 @@ func (x *ExpireAfter) ProtoReflect() protoreflect.Message { // Deprecated: Use ExpireAfter.ProtoReflect.Descriptor instead. func (*ExpireAfter) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{10} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{11} } func (x *ExpireAfter) GetValue() int64 { @@ -928,7 +986,7 @@ type FlightMetadata struct { func (x *FlightMetadata) Reset() { *x = FlightMetadata{} 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) } @@ -941,7 +999,7 @@ func (x *FlightMetadata) String() string { func (*FlightMetadata) ProtoMessage() {} func (x *FlightMetadata) 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 { @@ -954,7 +1012,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{11} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{12} } func (x *FlightMetadata) GetAffectedRows() *AffectedRows { @@ -984,7 +1042,7 @@ type IntervalMonthDayNano struct { func (x *IntervalMonthDayNano) Reset() { *x = IntervalMonthDayNano{} 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) } @@ -997,7 +1055,7 @@ func (x *IntervalMonthDayNano) String() string { func (*IntervalMonthDayNano) ProtoMessage() {} func (x *IntervalMonthDayNano) 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 { @@ -1010,7 +1068,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{12} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{13} } func (x *IntervalMonthDayNano) GetMonths() int32 { @@ -1047,7 +1105,7 @@ type Decimal128 struct { func (x *Decimal128) Reset() { *x = Decimal128{} 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) } @@ -1060,7 +1118,7 @@ func (x *Decimal128) String() string { func (*Decimal128) ProtoMessage() {} func (x *Decimal128) 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 { @@ -1073,7 +1131,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{13} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{14} } func (x *Decimal128) GetHi() int64 { @@ -1107,7 +1165,7 @@ type ColumnDataTypeExtension struct { func (x *ColumnDataTypeExtension) Reset() { *x = ColumnDataTypeExtension{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[14] + mi := &file_greptime_v1_common_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1120,7 +1178,7 @@ func (x *ColumnDataTypeExtension) String() string { func (*ColumnDataTypeExtension) ProtoMessage() {} func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[14] + mi := &file_greptime_v1_common_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1133,7 +1191,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{14} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{15} } func (m *ColumnDataTypeExtension) GetTypeExt() isColumnDataTypeExtension_TypeExt { @@ -1199,7 +1257,7 @@ type DecimalTypeExtension struct { func (x *DecimalTypeExtension) Reset() { *x = DecimalTypeExtension{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[15] + mi := &file_greptime_v1_common_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1212,7 +1270,7 @@ func (x *DecimalTypeExtension) String() string { func (*DecimalTypeExtension) ProtoMessage() {} func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[15] + mi := &file_greptime_v1_common_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1225,7 +1283,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{15} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{16} } func (x *DecimalTypeExtension) GetPrecision() int32 { @@ -1253,7 +1311,7 @@ type VectorTypeExtension struct { func (x *VectorTypeExtension) Reset() { *x = VectorTypeExtension{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[16] + mi := &file_greptime_v1_common_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1266,7 +1324,7 @@ func (x *VectorTypeExtension) String() string { func (*VectorTypeExtension) ProtoMessage() {} func (x *VectorTypeExtension) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[16] + mi := &file_greptime_v1_common_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1279,7 +1337,7 @@ func (x *VectorTypeExtension) ProtoReflect() protoreflect.Message { // Deprecated: Use VectorTypeExtension.ProtoReflect.Descriptor instead. func (*VectorTypeExtension) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{16} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{17} } func (x *VectorTypeExtension) GetDim() uint32 { @@ -1321,7 +1379,7 @@ type ColumnOptions struct { func (x *ColumnOptions) Reset() { *x = ColumnOptions{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[17] + mi := &file_greptime_v1_common_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1334,7 +1392,7 @@ func (x *ColumnOptions) String() string { func (*ColumnOptions) ProtoMessage() {} func (x *ColumnOptions) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[17] + mi := &file_greptime_v1_common_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1347,7 +1405,7 @@ func (x *ColumnOptions) ProtoReflect() protoreflect.Message { // Deprecated: Use ColumnOptions.ProtoReflect.Descriptor instead. func (*ColumnOptions) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{17} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{18} } func (x *ColumnOptions) GetOptions() map[string]string { @@ -1362,7 +1420,7 @@ 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, 0x9e, 0x02, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x22, 0xe0, 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, @@ -1376,159 +1434,173 @@ var file_greptime_v1_common_proto_rawDesc = []byte{ 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, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 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, 0x23, - 0x0a, 0x0b, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 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, 0xf1, 0x01, 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, 0x12, 0x3d, - 0x0a, 0x09, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4a, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x48, 0x00, 0x52, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x43, 0x0a, - 0x0b, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 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, 0x22, 0x27, 0x0a, 0x13, 0x56, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, - 0x64, 0x69, 0x6d, 0x22, 0x8e, 0x01, 0x0a, 0x0d, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 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, 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, 0xec, 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, - 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x1f, 0x12, 0x0a, 0x0a, 0x06, 0x56, 0x45, - 0x43, 0x54, 0x4f, 0x52, 0x10, 0x20, 0x2a, 0x24, 0x0a, 0x11, 0x4a, 0x73, 0x6f, 0x6e, 0x54, 0x79, - 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x4a, - 0x53, 0x4f, 0x4e, 0x5f, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x00, 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, + 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x65, 0x71, + 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, + 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x0b, + 0x73, 0x65, 0x71, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 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, 0xa5, 0x01, 0x0a, 0x10, 0x53, + 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, + 0x51, 0x0a, 0x0c, 0x73, 0x65, 0x71, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, + 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x6e, 0x61, 0x70, + 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x53, 0x65, 0x71, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x65, 0x71, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x1a, 0x3e, 0x0a, 0x10, 0x53, 0x65, 0x71, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 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, 0x23, 0x0a, 0x0b, 0x45, 0x78, 0x70, 0x69, + 0x72, 0x65, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 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, 0xf1, 0x01, 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, 0x12, 0x3d, 0x0a, 0x09, 0x6a, 0x73, 0x6f, 0x6e, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x73, 0x6f, 0x6e, 0x54, 0x79, + 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x08, 0x6a, + 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x76, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, + 0x52, 0x0a, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 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, 0x22, 0x27, 0x0a, 0x13, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, + 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x64, + 0x69, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x64, 0x69, 0x6d, 0x22, 0x8e, 0x01, + 0x0a, 0x0d, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x41, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 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, 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, 0xec, 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, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, + 0x4f, 0x4e, 0x10, 0x1f, 0x12, 0x0a, 0x0a, 0x06, 0x56, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x20, + 0x2a, 0x24, 0x0a, 0x11, 0x4a, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x42, 0x49, + 0x4e, 0x41, 0x52, 0x59, 0x10, 0x00, 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 ( @@ -1544,51 +1616,55 @@ func file_greptime_v1_common_proto_rawDescGZIP() []byte { } var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 21) +var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 23) var file_greptime_v1_common_proto_goTypes = []interface{}{ (SemanticType)(0), // 0: greptime.v1.SemanticType (ColumnDataType)(0), // 1: greptime.v1.ColumnDataType (JsonTypeExtension)(0), // 2: greptime.v1.JsonTypeExtension (*QueryContext)(nil), // 3: greptime.v1.QueryContext - (*RequestHeader)(nil), // 4: greptime.v1.RequestHeader - (*ResponseHeader)(nil), // 5: greptime.v1.ResponseHeader - (*Status)(nil), // 6: greptime.v1.Status - (*AuthHeader)(nil), // 7: greptime.v1.AuthHeader - (*Basic)(nil), // 8: greptime.v1.Basic - (*Token)(nil), // 9: greptime.v1.Token - (*TableName)(nil), // 10: greptime.v1.TableName - (*AffectedRows)(nil), // 11: greptime.v1.AffectedRows - (*Metrics)(nil), // 12: greptime.v1.Metrics - (*ExpireAfter)(nil), // 13: greptime.v1.ExpireAfter - (*FlightMetadata)(nil), // 14: greptime.v1.FlightMetadata - (*IntervalMonthDayNano)(nil), // 15: greptime.v1.IntervalMonthDayNano - (*Decimal128)(nil), // 16: greptime.v1.Decimal128 - (*ColumnDataTypeExtension)(nil), // 17: greptime.v1.ColumnDataTypeExtension - (*DecimalTypeExtension)(nil), // 18: greptime.v1.DecimalTypeExtension - (*VectorTypeExtension)(nil), // 19: greptime.v1.VectorTypeExtension - (*ColumnOptions)(nil), // 20: greptime.v1.ColumnOptions - nil, // 21: greptime.v1.QueryContext.ExtensionsEntry - nil, // 22: greptime.v1.RequestHeader.TracingContextEntry - nil, // 23: greptime.v1.ColumnOptions.OptionsEntry + (*SequenceSnapshot)(nil), // 4: greptime.v1.SequenceSnapshot + (*RequestHeader)(nil), // 5: greptime.v1.RequestHeader + (*ResponseHeader)(nil), // 6: greptime.v1.ResponseHeader + (*Status)(nil), // 7: greptime.v1.Status + (*AuthHeader)(nil), // 8: greptime.v1.AuthHeader + (*Basic)(nil), // 9: greptime.v1.Basic + (*Token)(nil), // 10: greptime.v1.Token + (*TableName)(nil), // 11: greptime.v1.TableName + (*AffectedRows)(nil), // 12: greptime.v1.AffectedRows + (*Metrics)(nil), // 13: greptime.v1.Metrics + (*ExpireAfter)(nil), // 14: greptime.v1.ExpireAfter + (*FlightMetadata)(nil), // 15: greptime.v1.FlightMetadata + (*IntervalMonthDayNano)(nil), // 16: greptime.v1.IntervalMonthDayNano + (*Decimal128)(nil), // 17: greptime.v1.Decimal128 + (*ColumnDataTypeExtension)(nil), // 18: greptime.v1.ColumnDataTypeExtension + (*DecimalTypeExtension)(nil), // 19: greptime.v1.DecimalTypeExtension + (*VectorTypeExtension)(nil), // 20: greptime.v1.VectorTypeExtension + (*ColumnOptions)(nil), // 21: greptime.v1.ColumnOptions + nil, // 22: greptime.v1.QueryContext.ExtensionsEntry + nil, // 23: greptime.v1.SequenceSnapshot.SeqSnapshotEntry + nil, // 24: greptime.v1.RequestHeader.TracingContextEntry + nil, // 25: greptime.v1.ColumnOptions.OptionsEntry } var file_greptime_v1_common_proto_depIdxs = []int32{ - 21, // 0: greptime.v1.QueryContext.extensions:type_name -> greptime.v1.QueryContext.ExtensionsEntry - 7, // 1: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader - 22, // 2: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry - 6, // 3: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status - 8, // 4: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic - 9, // 5: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token - 11, // 6: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows - 12, // 7: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics - 18, // 8: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension - 2, // 9: greptime.v1.ColumnDataTypeExtension.json_type:type_name -> greptime.v1.JsonTypeExtension - 19, // 10: greptime.v1.ColumnDataTypeExtension.vector_type:type_name -> greptime.v1.VectorTypeExtension - 23, // 11: greptime.v1.ColumnOptions.options:type_name -> greptime.v1.ColumnOptions.OptionsEntry - 12, // [12:12] is the sub-list for method output_type - 12, // [12:12] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 22, // 0: greptime.v1.QueryContext.extensions:type_name -> greptime.v1.QueryContext.ExtensionsEntry + 4, // 1: greptime.v1.QueryContext.seq_snapshot:type_name -> greptime.v1.SequenceSnapshot + 23, // 2: greptime.v1.SequenceSnapshot.seq_snapshot:type_name -> greptime.v1.SequenceSnapshot.SeqSnapshotEntry + 8, // 3: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader + 24, // 4: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry + 7, // 5: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status + 9, // 6: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic + 10, // 7: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token + 12, // 8: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows + 13, // 9: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics + 19, // 10: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension + 2, // 11: greptime.v1.ColumnDataTypeExtension.json_type:type_name -> greptime.v1.JsonTypeExtension + 20, // 12: greptime.v1.ColumnDataTypeExtension.vector_type:type_name -> greptime.v1.VectorTypeExtension + 25, // 13: greptime.v1.ColumnOptions.options:type_name -> greptime.v1.ColumnOptions.OptionsEntry + 14, // [14:14] is the sub-list for method output_type + 14, // [14:14] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name } func init() { file_greptime_v1_common_proto_init() } @@ -1610,7 +1686,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.(*RequestHeader); i { + switch v := v.(*SequenceSnapshot); i { case 0: return &v.state case 1: @@ -1622,7 +1698,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.(*ResponseHeader); i { + switch v := v.(*RequestHeader); i { case 0: return &v.state case 1: @@ -1634,7 +1710,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.(*Status); i { + switch v := v.(*ResponseHeader); i { case 0: return &v.state case 1: @@ -1646,7 +1722,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.(*AuthHeader); i { + switch v := v.(*Status); i { case 0: return &v.state case 1: @@ -1658,7 +1734,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.(*Basic); i { + switch v := v.(*AuthHeader); i { case 0: return &v.state case 1: @@ -1670,7 +1746,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.(*Token); i { + switch v := v.(*Basic); i { case 0: return &v.state case 1: @@ -1682,7 +1758,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.(*TableName); i { + switch v := v.(*Token); i { case 0: return &v.state case 1: @@ -1694,7 +1770,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.(*AffectedRows); i { + switch v := v.(*TableName); i { case 0: return &v.state case 1: @@ -1706,7 +1782,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.(*Metrics); i { + switch v := v.(*AffectedRows); i { case 0: return &v.state case 1: @@ -1718,7 +1794,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.(*ExpireAfter); i { + switch v := v.(*Metrics); i { case 0: return &v.state case 1: @@ -1730,7 +1806,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.(*FlightMetadata); i { + switch v := v.(*ExpireAfter); i { case 0: return &v.state case 1: @@ -1742,7 +1818,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.(*IntervalMonthDayNano); i { + switch v := v.(*FlightMetadata); i { case 0: return &v.state case 1: @@ -1754,7 +1830,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Decimal128); i { + switch v := v.(*IntervalMonthDayNano); i { case 0: return &v.state case 1: @@ -1766,7 +1842,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColumnDataTypeExtension); i { + switch v := v.(*Decimal128); i { case 0: return &v.state case 1: @@ -1778,7 +1854,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecimalTypeExtension); i { + switch v := v.(*ColumnDataTypeExtension); i { case 0: return &v.state case 1: @@ -1790,7 +1866,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VectorTypeExtension); i { + switch v := v.(*DecimalTypeExtension); i { case 0: return &v.state case 1: @@ -1802,6 +1878,18 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VectorTypeExtension); 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[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ColumnOptions); i { case 0: return &v.state @@ -1814,11 +1902,11 @@ func file_greptime_v1_common_proto_init() { } } } - file_greptime_v1_common_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_greptime_v1_common_proto_msgTypes[5].OneofWrappers = []interface{}{ (*AuthHeader_Basic)(nil), (*AuthHeader_Token)(nil), } - file_greptime_v1_common_proto_msgTypes[14].OneofWrappers = []interface{}{ + file_greptime_v1_common_proto_msgTypes[15].OneofWrappers = []interface{}{ (*ColumnDataTypeExtension_DecimalType)(nil), (*ColumnDataTypeExtension_JsonType)(nil), (*ColumnDataTypeExtension_VectorType)(nil), @@ -1829,7 +1917,7 @@ func file_greptime_v1_common_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_common_proto_rawDesc, NumEnums: 3, - NumMessages: 21, + NumMessages: 23, NumExtensions: 0, NumServices: 0, }, diff --git a/java/src/main/java/io/greptime/v1/Common.java b/java/src/main/java/io/greptime/v1/Common.java index bc292476..ed2fa336 100644 --- a/java/src/main/java/io/greptime/v1/Common.java +++ b/java/src/main/java/io/greptime/v1/Common.java @@ -662,6 +662,21 @@ java.lang.String getExtensionsOrThrow( * @return The channel. */ int getChannel(); + + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + * @return Whether the seqSnapshot field is set. + */ + boolean hasSeqSnapshot(); + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + * @return The seqSnapshot. + */ + io.greptime.v1.Common.SequenceSnapshot getSeqSnapshot(); + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + */ + io.greptime.v1.Common.SequenceSnapshotOrBuilder getSeqSnapshotOrBuilder(); } /** * Protobuf type {@code greptime.v1.QueryContext} @@ -748,6 +763,19 @@ private QueryContext( channel_ = input.readUInt32(); break; } + case 58: { + io.greptime.v1.Common.SequenceSnapshot.Builder subBuilder = null; + if (seqSnapshot_ != null) { + subBuilder = seqSnapshot_.toBuilder(); + } + seqSnapshot_ = input.readMessage(io.greptime.v1.Common.SequenceSnapshot.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(seqSnapshot_); + seqSnapshot_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -1000,6 +1028,32 @@ public int getChannel() { return channel_; } + public static final int SEQ_SNAPSHOT_FIELD_NUMBER = 7; + private io.greptime.v1.Common.SequenceSnapshot seqSnapshot_; + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + * @return Whether the seqSnapshot field is set. + */ + @java.lang.Override + public boolean hasSeqSnapshot() { + return seqSnapshot_ != null; + } + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + * @return The seqSnapshot. + */ + @java.lang.Override + public io.greptime.v1.Common.SequenceSnapshot getSeqSnapshot() { + return seqSnapshot_ == null ? io.greptime.v1.Common.SequenceSnapshot.getDefaultInstance() : seqSnapshot_; + } + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + */ + @java.lang.Override + public io.greptime.v1.Common.SequenceSnapshotOrBuilder getSeqSnapshotOrBuilder() { + return getSeqSnapshot(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1032,6 +1086,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (channel_ != 0) { output.writeUInt32(6, channel_); } + if (seqSnapshot_ != null) { + output.writeMessage(7, getSeqSnapshot()); + } unknownFields.writeTo(output); } @@ -1064,6 +1121,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, channel_); } + if (seqSnapshot_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSeqSnapshot()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1089,6 +1150,11 @@ public boolean equals(final java.lang.Object obj) { other.internalGetExtensions())) return false; if (getChannel() != other.getChannel()) return false; + if (hasSeqSnapshot() != other.hasSeqSnapshot()) return false; + if (hasSeqSnapshot()) { + if (!getSeqSnapshot() + .equals(other.getSeqSnapshot())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1112,6 +1178,10 @@ public int hashCode() { } hash = (37 * hash) + CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getChannel(); + if (hasSeqSnapshot()) { + hash = (37 * hash) + SEQ_SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSeqSnapshot().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1276,6 +1346,12 @@ public Builder clear() { internalGetMutableExtensions().clear(); channel_ = 0; + if (seqSnapshotBuilder_ == null) { + seqSnapshot_ = null; + } else { + seqSnapshot_ = null; + seqSnapshotBuilder_ = null; + } return this; } @@ -1309,6 +1385,11 @@ public io.greptime.v1.Common.QueryContext buildPartial() { result.extensions_ = internalGetExtensions(); result.extensions_.makeImmutable(); result.channel_ = channel_; + if (seqSnapshotBuilder_ == null) { + result.seqSnapshot_ = seqSnapshot_; + } else { + result.seqSnapshot_ = seqSnapshotBuilder_.build(); + } onBuilt(); return result; } @@ -1374,6 +1455,9 @@ public Builder mergeFrom(io.greptime.v1.Common.QueryContext other) { if (other.getChannel() != 0) { setChannel(other.getChannel()); } + if (other.hasSeqSnapshot()) { + mergeSeqSnapshot(other.getSeqSnapshot()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1573,159 +1657,1136 @@ public java.lang.String getTimezone() { 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; + /** + * 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; + } + + private int channel_ ; + /** + * uint32 channel = 6; + * @return The channel. + */ + @java.lang.Override + public int getChannel() { + return channel_; + } + /** + * uint32 channel = 6; + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(int value) { + + channel_ = value; + onChanged(); + return this; + } + /** + * uint32 channel = 6; + * @return This builder for chaining. + */ + public Builder clearChannel() { + + channel_ = 0; + onChanged(); + return this; + } + + private io.greptime.v1.Common.SequenceSnapshot seqSnapshot_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.SequenceSnapshot, io.greptime.v1.Common.SequenceSnapshot.Builder, io.greptime.v1.Common.SequenceSnapshotOrBuilder> seqSnapshotBuilder_; + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + * @return Whether the seqSnapshot field is set. + */ + public boolean hasSeqSnapshot() { + return seqSnapshotBuilder_ != null || seqSnapshot_ != null; + } + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + * @return The seqSnapshot. + */ + public io.greptime.v1.Common.SequenceSnapshot getSeqSnapshot() { + if (seqSnapshotBuilder_ == null) { + return seqSnapshot_ == null ? io.greptime.v1.Common.SequenceSnapshot.getDefaultInstance() : seqSnapshot_; + } else { + return seqSnapshotBuilder_.getMessage(); + } + } + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + */ + public Builder setSeqSnapshot(io.greptime.v1.Common.SequenceSnapshot value) { + if (seqSnapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + seqSnapshot_ = value; + onChanged(); + } else { + seqSnapshotBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + */ + public Builder setSeqSnapshot( + io.greptime.v1.Common.SequenceSnapshot.Builder builderForValue) { + if (seqSnapshotBuilder_ == null) { + seqSnapshot_ = builderForValue.build(); + onChanged(); + } else { + seqSnapshotBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + */ + public Builder mergeSeqSnapshot(io.greptime.v1.Common.SequenceSnapshot value) { + if (seqSnapshotBuilder_ == null) { + if (seqSnapshot_ != null) { + seqSnapshot_ = + io.greptime.v1.Common.SequenceSnapshot.newBuilder(seqSnapshot_).mergeFrom(value).buildPartial(); + } else { + seqSnapshot_ = value; + } + onChanged(); + } else { + seqSnapshotBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + */ + public Builder clearSeqSnapshot() { + if (seqSnapshotBuilder_ == null) { + seqSnapshot_ = null; + onChanged(); + } else { + seqSnapshot_ = null; + seqSnapshotBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + */ + public io.greptime.v1.Common.SequenceSnapshot.Builder getSeqSnapshotBuilder() { + + onChanged(); + return getSeqSnapshotFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + */ + public io.greptime.v1.Common.SequenceSnapshotOrBuilder getSeqSnapshotOrBuilder() { + if (seqSnapshotBuilder_ != null) { + return seqSnapshotBuilder_.getMessageOrBuilder(); + } else { + return seqSnapshot_ == null ? + io.greptime.v1.Common.SequenceSnapshot.getDefaultInstance() : seqSnapshot_; + } + } + /** + * .greptime.v1.SequenceSnapshot seq_snapshot = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.SequenceSnapshot, io.greptime.v1.Common.SequenceSnapshot.Builder, io.greptime.v1.Common.SequenceSnapshotOrBuilder> + getSeqSnapshotFieldBuilder() { + if (seqSnapshotBuilder_ == null) { + seqSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.SequenceSnapshot, io.greptime.v1.Common.SequenceSnapshot.Builder, io.greptime.v1.Common.SequenceSnapshotOrBuilder>( + getSeqSnapshot(), + getParentForChildren(), + isClean()); + seqSnapshot_ = null; + } + return seqSnapshotBuilder_; + } + @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 SequenceSnapshotOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.SequenceSnapshot) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+     * read should only container data that was committed before(and include) the
+     * given sequence number
+     * 
+ * + * map<uint64, uint64> seq_snapshot = 7; + */ + int getSeqSnapshotCount(); + /** + *
+     * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+     * read should only container data that was committed before(and include) the
+     * given sequence number
+     * 
+ * + * map<uint64, uint64> seq_snapshot = 7; + */ + boolean containsSeqSnapshot( + long key); + /** + * Use {@link #getSeqSnapshotMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSeqSnapshot(); + /** + *
+     * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+     * read should only container data that was committed before(and include) the
+     * given sequence number
+     * 
+ * + * map<uint64, uint64> seq_snapshot = 7; + */ + java.util.Map + getSeqSnapshotMap(); + /** + *
+     * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+     * read should only container data that was committed before(and include) the
+     * given sequence number
+     * 
+ * + * map<uint64, uint64> seq_snapshot = 7; + */ + + long getSeqSnapshotOrDefault( + long key, + long defaultValue); + /** + *
+     * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+     * read should only container data that was committed before(and include) the
+     * given sequence number
+     * 
+ * + * map<uint64, uint64> seq_snapshot = 7; + */ + + long getSeqSnapshotOrThrow( + long key); + } + /** + * Protobuf type {@code greptime.v1.SequenceSnapshot} + */ + public static final class SequenceSnapshot extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.SequenceSnapshot) + SequenceSnapshotOrBuilder { + private static final long serialVersionUID = 0L; + // Use SequenceSnapshot.newBuilder() to construct. + private SequenceSnapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SequenceSnapshot() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SequenceSnapshot(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SequenceSnapshot( + 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 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + seqSnapshot_ = com.google.protobuf.MapField.newMapField( + SeqSnapshotDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + seqSnapshot__ = input.readMessage( + SeqSnapshotDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + seqSnapshot_.getMutableMap().put( + seqSnapshot__.getKey(), seqSnapshot__.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_SequenceSnapshot_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetSeqSnapshot(); + 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_SequenceSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.SequenceSnapshot.class, io.greptime.v1.Common.SequenceSnapshot.Builder.class); + } + + public static final int SEQ_SNAPSHOT_FIELD_NUMBER = 7; + private static final class SeqSnapshotDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Long, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.greptime.v1.Common.internal_static_greptime_v1_SequenceSnapshot_SeqSnapshotEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.UINT64, + 0L, + com.google.protobuf.WireFormat.FieldType.UINT64, + 0L); + } + private com.google.protobuf.MapField< + java.lang.Long, java.lang.Long> seqSnapshot_; + private com.google.protobuf.MapField + internalGetSeqSnapshot() { + if (seqSnapshot_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SeqSnapshotDefaultEntryHolder.defaultEntry); + } + return seqSnapshot_; + } + + public int getSeqSnapshotCount() { + return internalGetSeqSnapshot().getMap().size(); + } + /** + *
+     * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+     * read should only container data that was committed before(and include) the
+     * given sequence number
+     * 
+ * + * map<uint64, uint64> seq_snapshot = 7; + */ + + @java.lang.Override + public boolean containsSeqSnapshot( + long key) { + + return internalGetSeqSnapshot().getMap().containsKey(key); + } + /** + * Use {@link #getSeqSnapshotMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSeqSnapshot() { + return getSeqSnapshotMap(); + } + /** + *
+     * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+     * read should only container data that was committed before(and include) the
+     * given sequence number
+     * 
+ * + * map<uint64, uint64> seq_snapshot = 7; + */ + @java.lang.Override + + public java.util.Map getSeqSnapshotMap() { + return internalGetSeqSnapshot().getMap(); + } + /** + *
+     * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+     * read should only container data that was committed before(and include) the
+     * given sequence number
+     * 
+ * + * map<uint64, uint64> seq_snapshot = 7; + */ + @java.lang.Override + + public long getSeqSnapshotOrDefault( + long key, + long defaultValue) { + + java.util.Map map = + internalGetSeqSnapshot().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+     * read should only container data that was committed before(and include) the
+     * given sequence number
+     * 
+ * + * map<uint64, uint64> seq_snapshot = 7; + */ + @java.lang.Override + + public long getSeqSnapshotOrThrow( + long key) { + + java.util.Map map = + internalGetSeqSnapshot().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 { + com.google.protobuf.GeneratedMessageV3 + .serializeLongMapTo( + output, + internalGetSeqSnapshot(), + SeqSnapshotDefaultEntryHolder.defaultEntry, + 7); + 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 + : internalGetSeqSnapshot().getMap().entrySet()) { + com.google.protobuf.MapEntry + seqSnapshot__ = SeqSnapshotDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, seqSnapshot__); + } + 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.SequenceSnapshot)) { + return super.equals(obj); + } + io.greptime.v1.Common.SequenceSnapshot other = (io.greptime.v1.Common.SequenceSnapshot) obj; + + if (!internalGetSeqSnapshot().equals( + other.internalGetSeqSnapshot())) 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 (!internalGetSeqSnapshot().getMap().isEmpty()) { + hash = (37 * hash) + SEQ_SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + internalGetSeqSnapshot().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Common.SequenceSnapshot parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.SequenceSnapshot 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.SequenceSnapshot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.SequenceSnapshot 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.SequenceSnapshot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.SequenceSnapshot parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.SequenceSnapshot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.SequenceSnapshot 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.SequenceSnapshot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.SequenceSnapshot 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.SequenceSnapshot parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.SequenceSnapshot 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.SequenceSnapshot 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.SequenceSnapshot} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.SequenceSnapshot) + io.greptime.v1.Common.SequenceSnapshotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_SequenceSnapshot_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetSeqSnapshot(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 7: + return internalGetMutableSeqSnapshot(); + 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_SequenceSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.SequenceSnapshot.class, io.greptime.v1.Common.SequenceSnapshot.Builder.class); + } + + // Construct using io.greptime.v1.Common.SequenceSnapshot.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(); + internalGetMutableSeqSnapshot().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Common.internal_static_greptime_v1_SequenceSnapshot_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Common.SequenceSnapshot getDefaultInstanceForType() { + return io.greptime.v1.Common.SequenceSnapshot.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Common.SequenceSnapshot build() { + io.greptime.v1.Common.SequenceSnapshot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Common.SequenceSnapshot buildPartial() { + io.greptime.v1.Common.SequenceSnapshot result = new io.greptime.v1.Common.SequenceSnapshot(this); + int from_bitField0_ = bitField0_; + result.seqSnapshot_ = internalGetSeqSnapshot(); + result.seqSnapshot_.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.SequenceSnapshot) { + return mergeFrom((io.greptime.v1.Common.SequenceSnapshot)other); } else { - return (com.google.protobuf.ByteString) ref; + super.mergeFrom(other); + return this; } } - /** - * 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; + + public Builder mergeFrom(io.greptime.v1.Common.SequenceSnapshot other) { + if (other == io.greptime.v1.Common.SequenceSnapshot.getDefaultInstance()) return this; + internalGetMutableSeqSnapshot().mergeFrom( + other.internalGetSeqSnapshot()); + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - /** - * string timezone = 4; - * @return This builder for chaining. - */ - public Builder clearTimezone() { - - timezone_ = getDefaultInstance().getTimezone(); - onChanged(); - return this; + + @java.lang.Override + public final boolean isInitialized() { + return true; } - /** - * 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(); + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Common.SequenceSnapshot parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Common.SequenceSnapshot) 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> extensions_; - private com.google.protobuf.MapField - internalGetExtensions() { - if (extensions_ == null) { + java.lang.Long, java.lang.Long> seqSnapshot_; + private com.google.protobuf.MapField + internalGetSeqSnapshot() { + if (seqSnapshot_ == null) { return com.google.protobuf.MapField.emptyMapField( - ExtensionsDefaultEntryHolder.defaultEntry); + SeqSnapshotDefaultEntryHolder.defaultEntry); } - return extensions_; + return seqSnapshot_; } - private com.google.protobuf.MapField - internalGetMutableExtensions() { + private com.google.protobuf.MapField + internalGetMutableSeqSnapshot() { onChanged();; - if (extensions_ == null) { - extensions_ = com.google.protobuf.MapField.newMapField( - ExtensionsDefaultEntryHolder.defaultEntry); + if (seqSnapshot_ == null) { + seqSnapshot_ = com.google.protobuf.MapField.newMapField( + SeqSnapshotDefaultEntryHolder.defaultEntry); } - if (!extensions_.isMutable()) { - extensions_ = extensions_.copy(); + if (!seqSnapshot_.isMutable()) { + seqSnapshot_ = seqSnapshot_.copy(); } - return extensions_; + return seqSnapshot_; } - public int getExtensionsCount() { - return internalGetExtensions().getMap().size(); + public int getSeqSnapshotCount() { + return internalGetSeqSnapshot().getMap().size(); } /** - * map<string, string> extensions = 5; + *
+       * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+       * read should only container data that was committed before(and include) the
+       * given sequence number
+       * 
+ * + * map<uint64, uint64> seq_snapshot = 7; */ @java.lang.Override - public boolean containsExtensions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetExtensions().getMap().containsKey(key); + public boolean containsSeqSnapshot( + long key) { + + return internalGetSeqSnapshot().getMap().containsKey(key); } /** - * Use {@link #getExtensionsMap()} instead. + * Use {@link #getSeqSnapshotMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getExtensions() { - return getExtensionsMap(); + public java.util.Map getSeqSnapshot() { + return getSeqSnapshotMap(); } /** - * map<string, string> extensions = 5; + *
+       * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+       * read should only container data that was committed before(and include) the
+       * given sequence number
+       * 
+ * + * map<uint64, uint64> seq_snapshot = 7; */ @java.lang.Override - public java.util.Map getExtensionsMap() { - return internalGetExtensions().getMap(); + public java.util.Map getSeqSnapshotMap() { + return internalGetSeqSnapshot().getMap(); } /** - * map<string, string> extensions = 5; + *
+       * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+       * read should only container data that was committed before(and include) the
+       * given sequence number
+       * 
+ * + * map<uint64, uint64> seq_snapshot = 7; */ @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(); + public long getSeqSnapshotOrDefault( + long key, + long defaultValue) { + + java.util.Map map = + internalGetSeqSnapshot().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, string> extensions = 5; + *
+       * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+       * read should only container data that was committed before(and include) the
+       * given sequence number
+       * 
+ * + * map<uint64, uint64> seq_snapshot = 7; */ @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(); + public long getSeqSnapshotOrThrow( + long key) { + + java.util.Map map = + internalGetSeqSnapshot().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearExtensions() { - internalGetMutableExtensions().getMutableMap() + public Builder clearSeqSnapshot() { + internalGetMutableSeqSnapshot().getMutableMap() .clear(); return this; } /** - * map<string, string> extensions = 5; + *
+       * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+       * read should only container data that was committed before(and include) the
+       * given sequence number
+       * 
+ * + * map<uint64, uint64> seq_snapshot = 7; */ - public Builder removeExtensions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableExtensions().getMutableMap() + public Builder removeSeqSnapshot( + long key) { + + internalGetMutableSeqSnapshot().getMutableMap() .remove(key); return this; } @@ -1733,66 +2794,44 @@ public Builder removeExtensions( * Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableExtensions() { - return internalGetMutableExtensions().getMutableMap(); + public java.util.Map + getMutableSeqSnapshot() { + return internalGetMutableSeqSnapshot().getMutableMap(); } /** - * map<string, string> extensions = 5; + *
+       * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+       * read should only container data that was committed before(and include) the
+       * given sequence number
+       * 
+ * + * map<uint64, uint64> seq_snapshot = 7; */ - 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() + public Builder putSeqSnapshot( + long key, + long value) { + + + internalGetMutableSeqSnapshot().getMutableMap() .put(key, value); return this; } /** - * map<string, string> extensions = 5; + *
+       * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
+       * read should only container data that was committed before(and include) the
+       * given sequence number
+       * 
+ * + * map<uint64, uint64> seq_snapshot = 7; */ - public Builder putAllExtensions( - java.util.Map values) { - internalGetMutableExtensions().getMutableMap() + public Builder putAllSeqSnapshot( + java.util.Map values) { + internalGetMutableSeqSnapshot().getMutableMap() .putAll(values); return this; } - - private int channel_ ; - /** - * uint32 channel = 6; - * @return The channel. - */ - @java.lang.Override - public int getChannel() { - return channel_; - } - /** - * uint32 channel = 6; - * @param value The channel to set. - * @return This builder for chaining. - */ - public Builder setChannel(int value) { - - channel_ = value; - onChanged(); - return this; - } - /** - * uint32 channel = 6; - * @return This builder for chaining. - */ - public Builder clearChannel() { - - channel_ = 0; - onChanged(); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1806,41 +2845,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.QueryContext) + // @@protoc_insertion_point(builder_scope:greptime.v1.SequenceSnapshot) } - // @@protoc_insertion_point(class_scope:greptime.v1.QueryContext) - private static final io.greptime.v1.Common.QueryContext DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.SequenceSnapshot) + private static final io.greptime.v1.Common.SequenceSnapshot DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Common.QueryContext(); + DEFAULT_INSTANCE = new io.greptime.v1.Common.SequenceSnapshot(); } - public static io.greptime.v1.Common.QueryContext getDefaultInstance() { + public static io.greptime.v1.Common.SequenceSnapshot getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public QueryContext parsePartialFrom( + public SequenceSnapshot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryContext(input, extensionRegistry); + return new SequenceSnapshot(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Common.QueryContext getDefaultInstanceForType() { + public io.greptime.v1.Common.SequenceSnapshot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -14831,6 +15870,16 @@ public io.greptime.v1.Common.ColumnOptions getDefaultInstanceForType() { 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_SequenceSnapshot_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_SequenceSnapshot_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_SequenceSnapshot_SeqSnapshotEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_SequenceSnapshot_SeqSnapshotEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_RequestHeader_descriptor; private static final @@ -14936,62 +15985,67 @@ public io.greptime.v1.Common.ColumnOptions getDefaultInstanceForType() { static { java.lang.String[] descriptorData = { "\n\030greptime/v1/common.proto\022\013greptime.v1\"" + - "\324\001\n\014QueryContext\022\027\n\017current_catalog\030\001 \001(" + + "\211\002\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\022\017\n\007channel\030\006 " + - "\001(\r\0321\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t:\0028\001\"\202\002\n\rRequestHeader\022\017\n\007cata" + - "log\030\001 \001(\t\022\016\n\006schema\030\002 \001(\t\022.\n\rauthorizati" + - "on\030\003 \001(\0132\027.greptime.v1.AuthHeader\022\016\n\006dbn" + - "ame\030\004 \001(\t\022G\n\017tracing_context\030\005 \003(\0132..gre" + - "ptime.v1.RequestHeader.TracingContextEnt" + - "ry\022\020\n\010timezone\030\006 \001(\t\0325\n\023TracingContextEn" + - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\016R" + - "esponseHeader\022#\n\006status\030\001 \001(\0132\023.greptime" + - ".v1.Status\".\n\006Status\022\023\n\013status_code\030\001 \001(" + - "\r\022\017\n\007err_msg\030\002 \001(\t\"e\n\nAuthHeader\022#\n\005basi" + - "c\030\001 \001(\0132\022.greptime.v1.BasicH\000\022#\n\005token\030\002" + - " \001(\0132\022.greptime.v1.TokenH\000B\r\n\013auth_schem" + - "e\"+\n\005Basic\022\020\n\010username\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\tTableN" + - "ame\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\014AffectedRo" + - "ws\022\r\n\005value\030\001 \001(\r\"\032\n\007Metrics\022\017\n\007metrics\030" + - "\001 \001(\014\"\034\n\013ExpireAfter\022\r\n\005value\030\001 \001(\003\"i\n\016F" + - "lightMetadata\0220\n\raffected_rows\030\001 \001(\0132\031.g" + - "reptime.v1.AffectedRows\022%\n\007metrics\030\002 \001(\013" + - "2\024.greptime.v1.Metrics\"I\n\024IntervalMonthD" + - "ayNano\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013" + - "nanoseconds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 " + - "\001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExtens" + - "ion\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v1." + - "DecimalTypeExtensionH\000\0223\n\tjson_type\030\002 \001(" + - "\0162\036.greptime.v1.JsonTypeExtensionH\000\0227\n\013v" + - "ector_type\030\003 \001(\0132 .greptime.v1.VectorTyp" + - "eExtensionH\000B\n\n\010type_ext\"8\n\024DecimalTypeE" + - "xtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001" + - "(\005\"\"\n\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r\"y" + - "\n\rColumnOptions\0228\n\007options\030\001 \003(\0132\'.grept" + - "ime.v1.ColumnOptions.OptionsEntry\032.\n\014Opt" + - "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n" + - "\tTIMESTAMP\020\002*\354\003\n\016ColumnDataType\022\013\n\007BOOLE" + - "AN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005" + - "INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32" + - "\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n" + - "\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DA" + - "TETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMEST" + - "AMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECO" + - "ND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_S" + - "ECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MI" + - "CROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTE" + - "RVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030" + - "\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL" + - "128\020\036\022\010\n\004JSON\020\037\022\n\n\006VECTOR\020 *$\n\021JsonTypeE" + - "xtension\022\017\n\013JSON_BINARY\020\000BO\n\016io.greptime" + - ".v1B\006CommonZ5github.com/GreptimeTeam/gre" + - "ptime-proto/go/greptime/v1b\006proto3" + "\001(\r\0223\n\014seq_snapshot\030\007 \001(\0132\035.greptime.v1." + + "SequenceSnapshot\0321\n\017ExtensionsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\214\001\n\020Sequence" + + "Snapshot\022D\n\014seq_snapshot\030\007 \003(\0132..greptim" + + "e.v1.SequenceSnapshot.SeqSnapshotEntry\0322" + + "\n\020SeqSnapshotEntry\022\013\n\003key\030\001 \001(\004\022\r\n\005value" + + "\030\002 \001(\004:\0028\001\"\202\002\n\rRequestHeader\022\017\n\007catalog\030" + + "\001 \001(\t\022\016\n\006schema\030\002 \001(\t\022.\n\rauthorization\030\003" + + " \001(\0132\027.greptime.v1.AuthHeader\022\016\n\006dbname\030" + + "\004 \001(\t\022G\n\017tracing_context\030\005 \003(\0132..greptim" + + "e.v1.RequestHeader.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\016Respo" + + "nseHeader\022#\n\006status\030\001 \001(\0132\023.greptime.v1." + + "Status\".\n\006Status\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.greptime.v1.BasicH\000\022#\n\005token\030\002 \001(\013" + + "2\022.greptime.v1.TokenH\000B\r\n\013auth_scheme\"+\n" + + "\005Basic\022\020\n\010username\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\"\034\n\013ExpireAfter\022\r\n\005value\030\001 \001(\003\"i\n\016Fligh" + + "tMetadata\0220\n\raffected_rows\030\001 \001(\0132\031.grept" + + "ime.v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132\024.g" + + "reptime.v1.Metrics\"I\n\024IntervalMonthDayNa" + + "no\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nano" + + "seconds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022" + + "\n\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExtension\022" + + "9\n\014decimal_type\030\001 \001(\0132!.greptime.v1.Deci" + + "malTypeExtensionH\000\0223\n\tjson_type\030\002 \001(\0162\036." + + "greptime.v1.JsonTypeExtensionH\000\0227\n\013vecto" + + "r_type\030\003 \001(\0132 .greptime.v1.VectorTypeExt" + + "ensionH\000B\n\n\010type_ext\"8\n\024DecimalTypeExten" + + "sion\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"\"" + + "\n\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r\"y\n\rCo" + + "lumnOptions\0228\n\007options\030\001 \003(\0132\'.greptime." + + "v1.ColumnOptions.OptionsEntry\032.\n\014Options" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001*1\n" + + "\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIM" + + "ESTAMP\020\002*\354\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000" + + "\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT6" + + "4\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n" + + "\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006" + + "BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETI" + + "ME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_" + + "MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021" + + "\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_SECON" + + "D\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MICROS" + + "ECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL" + + "_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027" + + "INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020" + + "\036\022\010\n\004JSON\020\037\022\n\n\006VECTOR\020 *$\n\021JsonTypeExten" + + "sion\022\017\n\013JSON_BINARY\020\000BO\n\016io.greptime.v1B" + + "\006CommonZ5github.com/GreptimeTeam/greptim" + + "e-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -15002,15 +16056,27 @@ public io.greptime.v1.Common.ColumnOptions getDefaultInstanceForType() { 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", "Channel", }); + new java.lang.String[] { "CurrentCatalog", "CurrentSchema", "Timezone", "Extensions", "Channel", "SeqSnapshot", }); 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 = + internal_static_greptime_v1_SequenceSnapshot_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_greptime_v1_SequenceSnapshot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_SequenceSnapshot_descriptor, + new java.lang.String[] { "SeqSnapshot", }); + internal_static_greptime_v1_SequenceSnapshot_SeqSnapshotEntry_descriptor = + internal_static_greptime_v1_SequenceSnapshot_descriptor.getNestedTypes().get(0); + internal_static_greptime_v1_SequenceSnapshot_SeqSnapshotEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_SequenceSnapshot_SeqSnapshotEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_greptime_v1_RequestHeader_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_greptime_v1_RequestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_RequestHeader_descriptor, @@ -15022,97 +16088,97 @@ public io.greptime.v1.Common.ColumnOptions getDefaultInstanceForType() { internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_ResponseHeader_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); 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(3); + getDescriptor().getMessageTypes().get(4); 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(4); + getDescriptor().getMessageTypes().get(5); 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(5); + getDescriptor().getMessageTypes().get(6); 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(6); + getDescriptor().getMessageTypes().get(7); 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(7); + getDescriptor().getMessageTypes().get(8); 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(8); + getDescriptor().getMessageTypes().get(9); 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(9); + getDescriptor().getMessageTypes().get(10); 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_ExpireAfter_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_greptime_v1_ExpireAfter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ExpireAfter_descriptor, new java.lang.String[] { "Value", }); internal_static_greptime_v1_FlightMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); 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(12); + getDescriptor().getMessageTypes().get(13); 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(13); + getDescriptor().getMessageTypes().get(14); 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(14); + getDescriptor().getMessageTypes().get(15); internal_static_greptime_v1_ColumnDataTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnDataTypeExtension_descriptor, new java.lang.String[] { "DecimalType", "JsonType", "VectorType", "TypeExt", }); internal_static_greptime_v1_DecimalTypeExtension_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_greptime_v1_DecimalTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DecimalTypeExtension_descriptor, new java.lang.String[] { "Precision", "Scale", }); internal_static_greptime_v1_VectorTypeExtension_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_greptime_v1_VectorTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_VectorTypeExtension_descriptor, new java.lang.String[] { "Dim", }); internal_static_greptime_v1_ColumnOptions_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_greptime_v1_ColumnOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnOptions_descriptor, diff --git a/proto/greptime/v1/common.proto b/proto/greptime/v1/common.proto index 897e91f7..ff1f975a 100644 --- a/proto/greptime/v1/common.proto +++ b/proto/greptime/v1/common.proto @@ -26,6 +26,14 @@ message QueryContext { string timezone = 4; map extensions = 5; uint32 channel = 6; + SequenceSnapshot seq_snapshot = 7; +} + +message SequenceSnapshot{ + // mapping of RegionId to SequenceNumber, for snapshot read, meaning that the + // read should only container data that was committed before(and include) the + // given sequence number + map seq_snapshot = 7; } message RequestHeader {