feat: pass tracing context in proto (#120)
* feat: pass tracing context in proto * fix: run make
This commit is contained in:
+162
-112
@@ -22,14 +22,24 @@ namespace _pbi = _pb::internal;
|
|||||||
|
|
||||||
namespace greptime {
|
namespace greptime {
|
||||||
namespace v1 {
|
namespace v1 {
|
||||||
|
PROTOBUF_CONSTEXPR RequestHeader_TracingContextEntry_DoNotUse::RequestHeader_TracingContextEntry_DoNotUse(
|
||||||
|
::_pbi::ConstantInitialized) {}
|
||||||
|
struct RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal {
|
||||||
|
PROTOBUF_CONSTEXPR RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal()
|
||||||
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||||
|
~RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal() {}
|
||||||
|
union {
|
||||||
|
RequestHeader_TracingContextEntry_DoNotUse _instance;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal _RequestHeader_TracingContextEntry_DoNotUse_default_instance_;
|
||||||
PROTOBUF_CONSTEXPR RequestHeader::RequestHeader(
|
PROTOBUF_CONSTEXPR RequestHeader::RequestHeader(
|
||||||
::_pbi::ConstantInitialized): _impl_{
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
/*decltype(_impl_.catalog_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
/*decltype(_impl_.tracing_context_)*/{::_pbi::ConstantInitialized()}
|
||||||
|
, /*decltype(_impl_.catalog_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
, /*decltype(_impl_.schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
, /*decltype(_impl_.schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
, /*decltype(_impl_.dbname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
, /*decltype(_impl_.dbname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
, /*decltype(_impl_.authorization_)*/nullptr
|
, /*decltype(_impl_.authorization_)*/nullptr
|
||||||
, /*decltype(_impl_.trace_id_)*/uint64_t{0u}
|
|
||||||
, /*decltype(_impl_.span_id_)*/uint64_t{0u}
|
|
||||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||||
struct RequestHeaderDefaultTypeInternal {
|
struct RequestHeaderDefaultTypeInternal {
|
||||||
PROTOBUF_CONSTEXPR RequestHeaderDefaultTypeInternal()
|
PROTOBUF_CONSTEXPR RequestHeaderDefaultTypeInternal()
|
||||||
@@ -151,11 +161,21 @@ struct IntervalMonthDayNanoDefaultTypeInternal {
|
|||||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_;
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_;
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[9];
|
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[10];
|
||||||
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;
|
||||||
|
|
||||||
const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse, _has_bits_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse, _internal_metadata_),
|
||||||
|
~0u, // no _extensions_
|
||||||
|
~0u, // no _oneof_case_
|
||||||
|
~0u, // no _weak_field_map_
|
||||||
|
~0u, // no _inlined_string_donated_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse, key_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse, value_),
|
||||||
|
0,
|
||||||
|
1,
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _internal_metadata_),
|
||||||
~0u, // no _extensions_
|
~0u, // no _extensions_
|
||||||
@@ -166,8 +186,7 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
|
|||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.schema_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.schema_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.authorization_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.authorization_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.dbname_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.dbname_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.trace_id_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.tracing_context_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.span_id_),
|
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::ResponseHeader, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::ResponseHeader, _internal_metadata_),
|
||||||
~0u, // no _extensions_
|
~0u, // no _extensions_
|
||||||
@@ -232,18 +251,20 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
|
|||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.nanoseconds_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.nanoseconds_),
|
||||||
};
|
};
|
||||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
{ 0, -1, -1, sizeof(::greptime::v1::RequestHeader)},
|
{ 0, 8, -1, sizeof(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse)},
|
||||||
{ 12, -1, -1, sizeof(::greptime::v1::ResponseHeader)},
|
{ 10, -1, -1, sizeof(::greptime::v1::RequestHeader)},
|
||||||
{ 19, -1, -1, sizeof(::greptime::v1::Status)},
|
{ 21, -1, -1, sizeof(::greptime::v1::ResponseHeader)},
|
||||||
{ 27, -1, -1, sizeof(::greptime::v1::AuthHeader)},
|
{ 28, -1, -1, sizeof(::greptime::v1::Status)},
|
||||||
{ 36, -1, -1, sizeof(::greptime::v1::Basic)},
|
{ 36, -1, -1, sizeof(::greptime::v1::AuthHeader)},
|
||||||
{ 44, -1, -1, sizeof(::greptime::v1::Token)},
|
{ 45, -1, -1, sizeof(::greptime::v1::Basic)},
|
||||||
{ 51, -1, -1, sizeof(::greptime::v1::AffectedRows)},
|
{ 53, -1, -1, sizeof(::greptime::v1::Token)},
|
||||||
{ 58, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
|
{ 60, -1, -1, sizeof(::greptime::v1::AffectedRows)},
|
||||||
{ 65, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
|
{ 67, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
|
||||||
|
{ 74, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
|
&::greptime::v1::_RequestHeader_TracingContextEntry_DoNotUse_default_instance_._instance,
|
||||||
&::greptime::v1::_RequestHeader_default_instance_._instance,
|
&::greptime::v1::_RequestHeader_default_instance_._instance,
|
||||||
&::greptime::v1::_ResponseHeader_default_instance_._instance,
|
&::greptime::v1::_ResponseHeader_default_instance_._instance,
|
||||||
&::greptime::v1::_Status_default_instance_._instance,
|
&::greptime::v1::_Status_default_instance_._instance,
|
||||||
@@ -257,45 +278,47 @@ static const ::_pb::Message* const file_default_instances[] = {
|
|||||||
|
|
||||||
const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||||
"\n\030greptime/v1/common.proto\022\013greptime.v1\""
|
"\n\030greptime/v1/common.proto\022\013greptime.v1\""
|
||||||
"\223\001\n\rRequestHeader\022\017\n\007catalog\030\001 \001(\t\022\016\n\006sc"
|
"\360\001\n\rRequestHeader\022\017\n\007catalog\030\001 \001(\t\022\016\n\006sc"
|
||||||
"hema\030\002 \001(\t\022.\n\rauthorization\030\003 \001(\0132\027.grep"
|
"hema\030\002 \001(\t\022.\n\rauthorization\030\003 \001(\0132\027.grep"
|
||||||
"time.v1.AuthHeader\022\016\n\006dbname\030\004 \001(\t\022\020\n\010tr"
|
"time.v1.AuthHeader\022\016\n\006dbname\030\004 \001(\t\022G\n\017tr"
|
||||||
"ace_id\030\005 \001(\004\022\017\n\007span_id\030\006 \001(\004\"5\n\016Respons"
|
"acing_context\030\005 \003(\0132..greptime.v1.Reques"
|
||||||
"eHeader\022#\n\006status\030\001 \001(\0132\023.greptime.v1.St"
|
"tHeader.TracingContextEntry\0325\n\023TracingCo"
|
||||||
"atus\".\n\006Status\022\023\n\013status_code\030\001 \001(\r\022\017\n\007e"
|
"ntextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
|
||||||
"rr_msg\030\002 \001(\t\"e\n\nAuthHeader\022#\n\005basic\030\001 \001("
|
"8\001\"5\n\016ResponseHeader\022#\n\006status\030\001 \001(\0132\023.g"
|
||||||
"\0132\022.greptime.v1.BasicH\000\022#\n\005token\030\002 \001(\0132\022"
|
"reptime.v1.Status\".\n\006Status\022\023\n\013status_co"
|
||||||
".greptime.v1.TokenH\000B\r\n\013auth_scheme\"+\n\005B"
|
"de\030\001 \001(\r\022\017\n\007err_msg\030\002 \001(\t\"e\n\nAuthHeader\022"
|
||||||
"asic\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t"
|
"#\n\005basic\030\001 \001(\0132\022.greptime.v1.BasicH\000\022#\n\005"
|
||||||
"\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows"
|
"token\030\002 \001(\0132\022.greptime.v1.TokenH\000B\r\n\013aut"
|
||||||
"\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raff"
|
"h_scheme\"+\n\005Basic\022\020\n\010username\030\001 \001(\t\022\020\n\010p"
|
||||||
"ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR"
|
"assword\030\002 \001(\t\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n"
|
||||||
"ows\"I\n\024IntervalMonthDayNano\022\016\n\006months\030\001 "
|
"\014AffectedRows\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMe"
|
||||||
"\001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003*1"
|
"tadata\0220\n\raffected_rows\030\001 \001(\0132\031.greptime"
|
||||||
"\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTI"
|
".v1.AffectedRows\"I\n\024IntervalMonthDayNano"
|
||||||
"MESTAMP\020\002*\250\004\n\016ColumnDataType\022\013\n\007BOOLEAN\020"
|
"\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanose"
|
||||||
"\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT"
|
"conds\030\003 \001(\003*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005"
|
||||||
"64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022"
|
"FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\250\004\n\016ColumnDataTyp"
|
||||||
"\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n"
|
"e\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005I"
|
||||||
"\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATET"
|
"NT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006"
|
||||||
"IME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP"
|
"\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n"
|
||||||
"_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020"
|
"\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DA"
|
||||||
"\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_SECO"
|
"TE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017"
|
||||||
"ND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MICRO"
|
"\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP"
|
||||||
"SECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVA"
|
"_MICROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022"
|
||||||
"L_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n"
|
"\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022"
|
||||||
"\027INTERVAL_MONTH_DAY_NANO\020\031\022\023\n\017DURATION_S"
|
"\024\n\020TIME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND"
|
||||||
"ECOND\020\032\022\030\n\024DURATION_MILLISECOND\020\033\022\030\n\024DUR"
|
"\020\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_"
|
||||||
"ATION_MICROSECOND\020\034\022\027\n\023DURATION_NANOSECO"
|
"DAY_TIME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022"
|
||||||
"ND\020\035BO\n\016io.greptime.v1B\006CommonZ5github.c"
|
"\023\n\017DURATION_SECOND\020\032\022\030\n\024DURATION_MILLISE"
|
||||||
"om/GreptimeTeam/greptime-proto/go/grepti"
|
"COND\020\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURA"
|
||||||
"me/v1b\006proto3"
|
"TION_NANOSECOND\020\035BO\n\016io.greptime.v1B\006Com"
|
||||||
|
"monZ5github.com/GreptimeTeam/greptime-pr"
|
||||||
|
"oto/go/greptime/v1b\006proto3"
|
||||||
;
|
;
|
||||||
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, 1333, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
false, false, 1426, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
||||||
"greptime/v1/common.proto",
|
"greptime/v1/common.proto",
|
||||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 9,
|
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 10,
|
||||||
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,
|
||||||
@@ -366,6 +389,20 @@ bool ColumnDataType_IsValid(int value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ===================================================================
|
||||||
|
|
||||||
|
RequestHeader_TracingContextEntry_DoNotUse::RequestHeader_TracingContextEntry_DoNotUse() {}
|
||||||
|
RequestHeader_TracingContextEntry_DoNotUse::RequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
||||||
|
: SuperType(arena) {}
|
||||||
|
void RequestHeader_TracingContextEntry_DoNotUse::MergeFrom(const RequestHeader_TracingContextEntry_DoNotUse& other) {
|
||||||
|
MergeFromInternal(other);
|
||||||
|
}
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata RequestHeader_TracingContextEntry_DoNotUse::GetMetadata() const {
|
||||||
|
return ::_pbi::AssignDescriptors(
|
||||||
|
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
|
||||||
|
file_level_metadata_greptime_2fv1_2fcommon_2eproto[0]);
|
||||||
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
class RequestHeader::_Internal {
|
class RequestHeader::_Internal {
|
||||||
@@ -381,21 +418,24 @@ RequestHeader::RequestHeader(::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) {
|
||||||
SharedCtor(arena, is_message_owned);
|
SharedCtor(arena, is_message_owned);
|
||||||
|
if (arena != nullptr && !is_message_owned) {
|
||||||
|
arena->OwnCustomDestructor(this, &RequestHeader::ArenaDtor);
|
||||||
|
}
|
||||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.RequestHeader)
|
// @@protoc_insertion_point(arena_constructor:greptime.v1.RequestHeader)
|
||||||
}
|
}
|
||||||
RequestHeader::RequestHeader(const RequestHeader& from)
|
RequestHeader::RequestHeader(const RequestHeader& from)
|
||||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||||
RequestHeader* const _this = this; (void)_this;
|
RequestHeader* const _this = this; (void)_this;
|
||||||
new (&_impl_) Impl_{
|
new (&_impl_) Impl_{
|
||||||
decltype(_impl_.catalog_){}
|
/*decltype(_impl_.tracing_context_)*/{}
|
||||||
|
, decltype(_impl_.catalog_){}
|
||||||
, decltype(_impl_.schema_){}
|
, decltype(_impl_.schema_){}
|
||||||
, decltype(_impl_.dbname_){}
|
, decltype(_impl_.dbname_){}
|
||||||
, decltype(_impl_.authorization_){nullptr}
|
, decltype(_impl_.authorization_){nullptr}
|
||||||
, decltype(_impl_.trace_id_){}
|
|
||||||
, decltype(_impl_.span_id_){}
|
|
||||||
, /*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_);
|
||||||
|
_this->_impl_.tracing_context_.MergeFrom(from._impl_.tracing_context_);
|
||||||
_impl_.catalog_.InitDefault();
|
_impl_.catalog_.InitDefault();
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.catalog_.Set("", GetArenaForAllocation());
|
_impl_.catalog_.Set("", GetArenaForAllocation());
|
||||||
@@ -423,9 +463,6 @@ RequestHeader::RequestHeader(const RequestHeader& from)
|
|||||||
if (from._internal_has_authorization()) {
|
if (from._internal_has_authorization()) {
|
||||||
_this->_impl_.authorization_ = new ::greptime::v1::AuthHeader(*from._impl_.authorization_);
|
_this->_impl_.authorization_ = new ::greptime::v1::AuthHeader(*from._impl_.authorization_);
|
||||||
}
|
}
|
||||||
::memcpy(&_impl_.trace_id_, &from._impl_.trace_id_,
|
|
||||||
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.span_id_) -
|
|
||||||
reinterpret_cast<char*>(&_impl_.trace_id_)) + sizeof(_impl_.span_id_));
|
|
||||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.RequestHeader)
|
// @@protoc_insertion_point(copy_constructor:greptime.v1.RequestHeader)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -434,12 +471,11 @@ inline void RequestHeader::SharedCtor(
|
|||||||
(void)arena;
|
(void)arena;
|
||||||
(void)is_message_owned;
|
(void)is_message_owned;
|
||||||
new (&_impl_) Impl_{
|
new (&_impl_) Impl_{
|
||||||
decltype(_impl_.catalog_){}
|
/*decltype(_impl_.tracing_context_)*/{::_pbi::ArenaInitialized(), arena}
|
||||||
|
, decltype(_impl_.catalog_){}
|
||||||
, decltype(_impl_.schema_){}
|
, decltype(_impl_.schema_){}
|
||||||
, decltype(_impl_.dbname_){}
|
, decltype(_impl_.dbname_){}
|
||||||
, decltype(_impl_.authorization_){nullptr}
|
, decltype(_impl_.authorization_){nullptr}
|
||||||
, decltype(_impl_.trace_id_){uint64_t{0u}}
|
|
||||||
, decltype(_impl_.span_id_){uint64_t{0u}}
|
|
||||||
, /*decltype(_impl_._cached_size_)*/{}
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
};
|
};
|
||||||
_impl_.catalog_.InitDefault();
|
_impl_.catalog_.InitDefault();
|
||||||
@@ -460,6 +496,7 @@ RequestHeader::~RequestHeader() {
|
|||||||
// @@protoc_insertion_point(destructor:greptime.v1.RequestHeader)
|
// @@protoc_insertion_point(destructor:greptime.v1.RequestHeader)
|
||||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||||
(void)arena;
|
(void)arena;
|
||||||
|
ArenaDtor(this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SharedDtor();
|
SharedDtor();
|
||||||
@@ -467,12 +504,18 @@ RequestHeader::~RequestHeader() {
|
|||||||
|
|
||||||
inline void RequestHeader::SharedDtor() {
|
inline void RequestHeader::SharedDtor() {
|
||||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||||
|
_impl_.tracing_context_.Destruct();
|
||||||
|
_impl_.tracing_context_.~MapField();
|
||||||
_impl_.catalog_.Destroy();
|
_impl_.catalog_.Destroy();
|
||||||
_impl_.schema_.Destroy();
|
_impl_.schema_.Destroy();
|
||||||
_impl_.dbname_.Destroy();
|
_impl_.dbname_.Destroy();
|
||||||
if (this != internal_default_instance()) delete _impl_.authorization_;
|
if (this != internal_default_instance()) delete _impl_.authorization_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RequestHeader::ArenaDtor(void* object) {
|
||||||
|
RequestHeader* _this = reinterpret_cast< RequestHeader* >(object);
|
||||||
|
_this->_impl_.tracing_context_.Destruct();
|
||||||
|
}
|
||||||
void RequestHeader::SetCachedSize(int size) const {
|
void RequestHeader::SetCachedSize(int size) const {
|
||||||
_impl_._cached_size_.Set(size);
|
_impl_._cached_size_.Set(size);
|
||||||
}
|
}
|
||||||
@@ -483,6 +526,7 @@ void RequestHeader::Clear() {
|
|||||||
// Prevent compiler warnings about cached_has_bits being unused
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
_impl_.tracing_context_.Clear();
|
||||||
_impl_.catalog_.ClearToEmpty();
|
_impl_.catalog_.ClearToEmpty();
|
||||||
_impl_.schema_.ClearToEmpty();
|
_impl_.schema_.ClearToEmpty();
|
||||||
_impl_.dbname_.ClearToEmpty();
|
_impl_.dbname_.ClearToEmpty();
|
||||||
@@ -490,9 +534,6 @@ void RequestHeader::Clear() {
|
|||||||
delete _impl_.authorization_;
|
delete _impl_.authorization_;
|
||||||
}
|
}
|
||||||
_impl_.authorization_ = nullptr;
|
_impl_.authorization_ = nullptr;
|
||||||
::memset(&_impl_.trace_id_, 0, static_cast<size_t>(
|
|
||||||
reinterpret_cast<char*>(&_impl_.span_id_) -
|
|
||||||
reinterpret_cast<char*>(&_impl_.trace_id_)) + sizeof(_impl_.span_id_));
|
|
||||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -540,19 +581,16 @@ const char* RequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// uint64 trace_id = 5;
|
// map<string, string> tracing_context = 5;
|
||||||
case 5:
|
case 5:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
|
||||||
_impl_.trace_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
ptr -= 1;
|
||||||
CHK_(ptr);
|
do {
|
||||||
} else
|
ptr += 1;
|
||||||
goto handle_unusual;
|
ptr = ctx->ParseMessage(&_impl_.tracing_context_, ptr);
|
||||||
continue;
|
|
||||||
// uint64 span_id = 6;
|
|
||||||
case 6:
|
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
|
|
||||||
_impl_.span_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
|
if (!ctx->DataAvailable(ptr)) break;
|
||||||
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
@@ -622,16 +660,34 @@ uint8_t* RequestHeader::_InternalSerialize(
|
|||||||
4, this->_internal_dbname(), target);
|
4, this->_internal_dbname(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// uint64 trace_id = 5;
|
// map<string, string> tracing_context = 5;
|
||||||
if (this->_internal_trace_id() != 0) {
|
if (!this->_internal_tracing_context().empty()) {
|
||||||
target = stream->EnsureSpace(target);
|
using MapType = ::_pb::Map<std::string, std::string>;
|
||||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_trace_id(), target);
|
using WireHelper = RequestHeader_TracingContextEntry_DoNotUse::Funcs;
|
||||||
}
|
const auto& map_field = this->_internal_tracing_context();
|
||||||
|
auto check_utf8 = [](const MapType::value_type& entry) {
|
||||||
|
(void)entry;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
|
entry.first.data(), static_cast<int>(entry.first.length()),
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
|
"greptime.v1.RequestHeader.TracingContextEntry.key");
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
|
entry.second.data(), static_cast<int>(entry.second.length()),
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
|
"greptime.v1.RequestHeader.TracingContextEntry.value");
|
||||||
|
};
|
||||||
|
|
||||||
// uint64 span_id = 6;
|
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
|
||||||
if (this->_internal_span_id() != 0) {
|
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
|
||||||
target = stream->EnsureSpace(target);
|
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
|
||||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(6, this->_internal_span_id(), target);
|
check_utf8(entry);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
for (const auto& entry : map_field) {
|
||||||
|
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
|
||||||
|
check_utf8(entry);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||||
@@ -650,6 +706,15 @@ size_t RequestHeader::ByteSizeLong() const {
|
|||||||
// Prevent compiler warnings about cached_has_bits being unused
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
// map<string, string> tracing_context = 5;
|
||||||
|
total_size += 1 *
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_tracing_context_size());
|
||||||
|
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
|
||||||
|
it = this->_internal_tracing_context().begin();
|
||||||
|
it != this->_internal_tracing_context().end(); ++it) {
|
||||||
|
total_size += RequestHeader_TracingContextEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
|
||||||
|
}
|
||||||
|
|
||||||
// string catalog = 1;
|
// string catalog = 1;
|
||||||
if (!this->_internal_catalog().empty()) {
|
if (!this->_internal_catalog().empty()) {
|
||||||
total_size += 1 +
|
total_size += 1 +
|
||||||
@@ -678,16 +743,6 @@ size_t RequestHeader::ByteSizeLong() const {
|
|||||||
*_impl_.authorization_);
|
*_impl_.authorization_);
|
||||||
}
|
}
|
||||||
|
|
||||||
// uint64 trace_id = 5;
|
|
||||||
if (this->_internal_trace_id() != 0) {
|
|
||||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_trace_id());
|
|
||||||
}
|
|
||||||
|
|
||||||
// uint64 span_id = 6;
|
|
||||||
if (this->_internal_span_id() != 0) {
|
|
||||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_span_id());
|
|
||||||
}
|
|
||||||
|
|
||||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -706,6 +761,7 @@ void RequestHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
|
|||||||
uint32_t cached_has_bits = 0;
|
uint32_t cached_has_bits = 0;
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
_this->_impl_.tracing_context_.MergeFrom(from._impl_.tracing_context_);
|
||||||
if (!from._internal_catalog().empty()) {
|
if (!from._internal_catalog().empty()) {
|
||||||
_this->_internal_set_catalog(from._internal_catalog());
|
_this->_internal_set_catalog(from._internal_catalog());
|
||||||
}
|
}
|
||||||
@@ -719,12 +775,6 @@ void RequestHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
|
|||||||
_this->_internal_mutable_authorization()->::greptime::v1::AuthHeader::MergeFrom(
|
_this->_internal_mutable_authorization()->::greptime::v1::AuthHeader::MergeFrom(
|
||||||
from._internal_authorization());
|
from._internal_authorization());
|
||||||
}
|
}
|
||||||
if (from._internal_trace_id() != 0) {
|
|
||||||
_this->_internal_set_trace_id(from._internal_trace_id());
|
|
||||||
}
|
|
||||||
if (from._internal_span_id() != 0) {
|
|
||||||
_this->_internal_set_span_id(from._internal_span_id());
|
|
||||||
}
|
|
||||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -744,6 +794,7 @@ void RequestHeader::InternalSwap(RequestHeader* other) {
|
|||||||
auto* lhs_arena = GetArenaForAllocation();
|
auto* lhs_arena = GetArenaForAllocation();
|
||||||
auto* rhs_arena = other->GetArenaForAllocation();
|
auto* rhs_arena = other->GetArenaForAllocation();
|
||||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||||
|
_impl_.tracing_context_.InternalSwap(&other->_impl_.tracing_context_);
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||||
&_impl_.catalog_, lhs_arena,
|
&_impl_.catalog_, lhs_arena,
|
||||||
&other->_impl_.catalog_, rhs_arena
|
&other->_impl_.catalog_, rhs_arena
|
||||||
@@ -756,18 +807,13 @@ void RequestHeader::InternalSwap(RequestHeader* other) {
|
|||||||
&_impl_.dbname_, lhs_arena,
|
&_impl_.dbname_, lhs_arena,
|
||||||
&other->_impl_.dbname_, rhs_arena
|
&other->_impl_.dbname_, rhs_arena
|
||||||
);
|
);
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
swap(_impl_.authorization_, other->_impl_.authorization_);
|
||||||
PROTOBUF_FIELD_OFFSET(RequestHeader, _impl_.span_id_)
|
|
||||||
+ sizeof(RequestHeader::_impl_.span_id_)
|
|
||||||
- PROTOBUF_FIELD_OFFSET(RequestHeader, _impl_.authorization_)>(
|
|
||||||
reinterpret_cast<char*>(&_impl_.authorization_),
|
|
||||||
reinterpret_cast<char*>(&other->_impl_.authorization_));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
::PROTOBUF_NAMESPACE_ID::Metadata RequestHeader::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata RequestHeader::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[0]);
|
file_level_metadata_greptime_2fv1_2fcommon_2eproto[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -960,7 +1006,7 @@ void ResponseHeader::InternalSwap(ResponseHeader* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata ResponseHeader::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata ResponseHeader::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[1]);
|
file_level_metadata_greptime_2fv1_2fcommon_2eproto[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -1190,7 +1236,7 @@ void Status::InternalSwap(Status* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata Status::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[2]);
|
file_level_metadata_greptime_2fv1_2fcommon_2eproto[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -1495,7 +1541,7 @@ void AuthHeader::InternalSwap(AuthHeader* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata AuthHeader::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata AuthHeader::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[3]);
|
file_level_metadata_greptime_2fv1_2fcommon_2eproto[4]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -1748,7 +1794,7 @@ void Basic::InternalSwap(Basic* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata Basic::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata Basic::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[4]);
|
file_level_metadata_greptime_2fv1_2fcommon_2eproto[5]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -1951,7 +1997,7 @@ void Token::InternalSwap(Token* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata Token::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata Token::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[5]);
|
file_level_metadata_greptime_2fv1_2fcommon_2eproto[6]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2129,7 +2175,7 @@ void AffectedRows::InternalSwap(AffectedRows* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata AffectedRows::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata AffectedRows::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[6]);
|
file_level_metadata_greptime_2fv1_2fcommon_2eproto[7]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2322,7 +2368,7 @@ void FlightMetadata::InternalSwap(FlightMetadata* other) {
|
|||||||
::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[7]);
|
file_level_metadata_greptime_2fv1_2fcommon_2eproto[8]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2557,13 +2603,17 @@ 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[8]);
|
file_level_metadata_greptime_2fv1_2fcommon_2eproto[9]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
PROTOBUF_NAMESPACE_OPEN
|
PROTOBUF_NAMESPACE_OPEN
|
||||||
|
template<> PROTOBUF_NOINLINE ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse*
|
||||||
|
Arena::CreateMaybeMessage< ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse >(Arena* arena) {
|
||||||
|
return Arena::CreateMessageInternal< ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse >(arena);
|
||||||
|
}
|
||||||
template<> PROTOBUF_NOINLINE ::greptime::v1::RequestHeader*
|
template<> PROTOBUF_NOINLINE ::greptime::v1::RequestHeader*
|
||||||
Arena::CreateMaybeMessage< ::greptime::v1::RequestHeader >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::RequestHeader >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::RequestHeader >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::RequestHeader >(arena);
|
||||||
|
|||||||
+95
-63
@@ -29,6 +29,9 @@
|
|||||||
#include <google/protobuf/message.h>
|
#include <google/protobuf/message.h>
|
||||||
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
||||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||||
|
#include <google/protobuf/map.h> // IWYU pragma: export
|
||||||
|
#include <google/protobuf/map_entry.h>
|
||||||
|
#include <google/protobuf/map_field_inl.h>
|
||||||
#include <google/protobuf/generated_enum_reflection.h>
|
#include <google/protobuf/generated_enum_reflection.h>
|
||||||
#include <google/protobuf/unknown_field_set.h>
|
#include <google/protobuf/unknown_field_set.h>
|
||||||
// @@protoc_insertion_point(includes)
|
// @@protoc_insertion_point(includes)
|
||||||
@@ -65,6 +68,9 @@ extern IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_ins
|
|||||||
class RequestHeader;
|
class RequestHeader;
|
||||||
struct RequestHeaderDefaultTypeInternal;
|
struct RequestHeaderDefaultTypeInternal;
|
||||||
extern RequestHeaderDefaultTypeInternal _RequestHeader_default_instance_;
|
extern RequestHeaderDefaultTypeInternal _RequestHeader_default_instance_;
|
||||||
|
class RequestHeader_TracingContextEntry_DoNotUse;
|
||||||
|
struct RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal;
|
||||||
|
extern RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal _RequestHeader_TracingContextEntry_DoNotUse_default_instance_;
|
||||||
class ResponseHeader;
|
class ResponseHeader;
|
||||||
struct ResponseHeaderDefaultTypeInternal;
|
struct ResponseHeaderDefaultTypeInternal;
|
||||||
extern ResponseHeaderDefaultTypeInternal _ResponseHeader_default_instance_;
|
extern ResponseHeaderDefaultTypeInternal _ResponseHeader_default_instance_;
|
||||||
@@ -83,6 +89,7 @@ template<> ::greptime::v1::Basic* Arena::CreateMaybeMessage<::greptime::v1::Basi
|
|||||||
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::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::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::ResponseHeader>(Arena*);
|
template<> ::greptime::v1::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::ResponseHeader>(Arena*);
|
||||||
template<> ::greptime::v1::Status* Arena::CreateMaybeMessage<::greptime::v1::Status>(Arena*);
|
template<> ::greptime::v1::Status* Arena::CreateMaybeMessage<::greptime::v1::Status>(Arena*);
|
||||||
template<> ::greptime::v1::Token* Arena::CreateMaybeMessage<::greptime::v1::Token>(Arena*);
|
template<> ::greptime::v1::Token* Arena::CreateMaybeMessage<::greptime::v1::Token>(Arena*);
|
||||||
@@ -171,6 +178,34 @@ inline bool ColumnDataType_Parse(
|
|||||||
}
|
}
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
|
class RequestHeader_TracingContextEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<RequestHeader_TracingContextEntry_DoNotUse,
|
||||||
|
std::string, std::string,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> {
|
||||||
|
public:
|
||||||
|
typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<RequestHeader_TracingContextEntry_DoNotUse,
|
||||||
|
std::string, std::string,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> SuperType;
|
||||||
|
RequestHeader_TracingContextEntry_DoNotUse();
|
||||||
|
explicit PROTOBUF_CONSTEXPR RequestHeader_TracingContextEntry_DoNotUse(
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||||
|
explicit RequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
||||||
|
void MergeFrom(const RequestHeader_TracingContextEntry_DoNotUse& other);
|
||||||
|
static const RequestHeader_TracingContextEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const RequestHeader_TracingContextEntry_DoNotUse*>(&_RequestHeader_TracingContextEntry_DoNotUse_default_instance_); }
|
||||||
|
static bool ValidateKey(std::string* s) {
|
||||||
|
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.RequestHeader.TracingContextEntry.key");
|
||||||
|
}
|
||||||
|
static bool ValidateValue(std::string* s) {
|
||||||
|
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.RequestHeader.TracingContextEntry.value");
|
||||||
|
}
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||||
|
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
|
||||||
|
};
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
class RequestHeader final :
|
class RequestHeader final :
|
||||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RequestHeader) */ {
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RequestHeader) */ {
|
||||||
public:
|
public:
|
||||||
@@ -219,7 +254,7 @@ class RequestHeader final :
|
|||||||
&_RequestHeader_default_instance_);
|
&_RequestHeader_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
0;
|
1;
|
||||||
|
|
||||||
friend void swap(RequestHeader& a, RequestHeader& b) {
|
friend void swap(RequestHeader& a, RequestHeader& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -280,6 +315,8 @@ class RequestHeader final :
|
|||||||
protected:
|
protected:
|
||||||
explicit RequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
explicit RequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||||
bool is_message_owned = false);
|
bool is_message_owned = false);
|
||||||
|
private:
|
||||||
|
static void ArenaDtor(void* object);
|
||||||
public:
|
public:
|
||||||
|
|
||||||
static const ClassData _class_data_;
|
static const ClassData _class_data_;
|
||||||
@@ -289,16 +326,33 @@ class RequestHeader final :
|
|||||||
|
|
||||||
// nested types ----------------------------------------------------
|
// nested types ----------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// accessors -------------------------------------------------------
|
// accessors -------------------------------------------------------
|
||||||
|
|
||||||
enum : int {
|
enum : int {
|
||||||
|
kTracingContextFieldNumber = 5,
|
||||||
kCatalogFieldNumber = 1,
|
kCatalogFieldNumber = 1,
|
||||||
kSchemaFieldNumber = 2,
|
kSchemaFieldNumber = 2,
|
||||||
kDbnameFieldNumber = 4,
|
kDbnameFieldNumber = 4,
|
||||||
kAuthorizationFieldNumber = 3,
|
kAuthorizationFieldNumber = 3,
|
||||||
kTraceIdFieldNumber = 5,
|
|
||||||
kSpanIdFieldNumber = 6,
|
|
||||||
};
|
};
|
||||||
|
// map<string, string> tracing_context = 5;
|
||||||
|
int tracing_context_size() const;
|
||||||
|
private:
|
||||||
|
int _internal_tracing_context_size() const;
|
||||||
|
public:
|
||||||
|
void clear_tracing_context();
|
||||||
|
private:
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||||
|
_internal_tracing_context() const;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||||
|
_internal_mutable_tracing_context();
|
||||||
|
public:
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||||
|
tracing_context() const;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||||
|
mutable_tracing_context();
|
||||||
|
|
||||||
// string catalog = 1;
|
// string catalog = 1;
|
||||||
void clear_catalog();
|
void clear_catalog();
|
||||||
const std::string& catalog() const;
|
const std::string& catalog() const;
|
||||||
@@ -359,24 +413,6 @@ class RequestHeader final :
|
|||||||
::greptime::v1::AuthHeader* authorization);
|
::greptime::v1::AuthHeader* authorization);
|
||||||
::greptime::v1::AuthHeader* unsafe_arena_release_authorization();
|
::greptime::v1::AuthHeader* unsafe_arena_release_authorization();
|
||||||
|
|
||||||
// uint64 trace_id = 5;
|
|
||||||
void clear_trace_id();
|
|
||||||
uint64_t trace_id() const;
|
|
||||||
void set_trace_id(uint64_t value);
|
|
||||||
private:
|
|
||||||
uint64_t _internal_trace_id() const;
|
|
||||||
void _internal_set_trace_id(uint64_t value);
|
|
||||||
public:
|
|
||||||
|
|
||||||
// uint64 span_id = 6;
|
|
||||||
void clear_span_id();
|
|
||||||
uint64_t span_id() const;
|
|
||||||
void set_span_id(uint64_t value);
|
|
||||||
private:
|
|
||||||
uint64_t _internal_span_id() const;
|
|
||||||
void _internal_set_span_id(uint64_t value);
|
|
||||||
public:
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:greptime.v1.RequestHeader)
|
// @@protoc_insertion_point(class_scope:greptime.v1.RequestHeader)
|
||||||
private:
|
private:
|
||||||
class _Internal;
|
class _Internal;
|
||||||
@@ -385,12 +421,15 @@ class RequestHeader final :
|
|||||||
typedef void InternalArenaConstructable_;
|
typedef void InternalArenaConstructable_;
|
||||||
typedef void DestructorSkippable_;
|
typedef void DestructorSkippable_;
|
||||||
struct Impl_ {
|
struct Impl_ {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::MapField<
|
||||||
|
RequestHeader_TracingContextEntry_DoNotUse,
|
||||||
|
std::string, std::string,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> tracing_context_;
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_;
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_;
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbname_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbname_;
|
||||||
::greptime::v1::AuthHeader* authorization_;
|
::greptime::v1::AuthHeader* authorization_;
|
||||||
uint64_t trace_id_;
|
|
||||||
uint64_t span_id_;
|
|
||||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
};
|
};
|
||||||
union { Impl_ _impl_; };
|
union { Impl_ _impl_; };
|
||||||
@@ -446,7 +485,7 @@ class ResponseHeader final :
|
|||||||
&_ResponseHeader_default_instance_);
|
&_ResponseHeader_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
1;
|
2;
|
||||||
|
|
||||||
friend void swap(ResponseHeader& a, ResponseHeader& b) {
|
friend void swap(ResponseHeader& a, ResponseHeader& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -603,7 +642,7 @@ class Status final :
|
|||||||
&_Status_default_instance_);
|
&_Status_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
2;
|
3;
|
||||||
|
|
||||||
friend void swap(Status& a, Status& b) {
|
friend void swap(Status& a, Status& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -773,7 +812,7 @@ class AuthHeader final :
|
|||||||
&_AuthHeader_default_instance_);
|
&_AuthHeader_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
3;
|
4;
|
||||||
|
|
||||||
friend void swap(AuthHeader& a, AuthHeader& b) {
|
friend void swap(AuthHeader& a, AuthHeader& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -963,7 +1002,7 @@ class Basic final :
|
|||||||
&_Basic_default_instance_);
|
&_Basic_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
4;
|
5;
|
||||||
|
|
||||||
friend void swap(Basic& a, Basic& b) {
|
friend void swap(Basic& a, Basic& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1132,7 +1171,7 @@ class Token final :
|
|||||||
&_Token_default_instance_);
|
&_Token_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
5;
|
6;
|
||||||
|
|
||||||
friend void swap(Token& a, Token& b) {
|
friend void swap(Token& a, Token& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1285,7 +1324,7 @@ class AffectedRows final :
|
|||||||
&_AffectedRows_default_instance_);
|
&_AffectedRows_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
6;
|
7;
|
||||||
|
|
||||||
friend void swap(AffectedRows& a, AffectedRows& b) {
|
friend void swap(AffectedRows& a, AffectedRows& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1433,7 +1472,7 @@ class FlightMetadata final :
|
|||||||
&_FlightMetadata_default_instance_);
|
&_FlightMetadata_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
7;
|
8;
|
||||||
|
|
||||||
friend void swap(FlightMetadata& a, FlightMetadata& b) {
|
friend void swap(FlightMetadata& a, FlightMetadata& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1590,7 +1629,7 @@ class IntervalMonthDayNano final :
|
|||||||
&_IntervalMonthDayNano_default_instance_);
|
&_IntervalMonthDayNano_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
8;
|
9;
|
||||||
|
|
||||||
friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) {
|
friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1719,6 +1758,8 @@ class IntervalMonthDayNano final :
|
|||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||||
#endif // __GNUC__
|
#endif // __GNUC__
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
// RequestHeader
|
// RequestHeader
|
||||||
|
|
||||||
// string catalog = 1;
|
// string catalog = 1;
|
||||||
@@ -1961,44 +2002,33 @@ inline void RequestHeader::set_allocated_dbname(std::string* dbname) {
|
|||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.RequestHeader.dbname)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.RequestHeader.dbname)
|
||||||
}
|
}
|
||||||
|
|
||||||
// uint64 trace_id = 5;
|
// map<string, string> tracing_context = 5;
|
||||||
inline void RequestHeader::clear_trace_id() {
|
inline int RequestHeader::_internal_tracing_context_size() const {
|
||||||
_impl_.trace_id_ = uint64_t{0u};
|
return _impl_.tracing_context_.size();
|
||||||
}
|
}
|
||||||
inline uint64_t RequestHeader::_internal_trace_id() const {
|
inline int RequestHeader::tracing_context_size() const {
|
||||||
return _impl_.trace_id_;
|
return _internal_tracing_context_size();
|
||||||
}
|
}
|
||||||
inline uint64_t RequestHeader::trace_id() const {
|
inline void RequestHeader::clear_tracing_context() {
|
||||||
// @@protoc_insertion_point(field_get:greptime.v1.RequestHeader.trace_id)
|
_impl_.tracing_context_.Clear();
|
||||||
return _internal_trace_id();
|
|
||||||
}
|
}
|
||||||
inline void RequestHeader::_internal_set_trace_id(uint64_t value) {
|
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||||
|
RequestHeader::_internal_tracing_context() const {
|
||||||
_impl_.trace_id_ = value;
|
return _impl_.tracing_context_.GetMap();
|
||||||
}
|
}
|
||||||
inline void RequestHeader::set_trace_id(uint64_t value) {
|
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||||
_internal_set_trace_id(value);
|
RequestHeader::tracing_context() const {
|
||||||
// @@protoc_insertion_point(field_set:greptime.v1.RequestHeader.trace_id)
|
// @@protoc_insertion_point(field_map:greptime.v1.RequestHeader.tracing_context)
|
||||||
|
return _internal_tracing_context();
|
||||||
}
|
}
|
||||||
|
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||||
// uint64 span_id = 6;
|
RequestHeader::_internal_mutable_tracing_context() {
|
||||||
inline void RequestHeader::clear_span_id() {
|
return _impl_.tracing_context_.MutableMap();
|
||||||
_impl_.span_id_ = uint64_t{0u};
|
|
||||||
}
|
}
|
||||||
inline uint64_t RequestHeader::_internal_span_id() const {
|
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||||
return _impl_.span_id_;
|
RequestHeader::mutable_tracing_context() {
|
||||||
}
|
// @@protoc_insertion_point(field_mutable_map:greptime.v1.RequestHeader.tracing_context)
|
||||||
inline uint64_t RequestHeader::span_id() const {
|
return _internal_mutable_tracing_context();
|
||||||
// @@protoc_insertion_point(field_get:greptime.v1.RequestHeader.span_id)
|
|
||||||
return _internal_span_id();
|
|
||||||
}
|
|
||||||
inline void RequestHeader::_internal_set_span_id(uint64_t value) {
|
|
||||||
|
|
||||||
_impl_.span_id_ = value;
|
|
||||||
}
|
|
||||||
inline void RequestHeader::set_span_id(uint64_t value) {
|
|
||||||
_internal_set_span_id(value);
|
|
||||||
// @@protoc_insertion_point(field_set:greptime.v1.RequestHeader.span_id)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
@@ -2689,6 +2719,8 @@ inline void IntervalMonthDayNano::set_nanoseconds(int64_t value) {
|
|||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
|
|
||||||
|
|||||||
@@ -23,9 +23,21 @@ namespace _pbi = _pb::internal;
|
|||||||
namespace greptime {
|
namespace greptime {
|
||||||
namespace v1 {
|
namespace v1 {
|
||||||
namespace meta {
|
namespace meta {
|
||||||
|
PROTOBUF_CONSTEXPR RequestHeader_TracingContextEntry_DoNotUse::RequestHeader_TracingContextEntry_DoNotUse(
|
||||||
|
::_pbi::ConstantInitialized) {}
|
||||||
|
struct RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal {
|
||||||
|
PROTOBUF_CONSTEXPR RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal()
|
||||||
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||||
|
~RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal() {}
|
||||||
|
union {
|
||||||
|
RequestHeader_TracingContextEntry_DoNotUse _instance;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal _RequestHeader_TracingContextEntry_DoNotUse_default_instance_;
|
||||||
PROTOBUF_CONSTEXPR RequestHeader::RequestHeader(
|
PROTOBUF_CONSTEXPR RequestHeader::RequestHeader(
|
||||||
::_pbi::ConstantInitialized): _impl_{
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
/*decltype(_impl_.protocol_version_)*/uint64_t{0u}
|
/*decltype(_impl_.tracing_context_)*/{::_pbi::ConstantInitialized()}
|
||||||
|
, /*decltype(_impl_.protocol_version_)*/uint64_t{0u}
|
||||||
, /*decltype(_impl_.cluster_id_)*/uint64_t{0u}
|
, /*decltype(_impl_.cluster_id_)*/uint64_t{0u}
|
||||||
, /*decltype(_impl_.member_id_)*/uint64_t{0u}
|
, /*decltype(_impl_.member_id_)*/uint64_t{0u}
|
||||||
, /*decltype(_impl_.role_)*/0
|
, /*decltype(_impl_.role_)*/0
|
||||||
@@ -141,11 +153,21 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
|
|||||||
} // namespace meta
|
} // namespace meta
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[8];
|
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[9];
|
||||||
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto[1];
|
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto[1];
|
||||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto = nullptr;
|
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto = nullptr;
|
||||||
|
|
||||||
const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse, _has_bits_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse, _internal_metadata_),
|
||||||
|
~0u, // no _extensions_
|
||||||
|
~0u, // no _oneof_case_
|
||||||
|
~0u, // no _weak_field_map_
|
||||||
|
~0u, // no _inlined_string_donated_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse, key_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse, value_),
|
||||||
|
0,
|
||||||
|
1,
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _internal_metadata_),
|
||||||
~0u, // no _extensions_
|
~0u, // no _extensions_
|
||||||
@@ -156,6 +178,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets[] PROT
|
|||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _impl_.cluster_id_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _impl_.cluster_id_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _impl_.member_id_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _impl_.member_id_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _impl_.role_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _impl_.role_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _impl_.tracing_context_),
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ResponseHeader, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ResponseHeader, _internal_metadata_),
|
||||||
~0u, // no _extensions_
|
~0u, // no _extensions_
|
||||||
@@ -215,17 +238,19 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets[] PROT
|
|||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::KeyValue, _impl_.value_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::KeyValue, _impl_.value_),
|
||||||
};
|
};
|
||||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
{ 0, -1, -1, sizeof(::greptime::v1::meta::RequestHeader)},
|
{ 0, 8, -1, sizeof(::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse)},
|
||||||
{ 10, -1, -1, sizeof(::greptime::v1::meta::ResponseHeader)},
|
{ 10, -1, -1, sizeof(::greptime::v1::meta::RequestHeader)},
|
||||||
{ 19, -1, -1, sizeof(::greptime::v1::meta::Error)},
|
{ 21, -1, -1, sizeof(::greptime::v1::meta::ResponseHeader)},
|
||||||
{ 27, -1, -1, sizeof(::greptime::v1::meta::Peer)},
|
{ 30, -1, -1, sizeof(::greptime::v1::meta::Error)},
|
||||||
{ 35, -1, -1, sizeof(::greptime::v1::meta::TableId)},
|
{ 38, -1, -1, sizeof(::greptime::v1::meta::Peer)},
|
||||||
{ 42, -1, -1, sizeof(::greptime::v1::meta::TableName)},
|
{ 46, -1, -1, sizeof(::greptime::v1::meta::TableId)},
|
||||||
{ 51, -1, -1, sizeof(::greptime::v1::meta::TimeInterval)},
|
{ 53, -1, -1, sizeof(::greptime::v1::meta::TableName)},
|
||||||
{ 59, -1, -1, sizeof(::greptime::v1::meta::KeyValue)},
|
{ 62, -1, -1, sizeof(::greptime::v1::meta::TimeInterval)},
|
||||||
|
{ 70, -1, -1, sizeof(::greptime::v1::meta::KeyValue)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
|
&::greptime::v1::meta::_RequestHeader_TracingContextEntry_DoNotUse_default_instance_._instance,
|
||||||
&::greptime::v1::meta::_RequestHeader_default_instance_._instance,
|
&::greptime::v1::meta::_RequestHeader_default_instance_._instance,
|
||||||
&::greptime::v1::meta::_ResponseHeader_default_instance_._instance,
|
&::greptime::v1::meta::_ResponseHeader_default_instance_._instance,
|
||||||
&::greptime::v1::meta::_Error_default_instance_._instance,
|
&::greptime::v1::meta::_Error_default_instance_._instance,
|
||||||
@@ -238,28 +263,32 @@ static const ::_pb::Message* const file_default_instances[] = {
|
|||||||
|
|
||||||
const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||||
"\n\035greptime/v1/meta/common.proto\022\020greptim"
|
"\n\035greptime/v1/meta/common.proto\022\020greptim"
|
||||||
"e.v1.meta\"v\n\rRequestHeader\022\030\n\020protocol_v"
|
"e.v1.meta\"\373\001\n\rRequestHeader\022\030\n\020protocol_"
|
||||||
"ersion\030\001 \001(\004\022\022\n\ncluster_id\030\002 \001(\004\022\021\n\tmemb"
|
"version\030\001 \001(\004\022\022\n\ncluster_id\030\002 \001(\004\022\021\n\tmem"
|
||||||
"er_id\030\003 \001(\004\022$\n\004role\030\004 \001(\0162\026.greptime.v1."
|
"ber_id\030\003 \001(\004\022$\n\004role\030\004 \001(\0162\026.greptime.v1"
|
||||||
"meta.Role\"f\n\016ResponseHeader\022\030\n\020protocol_"
|
".meta.Role\022L\n\017tracing_context\030\005 \003(\01323.gr"
|
||||||
"version\030\001 \001(\004\022\022\n\ncluster_id\030\002 \001(\004\022&\n\005err"
|
"eptime.v1.meta.RequestHeader.TracingCont"
|
||||||
"or\030\003 \001(\0132\027.greptime.v1.meta.Error\"&\n\005Err"
|
"extEntry\0325\n\023TracingContextEntry\022\013\n\003key\030\001"
|
||||||
"or\022\014\n\004code\030\001 \001(\005\022\017\n\007err_msg\030\002 \001(\t\" \n\004Pee"
|
" \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\016ResponseHeade"
|
||||||
"r\022\n\n\002id\030\001 \001(\004\022\014\n\004addr\030\002 \001(\t\"\025\n\007TableId\022\n"
|
"r\022\030\n\020protocol_version\030\001 \001(\004\022\022\n\ncluster_i"
|
||||||
"\n\002id\030\001 \001(\r\"J\n\tTableName\022\024\n\014catalog_name\030"
|
"d\030\002 \001(\004\022&\n\005error\030\003 \001(\0132\027.greptime.v1.met"
|
||||||
"\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name"
|
"a.Error\"&\n\005Error\022\014\n\004code\030\001 \001(\005\022\017\n\007err_ms"
|
||||||
"\030\003 \001(\t\"L\n\014TimeInterval\022\036\n\026start_timestam"
|
"g\030\002 \001(\t\" \n\004Peer\022\n\n\002id\030\001 \001(\004\022\014\n\004addr\030\002 \001("
|
||||||
"p_millis\030\001 \001(\003\022\034\n\024end_timestamp_millis\030\002"
|
"\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"J\n\tTableName\022\024\n"
|
||||||
" \001(\003\"&\n\010KeyValue\022\013\n\003key\030\001 \001(\014\022\r\n\005value\030\002"
|
"\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t"
|
||||||
" \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000\022\014\n\010FRONTEND\020\001"
|
"\022\022\n\ntable_name\030\003 \001(\t\"L\n\014TimeInterval\022\036\n\026"
|
||||||
"B<Z:github.com/GreptimeTeam/greptime-pro"
|
"start_timestamp_millis\030\001 \001(\003\022\034\n\024end_time"
|
||||||
"to/go/greptime/v1/metab\006proto3"
|
"stamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003key\030\001 "
|
||||||
|
"\001(\014\022\r\n\005value\030\002 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000"
|
||||||
|
"\022\014\n\010FRONTEND\020\001B<Z:github.com/GreptimeTea"
|
||||||
|
"m/greptime-proto/go/greptime/v1/metab\006pr"
|
||||||
|
"oto3"
|
||||||
;
|
;
|
||||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once;
|
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once;
|
||||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto = {
|
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto = {
|
||||||
false, false, 670, descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
false, false, 804, descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
||||||
"greptime/v1/meta/common.proto",
|
"greptime/v1/meta/common.proto",
|
||||||
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, nullptr, 0, 8,
|
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, nullptr, 0, 9,
|
||||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets,
|
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets,
|
||||||
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
||||||
file_level_service_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
file_level_service_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
||||||
@@ -288,6 +317,20 @@ bool Role_IsValid(int value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ===================================================================
|
||||||
|
|
||||||
|
RequestHeader_TracingContextEntry_DoNotUse::RequestHeader_TracingContextEntry_DoNotUse() {}
|
||||||
|
RequestHeader_TracingContextEntry_DoNotUse::RequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
||||||
|
: SuperType(arena) {}
|
||||||
|
void RequestHeader_TracingContextEntry_DoNotUse::MergeFrom(const RequestHeader_TracingContextEntry_DoNotUse& other) {
|
||||||
|
MergeFromInternal(other);
|
||||||
|
}
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata RequestHeader_TracingContextEntry_DoNotUse::GetMetadata() const {
|
||||||
|
return ::_pbi::AssignDescriptors(
|
||||||
|
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
||||||
|
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[0]);
|
||||||
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
class RequestHeader::_Internal {
|
class RequestHeader::_Internal {
|
||||||
@@ -298,19 +341,24 @@ RequestHeader::RequestHeader(::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) {
|
||||||
SharedCtor(arena, is_message_owned);
|
SharedCtor(arena, is_message_owned);
|
||||||
|
if (arena != nullptr && !is_message_owned) {
|
||||||
|
arena->OwnCustomDestructor(this, &RequestHeader::ArenaDtor);
|
||||||
|
}
|
||||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.RequestHeader)
|
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.RequestHeader)
|
||||||
}
|
}
|
||||||
RequestHeader::RequestHeader(const RequestHeader& from)
|
RequestHeader::RequestHeader(const RequestHeader& from)
|
||||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||||
RequestHeader* const _this = this; (void)_this;
|
RequestHeader* const _this = this; (void)_this;
|
||||||
new (&_impl_) Impl_{
|
new (&_impl_) Impl_{
|
||||||
decltype(_impl_.protocol_version_){}
|
/*decltype(_impl_.tracing_context_)*/{}
|
||||||
|
, decltype(_impl_.protocol_version_){}
|
||||||
, decltype(_impl_.cluster_id_){}
|
, decltype(_impl_.cluster_id_){}
|
||||||
, decltype(_impl_.member_id_){}
|
, decltype(_impl_.member_id_){}
|
||||||
, decltype(_impl_.role_){}
|
, decltype(_impl_.role_){}
|
||||||
, /*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_);
|
||||||
|
_this->_impl_.tracing_context_.MergeFrom(from._impl_.tracing_context_);
|
||||||
::memcpy(&_impl_.protocol_version_, &from._impl_.protocol_version_,
|
::memcpy(&_impl_.protocol_version_, &from._impl_.protocol_version_,
|
||||||
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.role_) -
|
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.role_) -
|
||||||
reinterpret_cast<char*>(&_impl_.protocol_version_)) + sizeof(_impl_.role_));
|
reinterpret_cast<char*>(&_impl_.protocol_version_)) + sizeof(_impl_.role_));
|
||||||
@@ -322,7 +370,8 @@ inline void RequestHeader::SharedCtor(
|
|||||||
(void)arena;
|
(void)arena;
|
||||||
(void)is_message_owned;
|
(void)is_message_owned;
|
||||||
new (&_impl_) Impl_{
|
new (&_impl_) Impl_{
|
||||||
decltype(_impl_.protocol_version_){uint64_t{0u}}
|
/*decltype(_impl_.tracing_context_)*/{::_pbi::ArenaInitialized(), arena}
|
||||||
|
, decltype(_impl_.protocol_version_){uint64_t{0u}}
|
||||||
, decltype(_impl_.cluster_id_){uint64_t{0u}}
|
, decltype(_impl_.cluster_id_){uint64_t{0u}}
|
||||||
, decltype(_impl_.member_id_){uint64_t{0u}}
|
, decltype(_impl_.member_id_){uint64_t{0u}}
|
||||||
, decltype(_impl_.role_){0}
|
, decltype(_impl_.role_){0}
|
||||||
@@ -334,6 +383,7 @@ RequestHeader::~RequestHeader() {
|
|||||||
// @@protoc_insertion_point(destructor:greptime.v1.meta.RequestHeader)
|
// @@protoc_insertion_point(destructor:greptime.v1.meta.RequestHeader)
|
||||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||||
(void)arena;
|
(void)arena;
|
||||||
|
ArenaDtor(this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SharedDtor();
|
SharedDtor();
|
||||||
@@ -341,8 +391,14 @@ RequestHeader::~RequestHeader() {
|
|||||||
|
|
||||||
inline void RequestHeader::SharedDtor() {
|
inline void RequestHeader::SharedDtor() {
|
||||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||||
|
_impl_.tracing_context_.Destruct();
|
||||||
|
_impl_.tracing_context_.~MapField();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RequestHeader::ArenaDtor(void* object) {
|
||||||
|
RequestHeader* _this = reinterpret_cast< RequestHeader* >(object);
|
||||||
|
_this->_impl_.tracing_context_.Destruct();
|
||||||
|
}
|
||||||
void RequestHeader::SetCachedSize(int size) const {
|
void RequestHeader::SetCachedSize(int size) const {
|
||||||
_impl_._cached_size_.Set(size);
|
_impl_._cached_size_.Set(size);
|
||||||
}
|
}
|
||||||
@@ -353,6 +409,7 @@ void RequestHeader::Clear() {
|
|||||||
// Prevent compiler warnings about cached_has_bits being unused
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
_impl_.tracing_context_.Clear();
|
||||||
::memset(&_impl_.protocol_version_, 0, static_cast<size_t>(
|
::memset(&_impl_.protocol_version_, 0, static_cast<size_t>(
|
||||||
reinterpret_cast<char*>(&_impl_.role_) -
|
reinterpret_cast<char*>(&_impl_.role_) -
|
||||||
reinterpret_cast<char*>(&_impl_.protocol_version_)) + sizeof(_impl_.role_));
|
reinterpret_cast<char*>(&_impl_.protocol_version_)) + sizeof(_impl_.role_));
|
||||||
@@ -398,6 +455,19 @@ const char* RequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
|
// map<string, string> tracing_context = 5;
|
||||||
|
case 5:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
|
||||||
|
ptr -= 1;
|
||||||
|
do {
|
||||||
|
ptr += 1;
|
||||||
|
ptr = ctx->ParseMessage(&_impl_.tracing_context_, ptr);
|
||||||
|
CHK_(ptr);
|
||||||
|
if (!ctx->DataAvailable(ptr)) break;
|
||||||
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
default:
|
default:
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
} // switch
|
} // switch
|
||||||
@@ -452,6 +522,36 @@ uint8_t* RequestHeader::_InternalSerialize(
|
|||||||
4, this->_internal_role(), target);
|
4, this->_internal_role(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// map<string, string> tracing_context = 5;
|
||||||
|
if (!this->_internal_tracing_context().empty()) {
|
||||||
|
using MapType = ::_pb::Map<std::string, std::string>;
|
||||||
|
using WireHelper = RequestHeader_TracingContextEntry_DoNotUse::Funcs;
|
||||||
|
const auto& map_field = this->_internal_tracing_context();
|
||||||
|
auto check_utf8 = [](const MapType::value_type& entry) {
|
||||||
|
(void)entry;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
|
entry.first.data(), static_cast<int>(entry.first.length()),
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
|
"greptime.v1.meta.RequestHeader.TracingContextEntry.key");
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
|
entry.second.data(), static_cast<int>(entry.second.length()),
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
|
"greptime.v1.meta.RequestHeader.TracingContextEntry.value");
|
||||||
|
};
|
||||||
|
|
||||||
|
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
|
||||||
|
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
|
||||||
|
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
|
||||||
|
check_utf8(entry);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
for (const auto& entry : map_field) {
|
||||||
|
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
|
||||||
|
check_utf8(entry);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
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);
|
||||||
@@ -468,6 +568,15 @@ size_t RequestHeader::ByteSizeLong() const {
|
|||||||
// Prevent compiler warnings about cached_has_bits being unused
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
// map<string, string> tracing_context = 5;
|
||||||
|
total_size += 1 *
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_tracing_context_size());
|
||||||
|
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
|
||||||
|
it = this->_internal_tracing_context().begin();
|
||||||
|
it != this->_internal_tracing_context().end(); ++it) {
|
||||||
|
total_size += RequestHeader_TracingContextEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
|
||||||
|
}
|
||||||
|
|
||||||
// uint64 protocol_version = 1;
|
// uint64 protocol_version = 1;
|
||||||
if (this->_internal_protocol_version() != 0) {
|
if (this->_internal_protocol_version() != 0) {
|
||||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_protocol_version());
|
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_protocol_version());
|
||||||
@@ -507,6 +616,7 @@ void RequestHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
|
|||||||
uint32_t cached_has_bits = 0;
|
uint32_t cached_has_bits = 0;
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
_this->_impl_.tracing_context_.MergeFrom(from._impl_.tracing_context_);
|
||||||
if (from._internal_protocol_version() != 0) {
|
if (from._internal_protocol_version() != 0) {
|
||||||
_this->_internal_set_protocol_version(from._internal_protocol_version());
|
_this->_internal_set_protocol_version(from._internal_protocol_version());
|
||||||
}
|
}
|
||||||
@@ -536,6 +646,7 @@ bool RequestHeader::IsInitialized() const {
|
|||||||
void RequestHeader::InternalSwap(RequestHeader* other) {
|
void RequestHeader::InternalSwap(RequestHeader* other) {
|
||||||
using std::swap;
|
using std::swap;
|
||||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||||
|
_impl_.tracing_context_.InternalSwap(&other->_impl_.tracing_context_);
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||||
PROTOBUF_FIELD_OFFSET(RequestHeader, _impl_.role_)
|
PROTOBUF_FIELD_OFFSET(RequestHeader, _impl_.role_)
|
||||||
+ sizeof(RequestHeader::_impl_.role_)
|
+ sizeof(RequestHeader::_impl_.role_)
|
||||||
@@ -547,7 +658,7 @@ void RequestHeader::InternalSwap(RequestHeader* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata RequestHeader::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata RequestHeader::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[0]);
|
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -799,7 +910,7 @@ void ResponseHeader::InternalSwap(ResponseHeader* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata ResponseHeader::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata ResponseHeader::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[1]);
|
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -1029,7 +1140,7 @@ void Error::InternalSwap(Error* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata Error::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata Error::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[2]);
|
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -1259,7 +1370,7 @@ void Peer::InternalSwap(Peer* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata Peer::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata Peer::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[3]);
|
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[4]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -1437,7 +1548,7 @@ void TableId::InternalSwap(TableId* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[4]);
|
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[5]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -1740,7 +1851,7 @@ void TableName::InternalSwap(TableName* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata TableName::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata TableName::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[5]);
|
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[6]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -1951,7 +2062,7 @@ void TimeInterval::InternalSwap(TimeInterval* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata TimeInterval::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata TimeInterval::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[6]);
|
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[7]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2194,7 +2305,7 @@ void KeyValue::InternalSwap(KeyValue* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata KeyValue::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata KeyValue::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[7]);
|
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[8]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
@@ -2202,6 +2313,10 @@ void KeyValue::InternalSwap(KeyValue* other) {
|
|||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
PROTOBUF_NAMESPACE_OPEN
|
PROTOBUF_NAMESPACE_OPEN
|
||||||
|
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse*
|
||||||
|
Arena::CreateMaybeMessage< ::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse >(Arena* arena) {
|
||||||
|
return Arena::CreateMessageInternal< ::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse >(arena);
|
||||||
|
}
|
||||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::RequestHeader*
|
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::RequestHeader*
|
||||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::RequestHeader >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::meta::RequestHeader >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::RequestHeader >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::meta::RequestHeader >(arena);
|
||||||
|
|||||||
@@ -29,6 +29,9 @@
|
|||||||
#include <google/protobuf/message.h>
|
#include <google/protobuf/message.h>
|
||||||
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
||||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||||
|
#include <google/protobuf/map.h> // IWYU pragma: export
|
||||||
|
#include <google/protobuf/map_entry.h>
|
||||||
|
#include <google/protobuf/map_field_inl.h>
|
||||||
#include <google/protobuf/generated_enum_reflection.h>
|
#include <google/protobuf/generated_enum_reflection.h>
|
||||||
#include <google/protobuf/unknown_field_set.h>
|
#include <google/protobuf/unknown_field_set.h>
|
||||||
// @@protoc_insertion_point(includes)
|
// @@protoc_insertion_point(includes)
|
||||||
@@ -60,6 +63,9 @@ extern PeerDefaultTypeInternal _Peer_default_instance_;
|
|||||||
class RequestHeader;
|
class RequestHeader;
|
||||||
struct RequestHeaderDefaultTypeInternal;
|
struct RequestHeaderDefaultTypeInternal;
|
||||||
extern RequestHeaderDefaultTypeInternal _RequestHeader_default_instance_;
|
extern RequestHeaderDefaultTypeInternal _RequestHeader_default_instance_;
|
||||||
|
class RequestHeader_TracingContextEntry_DoNotUse;
|
||||||
|
struct RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal;
|
||||||
|
extern RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal _RequestHeader_TracingContextEntry_DoNotUse_default_instance_;
|
||||||
class ResponseHeader;
|
class ResponseHeader;
|
||||||
struct ResponseHeaderDefaultTypeInternal;
|
struct ResponseHeaderDefaultTypeInternal;
|
||||||
extern ResponseHeaderDefaultTypeInternal _ResponseHeader_default_instance_;
|
extern ResponseHeaderDefaultTypeInternal _ResponseHeader_default_instance_;
|
||||||
@@ -80,6 +86,7 @@ template<> ::greptime::v1::meta::Error* Arena::CreateMaybeMessage<::greptime::v1
|
|||||||
template<> ::greptime::v1::meta::KeyValue* Arena::CreateMaybeMessage<::greptime::v1::meta::KeyValue>(Arena*);
|
template<> ::greptime::v1::meta::KeyValue* Arena::CreateMaybeMessage<::greptime::v1::meta::KeyValue>(Arena*);
|
||||||
template<> ::greptime::v1::meta::Peer* Arena::CreateMaybeMessage<::greptime::v1::meta::Peer>(Arena*);
|
template<> ::greptime::v1::meta::Peer* Arena::CreateMaybeMessage<::greptime::v1::meta::Peer>(Arena*);
|
||||||
template<> ::greptime::v1::meta::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(Arena*);
|
template<> ::greptime::v1::meta::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(Arena*);
|
||||||
|
template<> ::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse>(Arena*);
|
||||||
template<> ::greptime::v1::meta::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(Arena*);
|
template<> ::greptime::v1::meta::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(Arena*);
|
||||||
template<> ::greptime::v1::meta::TableId* Arena::CreateMaybeMessage<::greptime::v1::meta::TableId>(Arena*);
|
template<> ::greptime::v1::meta::TableId* Arena::CreateMaybeMessage<::greptime::v1::meta::TableId>(Arena*);
|
||||||
template<> ::greptime::v1::meta::TableName* Arena::CreateMaybeMessage<::greptime::v1::meta::TableName>(Arena*);
|
template<> ::greptime::v1::meta::TableName* Arena::CreateMaybeMessage<::greptime::v1::meta::TableName>(Arena*);
|
||||||
@@ -116,6 +123,34 @@ inline bool Role_Parse(
|
|||||||
}
|
}
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
|
class RequestHeader_TracingContextEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<RequestHeader_TracingContextEntry_DoNotUse,
|
||||||
|
std::string, std::string,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> {
|
||||||
|
public:
|
||||||
|
typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<RequestHeader_TracingContextEntry_DoNotUse,
|
||||||
|
std::string, std::string,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> SuperType;
|
||||||
|
RequestHeader_TracingContextEntry_DoNotUse();
|
||||||
|
explicit PROTOBUF_CONSTEXPR RequestHeader_TracingContextEntry_DoNotUse(
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||||
|
explicit RequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
||||||
|
void MergeFrom(const RequestHeader_TracingContextEntry_DoNotUse& other);
|
||||||
|
static const RequestHeader_TracingContextEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const RequestHeader_TracingContextEntry_DoNotUse*>(&_RequestHeader_TracingContextEntry_DoNotUse_default_instance_); }
|
||||||
|
static bool ValidateKey(std::string* s) {
|
||||||
|
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.meta.RequestHeader.TracingContextEntry.key");
|
||||||
|
}
|
||||||
|
static bool ValidateValue(std::string* s) {
|
||||||
|
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.meta.RequestHeader.TracingContextEntry.value");
|
||||||
|
}
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||||
|
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto;
|
||||||
|
};
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
class RequestHeader final :
|
class RequestHeader final :
|
||||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.RequestHeader) */ {
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.RequestHeader) */ {
|
||||||
public:
|
public:
|
||||||
@@ -164,7 +199,7 @@ class RequestHeader final :
|
|||||||
&_RequestHeader_default_instance_);
|
&_RequestHeader_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
0;
|
1;
|
||||||
|
|
||||||
friend void swap(RequestHeader& a, RequestHeader& b) {
|
friend void swap(RequestHeader& a, RequestHeader& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -225,6 +260,8 @@ class RequestHeader final :
|
|||||||
protected:
|
protected:
|
||||||
explicit RequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
explicit RequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||||
bool is_message_owned = false);
|
bool is_message_owned = false);
|
||||||
|
private:
|
||||||
|
static void ArenaDtor(void* object);
|
||||||
public:
|
public:
|
||||||
|
|
||||||
static const ClassData _class_data_;
|
static const ClassData _class_data_;
|
||||||
@@ -234,14 +271,33 @@ class RequestHeader final :
|
|||||||
|
|
||||||
// nested types ----------------------------------------------------
|
// nested types ----------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// accessors -------------------------------------------------------
|
// accessors -------------------------------------------------------
|
||||||
|
|
||||||
enum : int {
|
enum : int {
|
||||||
|
kTracingContextFieldNumber = 5,
|
||||||
kProtocolVersionFieldNumber = 1,
|
kProtocolVersionFieldNumber = 1,
|
||||||
kClusterIdFieldNumber = 2,
|
kClusterIdFieldNumber = 2,
|
||||||
kMemberIdFieldNumber = 3,
|
kMemberIdFieldNumber = 3,
|
||||||
kRoleFieldNumber = 4,
|
kRoleFieldNumber = 4,
|
||||||
};
|
};
|
||||||
|
// map<string, string> tracing_context = 5;
|
||||||
|
int tracing_context_size() const;
|
||||||
|
private:
|
||||||
|
int _internal_tracing_context_size() const;
|
||||||
|
public:
|
||||||
|
void clear_tracing_context();
|
||||||
|
private:
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||||
|
_internal_tracing_context() const;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||||
|
_internal_mutable_tracing_context();
|
||||||
|
public:
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||||
|
tracing_context() const;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||||
|
mutable_tracing_context();
|
||||||
|
|
||||||
// uint64 protocol_version = 1;
|
// uint64 protocol_version = 1;
|
||||||
void clear_protocol_version();
|
void clear_protocol_version();
|
||||||
uint64_t protocol_version() const;
|
uint64_t protocol_version() const;
|
||||||
@@ -286,6 +342,11 @@ class RequestHeader final :
|
|||||||
typedef void InternalArenaConstructable_;
|
typedef void InternalArenaConstructable_;
|
||||||
typedef void DestructorSkippable_;
|
typedef void DestructorSkippable_;
|
||||||
struct Impl_ {
|
struct Impl_ {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::MapField<
|
||||||
|
RequestHeader_TracingContextEntry_DoNotUse,
|
||||||
|
std::string, std::string,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> tracing_context_;
|
||||||
uint64_t protocol_version_;
|
uint64_t protocol_version_;
|
||||||
uint64_t cluster_id_;
|
uint64_t cluster_id_;
|
||||||
uint64_t member_id_;
|
uint64_t member_id_;
|
||||||
@@ -345,7 +406,7 @@ class ResponseHeader final :
|
|||||||
&_ResponseHeader_default_instance_);
|
&_ResponseHeader_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
1;
|
2;
|
||||||
|
|
||||||
friend void swap(ResponseHeader& a, ResponseHeader& b) {
|
friend void swap(ResponseHeader& a, ResponseHeader& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -524,7 +585,7 @@ class Error final :
|
|||||||
&_Error_default_instance_);
|
&_Error_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
2;
|
3;
|
||||||
|
|
||||||
friend void swap(Error& a, Error& b) {
|
friend void swap(Error& a, Error& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -688,7 +749,7 @@ class Peer final :
|
|||||||
&_Peer_default_instance_);
|
&_Peer_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
3;
|
4;
|
||||||
|
|
||||||
friend void swap(Peer& a, Peer& b) {
|
friend void swap(Peer& a, Peer& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -852,7 +913,7 @@ class TableId final :
|
|||||||
&_TableId_default_instance_);
|
&_TableId_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
4;
|
5;
|
||||||
|
|
||||||
friend void swap(TableId& a, TableId& b) {
|
friend void swap(TableId& a, TableId& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1000,7 +1061,7 @@ class TableName final :
|
|||||||
&_TableName_default_instance_);
|
&_TableName_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
5;
|
6;
|
||||||
|
|
||||||
friend void swap(TableName& a, TableName& b) {
|
friend void swap(TableName& a, TableName& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1185,7 +1246,7 @@ class TimeInterval final :
|
|||||||
&_TimeInterval_default_instance_);
|
&_TimeInterval_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
6;
|
7;
|
||||||
|
|
||||||
friend void swap(TimeInterval& a, TimeInterval& b) {
|
friend void swap(TimeInterval& a, TimeInterval& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1344,7 +1405,7 @@ class KeyValue final :
|
|||||||
&_KeyValue_default_instance_);
|
&_KeyValue_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
7;
|
8;
|
||||||
|
|
||||||
friend void swap(KeyValue& a, KeyValue& b) {
|
friend void swap(KeyValue& a, KeyValue& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1472,6 +1533,8 @@ class KeyValue final :
|
|||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||||
#endif // __GNUC__
|
#endif // __GNUC__
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
// RequestHeader
|
// RequestHeader
|
||||||
|
|
||||||
// uint64 protocol_version = 1;
|
// uint64 protocol_version = 1;
|
||||||
@@ -1554,6 +1617,35 @@ inline void RequestHeader::set_role(::greptime::v1::meta::Role value) {
|
|||||||
// @@protoc_insertion_point(field_set:greptime.v1.meta.RequestHeader.role)
|
// @@protoc_insertion_point(field_set:greptime.v1.meta.RequestHeader.role)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// map<string, string> tracing_context = 5;
|
||||||
|
inline int RequestHeader::_internal_tracing_context_size() const {
|
||||||
|
return _impl_.tracing_context_.size();
|
||||||
|
}
|
||||||
|
inline int RequestHeader::tracing_context_size() const {
|
||||||
|
return _internal_tracing_context_size();
|
||||||
|
}
|
||||||
|
inline void RequestHeader::clear_tracing_context() {
|
||||||
|
_impl_.tracing_context_.Clear();
|
||||||
|
}
|
||||||
|
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||||
|
RequestHeader::_internal_tracing_context() const {
|
||||||
|
return _impl_.tracing_context_.GetMap();
|
||||||
|
}
|
||||||
|
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||||
|
RequestHeader::tracing_context() const {
|
||||||
|
// @@protoc_insertion_point(field_map:greptime.v1.meta.RequestHeader.tracing_context)
|
||||||
|
return _internal_tracing_context();
|
||||||
|
}
|
||||||
|
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||||
|
RequestHeader::_internal_mutable_tracing_context() {
|
||||||
|
return _impl_.tracing_context_.MutableMap();
|
||||||
|
}
|
||||||
|
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||||
|
RequestHeader::mutable_tracing_context() {
|
||||||
|
// @@protoc_insertion_point(field_mutable_map:greptime.v1.meta.RequestHeader.tracing_context)
|
||||||
|
return _internal_mutable_tracing_context();
|
||||||
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
// ResponseHeader
|
// ResponseHeader
|
||||||
@@ -2179,6 +2271,8 @@ inline void KeyValue::set_allocated_value(std::string* value) {
|
|||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
|
|
||||||
|
|||||||
+229
-179
@@ -23,11 +23,21 @@ namespace _pbi = _pb::internal;
|
|||||||
namespace greptime {
|
namespace greptime {
|
||||||
namespace v1 {
|
namespace v1 {
|
||||||
namespace region {
|
namespace region {
|
||||||
|
PROTOBUF_CONSTEXPR RegionRequestHeader_TracingContextEntry_DoNotUse::RegionRequestHeader_TracingContextEntry_DoNotUse(
|
||||||
|
::_pbi::ConstantInitialized) {}
|
||||||
|
struct RegionRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal {
|
||||||
|
PROTOBUF_CONSTEXPR RegionRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal()
|
||||||
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||||
|
~RegionRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal() {}
|
||||||
|
union {
|
||||||
|
RegionRequestHeader_TracingContextEntry_DoNotUse _instance;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegionRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal _RegionRequestHeader_TracingContextEntry_DoNotUse_default_instance_;
|
||||||
PROTOBUF_CONSTEXPR RegionRequestHeader::RegionRequestHeader(
|
PROTOBUF_CONSTEXPR RegionRequestHeader::RegionRequestHeader(
|
||||||
::_pbi::ConstantInitialized): _impl_{
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
/*decltype(_impl_.dbname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
/*decltype(_impl_.tracing_context_)*/{::_pbi::ConstantInitialized()}
|
||||||
, /*decltype(_impl_.trace_id_)*/uint64_t{0u}
|
, /*decltype(_impl_.dbname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
, /*decltype(_impl_.span_id_)*/uint64_t{0u}
|
|
||||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||||
struct RegionRequestHeaderDefaultTypeInternal {
|
struct RegionRequestHeaderDefaultTypeInternal {
|
||||||
PROTOBUF_CONSTEXPR RegionRequestHeaderDefaultTypeInternal()
|
PROTOBUF_CONSTEXPR RegionRequestHeaderDefaultTypeInternal()
|
||||||
@@ -344,19 +354,28 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
|
|||||||
} // namespace region
|
} // namespace region
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[23];
|
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[24];
|
||||||
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr;
|
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr;
|
||||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr;
|
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr;
|
||||||
|
|
||||||
const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse, _has_bits_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse, _internal_metadata_),
|
||||||
|
~0u, // no _extensions_
|
||||||
|
~0u, // no _oneof_case_
|
||||||
|
~0u, // no _weak_field_map_
|
||||||
|
~0u, // no _inlined_string_donated_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse, key_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse, value_),
|
||||||
|
0,
|
||||||
|
1,
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _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::region::RegionRequestHeader, _impl_.trace_id_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_.tracing_context_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_.span_id_),
|
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_.dbname_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_.dbname_),
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequest, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequest, _internal_metadata_),
|
||||||
@@ -550,32 +569,34 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
|
|||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionColumnDef, _impl_.column_id_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionColumnDef, _impl_.column_id_),
|
||||||
};
|
};
|
||||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
{ 0, -1, -1, sizeof(::greptime::v1::region::RegionRequestHeader)},
|
{ 0, 8, -1, sizeof(::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse)},
|
||||||
{ 9, -1, -1, sizeof(::greptime::v1::region::RegionRequest)},
|
{ 10, -1, -1, sizeof(::greptime::v1::region::RegionRequestHeader)},
|
||||||
{ 27, -1, -1, sizeof(::greptime::v1::region::RegionResponse)},
|
{ 18, -1, -1, sizeof(::greptime::v1::region::RegionRequest)},
|
||||||
{ 35, -1, -1, sizeof(::greptime::v1::region::InsertRequests)},
|
{ 36, -1, -1, sizeof(::greptime::v1::region::RegionResponse)},
|
||||||
{ 42, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)},
|
{ 44, -1, -1, sizeof(::greptime::v1::region::InsertRequests)},
|
||||||
{ 49, -1, -1, sizeof(::greptime::v1::region::InsertRequest)},
|
{ 51, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)},
|
||||||
{ 57, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
|
{ 58, -1, -1, sizeof(::greptime::v1::region::InsertRequest)},
|
||||||
{ 65, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
|
{ 66, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
|
||||||
{ 74, 82, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
|
{ 74, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
|
||||||
{ 84, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
|
{ 83, 91, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
|
||||||
{ 96, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
|
{ 93, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
|
||||||
{ 103, 111, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
|
{ 105, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
|
||||||
{ 113, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
|
{ 112, 120, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
|
||||||
{ 123, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
{ 122, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
|
||||||
{ 130, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
{ 132, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
||||||
{ 141, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
{ 139, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
||||||
{ 148, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
{ 150, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
||||||
{ 155, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
{ 157, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
||||||
{ 163, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
{ 164, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
||||||
{ 170, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
{ 172, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
||||||
{ 177, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
{ 179, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||||
{ 184, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
{ 186, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||||
{ 191, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
{ 193, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
||||||
|
{ 200, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
|
&::greptime::v1::region::_RegionRequestHeader_TracingContextEntry_DoNotUse_default_instance_._instance,
|
||||||
&::greptime::v1::region::_RegionRequestHeader_default_instance_._instance,
|
&::greptime::v1::region::_RegionRequestHeader_default_instance_._instance,
|
||||||
&::greptime::v1::region::_RegionRequest_default_instance_._instance,
|
&::greptime::v1::region::_RegionRequest_default_instance_._instance,
|
||||||
&::greptime::v1::region::_RegionResponse_default_instance_._instance,
|
&::greptime::v1::region::_RegionResponse_default_instance_._instance,
|
||||||
@@ -605,69 +626,72 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
|
|||||||
"\n\037greptime/v1/region/server.proto\022\022grept"
|
"\n\037greptime/v1/region/server.proto\022\022grept"
|
||||||
"ime.v1.region\032\030greptime/v1/common.proto\032"
|
"ime.v1.region\032\030greptime/v1/common.proto\032"
|
||||||
"\025greptime/v1/row.proto\032\025greptime/v1/ddl."
|
"\025greptime/v1/row.proto\032\025greptime/v1/ddl."
|
||||||
"proto\"H\n\023RegionRequestHeader\022\020\n\010trace_id"
|
"proto\"\262\001\n\023RegionRequestHeader\022T\n\017tracing"
|
||||||
"\030\001 \001(\004\022\017\n\007span_id\030\002 \001(\004\022\016\n\006dbname\030\003 \001(\t\""
|
"_context\030\005 \003(\0132;.greptime.v1.region.Regi"
|
||||||
"\336\004\n\rRegionRequest\0227\n\006header\030\001 \001(\0132\'.grep"
|
"onRequestHeader.TracingContextEntry\022\016\n\006d"
|
||||||
"time.v1.region.RegionRequestHeader\0225\n\007in"
|
"bname\030\003 \001(\t\0325\n\023TracingContextEntry\022\013\n\003ke"
|
||||||
"serts\030\003 \001(\0132\".greptime.v1.region.InsertR"
|
"y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\336\004\n\rRegionReq"
|
||||||
"equestsH\000\0225\n\007deletes\030\004 \001(\0132\".greptime.v1"
|
"uest\0227\n\006header\030\001 \001(\0132\'.greptime.v1.regio"
|
||||||
".region.DeleteRequestsH\000\0223\n\006create\030\005 \001(\013"
|
"n.RegionRequestHeader\0225\n\007inserts\030\003 \001(\0132\""
|
||||||
"2!.greptime.v1.region.CreateRequestH\000\022/\n"
|
".greptime.v1.region.InsertRequestsH\000\0225\n\007"
|
||||||
"\004drop\030\006 \001(\0132\037.greptime.v1.region.DropReq"
|
"deletes\030\004 \001(\0132\".greptime.v1.region.Delet"
|
||||||
"uestH\000\022/\n\004open\030\007 \001(\0132\037.greptime.v1.regio"
|
"eRequestsH\000\0223\n\006create\030\005 \001(\0132!.greptime.v"
|
||||||
"n.OpenRequestH\000\0221\n\005close\030\010 \001(\0132 .greptim"
|
"1.region.CreateRequestH\000\022/\n\004drop\030\006 \001(\0132\037"
|
||||||
"e.v1.region.CloseRequestH\000\0221\n\005alter\030\t \001("
|
".greptime.v1.region.DropRequestH\000\022/\n\004ope"
|
||||||
"\0132 .greptime.v1.region.AlterRequestH\000\0221\n"
|
"n\030\007 \001(\0132\037.greptime.v1.region.OpenRequest"
|
||||||
"\005flush\030\n \001(\0132 .greptime.v1.region.FlushR"
|
"H\000\0221\n\005close\030\010 \001(\0132 .greptime.v1.region.C"
|
||||||
"equestH\000\0225\n\007compact\030\013 \001(\0132\".greptime.v1."
|
"loseRequestH\000\0221\n\005alter\030\t \001(\0132 .greptime."
|
||||||
"region.CompactRequestH\000\0227\n\010truncate\030\014 \001("
|
"v1.region.AlterRequestH\000\0221\n\005flush\030\n \001(\0132"
|
||||||
"\0132#.greptime.v1.region.TruncateRequestH\000"
|
" .greptime.v1.region.FlushRequestH\000\0225\n\007c"
|
||||||
"B\006\n\004body\"T\n\016RegionResponse\022+\n\006header\030\001 \001"
|
"ompact\030\013 \001(\0132\".greptime.v1.region.Compac"
|
||||||
"(\0132\033.greptime.v1.ResponseHeader\022\025\n\raffec"
|
"tRequestH\000\0227\n\010truncate\030\014 \001(\0132#.greptime."
|
||||||
"ted_rows\030\002 \001(\004\"E\n\016InsertRequests\0223\n\010requ"
|
"v1.region.TruncateRequestH\000B\006\n\004body\"T\n\016R"
|
||||||
"ests\030\001 \003(\0132!.greptime.v1.region.InsertRe"
|
"egionResponse\022+\n\006header\030\001 \001(\0132\033.greptime"
|
||||||
"quest\"E\n\016DeleteRequests\0223\n\010requests\030\001 \003("
|
".v1.ResponseHeader\022\025\n\raffected_rows\030\002 \001("
|
||||||
"\0132!.greptime.v1.region.DeleteRequest\"C\n\r"
|
"\004\"E\n\016InsertRequests\0223\n\010requests\030\001 \003(\0132!."
|
||||||
"InsertRequest\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows"
|
"greptime.v1.region.InsertRequest\"E\n\016Dele"
|
||||||
"\030\002 \001(\0132\021.greptime.v1.Rows\"C\n\rDeleteReque"
|
"teRequests\0223\n\010requests\030\001 \003(\0132!.greptime."
|
||||||
"st\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.gr"
|
"v1.region.DeleteRequest\"C\n\rInsertRequest"
|
||||||
"eptime.v1.Rows\"h\n\014QueryRequest\0227\n\006header"
|
"\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.grep"
|
||||||
"\030\001 \001(\0132\'.greptime.v1.region.RegionReques"
|
"time.v1.Rows\"C\n\rDeleteRequest\022\021\n\tregion_"
|
||||||
"tHeader\022\021\n\tregion_id\030\002 \001(\004\022\014\n\004plan\030\003 \001(\014"
|
"id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Row"
|
||||||
"\"\200\002\n\rCreateRequest\022\021\n\tregion_id\030\001 \001(\004\022\016\n"
|
"s\"h\n\014QueryRequest\0227\n\006header\030\001 \001(\0132\'.grep"
|
||||||
"\006engine\030\002 \001(\t\0228\n\013column_defs\030\003 \003(\0132#.gre"
|
"time.v1.region.RegionRequestHeader\022\021\n\tre"
|
||||||
"ptime.v1.region.RegionColumnDef\022\023\n\013prima"
|
"gion_id\030\002 \001(\004\022\014\n\004plan\030\003 \001(\014\"\200\002\n\rCreateRe"
|
||||||
"ry_key\030\004 \003(\r\022\014\n\004path\030\005 \001(\t\022\?\n\007options\030\006 "
|
"quest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t"
|
||||||
"\003(\0132..greptime.v1.region.CreateRequest.O"
|
"\0228\n\013column_defs\030\003 \003(\0132#.greptime.v1.regi"
|
||||||
"ptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t"
|
"on.RegionColumnDef\022\023\n\013primary_key\030\004 \003(\r\022"
|
||||||
"\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022\021\n\tre"
|
"\014\n\004path\030\005 \001(\t\022\?\n\007options\030\006 \003(\0132..greptim"
|
||||||
"gion_id\030\001 \001(\004\"\255\001\n\013OpenRequest\022\021\n\tregion_"
|
"e.v1.region.CreateRequest.OptionsEntry\032."
|
||||||
"id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022="
|
"\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
|
||||||
"\n\007options\030\004 \003(\0132,.greptime.v1.region.Ope"
|
"(\t:\0028\001\" \n\013DropRequest\022\021\n\tregion_id\030\001 \001(\004"
|
||||||
"nRequest.OptionsEntry\032.\n\014OptionsEntry\022\013\n"
|
"\"\255\001\n\013OpenRequest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006e"
|
||||||
"\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRe"
|
"ngine\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022=\n\007options\030\004 \003"
|
||||||
"quest\022\021\n\tregion_id\030\001 \001(\004\"\261\001\n\014AlterReques"
|
"(\0132,.greptime.v1.region.OpenRequest.Opti"
|
||||||
"t\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030\002 \001("
|
"onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
|
||||||
"\0132\036.greptime.v1.region.AddColumnsH\000\0227\n\014d"
|
"\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregi"
|
||||||
"rop_columns\030\003 \001(\0132\037.greptime.v1.region.D"
|
"on_id\030\001 \001(\004\"\261\001\n\014AlterRequest\022\021\n\tregion_i"
|
||||||
"ropColumnsH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004"
|
"d\030\001 \001(\004\0225\n\013add_columns\030\002 \001(\0132\036.greptime."
|
||||||
"kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(\0132"
|
"v1.region.AddColumnsH\000\0227\n\014drop_columns\030\003"
|
||||||
"\035.greptime.v1.region.AddColumn\"C\n\013DropCo"
|
" \001(\0132\037.greptime.v1.region.DropColumnsH\000\022"
|
||||||
"lumns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime.v"
|
"\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddCo"
|
||||||
"1.region.DropColumn\"v\n\tAddColumn\0227\n\ncolu"
|
"lumns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v1"
|
||||||
"mn_def\030\001 \001(\0132#.greptime.v1.region.Region"
|
".region.AddColumn\"C\n\013DropColumns\0224\n\014drop"
|
||||||
"ColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v"
|
"_columns\030\001 \003(\0132\036.greptime.v1.region.Drop"
|
||||||
"1.AddColumnLocation\"\032\n\nDropColumn\022\014\n\004nam"
|
"Column\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132"
|
||||||
"e\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001"
|
"#.greptime.v1.region.RegionColumnDef\0220\n\010"
|
||||||
"(\004\"#\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\""
|
"location\030\003 \001(\0132\036.greptime.v1.AddColumnLo"
|
||||||
"$\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n"
|
"cation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014Fl"
|
||||||
"\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.g"
|
"ushRequest\022\021\n\tregion_id\030\001 \001(\004\"#\n\016Compact"
|
||||||
"reptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2"
|
"Request\022\021\n\tregion_id\030\001 \001(\004\"$\n\017TruncateRe"
|
||||||
"Y\n\006Region\022O\n\006Handle\022!.greptime.v1.region"
|
"quest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumn"
|
||||||
".RegionRequest\032\".greptime.v1.region.Regi"
|
"Def\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Co"
|
||||||
"onResponseB]\n\025io.greptime.v1.regionB\006Ser"
|
"lumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006"
|
||||||
"verZ<github.com/GreptimeTeam/greptime-pr"
|
"Handle\022!.greptime.v1.region.RegionReques"
|
||||||
"oto/go/greptime/v1/regionb\006proto3"
|
"t\032\".greptime.v1.region.RegionResponseB]\n"
|
||||||
|
"\025io.greptime.v1.regionB\006ServerZ<github.c"
|
||||||
|
"om/GreptimeTeam/greptime-proto/go/grepti"
|
||||||
|
"me/v1/regionb\006proto3"
|
||||||
;
|
;
|
||||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
|
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
|
||||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||||
@@ -676,9 +700,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2freg
|
|||||||
};
|
};
|
||||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
|
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
|
||||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
|
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
|
||||||
false, false, 2633, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
false, false, 2740, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||||
"greptime/v1/region/server.proto",
|
"greptime/v1/region/server.proto",
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 3, 23,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 3, 24,
|
||||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
|
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto, file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto,
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto, file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||||
file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto,
|
file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||||
@@ -695,6 +719,20 @@ namespace region {
|
|||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
|
RegionRequestHeader_TracingContextEntry_DoNotUse::RegionRequestHeader_TracingContextEntry_DoNotUse() {}
|
||||||
|
RegionRequestHeader_TracingContextEntry_DoNotUse::RegionRequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
||||||
|
: SuperType(arena) {}
|
||||||
|
void RegionRequestHeader_TracingContextEntry_DoNotUse::MergeFrom(const RegionRequestHeader_TracingContextEntry_DoNotUse& other) {
|
||||||
|
MergeFromInternal(other);
|
||||||
|
}
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata RegionRequestHeader_TracingContextEntry_DoNotUse::GetMetadata() const {
|
||||||
|
return ::_pbi::AssignDescriptors(
|
||||||
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[0]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===================================================================
|
||||||
|
|
||||||
class RegionRequestHeader::_Internal {
|
class RegionRequestHeader::_Internal {
|
||||||
public:
|
public:
|
||||||
};
|
};
|
||||||
@@ -703,18 +741,21 @@ RegionRequestHeader::RegionRequestHeader(::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) {
|
||||||
SharedCtor(arena, is_message_owned);
|
SharedCtor(arena, is_message_owned);
|
||||||
|
if (arena != nullptr && !is_message_owned) {
|
||||||
|
arena->OwnCustomDestructor(this, &RegionRequestHeader::ArenaDtor);
|
||||||
|
}
|
||||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.region.RegionRequestHeader)
|
// @@protoc_insertion_point(arena_constructor:greptime.v1.region.RegionRequestHeader)
|
||||||
}
|
}
|
||||||
RegionRequestHeader::RegionRequestHeader(const RegionRequestHeader& from)
|
RegionRequestHeader::RegionRequestHeader(const RegionRequestHeader& from)
|
||||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||||
RegionRequestHeader* const _this = this; (void)_this;
|
RegionRequestHeader* const _this = this; (void)_this;
|
||||||
new (&_impl_) Impl_{
|
new (&_impl_) Impl_{
|
||||||
decltype(_impl_.dbname_){}
|
/*decltype(_impl_.tracing_context_)*/{}
|
||||||
, decltype(_impl_.trace_id_){}
|
, decltype(_impl_.dbname_){}
|
||||||
, decltype(_impl_.span_id_){}
|
|
||||||
, /*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_);
|
||||||
|
_this->_impl_.tracing_context_.MergeFrom(from._impl_.tracing_context_);
|
||||||
_impl_.dbname_.InitDefault();
|
_impl_.dbname_.InitDefault();
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.dbname_.Set("", GetArenaForAllocation());
|
_impl_.dbname_.Set("", GetArenaForAllocation());
|
||||||
@@ -723,9 +764,6 @@ RegionRequestHeader::RegionRequestHeader(const RegionRequestHeader& from)
|
|||||||
_this->_impl_.dbname_.Set(from._internal_dbname(),
|
_this->_impl_.dbname_.Set(from._internal_dbname(),
|
||||||
_this->GetArenaForAllocation());
|
_this->GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
::memcpy(&_impl_.trace_id_, &from._impl_.trace_id_,
|
|
||||||
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.span_id_) -
|
|
||||||
reinterpret_cast<char*>(&_impl_.trace_id_)) + sizeof(_impl_.span_id_));
|
|
||||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.RegionRequestHeader)
|
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.RegionRequestHeader)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -734,9 +772,8 @@ inline void RegionRequestHeader::SharedCtor(
|
|||||||
(void)arena;
|
(void)arena;
|
||||||
(void)is_message_owned;
|
(void)is_message_owned;
|
||||||
new (&_impl_) Impl_{
|
new (&_impl_) Impl_{
|
||||||
decltype(_impl_.dbname_){}
|
/*decltype(_impl_.tracing_context_)*/{::_pbi::ArenaInitialized(), arena}
|
||||||
, decltype(_impl_.trace_id_){uint64_t{0u}}
|
, decltype(_impl_.dbname_){}
|
||||||
, decltype(_impl_.span_id_){uint64_t{0u}}
|
|
||||||
, /*decltype(_impl_._cached_size_)*/{}
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
};
|
};
|
||||||
_impl_.dbname_.InitDefault();
|
_impl_.dbname_.InitDefault();
|
||||||
@@ -749,6 +786,7 @@ RegionRequestHeader::~RegionRequestHeader() {
|
|||||||
// @@protoc_insertion_point(destructor:greptime.v1.region.RegionRequestHeader)
|
// @@protoc_insertion_point(destructor:greptime.v1.region.RegionRequestHeader)
|
||||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||||
(void)arena;
|
(void)arena;
|
||||||
|
ArenaDtor(this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SharedDtor();
|
SharedDtor();
|
||||||
@@ -756,9 +794,15 @@ RegionRequestHeader::~RegionRequestHeader() {
|
|||||||
|
|
||||||
inline void RegionRequestHeader::SharedDtor() {
|
inline void RegionRequestHeader::SharedDtor() {
|
||||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||||
|
_impl_.tracing_context_.Destruct();
|
||||||
|
_impl_.tracing_context_.~MapField();
|
||||||
_impl_.dbname_.Destroy();
|
_impl_.dbname_.Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RegionRequestHeader::ArenaDtor(void* object) {
|
||||||
|
RegionRequestHeader* _this = reinterpret_cast< RegionRequestHeader* >(object);
|
||||||
|
_this->_impl_.tracing_context_.Destruct();
|
||||||
|
}
|
||||||
void RegionRequestHeader::SetCachedSize(int size) const {
|
void RegionRequestHeader::SetCachedSize(int size) const {
|
||||||
_impl_._cached_size_.Set(size);
|
_impl_._cached_size_.Set(size);
|
||||||
}
|
}
|
||||||
@@ -769,10 +813,8 @@ void RegionRequestHeader::Clear() {
|
|||||||
// Prevent compiler warnings about cached_has_bits being unused
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
_impl_.tracing_context_.Clear();
|
||||||
_impl_.dbname_.ClearToEmpty();
|
_impl_.dbname_.ClearToEmpty();
|
||||||
::memset(&_impl_.trace_id_, 0, static_cast<size_t>(
|
|
||||||
reinterpret_cast<char*>(&_impl_.span_id_) -
|
|
||||||
reinterpret_cast<char*>(&_impl_.trace_id_)) + sizeof(_impl_.span_id_));
|
|
||||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -782,22 +824,6 @@ const char* RegionRequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseCo
|
|||||||
uint32_t tag;
|
uint32_t tag;
|
||||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||||
switch (tag >> 3) {
|
switch (tag >> 3) {
|
||||||
// uint64 trace_id = 1;
|
|
||||||
case 1:
|
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
|
||||||
_impl_.trace_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
||||||
CHK_(ptr);
|
|
||||||
} else
|
|
||||||
goto handle_unusual;
|
|
||||||
continue;
|
|
||||||
// uint64 span_id = 2;
|
|
||||||
case 2:
|
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
|
||||||
_impl_.span_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
||||||
CHK_(ptr);
|
|
||||||
} else
|
|
||||||
goto handle_unusual;
|
|
||||||
continue;
|
|
||||||
// string dbname = 3;
|
// string dbname = 3;
|
||||||
case 3:
|
case 3:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
||||||
@@ -808,6 +834,19 @@ const char* RegionRequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseCo
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
|
// map<string, string> tracing_context = 5;
|
||||||
|
case 5:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
|
||||||
|
ptr -= 1;
|
||||||
|
do {
|
||||||
|
ptr += 1;
|
||||||
|
ptr = ctx->ParseMessage(&_impl_.tracing_context_, ptr);
|
||||||
|
CHK_(ptr);
|
||||||
|
if (!ctx->DataAvailable(ptr)) break;
|
||||||
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
default:
|
default:
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
} // switch
|
} // switch
|
||||||
@@ -837,18 +876,6 @@ uint8_t* RegionRequestHeader::_InternalSerialize(
|
|||||||
uint32_t cached_has_bits = 0;
|
uint32_t cached_has_bits = 0;
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
// uint64 trace_id = 1;
|
|
||||||
if (this->_internal_trace_id() != 0) {
|
|
||||||
target = stream->EnsureSpace(target);
|
|
||||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_trace_id(), target);
|
|
||||||
}
|
|
||||||
|
|
||||||
// uint64 span_id = 2;
|
|
||||||
if (this->_internal_span_id() != 0) {
|
|
||||||
target = stream->EnsureSpace(target);
|
|
||||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_span_id(), target);
|
|
||||||
}
|
|
||||||
|
|
||||||
// string dbname = 3;
|
// string dbname = 3;
|
||||||
if (!this->_internal_dbname().empty()) {
|
if (!this->_internal_dbname().empty()) {
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
@@ -859,6 +886,36 @@ uint8_t* RegionRequestHeader::_InternalSerialize(
|
|||||||
3, this->_internal_dbname(), target);
|
3, this->_internal_dbname(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// map<string, string> tracing_context = 5;
|
||||||
|
if (!this->_internal_tracing_context().empty()) {
|
||||||
|
using MapType = ::_pb::Map<std::string, std::string>;
|
||||||
|
using WireHelper = RegionRequestHeader_TracingContextEntry_DoNotUse::Funcs;
|
||||||
|
const auto& map_field = this->_internal_tracing_context();
|
||||||
|
auto check_utf8 = [](const MapType::value_type& entry) {
|
||||||
|
(void)entry;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
|
entry.first.data(), static_cast<int>(entry.first.length()),
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
|
"greptime.v1.region.RegionRequestHeader.TracingContextEntry.key");
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
|
entry.second.data(), static_cast<int>(entry.second.length()),
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
|
"greptime.v1.region.RegionRequestHeader.TracingContextEntry.value");
|
||||||
|
};
|
||||||
|
|
||||||
|
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
|
||||||
|
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
|
||||||
|
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
|
||||||
|
check_utf8(entry);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
for (const auto& entry : map_field) {
|
||||||
|
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
|
||||||
|
check_utf8(entry);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
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);
|
||||||
@@ -875,6 +932,15 @@ size_t RegionRequestHeader::ByteSizeLong() const {
|
|||||||
// Prevent compiler warnings about cached_has_bits being unused
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
// map<string, string> tracing_context = 5;
|
||||||
|
total_size += 1 *
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_tracing_context_size());
|
||||||
|
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
|
||||||
|
it = this->_internal_tracing_context().begin();
|
||||||
|
it != this->_internal_tracing_context().end(); ++it) {
|
||||||
|
total_size += RegionRequestHeader_TracingContextEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
|
||||||
|
}
|
||||||
|
|
||||||
// string dbname = 3;
|
// string dbname = 3;
|
||||||
if (!this->_internal_dbname().empty()) {
|
if (!this->_internal_dbname().empty()) {
|
||||||
total_size += 1 +
|
total_size += 1 +
|
||||||
@@ -882,16 +948,6 @@ size_t RegionRequestHeader::ByteSizeLong() const {
|
|||||||
this->_internal_dbname());
|
this->_internal_dbname());
|
||||||
}
|
}
|
||||||
|
|
||||||
// uint64 trace_id = 1;
|
|
||||||
if (this->_internal_trace_id() != 0) {
|
|
||||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_trace_id());
|
|
||||||
}
|
|
||||||
|
|
||||||
// uint64 span_id = 2;
|
|
||||||
if (this->_internal_span_id() != 0) {
|
|
||||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_span_id());
|
|
||||||
}
|
|
||||||
|
|
||||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -910,15 +966,10 @@ void RegionRequestHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co
|
|||||||
uint32_t cached_has_bits = 0;
|
uint32_t cached_has_bits = 0;
|
||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
_this->_impl_.tracing_context_.MergeFrom(from._impl_.tracing_context_);
|
||||||
if (!from._internal_dbname().empty()) {
|
if (!from._internal_dbname().empty()) {
|
||||||
_this->_internal_set_dbname(from._internal_dbname());
|
_this->_internal_set_dbname(from._internal_dbname());
|
||||||
}
|
}
|
||||||
if (from._internal_trace_id() != 0) {
|
|
||||||
_this->_internal_set_trace_id(from._internal_trace_id());
|
|
||||||
}
|
|
||||||
if (from._internal_span_id() != 0) {
|
|
||||||
_this->_internal_set_span_id(from._internal_span_id());
|
|
||||||
}
|
|
||||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -938,22 +989,17 @@ void RegionRequestHeader::InternalSwap(RegionRequestHeader* other) {
|
|||||||
auto* lhs_arena = GetArenaForAllocation();
|
auto* lhs_arena = GetArenaForAllocation();
|
||||||
auto* rhs_arena = other->GetArenaForAllocation();
|
auto* rhs_arena = other->GetArenaForAllocation();
|
||||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||||
|
_impl_.tracing_context_.InternalSwap(&other->_impl_.tracing_context_);
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||||
&_impl_.dbname_, lhs_arena,
|
&_impl_.dbname_, lhs_arena,
|
||||||
&other->_impl_.dbname_, rhs_arena
|
&other->_impl_.dbname_, rhs_arena
|
||||||
);
|
);
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
||||||
PROTOBUF_FIELD_OFFSET(RegionRequestHeader, _impl_.span_id_)
|
|
||||||
+ sizeof(RegionRequestHeader::_impl_.span_id_)
|
|
||||||
- PROTOBUF_FIELD_OFFSET(RegionRequestHeader, _impl_.trace_id_)>(
|
|
||||||
reinterpret_cast<char*>(&_impl_.trace_id_),
|
|
||||||
reinterpret_cast<char*>(&other->_impl_.trace_id_));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
::PROTOBUF_NAMESPACE_ID::Metadata RegionRequestHeader::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata RegionRequestHeader::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[0]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -1764,7 +1810,7 @@ void RegionRequest::InternalSwap(RegionRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata RegionRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata RegionRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[1]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -1994,7 +2040,7 @@ void RegionResponse::InternalSwap(RegionResponse* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata RegionResponse::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata RegionResponse::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[2]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2179,7 +2225,7 @@ void InsertRequests::InternalSwap(InsertRequests* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequests::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequests::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[3]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[4]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2364,7 +2410,7 @@ void DeleteRequests::InternalSwap(DeleteRequests* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequests::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequests::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[4]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[5]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2594,7 +2640,7 @@ void InsertRequest::InternalSwap(InsertRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[5]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[6]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2824,7 +2870,7 @@ void DeleteRequest::InternalSwap(DeleteRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[6]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[7]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -3095,7 +3141,7 @@ void QueryRequest::InternalSwap(QueryRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata QueryRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata QueryRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[7]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[8]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -3109,7 +3155,7 @@ void CreateRequest_OptionsEntry_DoNotUse::MergeFrom(const CreateRequest_OptionsE
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest_OptionsEntry_DoNotUse::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest_OptionsEntry_DoNotUse::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[8]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[9]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -3533,7 +3579,7 @@ void CreateRequest::InternalSwap(CreateRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[9]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[10]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -3711,7 +3757,7 @@ void DropRequest::InternalSwap(DropRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata DropRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata DropRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[10]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[11]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -3725,7 +3771,7 @@ void OpenRequest_OptionsEntry_DoNotUse::MergeFrom(const OpenRequest_OptionsEntry
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata OpenRequest_OptionsEntry_DoNotUse::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata OpenRequest_OptionsEntry_DoNotUse::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[11]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[12]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -4073,7 +4119,7 @@ void OpenRequest::InternalSwap(OpenRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata OpenRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata OpenRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[12]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[13]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -4251,7 +4297,7 @@ void CloseRequest::InternalSwap(CloseRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata CloseRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata CloseRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[13]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[14]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -4616,7 +4662,7 @@ void AlterRequest::InternalSwap(AlterRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata AlterRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata AlterRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[14]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[15]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -4801,7 +4847,7 @@ void AddColumns::InternalSwap(AddColumns* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata AddColumns::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata AddColumns::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[15]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[16]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -4986,7 +5032,7 @@ void DropColumns::InternalSwap(DropColumns* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[16]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[17]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -5231,7 +5277,7 @@ void AddColumn::InternalSwap(AddColumn* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[17]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[18]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -5434,7 +5480,7 @@ void DropColumn::InternalSwap(DropColumn* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[18]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[19]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -5612,7 +5658,7 @@ void FlushRequest::InternalSwap(FlushRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata FlushRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata FlushRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[19]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[20]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -5790,7 +5836,7 @@ void CompactRequest::InternalSwap(CompactRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata CompactRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata CompactRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[20]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[21]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -5968,7 +6014,7 @@ void TruncateRequest::InternalSwap(TruncateRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata TruncateRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata TruncateRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[21]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[22]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -6198,7 +6244,7 @@ void RegionColumnDef::InternalSwap(RegionColumnDef* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata RegionColumnDef::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata RegionColumnDef::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[22]);
|
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[23]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
@@ -6206,6 +6252,10 @@ void RegionColumnDef::InternalSwap(RegionColumnDef* other) {
|
|||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
PROTOBUF_NAMESPACE_OPEN
|
PROTOBUF_NAMESPACE_OPEN
|
||||||
|
template<> PROTOBUF_NOINLINE ::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse*
|
||||||
|
Arena::CreateMaybeMessage< ::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse >(Arena* arena) {
|
||||||
|
return Arena::CreateMessageInternal< ::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse >(arena);
|
||||||
|
}
|
||||||
template<> PROTOBUF_NOINLINE ::greptime::v1::region::RegionRequestHeader*
|
template<> PROTOBUF_NOINLINE ::greptime::v1::region::RegionRequestHeader*
|
||||||
Arena::CreateMaybeMessage< ::greptime::v1::region::RegionRequestHeader >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::region::RegionRequestHeader >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::region::RegionRequestHeader >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::region::RegionRequestHeader >(arena);
|
||||||
|
|||||||
@@ -116,6 +116,9 @@ extern RegionRequestDefaultTypeInternal _RegionRequest_default_instance_;
|
|||||||
class RegionRequestHeader;
|
class RegionRequestHeader;
|
||||||
struct RegionRequestHeaderDefaultTypeInternal;
|
struct RegionRequestHeaderDefaultTypeInternal;
|
||||||
extern RegionRequestHeaderDefaultTypeInternal _RegionRequestHeader_default_instance_;
|
extern RegionRequestHeaderDefaultTypeInternal _RegionRequestHeader_default_instance_;
|
||||||
|
class RegionRequestHeader_TracingContextEntry_DoNotUse;
|
||||||
|
struct RegionRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal;
|
||||||
|
extern RegionRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal _RegionRequestHeader_TracingContextEntry_DoNotUse_default_instance_;
|
||||||
class RegionResponse;
|
class RegionResponse;
|
||||||
struct RegionResponseDefaultTypeInternal;
|
struct RegionResponseDefaultTypeInternal;
|
||||||
extern RegionResponseDefaultTypeInternal _RegionResponse_default_instance_;
|
extern RegionResponseDefaultTypeInternal _RegionResponse_default_instance_;
|
||||||
@@ -147,6 +150,7 @@ template<> ::greptime::v1::region::QueryRequest* Arena::CreateMaybeMessage<::gre
|
|||||||
template<> ::greptime::v1::region::RegionColumnDef* Arena::CreateMaybeMessage<::greptime::v1::region::RegionColumnDef>(Arena*);
|
template<> ::greptime::v1::region::RegionColumnDef* Arena::CreateMaybeMessage<::greptime::v1::region::RegionColumnDef>(Arena*);
|
||||||
template<> ::greptime::v1::region::RegionRequest* Arena::CreateMaybeMessage<::greptime::v1::region::RegionRequest>(Arena*);
|
template<> ::greptime::v1::region::RegionRequest* Arena::CreateMaybeMessage<::greptime::v1::region::RegionRequest>(Arena*);
|
||||||
template<> ::greptime::v1::region::RegionRequestHeader* Arena::CreateMaybeMessage<::greptime::v1::region::RegionRequestHeader>(Arena*);
|
template<> ::greptime::v1::region::RegionRequestHeader* Arena::CreateMaybeMessage<::greptime::v1::region::RegionRequestHeader>(Arena*);
|
||||||
|
template<> ::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse>(Arena*);
|
||||||
template<> ::greptime::v1::region::RegionResponse* Arena::CreateMaybeMessage<::greptime::v1::region::RegionResponse>(Arena*);
|
template<> ::greptime::v1::region::RegionResponse* Arena::CreateMaybeMessage<::greptime::v1::region::RegionResponse>(Arena*);
|
||||||
template<> ::greptime::v1::region::TruncateRequest* Arena::CreateMaybeMessage<::greptime::v1::region::TruncateRequest>(Arena*);
|
template<> ::greptime::v1::region::TruncateRequest* Arena::CreateMaybeMessage<::greptime::v1::region::TruncateRequest>(Arena*);
|
||||||
PROTOBUF_NAMESPACE_CLOSE
|
PROTOBUF_NAMESPACE_CLOSE
|
||||||
@@ -156,6 +160,34 @@ namespace region {
|
|||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
|
class RegionRequestHeader_TracingContextEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<RegionRequestHeader_TracingContextEntry_DoNotUse,
|
||||||
|
std::string, std::string,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> {
|
||||||
|
public:
|
||||||
|
typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<RegionRequestHeader_TracingContextEntry_DoNotUse,
|
||||||
|
std::string, std::string,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> SuperType;
|
||||||
|
RegionRequestHeader_TracingContextEntry_DoNotUse();
|
||||||
|
explicit PROTOBUF_CONSTEXPR RegionRequestHeader_TracingContextEntry_DoNotUse(
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||||
|
explicit RegionRequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
||||||
|
void MergeFrom(const RegionRequestHeader_TracingContextEntry_DoNotUse& other);
|
||||||
|
static const RegionRequestHeader_TracingContextEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const RegionRequestHeader_TracingContextEntry_DoNotUse*>(&_RegionRequestHeader_TracingContextEntry_DoNotUse_default_instance_); }
|
||||||
|
static bool ValidateKey(std::string* s) {
|
||||||
|
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.region.RegionRequestHeader.TracingContextEntry.key");
|
||||||
|
}
|
||||||
|
static bool ValidateValue(std::string* s) {
|
||||||
|
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.region.RegionRequestHeader.TracingContextEntry.value");
|
||||||
|
}
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||||
|
friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto;
|
||||||
|
};
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
class RegionRequestHeader final :
|
class RegionRequestHeader final :
|
||||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.RegionRequestHeader) */ {
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.RegionRequestHeader) */ {
|
||||||
public:
|
public:
|
||||||
@@ -204,7 +236,7 @@ class RegionRequestHeader final :
|
|||||||
&_RegionRequestHeader_default_instance_);
|
&_RegionRequestHeader_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
0;
|
1;
|
||||||
|
|
||||||
friend void swap(RegionRequestHeader& a, RegionRequestHeader& b) {
|
friend void swap(RegionRequestHeader& a, RegionRequestHeader& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -265,6 +297,8 @@ class RegionRequestHeader final :
|
|||||||
protected:
|
protected:
|
||||||
explicit RegionRequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
explicit RegionRequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||||
bool is_message_owned = false);
|
bool is_message_owned = false);
|
||||||
|
private:
|
||||||
|
static void ArenaDtor(void* object);
|
||||||
public:
|
public:
|
||||||
|
|
||||||
static const ClassData _class_data_;
|
static const ClassData _class_data_;
|
||||||
@@ -274,13 +308,30 @@ class RegionRequestHeader final :
|
|||||||
|
|
||||||
// nested types ----------------------------------------------------
|
// nested types ----------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// accessors -------------------------------------------------------
|
// accessors -------------------------------------------------------
|
||||||
|
|
||||||
enum : int {
|
enum : int {
|
||||||
|
kTracingContextFieldNumber = 5,
|
||||||
kDbnameFieldNumber = 3,
|
kDbnameFieldNumber = 3,
|
||||||
kTraceIdFieldNumber = 1,
|
|
||||||
kSpanIdFieldNumber = 2,
|
|
||||||
};
|
};
|
||||||
|
// map<string, string> tracing_context = 5;
|
||||||
|
int tracing_context_size() const;
|
||||||
|
private:
|
||||||
|
int _internal_tracing_context_size() const;
|
||||||
|
public:
|
||||||
|
void clear_tracing_context();
|
||||||
|
private:
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||||
|
_internal_tracing_context() const;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||||
|
_internal_mutable_tracing_context();
|
||||||
|
public:
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||||
|
tracing_context() const;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||||
|
mutable_tracing_context();
|
||||||
|
|
||||||
// string dbname = 3;
|
// string dbname = 3;
|
||||||
void clear_dbname();
|
void clear_dbname();
|
||||||
const std::string& dbname() const;
|
const std::string& dbname() const;
|
||||||
@@ -295,24 +346,6 @@ class RegionRequestHeader final :
|
|||||||
std::string* _internal_mutable_dbname();
|
std::string* _internal_mutable_dbname();
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// uint64 trace_id = 1;
|
|
||||||
void clear_trace_id();
|
|
||||||
uint64_t trace_id() const;
|
|
||||||
void set_trace_id(uint64_t value);
|
|
||||||
private:
|
|
||||||
uint64_t _internal_trace_id() const;
|
|
||||||
void _internal_set_trace_id(uint64_t value);
|
|
||||||
public:
|
|
||||||
|
|
||||||
// uint64 span_id = 2;
|
|
||||||
void clear_span_id();
|
|
||||||
uint64_t span_id() const;
|
|
||||||
void set_span_id(uint64_t value);
|
|
||||||
private:
|
|
||||||
uint64_t _internal_span_id() const;
|
|
||||||
void _internal_set_span_id(uint64_t value);
|
|
||||||
public:
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:greptime.v1.region.RegionRequestHeader)
|
// @@protoc_insertion_point(class_scope:greptime.v1.region.RegionRequestHeader)
|
||||||
private:
|
private:
|
||||||
class _Internal;
|
class _Internal;
|
||||||
@@ -321,9 +354,12 @@ class RegionRequestHeader final :
|
|||||||
typedef void InternalArenaConstructable_;
|
typedef void InternalArenaConstructable_;
|
||||||
typedef void DestructorSkippable_;
|
typedef void DestructorSkippable_;
|
||||||
struct Impl_ {
|
struct Impl_ {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::MapField<
|
||||||
|
RegionRequestHeader_TracingContextEntry_DoNotUse,
|
||||||
|
std::string, std::string,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> tracing_context_;
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbname_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbname_;
|
||||||
uint64_t trace_id_;
|
|
||||||
uint64_t span_id_;
|
|
||||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
};
|
};
|
||||||
union { Impl_ _impl_; };
|
union { Impl_ _impl_; };
|
||||||
@@ -393,7 +429,7 @@ class RegionRequest final :
|
|||||||
&_RegionRequest_default_instance_);
|
&_RegionRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
1;
|
2;
|
||||||
|
|
||||||
friend void swap(RegionRequest& a, RegionRequest& b) {
|
friend void swap(RegionRequest& a, RegionRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -771,7 +807,7 @@ class RegionResponse final :
|
|||||||
&_RegionResponse_default_instance_);
|
&_RegionResponse_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
2;
|
3;
|
||||||
|
|
||||||
friend void swap(RegionResponse& a, RegionResponse& b) {
|
friend void swap(RegionResponse& a, RegionResponse& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -939,7 +975,7 @@ class InsertRequests final :
|
|||||||
&_InsertRequests_default_instance_);
|
&_InsertRequests_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
3;
|
4;
|
||||||
|
|
||||||
friend void swap(InsertRequests& a, InsertRequests& b) {
|
friend void swap(InsertRequests& a, InsertRequests& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1096,7 +1132,7 @@ class DeleteRequests final :
|
|||||||
&_DeleteRequests_default_instance_);
|
&_DeleteRequests_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
4;
|
5;
|
||||||
|
|
||||||
friend void swap(DeleteRequests& a, DeleteRequests& b) {
|
friend void swap(DeleteRequests& a, DeleteRequests& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1253,7 +1289,7 @@ class InsertRequest final :
|
|||||||
&_InsertRequest_default_instance_);
|
&_InsertRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
5;
|
6;
|
||||||
|
|
||||||
friend void swap(InsertRequest& a, InsertRequest& b) {
|
friend void swap(InsertRequest& a, InsertRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1421,7 +1457,7 @@ class DeleteRequest final :
|
|||||||
&_DeleteRequest_default_instance_);
|
&_DeleteRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
6;
|
7;
|
||||||
|
|
||||||
friend void swap(DeleteRequest& a, DeleteRequest& b) {
|
friend void swap(DeleteRequest& a, DeleteRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1589,7 +1625,7 @@ class QueryRequest final :
|
|||||||
&_QueryRequest_default_instance_);
|
&_QueryRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
7;
|
8;
|
||||||
|
|
||||||
friend void swap(QueryRequest& a, QueryRequest& b) {
|
friend void swap(QueryRequest& a, QueryRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1801,7 +1837,7 @@ class CreateRequest final :
|
|||||||
&_CreateRequest_default_instance_);
|
&_CreateRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
9;
|
10;
|
||||||
|
|
||||||
friend void swap(CreateRequest& a, CreateRequest& b) {
|
friend void swap(CreateRequest& a, CreateRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2052,7 +2088,7 @@ class DropRequest final :
|
|||||||
&_DropRequest_default_instance_);
|
&_DropRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
10;
|
11;
|
||||||
|
|
||||||
friend void swap(DropRequest& a, DropRequest& b) {
|
friend void swap(DropRequest& a, DropRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2228,7 +2264,7 @@ class OpenRequest final :
|
|||||||
&_OpenRequest_default_instance_);
|
&_OpenRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
12;
|
13;
|
||||||
|
|
||||||
friend void swap(OpenRequest& a, OpenRequest& b) {
|
friend void swap(OpenRequest& a, OpenRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2434,7 +2470,7 @@ class CloseRequest final :
|
|||||||
&_CloseRequest_default_instance_);
|
&_CloseRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
13;
|
14;
|
||||||
|
|
||||||
friend void swap(CloseRequest& a, CloseRequest& b) {
|
friend void swap(CloseRequest& a, CloseRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2588,7 +2624,7 @@ class AlterRequest final :
|
|||||||
&_AlterRequest_default_instance_);
|
&_AlterRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
14;
|
15;
|
||||||
|
|
||||||
friend void swap(AlterRequest& a, AlterRequest& b) {
|
friend void swap(AlterRequest& a, AlterRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2800,7 +2836,7 @@ class AddColumns final :
|
|||||||
&_AddColumns_default_instance_);
|
&_AddColumns_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
15;
|
16;
|
||||||
|
|
||||||
friend void swap(AddColumns& a, AddColumns& b) {
|
friend void swap(AddColumns& a, AddColumns& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2957,7 +2993,7 @@ class DropColumns final :
|
|||||||
&_DropColumns_default_instance_);
|
&_DropColumns_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
16;
|
17;
|
||||||
|
|
||||||
friend void swap(DropColumns& a, DropColumns& b) {
|
friend void swap(DropColumns& a, DropColumns& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -3114,7 +3150,7 @@ class AddColumn final :
|
|||||||
&_AddColumn_default_instance_);
|
&_AddColumn_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
17;
|
18;
|
||||||
|
|
||||||
friend void swap(AddColumn& a, AddColumn& b) {
|
friend void swap(AddColumn& a, AddColumn& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -3291,7 +3327,7 @@ class DropColumn final :
|
|||||||
&_DropColumn_default_instance_);
|
&_DropColumn_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
18;
|
19;
|
||||||
|
|
||||||
friend void swap(DropColumn& a, DropColumn& b) {
|
friend void swap(DropColumn& a, DropColumn& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -3444,7 +3480,7 @@ class FlushRequest final :
|
|||||||
&_FlushRequest_default_instance_);
|
&_FlushRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
19;
|
20;
|
||||||
|
|
||||||
friend void swap(FlushRequest& a, FlushRequest& b) {
|
friend void swap(FlushRequest& a, FlushRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -3592,7 +3628,7 @@ class CompactRequest final :
|
|||||||
&_CompactRequest_default_instance_);
|
&_CompactRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
20;
|
21;
|
||||||
|
|
||||||
friend void swap(CompactRequest& a, CompactRequest& b) {
|
friend void swap(CompactRequest& a, CompactRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -3740,7 +3776,7 @@ class TruncateRequest final :
|
|||||||
&_TruncateRequest_default_instance_);
|
&_TruncateRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
21;
|
22;
|
||||||
|
|
||||||
friend void swap(TruncateRequest& a, TruncateRequest& b) {
|
friend void swap(TruncateRequest& a, TruncateRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -3888,7 +3924,7 @@ class RegionColumnDef final :
|
|||||||
&_RegionColumnDef_default_instance_);
|
&_RegionColumnDef_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
22;
|
23;
|
||||||
|
|
||||||
friend void swap(RegionColumnDef& a, RegionColumnDef& b) {
|
friend void swap(RegionColumnDef& a, RegionColumnDef& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -4015,46 +4051,37 @@ class RegionColumnDef final :
|
|||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||||
#endif // __GNUC__
|
#endif // __GNUC__
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
// RegionRequestHeader
|
// RegionRequestHeader
|
||||||
|
|
||||||
// uint64 trace_id = 1;
|
// map<string, string> tracing_context = 5;
|
||||||
inline void RegionRequestHeader::clear_trace_id() {
|
inline int RegionRequestHeader::_internal_tracing_context_size() const {
|
||||||
_impl_.trace_id_ = uint64_t{0u};
|
return _impl_.tracing_context_.size();
|
||||||
}
|
}
|
||||||
inline uint64_t RegionRequestHeader::_internal_trace_id() const {
|
inline int RegionRequestHeader::tracing_context_size() const {
|
||||||
return _impl_.trace_id_;
|
return _internal_tracing_context_size();
|
||||||
}
|
}
|
||||||
inline uint64_t RegionRequestHeader::trace_id() const {
|
inline void RegionRequestHeader::clear_tracing_context() {
|
||||||
// @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequestHeader.trace_id)
|
_impl_.tracing_context_.Clear();
|
||||||
return _internal_trace_id();
|
|
||||||
}
|
}
|
||||||
inline void RegionRequestHeader::_internal_set_trace_id(uint64_t value) {
|
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||||
|
RegionRequestHeader::_internal_tracing_context() const {
|
||||||
_impl_.trace_id_ = value;
|
return _impl_.tracing_context_.GetMap();
|
||||||
}
|
}
|
||||||
inline void RegionRequestHeader::set_trace_id(uint64_t value) {
|
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||||
_internal_set_trace_id(value);
|
RegionRequestHeader::tracing_context() const {
|
||||||
// @@protoc_insertion_point(field_set:greptime.v1.region.RegionRequestHeader.trace_id)
|
// @@protoc_insertion_point(field_map:greptime.v1.region.RegionRequestHeader.tracing_context)
|
||||||
|
return _internal_tracing_context();
|
||||||
}
|
}
|
||||||
|
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||||
// uint64 span_id = 2;
|
RegionRequestHeader::_internal_mutable_tracing_context() {
|
||||||
inline void RegionRequestHeader::clear_span_id() {
|
return _impl_.tracing_context_.MutableMap();
|
||||||
_impl_.span_id_ = uint64_t{0u};
|
|
||||||
}
|
}
|
||||||
inline uint64_t RegionRequestHeader::_internal_span_id() const {
|
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||||
return _impl_.span_id_;
|
RegionRequestHeader::mutable_tracing_context() {
|
||||||
}
|
// @@protoc_insertion_point(field_mutable_map:greptime.v1.region.RegionRequestHeader.tracing_context)
|
||||||
inline uint64_t RegionRequestHeader::span_id() const {
|
return _internal_mutable_tracing_context();
|
||||||
// @@protoc_insertion_point(field_get:greptime.v1.region.RegionRequestHeader.span_id)
|
|
||||||
return _internal_span_id();
|
|
||||||
}
|
|
||||||
inline void RegionRequestHeader::_internal_set_span_id(uint64_t value) {
|
|
||||||
|
|
||||||
_impl_.span_id_ = value;
|
|
||||||
}
|
|
||||||
inline void RegionRequestHeader::set_span_id(uint64_t value) {
|
|
||||||
_internal_set_span_id(value);
|
|
||||||
// @@protoc_insertion_point(field_set:greptime.v1.region.RegionRequestHeader.span_id)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// string dbname = 3;
|
// string dbname = 3;
|
||||||
@@ -6724,6 +6751,8 @@ inline void RegionColumnDef::set_column_id(uint32_t value) {
|
|||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
|
|
||||||
|
|||||||
+109
-109
@@ -226,10 +226,9 @@ type RequestHeader struct {
|
|||||||
Authorization *AuthHeader `protobuf:"bytes,3,opt,name=authorization,proto3" json:"authorization,omitempty"`
|
Authorization *AuthHeader `protobuf:"bytes,3,opt,name=authorization,proto3" json:"authorization,omitempty"`
|
||||||
// The `dbname` for the request
|
// The `dbname` for the request
|
||||||
Dbname string `protobuf:"bytes,4,opt,name=dbname,proto3" json:"dbname,omitempty"`
|
Dbname string `protobuf:"bytes,4,opt,name=dbname,proto3" json:"dbname,omitempty"`
|
||||||
// TraceID of request
|
// Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
TraceId uint64 `protobuf:"varint,5,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
|
// https://www.w3.org/TR/trace-context/#header-name
|
||||||
// SpanID of request
|
TracingContext map[string]string `protobuf:"bytes,5,rep,name=tracing_context,json=tracingContext,proto3" json:"tracing_context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||||
SpanId uint64 `protobuf:"varint,6,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RequestHeader) Reset() {
|
func (x *RequestHeader) Reset() {
|
||||||
@@ -292,18 +291,11 @@ func (x *RequestHeader) GetDbname() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RequestHeader) GetTraceId() uint64 {
|
func (x *RequestHeader) GetTracingContext() map[string]string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.TraceId
|
return x.TracingContext
|
||||||
}
|
}
|
||||||
return 0
|
return nil
|
||||||
}
|
|
||||||
|
|
||||||
func (x *RequestHeader) GetSpanId() uint64 {
|
|
||||||
if x != nil {
|
|
||||||
return x.SpanId
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ResponseHeader struct {
|
type ResponseHeader struct {
|
||||||
@@ -754,7 +746,7 @@ var File_greptime_v1_common_proto protoreflect.FileDescriptor
|
|||||||
var file_greptime_v1_common_proto_rawDesc = []byte{
|
var file_greptime_v1_common_proto_rawDesc = []byte{
|
||||||
0x0a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f,
|
0x0a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f,
|
||||||
0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70,
|
0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70,
|
||||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x22, 0xcc, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75,
|
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x22, 0xb4, 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75,
|
||||||
0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x61, 0x74,
|
0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x61, 0x74,
|
||||||
0x61, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61,
|
0x61, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61,
|
||||||
0x6c, 0x6f, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20,
|
0x6c, 0x6f, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20,
|
||||||
@@ -764,89 +756,95 @@ var file_greptime_v1_common_proto_rawDesc = []byte{
|
|||||||
0x2e, 0x41, 0x75, 0x74, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0d, 0x61, 0x75, 0x74,
|
0x2e, 0x41, 0x75, 0x74, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0d, 0x61, 0x75, 0x74,
|
||||||
0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x62,
|
0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x62,
|
||||||
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, 0x6e, 0x61,
|
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, 0x6e, 0x61,
|
||||||
0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05,
|
0x6d, 0x65, 0x12, 0x57, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f,
|
||||||
0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x17, 0x0a,
|
0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x72,
|
||||||
0x07, 0x73, 0x70, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06,
|
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||||
0x73, 0x70, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x3d, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43,
|
||||||
0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
|
0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x74, 0x72, 0x61,
|
||||||
0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x1a, 0x41, 0x0a, 0x13, 0x54,
|
||||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73,
|
0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x74,
|
||||||
0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x42, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,
|
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
|
0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
|
||||||
0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65,
|
0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d,
|
||||||
0x12, 0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||||
0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x22, 0x73, 0x0a, 0x0a, 0x41, 0x75, 0x74,
|
0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
||||||
0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x05, 0x62, 0x61, 0x73, 0x69, 0x63,
|
0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x42, 0x0a,
|
||||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x48, 0x00, 0x52, 0x05, 0x62, 0x61,
|
0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75,
|
||||||
0x73, 0x69, 0x63, 0x12, 0x2a, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01,
|
0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74,
|
||||||
0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f,
|
||||||
0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42,
|
0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73,
|
||||||
0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x22, 0x3f,
|
0x67, 0x22, 0x73, 0x0a, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
|
||||||
0x0a, 0x05, 0x42, 0x61, 0x73, 0x69, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e,
|
0x2a, 0x0a, 0x05, 0x62, 0x61, 0x73, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12,
|
||||||
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e,
|
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x73,
|
||||||
0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18,
|
0x69, 0x63, 0x48, 0x00, 0x52, 0x05, 0x62, 0x61, 0x73, 0x69, 0x63, 0x12, 0x2a, 0x0a, 0x05, 0x74,
|
||||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22,
|
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65,
|
||||||
0x1d, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65,
|
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00,
|
||||||
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x24,
|
0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f,
|
||||||
0x0a, 0x0c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x14,
|
0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x05, 0x42, 0x61, 0x73, 0x69, 0x63, 0x12,
|
||||||
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76,
|
0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x61, 0x6c, 0x75, 0x65, 0x22, 0x50, 0x0a, 0x0e, 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65,
|
0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70,
|
||||||
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3e, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74,
|
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,
|
||||||
0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
|
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x1d, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
||||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66, 0x66, 0x65,
|
0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74,
|
0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x24, 0x0a, 0x0c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74,
|
||||||
0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x22, 0x64, 0x0a, 0x14, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76,
|
0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
||||||
0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x12, 0x16,
|
0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x50, 0x0a, 0x0e,
|
||||||
0x0a, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
|
0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3e,
|
||||||
0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02,
|
0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18,
|
||||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x64, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61,
|
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||||
0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
|
0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73,
|
||||||
0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x2a, 0x31, 0x0a, 0x0c,
|
0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x22, 0x64,
|
||||||
0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03,
|
0x0a, 0x14, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44,
|
||||||
0x54, 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x01,
|
0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73,
|
||||||
0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02, 0x2a,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x12, 0x12,
|
||||||
0xa8, 0x04, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79,
|
0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x64, 0x61,
|
||||||
0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12,
|
0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
|
||||||
0x08, 0x0a, 0x04, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54,
|
0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63,
|
||||||
0x31, 0x36, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12,
|
0x6f, 0x6e, 0x64, 0x73, 0x2a, 0x31, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63,
|
||||||
0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49,
|
0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a,
|
||||||
0x4e, 0x54, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10,
|
0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45,
|
||||||
0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a,
|
0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02, 0x2a, 0xa8, 0x04, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75,
|
||||||
0x06, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f,
|
0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f,
|
||||||
0x41, 0x54, 0x33, 0x32, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36,
|
0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x54, 0x38, 0x10,
|
||||||
0x34, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12,
|
0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05,
|
||||||
0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44,
|
0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34,
|
||||||
0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d,
|
0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a,
|
||||||
0x45, 0x10, 0x0e, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50,
|
0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e,
|
||||||
0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d,
|
0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10,
|
||||||
0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f,
|
0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x09, 0x12, 0x0b,
|
||||||
0x4e, 0x44, 0x10, 0x10, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d,
|
0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x42,
|
||||||
0x50, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12,
|
0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e,
|
||||||
0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e,
|
0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x0c, 0x0a,
|
||||||
0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d,
|
0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x0e, 0x12, 0x14, 0x0a, 0x10, 0x54,
|
||||||
0x45, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49,
|
0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
|
||||||
0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14,
|
0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d,
|
||||||
0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45,
|
0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x10, 0x12, 0x19, 0x0a, 0x15,
|
||||||
0x43, 0x4f, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e,
|
0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53,
|
||||||
0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13, 0x49,
|
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x53,
|
||||||
0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f, 0x4e,
|
0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
|
||||||
0x54, 0x48, 0x10, 0x17, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c,
|
0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44,
|
||||||
0x5f, 0x44, 0x41, 0x59, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17, 0x49,
|
0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49,
|
||||||
0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44, 0x41,
|
0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45,
|
||||||
0x59, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x19, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x55, 0x52, 0x41,
|
0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x13,
|
||||||
0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1a, 0x12, 0x18, 0x0a,
|
0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e,
|
||||||
0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53,
|
0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f,
|
||||||
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1b, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54,
|
0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x17, 0x12, 0x15, 0x0a, 0x11,
|
||||||
0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
|
0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x54, 0x49, 0x4d,
|
||||||
0x1c, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x41,
|
0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f,
|
||||||
0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1d, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f,
|
0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x19,
|
||||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f,
|
0x12, 0x13, 0x0a, 0x0f, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x45, 0x43,
|
||||||
0x6d, 0x6d, 0x6f, 0x6e, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
0x4f, 0x4e, 0x44, 0x10, 0x1a, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f,
|
||||||
0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72,
|
0x4e, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1b, 0x12,
|
||||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f,
|
0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x43, 0x52,
|
||||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1c, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x55, 0x52,
|
||||||
0x74, 0x6f, 0x33,
|
0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44,
|
||||||
|
0x10, 0x1d, 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 (
|
||||||
@@ -862,7 +860,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, 9)
|
var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||||
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
|
||||||
@@ -875,18 +873,20 @@ var file_greptime_v1_common_proto_goTypes = []interface{}{
|
|||||||
(*AffectedRows)(nil), // 8: greptime.v1.AffectedRows
|
(*AffectedRows)(nil), // 8: greptime.v1.AffectedRows
|
||||||
(*FlightMetadata)(nil), // 9: greptime.v1.FlightMetadata
|
(*FlightMetadata)(nil), // 9: greptime.v1.FlightMetadata
|
||||||
(*IntervalMonthDayNano)(nil), // 10: greptime.v1.IntervalMonthDayNano
|
(*IntervalMonthDayNano)(nil), // 10: greptime.v1.IntervalMonthDayNano
|
||||||
|
nil, // 11: 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
|
||||||
4, // 1: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status
|
11, // 1: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry
|
||||||
6, // 2: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
|
4, // 2: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status
|
||||||
7, // 3: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
|
6, // 3: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
|
||||||
8, // 4: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
|
7, // 4: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
|
||||||
5, // [5:5] is the sub-list for method output_type
|
8, // 5: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
|
||||||
5, // [5:5] is the sub-list for method input_type
|
6, // [6:6] is the sub-list for method output_type
|
||||||
5, // [5:5] is the sub-list for extension type_name
|
6, // [6:6] is the sub-list for method input_type
|
||||||
5, // [5:5] is the sub-list for extension extendee
|
6, // [6:6] is the sub-list for extension type_name
|
||||||
0, // [0:5] is the sub-list for field type_name
|
6, // [6:6] is the sub-list for extension extendee
|
||||||
|
0, // [0:6] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_greptime_v1_common_proto_init() }
|
func init() { file_greptime_v1_common_proto_init() }
|
||||||
@@ -1014,7 +1014,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: 9,
|
NumMessages: 10,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -91,6 +91,9 @@ type RequestHeader struct {
|
|||||||
// member_id is the ID of the sender server.
|
// member_id is the ID of the sender server.
|
||||||
MemberId uint64 `protobuf:"varint,3,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
|
MemberId uint64 `protobuf:"varint,3,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
|
||||||
Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=greptime.v1.meta.Role" json:"role,omitempty"`
|
Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=greptime.v1.meta.Role" json:"role,omitempty"`
|
||||||
|
// Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
// https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
TracingContext map[string]string `protobuf:"bytes,5,rep,name=tracing_context,json=tracingContext,proto3" json:"tracing_context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RequestHeader) Reset() {
|
func (x *RequestHeader) Reset() {
|
||||||
@@ -153,6 +156,13 @@ func (x *RequestHeader) GetRole() Role {
|
|||||||
return Role_DATANODE
|
return Role_DATANODE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *RequestHeader) GetTracingContext() map[string]string {
|
||||||
|
if x != nil {
|
||||||
|
return x.TracingContext
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type ResponseHeader struct {
|
type ResponseHeader struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@@ -557,7 +567,7 @@ var file_greptime_v1_meta_common_proto_rawDesc = []byte{
|
|||||||
0x0a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65,
|
0x0a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65,
|
||||||
0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||||||
0x10, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
0x10, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
||||||
0x61, 0x22, 0xa2, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61,
|
0x61, 0x22, 0xc3, 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61,
|
||||||
0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f,
|
0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f,
|
||||||
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x70,
|
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x70,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d,
|
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d,
|
||||||
@@ -567,48 +577,58 @@ var file_greptime_v1_meta_common_proto_rawDesc = []byte{
|
|||||||
0x52, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x04, 0x72, 0x6f,
|
0x52, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x04, 0x72, 0x6f,
|
||||||
0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x6c, 0x65,
|
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x6c, 0x65,
|
||||||
0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x89, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x5c, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x63, 0x69, 0x6e,
|
||||||
0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f,
|
0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||||
0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,
|
0x33, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
|
||||||
0x01, 0x28, 0x04, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72,
|
0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||||
0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f,
|
0x2e, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45,
|
||||||
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65,
|
0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x74, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e,
|
||||||
0x72, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01,
|
0x74, 0x65, 0x78, 0x74, 0x1a, 0x41, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43,
|
||||||
0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
||||||
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72,
|
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
|
||||||
0x6f, 0x72, 0x22, 0x34, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63,
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
|
||||||
0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12,
|
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x89, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70,
|
||||||
0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72,
|
||||||
0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x22, 0x2a, 0x0a, 0x04, 0x50, 0x65, 0x65, 0x72,
|
0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01,
|
||||||
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64,
|
0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65,
|
||||||
0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
|
||||||
0x61, 0x64, 0x64, 0x72, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12,
|
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74,
|
||||||
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22,
|
0x65, 0x72, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20,
|
||||||
0x6e, 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c,
|
0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||||
0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
|
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72,
|
||||||
0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12,
|
0x72, 0x6f, 0x72, 0x22, 0x34, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04,
|
||||||
0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
|
0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65,
|
0x12, 0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
|
0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x22, 0x2a, 0x0a, 0x04, 0x50, 0x65, 0x65,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22,
|
0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69,
|
||||||
0x76, 0x0a, 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12,
|
0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x34, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
|
0x04, 0x61, 0x64, 0x64, 0x72, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
|
||||||
0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
|
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64,
|
||||||
0x14, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d,
|
0x22, 0x6e, 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a,
|
||||||
0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d,
|
0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
|
||||||
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x02, 0x20,
|
0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65,
|
||||||
0x01, 0x28, 0x03, 0x52, 0x12, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
||||||
0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x22, 0x32, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x56, 0x61,
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d,
|
||||||
0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
|
0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
||||||
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
|
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65,
|
||||||
0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0x22, 0x0a, 0x04, 0x52,
|
0x22, 0x76, 0x0a, 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c,
|
||||||
0x6f, 0x6c, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x4e, 0x4f, 0x44, 0x45, 0x10,
|
0x12, 0x34, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||||||
0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x52, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x44, 0x10, 0x01, 0x42,
|
0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
|
||||||
0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72,
|
0x52, 0x14, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
||||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74,
|
0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69,
|
||||||
0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65,
|
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x02,
|
||||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70,
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x22, 0x32, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x56,
|
||||||
|
0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
|
0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
||||||
|
0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0x22, 0x0a, 0x04,
|
||||||
|
0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x4e, 0x4f, 0x44, 0x45,
|
||||||
|
0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x52, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x44, 0x10, 0x01,
|
||||||
|
0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47,
|
||||||
|
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70,
|
||||||
|
0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72,
|
||||||
|
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06,
|
||||||
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -624,7 +644,7 @@ func file_greptime_v1_meta_common_proto_rawDescGZIP() []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var file_greptime_v1_meta_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
var file_greptime_v1_meta_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
var file_greptime_v1_meta_common_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
var file_greptime_v1_meta_common_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||||
var file_greptime_v1_meta_common_proto_goTypes = []interface{}{
|
var file_greptime_v1_meta_common_proto_goTypes = []interface{}{
|
||||||
(Role)(0), // 0: greptime.v1.meta.Role
|
(Role)(0), // 0: greptime.v1.meta.Role
|
||||||
(*RequestHeader)(nil), // 1: greptime.v1.meta.RequestHeader
|
(*RequestHeader)(nil), // 1: greptime.v1.meta.RequestHeader
|
||||||
@@ -635,15 +655,17 @@ var file_greptime_v1_meta_common_proto_goTypes = []interface{}{
|
|||||||
(*TableName)(nil), // 6: greptime.v1.meta.TableName
|
(*TableName)(nil), // 6: greptime.v1.meta.TableName
|
||||||
(*TimeInterval)(nil), // 7: greptime.v1.meta.TimeInterval
|
(*TimeInterval)(nil), // 7: greptime.v1.meta.TimeInterval
|
||||||
(*KeyValue)(nil), // 8: greptime.v1.meta.KeyValue
|
(*KeyValue)(nil), // 8: greptime.v1.meta.KeyValue
|
||||||
|
nil, // 9: greptime.v1.meta.RequestHeader.TracingContextEntry
|
||||||
}
|
}
|
||||||
var file_greptime_v1_meta_common_proto_depIdxs = []int32{
|
var file_greptime_v1_meta_common_proto_depIdxs = []int32{
|
||||||
0, // 0: greptime.v1.meta.RequestHeader.role:type_name -> greptime.v1.meta.Role
|
0, // 0: greptime.v1.meta.RequestHeader.role:type_name -> greptime.v1.meta.Role
|
||||||
3, // 1: greptime.v1.meta.ResponseHeader.error:type_name -> greptime.v1.meta.Error
|
9, // 1: greptime.v1.meta.RequestHeader.tracing_context:type_name -> greptime.v1.meta.RequestHeader.TracingContextEntry
|
||||||
2, // [2:2] is the sub-list for method output_type
|
3, // 2: greptime.v1.meta.ResponseHeader.error:type_name -> greptime.v1.meta.Error
|
||||||
2, // [2:2] is the sub-list for method input_type
|
3, // [3:3] is the sub-list for method output_type
|
||||||
2, // [2:2] is the sub-list for extension type_name
|
3, // [3:3] is the sub-list for method input_type
|
||||||
2, // [2:2] is the sub-list for extension extendee
|
3, // [3:3] is the sub-list for extension type_name
|
||||||
0, // [0:2] is the sub-list for field type_name
|
3, // [3:3] is the sub-list for extension extendee
|
||||||
|
0, // [0:3] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_greptime_v1_meta_common_proto_init() }
|
func init() { file_greptime_v1_meta_common_proto_init() }
|
||||||
@@ -755,7 +777,7 @@ func file_greptime_v1_meta_common_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_greptime_v1_meta_common_proto_rawDesc,
|
RawDescriptor: file_greptime_v1_meta_common_proto_rawDesc,
|
||||||
NumEnums: 1,
|
NumEnums: 1,
|
||||||
NumMessages: 8,
|
NumMessages: 9,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -162,6 +162,67 @@ public final class Common {
|
|||||||
* @return The role.
|
* @return The role.
|
||||||
*/
|
*/
|
||||||
greptime.v1.meta.Common.Role getRole();
|
greptime.v1.meta.Common.Role getRole();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
int getTracingContextCount();
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
boolean containsTracingContext(
|
||||||
|
java.lang.String key);
|
||||||
|
/**
|
||||||
|
* Use {@link #getTracingContextMap()} instead.
|
||||||
|
*/
|
||||||
|
@java.lang.Deprecated
|
||||||
|
java.util.Map<java.lang.String, java.lang.String>
|
||||||
|
getTracingContext();
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
java.util.Map<java.lang.String, java.lang.String>
|
||||||
|
getTracingContextMap();
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* nullable */
|
||||||
|
java.lang.String getTracingContextOrDefault(
|
||||||
|
java.lang.String key,
|
||||||
|
/* nullable */
|
||||||
|
java.lang.String defaultValue);
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
|
||||||
|
java.lang.String getTracingContextOrThrow(
|
||||||
|
java.lang.String key);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Protobuf type {@code greptime.v1.meta.RequestHeader}
|
* Protobuf type {@code greptime.v1.meta.RequestHeader}
|
||||||
@@ -199,6 +260,7 @@ public final class Common {
|
|||||||
if (extensionRegistry == null) {
|
if (extensionRegistry == null) {
|
||||||
throw new java.lang.NullPointerException();
|
throw new java.lang.NullPointerException();
|
||||||
}
|
}
|
||||||
|
int mutable_bitField0_ = 0;
|
||||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||||
try {
|
try {
|
||||||
@@ -230,6 +292,19 @@ public final class Common {
|
|||||||
role_ = rawValue;
|
role_ = rawValue;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 42: {
|
||||||
|
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||||
|
tracingContext_ = com.google.protobuf.MapField.newMapField(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry);
|
||||||
|
mutable_bitField0_ |= 0x00000001;
|
||||||
|
}
|
||||||
|
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
|
||||||
|
tracingContext__ = input.readMessage(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
|
||||||
|
tracingContext_.getMutableMap().put(
|
||||||
|
tracingContext__.getKey(), tracingContext__.getValue());
|
||||||
|
break;
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
if (!parseUnknownField(
|
if (!parseUnknownField(
|
||||||
input, unknownFields, extensionRegistry, tag)) {
|
input, unknownFields, extensionRegistry, tag)) {
|
||||||
@@ -256,6 +331,18 @@ public final class Common {
|
|||||||
return greptime.v1.meta.Common.internal_static_greptime_v1_meta_RequestHeader_descriptor;
|
return greptime.v1.meta.Common.internal_static_greptime_v1_meta_RequestHeader_descriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({"rawtypes"})
|
||||||
|
@java.lang.Override
|
||||||
|
protected com.google.protobuf.MapField internalGetMapField(
|
||||||
|
int number) {
|
||||||
|
switch (number) {
|
||||||
|
case 5:
|
||||||
|
return internalGetTracingContext();
|
||||||
|
default:
|
||||||
|
throw new RuntimeException(
|
||||||
|
"Invalid map field number: " + number);
|
||||||
|
}
|
||||||
|
}
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
internalGetFieldAccessorTable() {
|
internalGetFieldAccessorTable() {
|
||||||
@@ -324,6 +411,107 @@ public final class Common {
|
|||||||
return result == null ? greptime.v1.meta.Common.Role.UNRECOGNIZED : result;
|
return result == null ? greptime.v1.meta.Common.Role.UNRECOGNIZED : result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static final int TRACING_CONTEXT_FIELD_NUMBER = 5;
|
||||||
|
private static final class TracingContextDefaultEntryHolder {
|
||||||
|
static final com.google.protobuf.MapEntry<
|
||||||
|
java.lang.String, java.lang.String> defaultEntry =
|
||||||
|
com.google.protobuf.MapEntry
|
||||||
|
.<java.lang.String, java.lang.String>newDefaultInstance(
|
||||||
|
greptime.v1.meta.Common.internal_static_greptime_v1_meta_RequestHeader_TracingContextEntry_descriptor,
|
||||||
|
com.google.protobuf.WireFormat.FieldType.STRING,
|
||||||
|
"",
|
||||||
|
com.google.protobuf.WireFormat.FieldType.STRING,
|
||||||
|
"");
|
||||||
|
}
|
||||||
|
private com.google.protobuf.MapField<
|
||||||
|
java.lang.String, java.lang.String> tracingContext_;
|
||||||
|
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
|
||||||
|
internalGetTracingContext() {
|
||||||
|
if (tracingContext_ == null) {
|
||||||
|
return com.google.protobuf.MapField.emptyMapField(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry);
|
||||||
|
}
|
||||||
|
return tracingContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTracingContextCount() {
|
||||||
|
return internalGetTracingContext().getMap().size();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean containsTracingContext(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
return internalGetTracingContext().getMap().containsKey(key);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Use {@link #getTracingContextMap()} instead.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
@java.lang.Deprecated
|
||||||
|
public java.util.Map<java.lang.String, java.lang.String> getTracingContext() {
|
||||||
|
return getTracingContextMap();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.util.Map<java.lang.String, java.lang.String> getTracingContextMap() {
|
||||||
|
return internalGetTracingContext().getMap();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.lang.String getTracingContextOrDefault(
|
||||||
|
java.lang.String key,
|
||||||
|
java.lang.String defaultValue) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> map =
|
||||||
|
internalGetTracingContext().getMap();
|
||||||
|
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.lang.String getTracingContextOrThrow(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> map =
|
||||||
|
internalGetTracingContext().getMap();
|
||||||
|
if (!map.containsKey(key)) {
|
||||||
|
throw new java.lang.IllegalArgumentException();
|
||||||
|
}
|
||||||
|
return map.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
private byte memoizedIsInitialized = -1;
|
private byte memoizedIsInitialized = -1;
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public final boolean isInitialized() {
|
public final boolean isInitialized() {
|
||||||
@@ -350,6 +538,12 @@ public final class Common {
|
|||||||
if (role_ != greptime.v1.meta.Common.Role.DATANODE.getNumber()) {
|
if (role_ != greptime.v1.meta.Common.Role.DATANODE.getNumber()) {
|
||||||
output.writeEnum(4, role_);
|
output.writeEnum(4, role_);
|
||||||
}
|
}
|
||||||
|
com.google.protobuf.GeneratedMessageV3
|
||||||
|
.serializeStringMapTo(
|
||||||
|
output,
|
||||||
|
internalGetTracingContext(),
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry,
|
||||||
|
5);
|
||||||
unknownFields.writeTo(output);
|
unknownFields.writeTo(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -375,6 +569,16 @@ public final class Common {
|
|||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeEnumSize(4, role_);
|
.computeEnumSize(4, role_);
|
||||||
}
|
}
|
||||||
|
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
|
||||||
|
: internalGetTracingContext().getMap().entrySet()) {
|
||||||
|
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
|
||||||
|
tracingContext__ = TracingContextDefaultEntryHolder.defaultEntry.newBuilderForType()
|
||||||
|
.setKey(entry.getKey())
|
||||||
|
.setValue(entry.getValue())
|
||||||
|
.build();
|
||||||
|
size += com.google.protobuf.CodedOutputStream
|
||||||
|
.computeMessageSize(5, tracingContext__);
|
||||||
|
}
|
||||||
size += unknownFields.getSerializedSize();
|
size += unknownFields.getSerializedSize();
|
||||||
memoizedSize = size;
|
memoizedSize = size;
|
||||||
return size;
|
return size;
|
||||||
@@ -397,6 +601,8 @@ public final class Common {
|
|||||||
if (getMemberId()
|
if (getMemberId()
|
||||||
!= other.getMemberId()) return false;
|
!= other.getMemberId()) return false;
|
||||||
if (role_ != other.role_) return false;
|
if (role_ != other.role_) return false;
|
||||||
|
if (!internalGetTracingContext().equals(
|
||||||
|
other.internalGetTracingContext())) return false;
|
||||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -419,6 +625,10 @@ public final class Common {
|
|||||||
getMemberId());
|
getMemberId());
|
||||||
hash = (37 * hash) + ROLE_FIELD_NUMBER;
|
hash = (37 * hash) + ROLE_FIELD_NUMBER;
|
||||||
hash = (53 * hash) + role_;
|
hash = (53 * hash) + role_;
|
||||||
|
if (!internalGetTracingContext().getMap().isEmpty()) {
|
||||||
|
hash = (37 * hash) + TRACING_CONTEXT_FIELD_NUMBER;
|
||||||
|
hash = (53 * hash) + internalGetTracingContext().hashCode();
|
||||||
|
}
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
hash = (29 * hash) + unknownFields.hashCode();
|
||||||
memoizedHashCode = hash;
|
memoizedHashCode = hash;
|
||||||
return hash;
|
return hash;
|
||||||
@@ -526,6 +736,28 @@ public final class Common {
|
|||||||
return greptime.v1.meta.Common.internal_static_greptime_v1_meta_RequestHeader_descriptor;
|
return greptime.v1.meta.Common.internal_static_greptime_v1_meta_RequestHeader_descriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({"rawtypes"})
|
||||||
|
protected com.google.protobuf.MapField internalGetMapField(
|
||||||
|
int number) {
|
||||||
|
switch (number) {
|
||||||
|
case 5:
|
||||||
|
return internalGetTracingContext();
|
||||||
|
default:
|
||||||
|
throw new RuntimeException(
|
||||||
|
"Invalid map field number: " + number);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@SuppressWarnings({"rawtypes"})
|
||||||
|
protected com.google.protobuf.MapField internalGetMutableMapField(
|
||||||
|
int number) {
|
||||||
|
switch (number) {
|
||||||
|
case 5:
|
||||||
|
return internalGetMutableTracingContext();
|
||||||
|
default:
|
||||||
|
throw new RuntimeException(
|
||||||
|
"Invalid map field number: " + number);
|
||||||
|
}
|
||||||
|
}
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
internalGetFieldAccessorTable() {
|
internalGetFieldAccessorTable() {
|
||||||
@@ -560,6 +792,7 @@ public final class Common {
|
|||||||
|
|
||||||
role_ = 0;
|
role_ = 0;
|
||||||
|
|
||||||
|
internalGetMutableTracingContext().clear();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -586,10 +819,13 @@ public final class Common {
|
|||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public greptime.v1.meta.Common.RequestHeader buildPartial() {
|
public greptime.v1.meta.Common.RequestHeader buildPartial() {
|
||||||
greptime.v1.meta.Common.RequestHeader result = new greptime.v1.meta.Common.RequestHeader(this);
|
greptime.v1.meta.Common.RequestHeader result = new greptime.v1.meta.Common.RequestHeader(this);
|
||||||
|
int from_bitField0_ = bitField0_;
|
||||||
result.protocolVersion_ = protocolVersion_;
|
result.protocolVersion_ = protocolVersion_;
|
||||||
result.clusterId_ = clusterId_;
|
result.clusterId_ = clusterId_;
|
||||||
result.memberId_ = memberId_;
|
result.memberId_ = memberId_;
|
||||||
result.role_ = role_;
|
result.role_ = role_;
|
||||||
|
result.tracingContext_ = internalGetTracingContext();
|
||||||
|
result.tracingContext_.makeImmutable();
|
||||||
onBuilt();
|
onBuilt();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -650,6 +886,8 @@ public final class Common {
|
|||||||
if (other.role_ != 0) {
|
if (other.role_ != 0) {
|
||||||
setRoleValue(other.getRoleValue());
|
setRoleValue(other.getRoleValue());
|
||||||
}
|
}
|
||||||
|
internalGetMutableTracingContext().mergeFrom(
|
||||||
|
other.internalGetTracingContext());
|
||||||
this.mergeUnknownFields(other.unknownFields);
|
this.mergeUnknownFields(other.unknownFields);
|
||||||
onChanged();
|
onChanged();
|
||||||
return this;
|
return this;
|
||||||
@@ -678,6 +916,7 @@ public final class Common {
|
|||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
private int bitField0_;
|
||||||
|
|
||||||
private long protocolVersion_ ;
|
private long protocolVersion_ ;
|
||||||
/**
|
/**
|
||||||
@@ -849,6 +1088,172 @@ public final class Common {
|
|||||||
onChanged();
|
onChanged();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private com.google.protobuf.MapField<
|
||||||
|
java.lang.String, java.lang.String> tracingContext_;
|
||||||
|
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
|
||||||
|
internalGetTracingContext() {
|
||||||
|
if (tracingContext_ == null) {
|
||||||
|
return com.google.protobuf.MapField.emptyMapField(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry);
|
||||||
|
}
|
||||||
|
return tracingContext_;
|
||||||
|
}
|
||||||
|
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
|
||||||
|
internalGetMutableTracingContext() {
|
||||||
|
onChanged();;
|
||||||
|
if (tracingContext_ == null) {
|
||||||
|
tracingContext_ = com.google.protobuf.MapField.newMapField(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry);
|
||||||
|
}
|
||||||
|
if (!tracingContext_.isMutable()) {
|
||||||
|
tracingContext_ = tracingContext_.copy();
|
||||||
|
}
|
||||||
|
return tracingContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTracingContextCount() {
|
||||||
|
return internalGetTracingContext().getMap().size();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean containsTracingContext(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
return internalGetTracingContext().getMap().containsKey(key);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Use {@link #getTracingContextMap()} instead.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
@java.lang.Deprecated
|
||||||
|
public java.util.Map<java.lang.String, java.lang.String> getTracingContext() {
|
||||||
|
return getTracingContextMap();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.util.Map<java.lang.String, java.lang.String> getTracingContextMap() {
|
||||||
|
return internalGetTracingContext().getMap();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.lang.String getTracingContextOrDefault(
|
||||||
|
java.lang.String key,
|
||||||
|
java.lang.String defaultValue) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> map =
|
||||||
|
internalGetTracingContext().getMap();
|
||||||
|
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.lang.String getTracingContextOrThrow(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> map =
|
||||||
|
internalGetTracingContext().getMap();
|
||||||
|
if (!map.containsKey(key)) {
|
||||||
|
throw new java.lang.IllegalArgumentException();
|
||||||
|
}
|
||||||
|
return map.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder clearTracingContext() {
|
||||||
|
internalGetMutableTracingContext().getMutableMap()
|
||||||
|
.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Builder removeTracingContext(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
internalGetMutableTracingContext().getMutableMap()
|
||||||
|
.remove(key);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Use alternate mutation accessors instead.
|
||||||
|
*/
|
||||||
|
@java.lang.Deprecated
|
||||||
|
public java.util.Map<java.lang.String, java.lang.String>
|
||||||
|
getMutableTracingContext() {
|
||||||
|
return internalGetMutableTracingContext().getMutableMap();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
public Builder putTracingContext(
|
||||||
|
java.lang.String key,
|
||||||
|
java.lang.String value) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
if (value == null) {
|
||||||
|
throw new NullPointerException("map value");
|
||||||
|
}
|
||||||
|
|
||||||
|
internalGetMutableTracingContext().getMutableMap()
|
||||||
|
.put(key, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Builder putAllTracingContext(
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> values) {
|
||||||
|
internalGetMutableTracingContext().getMutableMap()
|
||||||
|
.putAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
@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) {
|
||||||
@@ -5543,6 +5948,11 @@ public final class Common {
|
|||||||
private static final
|
private static final
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
internal_static_greptime_v1_meta_RequestHeader_fieldAccessorTable;
|
internal_static_greptime_v1_meta_RequestHeader_fieldAccessorTable;
|
||||||
|
private static final com.google.protobuf.Descriptors.Descriptor
|
||||||
|
internal_static_greptime_v1_meta_RequestHeader_TracingContextEntry_descriptor;
|
||||||
|
private static final
|
||||||
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
|
internal_static_greptime_v1_meta_RequestHeader_TracingContextEntry_fieldAccessorTable;
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
private static final com.google.protobuf.Descriptors.Descriptor
|
||||||
internal_static_greptime_v1_meta_ResponseHeader_descriptor;
|
internal_static_greptime_v1_meta_ResponseHeader_descriptor;
|
||||||
private static final
|
private static final
|
||||||
@@ -5588,22 +5998,26 @@ public final class Common {
|
|||||||
static {
|
static {
|
||||||
java.lang.String[] descriptorData = {
|
java.lang.String[] descriptorData = {
|
||||||
"\n\035greptime/v1/meta/common.proto\022\020greptim" +
|
"\n\035greptime/v1/meta/common.proto\022\020greptim" +
|
||||||
"e.v1.meta\"v\n\rRequestHeader\022\030\n\020protocol_v" +
|
"e.v1.meta\"\373\001\n\rRequestHeader\022\030\n\020protocol_" +
|
||||||
"ersion\030\001 \001(\004\022\022\n\ncluster_id\030\002 \001(\004\022\021\n\tmemb" +
|
"version\030\001 \001(\004\022\022\n\ncluster_id\030\002 \001(\004\022\021\n\tmem" +
|
||||||
"er_id\030\003 \001(\004\022$\n\004role\030\004 \001(\0162\026.greptime.v1." +
|
"ber_id\030\003 \001(\004\022$\n\004role\030\004 \001(\0162\026.greptime.v1" +
|
||||||
"meta.Role\"f\n\016ResponseHeader\022\030\n\020protocol_" +
|
".meta.Role\022L\n\017tracing_context\030\005 \003(\01323.gr" +
|
||||||
"version\030\001 \001(\004\022\022\n\ncluster_id\030\002 \001(\004\022&\n\005err" +
|
"eptime.v1.meta.RequestHeader.TracingCont" +
|
||||||
"or\030\003 \001(\0132\027.greptime.v1.meta.Error\"&\n\005Err" +
|
"extEntry\0325\n\023TracingContextEntry\022\013\n\003key\030\001" +
|
||||||
"or\022\014\n\004code\030\001 \001(\005\022\017\n\007err_msg\030\002 \001(\t\" \n\004Pee" +
|
" \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\016ResponseHeade" +
|
||||||
"r\022\n\n\002id\030\001 \001(\004\022\014\n\004addr\030\002 \001(\t\"\025\n\007TableId\022\n" +
|
"r\022\030\n\020protocol_version\030\001 \001(\004\022\022\n\ncluster_i" +
|
||||||
"\n\002id\030\001 \001(\r\"J\n\tTableName\022\024\n\014catalog_name\030" +
|
"d\030\002 \001(\004\022&\n\005error\030\003 \001(\0132\027.greptime.v1.met" +
|
||||||
"\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name" +
|
"a.Error\"&\n\005Error\022\014\n\004code\030\001 \001(\005\022\017\n\007err_ms" +
|
||||||
"\030\003 \001(\t\"L\n\014TimeInterval\022\036\n\026start_timestam" +
|
"g\030\002 \001(\t\" \n\004Peer\022\n\n\002id\030\001 \001(\004\022\014\n\004addr\030\002 \001(" +
|
||||||
"p_millis\030\001 \001(\003\022\034\n\024end_timestamp_millis\030\002" +
|
"\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"J\n\tTableName\022\024\n" +
|
||||||
" \001(\003\"&\n\010KeyValue\022\013\n\003key\030\001 \001(\014\022\r\n\005value\030\002" +
|
"\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" +
|
||||||
" \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000\022\014\n\010FRONTEND\020\001" +
|
"\022\022\n\ntable_name\030\003 \001(\t\"L\n\014TimeInterval\022\036\n\026" +
|
||||||
"B<Z:github.com/GreptimeTeam/greptime-pro" +
|
"start_timestamp_millis\030\001 \001(\003\022\034\n\024end_time" +
|
||||||
"to/go/greptime/v1/metab\006proto3"
|
"stamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003key\030\001 " +
|
||||||
|
"\001(\014\022\r\n\005value\030\002 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000" +
|
||||||
|
"\022\014\n\010FRONTEND\020\001B<Z:github.com/GreptimeTea" +
|
||||||
|
"m/greptime-proto/go/greptime/v1/metab\006pr" +
|
||||||
|
"oto3"
|
||||||
};
|
};
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
.internalBuildGeneratedFileFrom(descriptorData,
|
||||||
@@ -5614,7 +6028,13 @@ public final class Common {
|
|||||||
internal_static_greptime_v1_meta_RequestHeader_fieldAccessorTable = new
|
internal_static_greptime_v1_meta_RequestHeader_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_meta_RequestHeader_descriptor,
|
internal_static_greptime_v1_meta_RequestHeader_descriptor,
|
||||||
new java.lang.String[] { "ProtocolVersion", "ClusterId", "MemberId", "Role", });
|
new java.lang.String[] { "ProtocolVersion", "ClusterId", "MemberId", "Role", "TracingContext", });
|
||||||
|
internal_static_greptime_v1_meta_RequestHeader_TracingContextEntry_descriptor =
|
||||||
|
internal_static_greptime_v1_meta_RequestHeader_descriptor.getNestedTypes().get(0);
|
||||||
|
internal_static_greptime_v1_meta_RequestHeader_TracingContextEntry_fieldAccessorTable = new
|
||||||
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
|
internal_static_greptime_v1_meta_RequestHeader_TracingContextEntry_descriptor,
|
||||||
|
new java.lang.String[] { "Key", "Value", });
|
||||||
internal_static_greptime_v1_meta_ResponseHeader_descriptor =
|
internal_static_greptime_v1_meta_ResponseHeader_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(1);
|
getDescriptor().getMessageTypes().get(1);
|
||||||
internal_static_greptime_v1_meta_ResponseHeader_fieldAccessorTable = new
|
internal_static_greptime_v1_meta_ResponseHeader_fieldAccessorTable = new
|
||||||
|
|||||||
@@ -584,23 +584,64 @@ public final class Common {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* TraceID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 trace_id = 5;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @return The traceId.
|
|
||||||
*/
|
*/
|
||||||
long getTraceId();
|
int getTracingContextCount();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* SpanID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 span_id = 6;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @return The spanId.
|
|
||||||
*/
|
*/
|
||||||
long getSpanId();
|
boolean containsTracingContext(
|
||||||
|
java.lang.String key);
|
||||||
|
/**
|
||||||
|
* Use {@link #getTracingContextMap()} instead.
|
||||||
|
*/
|
||||||
|
@java.lang.Deprecated
|
||||||
|
java.util.Map<java.lang.String, java.lang.String>
|
||||||
|
getTracingContext();
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
java.util.Map<java.lang.String, java.lang.String>
|
||||||
|
getTracingContextMap();
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* nullable */
|
||||||
|
java.lang.String getTracingContextOrDefault(
|
||||||
|
java.lang.String key,
|
||||||
|
/* nullable */
|
||||||
|
java.lang.String defaultValue);
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
|
||||||
|
java.lang.String getTracingContextOrThrow(
|
||||||
|
java.lang.String key);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Protobuf type {@code greptime.v1.RequestHeader}
|
* Protobuf type {@code greptime.v1.RequestHeader}
|
||||||
@@ -640,6 +681,7 @@ public final class Common {
|
|||||||
if (extensionRegistry == null) {
|
if (extensionRegistry == null) {
|
||||||
throw new java.lang.NullPointerException();
|
throw new java.lang.NullPointerException();
|
||||||
}
|
}
|
||||||
|
int mutable_bitField0_ = 0;
|
||||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||||
try {
|
try {
|
||||||
@@ -681,14 +723,17 @@ public final class Common {
|
|||||||
dbname_ = s;
|
dbname_ = s;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 40: {
|
case 42: {
|
||||||
|
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||||
traceId_ = input.readUInt64();
|
tracingContext_ = com.google.protobuf.MapField.newMapField(
|
||||||
break;
|
TracingContextDefaultEntryHolder.defaultEntry);
|
||||||
|
mutable_bitField0_ |= 0x00000001;
|
||||||
}
|
}
|
||||||
case 48: {
|
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
|
||||||
|
tracingContext__ = input.readMessage(
|
||||||
spanId_ = input.readUInt64();
|
TracingContextDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
|
||||||
|
tracingContext_.getMutableMap().put(
|
||||||
|
tracingContext__.getKey(), tracingContext__.getValue());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
@@ -717,6 +762,18 @@ public final class Common {
|
|||||||
return io.greptime.v1.Common.internal_static_greptime_v1_RequestHeader_descriptor;
|
return io.greptime.v1.Common.internal_static_greptime_v1_RequestHeader_descriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({"rawtypes"})
|
||||||
|
@java.lang.Override
|
||||||
|
protected com.google.protobuf.MapField internalGetMapField(
|
||||||
|
int number) {
|
||||||
|
switch (number) {
|
||||||
|
case 5:
|
||||||
|
return internalGetTracingContext();
|
||||||
|
default:
|
||||||
|
throw new RuntimeException(
|
||||||
|
"Invalid map field number: " + number);
|
||||||
|
}
|
||||||
|
}
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
internalGetFieldAccessorTable() {
|
internalGetFieldAccessorTable() {
|
||||||
@@ -901,34 +958,105 @@ public final class Common {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int TRACE_ID_FIELD_NUMBER = 5;
|
public static final int TRACING_CONTEXT_FIELD_NUMBER = 5;
|
||||||
private long traceId_;
|
private static final class TracingContextDefaultEntryHolder {
|
||||||
/**
|
static final com.google.protobuf.MapEntry<
|
||||||
* <pre>
|
java.lang.String, java.lang.String> defaultEntry =
|
||||||
* TraceID of request
|
com.google.protobuf.MapEntry
|
||||||
* </pre>
|
.<java.lang.String, java.lang.String>newDefaultInstance(
|
||||||
*
|
io.greptime.v1.Common.internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor,
|
||||||
* <code>uint64 trace_id = 5;</code>
|
com.google.protobuf.WireFormat.FieldType.STRING,
|
||||||
* @return The traceId.
|
"",
|
||||||
*/
|
com.google.protobuf.WireFormat.FieldType.STRING,
|
||||||
@java.lang.Override
|
"");
|
||||||
public long getTraceId() {
|
}
|
||||||
return traceId_;
|
private com.google.protobuf.MapField<
|
||||||
|
java.lang.String, java.lang.String> tracingContext_;
|
||||||
|
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
|
||||||
|
internalGetTracingContext() {
|
||||||
|
if (tracingContext_ == null) {
|
||||||
|
return com.google.protobuf.MapField.emptyMapField(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry);
|
||||||
|
}
|
||||||
|
return tracingContext_;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int SPAN_ID_FIELD_NUMBER = 6;
|
public int getTracingContextCount() {
|
||||||
private long spanId_;
|
return internalGetTracingContext().getMap().size();
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* SpanID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 span_id = 6;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @return The spanId.
|
*/
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean containsTracingContext(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
return internalGetTracingContext().getMap().containsKey(key);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Use {@link #getTracingContextMap()} instead.
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public long getSpanId() {
|
@java.lang.Deprecated
|
||||||
return spanId_;
|
public java.util.Map<java.lang.String, java.lang.String> getTracingContext() {
|
||||||
|
return getTracingContextMap();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.util.Map<java.lang.String, java.lang.String> getTracingContextMap() {
|
||||||
|
return internalGetTracingContext().getMap();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.lang.String getTracingContextOrDefault(
|
||||||
|
java.lang.String key,
|
||||||
|
java.lang.String defaultValue) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> map =
|
||||||
|
internalGetTracingContext().getMap();
|
||||||
|
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.lang.String getTracingContextOrThrow(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> map =
|
||||||
|
internalGetTracingContext().getMap();
|
||||||
|
if (!map.containsKey(key)) {
|
||||||
|
throw new java.lang.IllegalArgumentException();
|
||||||
|
}
|
||||||
|
return map.get(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
private byte memoizedIsInitialized = -1;
|
private byte memoizedIsInitialized = -1;
|
||||||
@@ -957,12 +1085,12 @@ public final class Common {
|
|||||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbname_)) {
|
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbname_)) {
|
||||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dbname_);
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dbname_);
|
||||||
}
|
}
|
||||||
if (traceId_ != 0L) {
|
com.google.protobuf.GeneratedMessageV3
|
||||||
output.writeUInt64(5, traceId_);
|
.serializeStringMapTo(
|
||||||
}
|
output,
|
||||||
if (spanId_ != 0L) {
|
internalGetTracingContext(),
|
||||||
output.writeUInt64(6, spanId_);
|
TracingContextDefaultEntryHolder.defaultEntry,
|
||||||
}
|
5);
|
||||||
unknownFields.writeTo(output);
|
unknownFields.writeTo(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -985,13 +1113,15 @@ public final class Common {
|
|||||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbname_)) {
|
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbname_)) {
|
||||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dbname_);
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dbname_);
|
||||||
}
|
}
|
||||||
if (traceId_ != 0L) {
|
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
|
||||||
|
: internalGetTracingContext().getMap().entrySet()) {
|
||||||
|
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
|
||||||
|
tracingContext__ = TracingContextDefaultEntryHolder.defaultEntry.newBuilderForType()
|
||||||
|
.setKey(entry.getKey())
|
||||||
|
.setValue(entry.getValue())
|
||||||
|
.build();
|
||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeUInt64Size(5, traceId_);
|
.computeMessageSize(5, tracingContext__);
|
||||||
}
|
|
||||||
if (spanId_ != 0L) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt64Size(6, spanId_);
|
|
||||||
}
|
}
|
||||||
size += unknownFields.getSerializedSize();
|
size += unknownFields.getSerializedSize();
|
||||||
memoizedSize = size;
|
memoizedSize = size;
|
||||||
@@ -1019,10 +1149,8 @@ public final class Common {
|
|||||||
}
|
}
|
||||||
if (!getDbname()
|
if (!getDbname()
|
||||||
.equals(other.getDbname())) return false;
|
.equals(other.getDbname())) return false;
|
||||||
if (getTraceId()
|
if (!internalGetTracingContext().equals(
|
||||||
!= other.getTraceId()) return false;
|
other.internalGetTracingContext())) return false;
|
||||||
if (getSpanId()
|
|
||||||
!= other.getSpanId()) return false;
|
|
||||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1044,12 +1172,10 @@ public final class Common {
|
|||||||
}
|
}
|
||||||
hash = (37 * hash) + DBNAME_FIELD_NUMBER;
|
hash = (37 * hash) + DBNAME_FIELD_NUMBER;
|
||||||
hash = (53 * hash) + getDbname().hashCode();
|
hash = (53 * hash) + getDbname().hashCode();
|
||||||
hash = (37 * hash) + TRACE_ID_FIELD_NUMBER;
|
if (!internalGetTracingContext().getMap().isEmpty()) {
|
||||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
hash = (37 * hash) + TRACING_CONTEXT_FIELD_NUMBER;
|
||||||
getTraceId());
|
hash = (53 * hash) + internalGetTracingContext().hashCode();
|
||||||
hash = (37 * hash) + SPAN_ID_FIELD_NUMBER;
|
}
|
||||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
|
||||||
getSpanId());
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
hash = (29 * hash) + unknownFields.hashCode();
|
||||||
memoizedHashCode = hash;
|
memoizedHashCode = hash;
|
||||||
return hash;
|
return hash;
|
||||||
@@ -1157,6 +1283,28 @@ public final class Common {
|
|||||||
return io.greptime.v1.Common.internal_static_greptime_v1_RequestHeader_descriptor;
|
return io.greptime.v1.Common.internal_static_greptime_v1_RequestHeader_descriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({"rawtypes"})
|
||||||
|
protected com.google.protobuf.MapField internalGetMapField(
|
||||||
|
int number) {
|
||||||
|
switch (number) {
|
||||||
|
case 5:
|
||||||
|
return internalGetTracingContext();
|
||||||
|
default:
|
||||||
|
throw new RuntimeException(
|
||||||
|
"Invalid map field number: " + number);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@SuppressWarnings({"rawtypes"})
|
||||||
|
protected com.google.protobuf.MapField internalGetMutableMapField(
|
||||||
|
int number) {
|
||||||
|
switch (number) {
|
||||||
|
case 5:
|
||||||
|
return internalGetMutableTracingContext();
|
||||||
|
default:
|
||||||
|
throw new RuntimeException(
|
||||||
|
"Invalid map field number: " + number);
|
||||||
|
}
|
||||||
|
}
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
internalGetFieldAccessorTable() {
|
internalGetFieldAccessorTable() {
|
||||||
@@ -1195,10 +1343,7 @@ public final class Common {
|
|||||||
}
|
}
|
||||||
dbname_ = "";
|
dbname_ = "";
|
||||||
|
|
||||||
traceId_ = 0L;
|
internalGetMutableTracingContext().clear();
|
||||||
|
|
||||||
spanId_ = 0L;
|
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1225,6 +1370,7 @@ public final class Common {
|
|||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public io.greptime.v1.Common.RequestHeader buildPartial() {
|
public io.greptime.v1.Common.RequestHeader buildPartial() {
|
||||||
io.greptime.v1.Common.RequestHeader result = new io.greptime.v1.Common.RequestHeader(this);
|
io.greptime.v1.Common.RequestHeader result = new io.greptime.v1.Common.RequestHeader(this);
|
||||||
|
int from_bitField0_ = bitField0_;
|
||||||
result.catalog_ = catalog_;
|
result.catalog_ = catalog_;
|
||||||
result.schema_ = schema_;
|
result.schema_ = schema_;
|
||||||
if (authorizationBuilder_ == null) {
|
if (authorizationBuilder_ == null) {
|
||||||
@@ -1233,8 +1379,8 @@ public final class Common {
|
|||||||
result.authorization_ = authorizationBuilder_.build();
|
result.authorization_ = authorizationBuilder_.build();
|
||||||
}
|
}
|
||||||
result.dbname_ = dbname_;
|
result.dbname_ = dbname_;
|
||||||
result.traceId_ = traceId_;
|
result.tracingContext_ = internalGetTracingContext();
|
||||||
result.spanId_ = spanId_;
|
result.tracingContext_.makeImmutable();
|
||||||
onBuilt();
|
onBuilt();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -1298,12 +1444,8 @@ public final class Common {
|
|||||||
dbname_ = other.dbname_;
|
dbname_ = other.dbname_;
|
||||||
onChanged();
|
onChanged();
|
||||||
}
|
}
|
||||||
if (other.getTraceId() != 0L) {
|
internalGetMutableTracingContext().mergeFrom(
|
||||||
setTraceId(other.getTraceId());
|
other.internalGetTracingContext());
|
||||||
}
|
|
||||||
if (other.getSpanId() != 0L) {
|
|
||||||
setSpanId(other.getSpanId());
|
|
||||||
}
|
|
||||||
this.mergeUnknownFields(other.unknownFields);
|
this.mergeUnknownFields(other.unknownFields);
|
||||||
onChanged();
|
onChanged();
|
||||||
return this;
|
return this;
|
||||||
@@ -1332,6 +1474,7 @@ public final class Common {
|
|||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
private int bitField0_;
|
||||||
|
|
||||||
private java.lang.Object catalog_ = "";
|
private java.lang.Object catalog_ = "";
|
||||||
/**
|
/**
|
||||||
@@ -1776,89 +1919,169 @@ public final class Common {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private long traceId_ ;
|
private com.google.protobuf.MapField<
|
||||||
|
java.lang.String, java.lang.String> tracingContext_;
|
||||||
|
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
|
||||||
|
internalGetTracingContext() {
|
||||||
|
if (tracingContext_ == null) {
|
||||||
|
return com.google.protobuf.MapField.emptyMapField(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry);
|
||||||
|
}
|
||||||
|
return tracingContext_;
|
||||||
|
}
|
||||||
|
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
|
||||||
|
internalGetMutableTracingContext() {
|
||||||
|
onChanged();;
|
||||||
|
if (tracingContext_ == null) {
|
||||||
|
tracingContext_ = com.google.protobuf.MapField.newMapField(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry);
|
||||||
|
}
|
||||||
|
if (!tracingContext_.isMutable()) {
|
||||||
|
tracingContext_ = tracingContext_.copy();
|
||||||
|
}
|
||||||
|
return tracingContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTracingContextCount() {
|
||||||
|
return internalGetTracingContext().getMap().size();
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* TraceID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 trace_id = 5;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @return The traceId.
|
*/
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean containsTracingContext(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
return internalGetTracingContext().getMap().containsKey(key);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Use {@link #getTracingContextMap()} instead.
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public long getTraceId() {
|
@java.lang.Deprecated
|
||||||
return traceId_;
|
public java.util.Map<java.lang.String, java.lang.String> getTracingContext() {
|
||||||
|
return getTracingContextMap();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* TraceID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 trace_id = 5;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @param value The traceId to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setTraceId(long value) {
|
|
||||||
|
|
||||||
traceId_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* TraceID of request
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* <code>uint64 trace_id = 5;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearTraceId() {
|
|
||||||
|
|
||||||
traceId_ = 0L;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private long spanId_ ;
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* SpanID of request
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* <code>uint64 span_id = 6;</code>
|
|
||||||
* @return The spanId.
|
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public long getSpanId() {
|
|
||||||
return spanId_;
|
public java.util.Map<java.lang.String, java.lang.String> getTracingContextMap() {
|
||||||
|
return internalGetTracingContext().getMap();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* SpanID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 span_id = 6;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @param value The spanId to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
*/
|
||||||
public Builder setSpanId(long value) {
|
@java.lang.Override
|
||||||
|
|
||||||
spanId_ = value;
|
public java.lang.String getTracingContextOrDefault(
|
||||||
onChanged();
|
java.lang.String key,
|
||||||
|
java.lang.String defaultValue) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> map =
|
||||||
|
internalGetTracingContext().getMap();
|
||||||
|
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.lang.String getTracingContextOrThrow(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> map =
|
||||||
|
internalGetTracingContext().getMap();
|
||||||
|
if (!map.containsKey(key)) {
|
||||||
|
throw new java.lang.IllegalArgumentException();
|
||||||
|
}
|
||||||
|
return map.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder clearTracingContext() {
|
||||||
|
internalGetMutableTracingContext().getMutableMap()
|
||||||
|
.clear();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* SpanID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 span_id = 6;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
*/
|
||||||
public Builder clearSpanId() {
|
|
||||||
|
|
||||||
spanId_ = 0L;
|
public Builder removeTracingContext(
|
||||||
onChanged();
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
internalGetMutableTracingContext().getMutableMap()
|
||||||
|
.remove(key);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Use alternate mutation accessors instead.
|
||||||
|
*/
|
||||||
|
@java.lang.Deprecated
|
||||||
|
public java.util.Map<java.lang.String, java.lang.String>
|
||||||
|
getMutableTracingContext() {
|
||||||
|
return internalGetMutableTracingContext().getMutableMap();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
public Builder putTracingContext(
|
||||||
|
java.lang.String key,
|
||||||
|
java.lang.String value) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
if (value == null) {
|
||||||
|
throw new NullPointerException("map value");
|
||||||
|
}
|
||||||
|
|
||||||
|
internalGetMutableTracingContext().getMutableMap()
|
||||||
|
.put(key, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
* https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Builder putAllTracingContext(
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> values) {
|
||||||
|
internalGetMutableTracingContext().getMutableMap()
|
||||||
|
.putAll(values);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
@@ -7187,6 +7410,11 @@ public final class Common {
|
|||||||
private static final
|
private static final
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
internal_static_greptime_v1_RequestHeader_fieldAccessorTable;
|
internal_static_greptime_v1_RequestHeader_fieldAccessorTable;
|
||||||
|
private static final com.google.protobuf.Descriptors.Descriptor
|
||||||
|
internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor;
|
||||||
|
private static final
|
||||||
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
|
internal_static_greptime_v1_RequestHeader_TracingContextEntry_fieldAccessorTable;
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
private static final com.google.protobuf.Descriptors.Descriptor
|
||||||
internal_static_greptime_v1_ResponseHeader_descriptor;
|
internal_static_greptime_v1_ResponseHeader_descriptor;
|
||||||
private static final
|
private static final
|
||||||
@@ -7237,39 +7465,41 @@ public final class Common {
|
|||||||
static {
|
static {
|
||||||
java.lang.String[] descriptorData = {
|
java.lang.String[] descriptorData = {
|
||||||
"\n\030greptime/v1/common.proto\022\013greptime.v1\"" +
|
"\n\030greptime/v1/common.proto\022\013greptime.v1\"" +
|
||||||
"\223\001\n\rRequestHeader\022\017\n\007catalog\030\001 \001(\t\022\016\n\006sc" +
|
"\360\001\n\rRequestHeader\022\017\n\007catalog\030\001 \001(\t\022\016\n\006sc" +
|
||||||
"hema\030\002 \001(\t\022.\n\rauthorization\030\003 \001(\0132\027.grep" +
|
"hema\030\002 \001(\t\022.\n\rauthorization\030\003 \001(\0132\027.grep" +
|
||||||
"time.v1.AuthHeader\022\016\n\006dbname\030\004 \001(\t\022\020\n\010tr" +
|
"time.v1.AuthHeader\022\016\n\006dbname\030\004 \001(\t\022G\n\017tr" +
|
||||||
"ace_id\030\005 \001(\004\022\017\n\007span_id\030\006 \001(\004\"5\n\016Respons" +
|
"acing_context\030\005 \003(\0132..greptime.v1.Reques" +
|
||||||
"eHeader\022#\n\006status\030\001 \001(\0132\023.greptime.v1.St" +
|
"tHeader.TracingContextEntry\0325\n\023TracingCo" +
|
||||||
"atus\".\n\006Status\022\023\n\013status_code\030\001 \001(\r\022\017\n\007e" +
|
"ntextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" +
|
||||||
"rr_msg\030\002 \001(\t\"e\n\nAuthHeader\022#\n\005basic\030\001 \001(" +
|
"8\001\"5\n\016ResponseHeader\022#\n\006status\030\001 \001(\0132\023.g" +
|
||||||
"\0132\022.greptime.v1.BasicH\000\022#\n\005token\030\002 \001(\0132\022" +
|
"reptime.v1.Status\".\n\006Status\022\023\n\013status_co" +
|
||||||
".greptime.v1.TokenH\000B\r\n\013auth_scheme\"+\n\005B" +
|
"de\030\001 \001(\r\022\017\n\007err_msg\030\002 \001(\t\"e\n\nAuthHeader\022" +
|
||||||
"asic\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t" +
|
"#\n\005basic\030\001 \001(\0132\022.greptime.v1.BasicH\000\022#\n\005" +
|
||||||
"\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows" +
|
"token\030\002 \001(\0132\022.greptime.v1.TokenH\000B\r\n\013aut" +
|
||||||
"\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raff" +
|
"h_scheme\"+\n\005Basic\022\020\n\010username\030\001 \001(\t\022\020\n\010p" +
|
||||||
"ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR" +
|
"assword\030\002 \001(\t\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n" +
|
||||||
"ows\"I\n\024IntervalMonthDayNano\022\016\n\006months\030\001 " +
|
"\014AffectedRows\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMe" +
|
||||||
"\001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003*1" +
|
"tadata\0220\n\raffected_rows\030\001 \001(\0132\031.greptime" +
|
||||||
"\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTI" +
|
".v1.AffectedRows\"I\n\024IntervalMonthDayNano" +
|
||||||
"MESTAMP\020\002*\250\004\n\016ColumnDataType\022\013\n\007BOOLEAN\020" +
|
"\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanose" +
|
||||||
"\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT" +
|
"conds\030\003 \001(\003*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005" +
|
||||||
"64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022" +
|
"FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\250\004\n\016ColumnDataTyp" +
|
||||||
"\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n" +
|
"e\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005I" +
|
||||||
"\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATET" +
|
"NT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006" +
|
||||||
"IME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP" +
|
"\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n" +
|
||||||
"_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020" +
|
"\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DA" +
|
||||||
"\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_SECO" +
|
"TE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017" +
|
||||||
"ND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MICRO" +
|
"\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP" +
|
||||||
"SECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVA" +
|
"_MICROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022" +
|
||||||
"L_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n" +
|
"\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022" +
|
||||||
"\027INTERVAL_MONTH_DAY_NANO\020\031\022\023\n\017DURATION_S" +
|
"\024\n\020TIME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND" +
|
||||||
"ECOND\020\032\022\030\n\024DURATION_MILLISECOND\020\033\022\030\n\024DUR" +
|
"\020\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_" +
|
||||||
"ATION_MICROSECOND\020\034\022\027\n\023DURATION_NANOSECO" +
|
"DAY_TIME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022" +
|
||||||
"ND\020\035BO\n\016io.greptime.v1B\006CommonZ5github.c" +
|
"\023\n\017DURATION_SECOND\020\032\022\030\n\024DURATION_MILLISE" +
|
||||||
"om/GreptimeTeam/greptime-proto/go/grepti" +
|
"COND\020\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURA" +
|
||||||
"me/v1b\006proto3"
|
"TION_NANOSECOND\020\035BO\n\016io.greptime.v1B\006Com" +
|
||||||
|
"monZ5github.com/GreptimeTeam/greptime-pr" +
|
||||||
|
"oto/go/greptime/v1b\006proto3"
|
||||||
};
|
};
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
.internalBuildGeneratedFileFrom(descriptorData,
|
||||||
@@ -7280,7 +7510,13 @@ public final class Common {
|
|||||||
internal_static_greptime_v1_RequestHeader_fieldAccessorTable = new
|
internal_static_greptime_v1_RequestHeader_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_RequestHeader_descriptor,
|
internal_static_greptime_v1_RequestHeader_descriptor,
|
||||||
new java.lang.String[] { "Catalog", "Schema", "Authorization", "Dbname", "TraceId", "SpanId", });
|
new java.lang.String[] { "Catalog", "Schema", "Authorization", "Dbname", "TracingContext", });
|
||||||
|
internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor =
|
||||||
|
internal_static_greptime_v1_RequestHeader_descriptor.getNestedTypes().get(0);
|
||||||
|
internal_static_greptime_v1_RequestHeader_TracingContextEntry_fieldAccessorTable = new
|
||||||
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
|
internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor,
|
||||||
|
new java.lang.String[] { "Key", "Value", });
|
||||||
internal_static_greptime_v1_ResponseHeader_descriptor =
|
internal_static_greptime_v1_ResponseHeader_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(1);
|
getDescriptor().getMessageTypes().get(1);
|
||||||
internal_static_greptime_v1_ResponseHeader_fieldAccessorTable = new
|
internal_static_greptime_v1_ResponseHeader_fieldAccessorTable = new
|
||||||
|
|||||||
@@ -20,23 +20,59 @@ public final class Server {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* TraceID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 trace_id = 1;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @return The traceId.
|
|
||||||
*/
|
*/
|
||||||
long getTraceId();
|
int getTracingContextCount();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* SpanID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 span_id = 2;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @return The spanId.
|
|
||||||
*/
|
*/
|
||||||
long getSpanId();
|
boolean containsTracingContext(
|
||||||
|
java.lang.String key);
|
||||||
|
/**
|
||||||
|
* Use {@link #getTracingContextMap()} instead.
|
||||||
|
*/
|
||||||
|
@java.lang.Deprecated
|
||||||
|
java.util.Map<java.lang.String, java.lang.String>
|
||||||
|
getTracingContext();
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
java.util.Map<java.lang.String, java.lang.String>
|
||||||
|
getTracingContextMap();
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* nullable */
|
||||||
|
java.lang.String getTracingContextOrDefault(
|
||||||
|
java.lang.String key,
|
||||||
|
/* nullable */
|
||||||
|
java.lang.String defaultValue);
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
|
||||||
|
java.lang.String getTracingContextOrThrow(
|
||||||
|
java.lang.String key);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
@@ -94,6 +130,7 @@ public final class Server {
|
|||||||
if (extensionRegistry == null) {
|
if (extensionRegistry == null) {
|
||||||
throw new java.lang.NullPointerException();
|
throw new java.lang.NullPointerException();
|
||||||
}
|
}
|
||||||
|
int mutable_bitField0_ = 0;
|
||||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||||
try {
|
try {
|
||||||
@@ -104,22 +141,25 @@ public final class Server {
|
|||||||
case 0:
|
case 0:
|
||||||
done = true;
|
done = true;
|
||||||
break;
|
break;
|
||||||
case 8: {
|
|
||||||
|
|
||||||
traceId_ = input.readUInt64();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 16: {
|
|
||||||
|
|
||||||
spanId_ = input.readUInt64();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 26: {
|
case 26: {
|
||||||
java.lang.String s = input.readStringRequireUtf8();
|
java.lang.String s = input.readStringRequireUtf8();
|
||||||
|
|
||||||
dbname_ = s;
|
dbname_ = s;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 42: {
|
||||||
|
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||||
|
tracingContext_ = com.google.protobuf.MapField.newMapField(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry);
|
||||||
|
mutable_bitField0_ |= 0x00000001;
|
||||||
|
}
|
||||||
|
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
|
||||||
|
tracingContext__ = input.readMessage(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
|
||||||
|
tracingContext_.getMutableMap().put(
|
||||||
|
tracingContext__.getKey(), tracingContext__.getValue());
|
||||||
|
break;
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
if (!parseUnknownField(
|
if (!parseUnknownField(
|
||||||
input, unknownFields, extensionRegistry, tag)) {
|
input, unknownFields, extensionRegistry, tag)) {
|
||||||
@@ -146,6 +186,18 @@ public final class Server {
|
|||||||
return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionRequestHeader_descriptor;
|
return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionRequestHeader_descriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({"rawtypes"})
|
||||||
|
@java.lang.Override
|
||||||
|
protected com.google.protobuf.MapField internalGetMapField(
|
||||||
|
int number) {
|
||||||
|
switch (number) {
|
||||||
|
case 5:
|
||||||
|
return internalGetTracingContext();
|
||||||
|
default:
|
||||||
|
throw new RuntimeException(
|
||||||
|
"Invalid map field number: " + number);
|
||||||
|
}
|
||||||
|
}
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
internalGetFieldAccessorTable() {
|
internalGetFieldAccessorTable() {
|
||||||
@@ -154,34 +206,101 @@ public final class Server {
|
|||||||
io.greptime.v1.region.Server.RegionRequestHeader.class, io.greptime.v1.region.Server.RegionRequestHeader.Builder.class);
|
io.greptime.v1.region.Server.RegionRequestHeader.class, io.greptime.v1.region.Server.RegionRequestHeader.Builder.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int TRACE_ID_FIELD_NUMBER = 1;
|
public static final int TRACING_CONTEXT_FIELD_NUMBER = 5;
|
||||||
private long traceId_;
|
private static final class TracingContextDefaultEntryHolder {
|
||||||
/**
|
static final com.google.protobuf.MapEntry<
|
||||||
* <pre>
|
java.lang.String, java.lang.String> defaultEntry =
|
||||||
* TraceID of request
|
com.google.protobuf.MapEntry
|
||||||
* </pre>
|
.<java.lang.String, java.lang.String>newDefaultInstance(
|
||||||
*
|
io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionRequestHeader_TracingContextEntry_descriptor,
|
||||||
* <code>uint64 trace_id = 1;</code>
|
com.google.protobuf.WireFormat.FieldType.STRING,
|
||||||
* @return The traceId.
|
"",
|
||||||
*/
|
com.google.protobuf.WireFormat.FieldType.STRING,
|
||||||
@java.lang.Override
|
"");
|
||||||
public long getTraceId() {
|
}
|
||||||
return traceId_;
|
private com.google.protobuf.MapField<
|
||||||
|
java.lang.String, java.lang.String> tracingContext_;
|
||||||
|
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
|
||||||
|
internalGetTracingContext() {
|
||||||
|
if (tracingContext_ == null) {
|
||||||
|
return com.google.protobuf.MapField.emptyMapField(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry);
|
||||||
|
}
|
||||||
|
return tracingContext_;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int SPAN_ID_FIELD_NUMBER = 2;
|
public int getTracingContextCount() {
|
||||||
private long spanId_;
|
return internalGetTracingContext().getMap().size();
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* SpanID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 span_id = 2;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @return The spanId.
|
*/
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean containsTracingContext(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
return internalGetTracingContext().getMap().containsKey(key);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Use {@link #getTracingContextMap()} instead.
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public long getSpanId() {
|
@java.lang.Deprecated
|
||||||
return spanId_;
|
public java.util.Map<java.lang.String, java.lang.String> getTracingContext() {
|
||||||
|
return getTracingContextMap();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.util.Map<java.lang.String, java.lang.String> getTracingContextMap() {
|
||||||
|
return internalGetTracingContext().getMap();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.lang.String getTracingContextOrDefault(
|
||||||
|
java.lang.String key,
|
||||||
|
java.lang.String defaultValue) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> map =
|
||||||
|
internalGetTracingContext().getMap();
|
||||||
|
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.lang.String getTracingContextOrThrow(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> map =
|
||||||
|
internalGetTracingContext().getMap();
|
||||||
|
if (!map.containsKey(key)) {
|
||||||
|
throw new java.lang.IllegalArgumentException();
|
||||||
|
}
|
||||||
|
return map.get(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int DBNAME_FIELD_NUMBER = 3;
|
public static final int DBNAME_FIELD_NUMBER = 3;
|
||||||
@@ -244,15 +363,15 @@ public final class Server {
|
|||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||||
throws java.io.IOException {
|
throws java.io.IOException {
|
||||||
if (traceId_ != 0L) {
|
|
||||||
output.writeUInt64(1, traceId_);
|
|
||||||
}
|
|
||||||
if (spanId_ != 0L) {
|
|
||||||
output.writeUInt64(2, spanId_);
|
|
||||||
}
|
|
||||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbname_)) {
|
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbname_)) {
|
||||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dbname_);
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dbname_);
|
||||||
}
|
}
|
||||||
|
com.google.protobuf.GeneratedMessageV3
|
||||||
|
.serializeStringMapTo(
|
||||||
|
output,
|
||||||
|
internalGetTracingContext(),
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry,
|
||||||
|
5);
|
||||||
unknownFields.writeTo(output);
|
unknownFields.writeTo(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -262,17 +381,19 @@ public final class Server {
|
|||||||
if (size != -1) return size;
|
if (size != -1) return size;
|
||||||
|
|
||||||
size = 0;
|
size = 0;
|
||||||
if (traceId_ != 0L) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt64Size(1, traceId_);
|
|
||||||
}
|
|
||||||
if (spanId_ != 0L) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt64Size(2, spanId_);
|
|
||||||
}
|
|
||||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbname_)) {
|
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbname_)) {
|
||||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dbname_);
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dbname_);
|
||||||
}
|
}
|
||||||
|
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
|
||||||
|
: internalGetTracingContext().getMap().entrySet()) {
|
||||||
|
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
|
||||||
|
tracingContext__ = TracingContextDefaultEntryHolder.defaultEntry.newBuilderForType()
|
||||||
|
.setKey(entry.getKey())
|
||||||
|
.setValue(entry.getValue())
|
||||||
|
.build();
|
||||||
|
size += com.google.protobuf.CodedOutputStream
|
||||||
|
.computeMessageSize(5, tracingContext__);
|
||||||
|
}
|
||||||
size += unknownFields.getSerializedSize();
|
size += unknownFields.getSerializedSize();
|
||||||
memoizedSize = size;
|
memoizedSize = size;
|
||||||
return size;
|
return size;
|
||||||
@@ -288,10 +409,8 @@ public final class Server {
|
|||||||
}
|
}
|
||||||
io.greptime.v1.region.Server.RegionRequestHeader other = (io.greptime.v1.region.Server.RegionRequestHeader) obj;
|
io.greptime.v1.region.Server.RegionRequestHeader other = (io.greptime.v1.region.Server.RegionRequestHeader) obj;
|
||||||
|
|
||||||
if (getTraceId()
|
if (!internalGetTracingContext().equals(
|
||||||
!= other.getTraceId()) return false;
|
other.internalGetTracingContext())) return false;
|
||||||
if (getSpanId()
|
|
||||||
!= other.getSpanId()) return false;
|
|
||||||
if (!getDbname()
|
if (!getDbname()
|
||||||
.equals(other.getDbname())) return false;
|
.equals(other.getDbname())) return false;
|
||||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||||
@@ -305,12 +424,10 @@ public final class Server {
|
|||||||
}
|
}
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
hash = (19 * hash) + getDescriptor().hashCode();
|
hash = (19 * hash) + getDescriptor().hashCode();
|
||||||
hash = (37 * hash) + TRACE_ID_FIELD_NUMBER;
|
if (!internalGetTracingContext().getMap().isEmpty()) {
|
||||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
hash = (37 * hash) + TRACING_CONTEXT_FIELD_NUMBER;
|
||||||
getTraceId());
|
hash = (53 * hash) + internalGetTracingContext().hashCode();
|
||||||
hash = (37 * hash) + SPAN_ID_FIELD_NUMBER;
|
}
|
||||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
|
||||||
getSpanId());
|
|
||||||
hash = (37 * hash) + DBNAME_FIELD_NUMBER;
|
hash = (37 * hash) + DBNAME_FIELD_NUMBER;
|
||||||
hash = (53 * hash) + getDbname().hashCode();
|
hash = (53 * hash) + getDbname().hashCode();
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
hash = (29 * hash) + unknownFields.hashCode();
|
||||||
@@ -420,6 +537,28 @@ public final class Server {
|
|||||||
return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionRequestHeader_descriptor;
|
return io.greptime.v1.region.Server.internal_static_greptime_v1_region_RegionRequestHeader_descriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({"rawtypes"})
|
||||||
|
protected com.google.protobuf.MapField internalGetMapField(
|
||||||
|
int number) {
|
||||||
|
switch (number) {
|
||||||
|
case 5:
|
||||||
|
return internalGetTracingContext();
|
||||||
|
default:
|
||||||
|
throw new RuntimeException(
|
||||||
|
"Invalid map field number: " + number);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@SuppressWarnings({"rawtypes"})
|
||||||
|
protected com.google.protobuf.MapField internalGetMutableMapField(
|
||||||
|
int number) {
|
||||||
|
switch (number) {
|
||||||
|
case 5:
|
||||||
|
return internalGetMutableTracingContext();
|
||||||
|
default:
|
||||||
|
throw new RuntimeException(
|
||||||
|
"Invalid map field number: " + number);
|
||||||
|
}
|
||||||
|
}
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
internalGetFieldAccessorTable() {
|
internalGetFieldAccessorTable() {
|
||||||
@@ -446,10 +585,7 @@ public final class Server {
|
|||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public Builder clear() {
|
public Builder clear() {
|
||||||
super.clear();
|
super.clear();
|
||||||
traceId_ = 0L;
|
internalGetMutableTracingContext().clear();
|
||||||
|
|
||||||
spanId_ = 0L;
|
|
||||||
|
|
||||||
dbname_ = "";
|
dbname_ = "";
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -478,8 +614,9 @@ public final class Server {
|
|||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public io.greptime.v1.region.Server.RegionRequestHeader buildPartial() {
|
public io.greptime.v1.region.Server.RegionRequestHeader buildPartial() {
|
||||||
io.greptime.v1.region.Server.RegionRequestHeader result = new io.greptime.v1.region.Server.RegionRequestHeader(this);
|
io.greptime.v1.region.Server.RegionRequestHeader result = new io.greptime.v1.region.Server.RegionRequestHeader(this);
|
||||||
result.traceId_ = traceId_;
|
int from_bitField0_ = bitField0_;
|
||||||
result.spanId_ = spanId_;
|
result.tracingContext_ = internalGetTracingContext();
|
||||||
|
result.tracingContext_.makeImmutable();
|
||||||
result.dbname_ = dbname_;
|
result.dbname_ = dbname_;
|
||||||
onBuilt();
|
onBuilt();
|
||||||
return result;
|
return result;
|
||||||
@@ -529,12 +666,8 @@ public final class Server {
|
|||||||
|
|
||||||
public Builder mergeFrom(io.greptime.v1.region.Server.RegionRequestHeader other) {
|
public Builder mergeFrom(io.greptime.v1.region.Server.RegionRequestHeader other) {
|
||||||
if (other == io.greptime.v1.region.Server.RegionRequestHeader.getDefaultInstance()) return this;
|
if (other == io.greptime.v1.region.Server.RegionRequestHeader.getDefaultInstance()) return this;
|
||||||
if (other.getTraceId() != 0L) {
|
internalGetMutableTracingContext().mergeFrom(
|
||||||
setTraceId(other.getTraceId());
|
other.internalGetTracingContext());
|
||||||
}
|
|
||||||
if (other.getSpanId() != 0L) {
|
|
||||||
setSpanId(other.getSpanId());
|
|
||||||
}
|
|
||||||
if (!other.getDbname().isEmpty()) {
|
if (!other.getDbname().isEmpty()) {
|
||||||
dbname_ = other.dbname_;
|
dbname_ = other.dbname_;
|
||||||
onChanged();
|
onChanged();
|
||||||
@@ -567,90 +700,164 @@ public final class Server {
|
|||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
private int bitField0_;
|
||||||
|
|
||||||
private long traceId_ ;
|
private com.google.protobuf.MapField<
|
||||||
|
java.lang.String, java.lang.String> tracingContext_;
|
||||||
|
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
|
||||||
|
internalGetTracingContext() {
|
||||||
|
if (tracingContext_ == null) {
|
||||||
|
return com.google.protobuf.MapField.emptyMapField(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry);
|
||||||
|
}
|
||||||
|
return tracingContext_;
|
||||||
|
}
|
||||||
|
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
|
||||||
|
internalGetMutableTracingContext() {
|
||||||
|
onChanged();;
|
||||||
|
if (tracingContext_ == null) {
|
||||||
|
tracingContext_ = com.google.protobuf.MapField.newMapField(
|
||||||
|
TracingContextDefaultEntryHolder.defaultEntry);
|
||||||
|
}
|
||||||
|
if (!tracingContext_.isMutable()) {
|
||||||
|
tracingContext_ = tracingContext_.copy();
|
||||||
|
}
|
||||||
|
return tracingContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTracingContextCount() {
|
||||||
|
return internalGetTracingContext().getMap().size();
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* TraceID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 trace_id = 1;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @return The traceId.
|
*/
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean containsTracingContext(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
return internalGetTracingContext().getMap().containsKey(key);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Use {@link #getTracingContextMap()} instead.
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public long getTraceId() {
|
@java.lang.Deprecated
|
||||||
return traceId_;
|
public java.util.Map<java.lang.String, java.lang.String> getTracingContext() {
|
||||||
|
return getTracingContextMap();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* TraceID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 trace_id = 1;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @param value The traceId to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setTraceId(long value) {
|
|
||||||
|
|
||||||
traceId_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* TraceID of request
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* <code>uint64 trace_id = 1;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearTraceId() {
|
|
||||||
|
|
||||||
traceId_ = 0L;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private long spanId_ ;
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* SpanID of request
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* <code>uint64 span_id = 2;</code>
|
|
||||||
* @return The spanId.
|
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public long getSpanId() {
|
|
||||||
return spanId_;
|
public java.util.Map<java.lang.String, java.lang.String> getTracingContextMap() {
|
||||||
|
return internalGetTracingContext().getMap();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* SpanID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 span_id = 2;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @param value The spanId to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
*/
|
||||||
public Builder setSpanId(long value) {
|
@java.lang.Override
|
||||||
|
|
||||||
spanId_ = value;
|
public java.lang.String getTracingContextOrDefault(
|
||||||
onChanged();
|
java.lang.String key,
|
||||||
|
java.lang.String defaultValue) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> map =
|
||||||
|
internalGetTracingContext().getMap();
|
||||||
|
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
|
||||||
|
public java.lang.String getTracingContextOrThrow(
|
||||||
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> map =
|
||||||
|
internalGetTracingContext().getMap();
|
||||||
|
if (!map.containsKey(key)) {
|
||||||
|
throw new java.lang.IllegalArgumentException();
|
||||||
|
}
|
||||||
|
return map.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder clearTracingContext() {
|
||||||
|
internalGetMutableTracingContext().getMutableMap()
|
||||||
|
.clear();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* SpanID of request
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>uint64 span_id = 2;</code>
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
*/
|
||||||
public Builder clearSpanId() {
|
|
||||||
|
|
||||||
spanId_ = 0L;
|
public Builder removeTracingContext(
|
||||||
onChanged();
|
java.lang.String key) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
internalGetMutableTracingContext().getMutableMap()
|
||||||
|
.remove(key);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Use alternate mutation accessors instead.
|
||||||
|
*/
|
||||||
|
@java.lang.Deprecated
|
||||||
|
public java.util.Map<java.lang.String, java.lang.String>
|
||||||
|
getMutableTracingContext() {
|
||||||
|
return internalGetMutableTracingContext().getMutableMap();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
public Builder putTracingContext(
|
||||||
|
java.lang.String key,
|
||||||
|
java.lang.String value) {
|
||||||
|
if (key == null) { throw new NullPointerException("map key"); }
|
||||||
|
if (value == null) {
|
||||||
|
throw new NullPointerException("map value");
|
||||||
|
}
|
||||||
|
|
||||||
|
internalGetMutableTracingContext().getMutableMap()
|
||||||
|
.put(key, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>map<string, string> tracing_context = 5;</code>
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Builder putAllTracingContext(
|
||||||
|
java.util.Map<java.lang.String, java.lang.String> values) {
|
||||||
|
internalGetMutableTracingContext().getMutableMap()
|
||||||
|
.putAll(values);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -18756,6 +18963,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_region_RegionRequestHeader_fieldAccessorTable;
|
internal_static_greptime_v1_region_RegionRequestHeader_fieldAccessorTable;
|
||||||
|
private static final com.google.protobuf.Descriptors.Descriptor
|
||||||
|
internal_static_greptime_v1_region_RegionRequestHeader_TracingContextEntry_descriptor;
|
||||||
|
private static final
|
||||||
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
|
internal_static_greptime_v1_region_RegionRequestHeader_TracingContextEntry_fieldAccessorTable;
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
private static final com.google.protobuf.Descriptors.Descriptor
|
||||||
internal_static_greptime_v1_region_RegionRequest_descriptor;
|
internal_static_greptime_v1_region_RegionRequest_descriptor;
|
||||||
private static final
|
private static final
|
||||||
@@ -18878,69 +19090,72 @@ java.lang.String defaultValue);
|
|||||||
"\n\037greptime/v1/region/server.proto\022\022grept" +
|
"\n\037greptime/v1/region/server.proto\022\022grept" +
|
||||||
"ime.v1.region\032\030greptime/v1/common.proto\032" +
|
"ime.v1.region\032\030greptime/v1/common.proto\032" +
|
||||||
"\025greptime/v1/row.proto\032\025greptime/v1/ddl." +
|
"\025greptime/v1/row.proto\032\025greptime/v1/ddl." +
|
||||||
"proto\"H\n\023RegionRequestHeader\022\020\n\010trace_id" +
|
"proto\"\262\001\n\023RegionRequestHeader\022T\n\017tracing" +
|
||||||
"\030\001 \001(\004\022\017\n\007span_id\030\002 \001(\004\022\016\n\006dbname\030\003 \001(\t\"" +
|
"_context\030\005 \003(\0132;.greptime.v1.region.Regi" +
|
||||||
"\336\004\n\rRegionRequest\0227\n\006header\030\001 \001(\0132\'.grep" +
|
"onRequestHeader.TracingContextEntry\022\016\n\006d" +
|
||||||
"time.v1.region.RegionRequestHeader\0225\n\007in" +
|
"bname\030\003 \001(\t\0325\n\023TracingContextEntry\022\013\n\003ke" +
|
||||||
"serts\030\003 \001(\0132\".greptime.v1.region.InsertR" +
|
"y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\336\004\n\rRegionReq" +
|
||||||
"equestsH\000\0225\n\007deletes\030\004 \001(\0132\".greptime.v1" +
|
"uest\0227\n\006header\030\001 \001(\0132\'.greptime.v1.regio" +
|
||||||
".region.DeleteRequestsH\000\0223\n\006create\030\005 \001(\013" +
|
"n.RegionRequestHeader\0225\n\007inserts\030\003 \001(\0132\"" +
|
||||||
"2!.greptime.v1.region.CreateRequestH\000\022/\n" +
|
".greptime.v1.region.InsertRequestsH\000\0225\n\007" +
|
||||||
"\004drop\030\006 \001(\0132\037.greptime.v1.region.DropReq" +
|
"deletes\030\004 \001(\0132\".greptime.v1.region.Delet" +
|
||||||
"uestH\000\022/\n\004open\030\007 \001(\0132\037.greptime.v1.regio" +
|
"eRequestsH\000\0223\n\006create\030\005 \001(\0132!.greptime.v" +
|
||||||
"n.OpenRequestH\000\0221\n\005close\030\010 \001(\0132 .greptim" +
|
"1.region.CreateRequestH\000\022/\n\004drop\030\006 \001(\0132\037" +
|
||||||
"e.v1.region.CloseRequestH\000\0221\n\005alter\030\t \001(" +
|
".greptime.v1.region.DropRequestH\000\022/\n\004ope" +
|
||||||
"\0132 .greptime.v1.region.AlterRequestH\000\0221\n" +
|
"n\030\007 \001(\0132\037.greptime.v1.region.OpenRequest" +
|
||||||
"\005flush\030\n \001(\0132 .greptime.v1.region.FlushR" +
|
"H\000\0221\n\005close\030\010 \001(\0132 .greptime.v1.region.C" +
|
||||||
"equestH\000\0225\n\007compact\030\013 \001(\0132\".greptime.v1." +
|
"loseRequestH\000\0221\n\005alter\030\t \001(\0132 .greptime." +
|
||||||
"region.CompactRequestH\000\0227\n\010truncate\030\014 \001(" +
|
"v1.region.AlterRequestH\000\0221\n\005flush\030\n \001(\0132" +
|
||||||
"\0132#.greptime.v1.region.TruncateRequestH\000" +
|
" .greptime.v1.region.FlushRequestH\000\0225\n\007c" +
|
||||||
"B\006\n\004body\"T\n\016RegionResponse\022+\n\006header\030\001 \001" +
|
"ompact\030\013 \001(\0132\".greptime.v1.region.Compac" +
|
||||||
"(\0132\033.greptime.v1.ResponseHeader\022\025\n\raffec" +
|
"tRequestH\000\0227\n\010truncate\030\014 \001(\0132#.greptime." +
|
||||||
"ted_rows\030\002 \001(\004\"E\n\016InsertRequests\0223\n\010requ" +
|
"v1.region.TruncateRequestH\000B\006\n\004body\"T\n\016R" +
|
||||||
"ests\030\001 \003(\0132!.greptime.v1.region.InsertRe" +
|
"egionResponse\022+\n\006header\030\001 \001(\0132\033.greptime" +
|
||||||
"quest\"E\n\016DeleteRequests\0223\n\010requests\030\001 \003(" +
|
".v1.ResponseHeader\022\025\n\raffected_rows\030\002 \001(" +
|
||||||
"\0132!.greptime.v1.region.DeleteRequest\"C\n\r" +
|
"\004\"E\n\016InsertRequests\0223\n\010requests\030\001 \003(\0132!." +
|
||||||
"InsertRequest\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows" +
|
"greptime.v1.region.InsertRequest\"E\n\016Dele" +
|
||||||
"\030\002 \001(\0132\021.greptime.v1.Rows\"C\n\rDeleteReque" +
|
"teRequests\0223\n\010requests\030\001 \003(\0132!.greptime." +
|
||||||
"st\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.gr" +
|
"v1.region.DeleteRequest\"C\n\rInsertRequest" +
|
||||||
"eptime.v1.Rows\"h\n\014QueryRequest\0227\n\006header" +
|
"\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.grep" +
|
||||||
"\030\001 \001(\0132\'.greptime.v1.region.RegionReques" +
|
"time.v1.Rows\"C\n\rDeleteRequest\022\021\n\tregion_" +
|
||||||
"tHeader\022\021\n\tregion_id\030\002 \001(\004\022\014\n\004plan\030\003 \001(\014" +
|
"id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Row" +
|
||||||
"\"\200\002\n\rCreateRequest\022\021\n\tregion_id\030\001 \001(\004\022\016\n" +
|
"s\"h\n\014QueryRequest\0227\n\006header\030\001 \001(\0132\'.grep" +
|
||||||
"\006engine\030\002 \001(\t\0228\n\013column_defs\030\003 \003(\0132#.gre" +
|
"time.v1.region.RegionRequestHeader\022\021\n\tre" +
|
||||||
"ptime.v1.region.RegionColumnDef\022\023\n\013prima" +
|
"gion_id\030\002 \001(\004\022\014\n\004plan\030\003 \001(\014\"\200\002\n\rCreateRe" +
|
||||||
"ry_key\030\004 \003(\r\022\014\n\004path\030\005 \001(\t\022?\n\007options\030\006 " +
|
"quest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t" +
|
||||||
"\003(\0132..greptime.v1.region.CreateRequest.O" +
|
"\0228\n\013column_defs\030\003 \003(\0132#.greptime.v1.regi" +
|
||||||
"ptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t" +
|
"on.RegionColumnDef\022\023\n\013primary_key\030\004 \003(\r\022" +
|
||||||
"\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022\021\n\tre" +
|
"\014\n\004path\030\005 \001(\t\022?\n\007options\030\006 \003(\0132..greptim" +
|
||||||
"gion_id\030\001 \001(\004\"\255\001\n\013OpenRequest\022\021\n\tregion_" +
|
"e.v1.region.CreateRequest.OptionsEntry\032." +
|
||||||
"id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022=" +
|
"\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" +
|
||||||
"\n\007options\030\004 \003(\0132,.greptime.v1.region.Ope" +
|
"(\t:\0028\001\" \n\013DropRequest\022\021\n\tregion_id\030\001 \001(\004" +
|
||||||
"nRequest.OptionsEntry\032.\n\014OptionsEntry\022\013\n" +
|
"\"\255\001\n\013OpenRequest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006e" +
|
||||||
"\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRe" +
|
"ngine\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022=\n\007options\030\004 \003" +
|
||||||
"quest\022\021\n\tregion_id\030\001 \001(\004\"\261\001\n\014AlterReques" +
|
"(\0132,.greptime.v1.region.OpenRequest.Opti" +
|
||||||
"t\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030\002 \001(" +
|
"onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" +
|
||||||
"\0132\036.greptime.v1.region.AddColumnsH\000\0227\n\014d" +
|
"\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregi" +
|
||||||
"rop_columns\030\003 \001(\0132\037.greptime.v1.region.D" +
|
"on_id\030\001 \001(\004\"\261\001\n\014AlterRequest\022\021\n\tregion_i" +
|
||||||
"ropColumnsH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004" +
|
"d\030\001 \001(\004\0225\n\013add_columns\030\002 \001(\0132\036.greptime." +
|
||||||
"kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(\0132" +
|
"v1.region.AddColumnsH\000\0227\n\014drop_columns\030\003" +
|
||||||
"\035.greptime.v1.region.AddColumn\"C\n\013DropCo" +
|
" \001(\0132\037.greptime.v1.region.DropColumnsH\000\022" +
|
||||||
"lumns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime.v" +
|
"\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddCo" +
|
||||||
"1.region.DropColumn\"v\n\tAddColumn\0227\n\ncolu" +
|
"lumns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v1" +
|
||||||
"mn_def\030\001 \001(\0132#.greptime.v1.region.Region" +
|
".region.AddColumn\"C\n\013DropColumns\0224\n\014drop" +
|
||||||
"ColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v" +
|
"_columns\030\001 \003(\0132\036.greptime.v1.region.Drop" +
|
||||||
"1.AddColumnLocation\"\032\n\nDropColumn\022\014\n\004nam" +
|
"Column\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132" +
|
||||||
"e\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001" +
|
"#.greptime.v1.region.RegionColumnDef\0220\n\010" +
|
||||||
"(\004\"#\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"" +
|
"location\030\003 \001(\0132\036.greptime.v1.AddColumnLo" +
|
||||||
"$\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n" +
|
"cation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014Fl" +
|
||||||
"\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.g" +
|
"ushRequest\022\021\n\tregion_id\030\001 \001(\004\"#\n\016Compact" +
|
||||||
"reptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2" +
|
"Request\022\021\n\tregion_id\030\001 \001(\004\"$\n\017TruncateRe" +
|
||||||
"Y\n\006Region\022O\n\006Handle\022!.greptime.v1.region" +
|
"quest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumn" +
|
||||||
".RegionRequest\032\".greptime.v1.region.Regi" +
|
"Def\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Co" +
|
||||||
"onResponseB]\n\025io.greptime.v1.regionB\006Ser" +
|
"lumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006" +
|
||||||
"verZ<github.com/GreptimeTeam/greptime-pr" +
|
"Handle\022!.greptime.v1.region.RegionReques" +
|
||||||
"oto/go/greptime/v1/regionb\006proto3"
|
"t\032\".greptime.v1.region.RegionResponseB]\n" +
|
||||||
|
"\025io.greptime.v1.regionB\006ServerZ<github.c" +
|
||||||
|
"om/GreptimeTeam/greptime-proto/go/grepti" +
|
||||||
|
"me/v1/regionb\006proto3"
|
||||||
};
|
};
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
.internalBuildGeneratedFileFrom(descriptorData,
|
||||||
@@ -18954,7 +19169,13 @@ java.lang.String defaultValue);
|
|||||||
internal_static_greptime_v1_region_RegionRequestHeader_fieldAccessorTable = new
|
internal_static_greptime_v1_region_RegionRequestHeader_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_region_RegionRequestHeader_descriptor,
|
internal_static_greptime_v1_region_RegionRequestHeader_descriptor,
|
||||||
new java.lang.String[] { "TraceId", "SpanId", "Dbname", });
|
new java.lang.String[] { "TracingContext", "Dbname", });
|
||||||
|
internal_static_greptime_v1_region_RegionRequestHeader_TracingContextEntry_descriptor =
|
||||||
|
internal_static_greptime_v1_region_RegionRequestHeader_descriptor.getNestedTypes().get(0);
|
||||||
|
internal_static_greptime_v1_region_RegionRequestHeader_TracingContextEntry_fieldAccessorTable = new
|
||||||
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
|
internal_static_greptime_v1_region_RegionRequestHeader_TracingContextEntry_descriptor,
|
||||||
|
new java.lang.String[] { "Key", "Value", });
|
||||||
internal_static_greptime_v1_region_RegionRequest_descriptor =
|
internal_static_greptime_v1_region_RegionRequest_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(1);
|
getDescriptor().getMessageTypes().get(1);
|
||||||
internal_static_greptime_v1_region_RegionRequest_fieldAccessorTable = new
|
internal_static_greptime_v1_region_RegionRequest_fieldAccessorTable = new
|
||||||
|
|||||||
@@ -29,10 +29,9 @@ message RequestHeader {
|
|||||||
AuthHeader authorization = 3;
|
AuthHeader authorization = 3;
|
||||||
// The `dbname` for the request
|
// The `dbname` for the request
|
||||||
string dbname = 4;
|
string dbname = 4;
|
||||||
// TraceID of request
|
// Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
uint64 trace_id = 5;
|
// https://www.w3.org/TR/trace-context/#header-name
|
||||||
// SpanID of request
|
map<string, string> tracing_context = 5;
|
||||||
uint64 span_id = 6;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message ResponseHeader { Status status = 1; }
|
message ResponseHeader { Status status = 1; }
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ message RequestHeader {
|
|||||||
// member_id is the ID of the sender server.
|
// member_id is the ID of the sender server.
|
||||||
uint64 member_id = 3;
|
uint64 member_id = 3;
|
||||||
Role role = 4;
|
Role role = 4;
|
||||||
|
// Encoded trace_id & span_id, follow the w3c Trace Context
|
||||||
|
// https://www.w3.org/TR/trace-context/#header-name
|
||||||
|
map<string, string> tracing_context = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Role {
|
enum Role {
|
||||||
@@ -49,9 +52,7 @@ message Peer {
|
|||||||
string addr = 2;
|
string addr = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message TableId {
|
message TableId { uint32 id = 1; }
|
||||||
uint32 id = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message TableName {
|
message TableName {
|
||||||
string catalog_name = 1;
|
string catalog_name = 1;
|
||||||
|
|||||||
@@ -27,10 +27,8 @@ import "greptime/v1/ddl.proto";
|
|||||||
service Region { rpc Handle(RegionRequest) returns (RegionResponse); }
|
service Region { rpc Handle(RegionRequest) returns (RegionResponse); }
|
||||||
|
|
||||||
message RegionRequestHeader {
|
message RegionRequestHeader {
|
||||||
// TraceID of request
|
// Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||||
uint64 trace_id = 1;
|
map<string, string> tracing_context = 5;
|
||||||
// SpanID of request
|
|
||||||
uint64 span_id = 2;
|
|
||||||
// DB Name of request, tracking only
|
// DB Name of request, tracking only
|
||||||
string dbname = 3;
|
string dbname = 3;
|
||||||
}
|
}
|
||||||
|
|||||||
+18
-3
@@ -59,12 +59,17 @@ impl Eq for Peer {}
|
|||||||
|
|
||||||
impl RequestHeader {
|
impl RequestHeader {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn new((cluster_id, member_id): (u64, u64), role: Role) -> Self {
|
pub fn new(
|
||||||
|
(cluster_id, member_id): (u64, u64),
|
||||||
|
role: Role,
|
||||||
|
tracing_context: HashMap<String, String>,
|
||||||
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
protocol_version: PROTOCOL_VERSION,
|
protocol_version: PROTOCOL_VERSION,
|
||||||
cluster_id,
|
cluster_id,
|
||||||
member_id,
|
member_id,
|
||||||
role: role.into(),
|
role: role.into(),
|
||||||
|
tracing_context,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -138,15 +143,25 @@ macro_rules! gen_set_header {
|
|||||||
($req: ty) => {
|
($req: ty) => {
|
||||||
impl $req {
|
impl $req {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn set_header(&mut self, (cluster_id, member_id): (u64, u64), role: Role) {
|
pub fn set_header(
|
||||||
|
&mut self,
|
||||||
|
(cluster_id, member_id): (u64, u64),
|
||||||
|
role: Role,
|
||||||
|
tracing_context: HashMap<String, String>,
|
||||||
|
) {
|
||||||
match self.header.as_mut() {
|
match self.header.as_mut() {
|
||||||
Some(header) => {
|
Some(header) => {
|
||||||
header.cluster_id = cluster_id;
|
header.cluster_id = cluster_id;
|
||||||
header.member_id = member_id;
|
header.member_id = member_id;
|
||||||
header.role = role.into();
|
header.role = role.into();
|
||||||
|
header.tracing_context = tracing_context;
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
self.header = Some(RequestHeader::new((cluster_id, member_id), role));
|
self.header = Some(RequestHeader::new(
|
||||||
|
(cluster_id, member_id),
|
||||||
|
role,
|
||||||
|
tracing_context,
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user