chore: add Metrics in FlightMetadata (#134)

* chore: add metrics to metadata

* chore: update metrics to message

* chore: change string to bytes for backward compatibility

* chore: rebase main
This commit is contained in:
shuiyisong
2024-01-16 12:02:54 +08:00
committed by GitHub
parent 2c1f17dce7
commit 65b008f018
6 changed files with 1578 additions and 189 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ rust:
cargo build cargo build
go: go-deps go: go-deps
docker run -t -w /greptime-proto \ docker run --rm -t -w /greptime-proto \
--entrypoint ./scripts/generate-go.sh \ --entrypoint ./scripts/generate-go.sh \
-v ${PWD}:/greptime-proto ${BUILDER_CONTAINER} -v ${PWD}:/greptime-proto ${BUILDER_CONTAINER}
@@ -16,11 +16,11 @@ go-deps:
go mod download go mod download
java: java:
docker run -t -w /greptime-proto \ docker run --rm -t -w /greptime-proto \
--entrypoint ./scripts/generate-java.sh \ --entrypoint ./scripts/generate-java.sh \
-v ${PWD}:/greptime-proto ${BUILDER_CONTAINER} -v ${PWD}:/greptime-proto ${BUILDER_CONTAINER}
cpp: cpp:
docker run -t -w /greptime-proto \ docker run --rm -t -w /greptime-proto \
--entrypoint ./scripts/generate-cpp.sh \ --entrypoint ./scripts/generate-cpp.sh \
-v ${PWD}:/greptime-proto ${BUILDER_CONTAINER} -v ${PWD}:/greptime-proto ${BUILDER_CONTAINER}
+315 -41
View File
@@ -132,9 +132,23 @@ struct AffectedRowsDefaultTypeInternal {
}; };
}; };
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AffectedRowsDefaultTypeInternal _AffectedRows_default_instance_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AffectedRowsDefaultTypeInternal _AffectedRows_default_instance_;
PROTOBUF_CONSTEXPR Metrics::Metrics(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.metrics_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct MetricsDefaultTypeInternal {
PROTOBUF_CONSTEXPR MetricsDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~MetricsDefaultTypeInternal() {}
union {
Metrics _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MetricsDefaultTypeInternal _Metrics_default_instance_;
PROTOBUF_CONSTEXPR FlightMetadata::FlightMetadata( PROTOBUF_CONSTEXPR FlightMetadata::FlightMetadata(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.affected_rows_)*/nullptr /*decltype(_impl_.affected_rows_)*/nullptr
, /*decltype(_impl_.metrics_)*/nullptr
, /*decltype(_impl_._cached_size_)*/{}} {} , /*decltype(_impl_._cached_size_)*/{}} {}
struct FlightMetadataDefaultTypeInternal { struct FlightMetadataDefaultTypeInternal {
PROTOBUF_CONSTEXPR FlightMetadataDefaultTypeInternal() PROTOBUF_CONSTEXPR FlightMetadataDefaultTypeInternal()
@@ -204,7 +218,7 @@ struct DecimalTypeExtensionDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_;
} // namespace v1 } // namespace v1
} // namespace greptime } // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[13]; static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[14];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr;
@@ -278,12 +292,20 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
~0u, // no _inlined_string_donated_ ~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::AffectedRows, _impl_.value_), PROTOBUF_FIELD_OFFSET(::greptime::v1::AffectedRows, _impl_.value_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::Metrics, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::Metrics, _impl_.metrics_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::FlightMetadata, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::FlightMetadata, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
~0u, // no _weak_field_map_ ~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_ ~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::FlightMetadata, _impl_.affected_rows_), PROTOBUF_FIELD_OFFSET(::greptime::v1::FlightMetadata, _impl_.affected_rows_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::FlightMetadata, _impl_.metrics_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
@@ -327,11 +349,12 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 46, -1, -1, sizeof(::greptime::v1::Basic)}, { 46, -1, -1, sizeof(::greptime::v1::Basic)},
{ 54, -1, -1, sizeof(::greptime::v1::Token)}, { 54, -1, -1, sizeof(::greptime::v1::Token)},
{ 61, -1, -1, sizeof(::greptime::v1::AffectedRows)}, { 61, -1, -1, sizeof(::greptime::v1::AffectedRows)},
{ 68, -1, -1, sizeof(::greptime::v1::FlightMetadata)}, { 68, -1, -1, sizeof(::greptime::v1::Metrics)},
{ 75, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)}, { 75, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
{ 84, -1, -1, sizeof(::greptime::v1::Decimal128)}, { 83, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
{ 92, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, { 92, -1, -1, sizeof(::greptime::v1::Decimal128)},
{ 100, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, { 100, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
{ 108, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
}; };
static const ::_pb::Message* const file_default_instances[] = { static const ::_pb::Message* const file_default_instances[] = {
@@ -343,6 +366,7 @@ static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::_Basic_default_instance_._instance, &::greptime::v1::_Basic_default_instance_._instance,
&::greptime::v1::_Token_default_instance_._instance, &::greptime::v1::_Token_default_instance_._instance,
&::greptime::v1::_AffectedRows_default_instance_._instance, &::greptime::v1::_AffectedRows_default_instance_._instance,
&::greptime::v1::_Metrics_default_instance_._instance,
&::greptime::v1::_FlightMetadata_default_instance_._instance, &::greptime::v1::_FlightMetadata_default_instance_._instance,
&::greptime::v1::_IntervalMonthDayNano_default_instance_._instance, &::greptime::v1::_IntervalMonthDayNano_default_instance_._instance,
&::greptime::v1::_Decimal128_default_instance_._instance, &::greptime::v1::_Decimal128_default_instance_._instance,
@@ -366,39 +390,41 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S
".v1.TokenH\000B\r\n\013auth_scheme\"+\n\005Basic\022\020\n\010u" ".v1.TokenH\000B\r\n\013auth_scheme\"+\n\005Basic\022\020\n\010u"
"sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005Token" "sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005Token"
"\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows\022\r\n\005value" "\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows\022\r\n\005value"
"\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raffected_row" "\030\001 \001(\r\"\032\n\007Metrics\022\017\n\007metrics\030\001 \001(\014\"i\n\016Fl"
"s\030\001 \001(\0132\031.greptime.v1.AffectedRows\"I\n\024In" "ightMetadata\0220\n\raffected_rows\030\001 \001(\0132\031.gr"
"tervalMonthDayNano\022\016\n\006months\030\001 \001(\005\022\014\n\004da" "eptime.v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132"
"ys\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003\"$\n\nDecimal" "\024.greptime.v1.Metrics\"I\n\024IntervalMonthDa"
"128\022\n\n\002hi\030\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"`\n\027ColumnDat" "yNano\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013n"
"aTypeExtension\0229\n\014decimal_type\030\001 \001(\0132!.g" "anoseconds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001"
"reptime.v1.DecimalTypeExtensionH\000B\n\n\010typ" "(\003\022\n\n\002lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtensio"
"e_ext\"8\n\024DecimalTypeExtension\022\021\n\tprecisi" "n\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v1.De"
"on\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005*1\n\014SemanticType\022" "cimalTypeExtensionH\000B\n\n\010type_ext\"8\n\024Deci"
"\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016C" "malTypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005s"
"olumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005" "cale\030\002 \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005F"
"INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005" "IELD\020\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016ColumnDataType"
"\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007" "\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005IN"
"FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006ST" "T32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022"
"RING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMEST" "\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007"
"AMP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022" "FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DAT"
"\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIMESTAMP_" "E\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022"
"NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MI" "\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_"
"LLISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022\023\n\017TIM" "MICROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022"
"E_NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022" "\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024"
"\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL_MONTH" "\n\020TIME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020"
"_DAY_NANO\020\031\022\023\n\017DURATION_SECOND\020\032\022\030\n\024DURA" "\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_D"
"TION_MILLISECOND\020\033\022\030\n\024DURATION_MICROSECO" "AY_TIME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\023"
"ND\020\034\022\027\n\023DURATION_NANOSECOND\020\035\022\016\n\nDECIMAL" "\n\017DURATION_SECOND\020\032\022\030\n\024DURATION_MILLISEC"
"128\020\036BO\n\016io.greptime.v1B\006CommonZ5github." "OND\020\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURAT"
"com/GreptimeTeam/greptime-proto/go/grept" "ION_NANOSECOND\020\035\022\016\n\nDECIMAL128\020\036BO\n\016io.g"
"ime/v1b\006proto3" "reptime.v1B\006CommonZ5github.com/GreptimeT"
"eam/greptime-proto/go/greptime/v1b\006proto"
"3"
; ;
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = { const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = {
false, false, 1654, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, false, false, 1721, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
"greptime/v1/common.proto", "greptime/v1/common.proto",
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 13, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 14,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fcommon_2eproto::offsets, 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_metadata_greptime_2fv1_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto,
file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto, file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto,
@@ -2311,15 +2337,218 @@ void AffectedRows::InternalSwap(AffectedRows* other) {
// =================================================================== // ===================================================================
class Metrics::_Internal {
public:
};
Metrics::Metrics(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:greptime.v1.Metrics)
}
Metrics::Metrics(const Metrics& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
Metrics* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.metrics_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.metrics_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.metrics_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_metrics().empty()) {
_this->_impl_.metrics_.Set(from._internal_metrics(),
_this->GetArenaForAllocation());
}
// @@protoc_insertion_point(copy_constructor:greptime.v1.Metrics)
}
inline void Metrics::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.metrics_){}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.metrics_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.metrics_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
Metrics::~Metrics() {
// @@protoc_insertion_point(destructor:greptime.v1.Metrics)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void Metrics::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.metrics_.Destroy();
}
void Metrics::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void Metrics::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.Metrics)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.metrics_.ClearToEmpty();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* Metrics::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// bytes metrics = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_metrics();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* Metrics::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.Metrics)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// bytes metrics = 1;
if (!this->_internal_metrics().empty()) {
target = stream->WriteBytesMaybeAliased(
1, this->_internal_metrics(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.Metrics)
return target;
}
size_t Metrics::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.Metrics)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// bytes metrics = 1;
if (!this->_internal_metrics().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
this->_internal_metrics());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Metrics::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
Metrics::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Metrics::GetClassData() const { return &_class_data_; }
void Metrics::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<Metrics*>(&to_msg);
auto& from = static_cast<const Metrics&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.Metrics)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_metrics().empty()) {
_this->_internal_set_metrics(from._internal_metrics());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void Metrics::CopyFrom(const Metrics& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.Metrics)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Metrics::IsInitialized() const {
return true;
}
void Metrics::InternalSwap(Metrics* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.metrics_, lhs_arena,
&other->_impl_.metrics_, rhs_arena
);
}
::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[8]);
}
// ===================================================================
class FlightMetadata::_Internal { class FlightMetadata::_Internal {
public: public:
static const ::greptime::v1::AffectedRows& affected_rows(const FlightMetadata* msg); static const ::greptime::v1::AffectedRows& affected_rows(const FlightMetadata* msg);
static const ::greptime::v1::Metrics& metrics(const FlightMetadata* msg);
}; };
const ::greptime::v1::AffectedRows& const ::greptime::v1::AffectedRows&
FlightMetadata::_Internal::affected_rows(const FlightMetadata* msg) { FlightMetadata::_Internal::affected_rows(const FlightMetadata* msg) {
return *msg->_impl_.affected_rows_; return *msg->_impl_.affected_rows_;
} }
const ::greptime::v1::Metrics&
FlightMetadata::_Internal::metrics(const FlightMetadata* msg) {
return *msg->_impl_.metrics_;
}
FlightMetadata::FlightMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, FlightMetadata::FlightMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned) bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -2331,12 +2560,16 @@ FlightMetadata::FlightMetadata(const FlightMetadata& from)
FlightMetadata* const _this = this; (void)_this; FlightMetadata* const _this = this; (void)_this;
new (&_impl_) Impl_{ new (&_impl_) Impl_{
decltype(_impl_.affected_rows_){nullptr} decltype(_impl_.affected_rows_){nullptr}
, decltype(_impl_.metrics_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}}; , /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
if (from._internal_has_affected_rows()) { if (from._internal_has_affected_rows()) {
_this->_impl_.affected_rows_ = new ::greptime::v1::AffectedRows(*from._impl_.affected_rows_); _this->_impl_.affected_rows_ = new ::greptime::v1::AffectedRows(*from._impl_.affected_rows_);
} }
if (from._internal_has_metrics()) {
_this->_impl_.metrics_ = new ::greptime::v1::Metrics(*from._impl_.metrics_);
}
// @@protoc_insertion_point(copy_constructor:greptime.v1.FlightMetadata) // @@protoc_insertion_point(copy_constructor:greptime.v1.FlightMetadata)
} }
@@ -2346,6 +2579,7 @@ inline void FlightMetadata::SharedCtor(
(void)is_message_owned; (void)is_message_owned;
new (&_impl_) Impl_{ new (&_impl_) Impl_{
decltype(_impl_.affected_rows_){nullptr} decltype(_impl_.affected_rows_){nullptr}
, decltype(_impl_.metrics_){nullptr}
, /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._cached_size_)*/{}
}; };
} }
@@ -2362,6 +2596,7 @@ FlightMetadata::~FlightMetadata() {
inline void FlightMetadata::SharedDtor() { inline void FlightMetadata::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.affected_rows_; if (this != internal_default_instance()) delete _impl_.affected_rows_;
if (this != internal_default_instance()) delete _impl_.metrics_;
} }
void FlightMetadata::SetCachedSize(int size) const { void FlightMetadata::SetCachedSize(int size) const {
@@ -2378,6 +2613,10 @@ void FlightMetadata::Clear() {
delete _impl_.affected_rows_; delete _impl_.affected_rows_;
} }
_impl_.affected_rows_ = nullptr; _impl_.affected_rows_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.metrics_ != nullptr) {
delete _impl_.metrics_;
}
_impl_.metrics_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
} }
@@ -2395,6 +2634,14 @@ const char* FlightMetadata::_InternalParse(const char* ptr, ::_pbi::ParseContext
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// .greptime.v1.Metrics metrics = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_metrics(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default: default:
goto handle_unusual; goto handle_unusual;
} // switch } // switch
@@ -2431,6 +2678,13 @@ uint8_t* FlightMetadata::_InternalSerialize(
_Internal::affected_rows(this).GetCachedSize(), target, stream); _Internal::affected_rows(this).GetCachedSize(), target, stream);
} }
// .greptime.v1.Metrics metrics = 2;
if (this->_internal_has_metrics()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(2, _Internal::metrics(this),
_Internal::metrics(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -2454,6 +2708,13 @@ size_t FlightMetadata::ByteSizeLong() const {
*_impl_.affected_rows_); *_impl_.affected_rows_);
} }
// .greptime.v1.Metrics metrics = 2;
if (this->_internal_has_metrics()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.metrics_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
} }
@@ -2476,6 +2737,10 @@ void FlightMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
_this->_internal_mutable_affected_rows()->::greptime::v1::AffectedRows::MergeFrom( _this->_internal_mutable_affected_rows()->::greptime::v1::AffectedRows::MergeFrom(
from._internal_affected_rows()); from._internal_affected_rows());
} }
if (from._internal_has_metrics()) {
_this->_internal_mutable_metrics()->::greptime::v1::Metrics::MergeFrom(
from._internal_metrics());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
} }
@@ -2493,13 +2758,18 @@ bool FlightMetadata::IsInitialized() const {
void FlightMetadata::InternalSwap(FlightMetadata* other) { void FlightMetadata::InternalSwap(FlightMetadata* other) {
using std::swap; using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_); _internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.affected_rows_, other->_impl_.affected_rows_); ::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(FlightMetadata, _impl_.metrics_)
+ sizeof(FlightMetadata::_impl_.metrics_)
- PROTOBUF_FIELD_OFFSET(FlightMetadata, _impl_.affected_rows_)>(
reinterpret_cast<char*>(&_impl_.affected_rows_),
reinterpret_cast<char*>(&other->_impl_.affected_rows_));
} }
::PROTOBUF_NAMESPACE_ID::Metadata FlightMetadata::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata FlightMetadata::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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]);
} }
// =================================================================== // ===================================================================
@@ -2734,7 +3004,7 @@ void IntervalMonthDayNano::InternalSwap(IntervalMonthDayNano* other) {
::PROTOBUF_NAMESPACE_ID::Metadata IntervalMonthDayNano::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata IntervalMonthDayNano::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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]);
} }
// =================================================================== // ===================================================================
@@ -2945,7 +3215,7 @@ void Decimal128::InternalSwap(Decimal128* other) {
::PROTOBUF_NAMESPACE_ID::Metadata Decimal128::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata Decimal128::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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]);
} }
// =================================================================== // ===================================================================
@@ -3192,7 +3462,7 @@ void ColumnDataTypeExtension::InternalSwap(ColumnDataTypeExtension* other) {
::PROTOBUF_NAMESPACE_ID::Metadata ColumnDataTypeExtension::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnDataTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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]);
} }
// =================================================================== // ===================================================================
@@ -3403,7 +3673,7 @@ void DecimalTypeExtension::InternalSwap(DecimalTypeExtension* other) {
::PROTOBUF_NAMESPACE_ID::Metadata DecimalTypeExtension::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata DecimalTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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]);
} }
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -3442,6 +3712,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::AffectedRows*
Arena::CreateMaybeMessage< ::greptime::v1::AffectedRows >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::AffectedRows >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::AffectedRows >(arena); return Arena::CreateMessageInternal< ::greptime::v1::AffectedRows >(arena);
} }
template<> PROTOBUF_NOINLINE ::greptime::v1::Metrics*
Arena::CreateMaybeMessage< ::greptime::v1::Metrics >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::Metrics >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::FlightMetadata* template<> PROTOBUF_NOINLINE ::greptime::v1::FlightMetadata*
Arena::CreateMaybeMessage< ::greptime::v1::FlightMetadata >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::FlightMetadata >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::FlightMetadata >(arena); return Arena::CreateMessageInternal< ::greptime::v1::FlightMetadata >(arena);
+328 -5
View File
@@ -74,6 +74,9 @@ extern FlightMetadataDefaultTypeInternal _FlightMetadata_default_instance_;
class IntervalMonthDayNano; class IntervalMonthDayNano;
struct IntervalMonthDayNanoDefaultTypeInternal; struct IntervalMonthDayNanoDefaultTypeInternal;
extern IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_; extern IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_;
class Metrics;
struct MetricsDefaultTypeInternal;
extern MetricsDefaultTypeInternal _Metrics_default_instance_;
class RequestHeader; class RequestHeader;
struct RequestHeaderDefaultTypeInternal; struct RequestHeaderDefaultTypeInternal;
extern RequestHeaderDefaultTypeInternal _RequestHeader_default_instance_; extern RequestHeaderDefaultTypeInternal _RequestHeader_default_instance_;
@@ -100,6 +103,7 @@ template<> ::greptime::v1::Decimal128* Arena::CreateMaybeMessage<::greptime::v1:
template<> ::greptime::v1::DecimalTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::DecimalTypeExtension>(Arena*); template<> ::greptime::v1::DecimalTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::DecimalTypeExtension>(Arena*);
template<> ::greptime::v1::FlightMetadata* Arena::CreateMaybeMessage<::greptime::v1::FlightMetadata>(Arena*); template<> ::greptime::v1::FlightMetadata* Arena::CreateMaybeMessage<::greptime::v1::FlightMetadata>(Arena*);
template<> ::greptime::v1::IntervalMonthDayNano* Arena::CreateMaybeMessage<::greptime::v1::IntervalMonthDayNano>(Arena*); template<> ::greptime::v1::IntervalMonthDayNano* Arena::CreateMaybeMessage<::greptime::v1::IntervalMonthDayNano>(Arena*);
template<> ::greptime::v1::Metrics* Arena::CreateMaybeMessage<::greptime::v1::Metrics>(Arena*);
template<> ::greptime::v1::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader>(Arena*); template<> ::greptime::v1::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader>(Arena*);
template<> ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse>(Arena*); template<> ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::ResponseHeader>(Arena*); template<> ::greptime::v1::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::ResponseHeader>(Arena*);
@@ -1453,6 +1457,159 @@ class AffectedRows final :
}; };
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class Metrics final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.Metrics) */ {
public:
inline Metrics() : Metrics(nullptr) {}
~Metrics() override;
explicit PROTOBUF_CONSTEXPR Metrics(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Metrics(const Metrics& from);
Metrics(Metrics&& from) noexcept
: Metrics() {
*this = ::std::move(from);
}
inline Metrics& operator=(const Metrics& from) {
CopyFrom(from);
return *this;
}
inline Metrics& operator=(Metrics&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Metrics& default_instance() {
return *internal_default_instance();
}
static inline const Metrics* internal_default_instance() {
return reinterpret_cast<const Metrics*>(
&_Metrics_default_instance_);
}
static constexpr int kIndexInFileMessages =
8;
friend void swap(Metrics& a, Metrics& b) {
a.Swap(&b);
}
inline void Swap(Metrics* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Metrics* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Metrics* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Metrics>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const Metrics& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const Metrics& from) {
Metrics::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Metrics* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.Metrics";
}
protected:
explicit Metrics(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kMetricsFieldNumber = 1,
};
// bytes metrics = 1;
void clear_metrics();
const std::string& metrics() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_metrics(ArgT0&& arg0, ArgT... args);
std::string* mutable_metrics();
PROTOBUF_NODISCARD std::string* release_metrics();
void set_allocated_metrics(std::string* metrics);
private:
const std::string& _internal_metrics() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_metrics(const std::string& value);
std::string* _internal_mutable_metrics();
public:
// @@protoc_insertion_point(class_scope:greptime.v1.Metrics)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr metrics_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------
class FlightMetadata final : class FlightMetadata final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.FlightMetadata) */ { public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.FlightMetadata) */ {
public: public:
@@ -1501,7 +1658,7 @@ class FlightMetadata final :
&_FlightMetadata_default_instance_); &_FlightMetadata_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
8; 9;
friend void swap(FlightMetadata& a, FlightMetadata& b) { friend void swap(FlightMetadata& a, FlightMetadata& b) {
a.Swap(&b); a.Swap(&b);
@@ -1575,6 +1732,7 @@ class FlightMetadata final :
enum : int { enum : int {
kAffectedRowsFieldNumber = 1, kAffectedRowsFieldNumber = 1,
kMetricsFieldNumber = 2,
}; };
// .greptime.v1.AffectedRows affected_rows = 1; // .greptime.v1.AffectedRows affected_rows = 1;
bool has_affected_rows() const; bool has_affected_rows() const;
@@ -1594,6 +1752,24 @@ class FlightMetadata final :
::greptime::v1::AffectedRows* affected_rows); ::greptime::v1::AffectedRows* affected_rows);
::greptime::v1::AffectedRows* unsafe_arena_release_affected_rows(); ::greptime::v1::AffectedRows* unsafe_arena_release_affected_rows();
// .greptime.v1.Metrics metrics = 2;
bool has_metrics() const;
private:
bool _internal_has_metrics() const;
public:
void clear_metrics();
const ::greptime::v1::Metrics& metrics() const;
PROTOBUF_NODISCARD ::greptime::v1::Metrics* release_metrics();
::greptime::v1::Metrics* mutable_metrics();
void set_allocated_metrics(::greptime::v1::Metrics* metrics);
private:
const ::greptime::v1::Metrics& _internal_metrics() const;
::greptime::v1::Metrics* _internal_mutable_metrics();
public:
void unsafe_arena_set_allocated_metrics(
::greptime::v1::Metrics* metrics);
::greptime::v1::Metrics* unsafe_arena_release_metrics();
// @@protoc_insertion_point(class_scope:greptime.v1.FlightMetadata) // @@protoc_insertion_point(class_scope:greptime.v1.FlightMetadata)
private: private:
class _Internal; class _Internal;
@@ -1603,6 +1779,7 @@ class FlightMetadata final :
typedef void DestructorSkippable_; typedef void DestructorSkippable_;
struct Impl_ { struct Impl_ {
::greptime::v1::AffectedRows* affected_rows_; ::greptime::v1::AffectedRows* affected_rows_;
::greptime::v1::Metrics* metrics_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
}; };
union { Impl_ _impl_; }; union { Impl_ _impl_; };
@@ -1658,7 +1835,7 @@ class IntervalMonthDayNano final :
&_IntervalMonthDayNano_default_instance_); &_IntervalMonthDayNano_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
9; 10;
friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) { friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) {
a.Swap(&b); a.Swap(&b);
@@ -1828,7 +2005,7 @@ class Decimal128 final :
&_Decimal128_default_instance_); &_Decimal128_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
10; 11;
friend void swap(Decimal128& a, Decimal128& b) { friend void swap(Decimal128& a, Decimal128& b) {
a.Swap(&b); a.Swap(&b);
@@ -1992,7 +2169,7 @@ class ColumnDataTypeExtension final :
&_ColumnDataTypeExtension_default_instance_); &_ColumnDataTypeExtension_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
11; 12;
friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) { friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) {
a.Swap(&b); a.Swap(&b);
@@ -2161,7 +2338,7 @@ class DecimalTypeExtension final :
&_DecimalTypeExtension_default_instance_); &_DecimalTypeExtension_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
12; 13;
friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) { friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) {
a.Swap(&b); a.Swap(&b);
@@ -3115,6 +3292,60 @@ inline void AffectedRows::set_value(uint32_t value) {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// Metrics
// bytes metrics = 1;
inline void Metrics::clear_metrics() {
_impl_.metrics_.ClearToEmpty();
}
inline const std::string& Metrics::metrics() const {
// @@protoc_insertion_point(field_get:greptime.v1.Metrics.metrics)
return _internal_metrics();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void Metrics::set_metrics(ArgT0&& arg0, ArgT... args) {
_impl_.metrics_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.Metrics.metrics)
}
inline std::string* Metrics::mutable_metrics() {
std::string* _s = _internal_mutable_metrics();
// @@protoc_insertion_point(field_mutable:greptime.v1.Metrics.metrics)
return _s;
}
inline const std::string& Metrics::_internal_metrics() const {
return _impl_.metrics_.Get();
}
inline void Metrics::_internal_set_metrics(const std::string& value) {
_impl_.metrics_.Set(value, GetArenaForAllocation());
}
inline std::string* Metrics::_internal_mutable_metrics() {
return _impl_.metrics_.Mutable(GetArenaForAllocation());
}
inline std::string* Metrics::release_metrics() {
// @@protoc_insertion_point(field_release:greptime.v1.Metrics.metrics)
return _impl_.metrics_.Release();
}
inline void Metrics::set_allocated_metrics(std::string* metrics) {
if (metrics != nullptr) {
} else {
}
_impl_.metrics_.SetAllocated(metrics, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.metrics_.IsDefault()) {
_impl_.metrics_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.Metrics.metrics)
}
// -------------------------------------------------------------------
// FlightMetadata // FlightMetadata
// .greptime.v1.AffectedRows affected_rows = 1; // .greptime.v1.AffectedRows affected_rows = 1;
@@ -3207,6 +3438,96 @@ inline void FlightMetadata::set_allocated_affected_rows(::greptime::v1::Affected
// @@protoc_insertion_point(field_set_allocated:greptime.v1.FlightMetadata.affected_rows) // @@protoc_insertion_point(field_set_allocated:greptime.v1.FlightMetadata.affected_rows)
} }
// .greptime.v1.Metrics metrics = 2;
inline bool FlightMetadata::_internal_has_metrics() const {
return this != internal_default_instance() && _impl_.metrics_ != nullptr;
}
inline bool FlightMetadata::has_metrics() const {
return _internal_has_metrics();
}
inline void FlightMetadata::clear_metrics() {
if (GetArenaForAllocation() == nullptr && _impl_.metrics_ != nullptr) {
delete _impl_.metrics_;
}
_impl_.metrics_ = nullptr;
}
inline const ::greptime::v1::Metrics& FlightMetadata::_internal_metrics() const {
const ::greptime::v1::Metrics* p = _impl_.metrics_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::Metrics&>(
::greptime::v1::_Metrics_default_instance_);
}
inline const ::greptime::v1::Metrics& FlightMetadata::metrics() const {
// @@protoc_insertion_point(field_get:greptime.v1.FlightMetadata.metrics)
return _internal_metrics();
}
inline void FlightMetadata::unsafe_arena_set_allocated_metrics(
::greptime::v1::Metrics* metrics) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metrics_);
}
_impl_.metrics_ = metrics;
if (metrics) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.FlightMetadata.metrics)
}
inline ::greptime::v1::Metrics* FlightMetadata::release_metrics() {
::greptime::v1::Metrics* temp = _impl_.metrics_;
_impl_.metrics_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::Metrics* FlightMetadata::unsafe_arena_release_metrics() {
// @@protoc_insertion_point(field_release:greptime.v1.FlightMetadata.metrics)
::greptime::v1::Metrics* temp = _impl_.metrics_;
_impl_.metrics_ = nullptr;
return temp;
}
inline ::greptime::v1::Metrics* FlightMetadata::_internal_mutable_metrics() {
if (_impl_.metrics_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::Metrics>(GetArenaForAllocation());
_impl_.metrics_ = p;
}
return _impl_.metrics_;
}
inline ::greptime::v1::Metrics* FlightMetadata::mutable_metrics() {
::greptime::v1::Metrics* _msg = _internal_mutable_metrics();
// @@protoc_insertion_point(field_mutable:greptime.v1.FlightMetadata.metrics)
return _msg;
}
inline void FlightMetadata::set_allocated_metrics(::greptime::v1::Metrics* metrics) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.metrics_;
}
if (metrics) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metrics);
if (message_arena != submessage_arena) {
metrics = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, metrics, submessage_arena);
}
} else {
}
_impl_.metrics_ = metrics;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.FlightMetadata.metrics)
}
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// IntervalMonthDayNano // IntervalMonthDayNano
@@ -3473,6 +3794,8 @@ inline void DecimalTypeExtension::set_scale(int32_t value) {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
+181 -106
View File
@@ -643,18 +643,66 @@ func (x *AffectedRows) GetValue() uint32 {
return 0 return 0
} }
type Metrics struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Metrics []byte `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics,omitempty"`
}
func (x *Metrics) Reset() {
*x = Metrics{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Metrics) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Metrics) ProtoMessage() {}
func (x *Metrics) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Metrics.ProtoReflect.Descriptor instead.
func (*Metrics) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{7}
}
func (x *Metrics) GetMetrics() []byte {
if x != nil {
return x.Metrics
}
return nil
}
type FlightMetadata struct { type FlightMetadata struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
AffectedRows *AffectedRows `protobuf:"bytes,1,opt,name=affected_rows,json=affectedRows,proto3" json:"affected_rows,omitempty"` AffectedRows *AffectedRows `protobuf:"bytes,1,opt,name=affected_rows,json=affectedRows,proto3" json:"affected_rows,omitempty"`
Metrics *Metrics `protobuf:"bytes,2,opt,name=metrics,proto3" json:"metrics,omitempty"`
} }
func (x *FlightMetadata) Reset() { func (x *FlightMetadata) Reset() {
*x = FlightMetadata{} *x = FlightMetadata{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[7] mi := &file_greptime_v1_common_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -667,7 +715,7 @@ func (x *FlightMetadata) String() string {
func (*FlightMetadata) ProtoMessage() {} func (*FlightMetadata) ProtoMessage() {}
func (x *FlightMetadata) ProtoReflect() protoreflect.Message { func (x *FlightMetadata) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[7] mi := &file_greptime_v1_common_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -680,7 +728,7 @@ func (x *FlightMetadata) ProtoReflect() protoreflect.Message {
// Deprecated: Use FlightMetadata.ProtoReflect.Descriptor instead. // Deprecated: Use FlightMetadata.ProtoReflect.Descriptor instead.
func (*FlightMetadata) Descriptor() ([]byte, []int) { func (*FlightMetadata) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{7} return file_greptime_v1_common_proto_rawDescGZIP(), []int{8}
} }
func (x *FlightMetadata) GetAffectedRows() *AffectedRows { func (x *FlightMetadata) GetAffectedRows() *AffectedRows {
@@ -690,6 +738,13 @@ func (x *FlightMetadata) GetAffectedRows() *AffectedRows {
return nil return nil
} }
func (x *FlightMetadata) GetMetrics() *Metrics {
if x != nil {
return x.Metrics
}
return nil
}
type IntervalMonthDayNano struct { type IntervalMonthDayNano struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -703,7 +758,7 @@ type IntervalMonthDayNano struct {
func (x *IntervalMonthDayNano) Reset() { func (x *IntervalMonthDayNano) Reset() {
*x = IntervalMonthDayNano{} *x = IntervalMonthDayNano{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[8] mi := &file_greptime_v1_common_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -716,7 +771,7 @@ func (x *IntervalMonthDayNano) String() string {
func (*IntervalMonthDayNano) ProtoMessage() {} func (*IntervalMonthDayNano) ProtoMessage() {}
func (x *IntervalMonthDayNano) ProtoReflect() protoreflect.Message { func (x *IntervalMonthDayNano) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[8] mi := &file_greptime_v1_common_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -729,7 +784,7 @@ func (x *IntervalMonthDayNano) ProtoReflect() protoreflect.Message {
// Deprecated: Use IntervalMonthDayNano.ProtoReflect.Descriptor instead. // Deprecated: Use IntervalMonthDayNano.ProtoReflect.Descriptor instead.
func (*IntervalMonthDayNano) Descriptor() ([]byte, []int) { func (*IntervalMonthDayNano) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{8} return file_greptime_v1_common_proto_rawDescGZIP(), []int{9}
} }
func (x *IntervalMonthDayNano) GetMonths() int32 { func (x *IntervalMonthDayNano) GetMonths() int32 {
@@ -766,7 +821,7 @@ type Decimal128 struct {
func (x *Decimal128) Reset() { func (x *Decimal128) Reset() {
*x = Decimal128{} *x = Decimal128{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[9] mi := &file_greptime_v1_common_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -779,7 +834,7 @@ func (x *Decimal128) String() string {
func (*Decimal128) ProtoMessage() {} func (*Decimal128) ProtoMessage() {}
func (x *Decimal128) ProtoReflect() protoreflect.Message { func (x *Decimal128) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[9] mi := &file_greptime_v1_common_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -792,7 +847,7 @@ func (x *Decimal128) ProtoReflect() protoreflect.Message {
// Deprecated: Use Decimal128.ProtoReflect.Descriptor instead. // Deprecated: Use Decimal128.ProtoReflect.Descriptor instead.
func (*Decimal128) Descriptor() ([]byte, []int) { func (*Decimal128) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{9} return file_greptime_v1_common_proto_rawDescGZIP(), []int{10}
} }
func (x *Decimal128) GetHi() int64 { func (x *Decimal128) GetHi() int64 {
@@ -824,7 +879,7 @@ type ColumnDataTypeExtension struct {
func (x *ColumnDataTypeExtension) Reset() { func (x *ColumnDataTypeExtension) Reset() {
*x = ColumnDataTypeExtension{} *x = ColumnDataTypeExtension{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[10] mi := &file_greptime_v1_common_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -837,7 +892,7 @@ func (x *ColumnDataTypeExtension) String() string {
func (*ColumnDataTypeExtension) ProtoMessage() {} func (*ColumnDataTypeExtension) ProtoMessage() {}
func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message { func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[10] mi := &file_greptime_v1_common_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -850,7 +905,7 @@ func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message {
// Deprecated: Use ColumnDataTypeExtension.ProtoReflect.Descriptor instead. // Deprecated: Use ColumnDataTypeExtension.ProtoReflect.Descriptor instead.
func (*ColumnDataTypeExtension) Descriptor() ([]byte, []int) { func (*ColumnDataTypeExtension) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{10} return file_greptime_v1_common_proto_rawDescGZIP(), []int{11}
} }
func (m *ColumnDataTypeExtension) GetTypeExt() isColumnDataTypeExtension_TypeExt { func (m *ColumnDataTypeExtension) GetTypeExt() isColumnDataTypeExtension_TypeExt {
@@ -889,7 +944,7 @@ type DecimalTypeExtension struct {
func (x *DecimalTypeExtension) Reset() { func (x *DecimalTypeExtension) Reset() {
*x = DecimalTypeExtension{} *x = DecimalTypeExtension{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[11] mi := &file_greptime_v1_common_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -902,7 +957,7 @@ func (x *DecimalTypeExtension) String() string {
func (*DecimalTypeExtension) ProtoMessage() {} func (*DecimalTypeExtension) ProtoMessage() {}
func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message { func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[11] mi := &file_greptime_v1_common_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -915,7 +970,7 @@ func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message {
// Deprecated: Use DecimalTypeExtension.ProtoReflect.Descriptor instead. // Deprecated: Use DecimalTypeExtension.ProtoReflect.Descriptor instead.
func (*DecimalTypeExtension) Descriptor() ([]byte, []int) { func (*DecimalTypeExtension) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{11} return file_greptime_v1_common_proto_rawDescGZIP(), []int{12}
} }
func (x *DecimalTypeExtension) GetPrecision() int32 { func (x *DecimalTypeExtension) GetPrecision() int32 {
@@ -982,77 +1037,83 @@ var file_greptime_v1_common_proto_rawDesc = []byte{
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x22, 0x24, 0x0a, 0x0c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x65, 0x6e, 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, 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, 0x50, 0x0a, 0x0e, 0x46, 0x6c, 0x69, 0x67, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72,
0x68, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3e, 0x0a, 0x0d, 0x61, 0x66, 0x69, 0x63, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01,
0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x80, 0x01,
0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x0a, 0x0e, 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x0c, 0x61, 0x66, 0x12, 0x3e, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77,
0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x22, 0x64, 0x0a, 0x14, 0x49, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f,
0x6e, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x01, 0x77, 0x73, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73,
0x28, 0x05, 0x52, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x12, 0x2e, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x64, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x64, 0x0a, 0x14, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74,
0x22, 0x2c, 0x0a, 0x0a, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x12, 0x0e, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x6e, 0x74,
0x0a, 0x02, 0x68, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x68, 0x69, 0x12, 0x0e, 0x68, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73,
0x0a, 0x02, 0x6c, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x6c, 0x6f, 0x22, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04,
0x0a, 0x17, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x64, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f,
0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0c, 0x64, 0x65, 0x63, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73,
0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x2c, 0x0a, 0x0a, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61,
0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x31, 0x32, 0x38, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x52, 0x02, 0x68, 0x69, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x52, 0x02, 0x6c, 0x6f, 0x22, 0x6d, 0x0a, 0x17, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61,
0x65, 0x42, 0x0a, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x22, 0x4a, 0x0a, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
0x14, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x46, 0x0a, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x45,
0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x63, 0x69,
0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x2a, 0x31, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f,
0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x65, 0x78, 0x74, 0x22, 0x4a, 0x0a, 0x14, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79,
0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70,
0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02, 0x2a, 0xb8, 0x04, 0x0a, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09,
0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61,
0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x2a,
0x49, 0x4e, 0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x31, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12,
0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c,
0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50,
0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x06, 0x12, 0x0a, 0x10, 0x02, 0x2a, 0xb8, 0x04, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74,
0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e,
0x4e, 0x54, 0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05,
0x32, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x0a, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32,
0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a,
0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x45, 0x05, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54,
0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x0e, 0x31, 0x36, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07,
0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x53, 0x45, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07,
0x43, 0x4f, 0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f,
0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x41, 0x54, 0x36, 0x34, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59,
0x10, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08,
0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45,
0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x0e, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54,
0x43, 0x4f, 0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53, 0x41, 0x4d, 0x50, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15,
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53,
0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14, 0x12, 0x14, 0x0a, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x10, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53,
0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44,
0x44, 0x10, 0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f,
0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b,
0x52, 0x56, 0x41, 0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a,
0x17, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x44, 0x41, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e,
0x59, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17, 0x49, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x14, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52,
0x52, 0x56, 0x41, 0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d,
0x41, 0x4e, 0x4f, 0x10, 0x19, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x45, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17,
0x4e, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1a, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55, 0x0a, 0x13, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f,
0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x17, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52,
0x4e, 0x44, 0x10, 0x1b, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x56, 0x41, 0x4c, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b,
0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1c, 0x12, 0x17, 0x0a, 0x17, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48,
0x0a, 0x13, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x19, 0x12, 0x13, 0x0a, 0x0f, 0x44,
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1d, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x43, 0x49, 0x4d, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1a,
0x41, 0x4c, 0x31, 0x32, 0x38, 0x10, 0x1e, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4c,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1b, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55,
0x6e, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x4e, 0x44, 0x10, 0x1c, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e,
0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1d, 0x12, 0x0e, 0x0a,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x0a, 0x44, 0x45, 0x43, 0x49, 0x4d, 0x41, 0x4c, 0x31, 0x32, 0x38, 0x10, 0x1e, 0x42, 0x4f, 0x0a,
0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42,
0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d,
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -1068,7 +1129,7 @@ func file_greptime_v1_common_proto_rawDescGZIP() []byte {
} }
var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_greptime_v1_common_proto_goTypes = []interface{}{ var file_greptime_v1_common_proto_goTypes = []interface{}{
(SemanticType)(0), // 0: greptime.v1.SemanticType (SemanticType)(0), // 0: greptime.v1.SemanticType
(ColumnDataType)(0), // 1: greptime.v1.ColumnDataType (ColumnDataType)(0), // 1: greptime.v1.ColumnDataType
@@ -1079,26 +1140,28 @@ var file_greptime_v1_common_proto_goTypes = []interface{}{
(*Basic)(nil), // 6: greptime.v1.Basic (*Basic)(nil), // 6: greptime.v1.Basic
(*Token)(nil), // 7: greptime.v1.Token (*Token)(nil), // 7: greptime.v1.Token
(*AffectedRows)(nil), // 8: greptime.v1.AffectedRows (*AffectedRows)(nil), // 8: greptime.v1.AffectedRows
(*FlightMetadata)(nil), // 9: greptime.v1.FlightMetadata (*Metrics)(nil), // 9: greptime.v1.Metrics
(*IntervalMonthDayNano)(nil), // 10: greptime.v1.IntervalMonthDayNano (*FlightMetadata)(nil), // 10: greptime.v1.FlightMetadata
(*Decimal128)(nil), // 11: greptime.v1.Decimal128 (*IntervalMonthDayNano)(nil), // 11: greptime.v1.IntervalMonthDayNano
(*ColumnDataTypeExtension)(nil), // 12: greptime.v1.ColumnDataTypeExtension (*Decimal128)(nil), // 12: greptime.v1.Decimal128
(*DecimalTypeExtension)(nil), // 13: greptime.v1.DecimalTypeExtension (*ColumnDataTypeExtension)(nil), // 13: greptime.v1.ColumnDataTypeExtension
nil, // 14: greptime.v1.RequestHeader.TracingContextEntry (*DecimalTypeExtension)(nil), // 14: greptime.v1.DecimalTypeExtension
nil, // 15: greptime.v1.RequestHeader.TracingContextEntry
} }
var file_greptime_v1_common_proto_depIdxs = []int32{ var file_greptime_v1_common_proto_depIdxs = []int32{
5, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader 5, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader
14, // 1: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry 15, // 1: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry
4, // 2: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status 4, // 2: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status
6, // 3: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic 6, // 3: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
7, // 4: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token 7, // 4: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
8, // 5: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows 8, // 5: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
13, // 6: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension 9, // 6: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics
7, // [7:7] is the sub-list for method output_type 14, // 7: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension
7, // [7:7] is the sub-list for method input_type 8, // [8:8] is the sub-list for method output_type
7, // [7:7] is the sub-list for extension type_name 8, // [8:8] is the sub-list for method input_type
7, // [7:7] is the sub-list for extension extendee 8, // [8:8] is the sub-list for extension type_name
0, // [0:7] is the sub-list for field type_name 8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
} }
func init() { file_greptime_v1_common_proto_init() } func init() { file_greptime_v1_common_proto_init() }
@@ -1192,7 +1255,7 @@ func file_greptime_v1_common_proto_init() {
} }
} }
file_greptime_v1_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FlightMetadata); i { switch v := v.(*Metrics); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1204,7 +1267,7 @@ func file_greptime_v1_common_proto_init() {
} }
} }
file_greptime_v1_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IntervalMonthDayNano); i { switch v := v.(*FlightMetadata); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1216,7 +1279,7 @@ func file_greptime_v1_common_proto_init() {
} }
} }
file_greptime_v1_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Decimal128); i { switch v := v.(*IntervalMonthDayNano); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1228,7 +1291,7 @@ func file_greptime_v1_common_proto_init() {
} }
} }
file_greptime_v1_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ColumnDataTypeExtension); i { switch v := v.(*Decimal128); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1240,6 +1303,18 @@ func file_greptime_v1_common_proto_init() {
} }
} }
file_greptime_v1_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ColumnDataTypeExtension); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DecimalTypeExtension); i { switch v := v.(*DecimalTypeExtension); i {
case 0: case 0:
return &v.state return &v.state
@@ -1256,7 +1331,7 @@ func file_greptime_v1_common_proto_init() {
(*AuthHeader_Basic)(nil), (*AuthHeader_Basic)(nil),
(*AuthHeader_Token)(nil), (*AuthHeader_Token)(nil),
} }
file_greptime_v1_common_proto_msgTypes[10].OneofWrappers = []interface{}{ file_greptime_v1_common_proto_msgTypes[11].OneofWrappers = []interface{}{
(*ColumnDataTypeExtension_DecimalType)(nil), (*ColumnDataTypeExtension_DecimalType)(nil),
} }
type x struct{} type x struct{}
@@ -1265,7 +1340,7 @@ func file_greptime_v1_common_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_common_proto_rawDesc, RawDescriptor: file_greptime_v1_common_proto_rawDesc,
NumEnums: 2, NumEnums: 2,
NumMessages: 13, NumMessages: 14,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
+743 -33
View File
@@ -6346,6 +6346,500 @@ java.lang.String defaultValue);
} }
public interface MetricsOrBuilder extends
// @@protoc_insertion_point(interface_extends:greptime.v1.Metrics)
com.google.protobuf.MessageOrBuilder {
/**
* <code>bytes metrics = 1;</code>
* @return The metrics.
*/
com.google.protobuf.ByteString getMetrics();
}
/**
* Protobuf type {@code greptime.v1.Metrics}
*/
public static final class Metrics extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:greptime.v1.Metrics)
MetricsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Metrics.newBuilder() to construct.
private Metrics(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Metrics() {
metrics_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Metrics();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Metrics(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
metrics_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.greptime.v1.Common.internal_static_greptime_v1_Metrics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.greptime.v1.Common.internal_static_greptime_v1_Metrics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.greptime.v1.Common.Metrics.class, io.greptime.v1.Common.Metrics.Builder.class);
}
public static final int METRICS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString metrics_;
/**
* <code>bytes metrics = 1;</code>
* @return The metrics.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMetrics() {
return metrics_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!metrics_.isEmpty()) {
output.writeBytes(1, metrics_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!metrics_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, metrics_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.greptime.v1.Common.Metrics)) {
return super.equals(obj);
}
io.greptime.v1.Common.Metrics other = (io.greptime.v1.Common.Metrics) obj;
if (!getMetrics()
.equals(other.getMetrics())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + getMetrics().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.greptime.v1.Common.Metrics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.greptime.v1.Common.Metrics parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.greptime.v1.Common.Metrics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.greptime.v1.Common.Metrics parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.greptime.v1.Common.Metrics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.greptime.v1.Common.Metrics parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.greptime.v1.Common.Metrics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.greptime.v1.Common.Metrics parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.greptime.v1.Common.Metrics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.greptime.v1.Common.Metrics parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.greptime.v1.Common.Metrics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.greptime.v1.Common.Metrics parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.greptime.v1.Common.Metrics prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code greptime.v1.Metrics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:greptime.v1.Metrics)
io.greptime.v1.Common.MetricsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.greptime.v1.Common.internal_static_greptime_v1_Metrics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.greptime.v1.Common.internal_static_greptime_v1_Metrics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.greptime.v1.Common.Metrics.class, io.greptime.v1.Common.Metrics.Builder.class);
}
// Construct using io.greptime.v1.Common.Metrics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
metrics_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.greptime.v1.Common.internal_static_greptime_v1_Metrics_descriptor;
}
@java.lang.Override
public io.greptime.v1.Common.Metrics getDefaultInstanceForType() {
return io.greptime.v1.Common.Metrics.getDefaultInstance();
}
@java.lang.Override
public io.greptime.v1.Common.Metrics build() {
io.greptime.v1.Common.Metrics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.greptime.v1.Common.Metrics buildPartial() {
io.greptime.v1.Common.Metrics result = new io.greptime.v1.Common.Metrics(this);
result.metrics_ = metrics_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.greptime.v1.Common.Metrics) {
return mergeFrom((io.greptime.v1.Common.Metrics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.greptime.v1.Common.Metrics other) {
if (other == io.greptime.v1.Common.Metrics.getDefaultInstance()) return this;
if (other.getMetrics() != com.google.protobuf.ByteString.EMPTY) {
setMetrics(other.getMetrics());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.greptime.v1.Common.Metrics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.greptime.v1.Common.Metrics) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString metrics_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>bytes metrics = 1;</code>
* @return The metrics.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMetrics() {
return metrics_;
}
/**
* <code>bytes metrics = 1;</code>
* @param value The metrics to set.
* @return This builder for chaining.
*/
public Builder setMetrics(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
metrics_ = value;
onChanged();
return this;
}
/**
* <code>bytes metrics = 1;</code>
* @return This builder for chaining.
*/
public Builder clearMetrics() {
metrics_ = getDefaultInstance().getMetrics();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:greptime.v1.Metrics)
}
// @@protoc_insertion_point(class_scope:greptime.v1.Metrics)
private static final io.greptime.v1.Common.Metrics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.greptime.v1.Common.Metrics();
}
public static io.greptime.v1.Common.Metrics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Metrics>
PARSER = new com.google.protobuf.AbstractParser<Metrics>() {
@java.lang.Override
public Metrics parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Metrics(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<Metrics> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Metrics> getParserForType() {
return PARSER;
}
@java.lang.Override
public io.greptime.v1.Common.Metrics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FlightMetadataOrBuilder extends public interface FlightMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:greptime.v1.FlightMetadata) // @@protoc_insertion_point(interface_extends:greptime.v1.FlightMetadata)
com.google.protobuf.MessageOrBuilder { com.google.protobuf.MessageOrBuilder {
@@ -6364,6 +6858,21 @@ java.lang.String defaultValue);
* <code>.greptime.v1.AffectedRows affected_rows = 1;</code> * <code>.greptime.v1.AffectedRows affected_rows = 1;</code>
*/ */
io.greptime.v1.Common.AffectedRowsOrBuilder getAffectedRowsOrBuilder(); io.greptime.v1.Common.AffectedRowsOrBuilder getAffectedRowsOrBuilder();
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
* @return Whether the metrics field is set.
*/
boolean hasMetrics();
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
* @return The metrics.
*/
io.greptime.v1.Common.Metrics getMetrics();
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
*/
io.greptime.v1.Common.MetricsOrBuilder getMetricsOrBuilder();
} }
/** /**
* Protobuf type {@code greptime.v1.FlightMetadata} * Protobuf type {@code greptime.v1.FlightMetadata}
@@ -6423,6 +6932,19 @@ java.lang.String defaultValue);
break; break;
} }
case 18: {
io.greptime.v1.Common.Metrics.Builder subBuilder = null;
if (metrics_ != null) {
subBuilder = metrics_.toBuilder();
}
metrics_ = input.readMessage(io.greptime.v1.Common.Metrics.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metrics_);
metrics_ = subBuilder.buildPartial();
}
break;
}
default: { default: {
if (!parseUnknownField( if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) { input, unknownFields, extensionRegistry, tag)) {
@@ -6483,6 +7005,32 @@ java.lang.String defaultValue);
return getAffectedRows(); return getAffectedRows();
} }
public static final int METRICS_FIELD_NUMBER = 2;
private io.greptime.v1.Common.Metrics metrics_;
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
* @return Whether the metrics field is set.
*/
@java.lang.Override
public boolean hasMetrics() {
return metrics_ != null;
}
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
* @return The metrics.
*/
@java.lang.Override
public io.greptime.v1.Common.Metrics getMetrics() {
return metrics_ == null ? io.greptime.v1.Common.Metrics.getDefaultInstance() : metrics_;
}
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
*/
@java.lang.Override
public io.greptime.v1.Common.MetricsOrBuilder getMetricsOrBuilder() {
return getMetrics();
}
private byte memoizedIsInitialized = -1; private byte memoizedIsInitialized = -1;
@java.lang.Override @java.lang.Override
public final boolean isInitialized() { public final boolean isInitialized() {
@@ -6500,6 +7048,9 @@ java.lang.String defaultValue);
if (affectedRows_ != null) { if (affectedRows_ != null) {
output.writeMessage(1, getAffectedRows()); output.writeMessage(1, getAffectedRows());
} }
if (metrics_ != null) {
output.writeMessage(2, getMetrics());
}
unknownFields.writeTo(output); unknownFields.writeTo(output);
} }
@@ -6513,6 +7064,10 @@ java.lang.String defaultValue);
size += com.google.protobuf.CodedOutputStream size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAffectedRows()); .computeMessageSize(1, getAffectedRows());
} }
if (metrics_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetrics());
}
size += unknownFields.getSerializedSize(); size += unknownFields.getSerializedSize();
memoizedSize = size; memoizedSize = size;
return size; return size;
@@ -6533,6 +7088,11 @@ java.lang.String defaultValue);
if (!getAffectedRows() if (!getAffectedRows()
.equals(other.getAffectedRows())) return false; .equals(other.getAffectedRows())) return false;
} }
if (hasMetrics() != other.hasMetrics()) return false;
if (hasMetrics()) {
if (!getMetrics()
.equals(other.getMetrics())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false; if (!unknownFields.equals(other.unknownFields)) return false;
return true; return true;
} }
@@ -6548,6 +7108,10 @@ java.lang.String defaultValue);
hash = (37 * hash) + AFFECTED_ROWS_FIELD_NUMBER; hash = (37 * hash) + AFFECTED_ROWS_FIELD_NUMBER;
hash = (53 * hash) + getAffectedRows().hashCode(); hash = (53 * hash) + getAffectedRows().hashCode();
} }
if (hasMetrics()) {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + getMetrics().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode(); hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash; memoizedHashCode = hash;
return hash; return hash;
@@ -6687,6 +7251,12 @@ java.lang.String defaultValue);
affectedRows_ = null; affectedRows_ = null;
affectedRowsBuilder_ = null; affectedRowsBuilder_ = null;
} }
if (metricsBuilder_ == null) {
metrics_ = null;
} else {
metrics_ = null;
metricsBuilder_ = null;
}
return this; return this;
} }
@@ -6718,6 +7288,11 @@ java.lang.String defaultValue);
} else { } else {
result.affectedRows_ = affectedRowsBuilder_.build(); result.affectedRows_ = affectedRowsBuilder_.build();
} }
if (metricsBuilder_ == null) {
result.metrics_ = metrics_;
} else {
result.metrics_ = metricsBuilder_.build();
}
onBuilt(); onBuilt();
return result; return result;
} }
@@ -6769,6 +7344,9 @@ java.lang.String defaultValue);
if (other.hasAffectedRows()) { if (other.hasAffectedRows()) {
mergeAffectedRows(other.getAffectedRows()); mergeAffectedRows(other.getAffectedRows());
} }
if (other.hasMetrics()) {
mergeMetrics(other.getMetrics());
}
this.mergeUnknownFields(other.unknownFields); this.mergeUnknownFields(other.unknownFields);
onChanged(); onChanged();
return this; return this;
@@ -6916,6 +7494,125 @@ java.lang.String defaultValue);
} }
return affectedRowsBuilder_; return affectedRowsBuilder_;
} }
private io.greptime.v1.Common.Metrics metrics_;
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.Metrics, io.greptime.v1.Common.Metrics.Builder, io.greptime.v1.Common.MetricsOrBuilder> metricsBuilder_;
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
* @return Whether the metrics field is set.
*/
public boolean hasMetrics() {
return metricsBuilder_ != null || metrics_ != null;
}
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
* @return The metrics.
*/
public io.greptime.v1.Common.Metrics getMetrics() {
if (metricsBuilder_ == null) {
return metrics_ == null ? io.greptime.v1.Common.Metrics.getDefaultInstance() : metrics_;
} else {
return metricsBuilder_.getMessage();
}
}
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
*/
public Builder setMetrics(io.greptime.v1.Common.Metrics value) {
if (metricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metrics_ = value;
onChanged();
} else {
metricsBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
*/
public Builder setMetrics(
io.greptime.v1.Common.Metrics.Builder builderForValue) {
if (metricsBuilder_ == null) {
metrics_ = builderForValue.build();
onChanged();
} else {
metricsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
*/
public Builder mergeMetrics(io.greptime.v1.Common.Metrics value) {
if (metricsBuilder_ == null) {
if (metrics_ != null) {
metrics_ =
io.greptime.v1.Common.Metrics.newBuilder(metrics_).mergeFrom(value).buildPartial();
} else {
metrics_ = value;
}
onChanged();
} else {
metricsBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
*/
public Builder clearMetrics() {
if (metricsBuilder_ == null) {
metrics_ = null;
onChanged();
} else {
metrics_ = null;
metricsBuilder_ = null;
}
return this;
}
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
*/
public io.greptime.v1.Common.Metrics.Builder getMetricsBuilder() {
onChanged();
return getMetricsFieldBuilder().getBuilder();
}
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
*/
public io.greptime.v1.Common.MetricsOrBuilder getMetricsOrBuilder() {
if (metricsBuilder_ != null) {
return metricsBuilder_.getMessageOrBuilder();
} else {
return metrics_ == null ?
io.greptime.v1.Common.Metrics.getDefaultInstance() : metrics_;
}
}
/**
* <code>.greptime.v1.Metrics metrics = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.Metrics, io.greptime.v1.Common.Metrics.Builder, io.greptime.v1.Common.MetricsOrBuilder>
getMetricsFieldBuilder() {
if (metricsBuilder_ == null) {
metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.Metrics, io.greptime.v1.Common.Metrics.Builder, io.greptime.v1.Common.MetricsOrBuilder>(
getMetrics(),
getParentForChildren(),
isClean());
metrics_ = null;
}
return metricsBuilder_;
}
@java.lang.Override @java.lang.Override
public final Builder setUnknownFields( public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) { final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -9499,6 +10196,11 @@ java.lang.String defaultValue);
private static final private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_greptime_v1_AffectedRows_fieldAccessorTable; internal_static_greptime_v1_AffectedRows_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_greptime_v1_Metrics_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_greptime_v1_Metrics_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor private static final com.google.protobuf.Descriptors.Descriptor
internal_static_greptime_v1_FlightMetadata_descriptor; internal_static_greptime_v1_FlightMetadata_descriptor;
private static final private static final
@@ -9548,33 +10250,35 @@ java.lang.String defaultValue);
".v1.TokenH\000B\r\n\013auth_scheme\"+\n\005Basic\022\020\n\010u" + ".v1.TokenH\000B\r\n\013auth_scheme\"+\n\005Basic\022\020\n\010u" +
"sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005Token" + "sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005Token" +
"\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows\022\r\n\005value" + "\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows\022\r\n\005value" +
"\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raffected_row" + "\030\001 \001(\r\"\032\n\007Metrics\022\017\n\007metrics\030\001 \001(\014\"i\n\016Fl" +
"s\030\001 \001(\0132\031.greptime.v1.AffectedRows\"I\n\024In" + "ightMetadata\0220\n\raffected_rows\030\001 \001(\0132\031.gr" +
"tervalMonthDayNano\022\016\n\006months\030\001 \001(\005\022\014\n\004da" + "eptime.v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132" +
"ys\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003\"$\n\nDecimal" + "\024.greptime.v1.Metrics\"I\n\024IntervalMonthDa" +
"128\022\n\n\002hi\030\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"`\n\027ColumnDat" + "yNano\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013n" +
"aTypeExtension\0229\n\014decimal_type\030\001 \001(\0132!.g" + "anoseconds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001" +
"reptime.v1.DecimalTypeExtensionH\000B\n\n\010typ" + "(\003\022\n\n\002lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtensio" +
"e_ext\"8\n\024DecimalTypeExtension\022\021\n\tprecisi" + "n\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v1.De" +
"on\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005*1\n\014SemanticType\022" + "cimalTypeExtensionH\000B\n\n\010type_ext\"8\n\024Deci" +
"\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016C" + "malTypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005s" +
"olumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005" + "cale\030\002 \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005F" +
"INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005" + "IELD\020\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016ColumnDataType" +
"\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007" + "\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005IN" +
"FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006ST" + "T32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022" +
"RING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMEST" + "\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007" +
"AMP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022" + "FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DAT" +
"\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIMESTAMP_" + "E\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022" +
"NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MI" + "\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_" +
"LLISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022\023\n\017TIM" + "MICROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022" +
"E_NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022" + "\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024" +
"\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL_MONTH" + "\n\020TIME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020" +
"_DAY_NANO\020\031\022\023\n\017DURATION_SECOND\020\032\022\030\n\024DURA" + "\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_D" +
"TION_MILLISECOND\020\033\022\030\n\024DURATION_MICROSECO" + "AY_TIME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\023" +
"ND\020\034\022\027\n\023DURATION_NANOSECOND\020\035\022\016\n\nDECIMAL" + "\n\017DURATION_SECOND\020\032\022\030\n\024DURATION_MILLISEC" +
"128\020\036BO\n\016io.greptime.v1B\006CommonZ5github." + "OND\020\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURAT" +
"com/GreptimeTeam/greptime-proto/go/grept" + "ION_NANOSECOND\020\035\022\016\n\nDECIMAL128\020\036BO\n\016io.g" +
"ime/v1b\006proto3" "reptime.v1B\006CommonZ5github.com/GreptimeT" +
"eam/greptime-proto/go/greptime/v1b\006proto" +
"3"
}; };
descriptor = com.google.protobuf.Descriptors.FileDescriptor descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData, .internalBuildGeneratedFileFrom(descriptorData,
@@ -9628,32 +10332,38 @@ java.lang.String defaultValue);
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_AffectedRows_descriptor, internal_static_greptime_v1_AffectedRows_descriptor,
new java.lang.String[] { "Value", }); new java.lang.String[] { "Value", });
internal_static_greptime_v1_FlightMetadata_descriptor = internal_static_greptime_v1_Metrics_descriptor =
getDescriptor().getMessageTypes().get(7); getDescriptor().getMessageTypes().get(7);
internal_static_greptime_v1_Metrics_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_Metrics_descriptor,
new java.lang.String[] { "Metrics", });
internal_static_greptime_v1_FlightMetadata_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_greptime_v1_FlightMetadata_fieldAccessorTable = new internal_static_greptime_v1_FlightMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_FlightMetadata_descriptor, internal_static_greptime_v1_FlightMetadata_descriptor,
new java.lang.String[] { "AffectedRows", }); new java.lang.String[] { "AffectedRows", "Metrics", });
internal_static_greptime_v1_IntervalMonthDayNano_descriptor = internal_static_greptime_v1_IntervalMonthDayNano_descriptor =
getDescriptor().getMessageTypes().get(8); getDescriptor().getMessageTypes().get(9);
internal_static_greptime_v1_IntervalMonthDayNano_fieldAccessorTable = new internal_static_greptime_v1_IntervalMonthDayNano_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_IntervalMonthDayNano_descriptor, internal_static_greptime_v1_IntervalMonthDayNano_descriptor,
new java.lang.String[] { "Months", "Days", "Nanoseconds", }); new java.lang.String[] { "Months", "Days", "Nanoseconds", });
internal_static_greptime_v1_Decimal128_descriptor = internal_static_greptime_v1_Decimal128_descriptor =
getDescriptor().getMessageTypes().get(9); getDescriptor().getMessageTypes().get(10);
internal_static_greptime_v1_Decimal128_fieldAccessorTable = new internal_static_greptime_v1_Decimal128_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_Decimal128_descriptor, internal_static_greptime_v1_Decimal128_descriptor,
new java.lang.String[] { "Hi", "Lo", }); new java.lang.String[] { "Hi", "Lo", });
internal_static_greptime_v1_ColumnDataTypeExtension_descriptor = internal_static_greptime_v1_ColumnDataTypeExtension_descriptor =
getDescriptor().getMessageTypes().get(10); getDescriptor().getMessageTypes().get(11);
internal_static_greptime_v1_ColumnDataTypeExtension_fieldAccessorTable = new internal_static_greptime_v1_ColumnDataTypeExtension_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_ColumnDataTypeExtension_descriptor, internal_static_greptime_v1_ColumnDataTypeExtension_descriptor,
new java.lang.String[] { "DecimalType", "TypeExt", }); new java.lang.String[] { "DecimalType", "TypeExt", });
internal_static_greptime_v1_DecimalTypeExtension_descriptor = internal_static_greptime_v1_DecimalTypeExtension_descriptor =
getDescriptor().getMessageTypes().get(11); getDescriptor().getMessageTypes().get(12);
internal_static_greptime_v1_DecimalTypeExtension_fieldAccessorTable = new internal_static_greptime_v1_DecimalTypeExtension_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_DecimalTypeExtension_descriptor, internal_static_greptime_v1_DecimalTypeExtension_descriptor,
+8 -1
View File
@@ -60,7 +60,14 @@ message Token { string token = 1; }
message AffectedRows { uint32 value = 1; } message AffectedRows { uint32 value = 1; }
message FlightMetadata { AffectedRows affected_rows = 1; } message Metrics {
bytes metrics = 1;
}
message FlightMetadata {
AffectedRows affected_rows = 1;
Metrics metrics = 2;
}
enum SemanticType { enum SemanticType {
TAG = 0; TAG = 0;