From f58ef98e2b89c3379edcaed069f7d5455b1e8e84 Mon Sep 17 00:00:00 2001 From: luofucong Date: Tue, 6 May 2025 14:40:07 +0800 Subject: [PATCH] feat: sst_min_sequences in QueryContext --- c++/greptime/v1/common.pb.cc | 305 +++++++---- c++/greptime/v1/common.pb.h | 122 ++++- go/greptime/v1/common.pb.go | 389 +++++++------- java/src/main/java/io/greptime/v1/Common.java | 486 +++++++++++++++--- proto/greptime/v1/common.proto | 2 + 5 files changed, 937 insertions(+), 367 deletions(-) diff --git a/c++/greptime/v1/common.pb.cc b/c++/greptime/v1/common.pb.cc index bc05afcd..8feb0e20 100644 --- a/c++/greptime/v1/common.pb.cc +++ b/c++/greptime/v1/common.pb.cc @@ -52,6 +52,17 @@ struct QueryContextDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QueryContextDefaultTypeInternal _QueryContext_default_instance_; +PROTOBUF_CONSTEXPR SnapshotSequences_SstMinSequencesEntry_DoNotUse::SnapshotSequences_SstMinSequencesEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct SnapshotSequences_SstMinSequencesEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SnapshotSequences_SstMinSequencesEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SnapshotSequences_SstMinSequencesEntry_DoNotUseDefaultTypeInternal() {} + union { + SnapshotSequences_SstMinSequencesEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SnapshotSequences_SstMinSequencesEntry_DoNotUseDefaultTypeInternal _SnapshotSequences_SstMinSequencesEntry_DoNotUse_default_instance_; PROTOBUF_CONSTEXPR SnapshotSequences_SnapshotSeqsEntry_DoNotUse::SnapshotSequences_SnapshotSeqsEntry_DoNotUse( ::_pbi::ConstantInitialized) {} struct SnapshotSequences_SnapshotSeqsEntry_DoNotUseDefaultTypeInternal { @@ -65,7 +76,8 @@ struct SnapshotSequences_SnapshotSeqsEntry_DoNotUseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SnapshotSequences_SnapshotSeqsEntry_DoNotUseDefaultTypeInternal _SnapshotSequences_SnapshotSeqsEntry_DoNotUse_default_instance_; PROTOBUF_CONSTEXPR SnapshotSequences::SnapshotSequences( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.snapshot_seqs_)*/{::_pbi::ConstantInitialized()} + /*decltype(_impl_.sst_min_sequences_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.snapshot_seqs_)*/{::_pbi::ConstantInitialized()} , /*decltype(_impl_._cached_size_)*/{}} {} struct SnapshotSequencesDefaultTypeInternal { PROTOBUF_CONSTEXPR SnapshotSequencesDefaultTypeInternal() @@ -350,7 +362,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[24]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[25]; 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; @@ -378,6 +390,16 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext, _impl_.channel_), PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext, _impl_.snapshot_seqs_), PROTOBUF_FIELD_OFFSET(::greptime::v1::QueryContext, _impl_.explain_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SnapshotSequences_SstMinSequencesEntry_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::SnapshotSequences_SstMinSequencesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse, value_), + 0, + 1, PROTOBUF_FIELD_OFFSET(::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -394,6 +416,7 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SnapshotSequences, _impl_.sst_min_sequences_), PROTOBUF_FIELD_OFFSET(::greptime::v1::SnapshotSequences, _impl_.snapshot_seqs_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::ExplainOptions, _internal_metadata_), @@ -564,33 +587,35 @@ 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)}, - { 23, 31, -1, sizeof(::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse)}, - { 33, -1, -1, sizeof(::greptime::v1::SnapshotSequences)}, - { 40, -1, -1, sizeof(::greptime::v1::ExplainOptions)}, - { 47, 55, -1, sizeof(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse)}, - { 57, -1, -1, sizeof(::greptime::v1::RequestHeader)}, - { 69, -1, -1, sizeof(::greptime::v1::ResponseHeader)}, - { 76, -1, -1, sizeof(::greptime::v1::Status)}, - { 84, -1, -1, sizeof(::greptime::v1::AuthHeader)}, - { 93, -1, -1, sizeof(::greptime::v1::Basic)}, - { 101, -1, -1, sizeof(::greptime::v1::Token)}, - { 108, -1, -1, sizeof(::greptime::v1::TableName)}, - { 117, -1, -1, sizeof(::greptime::v1::AffectedRows)}, - { 124, -1, -1, sizeof(::greptime::v1::Metrics)}, - { 131, -1, -1, sizeof(::greptime::v1::ExpireAfter)}, - { 138, -1, -1, sizeof(::greptime::v1::FlightMetadata)}, - { 146, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)}, - { 155, -1, -1, sizeof(::greptime::v1::Decimal128)}, - { 163, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, - { 173, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, - { 181, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)}, - { 188, 196, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)}, - { 198, -1, -1, sizeof(::greptime::v1::ColumnOptions)}, + { 23, 31, -1, sizeof(::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse)}, + { 33, 41, -1, sizeof(::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse)}, + { 43, -1, -1, sizeof(::greptime::v1::SnapshotSequences)}, + { 51, -1, -1, sizeof(::greptime::v1::ExplainOptions)}, + { 58, 66, -1, sizeof(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse)}, + { 68, -1, -1, sizeof(::greptime::v1::RequestHeader)}, + { 80, -1, -1, sizeof(::greptime::v1::ResponseHeader)}, + { 87, -1, -1, sizeof(::greptime::v1::Status)}, + { 95, -1, -1, sizeof(::greptime::v1::AuthHeader)}, + { 104, -1, -1, sizeof(::greptime::v1::Basic)}, + { 112, -1, -1, sizeof(::greptime::v1::Token)}, + { 119, -1, -1, sizeof(::greptime::v1::TableName)}, + { 128, -1, -1, sizeof(::greptime::v1::AffectedRows)}, + { 135, -1, -1, sizeof(::greptime::v1::Metrics)}, + { 142, -1, -1, sizeof(::greptime::v1::ExpireAfter)}, + { 149, -1, -1, sizeof(::greptime::v1::FlightMetadata)}, + { 157, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)}, + { 166, -1, -1, sizeof(::greptime::v1::Decimal128)}, + { 174, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, + { 184, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, + { 192, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)}, + { 199, 207, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)}, + { 209, -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::_SnapshotSequences_SstMinSequencesEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_SnapshotSequences_SnapshotSeqsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_SnapshotSequences_default_instance_._instance, &::greptime::v1::_ExplainOptions_default_instance_._instance, @@ -624,68 +649,72 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S "\001(\r\0225\n\rsnapshot_seqs\030\007 \001(\0132\036.greptime.v1" ".SnapshotSequences\022,\n\007explain\030\010 \001(\0132\033.gr" "eptime.v1.ExplainOptions\0321\n\017ExtensionsEn" - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\221\001\n\021" - "SnapshotSequences\022G\n\rsnapshot_seqs\030\007 \003(\013" + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\231\002\n\021" + "SnapshotSequences\022N\n\021sst_min_sequences\030\001" + " \003(\01323.greptime.v1.SnapshotSequences.Sst" + "MinSequencesEntry\022G\n\rsnapshot_seqs\030\007 \003(\013" "20.greptime.v1.SnapshotSequences.Snapsho" - "tSeqsEntry\0323\n\021SnapshotSeqsEntry\022\013\n\003key\030\001" - " \001(\004\022\r\n\005value\030\002 \001(\004:\0028\001\"!\n\016ExplainOption" - "s\022\017\n\007verbose\030\001 \001(\010\"\202\002\n\rRequestHeader\022\017\n\007" - "catalog\030\001 \001(\t\022\016\n\006schema\030\002 \001(\t\022.\n\rauthori" - "zation\030\003 \001(\0132\027.greptime.v1.AuthHeader\022\016\n" - "\006dbname\030\004 \001(\t\022G\n\017tracing_context\030\005 \003(\0132." - ".greptime.v1.RequestHeader.TracingContex" - "tEntry\022\020\n\010timezone\030\006 \001(\t\0325\n\023TracingConte" - "xtEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - "5\n\016ResponseHeader\022#\n\006status\030\001 \001(\0132\023.grep" - "time.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\005" - "basic\030\001 \001(\0132\022.greptime.v1.BasicH\000\022#\n\005tok" - "en\030\002 \001(\0132\022.greptime.v1.TokenH\000B\r\n\013auth_s" - "cheme\"+\n\005Basic\022\020\n\010username\030\001 \001(\t\022\020\n\010pass" - "word\030\002 \001(\t\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"J\n\tTa" - "bleName\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\014Affect" - "edRows\022\r\n\005value\030\001 \001(\r\"\032\n\007Metrics\022\017\n\007metr" - "ics\030\001 \001(\014\"\034\n\013ExpireAfter\022\r\n\005value\030\001 \001(\003\"" - "i\n\016FlightMetadata\0220\n\raffected_rows\030\001 \001(\013" - "2\031.greptime.v1.AffectedRows\022%\n\007metrics\030\002" - " \001(\0132\024.greptime.v1.Metrics\"I\n\024IntervalMo" - "nthDayNano\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005" - "\022\023\n\013nanoseconds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002h" - "i\030\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeEx" - "tension\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\022" - "7\n\013vector_type\030\003 \001(\0132 .greptime.v1.Vecto" - "rTypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalT" - "ypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale" - "\030\002 \001(\005\"\"\n\023VectorTypeExtension\022\013\n\003dim\030\001 \001" - "(\r\"y\n\rColumnOptions\0228\n\007options\030\001 \003(\0132\'.g" - "reptime.v1.ColumnOptions.OptionsEntry\032.\n" - "\014OptionsEntry\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\007B" - "OOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003" - "\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UI" - "NT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT" - "64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014" - "\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TI" - "MESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICRO" - "SECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TI" - "ME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIM" - "E_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023" - "INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TI" - "ME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDEC" - "IMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006VECTOR\020 *$\n\021JsonT" - "ypeExtension\022\017\n\013JSON_BINARY\020\000BO\n\016io.grep" - "time.v1B\006CommonZ5github.com/GreptimeTeam" - "/greptime-proto/go/greptime/v1b\006proto3" + "tSeqsEntry\0326\n\024SstMinSequencesEntry\022\013\n\003ke" + "y\030\001 \001(\004\022\r\n\005value\030\002 \001(\004:\0028\001\0323\n\021SnapshotSe" + "qsEntry\022\013\n\003key\030\001 \001(\004\022\r\n\005value\030\002 \001(\004:\0028\001\"" + "!\n\016ExplainOptions\022\017\n\007verbose\030\001 \001(\010\"\202\002\n\rR" + "equestHeader\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..greptime.v1.RequestHead" + "er.TracingContextEntry\022\020\n\010timezone\030\006 \001(\t" + "\0325\n\023TracingContextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + "value\030\002 \001(\t:\0028\001\"5\n\016ResponseHeader\022#\n\006sta" + "tus\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.v" + "1.BasicH\000\022#\n\005token\030\002 \001(\0132\022.greptime.v1.T" + "okenH\000B\r\n\013auth_scheme\"+\n\005Basic\022\020\n\010userna" + "me\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005Token\022\r\n\005t" + "oken\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\016FlightMetadata\0220\n\raff" + "ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR" + "ows\022%\n\007metrics\030\002 \001(\0132\024.greptime.v1.Metri" + "cs\"I\n\024IntervalMonthDayNano\022\016\n\006months\030\001 \001" + "(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\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\027" + "ColumnDataTypeExtension\0229\n\014decimal_type\030" + "\001 \001(\0132!.greptime.v1.DecimalTypeExtension" + "H\000\0223\n\tjson_type\030\002 \001(\0162\036.greptime.v1.Json" + "TypeExtensionH\000\0227\n\013vector_type\030\003 \001(\0132 .g" + "reptime.v1.VectorTypeExtensionH\000B\n\n\010type" + "_ext\"8\n\024DecimalTypeExtension\022\021\n\tprecisio" + "n\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"\"\n\023VectorTypeExte" + "nsion\022\013\n\003dim\030\001 \001(\r\"y\n\rColumnOptions\0228\n\007o" + "ptions\030\001 \003(\0132\'.greptime.v1.ColumnOptions" + ".OptionsEntry\032.\n\014OptionsEntry\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\016Col" + "umnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005IN" + "T16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n" + "\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FL" + "OAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRI" + "NG\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAM" + "P_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031\n" + "\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIMESTAMP_NA" + "NOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MILL" + "ISECOND\020\024\022\024\n\020TIME_MICROSECOND\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\027INTERVAL_MONTH_D" + "AY_NANO\020\031\022\016\n\nDECIMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006V" + "ECTOR\020 *$\n\021JsonTypeExtension\022\017\n\013JSON_BIN" + "ARY\020\000BO\n\016io.greptime.v1B\006CommonZ5github." + "com/GreptimeTeam/greptime-proto/go/grept" + "ime/v1b\006proto3" ; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = { - false, false, 2558, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, + false, false, 2694, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, "greptime/v1/common.proto", - &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 24, + &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 25, 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, @@ -1269,6 +1298,20 @@ ::PROTOBUF_NAMESPACE_ID::Metadata QueryContext::GetMetadata() const { // =================================================================== +SnapshotSequences_SstMinSequencesEntry_DoNotUse::SnapshotSequences_SstMinSequencesEntry_DoNotUse() {} +SnapshotSequences_SstMinSequencesEntry_DoNotUse::SnapshotSequences_SstMinSequencesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void SnapshotSequences_SstMinSequencesEntry_DoNotUse::MergeFrom(const SnapshotSequences_SstMinSequencesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata SnapshotSequences_SstMinSequencesEntry_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]); +} + +// =================================================================== + SnapshotSequences_SnapshotSeqsEntry_DoNotUse::SnapshotSequences_SnapshotSeqsEntry_DoNotUse() {} SnapshotSequences_SnapshotSeqsEntry_DoNotUse::SnapshotSequences_SnapshotSeqsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} @@ -1278,7 +1321,7 @@ void SnapshotSequences_SnapshotSeqsEntry_DoNotUse::MergeFrom(const SnapshotSeque ::PROTOBUF_NAMESPACE_ID::Metadata SnapshotSequences_SnapshotSeqsEntry_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[3]); } // =================================================================== @@ -1300,10 +1343,12 @@ SnapshotSequences::SnapshotSequences(const SnapshotSequences& from) : ::PROTOBUF_NAMESPACE_ID::Message() { SnapshotSequences* const _this = this; (void)_this; new (&_impl_) Impl_{ - /*decltype(_impl_.snapshot_seqs_)*/{} + /*decltype(_impl_.sst_min_sequences_)*/{} + , /*decltype(_impl_.snapshot_seqs_)*/{} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.sst_min_sequences_.MergeFrom(from._impl_.sst_min_sequences_); _this->_impl_.snapshot_seqs_.MergeFrom(from._impl_.snapshot_seqs_); // @@protoc_insertion_point(copy_constructor:greptime.v1.SnapshotSequences) } @@ -1313,7 +1358,8 @@ inline void SnapshotSequences::SharedCtor( (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - /*decltype(_impl_.snapshot_seqs_)*/{::_pbi::ArenaInitialized(), arena} + /*decltype(_impl_.sst_min_sequences_)*/{::_pbi::ArenaInitialized(), arena} + , /*decltype(_impl_.snapshot_seqs_)*/{::_pbi::ArenaInitialized(), arena} , /*decltype(_impl_._cached_size_)*/{} }; } @@ -1330,12 +1376,15 @@ SnapshotSequences::~SnapshotSequences() { inline void SnapshotSequences::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.sst_min_sequences_.Destruct(); + _impl_.sst_min_sequences_.~MapField(); _impl_.snapshot_seqs_.Destruct(); _impl_.snapshot_seqs_.~MapField(); } void SnapshotSequences::ArenaDtor(void* object) { SnapshotSequences* _this = reinterpret_cast< SnapshotSequences* >(object); + _this->_impl_.sst_min_sequences_.Destruct(); _this->_impl_.snapshot_seqs_.Destruct(); } void SnapshotSequences::SetCachedSize(int size) const { @@ -1348,6 +1397,7 @@ void SnapshotSequences::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.sst_min_sequences_.Clear(); _impl_.snapshot_seqs_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -1358,6 +1408,19 @@ const char* SnapshotSequences::_InternalParse(const char* ptr, ::_pbi::ParseCont uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { + // map sst_min_sequences = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.sst_min_sequences_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; // map snapshot_seqs = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { @@ -1400,6 +1463,23 @@ uint8_t* SnapshotSequences::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; + // map sst_min_sequences = 1; + if (!this->_internal_sst_min_sequences().empty()) { + using MapType = ::_pb::Map; + using WireHelper = SnapshotSequences_SstMinSequencesEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_sst_min_sequences(); + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterFlat(map_field)) { + target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); + } + } + } + // map snapshot_seqs = 7; if (!this->_internal_snapshot_seqs().empty()) { using MapType = ::_pb::Map; @@ -1433,6 +1513,15 @@ size_t SnapshotSequences::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // map sst_min_sequences = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_sst_min_sequences_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >::const_iterator + it = this->_internal_sst_min_sequences().begin(); + it != this->_internal_sst_min_sequences().end(); ++it) { + total_size += SnapshotSequences_SstMinSequencesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + // map snapshot_seqs = 7; total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_snapshot_seqs_size()); @@ -1460,6 +1549,7 @@ void SnapshotSequences::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_impl_.sst_min_sequences_.MergeFrom(from._impl_.sst_min_sequences_); _this->_impl_.snapshot_seqs_.MergeFrom(from._impl_.snapshot_seqs_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -1478,13 +1568,14 @@ bool SnapshotSequences::IsInitialized() const { void SnapshotSequences::InternalSwap(SnapshotSequences* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.sst_min_sequences_.InternalSwap(&other->_impl_.sst_min_sequences_); _impl_.snapshot_seqs_.InternalSwap(&other->_impl_.snapshot_seqs_); } ::PROTOBUF_NAMESPACE_ID::Metadata SnapshotSequences::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[4]); } // =================================================================== @@ -1662,7 +1753,7 @@ void ExplainOptions::InternalSwap(ExplainOptions* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ExplainOptions::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[5]); } // =================================================================== @@ -1676,7 +1767,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[5]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[6]); } // =================================================================== @@ -2139,7 +2230,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[6]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[7]); } // =================================================================== @@ -2332,7 +2423,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[7]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[8]); } // =================================================================== @@ -2562,7 +2653,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[8]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[9]); } // =================================================================== @@ -2867,7 +2958,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[9]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[10]); } // =================================================================== @@ -3120,7 +3211,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[10]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[11]); } // =================================================================== @@ -3323,7 +3414,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[11]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[12]); } // =================================================================== @@ -3626,7 +3717,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[12]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[13]); } // =================================================================== @@ -3804,7 +3895,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[13]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[14]); } // =================================================================== @@ -4002,7 +4093,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[14]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[15]); } // =================================================================== @@ -4180,7 +4271,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[15]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[16]); } // =================================================================== @@ -4419,7 +4510,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[16]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[17]); } // =================================================================== @@ -4654,7 +4745,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[17]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[18]); } // =================================================================== @@ -4865,7 +4956,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[18]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[19]); } // =================================================================== @@ -5204,7 +5295,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[19]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[20]); } // =================================================================== @@ -5415,7 +5506,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[20]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[21]); } // =================================================================== @@ -5593,7 +5684,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[21]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[22]); } // =================================================================== @@ -5607,7 +5698,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[22]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[23]); } // =================================================================== @@ -5826,7 +5917,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[23]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[24]); } // @@protoc_insertion_point(namespace_scope) @@ -5841,6 +5932,10 @@ 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::SnapshotSequences_SstMinSequencesEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse* Arena::CreateMaybeMessage< ::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse >(arena); diff --git a/c++/greptime/v1/common.pb.h b/c++/greptime/v1/common.pb.h index cc9133f2..1711ac85 100644 --- a/c++/greptime/v1/common.pb.h +++ b/c++/greptime/v1/common.pb.h @@ -110,6 +110,9 @@ extern SnapshotSequencesDefaultTypeInternal _SnapshotSequences_default_instance_ class SnapshotSequences_SnapshotSeqsEntry_DoNotUse; struct SnapshotSequences_SnapshotSeqsEntry_DoNotUseDefaultTypeInternal; extern SnapshotSequences_SnapshotSeqsEntry_DoNotUseDefaultTypeInternal _SnapshotSequences_SnapshotSeqsEntry_DoNotUse_default_instance_; +class SnapshotSequences_SstMinSequencesEntry_DoNotUse; +struct SnapshotSequences_SstMinSequencesEntry_DoNotUseDefaultTypeInternal; +extern SnapshotSequences_SstMinSequencesEntry_DoNotUseDefaultTypeInternal _SnapshotSequences_SstMinSequencesEntry_DoNotUse_default_instance_; class Status; struct StatusDefaultTypeInternal; extern StatusDefaultTypeInternal _Status_default_instance_; @@ -145,6 +148,7 @@ template<> ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse* Arena::Cr template<> ::greptime::v1::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::ResponseHeader>(Arena*); template<> ::greptime::v1::SnapshotSequences* Arena::CreateMaybeMessage<::greptime::v1::SnapshotSequences>(Arena*); template<> ::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse>(Arena*); +template<> ::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::SnapshotSequences_SstMinSequencesEntry_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*); @@ -547,6 +551,30 @@ class QueryContext final : }; // ------------------------------------------------------------------- +class SnapshotSequences_SstMinSequencesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + SnapshotSequences_SstMinSequencesEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR SnapshotSequences_SstMinSequencesEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit SnapshotSequences_SstMinSequencesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const SnapshotSequences_SstMinSequencesEntry_DoNotUse& other); + static const SnapshotSequences_SstMinSequencesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SnapshotSequences_SstMinSequencesEntry_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 SnapshotSequences_SnapshotSeqsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry sst_min_sequences = 1; + int sst_min_sequences_size() const; + private: + int _internal_sst_min_sequences_size() const; + public: + void clear_sst_min_sequences(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >& + _internal_sst_min_sequences() const; + ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >* + _internal_mutable_sst_min_sequences(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >& + sst_min_sequences() const; + ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >* + mutable_sst_min_sequences(); + // map snapshot_seqs = 7; int snapshot_seqs_size() const; private: @@ -722,6 +768,11 @@ class SnapshotSequences final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + SnapshotSequences_SstMinSequencesEntry_DoNotUse, + uint64_t, uint64_t, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64> sst_min_sequences_; ::PROTOBUF_NAMESPACE_ID::internal::MapField< SnapshotSequences_SnapshotSeqsEntry_DoNotUse, uint64_t, uint64_t, @@ -782,7 +833,7 @@ class ExplainOptions final : &_ExplainOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 5; friend void swap(ExplainOptions& a, ExplainOptions& b) { a.Swap(&b); @@ -958,7 +1009,7 @@ class RequestHeader final : &_RequestHeader_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; friend void swap(RequestHeader& a, RequestHeader& b) { a.Swap(&b); @@ -1205,7 +1256,7 @@ class ResponseHeader final : &_ResponseHeader_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(ResponseHeader& a, ResponseHeader& b) { a.Swap(&b); @@ -1362,7 +1413,7 @@ class Status final : &_Status_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 9; friend void swap(Status& a, Status& b) { a.Swap(&b); @@ -1532,7 +1583,7 @@ class AuthHeader final : &_AuthHeader_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 10; friend void swap(AuthHeader& a, AuthHeader& b) { a.Swap(&b); @@ -1722,7 +1773,7 @@ class Basic final : &_Basic_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(Basic& a, Basic& b) { a.Swap(&b); @@ -1891,7 +1942,7 @@ class Token final : &_Token_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(Token& a, Token& b) { a.Swap(&b); @@ -2044,7 +2095,7 @@ class TableName final : &_TableName_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(TableName& a, TableName& b) { a.Swap(&b); @@ -2229,7 +2280,7 @@ class AffectedRows final : &_AffectedRows_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(AffectedRows& a, AffectedRows& b) { a.Swap(&b); @@ -2377,7 +2428,7 @@ class Metrics final : &_Metrics_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(Metrics& a, Metrics& b) { a.Swap(&b); @@ -2530,7 +2581,7 @@ class ExpireAfter final : &_ExpireAfter_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(ExpireAfter& a, ExpireAfter& b) { a.Swap(&b); @@ -2678,7 +2729,7 @@ class FlightMetadata final : &_FlightMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(FlightMetadata& a, FlightMetadata& b) { a.Swap(&b); @@ -2855,7 +2906,7 @@ class IntervalMonthDayNano final : &_IntervalMonthDayNano_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) { a.Swap(&b); @@ -3025,7 +3076,7 @@ class Decimal128 final : &_Decimal128_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(Decimal128& a, Decimal128& b) { a.Swap(&b); @@ -3191,7 +3242,7 @@ class ColumnDataTypeExtension final : &_ColumnDataTypeExtension_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) { a.Swap(&b); @@ -3397,7 +3448,7 @@ class DecimalTypeExtension final : &_DecimalTypeExtension_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 21; friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) { a.Swap(&b); @@ -3556,7 +3607,7 @@ class VectorTypeExtension final : &_VectorTypeExtension_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 22; friend void swap(VectorTypeExtension& a, VectorTypeExtension& b) { a.Swap(&b); @@ -3732,7 +3783,7 @@ class ColumnOptions final : &_ColumnOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 24; friend void swap(ColumnOptions& a, ColumnOptions& b) { a.Swap(&b); @@ -4241,8 +4292,39 @@ inline void QueryContext::set_allocated_explain(::greptime::v1::ExplainOptions* // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // SnapshotSequences +// map sst_min_sequences = 1; +inline int SnapshotSequences::_internal_sst_min_sequences_size() const { + return _impl_.sst_min_sequences_.size(); +} +inline int SnapshotSequences::sst_min_sequences_size() const { + return _internal_sst_min_sequences_size(); +} +inline void SnapshotSequences::clear_sst_min_sequences() { + _impl_.sst_min_sequences_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >& +SnapshotSequences::_internal_sst_min_sequences() const { + return _impl_.sst_min_sequences_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >& +SnapshotSequences::sst_min_sequences() const { + // @@protoc_insertion_point(field_map:greptime.v1.SnapshotSequences.sst_min_sequences) + return _internal_sst_min_sequences(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >* +SnapshotSequences::_internal_mutable_sst_min_sequences() { + return _impl_.sst_min_sequences_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< uint64_t, uint64_t >* +SnapshotSequences::mutable_sst_min_sequences() { + // @@protoc_insertion_point(field_mutable_map:greptime.v1.SnapshotSequences.sst_min_sequences) + return _internal_mutable_sst_min_sequences(); +} + // map snapshot_seqs = 7; inline int SnapshotSequences::_internal_snapshot_seqs_size() const { return _impl_.snapshot_seqs_.size(); @@ -6007,6 +6089,8 @@ 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 86b6bf7c..595a4852 100644 --- a/go/greptime/v1/common.pb.go +++ b/go/greptime/v1/common.pb.go @@ -354,6 +354,8 @@ type SnapshotSequences struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // Mappings of the RegionId to the minimal sequence of SST file to scan. + SstMinSequences map[uint64]uint64 `protobuf:"bytes,1,rep,name=sst_min_sequences,json=sstMinSequences,proto3" json:"sst_min_sequences,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 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 @@ -392,6 +394,13 @@ func (*SnapshotSequences) Descriptor() ([]byte, []int) { return file_greptime_v1_common_proto_rawDescGZIP(), []int{1} } +func (x *SnapshotSequences) GetSstMinSequences() map[uint64]uint64 { + if x != nil { + return x.SstMinSequences + } + return nil +} + func (x *SnapshotSequences) GetSnapshotSeqs() map[uint64]uint64 { if x != nil { return x.SnapshotSeqs @@ -1503,168 +1512,178 @@ var file_greptime_v1_common_proto_rawDesc = []byte{ 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, 0xab, 0x01, 0x0a, 0x11, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x55, 0x0a, 0x0d, 0x73, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x73, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, 0x71, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x0c, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, 0x71, - 0x73, 0x1a, 0x3f, 0x0a, 0x11, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, 0x71, - 0x73, 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, 0x2a, 0x0a, 0x0e, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x65, 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, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd0, 0x02, 0x0a, 0x11, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x5f, 0x0a, 0x11, 0x73, 0x73, + 0x74, 0x5f, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x53, 0x73, 0x74, 0x4d, 0x69, 0x6e, 0x53, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x73, 0x73, 0x74, 0x4d, + 0x69, 0x6e, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x55, 0x0a, 0x0d, 0x73, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x73, 0x18, 0x07, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, + 0x65, 0x73, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, 0x71, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, + 0x71, 0x73, 0x1a, 0x42, 0x0a, 0x14, 0x53, 0x73, 0x74, 0x4d, 0x69, 0x6e, 0x53, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x65, 0x73, 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, 0x1a, 0x3f, 0x0a, 0x11, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x53, 0x65, 0x71, 0x73, 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, 0x2a, 0x0a, 0x0e, 0x45, 0x78, 0x70, 0x6c, 0x61, + 0x69, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x62, 0x6f, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x65, 0x72, 0x62, + 0x6f, 0x73, 0x65, 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 ( @@ -1680,7 +1699,7 @@ 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, 24) +var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 25) var file_greptime_v1_common_proto_goTypes = []interface{}{ (SemanticType)(0), // 0: greptime.v1.SemanticType (ColumnDataType)(0), // 1: greptime.v1.ColumnDataType @@ -1706,31 +1725,33 @@ var file_greptime_v1_common_proto_goTypes = []interface{}{ (*VectorTypeExtension)(nil), // 21: greptime.v1.VectorTypeExtension (*ColumnOptions)(nil), // 22: greptime.v1.ColumnOptions nil, // 23: greptime.v1.QueryContext.ExtensionsEntry - nil, // 24: greptime.v1.SnapshotSequences.SnapshotSeqsEntry - nil, // 25: greptime.v1.RequestHeader.TracingContextEntry - nil, // 26: greptime.v1.ColumnOptions.OptionsEntry + nil, // 24: greptime.v1.SnapshotSequences.SstMinSequencesEntry + nil, // 25: greptime.v1.SnapshotSequences.SnapshotSeqsEntry + nil, // 26: greptime.v1.RequestHeader.TracingContextEntry + nil, // 27: greptime.v1.ColumnOptions.OptionsEntry } var file_greptime_v1_common_proto_depIdxs = []int32{ 23, // 0: greptime.v1.QueryContext.extensions:type_name -> greptime.v1.QueryContext.ExtensionsEntry 4, // 1: greptime.v1.QueryContext.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences 5, // 2: greptime.v1.QueryContext.explain:type_name -> greptime.v1.ExplainOptions - 24, // 3: greptime.v1.SnapshotSequences.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences.SnapshotSeqsEntry - 9, // 4: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader - 25, // 5: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry - 8, // 6: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status - 10, // 7: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic - 11, // 8: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token - 13, // 9: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows - 14, // 10: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics - 20, // 11: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension - 2, // 12: greptime.v1.ColumnDataTypeExtension.json_type:type_name -> greptime.v1.JsonTypeExtension - 21, // 13: greptime.v1.ColumnDataTypeExtension.vector_type:type_name -> greptime.v1.VectorTypeExtension - 26, // 14: greptime.v1.ColumnOptions.options:type_name -> greptime.v1.ColumnOptions.OptionsEntry - 15, // [15:15] is the sub-list for method output_type - 15, // [15:15] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 24, // 3: greptime.v1.SnapshotSequences.sst_min_sequences:type_name -> greptime.v1.SnapshotSequences.SstMinSequencesEntry + 25, // 4: greptime.v1.SnapshotSequences.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences.SnapshotSeqsEntry + 9, // 5: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader + 26, // 6: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry + 8, // 7: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status + 10, // 8: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic + 11, // 9: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token + 13, // 10: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows + 14, // 11: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics + 20, // 12: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension + 2, // 13: greptime.v1.ColumnDataTypeExtension.json_type:type_name -> greptime.v1.JsonTypeExtension + 21, // 14: greptime.v1.ColumnDataTypeExtension.vector_type:type_name -> greptime.v1.VectorTypeExtension + 27, // 15: greptime.v1.ColumnOptions.options:type_name -> greptime.v1.ColumnOptions.OptionsEntry + 16, // [16:16] is the sub-list for method output_type + 16, // [16:16] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name } func init() { file_greptime_v1_common_proto_init() } @@ -1995,7 +2016,7 @@ func file_greptime_v1_common_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_common_proto_rawDesc, NumEnums: 3, - NumMessages: 24, + NumMessages: 25, 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 b8946a7a..1fd3c958 100644 --- a/java/src/main/java/io/greptime/v1/Common.java +++ b/java/src/main/java/io/greptime/v1/Common.java @@ -2316,6 +2316,60 @@ public interface SnapshotSequencesOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.SnapshotSequences) com.google.protobuf.MessageOrBuilder { + /** + *
+     * Mappings of the RegionId to the minimal sequence of SST file to scan.
+     * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + int getSstMinSequencesCount(); + /** + *
+     * Mappings of the RegionId to the minimal sequence of SST file to scan.
+     * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + boolean containsSstMinSequences( + long key); + /** + * Use {@link #getSstMinSequencesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSstMinSequences(); + /** + *
+     * Mappings of the RegionId to the minimal sequence of SST file to scan.
+     * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + java.util.Map + getSstMinSequencesMap(); + /** + *
+     * Mappings of the RegionId to the minimal sequence of SST file to scan.
+     * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + + long getSstMinSequencesOrDefault( + long key, + long defaultValue); + /** + *
+     * Mappings of the RegionId to the minimal sequence of SST file to scan.
+     * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + + long getSstMinSequencesOrThrow( + long key); + /** *
      * mapping of RegionId to SequenceNumber, for snapshot read, meaning that the
@@ -2426,11 +2480,24 @@ private SnapshotSequences(
             case 0:
               done = true;
               break;
-            case 58: {
+            case 10: {
               if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                sstMinSequences_ = com.google.protobuf.MapField.newMapField(
+                    SstMinSequencesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry
+              sstMinSequences__ = input.readMessage(
+                  SstMinSequencesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              sstMinSequences_.getMutableMap().put(
+                  sstMinSequences__.getKey(), sstMinSequences__.getValue());
+              break;
+            }
+            case 58: {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                 snapshotSeqs_ = com.google.protobuf.MapField.newMapField(
                     SnapshotSeqsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
+                mutable_bitField0_ |= 0x00000002;
               }
               com.google.protobuf.MapEntry
               snapshotSeqs__ = input.readMessage(
@@ -2470,6 +2537,8 @@ private SnapshotSequences(
     protected com.google.protobuf.MapField internalGetMapField(
         int number) {
       switch (number) {
+        case 1:
+          return internalGetSstMinSequences();
         case 7:
           return internalGetSnapshotSeqs();
         default:
@@ -2485,6 +2554,103 @@ protected com.google.protobuf.MapField internalGetMapField(
               io.greptime.v1.Common.SnapshotSequences.class, io.greptime.v1.Common.SnapshotSequences.Builder.class);
     }
 
+    public static final int SST_MIN_SEQUENCES_FIELD_NUMBER = 1;
+    private static final class SstMinSequencesDefaultEntryHolder {
+      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_SnapshotSequences_SstMinSequencesEntry_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> sstMinSequences_;
+    private com.google.protobuf.MapField
+    internalGetSstMinSequences() {
+      if (sstMinSequences_ == null) {
+        return com.google.protobuf.MapField.emptyMapField(
+            SstMinSequencesDefaultEntryHolder.defaultEntry);
+      }
+      return sstMinSequences_;
+    }
+
+    public int getSstMinSequencesCount() {
+      return internalGetSstMinSequences().getMap().size();
+    }
+    /**
+     * 
+     * Mappings of the RegionId to the minimal sequence of SST file to scan.
+     * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + + @java.lang.Override + public boolean containsSstMinSequences( + long key) { + + return internalGetSstMinSequences().getMap().containsKey(key); + } + /** + * Use {@link #getSstMinSequencesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSstMinSequences() { + return getSstMinSequencesMap(); + } + /** + *
+     * Mappings of the RegionId to the minimal sequence of SST file to scan.
+     * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + @java.lang.Override + + public java.util.Map getSstMinSequencesMap() { + return internalGetSstMinSequences().getMap(); + } + /** + *
+     * Mappings of the RegionId to the minimal sequence of SST file to scan.
+     * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + @java.lang.Override + + public long getSstMinSequencesOrDefault( + long key, + long defaultValue) { + + java.util.Map map = + internalGetSstMinSequences().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Mappings of the RegionId to the minimal sequence of SST file to scan.
+     * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + @java.lang.Override + + public long getSstMinSequencesOrThrow( + long key) { + + java.util.Map map = + internalGetSstMinSequences().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public static final int SNAPSHOT_SEQS_FIELD_NUMBER = 7; private static final class SnapshotSeqsDefaultEntryHolder { static final com.google.protobuf.MapEntry< @@ -2604,6 +2770,12 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeLongMapTo( + output, + internalGetSstMinSequences(), + SstMinSequencesDefaultEntryHolder.defaultEntry, + 1); com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, @@ -2619,6 +2791,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + for (java.util.Map.Entry entry + : internalGetSstMinSequences().getMap().entrySet()) { + com.google.protobuf.MapEntry + sstMinSequences__ = SstMinSequencesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, sstMinSequences__); + } for (java.util.Map.Entry entry : internalGetSnapshotSeqs().getMap().entrySet()) { com.google.protobuf.MapEntry @@ -2644,6 +2826,8 @@ public boolean equals(final java.lang.Object obj) { } io.greptime.v1.Common.SnapshotSequences other = (io.greptime.v1.Common.SnapshotSequences) obj; + if (!internalGetSstMinSequences().equals( + other.internalGetSstMinSequences())) return false; if (!internalGetSnapshotSeqs().equals( other.internalGetSnapshotSeqs())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -2657,6 +2841,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetSstMinSequences().getMap().isEmpty()) { + hash = (37 * hash) + SST_MIN_SEQUENCES_FIELD_NUMBER; + hash = (53 * hash) + internalGetSstMinSequences().hashCode(); + } if (!internalGetSnapshotSeqs().getMap().isEmpty()) { hash = (37 * hash) + SNAPSHOT_SEQS_FIELD_NUMBER; hash = (53 * hash) + internalGetSnapshotSeqs().hashCode(); @@ -2772,6 +2960,8 @@ public static final class Builder extends protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { + case 1: + return internalGetSstMinSequences(); case 7: return internalGetSnapshotSeqs(); default: @@ -2783,6 +2973,8 @@ protected com.google.protobuf.MapField internalGetMapField( protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { + case 1: + return internalGetMutableSstMinSequences(); case 7: return internalGetMutableSnapshotSeqs(); default: @@ -2816,6 +3008,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + internalGetMutableSstMinSequences().clear(); internalGetMutableSnapshotSeqs().clear(); return this; } @@ -2844,6 +3037,8 @@ public io.greptime.v1.Common.SnapshotSequences build() { public io.greptime.v1.Common.SnapshotSequences buildPartial() { io.greptime.v1.Common.SnapshotSequences result = new io.greptime.v1.Common.SnapshotSequences(this); int from_bitField0_ = bitField0_; + result.sstMinSequences_ = internalGetSstMinSequences(); + result.sstMinSequences_.makeImmutable(); result.snapshotSeqs_ = internalGetSnapshotSeqs(); result.snapshotSeqs_.makeImmutable(); onBuilt(); @@ -2894,6 +3089,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.greptime.v1.Common.SnapshotSequences other) { if (other == io.greptime.v1.Common.SnapshotSequences.getDefaultInstance()) return this; + internalGetMutableSstMinSequences().mergeFrom( + other.internalGetSstMinSequences()); internalGetMutableSnapshotSeqs().mergeFrom( other.internalGetSnapshotSeqs()); this.mergeUnknownFields(other.unknownFields); @@ -2926,6 +3123,162 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.protobuf.MapField< + java.lang.Long, java.lang.Long> sstMinSequences_; + private com.google.protobuf.MapField + internalGetSstMinSequences() { + if (sstMinSequences_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SstMinSequencesDefaultEntryHolder.defaultEntry); + } + return sstMinSequences_; + } + private com.google.protobuf.MapField + internalGetMutableSstMinSequences() { + onChanged();; + if (sstMinSequences_ == null) { + sstMinSequences_ = com.google.protobuf.MapField.newMapField( + SstMinSequencesDefaultEntryHolder.defaultEntry); + } + if (!sstMinSequences_.isMutable()) { + sstMinSequences_ = sstMinSequences_.copy(); + } + return sstMinSequences_; + } + + public int getSstMinSequencesCount() { + return internalGetSstMinSequences().getMap().size(); + } + /** + *
+       * Mappings of the RegionId to the minimal sequence of SST file to scan.
+       * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + + @java.lang.Override + public boolean containsSstMinSequences( + long key) { + + return internalGetSstMinSequences().getMap().containsKey(key); + } + /** + * Use {@link #getSstMinSequencesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSstMinSequences() { + return getSstMinSequencesMap(); + } + /** + *
+       * Mappings of the RegionId to the minimal sequence of SST file to scan.
+       * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + @java.lang.Override + + public java.util.Map getSstMinSequencesMap() { + return internalGetSstMinSequences().getMap(); + } + /** + *
+       * Mappings of the RegionId to the minimal sequence of SST file to scan.
+       * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + @java.lang.Override + + public long getSstMinSequencesOrDefault( + long key, + long defaultValue) { + + java.util.Map map = + internalGetSstMinSequences().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Mappings of the RegionId to the minimal sequence of SST file to scan.
+       * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + @java.lang.Override + + public long getSstMinSequencesOrThrow( + long key) { + + java.util.Map map = + internalGetSstMinSequences().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSstMinSequences() { + internalGetMutableSstMinSequences().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Mappings of the RegionId to the minimal sequence of SST file to scan.
+       * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + + public Builder removeSstMinSequences( + long key) { + + internalGetMutableSstMinSequences().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSstMinSequences() { + return internalGetMutableSstMinSequences().getMutableMap(); + } + /** + *
+       * Mappings of the RegionId to the minimal sequence of SST file to scan.
+       * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + public Builder putSstMinSequences( + long key, + long value) { + + + internalGetMutableSstMinSequences().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Mappings of the RegionId to the minimal sequence of SST file to scan.
+       * 
+ * + * map<uint64, uint64> sst_min_sequences = 1; + */ + + public Builder putAllSstMinSequences( + java.util.Map values) { + internalGetMutableSstMinSequences().getMutableMap() + .putAll(values); + return this; + } + private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> snapshotSeqs_; private com.google.protobuf.MapField @@ -16649,6 +17002,11 @@ public io.greptime.v1.Common.ColumnOptions getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_SnapshotSequences_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_SnapshotSequences_SstMinSequencesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_SnapshotSequences_SstMinSequencesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_SnapshotSequences_SnapshotSeqsEntry_descriptor; private static final @@ -16771,62 +17129,66 @@ public io.greptime.v1.Common.ColumnOptions getDefaultInstanceForType() { "\001(\r\0225\n\rsnapshot_seqs\030\007 \001(\0132\036.greptime.v1" + ".SnapshotSequences\022,\n\007explain\030\010 \001(\0132\033.gr" + "eptime.v1.ExplainOptions\0321\n\017ExtensionsEn" + - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\221\001\n\021" + - "SnapshotSequences\022G\n\rsnapshot_seqs\030\007 \003(\013" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\231\002\n\021" + + "SnapshotSequences\022N\n\021sst_min_sequences\030\001" + + " \003(\01323.greptime.v1.SnapshotSequences.Sst" + + "MinSequencesEntry\022G\n\rsnapshot_seqs\030\007 \003(\013" + "20.greptime.v1.SnapshotSequences.Snapsho" + - "tSeqsEntry\0323\n\021SnapshotSeqsEntry\022\013\n\003key\030\001" + - " \001(\004\022\r\n\005value\030\002 \001(\004:\0028\001\"!\n\016ExplainOption" + - "s\022\017\n\007verbose\030\001 \001(\010\"\202\002\n\rRequestHeader\022\017\n\007" + - "catalog\030\001 \001(\t\022\016\n\006schema\030\002 \001(\t\022.\n\rauthori" + - "zation\030\003 \001(\0132\027.greptime.v1.AuthHeader\022\016\n" + - "\006dbname\030\004 \001(\t\022G\n\017tracing_context\030\005 \003(\0132." + - ".greptime.v1.RequestHeader.TracingContex" + - "tEntry\022\020\n\010timezone\030\006 \001(\t\0325\n\023TracingConte" + - "xtEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + - "5\n\016ResponseHeader\022#\n\006status\030\001 \001(\0132\023.grep" + - "time.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\005" + - "basic\030\001 \001(\0132\022.greptime.v1.BasicH\000\022#\n\005tok" + - "en\030\002 \001(\0132\022.greptime.v1.TokenH\000B\r\n\013auth_s" + - "cheme\"+\n\005Basic\022\020\n\010username\030\001 \001(\t\022\020\n\010pass" + - "word\030\002 \001(\t\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"J\n\tTa" + - "bleName\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\014Affect" + - "edRows\022\r\n\005value\030\001 \001(\r\"\032\n\007Metrics\022\017\n\007metr" + - "ics\030\001 \001(\014\"\034\n\013ExpireAfter\022\r\n\005value\030\001 \001(\003\"" + - "i\n\016FlightMetadata\0220\n\raffected_rows\030\001 \001(\013" + - "2\031.greptime.v1.AffectedRows\022%\n\007metrics\030\002" + - " \001(\0132\024.greptime.v1.Metrics\"I\n\024IntervalMo" + - "nthDayNano\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005" + - "\022\023\n\013nanoseconds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002h" + - "i\030\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeEx" + - "tension\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\022" + - "7\n\013vector_type\030\003 \001(\0132 .greptime.v1.Vecto" + - "rTypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalT" + - "ypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale" + - "\030\002 \001(\005\"\"\n\023VectorTypeExtension\022\013\n\003dim\030\001 \001" + - "(\r\"y\n\rColumnOptions\0228\n\007options\030\001 \003(\0132\'.g" + - "reptime.v1.ColumnOptions.OptionsEntry\032.\n" + - "\014OptionsEntry\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\007B" + - "OOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003" + - "\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UI" + - "NT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT" + - "64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014" + - "\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TI" + - "MESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICRO" + - "SECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TI" + - "ME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIM" + - "E_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023" + - "INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TI" + - "ME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDEC" + - "IMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006VECTOR\020 *$\n\021JsonT" + - "ypeExtension\022\017\n\013JSON_BINARY\020\000BO\n\016io.grep" + - "time.v1B\006CommonZ5github.com/GreptimeTeam" + - "/greptime-proto/go/greptime/v1b\006proto3" + "tSeqsEntry\0326\n\024SstMinSequencesEntry\022\013\n\003ke" + + "y\030\001 \001(\004\022\r\n\005value\030\002 \001(\004:\0028\001\0323\n\021SnapshotSe" + + "qsEntry\022\013\n\003key\030\001 \001(\004\022\r\n\005value\030\002 \001(\004:\0028\001\"" + + "!\n\016ExplainOptions\022\017\n\007verbose\030\001 \001(\010\"\202\002\n\rR" + + "equestHeader\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..greptime.v1.RequestHead" + + "er.TracingContextEntry\022\020\n\010timezone\030\006 \001(\t" + + "\0325\n\023TracingContextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"5\n\016ResponseHeader\022#\n\006sta" + + "tus\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.v" + + "1.BasicH\000\022#\n\005token\030\002 \001(\0132\022.greptime.v1.T" + + "okenH\000B\r\n\013auth_scheme\"+\n\005Basic\022\020\n\010userna" + + "me\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005Token\022\r\n\005t" + + "oken\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\016FlightMetadata\0220\n\raff" + + "ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR" + + "ows\022%\n\007metrics\030\002 \001(\0132\024.greptime.v1.Metri" + + "cs\"I\n\024IntervalMonthDayNano\022\016\n\006months\030\001 \001" + + "(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\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\027" + + "ColumnDataTypeExtension\0229\n\014decimal_type\030" + + "\001 \001(\0132!.greptime.v1.DecimalTypeExtension" + + "H\000\0223\n\tjson_type\030\002 \001(\0162\036.greptime.v1.Json" + + "TypeExtensionH\000\0227\n\013vector_type\030\003 \001(\0132 .g" + + "reptime.v1.VectorTypeExtensionH\000B\n\n\010type" + + "_ext\"8\n\024DecimalTypeExtension\022\021\n\tprecisio" + + "n\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"\"\n\023VectorTypeExte" + + "nsion\022\013\n\003dim\030\001 \001(\r\"y\n\rColumnOptions\0228\n\007o" + + "ptions\030\001 \003(\0132\'.greptime.v1.ColumnOptions" + + ".OptionsEntry\032.\n\014OptionsEntry\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\016Col" + + "umnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005IN" + + "T16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n" + + "\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FL" + + "OAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRI" + + "NG\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAM" + + "P_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031\n" + + "\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIMESTAMP_NA" + + "NOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MILL" + + "ISECOND\020\024\022\024\n\020TIME_MICROSECOND\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\027INTERVAL_MONTH_D" + + "AY_NANO\020\031\022\016\n\nDECIMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006V" + + "ECTOR\020 *$\n\021JsonTypeExtension\022\017\n\013JSON_BIN" + + "ARY\020\000BO\n\016io.greptime.v1B\006CommonZ5github." + + "com/GreptimeTeam/greptime-proto/go/grept" + + "ime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -16849,9 +17211,15 @@ public io.greptime.v1.Common.ColumnOptions getDefaultInstanceForType() { internal_static_greptime_v1_SnapshotSequences_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SnapshotSequences_descriptor, - new java.lang.String[] { "SnapshotSeqs", }); - internal_static_greptime_v1_SnapshotSequences_SnapshotSeqsEntry_descriptor = + new java.lang.String[] { "SstMinSequences", "SnapshotSeqs", }); + internal_static_greptime_v1_SnapshotSequences_SstMinSequencesEntry_descriptor = internal_static_greptime_v1_SnapshotSequences_descriptor.getNestedTypes().get(0); + internal_static_greptime_v1_SnapshotSequences_SstMinSequencesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_SnapshotSequences_SstMinSequencesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_greptime_v1_SnapshotSequences_SnapshotSeqsEntry_descriptor = + internal_static_greptime_v1_SnapshotSequences_descriptor.getNestedTypes().get(1); internal_static_greptime_v1_SnapshotSequences_SnapshotSeqsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SnapshotSequences_SnapshotSeqsEntry_descriptor, diff --git a/proto/greptime/v1/common.proto b/proto/greptime/v1/common.proto index 8581063b..23ba9eb0 100644 --- a/proto/greptime/v1/common.proto +++ b/proto/greptime/v1/common.proto @@ -32,6 +32,8 @@ message QueryContext { } message SnapshotSequences { + // Mappings of the RegionId to the minimal sequence of SST file to scan. + map sst_min_sequences = 1; // 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