feat: support timezone in gRPC query (#132)
This commit is contained in:
+102
-49
@@ -39,6 +39,7 @@ PROTOBUF_CONSTEXPR RequestHeader::RequestHeader(
|
||||
, /*decltype(_impl_.catalog_)*/{&::_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_.timezone_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.authorization_)*/nullptr
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct RequestHeaderDefaultTypeInternal {
|
||||
@@ -229,6 +230,7 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.authorization_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.dbname_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.tracing_context_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RequestHeader, _impl_.timezone_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::ResponseHeader, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -319,17 +321,17 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 8, -1, sizeof(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse)},
|
||||
{ 10, -1, -1, sizeof(::greptime::v1::RequestHeader)},
|
||||
{ 21, -1, -1, sizeof(::greptime::v1::ResponseHeader)},
|
||||
{ 28, -1, -1, sizeof(::greptime::v1::Status)},
|
||||
{ 36, -1, -1, sizeof(::greptime::v1::AuthHeader)},
|
||||
{ 45, -1, -1, sizeof(::greptime::v1::Basic)},
|
||||
{ 53, -1, -1, sizeof(::greptime::v1::Token)},
|
||||
{ 60, -1, -1, sizeof(::greptime::v1::AffectedRows)},
|
||||
{ 67, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
|
||||
{ 74, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
|
||||
{ 83, -1, -1, sizeof(::greptime::v1::Decimal128)},
|
||||
{ 91, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
|
||||
{ 99, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
|
||||
{ 22, -1, -1, sizeof(::greptime::v1::ResponseHeader)},
|
||||
{ 29, -1, -1, sizeof(::greptime::v1::Status)},
|
||||
{ 37, -1, -1, sizeof(::greptime::v1::AuthHeader)},
|
||||
{ 46, -1, -1, sizeof(::greptime::v1::Basic)},
|
||||
{ 54, -1, -1, sizeof(::greptime::v1::Token)},
|
||||
{ 61, -1, -1, sizeof(::greptime::v1::AffectedRows)},
|
||||
{ 68, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
|
||||
{ 75, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
|
||||
{ 84, -1, -1, sizeof(::greptime::v1::Decimal128)},
|
||||
{ 92, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
|
||||
{ 100, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -350,50 +352,51 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
|
||||
const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||
"\n\030greptime/v1/common.proto\022\013greptime.v1\""
|
||||
"\360\001\n\rRequestHeader\022\017\n\007catalog\030\001 \001(\t\022\016\n\006sc"
|
||||
"\202\002\n\rRequestHeader\022\017\n\007catalog\030\001 \001(\t\022\016\n\006sc"
|
||||
"hema\030\002 \001(\t\022.\n\rauthorization\030\003 \001(\0132\027.grep"
|
||||
"time.v1.AuthHeader\022\016\n\006dbname\030\004 \001(\t\022G\n\017tr"
|
||||
"acing_context\030\005 \003(\0132..greptime.v1.Reques"
|
||||
"tHeader.TracingContextEntry\0325\n\023TracingCo"
|
||||
"ntextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
|
||||
"8\001\"5\n\016ResponseHeader\022#\n\006status\030\001 \001(\0132\023.g"
|
||||
"reptime.v1.Status\".\n\006Status\022\023\n\013status_co"
|
||||
"de\030\001 \001(\r\022\017\n\007err_msg\030\002 \001(\t\"e\n\nAuthHeader\022"
|
||||
"#\n\005basic\030\001 \001(\0132\022.greptime.v1.BasicH\000\022#\n\005"
|
||||
"token\030\002 \001(\0132\022.greptime.v1.TokenH\000B\r\n\013aut"
|
||||
"h_scheme\"+\n\005Basic\022\020\n\010username\030\001 \001(\t\022\020\n\010p"
|
||||
"assword\030\002 \001(\t\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n"
|
||||
"\014AffectedRows\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMe"
|
||||
"tadata\0220\n\raffected_rows\030\001 \001(\0132\031.greptime"
|
||||
".v1.AffectedRows\"I\n\024IntervalMonthDayNano"
|
||||
"\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanose"
|
||||
"conds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n\n"
|
||||
"\002lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtension\0229\n\014"
|
||||
"decimal_type\030\001 \001(\0132!.greptime.v1.Decimal"
|
||||
"TypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalTy"
|
||||
"peExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030"
|
||||
"\002 \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020"
|
||||
"\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016ColumnDataType\022\013\n\007B"
|
||||
"OOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003"
|
||||
"\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UI"
|
||||
"NT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT"
|
||||
"64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014"
|
||||
"\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TI"
|
||||
"MESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICRO"
|
||||
"SECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TI"
|
||||
"ME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIM"
|
||||
"E_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023"
|
||||
"INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TI"
|
||||
"ME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\023\n\017DUR"
|
||||
"ATION_SECOND\020\032\022\030\n\024DURATION_MILLISECOND\020\033"
|
||||
"\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURATION_N"
|
||||
"ANOSECOND\020\035\022\016\n\nDECIMAL128\020\036BO\n\016io.grepti"
|
||||
"me.v1B\006CommonZ5github.com/GreptimeTeam/g"
|
||||
"reptime-proto/go/greptime/v1b\006proto3"
|
||||
"tHeader.TracingContextEntry\022\020\n\010timezone\030"
|
||||
"\006 \001(\t\0325\n\023TracingContextEntry\022\013\n\003key\030\001 \001("
|
||||
"\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\016ResponseHeader\022#"
|
||||
"\n\006status\030\001 \001(\0132\023.greptime.v1.Status\".\n\006S"
|
||||
"tatus\022\023\n\013status_code\030\001 \001(\r\022\017\n\007err_msg\030\002 "
|
||||
"\001(\t\"e\n\nAuthHeader\022#\n\005basic\030\001 \001(\0132\022.grept"
|
||||
"ime.v1.BasicH\000\022#\n\005token\030\002 \001(\0132\022.greptime"
|
||||
".v1.TokenH\000B\r\n\013auth_scheme\"+\n\005Basic\022\020\n\010u"
|
||||
"sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005Token"
|
||||
"\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows\022\r\n\005value"
|
||||
"\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raffected_row"
|
||||
"s\030\001 \001(\0132\031.greptime.v1.AffectedRows\"I\n\024In"
|
||||
"tervalMonthDayNano\022\016\n\006months\030\001 \001(\005\022\014\n\004da"
|
||||
"ys\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003\"$\n\nDecimal"
|
||||
"128\022\n\n\002hi\030\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"`\n\027ColumnDat"
|
||||
"aTypeExtension\0229\n\014decimal_type\030\001 \001(\0132!.g"
|
||||
"reptime.v1.DecimalTypeExtensionH\000B\n\n\010typ"
|
||||
"e_ext\"8\n\024DecimalTypeExtension\022\021\n\tprecisi"
|
||||
"on\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005*1\n\014SemanticType\022"
|
||||
"\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016C"
|
||||
"olumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005"
|
||||
"INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005"
|
||||
"\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007"
|
||||
"FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006ST"
|
||||
"RING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMEST"
|
||||
"AMP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022"
|
||||
"\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIMESTAMP_"
|
||||
"NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MI"
|
||||
"LLISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022\023\n\017TIM"
|
||||
"E_NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022"
|
||||
"\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL_MONTH"
|
||||
"_DAY_NANO\020\031\022\023\n\017DURATION_SECOND\020\032\022\030\n\024DURA"
|
||||
"TION_MILLISECOND\020\033\022\030\n\024DURATION_MICROSECO"
|
||||
"ND\020\034\022\027\n\023DURATION_NANOSECOND\020\035\022\016\n\nDECIMAL"
|
||||
"128\020\036BO\n\016io.greptime.v1B\006CommonZ5github."
|
||||
"com/GreptimeTeam/greptime-proto/go/grept"
|
||||
"ime/v1b\006proto3"
|
||||
;
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = {
|
||||
false, false, 1636, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
||||
false, false, 1654, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
||||
"greptime/v1/common.proto",
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 13,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fcommon_2eproto::offsets,
|
||||
@@ -509,6 +512,7 @@ RequestHeader::RequestHeader(const RequestHeader& from)
|
||||
, decltype(_impl_.catalog_){}
|
||||
, decltype(_impl_.schema_){}
|
||||
, decltype(_impl_.dbname_){}
|
||||
, decltype(_impl_.timezone_){}
|
||||
, decltype(_impl_.authorization_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
@@ -538,6 +542,14 @@ RequestHeader::RequestHeader(const RequestHeader& from)
|
||||
_this->_impl_.dbname_.Set(from._internal_dbname(),
|
||||
_this->GetArenaForAllocation());
|
||||
}
|
||||
_impl_.timezone_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.timezone_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (!from._internal_timezone().empty()) {
|
||||
_this->_impl_.timezone_.Set(from._internal_timezone(),
|
||||
_this->GetArenaForAllocation());
|
||||
}
|
||||
if (from._internal_has_authorization()) {
|
||||
_this->_impl_.authorization_ = new ::greptime::v1::AuthHeader(*from._impl_.authorization_);
|
||||
}
|
||||
@@ -553,6 +565,7 @@ inline void RequestHeader::SharedCtor(
|
||||
, decltype(_impl_.catalog_){}
|
||||
, decltype(_impl_.schema_){}
|
||||
, decltype(_impl_.dbname_){}
|
||||
, decltype(_impl_.timezone_){}
|
||||
, decltype(_impl_.authorization_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
@@ -568,6 +581,10 @@ inline void RequestHeader::SharedCtor(
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.dbname_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.timezone_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.timezone_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
}
|
||||
|
||||
RequestHeader::~RequestHeader() {
|
||||
@@ -587,6 +604,7 @@ inline void RequestHeader::SharedDtor() {
|
||||
_impl_.catalog_.Destroy();
|
||||
_impl_.schema_.Destroy();
|
||||
_impl_.dbname_.Destroy();
|
||||
_impl_.timezone_.Destroy();
|
||||
if (this != internal_default_instance()) delete _impl_.authorization_;
|
||||
}
|
||||
|
||||
@@ -608,6 +626,7 @@ void RequestHeader::Clear() {
|
||||
_impl_.catalog_.ClearToEmpty();
|
||||
_impl_.schema_.ClearToEmpty();
|
||||
_impl_.dbname_.ClearToEmpty();
|
||||
_impl_.timezone_.ClearToEmpty();
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.authorization_ != nullptr) {
|
||||
delete _impl_.authorization_;
|
||||
}
|
||||
@@ -672,6 +691,16 @@ const char* RequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// string timezone = 6;
|
||||
case 6:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
|
||||
auto str = _internal_mutable_timezone();
|
||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||
CHK_(ptr);
|
||||
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.RequestHeader.timezone"));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -768,6 +797,16 @@ uint8_t* RequestHeader::_InternalSerialize(
|
||||
}
|
||||
}
|
||||
|
||||
// string timezone = 6;
|
||||
if (!this->_internal_timezone().empty()) {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||
this->_internal_timezone().data(), static_cast<int>(this->_internal_timezone().length()),
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||
"greptime.v1.RequestHeader.timezone");
|
||||
target = stream->WriteStringMaybeAliased(
|
||||
6, this->_internal_timezone(), target);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
@@ -814,6 +853,13 @@ size_t RequestHeader::ByteSizeLong() const {
|
||||
this->_internal_dbname());
|
||||
}
|
||||
|
||||
// string timezone = 6;
|
||||
if (!this->_internal_timezone().empty()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||
this->_internal_timezone());
|
||||
}
|
||||
|
||||
// .greptime.v1.AuthHeader authorization = 3;
|
||||
if (this->_internal_has_authorization()) {
|
||||
total_size += 1 +
|
||||
@@ -849,6 +895,9 @@ void RequestHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
|
||||
if (!from._internal_dbname().empty()) {
|
||||
_this->_internal_set_dbname(from._internal_dbname());
|
||||
}
|
||||
if (!from._internal_timezone().empty()) {
|
||||
_this->_internal_set_timezone(from._internal_timezone());
|
||||
}
|
||||
if (from._internal_has_authorization()) {
|
||||
_this->_internal_mutable_authorization()->::greptime::v1::AuthHeader::MergeFrom(
|
||||
from._internal_authorization());
|
||||
@@ -885,6 +934,10 @@ void RequestHeader::InternalSwap(RequestHeader* other) {
|
||||
&_impl_.dbname_, lhs_arena,
|
||||
&other->_impl_.dbname_, rhs_arena
|
||||
);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||
&_impl_.timezone_, lhs_arena,
|
||||
&other->_impl_.timezone_, rhs_arena
|
||||
);
|
||||
swap(_impl_.authorization_, other->_impl_.authorization_);
|
||||
}
|
||||
|
||||
|
||||
@@ -347,6 +347,7 @@ class RequestHeader final :
|
||||
kCatalogFieldNumber = 1,
|
||||
kSchemaFieldNumber = 2,
|
||||
kDbnameFieldNumber = 4,
|
||||
kTimezoneFieldNumber = 6,
|
||||
kAuthorizationFieldNumber = 3,
|
||||
};
|
||||
// map<string, string> tracing_context = 5;
|
||||
@@ -408,6 +409,20 @@ class RequestHeader final :
|
||||
std::string* _internal_mutable_dbname();
|
||||
public:
|
||||
|
||||
// string timezone = 6;
|
||||
void clear_timezone();
|
||||
const std::string& timezone() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_timezone(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_timezone();
|
||||
PROTOBUF_NODISCARD std::string* release_timezone();
|
||||
void set_allocated_timezone(std::string* timezone);
|
||||
private:
|
||||
const std::string& _internal_timezone() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_timezone(const std::string& value);
|
||||
std::string* _internal_mutable_timezone();
|
||||
public:
|
||||
|
||||
// .greptime.v1.AuthHeader authorization = 3;
|
||||
bool has_authorization() const;
|
||||
private:
|
||||
@@ -442,6 +457,7 @@ class RequestHeader final :
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbname_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr timezone_;
|
||||
::greptime::v1::AuthHeader* authorization_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
@@ -2536,6 +2552,56 @@ RequestHeader::mutable_tracing_context() {
|
||||
return _internal_mutable_tracing_context();
|
||||
}
|
||||
|
||||
// string timezone = 6;
|
||||
inline void RequestHeader::clear_timezone() {
|
||||
_impl_.timezone_.ClearToEmpty();
|
||||
}
|
||||
inline const std::string& RequestHeader::timezone() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.RequestHeader.timezone)
|
||||
return _internal_timezone();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void RequestHeader::set_timezone(ArgT0&& arg0, ArgT... args) {
|
||||
|
||||
_impl_.timezone_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.RequestHeader.timezone)
|
||||
}
|
||||
inline std::string* RequestHeader::mutable_timezone() {
|
||||
std::string* _s = _internal_mutable_timezone();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.RequestHeader.timezone)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& RequestHeader::_internal_timezone() const {
|
||||
return _impl_.timezone_.Get();
|
||||
}
|
||||
inline void RequestHeader::_internal_set_timezone(const std::string& value) {
|
||||
|
||||
_impl_.timezone_.Set(value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* RequestHeader::_internal_mutable_timezone() {
|
||||
|
||||
return _impl_.timezone_.Mutable(GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* RequestHeader::release_timezone() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.RequestHeader.timezone)
|
||||
return _impl_.timezone_.Release();
|
||||
}
|
||||
inline void RequestHeader::set_allocated_timezone(std::string* timezone) {
|
||||
if (timezone != nullptr) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.timezone_.SetAllocated(timezone, GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (_impl_.timezone_.IsDefault()) {
|
||||
_impl_.timezone_.Set("", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.RequestHeader.timezone)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// ResponseHeader
|
||||
|
||||
+111
-101
@@ -232,6 +232,8 @@ type RequestHeader struct {
|
||||
// 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"`
|
||||
// The `timezone` for the request
|
||||
Timezone string `protobuf:"bytes,6,opt,name=timezone,proto3" json:"timezone,omitempty"`
|
||||
}
|
||||
|
||||
func (x *RequestHeader) Reset() {
|
||||
@@ -301,6 +303,13 @@ func (x *RequestHeader) GetTracingContext() map[string]string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RequestHeader) GetTimezone() string {
|
||||
if x != nil {
|
||||
return x.Timezone
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ResponseHeader struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -928,7 +937,7 @@ var File_greptime_v1_common_proto protoreflect.FileDescriptor
|
||||
var file_greptime_v1_common_proto_rawDesc = []byte{
|
||||
0x0a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f,
|
||||
0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x22, 0xb4, 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x22, 0xd0, 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x61, 0x74,
|
||||
0x61, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61,
|
||||
0x6c, 0x6f, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20,
|
||||
@@ -943,106 +952,107 @@ var file_greptime_v1_common_proto_rawDesc = []byte{
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43,
|
||||
0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x74, 0x72, 0x61,
|
||||
0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x1a, 0x41, 0x0a, 0x13, 0x54,
|
||||
0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x74,
|
||||
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d,
|
||||
0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||
0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,
|
||||
0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x42, 0x0a,
|
||||
0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75,
|
||||
0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74,
|
||||
0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f,
|
||||
0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73,
|
||||
0x67, 0x22, 0x73, 0x0a, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
|
||||
0x2a, 0x0a, 0x05, 0x62, 0x61, 0x73, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12,
|
||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x73,
|
||||
0x69, 0x63, 0x48, 0x00, 0x52, 0x05, 0x62, 0x61, 0x73, 0x69, 0x63, 0x12, 0x2a, 0x0a, 0x05, 0x74,
|
||||
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00,
|
||||
0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f,
|
||||
0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x05, 0x42, 0x61, 0x73, 0x69, 0x63, 0x12,
|
||||
0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70,
|
||||
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,
|
||||
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x1d, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x24, 0x0a, 0x0c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74,
|
||||
0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x50, 0x0a, 0x0e,
|
||||
0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3e,
|
||||
0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73,
|
||||
0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x22, 0x64,
|
||||
0x0a, 0x14, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44,
|
||||
0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x12, 0x12,
|
||||
0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x64, 0x61,
|
||||
0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
|
||||
0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63,
|
||||
0x6f, 0x6e, 0x64, 0x73, 0x22, 0x2c, 0x0a, 0x0a, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31,
|
||||
0x32, 0x38, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02,
|
||||
0x68, 0x69, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02,
|
||||
0x6c, 0x6f, 0x22, 0x6d, 0x0a, 0x17, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61,
|
||||
0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a,
|
||||
0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74,
|
||||
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61,
|
||||
0x6c, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78,
|
||||
0x74, 0x22, 0x4a, 0x0a, 0x14, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65,
|
||||
0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65,
|
||||
0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72,
|
||||
0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x2a, 0x31, 0x0a,
|
||||
0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a,
|
||||
0x03, 0x54, 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10,
|
||||
0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02,
|
||||
0x2a, 0xb8, 0x04, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54,
|
||||
0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00,
|
||||
0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e,
|
||||
0x54, 0x31, 0x36, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03,
|
||||
0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55,
|
||||
0x49, 0x4e, 0x54, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36,
|
||||
0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a,
|
||||
0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c,
|
||||
0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54,
|
||||
0x36, 0x34, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b,
|
||||
0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04,
|
||||
0x44, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49,
|
||||
0x4d, 0x45, 0x10, 0x0e, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d,
|
||||
0x50, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49,
|
||||
0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43,
|
||||
0x4f, 0x4e, 0x44, 0x10, 0x10, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41,
|
||||
0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11,
|
||||
0x12, 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41,
|
||||
0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49,
|
||||
0x4d, 0x45, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54,
|
||||
0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
|
||||
0x14, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53,
|
||||
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f,
|
||||
0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13,
|
||||
0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f,
|
||||
0x4e, 0x54, 0x48, 0x10, 0x17, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41,
|
||||
0x4c, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17,
|
||||
0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44,
|
||||
0x41, 0x59, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x19, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x55, 0x52,
|
||||
0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1a, 0x12, 0x18,
|
||||
0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49,
|
||||
0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1b, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41,
|
||||
0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44,
|
||||
0x10, 0x1c, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e,
|
||||
0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1d, 0x12, 0x0e, 0x0a, 0x0a, 0x44,
|
||||
0x45, 0x43, 0x49, 0x4d, 0x41, 0x4c, 0x31, 0x32, 0x38, 0x10, 0x1e, 0x42, 0x4f, 0x0a, 0x0e, 0x69,
|
||||
0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43,
|
||||
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
|
||||
0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67,
|
||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
|
||||
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x33,
|
||||
0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x1a, 0x41, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x63, 0x69,
|
||||
0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
|
||||
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x0e, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x06,
|
||||
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67,
|
||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,
|
||||
0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x42, 0x0a, 0x06, 0x53, 0x74, 0x61,
|
||||
0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f,
|
||||
0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
|
||||
0x43, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x22, 0x73, 0x0a,
|
||||
0x0a, 0x41, 0x75, 0x74, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x05, 0x62,
|
||||
0x61, 0x73, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x48, 0x00,
|
||||
0x52, 0x05, 0x62, 0x61, 0x73, 0x69, 0x63, 0x12, 0x2a, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f,
|
||||
0x6b, 0x65, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x63, 0x68, 0x65,
|
||||
0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x05, 0x42, 0x61, 0x73, 0x69, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x75,
|
||||
0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
|
||||
0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
|
||||
0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
|
||||
0x6f, 0x72, 0x64, 0x22, 0x1d, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05,
|
||||
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b,
|
||||
0x65, 0x6e, 0x22, 0x24, 0x0a, 0x0c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f,
|
||||
0x77, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x50, 0x0a, 0x0e, 0x46, 0x6c, 0x69, 0x67,
|
||||
0x68, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3e, 0x0a, 0x0d, 0x61, 0x66,
|
||||
0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x0c, 0x61, 0x66,
|
||||
0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x22, 0x64, 0x0a, 0x14, 0x49, 0x6e,
|
||||
0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61,
|
||||
0x6e, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61,
|
||||
0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x64, 0x61, 0x79, 0x73, 0x12, 0x20,
|
||||
0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73,
|
||||
0x22, 0x2c, 0x0a, 0x0a, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x12, 0x0e,
|
||||
0x0a, 0x02, 0x68, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x68, 0x69, 0x12, 0x0e,
|
||||
0x0a, 0x02, 0x6c, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x6c, 0x6f, 0x22, 0x6d,
|
||||
0x0a, 0x17, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65,
|
||||
0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0c, 0x64, 0x65, 0x63,
|
||||
0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65,
|
||||
0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
|
||||
0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70,
|
||||
0x65, 0x42, 0x0a, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x22, 0x4a, 0x0a,
|
||||
0x14, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65,
|
||||
0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69,
|
||||
0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73,
|
||||
0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x2a, 0x31, 0x0a, 0x0c, 0x53, 0x65, 0x6d,
|
||||
0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47,
|
||||
0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a,
|
||||
0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02, 0x2a, 0xb8, 0x04, 0x0a,
|
||||
0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12,
|
||||
0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04,
|
||||
0x49, 0x4e, 0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10,
|
||||
0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05,
|
||||
0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49, 0x4e, 0x54, 0x38,
|
||||
0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x06, 0x12, 0x0a,
|
||||
0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49,
|
||||
0x4e, 0x54, 0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33,
|
||||
0x32, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x0a,
|
||||
0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06,
|
||||
0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x45,
|
||||
0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x0e,
|
||||
0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x53, 0x45,
|
||||
0x43, 0x4f, 0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54,
|
||||
0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
|
||||
0x10, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d,
|
||||
0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14,
|
||||
0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45,
|
||||
0x43, 0x4f, 0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53,
|
||||
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f,
|
||||
0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14, 0x12, 0x14, 0x0a,
|
||||
0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e,
|
||||
0x44, 0x10, 0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x41, 0x4e, 0x4f,
|
||||
0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x54, 0x45,
|
||||
0x52, 0x56, 0x41, 0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10,
|
||||
0x17, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x44, 0x41,
|
||||
0x59, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17, 0x49, 0x4e, 0x54, 0x45,
|
||||
0x52, 0x56, 0x41, 0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x4e,
|
||||
0x41, 0x4e, 0x4f, 0x10, 0x19, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f,
|
||||
0x4e, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1a, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55,
|
||||
0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f,
|
||||
0x4e, 0x44, 0x10, 0x1b, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e,
|
||||
0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1c, 0x12, 0x17,
|
||||
0x0a, 0x13, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53,
|
||||
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1d, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x43, 0x49, 0x4d,
|
||||
0x41, 0x4c, 0x31, 0x32, 0x38, 0x10, 0x1e, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f,
|
||||
0x6e, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
@@ -651,6 +651,26 @@ java.lang.String defaultValue);
|
||||
|
||||
java.lang.String getTracingContextOrThrow(
|
||||
java.lang.String key);
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* The `timezone` for the request
|
||||
* </pre>
|
||||
*
|
||||
* <code>string timezone = 6;</code>
|
||||
* @return The timezone.
|
||||
*/
|
||||
java.lang.String getTimezone();
|
||||
/**
|
||||
* <pre>
|
||||
* The `timezone` for the request
|
||||
* </pre>
|
||||
*
|
||||
* <code>string timezone = 6;</code>
|
||||
* @return The bytes for timezone.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getTimezoneBytes();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code greptime.v1.RequestHeader}
|
||||
@@ -668,6 +688,7 @@ java.lang.String defaultValue);
|
||||
catalog_ = "";
|
||||
schema_ = "";
|
||||
dbname_ = "";
|
||||
timezone_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@@ -745,6 +766,12 @@ java.lang.String defaultValue);
|
||||
tracingContext__.getKey(), tracingContext__.getValue());
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
|
||||
timezone_ = s;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -1068,6 +1095,52 @@ java.lang.String defaultValue);
|
||||
return map.get(key);
|
||||
}
|
||||
|
||||
public static final int TIMEZONE_FIELD_NUMBER = 6;
|
||||
private volatile java.lang.Object timezone_;
|
||||
/**
|
||||
* <pre>
|
||||
* The `timezone` for the request
|
||||
* </pre>
|
||||
*
|
||||
* <code>string timezone = 6;</code>
|
||||
* @return The timezone.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.lang.String getTimezone() {
|
||||
java.lang.Object ref = timezone_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
return (java.lang.String) ref;
|
||||
} else {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
timezone_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* The `timezone` for the request
|
||||
* </pre>
|
||||
*
|
||||
* <code>string timezone = 6;</code>
|
||||
* @return The bytes for timezone.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString
|
||||
getTimezoneBytes() {
|
||||
java.lang.Object ref = timezone_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
timezone_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -1100,6 +1173,9 @@ java.lang.String defaultValue);
|
||||
internalGetTracingContext(),
|
||||
TracingContextDefaultEntryHolder.defaultEntry,
|
||||
5);
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, timezone_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@@ -1132,6 +1208,9 @@ java.lang.String defaultValue);
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(5, tracingContext__);
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, timezone_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
@@ -1160,6 +1239,8 @@ java.lang.String defaultValue);
|
||||
.equals(other.getDbname())) return false;
|
||||
if (!internalGetTracingContext().equals(
|
||||
other.internalGetTracingContext())) return false;
|
||||
if (!getTimezone()
|
||||
.equals(other.getTimezone())) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -1185,6 +1266,8 @@ java.lang.String defaultValue);
|
||||
hash = (37 * hash) + TRACING_CONTEXT_FIELD_NUMBER;
|
||||
hash = (53 * hash) + internalGetTracingContext().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + TIMEZONE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTimezone().hashCode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -1353,6 +1436,8 @@ java.lang.String defaultValue);
|
||||
dbname_ = "";
|
||||
|
||||
internalGetMutableTracingContext().clear();
|
||||
timezone_ = "";
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -1390,6 +1475,7 @@ java.lang.String defaultValue);
|
||||
result.dbname_ = dbname_;
|
||||
result.tracingContext_ = internalGetTracingContext();
|
||||
result.tracingContext_.makeImmutable();
|
||||
result.timezone_ = timezone_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -1455,6 +1541,10 @@ java.lang.String defaultValue);
|
||||
}
|
||||
internalGetMutableTracingContext().mergeFrom(
|
||||
other.internalGetTracingContext());
|
||||
if (!other.getTimezone().isEmpty()) {
|
||||
timezone_ = other.timezone_;
|
||||
onChanged();
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -2093,6 +2183,102 @@ java.lang.String defaultValue);
|
||||
.putAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object timezone_ = "";
|
||||
/**
|
||||
* <pre>
|
||||
* The `timezone` for the request
|
||||
* </pre>
|
||||
*
|
||||
* <code>string timezone = 6;</code>
|
||||
* @return The timezone.
|
||||
*/
|
||||
public java.lang.String getTimezone() {
|
||||
java.lang.Object ref = timezone_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
timezone_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* The `timezone` for the request
|
||||
* </pre>
|
||||
*
|
||||
* <code>string timezone = 6;</code>
|
||||
* @return The bytes for timezone.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getTimezoneBytes() {
|
||||
java.lang.Object ref = timezone_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
timezone_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* The `timezone` for the request
|
||||
* </pre>
|
||||
*
|
||||
* <code>string timezone = 6;</code>
|
||||
* @param value The timezone to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTimezone(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
timezone_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* The `timezone` for the request
|
||||
* </pre>
|
||||
*
|
||||
* <code>string timezone = 6;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTimezone() {
|
||||
|
||||
timezone_ = getDefaultInstance().getTimezone();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* The `timezone` for the request
|
||||
* </pre>
|
||||
*
|
||||
* <code>string timezone = 6;</code>
|
||||
* @param value The bytes for timezone to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTimezoneBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
timezone_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -9348,46 +9534,47 @@ java.lang.String defaultValue);
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\030greptime/v1/common.proto\022\013greptime.v1\"" +
|
||||
"\360\001\n\rRequestHeader\022\017\n\007catalog\030\001 \001(\t\022\016\n\006sc" +
|
||||
"\202\002\n\rRequestHeader\022\017\n\007catalog\030\001 \001(\t\022\016\n\006sc" +
|
||||
"hema\030\002 \001(\t\022.\n\rauthorization\030\003 \001(\0132\027.grep" +
|
||||
"time.v1.AuthHeader\022\016\n\006dbname\030\004 \001(\t\022G\n\017tr" +
|
||||
"acing_context\030\005 \003(\0132..greptime.v1.Reques" +
|
||||
"tHeader.TracingContextEntry\0325\n\023TracingCo" +
|
||||
"ntextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" +
|
||||
"8\001\"5\n\016ResponseHeader\022#\n\006status\030\001 \001(\0132\023.g" +
|
||||
"reptime.v1.Status\".\n\006Status\022\023\n\013status_co" +
|
||||
"de\030\001 \001(\r\022\017\n\007err_msg\030\002 \001(\t\"e\n\nAuthHeader\022" +
|
||||
"#\n\005basic\030\001 \001(\0132\022.greptime.v1.BasicH\000\022#\n\005" +
|
||||
"token\030\002 \001(\0132\022.greptime.v1.TokenH\000B\r\n\013aut" +
|
||||
"h_scheme\"+\n\005Basic\022\020\n\010username\030\001 \001(\t\022\020\n\010p" +
|
||||
"assword\030\002 \001(\t\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n" +
|
||||
"\014AffectedRows\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMe" +
|
||||
"tadata\0220\n\raffected_rows\030\001 \001(\0132\031.greptime" +
|
||||
".v1.AffectedRows\"I\n\024IntervalMonthDayNano" +
|
||||
"\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanose" +
|
||||
"conds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n\n" +
|
||||
"\002lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtension\0229\n\014" +
|
||||
"decimal_type\030\001 \001(\0132!.greptime.v1.Decimal" +
|
||||
"TypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalTy" +
|
||||
"peExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030" +
|
||||
"\002 \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020" +
|
||||
"\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016ColumnDataType\022\013\n\007B" +
|
||||
"OOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003" +
|
||||
"\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UI" +
|
||||
"NT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT" +
|
||||
"64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014" +
|
||||
"\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TI" +
|
||||
"MESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICRO" +
|
||||
"SECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TI" +
|
||||
"ME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIM" +
|
||||
"E_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023" +
|
||||
"INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TI" +
|
||||
"ME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\023\n\017DUR" +
|
||||
"ATION_SECOND\020\032\022\030\n\024DURATION_MILLISECOND\020\033" +
|
||||
"\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURATION_N" +
|
||||
"ANOSECOND\020\035\022\016\n\nDECIMAL128\020\036BO\n\016io.grepti" +
|
||||
"me.v1B\006CommonZ5github.com/GreptimeTeam/g" +
|
||||
"reptime-proto/go/greptime/v1b\006proto3"
|
||||
"tHeader.TracingContextEntry\022\020\n\010timezone\030" +
|
||||
"\006 \001(\t\0325\n\023TracingContextEntry\022\013\n\003key\030\001 \001(" +
|
||||
"\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\016ResponseHeader\022#" +
|
||||
"\n\006status\030\001 \001(\0132\023.greptime.v1.Status\".\n\006S" +
|
||||
"tatus\022\023\n\013status_code\030\001 \001(\r\022\017\n\007err_msg\030\002 " +
|
||||
"\001(\t\"e\n\nAuthHeader\022#\n\005basic\030\001 \001(\0132\022.grept" +
|
||||
"ime.v1.BasicH\000\022#\n\005token\030\002 \001(\0132\022.greptime" +
|
||||
".v1.TokenH\000B\r\n\013auth_scheme\"+\n\005Basic\022\020\n\010u" +
|
||||
"sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005Token" +
|
||||
"\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows\022\r\n\005value" +
|
||||
"\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raffected_row" +
|
||||
"s\030\001 \001(\0132\031.greptime.v1.AffectedRows\"I\n\024In" +
|
||||
"tervalMonthDayNano\022\016\n\006months\030\001 \001(\005\022\014\n\004da" +
|
||||
"ys\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003\"$\n\nDecimal" +
|
||||
"128\022\n\n\002hi\030\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"`\n\027ColumnDat" +
|
||||
"aTypeExtension\0229\n\014decimal_type\030\001 \001(\0132!.g" +
|
||||
"reptime.v1.DecimalTypeExtensionH\000B\n\n\010typ" +
|
||||
"e_ext\"8\n\024DecimalTypeExtension\022\021\n\tprecisi" +
|
||||
"on\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005*1\n\014SemanticType\022" +
|
||||
"\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016C" +
|
||||
"olumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005" +
|
||||
"INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005" +
|
||||
"\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007" +
|
||||
"FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006ST" +
|
||||
"RING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMEST" +
|
||||
"AMP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022" +
|
||||
"\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIMESTAMP_" +
|
||||
"NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MI" +
|
||||
"LLISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022\023\n\017TIM" +
|
||||
"E_NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022" +
|
||||
"\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL_MONTH" +
|
||||
"_DAY_NANO\020\031\022\023\n\017DURATION_SECOND\020\032\022\030\n\024DURA" +
|
||||
"TION_MILLISECOND\020\033\022\030\n\024DURATION_MICROSECO" +
|
||||
"ND\020\034\022\027\n\023DURATION_NANOSECOND\020\035\022\016\n\nDECIMAL" +
|
||||
"128\020\036BO\n\016io.greptime.v1B\006CommonZ5github." +
|
||||
"com/GreptimeTeam/greptime-proto/go/grept" +
|
||||
"ime/v1b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@@ -9398,7 +9585,7 @@ java.lang.String defaultValue);
|
||||
internal_static_greptime_v1_RequestHeader_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_greptime_v1_RequestHeader_descriptor,
|
||||
new java.lang.String[] { "Catalog", "Schema", "Authorization", "Dbname", "TracingContext", });
|
||||
new java.lang.String[] { "Catalog", "Schema", "Authorization", "Dbname", "TracingContext", "Timezone", });
|
||||
internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor =
|
||||
internal_static_greptime_v1_RequestHeader_descriptor.getNestedTypes().get(0);
|
||||
internal_static_greptime_v1_RequestHeader_TracingContextEntry_fieldAccessorTable = new
|
||||
|
||||
@@ -32,6 +32,8 @@ message RequestHeader {
|
||||
// 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;
|
||||
// The `timezone` for the request
|
||||
string timezone = 6;
|
||||
}
|
||||
|
||||
message ResponseHeader { Status status = 1; }
|
||||
@@ -114,9 +116,7 @@ message Decimal128 {
|
||||
|
||||
// Type extension for some complex types
|
||||
message ColumnDataTypeExtension {
|
||||
oneof type_ext {
|
||||
DecimalTypeExtension decimal_type = 1;
|
||||
}
|
||||
oneof type_ext { DecimalTypeExtension decimal_type = 1; }
|
||||
}
|
||||
|
||||
message DecimalTypeExtension {
|
||||
|
||||
Reference in New Issue
Block a user