feat: remove region id and add request header (#101)

* remove region from database proto

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* add request header to read

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* generate code

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* forget some ts

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* generate code

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2023-09-06 07:52:41 -05:00
committed by GitHub
parent 620337bd5e
commit 33db1a4429
24 changed files with 1967 additions and 2613 deletions
+97 -96
View File
@@ -49,14 +49,14 @@ PROTOBUF_CONSTEXPR Column_Values::Column_Values(
, /*decltype(_impl_._date_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.datetime_values_)*/{}
, /*decltype(_impl_._datetime_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.ts_second_values_)*/{}
, /*decltype(_impl_._ts_second_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.ts_millisecond_values_)*/{}
, /*decltype(_impl_._ts_millisecond_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.ts_microsecond_values_)*/{}
, /*decltype(_impl_._ts_microsecond_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.ts_nanosecond_values_)*/{}
, /*decltype(_impl_._ts_nanosecond_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.timestamp_second_values_)*/{}
, /*decltype(_impl_._timestamp_second_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.timestamp_millisecond_values_)*/{}
, /*decltype(_impl_._timestamp_millisecond_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.timestamp_microsecond_values_)*/{}
, /*decltype(_impl_._timestamp_microsecond_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.timestamp_nanosecond_values_)*/{}
, /*decltype(_impl_._timestamp_nanosecond_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.time_second_values_)*/{}
, /*decltype(_impl_._time_second_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.time_millisecond_values_)*/{}
@@ -125,10 +125,10 @@ const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SE
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.string_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.date_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.datetime_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.ts_second_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.ts_millisecond_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.ts_microsecond_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.ts_nanosecond_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.timestamp_second_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.timestamp_millisecond_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.timestamp_microsecond_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.timestamp_nanosecond_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.time_second_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.time_millisecond_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.time_microsecond_values_),
@@ -160,12 +160,12 @@ static const ::_pb::Message* const file_default_instances[] = {
const char descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\030greptime/v1/column.proto\022\013greptime.v1\032"
"\030greptime/v1/common.proto\"\204\007\n\006Column\022\023\n\013"
"\030greptime/v1/common.proto\"\240\007\n\006Column\022\023\n\013"
"column_name\030\001 \001(\t\0220\n\rsemantic_type\030\002 \001(\016"
"2\031.greptime.v1.SemanticType\022*\n\006values\030\003 "
"\001(\0132\032.greptime.v1.Column.Values\022\021\n\tnull_"
"mask\030\004 \001(\014\022-\n\010datatype\030\005 \001(\0162\033.greptime."
"v1.ColumnDataType\032\304\005\n\006Values\022\021\n\ti8_value"
"v1.ColumnDataType\032\340\005\n\006Values\022\021\n\ti8_value"
"s\030\001 \003(\005\022\022\n\ni16_values\030\002 \003(\005\022\022\n\ni32_value"
"s\030\003 \003(\005\022\022\n\ni64_values\030\004 \003(\003\022\021\n\tu8_values"
"\030\005 \003(\r\022\022\n\nu16_values\030\006 \003(\r\022\022\n\nu32_values"
@@ -173,26 +173,27 @@ const char descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto[] PROTOBUF_S
"\030\t \003(\002\022\022\n\nf64_values\030\n \003(\001\022\023\n\013bool_value"
"s\030\013 \003(\010\022\025\n\rbinary_values\030\014 \003(\014\022\025\n\rstring"
"_values\030\r \003(\t\022\023\n\013date_values\030\016 \003(\005\022\027\n\017da"
"tetime_values\030\017 \003(\003\022\030\n\020ts_second_values\030"
"\020 \003(\003\022\035\n\025ts_millisecond_values\030\021 \003(\003\022\035\n\025"
"ts_microsecond_values\030\022 \003(\003\022\034\n\024ts_nanose"
"cond_values\030\023 \003(\003\022\032\n\022time_second_values\030"
"\024 \003(\003\022\037\n\027time_millisecond_values\030\025 \003(\003\022\037"
"\n\027time_microsecond_values\030\026 \003(\003\022\036\n\026time_"
"nanosecond_values\030\027 \003(\003\022\"\n\032interval_year"
"_month_values\030\030 \003(\005\022 \n\030interval_day_time"
"_values\030\031 \003(\003\022I\n\036interval_month_day_nano"
"_values\030\032 \003(\0132!.greptime.v1.IntervalMont"
"hDayNanoBP\n\016io.greptime.v1B\007ColumnsZ5git"
"hub.com/GreptimeTeam/greptime-proto/go/g"
"reptime/v1b\006proto3"
"tetime_values\030\017 \003(\003\022\037\n\027timestamp_second_"
"values\030\020 \003(\003\022$\n\034timestamp_millisecond_va"
"lues\030\021 \003(\003\022$\n\034timestamp_microsecond_valu"
"es\030\022 \003(\003\022#\n\033timestamp_nanosecond_values\030"
"\023 \003(\003\022\032\n\022time_second_values\030\024 \003(\003\022\037\n\027tim"
"e_millisecond_values\030\025 \003(\003\022\037\n\027time_micro"
"second_values\030\026 \003(\003\022\036\n\026time_nanosecond_v"
"alues\030\027 \003(\003\022\"\n\032interval_year_month_value"
"s\030\030 \003(\005\022 \n\030interval_day_time_values\030\031 \003("
"\003\022I\n\036interval_month_day_nano_values\030\032 \003("
"\0132!.greptime.v1.IntervalMonthDayNanoBP\n\016"
"io.greptime.v1B\007ColumnsZ5github.com/Grep"
"timeTeam/greptime-proto/go/greptime/v1b\006"
"proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcolumn_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcolumn_2eproto = {
false, false, 1058, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto,
false, false, 1086, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto,
"greptime/v1/column.proto",
&descriptor_table_greptime_2fv1_2fcolumn_2eproto_once, descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps, 1, 2,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets,
@@ -252,14 +253,14 @@ Column_Values::Column_Values(const Column_Values& from)
, /*decltype(_impl_._date_values_cached_byte_size_)*/{0}
, decltype(_impl_.datetime_values_){from._impl_.datetime_values_}
, /*decltype(_impl_._datetime_values_cached_byte_size_)*/{0}
, decltype(_impl_.ts_second_values_){from._impl_.ts_second_values_}
, /*decltype(_impl_._ts_second_values_cached_byte_size_)*/{0}
, decltype(_impl_.ts_millisecond_values_){from._impl_.ts_millisecond_values_}
, /*decltype(_impl_._ts_millisecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.ts_microsecond_values_){from._impl_.ts_microsecond_values_}
, /*decltype(_impl_._ts_microsecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.ts_nanosecond_values_){from._impl_.ts_nanosecond_values_}
, /*decltype(_impl_._ts_nanosecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.timestamp_second_values_){from._impl_.timestamp_second_values_}
, /*decltype(_impl_._timestamp_second_values_cached_byte_size_)*/{0}
, decltype(_impl_.timestamp_millisecond_values_){from._impl_.timestamp_millisecond_values_}
, /*decltype(_impl_._timestamp_millisecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.timestamp_microsecond_values_){from._impl_.timestamp_microsecond_values_}
, /*decltype(_impl_._timestamp_microsecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.timestamp_nanosecond_values_){from._impl_.timestamp_nanosecond_values_}
, /*decltype(_impl_._timestamp_nanosecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.time_second_values_){from._impl_.time_second_values_}
, /*decltype(_impl_._time_second_values_cached_byte_size_)*/{0}
, decltype(_impl_.time_millisecond_values_){from._impl_.time_millisecond_values_}
@@ -309,14 +310,14 @@ inline void Column_Values::SharedCtor(
, /*decltype(_impl_._date_values_cached_byte_size_)*/{0}
, decltype(_impl_.datetime_values_){arena}
, /*decltype(_impl_._datetime_values_cached_byte_size_)*/{0}
, decltype(_impl_.ts_second_values_){arena}
, /*decltype(_impl_._ts_second_values_cached_byte_size_)*/{0}
, decltype(_impl_.ts_millisecond_values_){arena}
, /*decltype(_impl_._ts_millisecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.ts_microsecond_values_){arena}
, /*decltype(_impl_._ts_microsecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.ts_nanosecond_values_){arena}
, /*decltype(_impl_._ts_nanosecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.timestamp_second_values_){arena}
, /*decltype(_impl_._timestamp_second_values_cached_byte_size_)*/{0}
, decltype(_impl_.timestamp_millisecond_values_){arena}
, /*decltype(_impl_._timestamp_millisecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.timestamp_microsecond_values_){arena}
, /*decltype(_impl_._timestamp_microsecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.timestamp_nanosecond_values_){arena}
, /*decltype(_impl_._timestamp_nanosecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.time_second_values_){arena}
, /*decltype(_impl_._time_second_values_cached_byte_size_)*/{0}
, decltype(_impl_.time_millisecond_values_){arena}
@@ -360,10 +361,10 @@ inline void Column_Values::SharedDtor() {
_impl_.string_values_.~RepeatedPtrField();
_impl_.date_values_.~RepeatedField();
_impl_.datetime_values_.~RepeatedField();
_impl_.ts_second_values_.~RepeatedField();
_impl_.ts_millisecond_values_.~RepeatedField();
_impl_.ts_microsecond_values_.~RepeatedField();
_impl_.ts_nanosecond_values_.~RepeatedField();
_impl_.timestamp_second_values_.~RepeatedField();
_impl_.timestamp_millisecond_values_.~RepeatedField();
_impl_.timestamp_microsecond_values_.~RepeatedField();
_impl_.timestamp_nanosecond_values_.~RepeatedField();
_impl_.time_second_values_.~RepeatedField();
_impl_.time_millisecond_values_.~RepeatedField();
_impl_.time_microsecond_values_.~RepeatedField();
@@ -398,10 +399,10 @@ void Column_Values::Clear() {
_impl_.string_values_.Clear();
_impl_.date_values_.Clear();
_impl_.datetime_values_.Clear();
_impl_.ts_second_values_.Clear();
_impl_.ts_millisecond_values_.Clear();
_impl_.ts_microsecond_values_.Clear();
_impl_.ts_nanosecond_values_.Clear();
_impl_.timestamp_second_values_.Clear();
_impl_.timestamp_millisecond_values_.Clear();
_impl_.timestamp_microsecond_values_.Clear();
_impl_.timestamp_nanosecond_values_.Clear();
_impl_.time_second_values_.Clear();
_impl_.time_millisecond_values_.Clear();
_impl_.time_microsecond_values_.Clear();
@@ -590,46 +591,46 @@ const char* Column_Values::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// repeated int64 ts_second_values = 16;
// repeated int64 timestamp_second_values = 16;
case 16:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_ts_second_values(), ptr, ctx);
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_timestamp_second_values(), ptr, ctx);
CHK_(ptr);
} else if (static_cast<uint8_t>(tag) == 128) {
_internal_add_ts_second_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
_internal_add_timestamp_second_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// repeated int64 ts_millisecond_values = 17;
// repeated int64 timestamp_millisecond_values = 17;
case 17:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_ts_millisecond_values(), ptr, ctx);
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_timestamp_millisecond_values(), ptr, ctx);
CHK_(ptr);
} else if (static_cast<uint8_t>(tag) == 136) {
_internal_add_ts_millisecond_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
_internal_add_timestamp_millisecond_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// repeated int64 ts_microsecond_values = 18;
// repeated int64 timestamp_microsecond_values = 18;
case 18:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 146)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_ts_microsecond_values(), ptr, ctx);
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_timestamp_microsecond_values(), ptr, ctx);
CHK_(ptr);
} else if (static_cast<uint8_t>(tag) == 144) {
_internal_add_ts_microsecond_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
_internal_add_timestamp_microsecond_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// repeated int64 ts_nanosecond_values = 19;
// repeated int64 timestamp_nanosecond_values = 19;
case 19:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 154)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_ts_nanosecond_values(), ptr, ctx);
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_timestamp_nanosecond_values(), ptr, ctx);
CHK_(ptr);
} else if (static_cast<uint8_t>(tag) == 152) {
_internal_add_ts_nanosecond_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
_internal_add_timestamp_nanosecond_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
CHK_(ptr);
} else
goto handle_unusual;
@@ -863,39 +864,39 @@ uint8_t* Column_Values::_InternalSerialize(
}
}
// repeated int64 ts_second_values = 16;
// repeated int64 timestamp_second_values = 16;
{
int byte_size = _impl_._ts_second_values_cached_byte_size_.load(std::memory_order_relaxed);
int byte_size = _impl_._timestamp_second_values_cached_byte_size_.load(std::memory_order_relaxed);
if (byte_size > 0) {
target = stream->WriteInt64Packed(
16, _internal_ts_second_values(), byte_size, target);
16, _internal_timestamp_second_values(), byte_size, target);
}
}
// repeated int64 ts_millisecond_values = 17;
// repeated int64 timestamp_millisecond_values = 17;
{
int byte_size = _impl_._ts_millisecond_values_cached_byte_size_.load(std::memory_order_relaxed);
int byte_size = _impl_._timestamp_millisecond_values_cached_byte_size_.load(std::memory_order_relaxed);
if (byte_size > 0) {
target = stream->WriteInt64Packed(
17, _internal_ts_millisecond_values(), byte_size, target);
17, _internal_timestamp_millisecond_values(), byte_size, target);
}
}
// repeated int64 ts_microsecond_values = 18;
// repeated int64 timestamp_microsecond_values = 18;
{
int byte_size = _impl_._ts_microsecond_values_cached_byte_size_.load(std::memory_order_relaxed);
int byte_size = _impl_._timestamp_microsecond_values_cached_byte_size_.load(std::memory_order_relaxed);
if (byte_size > 0) {
target = stream->WriteInt64Packed(
18, _internal_ts_microsecond_values(), byte_size, target);
18, _internal_timestamp_microsecond_values(), byte_size, target);
}
}
// repeated int64 ts_nanosecond_values = 19;
// repeated int64 timestamp_nanosecond_values = 19;
{
int byte_size = _impl_._ts_nanosecond_values_cached_byte_size_.load(std::memory_order_relaxed);
int byte_size = _impl_._timestamp_nanosecond_values_cached_byte_size_.load(std::memory_order_relaxed);
if (byte_size > 0) {
target = stream->WriteInt64Packed(
19, _internal_ts_nanosecond_values(), byte_size, target);
19, _internal_timestamp_nanosecond_values(), byte_size, target);
}
}
@@ -1166,58 +1167,58 @@ size_t Column_Values::ByteSizeLong() const {
total_size += data_size;
}
// repeated int64 ts_second_values = 16;
// repeated int64 timestamp_second_values = 16;
{
size_t data_size = ::_pbi::WireFormatLite::
Int64Size(this->_impl_.ts_second_values_);
Int64Size(this->_impl_.timestamp_second_values_);
if (data_size > 0) {
total_size += 2 +
::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
}
int cached_size = ::_pbi::ToCachedSize(data_size);
_impl_._ts_second_values_cached_byte_size_.store(cached_size,
_impl_._timestamp_second_values_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
// repeated int64 ts_millisecond_values = 17;
// repeated int64 timestamp_millisecond_values = 17;
{
size_t data_size = ::_pbi::WireFormatLite::
Int64Size(this->_impl_.ts_millisecond_values_);
Int64Size(this->_impl_.timestamp_millisecond_values_);
if (data_size > 0) {
total_size += 2 +
::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
}
int cached_size = ::_pbi::ToCachedSize(data_size);
_impl_._ts_millisecond_values_cached_byte_size_.store(cached_size,
_impl_._timestamp_millisecond_values_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
// repeated int64 ts_microsecond_values = 18;
// repeated int64 timestamp_microsecond_values = 18;
{
size_t data_size = ::_pbi::WireFormatLite::
Int64Size(this->_impl_.ts_microsecond_values_);
Int64Size(this->_impl_.timestamp_microsecond_values_);
if (data_size > 0) {
total_size += 2 +
::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
}
int cached_size = ::_pbi::ToCachedSize(data_size);
_impl_._ts_microsecond_values_cached_byte_size_.store(cached_size,
_impl_._timestamp_microsecond_values_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
// repeated int64 ts_nanosecond_values = 19;
// repeated int64 timestamp_nanosecond_values = 19;
{
size_t data_size = ::_pbi::WireFormatLite::
Int64Size(this->_impl_.ts_nanosecond_values_);
Int64Size(this->_impl_.timestamp_nanosecond_values_);
if (data_size > 0) {
total_size += 2 +
::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
}
int cached_size = ::_pbi::ToCachedSize(data_size);
_impl_._ts_nanosecond_values_cached_byte_size_.store(cached_size,
_impl_._timestamp_nanosecond_values_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
@@ -1346,10 +1347,10 @@ void Column_Values::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
_this->_impl_.string_values_.MergeFrom(from._impl_.string_values_);
_this->_impl_.date_values_.MergeFrom(from._impl_.date_values_);
_this->_impl_.datetime_values_.MergeFrom(from._impl_.datetime_values_);
_this->_impl_.ts_second_values_.MergeFrom(from._impl_.ts_second_values_);
_this->_impl_.ts_millisecond_values_.MergeFrom(from._impl_.ts_millisecond_values_);
_this->_impl_.ts_microsecond_values_.MergeFrom(from._impl_.ts_microsecond_values_);
_this->_impl_.ts_nanosecond_values_.MergeFrom(from._impl_.ts_nanosecond_values_);
_this->_impl_.timestamp_second_values_.MergeFrom(from._impl_.timestamp_second_values_);
_this->_impl_.timestamp_millisecond_values_.MergeFrom(from._impl_.timestamp_millisecond_values_);
_this->_impl_.timestamp_microsecond_values_.MergeFrom(from._impl_.timestamp_microsecond_values_);
_this->_impl_.timestamp_nanosecond_values_.MergeFrom(from._impl_.timestamp_nanosecond_values_);
_this->_impl_.time_second_values_.MergeFrom(from._impl_.time_second_values_);
_this->_impl_.time_millisecond_values_.MergeFrom(from._impl_.time_millisecond_values_);
_this->_impl_.time_microsecond_values_.MergeFrom(from._impl_.time_microsecond_values_);
@@ -1389,10 +1390,10 @@ void Column_Values::InternalSwap(Column_Values* other) {
_impl_.string_values_.InternalSwap(&other->_impl_.string_values_);
_impl_.date_values_.InternalSwap(&other->_impl_.date_values_);
_impl_.datetime_values_.InternalSwap(&other->_impl_.datetime_values_);
_impl_.ts_second_values_.InternalSwap(&other->_impl_.ts_second_values_);
_impl_.ts_millisecond_values_.InternalSwap(&other->_impl_.ts_millisecond_values_);
_impl_.ts_microsecond_values_.InternalSwap(&other->_impl_.ts_microsecond_values_);
_impl_.ts_nanosecond_values_.InternalSwap(&other->_impl_.ts_nanosecond_values_);
_impl_.timestamp_second_values_.InternalSwap(&other->_impl_.timestamp_second_values_);
_impl_.timestamp_millisecond_values_.InternalSwap(&other->_impl_.timestamp_millisecond_values_);
_impl_.timestamp_microsecond_values_.InternalSwap(&other->_impl_.timestamp_microsecond_values_);
_impl_.timestamp_nanosecond_values_.InternalSwap(&other->_impl_.timestamp_nanosecond_values_);
_impl_.time_second_values_.InternalSwap(&other->_impl_.time_second_values_);
_impl_.time_millisecond_values_.InternalSwap(&other->_impl_.time_millisecond_values_);
_impl_.time_microsecond_values_.InternalSwap(&other->_impl_.time_microsecond_values_);
+184 -184
View File
@@ -200,10 +200,10 @@ class Column_Values final :
kStringValuesFieldNumber = 13,
kDateValuesFieldNumber = 14,
kDatetimeValuesFieldNumber = 15,
kTsSecondValuesFieldNumber = 16,
kTsMillisecondValuesFieldNumber = 17,
kTsMicrosecondValuesFieldNumber = 18,
kTsNanosecondValuesFieldNumber = 19,
kTimestampSecondValuesFieldNumber = 16,
kTimestampMillisecondValuesFieldNumber = 17,
kTimestampMicrosecondValuesFieldNumber = 18,
kTimestampNanosecondValuesFieldNumber = 19,
kTimeSecondValuesFieldNumber = 20,
kTimeMillisecondValuesFieldNumber = 21,
kTimeMicrosecondValuesFieldNumber = 22,
@@ -546,93 +546,93 @@ class Column_Values final :
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
mutable_datetime_values();
// repeated int64 ts_second_values = 16;
int ts_second_values_size() const;
// repeated int64 timestamp_second_values = 16;
int timestamp_second_values_size() const;
private:
int _internal_ts_second_values_size() const;
int _internal_timestamp_second_values_size() const;
public:
void clear_ts_second_values();
void clear_timestamp_second_values();
private:
int64_t _internal_ts_second_values(int index) const;
int64_t _internal_timestamp_second_values(int index) const;
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
_internal_ts_second_values() const;
void _internal_add_ts_second_values(int64_t value);
_internal_timestamp_second_values() const;
void _internal_add_timestamp_second_values(int64_t value);
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
_internal_mutable_ts_second_values();
_internal_mutable_timestamp_second_values();
public:
int64_t ts_second_values(int index) const;
void set_ts_second_values(int index, int64_t value);
void add_ts_second_values(int64_t value);
int64_t timestamp_second_values(int index) const;
void set_timestamp_second_values(int index, int64_t value);
void add_timestamp_second_values(int64_t value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
ts_second_values() const;
timestamp_second_values() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
mutable_ts_second_values();
mutable_timestamp_second_values();
// repeated int64 ts_millisecond_values = 17;
int ts_millisecond_values_size() const;
// repeated int64 timestamp_millisecond_values = 17;
int timestamp_millisecond_values_size() const;
private:
int _internal_ts_millisecond_values_size() const;
int _internal_timestamp_millisecond_values_size() const;
public:
void clear_ts_millisecond_values();
void clear_timestamp_millisecond_values();
private:
int64_t _internal_ts_millisecond_values(int index) const;
int64_t _internal_timestamp_millisecond_values(int index) const;
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
_internal_ts_millisecond_values() const;
void _internal_add_ts_millisecond_values(int64_t value);
_internal_timestamp_millisecond_values() const;
void _internal_add_timestamp_millisecond_values(int64_t value);
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
_internal_mutable_ts_millisecond_values();
_internal_mutable_timestamp_millisecond_values();
public:
int64_t ts_millisecond_values(int index) const;
void set_ts_millisecond_values(int index, int64_t value);
void add_ts_millisecond_values(int64_t value);
int64_t timestamp_millisecond_values(int index) const;
void set_timestamp_millisecond_values(int index, int64_t value);
void add_timestamp_millisecond_values(int64_t value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
ts_millisecond_values() const;
timestamp_millisecond_values() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
mutable_ts_millisecond_values();
mutable_timestamp_millisecond_values();
// repeated int64 ts_microsecond_values = 18;
int ts_microsecond_values_size() const;
// repeated int64 timestamp_microsecond_values = 18;
int timestamp_microsecond_values_size() const;
private:
int _internal_ts_microsecond_values_size() const;
int _internal_timestamp_microsecond_values_size() const;
public:
void clear_ts_microsecond_values();
void clear_timestamp_microsecond_values();
private:
int64_t _internal_ts_microsecond_values(int index) const;
int64_t _internal_timestamp_microsecond_values(int index) const;
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
_internal_ts_microsecond_values() const;
void _internal_add_ts_microsecond_values(int64_t value);
_internal_timestamp_microsecond_values() const;
void _internal_add_timestamp_microsecond_values(int64_t value);
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
_internal_mutable_ts_microsecond_values();
_internal_mutable_timestamp_microsecond_values();
public:
int64_t ts_microsecond_values(int index) const;
void set_ts_microsecond_values(int index, int64_t value);
void add_ts_microsecond_values(int64_t value);
int64_t timestamp_microsecond_values(int index) const;
void set_timestamp_microsecond_values(int index, int64_t value);
void add_timestamp_microsecond_values(int64_t value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
ts_microsecond_values() const;
timestamp_microsecond_values() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
mutable_ts_microsecond_values();
mutable_timestamp_microsecond_values();
// repeated int64 ts_nanosecond_values = 19;
int ts_nanosecond_values_size() const;
// repeated int64 timestamp_nanosecond_values = 19;
int timestamp_nanosecond_values_size() const;
private:
int _internal_ts_nanosecond_values_size() const;
int _internal_timestamp_nanosecond_values_size() const;
public:
void clear_ts_nanosecond_values();
void clear_timestamp_nanosecond_values();
private:
int64_t _internal_ts_nanosecond_values(int index) const;
int64_t _internal_timestamp_nanosecond_values(int index) const;
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
_internal_ts_nanosecond_values() const;
void _internal_add_ts_nanosecond_values(int64_t value);
_internal_timestamp_nanosecond_values() const;
void _internal_add_timestamp_nanosecond_values(int64_t value);
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
_internal_mutable_ts_nanosecond_values();
_internal_mutable_timestamp_nanosecond_values();
public:
int64_t ts_nanosecond_values(int index) const;
void set_ts_nanosecond_values(int index, int64_t value);
void add_ts_nanosecond_values(int64_t value);
int64_t timestamp_nanosecond_values(int index) const;
void set_timestamp_nanosecond_values(int index, int64_t value);
void add_timestamp_nanosecond_values(int64_t value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
ts_nanosecond_values() const;
timestamp_nanosecond_values() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
mutable_ts_nanosecond_values();
mutable_timestamp_nanosecond_values();
// repeated int64 time_second_values = 20;
int time_second_values_size() const;
@@ -817,14 +817,14 @@ class Column_Values final :
mutable std::atomic<int> _date_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > datetime_values_;
mutable std::atomic<int> _datetime_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > ts_second_values_;
mutable std::atomic<int> _ts_second_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > ts_millisecond_values_;
mutable std::atomic<int> _ts_millisecond_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > ts_microsecond_values_;
mutable std::atomic<int> _ts_microsecond_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > ts_nanosecond_values_;
mutable std::atomic<int> _ts_nanosecond_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > timestamp_second_values_;
mutable std::atomic<int> _timestamp_second_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > timestamp_millisecond_values_;
mutable std::atomic<int> _timestamp_millisecond_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > timestamp_microsecond_values_;
mutable std::atomic<int> _timestamp_microsecond_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > timestamp_nanosecond_values_;
mutable std::atomic<int> _timestamp_nanosecond_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > time_second_values_;
mutable std::atomic<int> _time_second_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > time_millisecond_values_;
@@ -1828,192 +1828,192 @@ Column_Values::mutable_datetime_values() {
return _internal_mutable_datetime_values();
}
// repeated int64 ts_second_values = 16;
inline int Column_Values::_internal_ts_second_values_size() const {
return _impl_.ts_second_values_.size();
// repeated int64 timestamp_second_values = 16;
inline int Column_Values::_internal_timestamp_second_values_size() const {
return _impl_.timestamp_second_values_.size();
}
inline int Column_Values::ts_second_values_size() const {
return _internal_ts_second_values_size();
inline int Column_Values::timestamp_second_values_size() const {
return _internal_timestamp_second_values_size();
}
inline void Column_Values::clear_ts_second_values() {
_impl_.ts_second_values_.Clear();
inline void Column_Values::clear_timestamp_second_values() {
_impl_.timestamp_second_values_.Clear();
}
inline int64_t Column_Values::_internal_ts_second_values(int index) const {
return _impl_.ts_second_values_.Get(index);
inline int64_t Column_Values::_internal_timestamp_second_values(int index) const {
return _impl_.timestamp_second_values_.Get(index);
}
inline int64_t Column_Values::ts_second_values(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.Column.Values.ts_second_values)
return _internal_ts_second_values(index);
inline int64_t Column_Values::timestamp_second_values(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.Column.Values.timestamp_second_values)
return _internal_timestamp_second_values(index);
}
inline void Column_Values::set_ts_second_values(int index, int64_t value) {
_impl_.ts_second_values_.Set(index, value);
// @@protoc_insertion_point(field_set:greptime.v1.Column.Values.ts_second_values)
inline void Column_Values::set_timestamp_second_values(int index, int64_t value) {
_impl_.timestamp_second_values_.Set(index, value);
// @@protoc_insertion_point(field_set:greptime.v1.Column.Values.timestamp_second_values)
}
inline void Column_Values::_internal_add_ts_second_values(int64_t value) {
_impl_.ts_second_values_.Add(value);
inline void Column_Values::_internal_add_timestamp_second_values(int64_t value) {
_impl_.timestamp_second_values_.Add(value);
}
inline void Column_Values::add_ts_second_values(int64_t value) {
_internal_add_ts_second_values(value);
// @@protoc_insertion_point(field_add:greptime.v1.Column.Values.ts_second_values)
inline void Column_Values::add_timestamp_second_values(int64_t value) {
_internal_add_timestamp_second_values(value);
// @@protoc_insertion_point(field_add:greptime.v1.Column.Values.timestamp_second_values)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
Column_Values::_internal_ts_second_values() const {
return _impl_.ts_second_values_;
Column_Values::_internal_timestamp_second_values() const {
return _impl_.timestamp_second_values_;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
Column_Values::ts_second_values() const {
// @@protoc_insertion_point(field_list:greptime.v1.Column.Values.ts_second_values)
return _internal_ts_second_values();
Column_Values::timestamp_second_values() const {
// @@protoc_insertion_point(field_list:greptime.v1.Column.Values.timestamp_second_values)
return _internal_timestamp_second_values();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
Column_Values::_internal_mutable_ts_second_values() {
return &_impl_.ts_second_values_;
Column_Values::_internal_mutable_timestamp_second_values() {
return &_impl_.timestamp_second_values_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
Column_Values::mutable_ts_second_values() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.Column.Values.ts_second_values)
return _internal_mutable_ts_second_values();
Column_Values::mutable_timestamp_second_values() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.Column.Values.timestamp_second_values)
return _internal_mutable_timestamp_second_values();
}
// repeated int64 ts_millisecond_values = 17;
inline int Column_Values::_internal_ts_millisecond_values_size() const {
return _impl_.ts_millisecond_values_.size();
// repeated int64 timestamp_millisecond_values = 17;
inline int Column_Values::_internal_timestamp_millisecond_values_size() const {
return _impl_.timestamp_millisecond_values_.size();
}
inline int Column_Values::ts_millisecond_values_size() const {
return _internal_ts_millisecond_values_size();
inline int Column_Values::timestamp_millisecond_values_size() const {
return _internal_timestamp_millisecond_values_size();
}
inline void Column_Values::clear_ts_millisecond_values() {
_impl_.ts_millisecond_values_.Clear();
inline void Column_Values::clear_timestamp_millisecond_values() {
_impl_.timestamp_millisecond_values_.Clear();
}
inline int64_t Column_Values::_internal_ts_millisecond_values(int index) const {
return _impl_.ts_millisecond_values_.Get(index);
inline int64_t Column_Values::_internal_timestamp_millisecond_values(int index) const {
return _impl_.timestamp_millisecond_values_.Get(index);
}
inline int64_t Column_Values::ts_millisecond_values(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.Column.Values.ts_millisecond_values)
return _internal_ts_millisecond_values(index);
inline int64_t Column_Values::timestamp_millisecond_values(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.Column.Values.timestamp_millisecond_values)
return _internal_timestamp_millisecond_values(index);
}
inline void Column_Values::set_ts_millisecond_values(int index, int64_t value) {
_impl_.ts_millisecond_values_.Set(index, value);
// @@protoc_insertion_point(field_set:greptime.v1.Column.Values.ts_millisecond_values)
inline void Column_Values::set_timestamp_millisecond_values(int index, int64_t value) {
_impl_.timestamp_millisecond_values_.Set(index, value);
// @@protoc_insertion_point(field_set:greptime.v1.Column.Values.timestamp_millisecond_values)
}
inline void Column_Values::_internal_add_ts_millisecond_values(int64_t value) {
_impl_.ts_millisecond_values_.Add(value);
inline void Column_Values::_internal_add_timestamp_millisecond_values(int64_t value) {
_impl_.timestamp_millisecond_values_.Add(value);
}
inline void Column_Values::add_ts_millisecond_values(int64_t value) {
_internal_add_ts_millisecond_values(value);
// @@protoc_insertion_point(field_add:greptime.v1.Column.Values.ts_millisecond_values)
inline void Column_Values::add_timestamp_millisecond_values(int64_t value) {
_internal_add_timestamp_millisecond_values(value);
// @@protoc_insertion_point(field_add:greptime.v1.Column.Values.timestamp_millisecond_values)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
Column_Values::_internal_ts_millisecond_values() const {
return _impl_.ts_millisecond_values_;
Column_Values::_internal_timestamp_millisecond_values() const {
return _impl_.timestamp_millisecond_values_;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
Column_Values::ts_millisecond_values() const {
// @@protoc_insertion_point(field_list:greptime.v1.Column.Values.ts_millisecond_values)
return _internal_ts_millisecond_values();
Column_Values::timestamp_millisecond_values() const {
// @@protoc_insertion_point(field_list:greptime.v1.Column.Values.timestamp_millisecond_values)
return _internal_timestamp_millisecond_values();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
Column_Values::_internal_mutable_ts_millisecond_values() {
return &_impl_.ts_millisecond_values_;
Column_Values::_internal_mutable_timestamp_millisecond_values() {
return &_impl_.timestamp_millisecond_values_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
Column_Values::mutable_ts_millisecond_values() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.Column.Values.ts_millisecond_values)
return _internal_mutable_ts_millisecond_values();
Column_Values::mutable_timestamp_millisecond_values() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.Column.Values.timestamp_millisecond_values)
return _internal_mutable_timestamp_millisecond_values();
}
// repeated int64 ts_microsecond_values = 18;
inline int Column_Values::_internal_ts_microsecond_values_size() const {
return _impl_.ts_microsecond_values_.size();
// repeated int64 timestamp_microsecond_values = 18;
inline int Column_Values::_internal_timestamp_microsecond_values_size() const {
return _impl_.timestamp_microsecond_values_.size();
}
inline int Column_Values::ts_microsecond_values_size() const {
return _internal_ts_microsecond_values_size();
inline int Column_Values::timestamp_microsecond_values_size() const {
return _internal_timestamp_microsecond_values_size();
}
inline void Column_Values::clear_ts_microsecond_values() {
_impl_.ts_microsecond_values_.Clear();
inline void Column_Values::clear_timestamp_microsecond_values() {
_impl_.timestamp_microsecond_values_.Clear();
}
inline int64_t Column_Values::_internal_ts_microsecond_values(int index) const {
return _impl_.ts_microsecond_values_.Get(index);
inline int64_t Column_Values::_internal_timestamp_microsecond_values(int index) const {
return _impl_.timestamp_microsecond_values_.Get(index);
}
inline int64_t Column_Values::ts_microsecond_values(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.Column.Values.ts_microsecond_values)
return _internal_ts_microsecond_values(index);
inline int64_t Column_Values::timestamp_microsecond_values(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.Column.Values.timestamp_microsecond_values)
return _internal_timestamp_microsecond_values(index);
}
inline void Column_Values::set_ts_microsecond_values(int index, int64_t value) {
_impl_.ts_microsecond_values_.Set(index, value);
// @@protoc_insertion_point(field_set:greptime.v1.Column.Values.ts_microsecond_values)
inline void Column_Values::set_timestamp_microsecond_values(int index, int64_t value) {
_impl_.timestamp_microsecond_values_.Set(index, value);
// @@protoc_insertion_point(field_set:greptime.v1.Column.Values.timestamp_microsecond_values)
}
inline void Column_Values::_internal_add_ts_microsecond_values(int64_t value) {
_impl_.ts_microsecond_values_.Add(value);
inline void Column_Values::_internal_add_timestamp_microsecond_values(int64_t value) {
_impl_.timestamp_microsecond_values_.Add(value);
}
inline void Column_Values::add_ts_microsecond_values(int64_t value) {
_internal_add_ts_microsecond_values(value);
// @@protoc_insertion_point(field_add:greptime.v1.Column.Values.ts_microsecond_values)
inline void Column_Values::add_timestamp_microsecond_values(int64_t value) {
_internal_add_timestamp_microsecond_values(value);
// @@protoc_insertion_point(field_add:greptime.v1.Column.Values.timestamp_microsecond_values)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
Column_Values::_internal_ts_microsecond_values() const {
return _impl_.ts_microsecond_values_;
Column_Values::_internal_timestamp_microsecond_values() const {
return _impl_.timestamp_microsecond_values_;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
Column_Values::ts_microsecond_values() const {
// @@protoc_insertion_point(field_list:greptime.v1.Column.Values.ts_microsecond_values)
return _internal_ts_microsecond_values();
Column_Values::timestamp_microsecond_values() const {
// @@protoc_insertion_point(field_list:greptime.v1.Column.Values.timestamp_microsecond_values)
return _internal_timestamp_microsecond_values();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
Column_Values::_internal_mutable_ts_microsecond_values() {
return &_impl_.ts_microsecond_values_;
Column_Values::_internal_mutable_timestamp_microsecond_values() {
return &_impl_.timestamp_microsecond_values_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
Column_Values::mutable_ts_microsecond_values() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.Column.Values.ts_microsecond_values)
return _internal_mutable_ts_microsecond_values();
Column_Values::mutable_timestamp_microsecond_values() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.Column.Values.timestamp_microsecond_values)
return _internal_mutable_timestamp_microsecond_values();
}
// repeated int64 ts_nanosecond_values = 19;
inline int Column_Values::_internal_ts_nanosecond_values_size() const {
return _impl_.ts_nanosecond_values_.size();
// repeated int64 timestamp_nanosecond_values = 19;
inline int Column_Values::_internal_timestamp_nanosecond_values_size() const {
return _impl_.timestamp_nanosecond_values_.size();
}
inline int Column_Values::ts_nanosecond_values_size() const {
return _internal_ts_nanosecond_values_size();
inline int Column_Values::timestamp_nanosecond_values_size() const {
return _internal_timestamp_nanosecond_values_size();
}
inline void Column_Values::clear_ts_nanosecond_values() {
_impl_.ts_nanosecond_values_.Clear();
inline void Column_Values::clear_timestamp_nanosecond_values() {
_impl_.timestamp_nanosecond_values_.Clear();
}
inline int64_t Column_Values::_internal_ts_nanosecond_values(int index) const {
return _impl_.ts_nanosecond_values_.Get(index);
inline int64_t Column_Values::_internal_timestamp_nanosecond_values(int index) const {
return _impl_.timestamp_nanosecond_values_.Get(index);
}
inline int64_t Column_Values::ts_nanosecond_values(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.Column.Values.ts_nanosecond_values)
return _internal_ts_nanosecond_values(index);
inline int64_t Column_Values::timestamp_nanosecond_values(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.Column.Values.timestamp_nanosecond_values)
return _internal_timestamp_nanosecond_values(index);
}
inline void Column_Values::set_ts_nanosecond_values(int index, int64_t value) {
_impl_.ts_nanosecond_values_.Set(index, value);
// @@protoc_insertion_point(field_set:greptime.v1.Column.Values.ts_nanosecond_values)
inline void Column_Values::set_timestamp_nanosecond_values(int index, int64_t value) {
_impl_.timestamp_nanosecond_values_.Set(index, value);
// @@protoc_insertion_point(field_set:greptime.v1.Column.Values.timestamp_nanosecond_values)
}
inline void Column_Values::_internal_add_ts_nanosecond_values(int64_t value) {
_impl_.ts_nanosecond_values_.Add(value);
inline void Column_Values::_internal_add_timestamp_nanosecond_values(int64_t value) {
_impl_.timestamp_nanosecond_values_.Add(value);
}
inline void Column_Values::add_ts_nanosecond_values(int64_t value) {
_internal_add_ts_nanosecond_values(value);
// @@protoc_insertion_point(field_add:greptime.v1.Column.Values.ts_nanosecond_values)
inline void Column_Values::add_timestamp_nanosecond_values(int64_t value) {
_internal_add_timestamp_nanosecond_values(value);
// @@protoc_insertion_point(field_add:greptime.v1.Column.Values.timestamp_nanosecond_values)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
Column_Values::_internal_ts_nanosecond_values() const {
return _impl_.ts_nanosecond_values_;
Column_Values::_internal_timestamp_nanosecond_values() const {
return _impl_.timestamp_nanosecond_values_;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
Column_Values::ts_nanosecond_values() const {
// @@protoc_insertion_point(field_list:greptime.v1.Column.Values.ts_nanosecond_values)
return _internal_ts_nanosecond_values();
Column_Values::timestamp_nanosecond_values() const {
// @@protoc_insertion_point(field_list:greptime.v1.Column.Values.timestamp_nanosecond_values)
return _internal_timestamp_nanosecond_values();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
Column_Values::_internal_mutable_ts_nanosecond_values() {
return &_impl_.ts_nanosecond_values_;
Column_Values::_internal_mutable_timestamp_nanosecond_values() {
return &_impl_.timestamp_nanosecond_values_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
Column_Values::mutable_ts_nanosecond_values() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.Column.Values.ts_nanosecond_values)
return _internal_mutable_ts_nanosecond_values();
Column_Values::mutable_timestamp_nanosecond_values() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.Column.Values.timestamp_nanosecond_values)
return _internal_mutable_timestamp_nanosecond_values();
}
// repeated int64 time_second_values = 20;
+35 -173
View File
@@ -84,7 +84,6 @@ PROTOBUF_CONSTEXPR InsertRequest::InsertRequest(
/*decltype(_impl_.columns_)*/{}
, /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.row_count_)*/0u
, /*decltype(_impl_.region_number_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
struct InsertRequestDefaultTypeInternal {
PROTOBUF_CONSTEXPR InsertRequestDefaultTypeInternal()
@@ -112,7 +111,6 @@ PROTOBUF_CONSTEXPR DeleteRequest::DeleteRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.key_columns_)*/{}
, /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.region_number_)*/0u
, /*decltype(_impl_.row_count_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
struct DeleteRequestDefaultTypeInternal {
@@ -141,7 +139,6 @@ PROTOBUF_CONSTEXPR RowInsertRequest::RowInsertRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.rows_)*/nullptr
, /*decltype(_impl_.region_number_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
struct RowInsertRequestDefaultTypeInternal {
PROTOBUF_CONSTEXPR RowInsertRequestDefaultTypeInternal()
@@ -169,7 +166,6 @@ PROTOBUF_CONSTEXPR RowDeleteRequest::RowDeleteRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.rows_)*/nullptr
, /*decltype(_impl_.region_number_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
struct RowDeleteRequestDefaultTypeInternal {
PROTOBUF_CONSTEXPR RowDeleteRequestDefaultTypeInternal()
@@ -236,7 +232,6 @@ const uint32_t TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets[] PROTOBUF_
PROTOBUF_FIELD_OFFSET(::greptime::v1::InsertRequest, _impl_.table_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::InsertRequest, _impl_.columns_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::InsertRequest, _impl_.row_count_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::InsertRequest, _impl_.region_number_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::DeleteRequests, _internal_metadata_),
~0u, // no _extensions_
@@ -251,7 +246,6 @@ const uint32_t TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets[] PROTOBUF_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::DeleteRequest, _impl_.table_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::DeleteRequest, _impl_.region_number_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::DeleteRequest, _impl_.key_columns_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::DeleteRequest, _impl_.row_count_),
~0u, // no _has_bits_
@@ -269,7 +263,6 @@ const uint32_t TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets[] PROTOBUF_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::RowInsertRequest, _impl_.table_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::RowInsertRequest, _impl_.rows_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::RowInsertRequest, _impl_.region_number_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::RowDeleteRequests, _internal_metadata_),
~0u, // no _extensions_
@@ -285,7 +278,6 @@ const uint32_t TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets[] PROTOBUF_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::RowDeleteRequest, _impl_.table_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::RowDeleteRequest, _impl_.rows_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::RowDeleteRequest, _impl_.region_number_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::greptime::v1::GreptimeRequest)},
@@ -293,12 +285,12 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 23, -1, -1, sizeof(::greptime::v1::QueryRequest)},
{ 33, -1, -1, sizeof(::greptime::v1::InsertRequests)},
{ 40, -1, -1, sizeof(::greptime::v1::InsertRequest)},
{ 50, -1, -1, sizeof(::greptime::v1::DeleteRequests)},
{ 57, -1, -1, sizeof(::greptime::v1::DeleteRequest)},
{ 67, -1, -1, sizeof(::greptime::v1::RowInsertRequests)},
{ 74, -1, -1, sizeof(::greptime::v1::RowInsertRequest)},
{ 83, -1, -1, sizeof(::greptime::v1::RowDeleteRequests)},
{ 90, -1, -1, sizeof(::greptime::v1::RowDeleteRequest)},
{ 49, -1, -1, sizeof(::greptime::v1::DeleteRequests)},
{ 56, -1, -1, sizeof(::greptime::v1::DeleteRequest)},
{ 65, -1, -1, sizeof(::greptime::v1::RowInsertRequests)},
{ 72, -1, -1, sizeof(::greptime::v1::RowInsertRequest)},
{ 80, -1, -1, sizeof(::greptime::v1::RowDeleteRequests)},
{ 87, -1, -1, sizeof(::greptime::v1::RowDeleteRequest)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -337,29 +329,27 @@ const char descriptor_table_protodef_greptime_2fv1_2fdatabase_2eproto[] PROTOBUF
"_range_query\030\003 \001(\0132\033.greptime.v1.PromRan"
"geQueryH\000B\007\n\005query\"=\n\016InsertRequests\022+\n\007"
"inserts\030\001 \003(\0132\032.greptime.v1.InsertReques"
"t\"s\n\rInsertRequest\022\022\n\ntable_name\030\001 \001(\t\022$"
"t\"\\\n\rInsertRequest\022\022\n\ntable_name\030\001 \001(\t\022$"
"\n\007columns\030\003 \003(\0132\023.greptime.v1.Column\022\021\n\t"
"row_count\030\004 \001(\r\022\025\n\rregion_number\030\005 \001(\r\"="
"\n\016DeleteRequests\022+\n\007deletes\030\001 \003(\0132\032.grep"
"time.v1.DeleteRequest\"w\n\rDeleteRequest\022\022"
"\n\ntable_name\030\001 \001(\t\022\025\n\rregion_number\030\002 \001("
"\r\022(\n\013key_columns\030\003 \003(\0132\023.greptime.v1.Col"
"umn\022\021\n\trow_count\030\004 \001(\r\"C\n\021RowInsertReque"
"sts\022.\n\007inserts\030\001 \003(\0132\035.greptime.v1.RowIn"
"sertRequest\"^\n\020RowInsertRequest\022\022\n\ntable"
"_name\030\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1."
"Rows\022\025\n\rregion_number\030\003 \001(\r\"C\n\021RowDelete"
"Requests\022.\n\007deletes\030\001 \003(\0132\035.greptime.v1."
"RowDeleteRequest\"^\n\020RowDeleteRequest\022\022\n\n"
"table_name\030\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021.greptim"
"e.v1.Rows\022\025\n\rregion_number\030\003 \001(\r2\252\001\n\020Gre"
"ptimeDatabase\022E\n\006Handle\022\034.greptime.v1.Gr"
"eptimeRequest\032\035.greptime.v1.GreptimeResp"
"onse\022O\n\016HandleRequests\022\034.greptime.v1.Gre"
"ptimeRequest\032\035.greptime.v1.GreptimeRespo"
"nse(\001BQ\n\016io.greptime.v1B\010DatabaseZ5githu"
"b.com/GreptimeTeam/greptime-proto/go/gre"
"ptime/v1b\006proto3"
"row_count\030\004 \001(\r\"=\n\016DeleteRequests\022+\n\007del"
"etes\030\001 \003(\0132\032.greptime.v1.DeleteRequest\"`"
"\n\rDeleteRequest\022\022\n\ntable_name\030\001 \001(\t\022(\n\013k"
"ey_columns\030\003 \003(\0132\023.greptime.v1.Column\022\021\n"
"\trow_count\030\004 \001(\r\"C\n\021RowInsertRequests\022.\n"
"\007inserts\030\001 \003(\0132\035.greptime.v1.RowInsertRe"
"quest\"G\n\020RowInsertRequest\022\022\n\ntable_name\030"
"\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"C"
"\n\021RowDeleteRequests\022.\n\007deletes\030\001 \003(\0132\035.g"
"reptime.v1.RowDeleteRequest\"G\n\020RowDelete"
"Request\022\022\n\ntable_name\030\001 \001(\t\022\037\n\004rows\030\002 \001("
"\0132\021.greptime.v1.Rows2\252\001\n\020GreptimeDatabas"
"e\022E\n\006Handle\022\034.greptime.v1.GreptimeReques"
"t\032\035.greptime.v1.GreptimeResponse\022O\n\016Hand"
"leRequests\022\034.greptime.v1.GreptimeRequest"
"\032\035.greptime.v1.GreptimeResponse(\001BQ\n\016io."
"greptime.v1B\010DatabaseZ5github.com/Grepti"
"meTeam/greptime-proto/go/greptime/v1b\006pr"
"oto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps[5] = {
&::descriptor_table_greptime_2fv1_2fcolumn_2eproto,
@@ -370,7 +360,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fdat
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fdatabase_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fdatabase_2eproto = {
false, false, 1736, descriptor_table_protodef_greptime_2fv1_2fdatabase_2eproto,
false, false, 1644, descriptor_table_protodef_greptime_2fv1_2fdatabase_2eproto,
"greptime/v1/database.proto",
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_once, descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps, 5, 11,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets,
@@ -1820,7 +1810,6 @@ InsertRequest::InsertRequest(const InsertRequest& from)
decltype(_impl_.columns_){from._impl_.columns_}
, decltype(_impl_.table_name_){}
, decltype(_impl_.row_count_){}
, decltype(_impl_.region_number_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
@@ -1832,9 +1821,7 @@ InsertRequest::InsertRequest(const InsertRequest& from)
_this->_impl_.table_name_.Set(from._internal_table_name(),
_this->GetArenaForAllocation());
}
::memcpy(&_impl_.row_count_, &from._impl_.row_count_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.region_number_) -
reinterpret_cast<char*>(&_impl_.row_count_)) + sizeof(_impl_.region_number_));
_this->_impl_.row_count_ = from._impl_.row_count_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.InsertRequest)
}
@@ -1846,7 +1833,6 @@ inline void InsertRequest::SharedCtor(
decltype(_impl_.columns_){arena}
, decltype(_impl_.table_name_){}
, decltype(_impl_.row_count_){0u}
, decltype(_impl_.region_number_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.table_name_.InitDefault();
@@ -1882,9 +1868,7 @@ void InsertRequest::Clear() {
_impl_.columns_.Clear();
_impl_.table_name_.ClearToEmpty();
::memset(&_impl_.row_count_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.region_number_) -
reinterpret_cast<char*>(&_impl_.row_count_)) + sizeof(_impl_.region_number_));
_impl_.row_count_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -1925,14 +1909,6 @@ const char* InsertRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// uint32 region_number = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
_impl_.region_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -1986,12 +1962,6 @@ uint8_t* InsertRequest::_InternalSerialize(
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_row_count(), target);
}
// uint32 region_number = 5;
if (this->_internal_region_number() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_region_number(), 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);
@@ -2027,11 +1997,6 @@ size_t InsertRequest::ByteSizeLong() const {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_row_count());
}
// uint32 region_number = 5;
if (this->_internal_region_number() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_region_number());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
@@ -2057,9 +2022,6 @@ void InsertRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
if (from._internal_row_count() != 0) {
_this->_internal_set_row_count(from._internal_row_count());
}
if (from._internal_region_number() != 0) {
_this->_internal_set_region_number(from._internal_region_number());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -2084,12 +2046,7 @@ void InsertRequest::InternalSwap(InsertRequest* other) {
&_impl_.table_name_, lhs_arena,
&other->_impl_.table_name_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(InsertRequest, _impl_.region_number_)
+ sizeof(InsertRequest::_impl_.region_number_)
- PROTOBUF_FIELD_OFFSET(InsertRequest, _impl_.row_count_)>(
reinterpret_cast<char*>(&_impl_.row_count_),
reinterpret_cast<char*>(&other->_impl_.row_count_));
swap(_impl_.row_count_, other->_impl_.row_count_);
}
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequest::GetMetadata() const {
@@ -2304,7 +2261,6 @@ DeleteRequest::DeleteRequest(const DeleteRequest& from)
new (&_impl_) Impl_{
decltype(_impl_.key_columns_){from._impl_.key_columns_}
, decltype(_impl_.table_name_){}
, decltype(_impl_.region_number_){}
, decltype(_impl_.row_count_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -2317,9 +2273,7 @@ DeleteRequest::DeleteRequest(const DeleteRequest& from)
_this->_impl_.table_name_.Set(from._internal_table_name(),
_this->GetArenaForAllocation());
}
::memcpy(&_impl_.region_number_, &from._impl_.region_number_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.row_count_) -
reinterpret_cast<char*>(&_impl_.region_number_)) + sizeof(_impl_.row_count_));
_this->_impl_.row_count_ = from._impl_.row_count_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.DeleteRequest)
}
@@ -2330,7 +2284,6 @@ inline void DeleteRequest::SharedCtor(
new (&_impl_) Impl_{
decltype(_impl_.key_columns_){arena}
, decltype(_impl_.table_name_){}
, decltype(_impl_.region_number_){0u}
, decltype(_impl_.row_count_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
@@ -2367,9 +2320,7 @@ void DeleteRequest::Clear() {
_impl_.key_columns_.Clear();
_impl_.table_name_.ClearToEmpty();
::memset(&_impl_.region_number_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.row_count_) -
reinterpret_cast<char*>(&_impl_.region_number_)) + sizeof(_impl_.row_count_));
_impl_.row_count_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -2389,14 +2340,6 @@ const char* DeleteRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// uint32 region_number = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.region_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// repeated .greptime.v1.Column key_columns = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
@@ -2457,12 +2400,6 @@ uint8_t* DeleteRequest::_InternalSerialize(
1, this->_internal_table_name(), target);
}
// uint32 region_number = 2;
if (this->_internal_region_number() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_region_number(), target);
}
// repeated .greptime.v1.Column key_columns = 3;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_key_columns_size()); i < n; i++) {
@@ -2507,11 +2444,6 @@ size_t DeleteRequest::ByteSizeLong() const {
this->_internal_table_name());
}
// uint32 region_number = 2;
if (this->_internal_region_number() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_region_number());
}
// uint32 row_count = 4;
if (this->_internal_row_count() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_row_count());
@@ -2539,9 +2471,6 @@ void DeleteRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
if (!from._internal_table_name().empty()) {
_this->_internal_set_table_name(from._internal_table_name());
}
if (from._internal_region_number() != 0) {
_this->_internal_set_region_number(from._internal_region_number());
}
if (from._internal_row_count() != 0) {
_this->_internal_set_row_count(from._internal_row_count());
}
@@ -2569,12 +2498,7 @@ void DeleteRequest::InternalSwap(DeleteRequest* other) {
&_impl_.table_name_, lhs_arena,
&other->_impl_.table_name_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(DeleteRequest, _impl_.row_count_)
+ sizeof(DeleteRequest::_impl_.row_count_)
- PROTOBUF_FIELD_OFFSET(DeleteRequest, _impl_.region_number_)>(
reinterpret_cast<char*>(&_impl_.region_number_),
reinterpret_cast<char*>(&other->_impl_.region_number_));
swap(_impl_.row_count_, other->_impl_.row_count_);
}
::PROTOBUF_NAMESPACE_ID::Metadata DeleteRequest::GetMetadata() const {
@@ -2797,7 +2721,6 @@ RowInsertRequest::RowInsertRequest(const RowInsertRequest& from)
new (&_impl_) Impl_{
decltype(_impl_.table_name_){}
, decltype(_impl_.rows_){nullptr}
, decltype(_impl_.region_number_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
@@ -2812,7 +2735,6 @@ RowInsertRequest::RowInsertRequest(const RowInsertRequest& from)
if (from._internal_has_rows()) {
_this->_impl_.rows_ = new ::greptime::v1::Rows(*from._impl_.rows_);
}
_this->_impl_.region_number_ = from._impl_.region_number_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.RowInsertRequest)
}
@@ -2823,7 +2745,6 @@ inline void RowInsertRequest::SharedCtor(
new (&_impl_) Impl_{
decltype(_impl_.table_name_){}
, decltype(_impl_.rows_){nullptr}
, decltype(_impl_.region_number_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.table_name_.InitDefault();
@@ -2862,7 +2783,6 @@ void RowInsertRequest::Clear() {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
_impl_.region_number_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -2890,14 +2810,6 @@ const char* RowInsertRequest::_InternalParse(const char* ptr, ::_pbi::ParseConte
} else
goto handle_unusual;
continue;
// uint32 region_number = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
_impl_.region_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -2944,12 +2856,6 @@ uint8_t* RowInsertRequest::_InternalSerialize(
_Internal::rows(this).GetCachedSize(), target, stream);
}
// uint32 region_number = 3;
if (this->_internal_region_number() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_region_number(), 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);
@@ -2980,11 +2886,6 @@ size_t RowInsertRequest::ByteSizeLong() const {
*_impl_.rows_);
}
// uint32 region_number = 3;
if (this->_internal_region_number() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_region_number());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
@@ -3010,9 +2911,6 @@ void RowInsertRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const
_this->_internal_mutable_rows()->::greptime::v1::Rows::MergeFrom(
from._internal_rows());
}
if (from._internal_region_number() != 0) {
_this->_internal_set_region_number(from._internal_region_number());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -3036,12 +2934,7 @@ void RowInsertRequest::InternalSwap(RowInsertRequest* other) {
&_impl_.table_name_, lhs_arena,
&other->_impl_.table_name_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(RowInsertRequest, _impl_.region_number_)
+ sizeof(RowInsertRequest::_impl_.region_number_)
- PROTOBUF_FIELD_OFFSET(RowInsertRequest, _impl_.rows_)>(
reinterpret_cast<char*>(&_impl_.rows_),
reinterpret_cast<char*>(&other->_impl_.rows_));
swap(_impl_.rows_, other->_impl_.rows_);
}
::PROTOBUF_NAMESPACE_ID::Metadata RowInsertRequest::GetMetadata() const {
@@ -3264,7 +3157,6 @@ RowDeleteRequest::RowDeleteRequest(const RowDeleteRequest& from)
new (&_impl_) Impl_{
decltype(_impl_.table_name_){}
, decltype(_impl_.rows_){nullptr}
, decltype(_impl_.region_number_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
@@ -3279,7 +3171,6 @@ RowDeleteRequest::RowDeleteRequest(const RowDeleteRequest& from)
if (from._internal_has_rows()) {
_this->_impl_.rows_ = new ::greptime::v1::Rows(*from._impl_.rows_);
}
_this->_impl_.region_number_ = from._impl_.region_number_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.RowDeleteRequest)
}
@@ -3290,7 +3181,6 @@ inline void RowDeleteRequest::SharedCtor(
new (&_impl_) Impl_{
decltype(_impl_.table_name_){}
, decltype(_impl_.rows_){nullptr}
, decltype(_impl_.region_number_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.table_name_.InitDefault();
@@ -3329,7 +3219,6 @@ void RowDeleteRequest::Clear() {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
_impl_.region_number_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3357,14 +3246,6 @@ const char* RowDeleteRequest::_InternalParse(const char* ptr, ::_pbi::ParseConte
} else
goto handle_unusual;
continue;
// uint32 region_number = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
_impl_.region_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -3411,12 +3292,6 @@ uint8_t* RowDeleteRequest::_InternalSerialize(
_Internal::rows(this).GetCachedSize(), target, stream);
}
// uint32 region_number = 3;
if (this->_internal_region_number() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_region_number(), 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);
@@ -3447,11 +3322,6 @@ size_t RowDeleteRequest::ByteSizeLong() const {
*_impl_.rows_);
}
// uint32 region_number = 3;
if (this->_internal_region_number() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_region_number());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
@@ -3477,9 +3347,6 @@ void RowDeleteRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const
_this->_internal_mutable_rows()->::greptime::v1::Rows::MergeFrom(
from._internal_rows());
}
if (from._internal_region_number() != 0) {
_this->_internal_set_region_number(from._internal_region_number());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -3503,12 +3370,7 @@ void RowDeleteRequest::InternalSwap(RowDeleteRequest* other) {
&_impl_.table_name_, lhs_arena,
&other->_impl_.table_name_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(RowDeleteRequest, _impl_.region_number_)
+ sizeof(RowDeleteRequest::_impl_.region_number_)
- PROTOBUF_FIELD_OFFSET(RowDeleteRequest, _impl_.rows_)>(
reinterpret_cast<char*>(&_impl_.rows_),
reinterpret_cast<char*>(&other->_impl_.rows_));
swap(_impl_.rows_, other->_impl_.rows_);
}
::PROTOBUF_NAMESPACE_ID::Metadata RowDeleteRequest::GetMetadata() const {
-124
View File
@@ -1101,7 +1101,6 @@ class InsertRequest final :
kColumnsFieldNumber = 3,
kTableNameFieldNumber = 1,
kRowCountFieldNumber = 4,
kRegionNumberFieldNumber = 5,
};
// repeated .greptime.v1.Column columns = 3;
int columns_size() const;
@@ -1144,15 +1143,6 @@ class InsertRequest final :
void _internal_set_row_count(uint32_t value);
public:
// uint32 region_number = 5;
void clear_region_number();
uint32_t region_number() const;
void set_region_number(uint32_t value);
private:
uint32_t _internal_region_number() const;
void _internal_set_region_number(uint32_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.InsertRequest)
private:
class _Internal;
@@ -1164,7 +1154,6 @@ class InsertRequest final :
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Column > columns_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_;
uint32_t row_count_;
uint32_t region_number_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
@@ -1452,7 +1441,6 @@ class DeleteRequest final :
enum : int {
kKeyColumnsFieldNumber = 3,
kTableNameFieldNumber = 1,
kRegionNumberFieldNumber = 2,
kRowCountFieldNumber = 4,
};
// repeated .greptime.v1.Column key_columns = 3;
@@ -1487,15 +1475,6 @@ class DeleteRequest final :
std::string* _internal_mutable_table_name();
public:
// uint32 region_number = 2;
void clear_region_number();
uint32_t region_number() const;
void set_region_number(uint32_t value);
private:
uint32_t _internal_region_number() const;
void _internal_set_region_number(uint32_t value);
public:
// uint32 row_count = 4;
void clear_row_count();
uint32_t row_count() const;
@@ -1515,7 +1494,6 @@ class DeleteRequest final :
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Column > key_columns_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_;
uint32_t region_number_;
uint32_t row_count_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
@@ -1804,7 +1782,6 @@ class RowInsertRequest final :
enum : int {
kTableNameFieldNumber = 1,
kRowsFieldNumber = 2,
kRegionNumberFieldNumber = 3,
};
// string table_name = 1;
void clear_table_name();
@@ -1838,15 +1815,6 @@ class RowInsertRequest final :
::greptime::v1::Rows* rows);
::greptime::v1::Rows* unsafe_arena_release_rows();
// uint32 region_number = 3;
void clear_region_number();
uint32_t region_number() const;
void set_region_number(uint32_t value);
private:
uint32_t _internal_region_number() const;
void _internal_set_region_number(uint32_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.RowInsertRequest)
private:
class _Internal;
@@ -1857,7 +1825,6 @@ class RowInsertRequest final :
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_;
::greptime::v1::Rows* rows_;
uint32_t region_number_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
@@ -2145,7 +2112,6 @@ class RowDeleteRequest final :
enum : int {
kTableNameFieldNumber = 1,
kRowsFieldNumber = 2,
kRegionNumberFieldNumber = 3,
};
// string table_name = 1;
void clear_table_name();
@@ -2179,15 +2145,6 @@ class RowDeleteRequest final :
::greptime::v1::Rows* rows);
::greptime::v1::Rows* unsafe_arena_release_rows();
// uint32 region_number = 3;
void clear_region_number();
uint32_t region_number() const;
void set_region_number(uint32_t value);
private:
uint32_t _internal_region_number() const;
void _internal_set_region_number(uint32_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.RowDeleteRequest)
private:
class _Internal;
@@ -2198,7 +2155,6 @@ class RowDeleteRequest final :
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_;
::greptime::v1::Rows* rows_;
uint32_t region_number_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
@@ -3297,26 +3253,6 @@ inline void InsertRequest::set_row_count(uint32_t value) {
// @@protoc_insertion_point(field_set:greptime.v1.InsertRequest.row_count)
}
// uint32 region_number = 5;
inline void InsertRequest::clear_region_number() {
_impl_.region_number_ = 0u;
}
inline uint32_t InsertRequest::_internal_region_number() const {
return _impl_.region_number_;
}
inline uint32_t InsertRequest::region_number() const {
// @@protoc_insertion_point(field_get:greptime.v1.InsertRequest.region_number)
return _internal_region_number();
}
inline void InsertRequest::_internal_set_region_number(uint32_t value) {
_impl_.region_number_ = value;
}
inline void InsertRequest::set_region_number(uint32_t value) {
_internal_set_region_number(value);
// @@protoc_insertion_point(field_set:greptime.v1.InsertRequest.region_number)
}
// -------------------------------------------------------------------
// DeleteRequests
@@ -3415,26 +3351,6 @@ inline void DeleteRequest::set_allocated_table_name(std::string* table_name) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.DeleteRequest.table_name)
}
// uint32 region_number = 2;
inline void DeleteRequest::clear_region_number() {
_impl_.region_number_ = 0u;
}
inline uint32_t DeleteRequest::_internal_region_number() const {
return _impl_.region_number_;
}
inline uint32_t DeleteRequest::region_number() const {
// @@protoc_insertion_point(field_get:greptime.v1.DeleteRequest.region_number)
return _internal_region_number();
}
inline void DeleteRequest::_internal_set_region_number(uint32_t value) {
_impl_.region_number_ = value;
}
inline void DeleteRequest::set_region_number(uint32_t value) {
_internal_set_region_number(value);
// @@protoc_insertion_point(field_set:greptime.v1.DeleteRequest.region_number)
}
// repeated .greptime.v1.Column key_columns = 3;
inline int DeleteRequest::_internal_key_columns_size() const {
return _impl_.key_columns_.size();
@@ -3675,26 +3591,6 @@ inline void RowInsertRequest::set_allocated_rows(::greptime::v1::Rows* rows) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.RowInsertRequest.rows)
}
// uint32 region_number = 3;
inline void RowInsertRequest::clear_region_number() {
_impl_.region_number_ = 0u;
}
inline uint32_t RowInsertRequest::_internal_region_number() const {
return _impl_.region_number_;
}
inline uint32_t RowInsertRequest::region_number() const {
// @@protoc_insertion_point(field_get:greptime.v1.RowInsertRequest.region_number)
return _internal_region_number();
}
inline void RowInsertRequest::_internal_set_region_number(uint32_t value) {
_impl_.region_number_ = value;
}
inline void RowInsertRequest::set_region_number(uint32_t value) {
_internal_set_region_number(value);
// @@protoc_insertion_point(field_set:greptime.v1.RowInsertRequest.region_number)
}
// -------------------------------------------------------------------
// RowDeleteRequests
@@ -3878,26 +3774,6 @@ inline void RowDeleteRequest::set_allocated_rows(::greptime::v1::Rows* rows) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.RowDeleteRequest.rows)
}
// uint32 region_number = 3;
inline void RowDeleteRequest::clear_region_number() {
_impl_.region_number_ = 0u;
}
inline uint32_t RowDeleteRequest::_internal_region_number() const {
return _impl_.region_number_;
}
inline uint32_t RowDeleteRequest::region_number() const {
// @@protoc_insertion_point(field_get:greptime.v1.RowDeleteRequest.region_number)
return _internal_region_number();
}
inline void RowDeleteRequest::_internal_set_region_number(uint32_t value) {
_impl_.region_number_ = value;
}
inline void RowDeleteRequest::set_region_number(uint32_t value) {
_internal_set_region_number(value);
// @@protoc_insertion_point(field_set:greptime.v1.RowDeleteRequest.region_number)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
+53 -99
View File
@@ -52,8 +52,6 @@ PROTOBUF_CONSTEXPR CreateTableExpr::CreateTableExpr(
/*decltype(_impl_.column_defs_)*/{}
, /*decltype(_impl_.primary_keys_)*/{}
, /*decltype(_impl_.table_options_)*/{::_pbi::ConstantInitialized()}
, /*decltype(_impl_.region_numbers_)*/{}
, /*decltype(_impl_._region_numbers_cached_byte_size_)*/{0}
, /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
@@ -302,7 +300,6 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr, _impl_.create_if_not_exists_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr, _impl_.table_options_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr, _impl_.table_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr, _impl_.region_numbers_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr, _impl_.engine_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterExpr, _internal_metadata_),
@@ -423,19 +420,19 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 0, -1, -1, sizeof(::greptime::v1::DdlRequest)},
{ 12, 20, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)},
{ 22, -1, -1, sizeof(::greptime::v1::CreateTableExpr)},
{ 40, -1, -1, sizeof(::greptime::v1::AlterExpr)},
{ 53, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
{ 63, 71, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
{ 73, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
{ 82, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
{ 92, -1, -1, sizeof(::greptime::v1::AddColumns)},
{ 99, -1, -1, sizeof(::greptime::v1::DropColumns)},
{ 106, -1, -1, sizeof(::greptime::v1::RenameTable)},
{ 113, -1, -1, sizeof(::greptime::v1::AddColumn)},
{ 121, -1, -1, sizeof(::greptime::v1::DropColumn)},
{ 128, -1, -1, sizeof(::greptime::v1::TableId)},
{ 135, -1, -1, sizeof(::greptime::v1::ColumnDef)},
{ 146, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
{ 39, -1, -1, sizeof(::greptime::v1::AlterExpr)},
{ 52, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
{ 62, 70, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
{ 72, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
{ 81, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
{ 91, -1, -1, sizeof(::greptime::v1::AddColumns)},
{ 98, -1, -1, sizeof(::greptime::v1::DropColumns)},
{ 105, -1, -1, sizeof(::greptime::v1::RenameTable)},
{ 112, -1, -1, sizeof(::greptime::v1::AddColumn)},
{ 120, -1, -1, sizeof(::greptime::v1::DropColumn)},
{ 127, -1, -1, sizeof(::greptime::v1::TableId)},
{ 134, -1, -1, sizeof(::greptime::v1::ColumnDef)},
{ 145, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -466,7 +463,7 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
"\030\003 \001(\0132\026.greptime.v1.AlterExprH\000\0220\n\ndrop"
"_table\030\004 \001(\0132\032.greptime.v1.DropTableExpr"
"H\000\0228\n\016truncate_table\030\007 \001(\0132\036.greptime.v1"
".TruncateTableExprH\000B\006\n\004expr\"\237\003\n\017CreateT"
".TruncateTableExprH\000B\006\n\004expr\"\207\003\n\017CreateT"
"ableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema"
"_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\014\n\004desc\030"
"\004 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.greptime.v1"
@@ -474,52 +471,51 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
"y_keys\030\007 \003(\t\022\034\n\024create_if_not_exists\030\010 \001"
"(\010\022E\n\rtable_options\030\t \003(\0132..greptime.v1."
"CreateTableExpr.TableOptionsEntry\022&\n\010tab"
"le_id\030\n \001(\0132\024.greptime.v1.TableId\022\026\n\016reg"
"ion_numbers\030\013 \003(\r\022\016\n\006engine\030\014 \001(\t\0323\n\021Tab"
"leOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
"(\t:\0028\001\"\346\001\n\tAlterExpr\022\024\n\014catalog_name\030\001 \001"
"(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 "
"\001(\t\022.\n\013add_columns\030\004 \001(\0132\027.greptime.v1.A"
"ddColumnsH\000\0220\n\014drop_columns\030\005 \001(\0132\030.grep"
"time.v1.DropColumnsH\000\0220\n\014rename_table\030\006 "
"\001(\0132\030.greptime.v1.RenameTableH\000B\006\n\004kind\""
"v\n\rDropTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023"
"\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022"
"&\n\010table_id\030\004 \001(\0132\024.greptime.v1.TableId\""
"\270\001\n\022CreateDatabaseExpr\022\025\n\rdatabase_name\030"
"\001 \001(\t\022\034\n\024create_if_not_exists\030\002 \001(\010\022=\n\007o"
"ptions\030\003 \003(\0132,.greptime.v1.CreateDatabas"
"eExpr.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke"
"y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTa"
"bleExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_"
"name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_"
"id\030\004 \001(\0132\024.greptime.v1.TableId\"9\n\nAddCol"
"umns\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1."
"AddColumn\"<\n\013DropColumns\022-\n\014drop_columns"
"\030\001 \003(\0132\027.greptime.v1.DropColumn\"%\n\013Renam"
"eTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddCol"
"umn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Co"
"lumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1."
"AddColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030"
"\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\254\001\n\tColumnD"
"ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr"
"eptime.v1.ColumnDataType\022\023\n\013is_nullable\030"
"\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem"
"antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT"
"ype\"\230\001\n\021AddColumnLocation\022B\n\rlocation_ty"
"pe\030\001 \001(\0162+.greptime.v1.AddColumnLocation"
".LocationType\022\031\n\021after_column_name\030\002 \001(\t"
"\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL"
"\n\016io.greptime.v1B\003DdlZ5github.com/Grepti"
"meTeam/greptime-proto/go/greptime/v1b\006pr"
"oto3"
"le_id\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006eng"
"ine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003key\030\001 "
"\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterExpr\022\024\n\014"
"catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022"
"\022\n\ntable_name\030\003 \001(\t\022.\n\013add_columns\030\004 \001(\013"
"2\027.greptime.v1.AddColumnsH\000\0220\n\014drop_colu"
"mns\030\005 \001(\0132\030.greptime.v1.DropColumnsH\000\0220\n"
"\014rename_table\030\006 \001(\0132\030.greptime.v1.Rename"
"TableH\000B\006\n\004kind\"v\n\rDropTableExpr\022\024\n\014cata"
"log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nt"
"able_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grep"
"time.v1.TableId\"\270\001\n\022CreateDatabaseExpr\022\025"
"\n\rdatabase_name\030\001 \001(\t\022\034\n\024create_if_not_e"
"xists\030\002 \001(\010\022=\n\007options\030\003 \003(\0132,.greptime."
"v1.CreateDatabaseExpr.OptionsEntry\032.\n\014Op"
"tionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
"8\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_name\030"
"\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name"
"\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.T"
"ableId\"9\n\nAddColumns\022+\n\013add_columns\030\001 \003("
"\0132\026.greptime.v1.AddColumn\"<\n\013DropColumns"
"\022-\n\014drop_columns\030\001 \003(\0132\027.greptime.v1.Dro"
"pColumn\"%\n\013RenameTable\022\026\n\016new_table_name"
"\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132"
"\026.greptime.v1.ColumnDef\0220\n\010location\030\003 \001("
"\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDro"
"pColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001"
" \001(\r\"\254\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata"
"_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType"
"\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_constra"
"int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept"
"ime.v1.SemanticType\"\230\001\n\021AddColumnLocatio"
"n\022B\n\rlocation_type\030\001 \001(\0162+.greptime.v1.A"
"ddColumnLocation.LocationType\022\031\n\021after_c"
"olumn_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRS"
"T\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5g"
"ithub.com/GreptimeTeam/greptime-proto/go"
"/greptime/v1b\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
false, false, 2164, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
false, false, 2140, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
"greptime/v1/ddl.proto",
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 16,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
@@ -1076,8 +1072,6 @@ CreateTableExpr::CreateTableExpr(const CreateTableExpr& from)
decltype(_impl_.column_defs_){from._impl_.column_defs_}
, decltype(_impl_.primary_keys_){from._impl_.primary_keys_}
, /*decltype(_impl_.table_options_)*/{}
, decltype(_impl_.region_numbers_){from._impl_.region_numbers_}
, /*decltype(_impl_._region_numbers_cached_byte_size_)*/{0}
, decltype(_impl_.catalog_name_){}
, decltype(_impl_.schema_name_){}
, decltype(_impl_.table_name_){}
@@ -1153,8 +1147,6 @@ inline void CreateTableExpr::SharedCtor(
decltype(_impl_.column_defs_){arena}
, decltype(_impl_.primary_keys_){arena}
, /*decltype(_impl_.table_options_)*/{::_pbi::ArenaInitialized(), arena}
, decltype(_impl_.region_numbers_){arena}
, /*decltype(_impl_._region_numbers_cached_byte_size_)*/{0}
, decltype(_impl_.catalog_name_){}
, decltype(_impl_.schema_name_){}
, decltype(_impl_.table_name_){}
@@ -1207,7 +1199,6 @@ inline void CreateTableExpr::SharedDtor() {
_impl_.primary_keys_.~RepeatedPtrField();
_impl_.table_options_.Destruct();
_impl_.table_options_.~MapField();
_impl_.region_numbers_.~RepeatedField();
_impl_.catalog_name_.Destroy();
_impl_.schema_name_.Destroy();
_impl_.table_name_.Destroy();
@@ -1234,7 +1225,6 @@ void CreateTableExpr::Clear() {
_impl_.column_defs_.Clear();
_impl_.primary_keys_.Clear();
_impl_.table_options_.Clear();
_impl_.region_numbers_.Clear();
_impl_.catalog_name_.ClearToEmpty();
_impl_.schema_name_.ClearToEmpty();
_impl_.table_name_.ClearToEmpty();
@@ -1362,17 +1352,6 @@ const char* CreateTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseContex
} else
goto handle_unusual;
continue;
// repeated uint32 region_numbers = 11;
case 11:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_region_numbers(), ptr, ctx);
CHK_(ptr);
} else if (static_cast<uint8_t>(tag) == 88) {
_internal_add_region_numbers(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// string engine = 12;
case 12:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98)) {
@@ -1523,15 +1502,6 @@ uint8_t* CreateTableExpr::_InternalSerialize(
_Internal::table_id(this).GetCachedSize(), target, stream);
}
// repeated uint32 region_numbers = 11;
{
int byte_size = _impl_._region_numbers_cached_byte_size_.load(std::memory_order_relaxed);
if (byte_size > 0) {
target = stream->WriteUInt32Packed(
11, _internal_region_numbers(), byte_size, target);
}
}
// string engine = 12;
if (!this->_internal_engine().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
@@ -1582,20 +1552,6 @@ size_t CreateTableExpr::ByteSizeLong() const {
total_size += CreateTableExpr_TableOptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// repeated uint32 region_numbers = 11;
{
size_t data_size = ::_pbi::WireFormatLite::
UInt32Size(this->_impl_.region_numbers_);
if (data_size > 0) {
total_size += 1 +
::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
}
int cached_size = ::_pbi::ToCachedSize(data_size);
_impl_._region_numbers_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
// string catalog_name = 1;
if (!this->_internal_catalog_name().empty()) {
total_size += 1 +
@@ -1671,7 +1627,6 @@ void CreateTableExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const
_this->_impl_.column_defs_.MergeFrom(from._impl_.column_defs_);
_this->_impl_.primary_keys_.MergeFrom(from._impl_.primary_keys_);
_this->_impl_.table_options_.MergeFrom(from._impl_.table_options_);
_this->_impl_.region_numbers_.MergeFrom(from._impl_.region_numbers_);
if (!from._internal_catalog_name().empty()) {
_this->_internal_set_catalog_name(from._internal_catalog_name());
}
@@ -1719,7 +1674,6 @@ void CreateTableExpr::InternalSwap(CreateTableExpr* other) {
_impl_.column_defs_.InternalSwap(&other->_impl_.column_defs_);
_impl_.primary_keys_.InternalSwap(&other->_impl_.primary_keys_);
_impl_.table_options_.InternalSwap(&other->_impl_.table_options_);
_impl_.region_numbers_.InternalSwap(&other->_impl_.region_numbers_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.catalog_name_, lhs_arena,
&other->_impl_.catalog_name_, rhs_arena
-72
View File
@@ -566,7 +566,6 @@ class CreateTableExpr final :
kColumnDefsFieldNumber = 5,
kPrimaryKeysFieldNumber = 7,
kTableOptionsFieldNumber = 9,
kRegionNumbersFieldNumber = 11,
kCatalogNameFieldNumber = 1,
kSchemaNameFieldNumber = 2,
kTableNameFieldNumber = 3,
@@ -635,28 +634,6 @@ class CreateTableExpr final :
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
mutable_table_options();
// repeated uint32 region_numbers = 11;
int region_numbers_size() const;
private:
int _internal_region_numbers_size() const;
public:
void clear_region_numbers();
private:
uint32_t _internal_region_numbers(int index) const;
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
_internal_region_numbers() const;
void _internal_add_region_numbers(uint32_t value);
::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
_internal_mutable_region_numbers();
public:
uint32_t region_numbers(int index) const;
void set_region_numbers(int index, uint32_t value);
void add_region_numbers(uint32_t value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
region_numbers() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
mutable_region_numbers();
// string catalog_name = 1;
void clear_catalog_name();
const std::string& catalog_name() const;
@@ -783,8 +760,6 @@ class CreateTableExpr final :
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> table_options_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > region_numbers_;
mutable std::atomic<int> _region_numbers_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_;
@@ -3933,53 +3908,6 @@ inline void CreateTableExpr::set_allocated_table_id(::greptime::v1::TableId* tab
// @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateTableExpr.table_id)
}
// repeated uint32 region_numbers = 11;
inline int CreateTableExpr::_internal_region_numbers_size() const {
return _impl_.region_numbers_.size();
}
inline int CreateTableExpr::region_numbers_size() const {
return _internal_region_numbers_size();
}
inline void CreateTableExpr::clear_region_numbers() {
_impl_.region_numbers_.Clear();
}
inline uint32_t CreateTableExpr::_internal_region_numbers(int index) const {
return _impl_.region_numbers_.Get(index);
}
inline uint32_t CreateTableExpr::region_numbers(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.CreateTableExpr.region_numbers)
return _internal_region_numbers(index);
}
inline void CreateTableExpr::set_region_numbers(int index, uint32_t value) {
_impl_.region_numbers_.Set(index, value);
// @@protoc_insertion_point(field_set:greptime.v1.CreateTableExpr.region_numbers)
}
inline void CreateTableExpr::_internal_add_region_numbers(uint32_t value) {
_impl_.region_numbers_.Add(value);
}
inline void CreateTableExpr::add_region_numbers(uint32_t value) {
_internal_add_region_numbers(value);
// @@protoc_insertion_point(field_add:greptime.v1.CreateTableExpr.region_numbers)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
CreateTableExpr::_internal_region_numbers() const {
return _impl_.region_numbers_;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
CreateTableExpr::region_numbers() const {
// @@protoc_insertion_point(field_list:greptime.v1.CreateTableExpr.region_numbers)
return _internal_region_numbers();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
CreateTableExpr::_internal_mutable_region_numbers() {
return &_impl_.region_numbers_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
CreateTableExpr::mutable_region_numbers() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.CreateTableExpr.region_numbers)
return _internal_mutable_region_numbers();
}
// string engine = 12;
inline void CreateTableExpr::clear_engine() {
_impl_.engine_.ClearToEmpty();
+115 -66
View File
@@ -123,6 +123,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
PROTOBUF_CONSTEXPR QueryRequest::QueryRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.plan_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.header_)*/nullptr
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct QueryRequestDefaultTypeInternal {
@@ -406,6 +407,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryRequest, _impl_.header_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryRequest, _impl_.region_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryRequest, _impl_.plan_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse, _has_bits_),
@@ -539,20 +541,20 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 47, -1, -1, sizeof(::greptime::v1::region::InsertRequest)},
{ 55, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
{ 63, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
{ 71, 79, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
{ 81, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
{ 95, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
{ 102, 110, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
{ 112, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
{ 123, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
{ 130, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
{ 141, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
{ 148, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
{ 155, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
{ 163, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
{ 170, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
{ 177, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 184, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
{ 72, 80, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
{ 82, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
{ 96, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
{ 103, 111, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
{ 113, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
{ 124, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
{ 131, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
{ 142, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
{ 149, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
{ 156, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
{ 164, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
{ 171, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
{ 178, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 185, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -608,43 +610,44 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
"est\"C\n\rInsertRequest\022\021\n\tregion_id\030\001 \001(\004\022"
"\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"C\n\rDele"
"teRequest\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001"
"(\0132\021.greptime.v1.Rows\"/\n\014QueryRequest\022\021\n"
"\tregion_id\030\001 \001(\004\022\014\n\004plan\030\002 \001(\014\"\261\002\n\rCreat"
"eRequest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 "
"\001(\t\0228\n\013column_defs\030\003 \003(\0132#.greptime.v1.r"
"egion.RegionColumnDef\022\023\n\013primary_key\030\004 \003"
"(\r\022\034\n\024create_if_not_exists\030\005 \001(\010\022\017\n\007cata"
"log\030\006 \001(\t\022\016\n\006schema\030\007 \001(\t\022\?\n\007options\030\010 \003"
"(\0132..greptime.v1.region.CreateRequest.Op"
"tionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022"
"\r\n\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022\021\n\treg"
"ion_id\030\001 \001(\004\"\300\001\n\013OpenRequest\022\021\n\tregion_i"
"d\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\017\n\007catalog\030\003 \001(\t"
"\022\016\n\006schema\030\004 \001(\t\022=\n\007options\030\005 \003(\0132,.grep"
"time.v1.region.OpenRequest.OptionsEntry\032"
".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
"\001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001"
"(\004\"\261\001\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\0225"
"\n\013add_columns\030\002 \001(\0132\036.greptime.v1.region"
".AddColumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037.gr"
"eptime.v1.region.DropColumnsH\000\022\026\n\016schema"
"_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013"
"add_columns\030\001 \003(\0132\035.greptime.v1.region.A"
"ddColumn\"C\n\013DropColumns\0224\n\014drop_columns\030"
"\001 \003(\0132\036.greptime.v1.region.DropColumn\"v\n"
"\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132#.greptim"
"e.v1.region.RegionColumnDef\0220\n\010location\030"
"\003 \001(\0132\036.greptime.v1.AddColumnLocation\"\032\n"
"\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushReques"
"t\022\021\n\tregion_id\030\001 \001(\004\"#\n\016CompactRequest\022\021"
"\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\n"
"column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef"
"\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022"
"!.greptime.v1.region.RegionRequest\032\".gre"
"ptime.v1.region.RegionResponseB]\n\025io.gre"
"ptime.v1.regionB\006ServerZ<github.com/Grep"
"timeTeam/greptime-proto/go/greptime/v1/r"
"egionb\006proto3"
"(\0132\021.greptime.v1.Rows\"h\n\014QueryRequest\0227\n"
"\006header\030\001 \001(\0132\'.greptime.v1.region.Regio"
"nRequestHeader\022\021\n\tregion_id\030\002 \001(\004\022\014\n\004pla"
"n\030\003 \001(\014\"\261\002\n\rCreateRequest\022\021\n\tregion_id\030\001"
" \001(\004\022\016\n\006engine\030\002 \001(\t\0228\n\013column_defs\030\003 \003("
"\0132#.greptime.v1.region.RegionColumnDef\022\023"
"\n\013primary_key\030\004 \003(\r\022\034\n\024create_if_not_exi"
"sts\030\005 \001(\010\022\017\n\007catalog\030\006 \001(\t\022\016\n\006schema\030\007 \001"
"(\t\022\?\n\007options\030\010 \003(\0132..greptime.v1.region"
".CreateRequest.OptionsEntry\032.\n\014OptionsEn"
"try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013D"
"ropRequest\022\021\n\tregion_id\030\001 \001(\004\"\300\001\n\013OpenRe"
"quest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t"
"\022\017\n\007catalog\030\003 \001(\t\022\016\n\006schema\030\004 \001(\t\022=\n\007opt"
"ions\030\005 \003(\0132,.greptime.v1.region.OpenRequ"
"est.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030"
"\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest"
"\022\021\n\tregion_id\030\001 \001(\004\"\261\001\n\014AlterRequest\022\021\n\t"
"region_id\030\001 \001(\004\0225\n\013add_columns\030\002 \001(\0132\036.g"
"reptime.v1.region.AddColumnsH\000\0227\n\014drop_c"
"olumns\030\003 \001(\0132\037.greptime.v1.region.DropCo"
"lumnsH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\""
"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(\0132\035.gre"
"ptime.v1.region.AddColumn\"C\n\013DropColumns"
"\0224\n\014drop_columns\030\001 \003(\0132\036.greptime.v1.reg"
"ion.DropColumn\"v\n\tAddColumn\0227\n\ncolumn_de"
"f\030\001 \001(\0132#.greptime.v1.region.RegionColum"
"nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add"
"ColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001"
"(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"#\n"
"\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017Re"
"gionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.grep"
"time.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006"
"Region\022O\n\006Handle\022!.greptime.v1.region.Re"
"gionRequest\032\".greptime.v1.region.RegionR"
"esponseB]\n\025io.greptime.v1.regionB\006Server"
"Z<github.com/GreptimeTeam/greptime-proto"
"/go/greptime/v1/regionb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -653,7 +656,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2freg
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
false, false, 2533, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
false, false, 2590, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
"greptime/v1/region/server.proto",
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 3, 22,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
@@ -2698,8 +2701,13 @@ void DeleteRequest::InternalSwap(DeleteRequest* other) {
class QueryRequest::_Internal {
public:
static const ::greptime::v1::region::RegionRequestHeader& header(const QueryRequest* msg);
};
const ::greptime::v1::region::RegionRequestHeader&
QueryRequest::_Internal::header(const QueryRequest* msg) {
return *msg->_impl_.header_;
}
QueryRequest::QueryRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -2711,6 +2719,7 @@ QueryRequest::QueryRequest(const QueryRequest& from)
QueryRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.plan_){}
, decltype(_impl_.header_){nullptr}
, decltype(_impl_.region_id_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -2723,6 +2732,9 @@ QueryRequest::QueryRequest(const QueryRequest& from)
_this->_impl_.plan_.Set(from._internal_plan(),
_this->GetArenaForAllocation());
}
if (from._internal_has_header()) {
_this->_impl_.header_ = new ::greptime::v1::region::RegionRequestHeader(*from._impl_.header_);
}
_this->_impl_.region_id_ = from._impl_.region_id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.QueryRequest)
}
@@ -2733,6 +2745,7 @@ inline void QueryRequest::SharedCtor(
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.plan_){}
, decltype(_impl_.header_){nullptr}
, decltype(_impl_.region_id_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
@@ -2754,6 +2767,7 @@ QueryRequest::~QueryRequest() {
inline void QueryRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.plan_.Destroy();
if (this != internal_default_instance()) delete _impl_.header_;
}
void QueryRequest::SetCachedSize(int size) const {
@@ -2767,6 +2781,10 @@ void QueryRequest::Clear() {
(void) cached_has_bits;
_impl_.plan_.ClearToEmpty();
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
delete _impl_.header_;
}
_impl_.header_ = nullptr;
_impl_.region_id_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -2777,17 +2795,25 @@ const char* QueryRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint64 region_id = 1;
// .greptime.v1.region.RegionRequestHeader header = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr = ctx->ParseMessage(_internal_mutable_header(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint64 region_id = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// bytes plan = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
// bytes plan = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
auto str = _internal_mutable_plan();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
@@ -2823,16 +2849,23 @@ uint8_t* QueryRequest::_InternalSerialize(
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint64 region_id = 1;
if (this->_internal_region_id() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), target);
// .greptime.v1.region.RegionRequestHeader header = 1;
if (this->_internal_has_header()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, _Internal::header(this),
_Internal::header(this).GetCachedSize(), target, stream);
}
// bytes plan = 2;
// uint64 region_id = 2;
if (this->_internal_region_id() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_region_id(), target);
}
// bytes plan = 3;
if (!this->_internal_plan().empty()) {
target = stream->WriteBytesMaybeAliased(
2, this->_internal_plan(), target);
3, this->_internal_plan(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -2851,14 +2884,21 @@ size_t QueryRequest::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// bytes plan = 2;
// bytes plan = 3;
if (!this->_internal_plan().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
this->_internal_plan());
}
// uint64 region_id = 1;
// .greptime.v1.region.RegionRequestHeader header = 1;
if (this->_internal_has_header()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.header_);
}
// uint64 region_id = 2;
if (this->_internal_region_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
}
@@ -2884,6 +2924,10 @@ void QueryRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
if (!from._internal_plan().empty()) {
_this->_internal_set_plan(from._internal_plan());
}
if (from._internal_has_header()) {
_this->_internal_mutable_header()->::greptime::v1::region::RegionRequestHeader::MergeFrom(
from._internal_header());
}
if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
}
@@ -2910,7 +2954,12 @@ void QueryRequest::InternalSwap(QueryRequest* other) {
&_impl_.plan_, lhs_arena,
&other->_impl_.plan_, rhs_arena
);
swap(_impl_.region_id_, other->_impl_.region_id_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(QueryRequest, _impl_.region_id_)
+ sizeof(QueryRequest::_impl_.region_id_)
- PROTOBUF_FIELD_OFFSET(QueryRequest, _impl_.header_)>(
reinterpret_cast<char*>(&_impl_.header_),
reinterpret_cast<char*>(&other->_impl_.header_));
}
::PROTOBUF_NAMESPACE_ID::Metadata QueryRequest::GetMetadata() const {
+116 -6
View File
@@ -1620,10 +1620,11 @@ class QueryRequest final :
// accessors -------------------------------------------------------
enum : int {
kPlanFieldNumber = 2,
kRegionIdFieldNumber = 1,
kPlanFieldNumber = 3,
kHeaderFieldNumber = 1,
kRegionIdFieldNumber = 2,
};
// bytes plan = 2;
// bytes plan = 3;
void clear_plan();
const std::string& plan() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
@@ -1637,7 +1638,25 @@ class QueryRequest final :
std::string* _internal_mutable_plan();
public:
// uint64 region_id = 1;
// .greptime.v1.region.RegionRequestHeader header = 1;
bool has_header() const;
private:
bool _internal_has_header() const;
public:
void clear_header();
const ::greptime::v1::region::RegionRequestHeader& header() const;
PROTOBUF_NODISCARD ::greptime::v1::region::RegionRequestHeader* release_header();
::greptime::v1::region::RegionRequestHeader* mutable_header();
void set_allocated_header(::greptime::v1::region::RegionRequestHeader* header);
private:
const ::greptime::v1::region::RegionRequestHeader& _internal_header() const;
::greptime::v1::region::RegionRequestHeader* _internal_mutable_header();
public:
void unsafe_arena_set_allocated_header(
::greptime::v1::region::RegionRequestHeader* header);
::greptime::v1::region::RegionRequestHeader* unsafe_arena_release_header();
// uint64 region_id = 2;
void clear_region_id();
uint64_t region_id() const;
void set_region_id(uint64_t value);
@@ -1655,6 +1674,7 @@ class QueryRequest final :
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr plan_;
::greptime::v1::region::RegionRequestHeader* header_;
uint64_t region_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
@@ -5078,7 +5098,97 @@ inline void DeleteRequest::set_allocated_rows(::greptime::v1::Rows* rows) {
// QueryRequest
// uint64 region_id = 1;
// .greptime.v1.region.RegionRequestHeader header = 1;
inline bool QueryRequest::_internal_has_header() const {
return this != internal_default_instance() && _impl_.header_ != nullptr;
}
inline bool QueryRequest::has_header() const {
return _internal_has_header();
}
inline void QueryRequest::clear_header() {
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
delete _impl_.header_;
}
_impl_.header_ = nullptr;
}
inline const ::greptime::v1::region::RegionRequestHeader& QueryRequest::_internal_header() const {
const ::greptime::v1::region::RegionRequestHeader* p = _impl_.header_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::region::RegionRequestHeader&>(
::greptime::v1::region::_RegionRequestHeader_default_instance_);
}
inline const ::greptime::v1::region::RegionRequestHeader& QueryRequest::header() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.QueryRequest.header)
return _internal_header();
}
inline void QueryRequest::unsafe_arena_set_allocated_header(
::greptime::v1::region::RegionRequestHeader* header) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
}
_impl_.header_ = header;
if (header) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.QueryRequest.header)
}
inline ::greptime::v1::region::RegionRequestHeader* QueryRequest::release_header() {
::greptime::v1::region::RegionRequestHeader* temp = _impl_.header_;
_impl_.header_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::region::RegionRequestHeader* QueryRequest::unsafe_arena_release_header() {
// @@protoc_insertion_point(field_release:greptime.v1.region.QueryRequest.header)
::greptime::v1::region::RegionRequestHeader* temp = _impl_.header_;
_impl_.header_ = nullptr;
return temp;
}
inline ::greptime::v1::region::RegionRequestHeader* QueryRequest::_internal_mutable_header() {
if (_impl_.header_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::region::RegionRequestHeader>(GetArenaForAllocation());
_impl_.header_ = p;
}
return _impl_.header_;
}
inline ::greptime::v1::region::RegionRequestHeader* QueryRequest::mutable_header() {
::greptime::v1::region::RegionRequestHeader* _msg = _internal_mutable_header();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.QueryRequest.header)
return _msg;
}
inline void QueryRequest::set_allocated_header(::greptime::v1::region::RegionRequestHeader* header) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.header_;
}
if (header) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(header);
if (message_arena != submessage_arena) {
header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, header, submessage_arena);
}
} else {
}
_impl_.header_ = header;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.QueryRequest.header)
}
// uint64 region_id = 2;
inline void QueryRequest::clear_region_id() {
_impl_.region_id_ = uint64_t{0u};
}
@@ -5098,7 +5208,7 @@ inline void QueryRequest::set_region_id(uint64_t value) {
// @@protoc_insertion_point(field_set:greptime.v1.region.QueryRequest.region_id)
}
// bytes plan = 2;
// bytes plan = 3;
inline void QueryRequest::clear_plan() {
_impl_.plan_.ClearToEmpty();
}
+68 -68
View File
@@ -166,7 +166,7 @@ const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECT
"\0162\033.greptime.v1.ColumnDataType\0220\n\rsemant"
"ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType"
"\")\n\003Row\022\"\n\006values\030\001 \003(\0132\022.greptime.v1.Va"
"lue\"\356\005\n\005Value\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16"
"lue\"\212\006\n\005Value\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16"
"_value\030\002 \001(\005H\000\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti"
"64_value\030\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\t"
"u16_value\030\006 \001(\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023"
@@ -174,27 +174,27 @@ const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECT
"\022\023\n\tf64_value\030\n \001(\001H\000\022\024\n\nbool_value\030\013 \001("
"\010H\000\022\026\n\014binary_value\030\014 \001(\014H\000\022\026\n\014string_va"
"lue\030\r \001(\tH\000\022\024\n\ndate_value\030\016 \001(\005H\000\022\030\n\016dat"
"etime_value\030\017 \001(\003H\000\022\031\n\017ts_second_value\030\020"
" \001(\003H\000\022\036\n\024ts_millisecond_value\030\021 \001(\003H\000\022\036"
"\n\024ts_microsecond_value\030\022 \001(\003H\000\022\035\n\023ts_nan"
"osecond_value\030\023 \001(\003H\000\022\033\n\021time_second_val"
"ue\030\024 \001(\003H\000\022 \n\026time_millisecond_value\030\025 \001"
"(\003H\000\022 \n\026time_microsecond_value\030\026 \001(\003H\000\022\037"
"\n\025time_nanosecond_value\030\027 \001(\003H\000\022$\n\032inter"
"val_year_month_values\030\030 \001(\005H\000\022\"\n\030interva"
"l_day_time_values\030\031 \001(\003H\000\022K\n\036interval_mo"
"nth_day_nano_values\030\032 \001(\0132!.greptime.v1."
"IntervalMonthDayNanoH\000B\014\n\nvalue_dataBP\n\016"
"io.greptime.v1B\007RowDataZ5github.com/Grep"
"timeTeam/greptime-proto/go/greptime/v1b\006"
"proto3"
"etime_value\030\017 \001(\003H\000\022 \n\026timestamp_second_"
"value\030\020 \001(\003H\000\022%\n\033timestamp_millisecond_v"
"alue\030\021 \001(\003H\000\022%\n\033timestamp_microsecond_va"
"lue\030\022 \001(\003H\000\022$\n\032timestamp_nanosecond_valu"
"e\030\023 \001(\003H\000\022\033\n\021time_second_value\030\024 \001(\003H\000\022 "
"\n\026time_millisecond_value\030\025 \001(\003H\000\022 \n\026time"
"_microsecond_value\030\026 \001(\003H\000\022\037\n\025time_nanos"
"econd_value\030\027 \001(\003H\000\022$\n\032interval_year_mon"
"th_values\030\030 \001(\005H\000\022\"\n\030interval_day_time_v"
"alues\030\031 \001(\003H\000\022K\n\036interval_month_day_nano"
"_values\030\032 \001(\0132!.greptime.v1.IntervalMont"
"hDayNanoH\000B\014\n\nvalue_dataBP\n\016io.greptime."
"v1B\007RowDataZ5github.com/GreptimeTeam/gre"
"ptime-proto/go/greptime/v1b\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2frow_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2frow_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2frow_2eproto = {
false, false, 1166, descriptor_table_protodef_greptime_2fv1_2frow_2eproto,
false, false, 1194, descriptor_table_protodef_greptime_2fv1_2frow_2eproto,
"greptime/v1/row.proto",
&descriptor_table_greptime_2fv1_2frow_2eproto_once, descriptor_table_greptime_2fv1_2frow_2eproto_deps, 1, 4,
schemas, file_default_instances, TableStruct_greptime_2fv1_2frow_2eproto::offsets,
@@ -995,20 +995,20 @@ Value::Value(const Value& from)
_this->_internal_set_datetime_value(from._internal_datetime_value());
break;
}
case kTsSecondValue: {
_this->_internal_set_ts_second_value(from._internal_ts_second_value());
case kTimestampSecondValue: {
_this->_internal_set_timestamp_second_value(from._internal_timestamp_second_value());
break;
}
case kTsMillisecondValue: {
_this->_internal_set_ts_millisecond_value(from._internal_ts_millisecond_value());
case kTimestampMillisecondValue: {
_this->_internal_set_timestamp_millisecond_value(from._internal_timestamp_millisecond_value());
break;
}
case kTsMicrosecondValue: {
_this->_internal_set_ts_microsecond_value(from._internal_ts_microsecond_value());
case kTimestampMicrosecondValue: {
_this->_internal_set_timestamp_microsecond_value(from._internal_timestamp_microsecond_value());
break;
}
case kTsNanosecondValue: {
_this->_internal_set_ts_nanosecond_value(from._internal_ts_nanosecond_value());
case kTimestampNanosecondValue: {
_this->_internal_set_timestamp_nanosecond_value(from._internal_timestamp_nanosecond_value());
break;
}
case kTimeSecondValue: {
@@ -1142,19 +1142,19 @@ void Value::clear_value_data() {
// No need to clear
break;
}
case kTsSecondValue: {
case kTimestampSecondValue: {
// No need to clear
break;
}
case kTsMillisecondValue: {
case kTimestampMillisecondValue: {
// No need to clear
break;
}
case kTsMicrosecondValue: {
case kTimestampMicrosecondValue: {
// No need to clear
break;
}
case kTsNanosecondValue: {
case kTimestampNanosecondValue: {
// No need to clear
break;
}
@@ -1335,34 +1335,34 @@ const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
} else
goto handle_unusual;
continue;
// int64 ts_second_value = 16;
// int64 timestamp_second_value = 16;
case 16:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
_internal_set_ts_second_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
_internal_set_timestamp_second_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// int64 ts_millisecond_value = 17;
// int64 timestamp_millisecond_value = 17;
case 17:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
_internal_set_ts_millisecond_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
_internal_set_timestamp_millisecond_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// int64 ts_microsecond_value = 18;
// int64 timestamp_microsecond_value = 18;
case 18:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
_internal_set_ts_microsecond_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
_internal_set_timestamp_microsecond_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// int64 ts_nanosecond_value = 19;
// int64 timestamp_nanosecond_value = 19;
case 19:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
_internal_set_ts_nanosecond_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
_internal_set_timestamp_nanosecond_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
CHK_(ptr);
} else
goto handle_unusual;
@@ -1546,28 +1546,28 @@ uint8_t* Value::_InternalSerialize(
target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_datetime_value(), target);
}
// int64 ts_second_value = 16;
if (_internal_has_ts_second_value()) {
// int64 timestamp_second_value = 16;
if (_internal_has_timestamp_second_value()) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(16, this->_internal_ts_second_value(), target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(16, this->_internal_timestamp_second_value(), target);
}
// int64 ts_millisecond_value = 17;
if (_internal_has_ts_millisecond_value()) {
// int64 timestamp_millisecond_value = 17;
if (_internal_has_timestamp_millisecond_value()) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(17, this->_internal_ts_millisecond_value(), target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(17, this->_internal_timestamp_millisecond_value(), target);
}
// int64 ts_microsecond_value = 18;
if (_internal_has_ts_microsecond_value()) {
// int64 timestamp_microsecond_value = 18;
if (_internal_has_timestamp_microsecond_value()) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(18, this->_internal_ts_microsecond_value(), target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(18, this->_internal_timestamp_microsecond_value(), target);
}
// int64 ts_nanosecond_value = 19;
if (_internal_has_ts_nanosecond_value()) {
// int64 timestamp_nanosecond_value = 19;
if (_internal_has_timestamp_nanosecond_value()) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(19, this->_internal_ts_nanosecond_value(), target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(19, this->_internal_timestamp_nanosecond_value(), target);
}
// int64 time_second_value = 20;
@@ -1709,32 +1709,32 @@ size_t Value::ByteSizeLong() const {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_datetime_value());
break;
}
// int64 ts_second_value = 16;
case kTsSecondValue: {
// int64 timestamp_second_value = 16;
case kTimestampSecondValue: {
total_size += 2 +
::_pbi::WireFormatLite::Int64Size(
this->_internal_ts_second_value());
this->_internal_timestamp_second_value());
break;
}
// int64 ts_millisecond_value = 17;
case kTsMillisecondValue: {
// int64 timestamp_millisecond_value = 17;
case kTimestampMillisecondValue: {
total_size += 2 +
::_pbi::WireFormatLite::Int64Size(
this->_internal_ts_millisecond_value());
this->_internal_timestamp_millisecond_value());
break;
}
// int64 ts_microsecond_value = 18;
case kTsMicrosecondValue: {
// int64 timestamp_microsecond_value = 18;
case kTimestampMicrosecondValue: {
total_size += 2 +
::_pbi::WireFormatLite::Int64Size(
this->_internal_ts_microsecond_value());
this->_internal_timestamp_microsecond_value());
break;
}
// int64 ts_nanosecond_value = 19;
case kTsNanosecondValue: {
// int64 timestamp_nanosecond_value = 19;
case kTimestampNanosecondValue: {
total_size += 2 +
::_pbi::WireFormatLite::Int64Size(
this->_internal_ts_nanosecond_value());
this->_internal_timestamp_nanosecond_value());
break;
}
// int64 time_second_value = 20;
@@ -1869,20 +1869,20 @@ void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF
_this->_internal_set_datetime_value(from._internal_datetime_value());
break;
}
case kTsSecondValue: {
_this->_internal_set_ts_second_value(from._internal_ts_second_value());
case kTimestampSecondValue: {
_this->_internal_set_timestamp_second_value(from._internal_timestamp_second_value());
break;
}
case kTsMillisecondValue: {
_this->_internal_set_ts_millisecond_value(from._internal_ts_millisecond_value());
case kTimestampMillisecondValue: {
_this->_internal_set_timestamp_millisecond_value(from._internal_timestamp_millisecond_value());
break;
}
case kTsMicrosecondValue: {
_this->_internal_set_ts_microsecond_value(from._internal_ts_microsecond_value());
case kTimestampMicrosecondValue: {
_this->_internal_set_timestamp_microsecond_value(from._internal_timestamp_microsecond_value());
break;
}
case kTsNanosecondValue: {
_this->_internal_set_ts_nanosecond_value(from._internal_ts_nanosecond_value());
case kTimestampNanosecondValue: {
_this->_internal_set_timestamp_nanosecond_value(from._internal_timestamp_nanosecond_value());
break;
}
case kTimeSecondValue: {
+140 -140
View File
@@ -640,10 +640,10 @@ class Value final :
kStringValue = 13,
kDateValue = 14,
kDatetimeValue = 15,
kTsSecondValue = 16,
kTsMillisecondValue = 17,
kTsMicrosecondValue = 18,
kTsNanosecondValue = 19,
kTimestampSecondValue = 16,
kTimestampMillisecondValue = 17,
kTimestampMicrosecondValue = 18,
kTimestampNanosecondValue = 19,
kTimeSecondValue = 20,
kTimeMillisecondValue = 21,
kTimeMicrosecondValue = 22,
@@ -747,10 +747,10 @@ class Value final :
kStringValueFieldNumber = 13,
kDateValueFieldNumber = 14,
kDatetimeValueFieldNumber = 15,
kTsSecondValueFieldNumber = 16,
kTsMillisecondValueFieldNumber = 17,
kTsMicrosecondValueFieldNumber = 18,
kTsNanosecondValueFieldNumber = 19,
kTimestampSecondValueFieldNumber = 16,
kTimestampMillisecondValueFieldNumber = 17,
kTimestampMicrosecondValueFieldNumber = 18,
kTimestampNanosecondValueFieldNumber = 19,
kTimeSecondValueFieldNumber = 20,
kTimeMillisecondValueFieldNumber = 21,
kTimeMicrosecondValueFieldNumber = 22,
@@ -964,56 +964,56 @@ class Value final :
void _internal_set_datetime_value(int64_t value);
public:
// int64 ts_second_value = 16;
bool has_ts_second_value() const;
// int64 timestamp_second_value = 16;
bool has_timestamp_second_value() const;
private:
bool _internal_has_ts_second_value() const;
bool _internal_has_timestamp_second_value() const;
public:
void clear_ts_second_value();
int64_t ts_second_value() const;
void set_ts_second_value(int64_t value);
void clear_timestamp_second_value();
int64_t timestamp_second_value() const;
void set_timestamp_second_value(int64_t value);
private:
int64_t _internal_ts_second_value() const;
void _internal_set_ts_second_value(int64_t value);
int64_t _internal_timestamp_second_value() const;
void _internal_set_timestamp_second_value(int64_t value);
public:
// int64 ts_millisecond_value = 17;
bool has_ts_millisecond_value() const;
// int64 timestamp_millisecond_value = 17;
bool has_timestamp_millisecond_value() const;
private:
bool _internal_has_ts_millisecond_value() const;
bool _internal_has_timestamp_millisecond_value() const;
public:
void clear_ts_millisecond_value();
int64_t ts_millisecond_value() const;
void set_ts_millisecond_value(int64_t value);
void clear_timestamp_millisecond_value();
int64_t timestamp_millisecond_value() const;
void set_timestamp_millisecond_value(int64_t value);
private:
int64_t _internal_ts_millisecond_value() const;
void _internal_set_ts_millisecond_value(int64_t value);
int64_t _internal_timestamp_millisecond_value() const;
void _internal_set_timestamp_millisecond_value(int64_t value);
public:
// int64 ts_microsecond_value = 18;
bool has_ts_microsecond_value() const;
// int64 timestamp_microsecond_value = 18;
bool has_timestamp_microsecond_value() const;
private:
bool _internal_has_ts_microsecond_value() const;
bool _internal_has_timestamp_microsecond_value() const;
public:
void clear_ts_microsecond_value();
int64_t ts_microsecond_value() const;
void set_ts_microsecond_value(int64_t value);
void clear_timestamp_microsecond_value();
int64_t timestamp_microsecond_value() const;
void set_timestamp_microsecond_value(int64_t value);
private:
int64_t _internal_ts_microsecond_value() const;
void _internal_set_ts_microsecond_value(int64_t value);
int64_t _internal_timestamp_microsecond_value() const;
void _internal_set_timestamp_microsecond_value(int64_t value);
public:
// int64 ts_nanosecond_value = 19;
bool has_ts_nanosecond_value() const;
// int64 timestamp_nanosecond_value = 19;
bool has_timestamp_nanosecond_value() const;
private:
bool _internal_has_ts_nanosecond_value() const;
bool _internal_has_timestamp_nanosecond_value() const;
public:
void clear_ts_nanosecond_value();
int64_t ts_nanosecond_value() const;
void set_ts_nanosecond_value(int64_t value);
void clear_timestamp_nanosecond_value();
int64_t timestamp_nanosecond_value() const;
void set_timestamp_nanosecond_value(int64_t value);
private:
int64_t _internal_ts_nanosecond_value() const;
void _internal_set_ts_nanosecond_value(int64_t value);
int64_t _internal_timestamp_nanosecond_value() const;
void _internal_set_timestamp_nanosecond_value(int64_t value);
public:
// int64 time_second_value = 20;
@@ -1132,10 +1132,10 @@ class Value final :
void set_has_string_value();
void set_has_date_value();
void set_has_datetime_value();
void set_has_ts_second_value();
void set_has_ts_millisecond_value();
void set_has_ts_microsecond_value();
void set_has_ts_nanosecond_value();
void set_has_timestamp_second_value();
void set_has_timestamp_millisecond_value();
void set_has_timestamp_microsecond_value();
void set_has_timestamp_nanosecond_value();
void set_has_time_second_value();
void set_has_time_millisecond_value();
void set_has_time_microsecond_value();
@@ -1169,10 +1169,10 @@ class Value final :
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_;
int32_t date_value_;
int64_t datetime_value_;
int64_t ts_second_value_;
int64_t ts_millisecond_value_;
int64_t ts_microsecond_value_;
int64_t ts_nanosecond_value_;
int64_t timestamp_second_value_;
int64_t timestamp_millisecond_value_;
int64_t timestamp_microsecond_value_;
int64_t timestamp_nanosecond_value_;
int64_t time_second_value_;
int64_t time_millisecond_value_;
int64_t time_microsecond_value_;
@@ -2069,156 +2069,156 @@ inline void Value::set_datetime_value(int64_t value) {
// @@protoc_insertion_point(field_set:greptime.v1.Value.datetime_value)
}
// int64 ts_second_value = 16;
inline bool Value::_internal_has_ts_second_value() const {
return value_data_case() == kTsSecondValue;
// int64 timestamp_second_value = 16;
inline bool Value::_internal_has_timestamp_second_value() const {
return value_data_case() == kTimestampSecondValue;
}
inline bool Value::has_ts_second_value() const {
return _internal_has_ts_second_value();
inline bool Value::has_timestamp_second_value() const {
return _internal_has_timestamp_second_value();
}
inline void Value::set_has_ts_second_value() {
_impl_._oneof_case_[0] = kTsSecondValue;
inline void Value::set_has_timestamp_second_value() {
_impl_._oneof_case_[0] = kTimestampSecondValue;
}
inline void Value::clear_ts_second_value() {
if (_internal_has_ts_second_value()) {
_impl_.value_data_.ts_second_value_ = int64_t{0};
inline void Value::clear_timestamp_second_value() {
if (_internal_has_timestamp_second_value()) {
_impl_.value_data_.timestamp_second_value_ = int64_t{0};
clear_has_value_data();
}
}
inline int64_t Value::_internal_ts_second_value() const {
if (_internal_has_ts_second_value()) {
return _impl_.value_data_.ts_second_value_;
inline int64_t Value::_internal_timestamp_second_value() const {
if (_internal_has_timestamp_second_value()) {
return _impl_.value_data_.timestamp_second_value_;
}
return int64_t{0};
}
inline void Value::_internal_set_ts_second_value(int64_t value) {
if (!_internal_has_ts_second_value()) {
inline void Value::_internal_set_timestamp_second_value(int64_t value) {
if (!_internal_has_timestamp_second_value()) {
clear_value_data();
set_has_ts_second_value();
set_has_timestamp_second_value();
}
_impl_.value_data_.ts_second_value_ = value;
_impl_.value_data_.timestamp_second_value_ = value;
}
inline int64_t Value::ts_second_value() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.ts_second_value)
return _internal_ts_second_value();
inline int64_t Value::timestamp_second_value() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.timestamp_second_value)
return _internal_timestamp_second_value();
}
inline void Value::set_ts_second_value(int64_t value) {
_internal_set_ts_second_value(value);
// @@protoc_insertion_point(field_set:greptime.v1.Value.ts_second_value)
inline void Value::set_timestamp_second_value(int64_t value) {
_internal_set_timestamp_second_value(value);
// @@protoc_insertion_point(field_set:greptime.v1.Value.timestamp_second_value)
}
// int64 ts_millisecond_value = 17;
inline bool Value::_internal_has_ts_millisecond_value() const {
return value_data_case() == kTsMillisecondValue;
// int64 timestamp_millisecond_value = 17;
inline bool Value::_internal_has_timestamp_millisecond_value() const {
return value_data_case() == kTimestampMillisecondValue;
}
inline bool Value::has_ts_millisecond_value() const {
return _internal_has_ts_millisecond_value();
inline bool Value::has_timestamp_millisecond_value() const {
return _internal_has_timestamp_millisecond_value();
}
inline void Value::set_has_ts_millisecond_value() {
_impl_._oneof_case_[0] = kTsMillisecondValue;
inline void Value::set_has_timestamp_millisecond_value() {
_impl_._oneof_case_[0] = kTimestampMillisecondValue;
}
inline void Value::clear_ts_millisecond_value() {
if (_internal_has_ts_millisecond_value()) {
_impl_.value_data_.ts_millisecond_value_ = int64_t{0};
inline void Value::clear_timestamp_millisecond_value() {
if (_internal_has_timestamp_millisecond_value()) {
_impl_.value_data_.timestamp_millisecond_value_ = int64_t{0};
clear_has_value_data();
}
}
inline int64_t Value::_internal_ts_millisecond_value() const {
if (_internal_has_ts_millisecond_value()) {
return _impl_.value_data_.ts_millisecond_value_;
inline int64_t Value::_internal_timestamp_millisecond_value() const {
if (_internal_has_timestamp_millisecond_value()) {
return _impl_.value_data_.timestamp_millisecond_value_;
}
return int64_t{0};
}
inline void Value::_internal_set_ts_millisecond_value(int64_t value) {
if (!_internal_has_ts_millisecond_value()) {
inline void Value::_internal_set_timestamp_millisecond_value(int64_t value) {
if (!_internal_has_timestamp_millisecond_value()) {
clear_value_data();
set_has_ts_millisecond_value();
set_has_timestamp_millisecond_value();
}
_impl_.value_data_.ts_millisecond_value_ = value;
_impl_.value_data_.timestamp_millisecond_value_ = value;
}
inline int64_t Value::ts_millisecond_value() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.ts_millisecond_value)
return _internal_ts_millisecond_value();
inline int64_t Value::timestamp_millisecond_value() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.timestamp_millisecond_value)
return _internal_timestamp_millisecond_value();
}
inline void Value::set_ts_millisecond_value(int64_t value) {
_internal_set_ts_millisecond_value(value);
// @@protoc_insertion_point(field_set:greptime.v1.Value.ts_millisecond_value)
inline void Value::set_timestamp_millisecond_value(int64_t value) {
_internal_set_timestamp_millisecond_value(value);
// @@protoc_insertion_point(field_set:greptime.v1.Value.timestamp_millisecond_value)
}
// int64 ts_microsecond_value = 18;
inline bool Value::_internal_has_ts_microsecond_value() const {
return value_data_case() == kTsMicrosecondValue;
// int64 timestamp_microsecond_value = 18;
inline bool Value::_internal_has_timestamp_microsecond_value() const {
return value_data_case() == kTimestampMicrosecondValue;
}
inline bool Value::has_ts_microsecond_value() const {
return _internal_has_ts_microsecond_value();
inline bool Value::has_timestamp_microsecond_value() const {
return _internal_has_timestamp_microsecond_value();
}
inline void Value::set_has_ts_microsecond_value() {
_impl_._oneof_case_[0] = kTsMicrosecondValue;
inline void Value::set_has_timestamp_microsecond_value() {
_impl_._oneof_case_[0] = kTimestampMicrosecondValue;
}
inline void Value::clear_ts_microsecond_value() {
if (_internal_has_ts_microsecond_value()) {
_impl_.value_data_.ts_microsecond_value_ = int64_t{0};
inline void Value::clear_timestamp_microsecond_value() {
if (_internal_has_timestamp_microsecond_value()) {
_impl_.value_data_.timestamp_microsecond_value_ = int64_t{0};
clear_has_value_data();
}
}
inline int64_t Value::_internal_ts_microsecond_value() const {
if (_internal_has_ts_microsecond_value()) {
return _impl_.value_data_.ts_microsecond_value_;
inline int64_t Value::_internal_timestamp_microsecond_value() const {
if (_internal_has_timestamp_microsecond_value()) {
return _impl_.value_data_.timestamp_microsecond_value_;
}
return int64_t{0};
}
inline void Value::_internal_set_ts_microsecond_value(int64_t value) {
if (!_internal_has_ts_microsecond_value()) {
inline void Value::_internal_set_timestamp_microsecond_value(int64_t value) {
if (!_internal_has_timestamp_microsecond_value()) {
clear_value_data();
set_has_ts_microsecond_value();
set_has_timestamp_microsecond_value();
}
_impl_.value_data_.ts_microsecond_value_ = value;
_impl_.value_data_.timestamp_microsecond_value_ = value;
}
inline int64_t Value::ts_microsecond_value() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.ts_microsecond_value)
return _internal_ts_microsecond_value();
inline int64_t Value::timestamp_microsecond_value() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.timestamp_microsecond_value)
return _internal_timestamp_microsecond_value();
}
inline void Value::set_ts_microsecond_value(int64_t value) {
_internal_set_ts_microsecond_value(value);
// @@protoc_insertion_point(field_set:greptime.v1.Value.ts_microsecond_value)
inline void Value::set_timestamp_microsecond_value(int64_t value) {
_internal_set_timestamp_microsecond_value(value);
// @@protoc_insertion_point(field_set:greptime.v1.Value.timestamp_microsecond_value)
}
// int64 ts_nanosecond_value = 19;
inline bool Value::_internal_has_ts_nanosecond_value() const {
return value_data_case() == kTsNanosecondValue;
// int64 timestamp_nanosecond_value = 19;
inline bool Value::_internal_has_timestamp_nanosecond_value() const {
return value_data_case() == kTimestampNanosecondValue;
}
inline bool Value::has_ts_nanosecond_value() const {
return _internal_has_ts_nanosecond_value();
inline bool Value::has_timestamp_nanosecond_value() const {
return _internal_has_timestamp_nanosecond_value();
}
inline void Value::set_has_ts_nanosecond_value() {
_impl_._oneof_case_[0] = kTsNanosecondValue;
inline void Value::set_has_timestamp_nanosecond_value() {
_impl_._oneof_case_[0] = kTimestampNanosecondValue;
}
inline void Value::clear_ts_nanosecond_value() {
if (_internal_has_ts_nanosecond_value()) {
_impl_.value_data_.ts_nanosecond_value_ = int64_t{0};
inline void Value::clear_timestamp_nanosecond_value() {
if (_internal_has_timestamp_nanosecond_value()) {
_impl_.value_data_.timestamp_nanosecond_value_ = int64_t{0};
clear_has_value_data();
}
}
inline int64_t Value::_internal_ts_nanosecond_value() const {
if (_internal_has_ts_nanosecond_value()) {
return _impl_.value_data_.ts_nanosecond_value_;
inline int64_t Value::_internal_timestamp_nanosecond_value() const {
if (_internal_has_timestamp_nanosecond_value()) {
return _impl_.value_data_.timestamp_nanosecond_value_;
}
return int64_t{0};
}
inline void Value::_internal_set_ts_nanosecond_value(int64_t value) {
if (!_internal_has_ts_nanosecond_value()) {
inline void Value::_internal_set_timestamp_nanosecond_value(int64_t value) {
if (!_internal_has_timestamp_nanosecond_value()) {
clear_value_data();
set_has_ts_nanosecond_value();
set_has_timestamp_nanosecond_value();
}
_impl_.value_data_.ts_nanosecond_value_ = value;
_impl_.value_data_.timestamp_nanosecond_value_ = value;
}
inline int64_t Value::ts_nanosecond_value() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.ts_nanosecond_value)
return _internal_ts_nanosecond_value();
inline int64_t Value::timestamp_nanosecond_value() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.timestamp_nanosecond_value)
return _internal_timestamp_nanosecond_value();
}
inline void Value::set_ts_nanosecond_value(int64_t value) {
_internal_set_ts_nanosecond_value(value);
// @@protoc_insertion_point(field_set:greptime.v1.Value.ts_nanosecond_value)
inline void Value::set_timestamp_nanosecond_value(int64_t value) {
_internal_set_timestamp_nanosecond_value(value);
// @@protoc_insertion_point(field_set:greptime.v1.Value.timestamp_nanosecond_value)
}
// int64 time_second_value = 20;
+62 -59
View File
@@ -147,10 +147,10 @@ type Column_Values struct {
StringValues []string `protobuf:"bytes,13,rep,name=string_values,json=stringValues,proto3" json:"string_values,omitempty"`
DateValues []int32 `protobuf:"varint,14,rep,packed,name=date_values,json=dateValues,proto3" json:"date_values,omitempty"`
DatetimeValues []int64 `protobuf:"varint,15,rep,packed,name=datetime_values,json=datetimeValues,proto3" json:"datetime_values,omitempty"`
TsSecondValues []int64 `protobuf:"varint,16,rep,packed,name=ts_second_values,json=tsSecondValues,proto3" json:"ts_second_values,omitempty"`
TsMillisecondValues []int64 `protobuf:"varint,17,rep,packed,name=ts_millisecond_values,json=tsMillisecondValues,proto3" json:"ts_millisecond_values,omitempty"`
TsMicrosecondValues []int64 `protobuf:"varint,18,rep,packed,name=ts_microsecond_values,json=tsMicrosecondValues,proto3" json:"ts_microsecond_values,omitempty"`
TsNanosecondValues []int64 `protobuf:"varint,19,rep,packed,name=ts_nanosecond_values,json=tsNanosecondValues,proto3" json:"ts_nanosecond_values,omitempty"`
TimestampSecondValues []int64 `protobuf:"varint,16,rep,packed,name=timestamp_second_values,json=timestampSecondValues,proto3" json:"timestamp_second_values,omitempty"`
TimestampMillisecondValues []int64 `protobuf:"varint,17,rep,packed,name=timestamp_millisecond_values,json=timestampMillisecondValues,proto3" json:"timestamp_millisecond_values,omitempty"`
TimestampMicrosecondValues []int64 `protobuf:"varint,18,rep,packed,name=timestamp_microsecond_values,json=timestampMicrosecondValues,proto3" json:"timestamp_microsecond_values,omitempty"`
TimestampNanosecondValues []int64 `protobuf:"varint,19,rep,packed,name=timestamp_nanosecond_values,json=timestampNanosecondValues,proto3" json:"timestamp_nanosecond_values,omitempty"`
TimeSecondValues []int64 `protobuf:"varint,20,rep,packed,name=time_second_values,json=timeSecondValues,proto3" json:"time_second_values,omitempty"`
TimeMillisecondValues []int64 `protobuf:"varint,21,rep,packed,name=time_millisecond_values,json=timeMillisecondValues,proto3" json:"time_millisecond_values,omitempty"`
TimeMicrosecondValues []int64 `protobuf:"varint,22,rep,packed,name=time_microsecond_values,json=timeMicrosecondValues,proto3" json:"time_microsecond_values,omitempty"`
@@ -297,30 +297,30 @@ func (x *Column_Values) GetDatetimeValues() []int64 {
return nil
}
func (x *Column_Values) GetTsSecondValues() []int64 {
func (x *Column_Values) GetTimestampSecondValues() []int64 {
if x != nil {
return x.TsSecondValues
return x.TimestampSecondValues
}
return nil
}
func (x *Column_Values) GetTsMillisecondValues() []int64 {
func (x *Column_Values) GetTimestampMillisecondValues() []int64 {
if x != nil {
return x.TsMillisecondValues
return x.TimestampMillisecondValues
}
return nil
}
func (x *Column_Values) GetTsMicrosecondValues() []int64 {
func (x *Column_Values) GetTimestampMicrosecondValues() []int64 {
if x != nil {
return x.TsMicrosecondValues
return x.TimestampMicrosecondValues
}
return nil
}
func (x *Column_Values) GetTsNanosecondValues() []int64 {
func (x *Column_Values) GetTimestampNanosecondValues() []int64 {
if x != nil {
return x.TsNanosecondValues
return x.TimestampNanosecondValues
}
return nil
}
@@ -381,7 +381,7 @@ var file_greptime_v1_column_proto_rawDesc = []byte{
0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x1a, 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, 0x22, 0xda, 0x0a, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b,
0x6f, 0x22, 0x92, 0x0b, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b,
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a,
0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
@@ -396,7 +396,7 @@ var file_greptime_v1_column_proto_rawDesc = []byte{
0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64,
0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x1a, 0xe4, 0x08, 0x0a, 0x06, 0x56, 0x61, 0x6c, 0x75,
0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x9c, 0x09, 0x0a, 0x06, 0x56, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x69, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12,
0x1d, 0x0a, 0x0a, 0x69, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20,
@@ -427,52 +427,55 @@ var file_greptime_v1_column_proto_rawDesc = []byte{
0x20, 0x03, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x12, 0x27, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74,
0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x73, 0x5f,
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x10, 0x20,
0x03, 0x28, 0x03, 0x52, 0x0e, 0x74, 0x73, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74, 0x73, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73,
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03,
0x28, 0x03, 0x52, 0x13, 0x74, 0x73, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e,
0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74, 0x73, 0x5f, 0x6d, 0x69,
0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x18, 0x12, 0x20, 0x03, 0x28, 0x03, 0x52, 0x13, 0x74, 0x73, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73,
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x74,
0x73, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x03, 0x52, 0x12, 0x74, 0x73, 0x4e, 0x61, 0x6e,
0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x2c, 0x0a,
0x12, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x03, 0x52, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x53,
0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x12, 0x40, 0x0a, 0x1c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d,
0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x03, 0x52, 0x1a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x1c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x03, 0x52, 0x1a, 0x74, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x03, 0x52, 0x19, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28,
0x03, 0x52, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c,
0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x15,
0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73,
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74,
0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69,
0x6d, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72,
0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x16,
0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73,
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74,
0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x03, 0x52, 0x14, 0x74, 0x69, 0x6d,
0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x79, 0x65,
0x61, 0x72, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18,
0x18, 0x20, 0x03, 0x28, 0x05, 0x52, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x59,
0x65, 0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x37,
0x0a, 0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x74,
0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, 0x03,
0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, 0x54, 0x69, 0x6d,
0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x65, 0x0a, 0x1e, 0x69, 0x6e, 0x74, 0x65, 0x72,
0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6e, 0x61,
0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e,
0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61,
0x6e, 0x6f, 0x52, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74,
0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x50,
0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x42, 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 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,
0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69,
0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6e, 0x6f,
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x17, 0x20,
0x03, 0x28, 0x03, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x69, 0x6e, 0x74,
0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68,
0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x05, 0x52, 0x17, 0x69,
0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76,
0x61, 0x6c, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76,
0x61, 0x6c, 0x44, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12,
0x65, 0x0a, 0x1e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e, 0x74,
0x68, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f,
0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x52, 0x1a, 0x69, 0x6e, 0x74, 0x65,
0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x73, 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 (
+50 -95
View File
@@ -408,8 +408,6 @@ type InsertRequest struct {
//
// Note: the row_count of all columns in a InsertRequest must be same.
RowCount uint32 `protobuf:"varint,4,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
// The region number of current insert request.
RegionNumber uint32 `protobuf:"varint,5,opt,name=region_number,json=regionNumber,proto3" json:"region_number,omitempty"`
}
func (x *InsertRequest) Reset() {
@@ -465,13 +463,6 @@ func (x *InsertRequest) GetRowCount() uint32 {
return 0
}
func (x *InsertRequest) GetRegionNumber() uint32 {
if x != nil {
return x.RegionNumber
}
return 0
}
type DeleteRequests struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -527,8 +518,6 @@ type DeleteRequest struct {
// The table name to delete from. Catalog name and schema name are in the
// `RequestHeader`.
TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
// The region number of current delete request.
RegionNumber uint32 `protobuf:"varint,2,opt,name=region_number,json=regionNumber,proto3" json:"region_number,omitempty"`
// The data to delete, indexed by key columns.
KeyColumns []*Column `protobuf:"bytes,3,rep,name=key_columns,json=keyColumns,proto3" json:"key_columns,omitempty"`
// The row count of all columns above.
@@ -574,13 +563,6 @@ func (x *DeleteRequest) GetTableName() string {
return ""
}
func (x *DeleteRequest) GetRegionNumber() uint32 {
if x != nil {
return x.RegionNumber
}
return 0
}
func (x *DeleteRequest) GetKeyColumns() []*Column {
if x != nil {
return x.KeyColumns
@@ -650,8 +632,6 @@ type RowInsertRequest struct {
TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
// Data is represented here.
Rows *Rows `protobuf:"bytes,2,opt,name=rows,proto3" json:"rows,omitempty"`
// The region number of current insert request.
RegionNumber uint32 `protobuf:"varint,3,opt,name=region_number,json=regionNumber,proto3" json:"region_number,omitempty"`
}
func (x *RowInsertRequest) Reset() {
@@ -700,13 +680,6 @@ func (x *RowInsertRequest) GetRows() *Rows {
return nil
}
func (x *RowInsertRequest) GetRegionNumber() uint32 {
if x != nil {
return x.RegionNumber
}
return 0
}
type RowDeleteRequests struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -764,8 +737,6 @@ type RowDeleteRequest struct {
TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
// The data to delete.
Rows *Rows `protobuf:"bytes,2,opt,name=rows,proto3" json:"rows,omitempty"`
// The region number of current delete request.
RegionNumber uint32 `protobuf:"varint,3,opt,name=region_number,json=regionNumber,proto3" json:"region_number,omitempty"`
}
func (x *RowDeleteRequest) Reset() {
@@ -814,13 +785,6 @@ func (x *RowDeleteRequest) GetRows() *Rows {
return nil
}
func (x *RowDeleteRequest) GetRegionNumber() uint32 {
if x != nil {
return x.RegionNumber
}
return 0
}
var File_greptime_v1_database_proto protoreflect.FileDescriptor
var file_greptime_v1_database_proto_rawDesc = []byte{
@@ -884,74 +848,65 @@ var file_greptime_v1_database_proto_rawDesc = []byte{
0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x0d, 0x49,
0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x63,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f,
0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72,
0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x46, 0x0a, 0x0e,
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x34,
0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x64, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x73, 0x22, 0xa6, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c,
0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f,
0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x0b, 0x6b, 0x65,
0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x4c, 0x0a,
0x11, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x22, 0x7d, 0x0a, 0x10, 0x52,
0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25,
0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x73, 0x52,
0x04, 0x72, 0x6f, 0x77, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f,
0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x4c, 0x0a, 0x11, 0x52, 0x6f,
0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x22, 0x7a, 0x0a, 0x0d, 0x49, 0x6e,
0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x63, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77,
0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x6f,
0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x46, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x22, 0x81,
0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
0x34, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x43, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75,
0x6e, 0x74, 0x22, 0x4c, 0x0a, 0x11, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72,
0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73,
0x22, 0x58, 0x0a, 0x10, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e,
0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x11, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x52, 0x6f, 0x77, 0x73, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x22, 0x4c, 0x0a, 0x11, 0x52, 0x6f,
0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12,
0x37, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52,
0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52,
0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x22, 0x7d, 0x0a, 0x10, 0x52, 0x6f, 0x77, 0x44,
0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x22, 0x58, 0x0a, 0x10, 0x52, 0x6f, 0x77, 0x44,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x72,
0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x04, 0x72, 0x6f,
0x77, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d,
0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x32, 0xaa, 0x01, 0x0a, 0x10, 0x47, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06,
0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x28, 0x01, 0x42, 0x51, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
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,
0x77, 0x73, 0x32, 0xaa, 0x01, 0x0a, 0x10, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x44,
0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c,
0x65, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f,
0x0a, 0x0e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73,
0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x42,
0x51, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x42, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 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 (
+113 -123
View File
@@ -222,7 +222,6 @@ type CreateTableExpr struct {
CreateIfNotExists bool `protobuf:"varint,8,opt,name=create_if_not_exists,json=createIfNotExists,proto3" json:"create_if_not_exists,omitempty"`
TableOptions map[string]string `protobuf:"bytes,9,rep,name=table_options,json=tableOptions,proto3" json:"table_options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
TableId *TableId `protobuf:"bytes,10,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
RegionNumbers []uint32 `protobuf:"varint,11,rep,packed,name=region_numbers,json=regionNumbers,proto3" json:"region_numbers,omitempty"`
Engine string `protobuf:"bytes,12,opt,name=engine,proto3" json:"engine,omitempty"`
}
@@ -328,13 +327,6 @@ func (x *CreateTableExpr) GetTableId() *TableId {
return nil
}
func (x *CreateTableExpr) GetRegionNumbers() []uint32 {
if x != nil {
return x.RegionNumbers
}
return nil
}
func (x *CreateTableExpr) GetEngine() string {
if x != nil {
return x.Engine
@@ -1118,7 +1110,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70,
0x72, 0x48, 0x00, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62,
0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72, 0x22, 0xba, 0x04, 0x0a, 0x0f, 0x43,
0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72, 0x22, 0x93, 0x04, 0x0a, 0x0f, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21,
0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d,
@@ -1146,126 +1138,124 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0d, 0x52,
0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x16,
0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb0, 0x02, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65,
0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e,
0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x1a,
0x3f, 0x0a, 0x11, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45,
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
0x22, 0xb0, 0x02, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21,
0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d,
0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61,
0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d,
0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48,
0x00, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a,
0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52,
0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c,
0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0b,
0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b,
0x69, 0x6e, 0x64, 0x22, 0xa3, 0x01, 0x0a, 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c,
0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74,
0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73,
0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62,
0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74,
0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f,
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x61,
0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61,
0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62,
0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xa3, 0x01, 0x0a, 0x0d, 0x44,
0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c,
0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12,
0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65,
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
0x22, 0xee, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,
0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62,
0x61, 0x73, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14,
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78,
0x69, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x46, 0x0a,
0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e,
0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61,
0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c,
0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63,
0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63,
0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61,
0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x0a, 0x41,
0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64,
0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a,
0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e,
0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61,
0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12,
0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12,
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22,
0xe9, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70,
0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69,
0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12,
0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69,
0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73,
0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01,
0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73,
0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x22, 0xb7, 0x01, 0x0a, 0x11,
0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c,
0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xee, 0x01, 0x0a, 0x12, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72,
0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f,
0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20,
0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74,
0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,
0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a,
0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54,
0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72,
0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e,
0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e,
0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18,
0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62,
0x6c, 0x65, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52,
0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44,
0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72,
0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,
0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62,
0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e,
0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41,
0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12,
0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79,
0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,
0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f,
0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22,
0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12,
0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46,
0x54, 0x45, 0x52, 0x10, 0x01, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 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,
0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x0a, 0x44,
0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a,
0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0xe9, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61,
0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61,
0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61,
0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c,
0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72,
0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63,
0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74,
0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63,
0x54, 0x79, 0x70, 0x65, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c,
0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11,
0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53,
0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x42, 0x4c,
0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x42, 0x03, 0x44, 0x64, 0x6c, 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 (
+82 -79
View File
@@ -221,10 +221,10 @@ type Value struct {
// *Value_StringValue
// *Value_DateValue
// *Value_DatetimeValue
// *Value_TsSecondValue
// *Value_TsMillisecondValue
// *Value_TsMicrosecondValue
// *Value_TsNanosecondValue
// *Value_TimestampSecondValue
// *Value_TimestampMillisecondValue
// *Value_TimestampMicrosecondValue
// *Value_TimestampNanosecondValue
// *Value_TimeSecondValue
// *Value_TimeMillisecondValue
// *Value_TimeMicrosecondValue
@@ -379,30 +379,30 @@ func (x *Value) GetDatetimeValue() int64 {
return 0
}
func (x *Value) GetTsSecondValue() int64 {
if x, ok := x.GetValueData().(*Value_TsSecondValue); ok {
return x.TsSecondValue
func (x *Value) GetTimestampSecondValue() int64 {
if x, ok := x.GetValueData().(*Value_TimestampSecondValue); ok {
return x.TimestampSecondValue
}
return 0
}
func (x *Value) GetTsMillisecondValue() int64 {
if x, ok := x.GetValueData().(*Value_TsMillisecondValue); ok {
return x.TsMillisecondValue
func (x *Value) GetTimestampMillisecondValue() int64 {
if x, ok := x.GetValueData().(*Value_TimestampMillisecondValue); ok {
return x.TimestampMillisecondValue
}
return 0
}
func (x *Value) GetTsMicrosecondValue() int64 {
if x, ok := x.GetValueData().(*Value_TsMicrosecondValue); ok {
return x.TsMicrosecondValue
func (x *Value) GetTimestampMicrosecondValue() int64 {
if x, ok := x.GetValueData().(*Value_TimestampMicrosecondValue); ok {
return x.TimestampMicrosecondValue
}
return 0
}
func (x *Value) GetTsNanosecondValue() int64 {
if x, ok := x.GetValueData().(*Value_TsNanosecondValue); ok {
return x.TsNanosecondValue
func (x *Value) GetTimestampNanosecondValue() int64 {
if x, ok := x.GetValueData().(*Value_TimestampNanosecondValue); ok {
return x.TimestampNanosecondValue
}
return 0
}
@@ -520,20 +520,20 @@ type Value_DatetimeValue struct {
DatetimeValue int64 `protobuf:"varint,15,opt,name=datetime_value,json=datetimeValue,proto3,oneof"`
}
type Value_TsSecondValue struct {
TsSecondValue int64 `protobuf:"varint,16,opt,name=ts_second_value,json=tsSecondValue,proto3,oneof"`
type Value_TimestampSecondValue struct {
TimestampSecondValue int64 `protobuf:"varint,16,opt,name=timestamp_second_value,json=timestampSecondValue,proto3,oneof"`
}
type Value_TsMillisecondValue struct {
TsMillisecondValue int64 `protobuf:"varint,17,opt,name=ts_millisecond_value,json=tsMillisecondValue,proto3,oneof"`
type Value_TimestampMillisecondValue struct {
TimestampMillisecondValue int64 `protobuf:"varint,17,opt,name=timestamp_millisecond_value,json=timestampMillisecondValue,proto3,oneof"`
}
type Value_TsMicrosecondValue struct {
TsMicrosecondValue int64 `protobuf:"varint,18,opt,name=ts_microsecond_value,json=tsMicrosecondValue,proto3,oneof"`
type Value_TimestampMicrosecondValue struct {
TimestampMicrosecondValue int64 `protobuf:"varint,18,opt,name=timestamp_microsecond_value,json=timestampMicrosecondValue,proto3,oneof"`
}
type Value_TsNanosecondValue struct {
TsNanosecondValue int64 `protobuf:"varint,19,opt,name=ts_nanosecond_value,json=tsNanosecondValue,proto3,oneof"`
type Value_TimestampNanosecondValue struct {
TimestampNanosecondValue int64 `protobuf:"varint,19,opt,name=timestamp_nanosecond_value,json=timestampNanosecondValue,proto3,oneof"`
}
type Value_TimeSecondValue struct {
@@ -594,13 +594,13 @@ func (*Value_DateValue) isValue_ValueData() {}
func (*Value_DatetimeValue) isValue_ValueData() {}
func (*Value_TsSecondValue) isValue_ValueData() {}
func (*Value_TimestampSecondValue) isValue_ValueData() {}
func (*Value_TsMillisecondValue) isValue_ValueData() {}
func (*Value_TimestampMillisecondValue) isValue_ValueData() {}
func (*Value_TsMicrosecondValue) isValue_ValueData() {}
func (*Value_TimestampMicrosecondValue) isValue_ValueData() {}
func (*Value_TsNanosecondValue) isValue_ValueData() {}
func (*Value_TimestampNanosecondValue) isValue_ValueData() {}
func (*Value_TimeSecondValue) isValue_ValueData() {}
@@ -642,7 +642,7 @@ var file_greptime_v1_row_proto_rawDesc = []byte{
0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x22, 0x31, 0x0a, 0x03, 0x52, 0x6f,
0x77, 0x12, 0x2a, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xf7, 0x08,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xaf, 0x09,
0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x69, 0x38, 0x5f, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x07, 0x69, 0x38, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75,
@@ -673,54 +673,57 @@ var file_greptime_v1_row_proto_rawDesc = []byte{
0x75, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, 0x65,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d,
0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52,
0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x28,
0x0a, 0x0f, 0x74, 0x73, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0d, 0x74, 0x73, 0x53, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x32, 0x0a, 0x14, 0x74, 0x73, 0x5f, 0x6d,
0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x12, 0x74, 0x73, 0x4d, 0x69, 0x6c, 0x6c,
0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x32, 0x0a, 0x14,
0x74, 0x73, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x12, 0x74, 0x73,
0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x12, 0x30, 0x0a, 0x13, 0x74, 0x73, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e,
0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52,
0x11, 0x74, 0x73, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c,
0x75, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e,
0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52,
0x0f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x03,
0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63,
0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36,
0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x73, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00,
0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x53, 0x65, 0x63, 0x6f, 0x6e,
0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x1b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x19, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x1b, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e,
0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52,
0x19, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73,
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, 0x74, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00,
0x52, 0x18, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4e, 0x61, 0x6e, 0x6f, 0x73,
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x74, 0x69,
0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x14, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65,
0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65,
0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x12, 0x34, 0x0a, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x03, 0x48,
0x00, 0x52, 0x13, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e,
0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3d, 0x0a, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76,
0x61, 0x6c, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x18, 0x18, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x17, 0x69, 0x6e,
0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61,
0x6c, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x18, 0x19, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72,
0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x12, 0x67, 0x0a, 0x1e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e,
0x74, 0x68, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d,
0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x48, 0x00, 0x52, 0x1a, 0x69,
0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65,
0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x03,
0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x15, 0x74, 0x69, 0x6d, 0x65,
0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x13, 0x74, 0x69, 0x6d, 0x65, 0x4e,
0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3d,
0x0a, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x5f,
0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x18, 0x20, 0x01,
0x28, 0x05, 0x48, 0x00, 0x52, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x59, 0x65,
0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x39, 0x0a,
0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x74, 0x69,
0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x19, 0x20, 0x01, 0x28, 0x03, 0x48,
0x00, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, 0x54, 0x69,
0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x67, 0x0a, 0x1e, 0x69, 0x6e, 0x74, 0x65,
0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6e,
0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49,
0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e,
0x61, 0x6e, 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x52, 0x6f, 0x77, 0x44, 0x61,
0x74, 0x61, 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,
0x61, 0x6e, 0x6f, 0x48, 0x00, 0x52, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d,
0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x42,
0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x42, 0x07, 0x52, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 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 (
@@ -831,10 +834,10 @@ func file_greptime_v1_row_proto_init() {
(*Value_StringValue)(nil),
(*Value_DateValue)(nil),
(*Value_DatetimeValue)(nil),
(*Value_TsSecondValue)(nil),
(*Value_TsMillisecondValue)(nil),
(*Value_TsMicrosecondValue)(nil),
(*Value_TsNanosecondValue)(nil),
(*Value_TimestampSecondValue)(nil),
(*Value_TimestampMillisecondValue)(nil),
(*Value_TimestampMicrosecondValue)(nil),
(*Value_TimestampNanosecondValue)(nil),
(*Value_TimeSecondValue)(nil),
(*Value_TimeMillisecondValue)(nil),
(*Value_TimeMicrosecondValue)(nil),
File diff suppressed because it is too large Load Diff
+24 -386
View File
@@ -4902,16 +4902,6 @@ public final class Database {
* @return The rowCount.
*/
int getRowCount();
/**
* <pre>
* The region number of current insert request.
* </pre>
*
* <code>uint32 region_number = 5;</code>
* @return The regionNumber.
*/
int getRegionNumber();
}
/**
* Protobuf type {@code greptime.v1.InsertRequest}
@@ -4981,11 +4971,6 @@ public final class Database {
rowCount_ = input.readUInt32();
break;
}
case 40: {
regionNumber_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -5137,21 +5122,6 @@ public final class Database {
return rowCount_;
}
public static final int REGION_NUMBER_FIELD_NUMBER = 5;
private int regionNumber_;
/**
* <pre>
* The region number of current insert request.
* </pre>
*
* <code>uint32 region_number = 5;</code>
* @return The regionNumber.
*/
@java.lang.Override
public int getRegionNumber() {
return regionNumber_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -5175,9 +5145,6 @@ public final class Database {
if (rowCount_ != 0) {
output.writeUInt32(4, rowCount_);
}
if (regionNumber_ != 0) {
output.writeUInt32(5, regionNumber_);
}
unknownFields.writeTo(output);
}
@@ -5198,10 +5165,6 @@ public final class Database {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, rowCount_);
}
if (regionNumber_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, regionNumber_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -5223,8 +5186,6 @@ public final class Database {
.equals(other.getColumnsList())) return false;
if (getRowCount()
!= other.getRowCount()) return false;
if (getRegionNumber()
!= other.getRegionNumber()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -5244,8 +5205,6 @@ public final class Database {
}
hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getRowCount();
hash = (37 * hash) + REGION_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getRegionNumber();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -5390,8 +5349,6 @@ public final class Database {
}
rowCount_ = 0;
regionNumber_ = 0;
return this;
}
@@ -5430,7 +5387,6 @@ public final class Database {
result.columns_ = columnsBuilder_.build();
}
result.rowCount_ = rowCount_;
result.regionNumber_ = regionNumber_;
onBuilt();
return result;
}
@@ -5512,9 +5468,6 @@ public final class Database {
if (other.getRowCount() != 0) {
setRowCount(other.getRowCount());
}
if (other.getRegionNumber() != 0) {
setRegionNumber(other.getRegionNumber());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -5978,49 +5931,6 @@ public final class Database {
onChanged();
return this;
}
private int regionNumber_ ;
/**
* <pre>
* The region number of current insert request.
* </pre>
*
* <code>uint32 region_number = 5;</code>
* @return The regionNumber.
*/
@java.lang.Override
public int getRegionNumber() {
return regionNumber_;
}
/**
* <pre>
* The region number of current insert request.
* </pre>
*
* <code>uint32 region_number = 5;</code>
* @param value The regionNumber to set.
* @return This builder for chaining.
*/
public Builder setRegionNumber(int value) {
regionNumber_ = value;
onChanged();
return this;
}
/**
* <pre>
* The region number of current insert request.
* </pre>
*
* <code>uint32 region_number = 5;</code>
* @return This builder for chaining.
*/
public Builder clearRegionNumber() {
regionNumber_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -6895,16 +6805,6 @@ public final class Database {
com.google.protobuf.ByteString
getTableNameBytes();
/**
* <pre>
* The region number of current delete request.
* </pre>
*
* <code>uint32 region_number = 2;</code>
* @return The regionNumber.
*/
int getRegionNumber();
/**
* <pre>
* The data to delete, indexed by key columns.
@@ -7013,11 +6913,6 @@ public final class Database {
tableName_ = s;
break;
}
case 16: {
regionNumber_ = input.readUInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
keyColumns_ = new java.util.ArrayList<io.greptime.v1.Columns.Column>();
@@ -7117,21 +7012,6 @@ public final class Database {
}
}
public static final int REGION_NUMBER_FIELD_NUMBER = 2;
private int regionNumber_;
/**
* <pre>
* The region number of current delete request.
* </pre>
*
* <code>uint32 region_number = 2;</code>
* @return The regionNumber.
*/
@java.lang.Override
public int getRegionNumber() {
return regionNumber_;
}
public static final int KEY_COLUMNS_FIELD_NUMBER = 3;
private java.util.List<io.greptime.v1.Columns.Column> keyColumns_;
/**
@@ -7224,9 +7104,6 @@ public final class Database {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableName_);
}
if (regionNumber_ != 0) {
output.writeUInt32(2, regionNumber_);
}
for (int i = 0; i < keyColumns_.size(); i++) {
output.writeMessage(3, keyColumns_.get(i));
}
@@ -7245,10 +7122,6 @@ public final class Database {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tableName_);
}
if (regionNumber_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, regionNumber_);
}
for (int i = 0; i < keyColumns_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, keyColumns_.get(i));
@@ -7274,8 +7147,6 @@ public final class Database {
if (!getTableName()
.equals(other.getTableName())) return false;
if (getRegionNumber()
!= other.getRegionNumber()) return false;
if (!getKeyColumnsList()
.equals(other.getKeyColumnsList())) return false;
if (getRowCount()
@@ -7293,8 +7164,6 @@ public final class Database {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTableName().hashCode();
hash = (37 * hash) + REGION_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getRegionNumber();
if (getKeyColumnsCount() > 0) {
hash = (37 * hash) + KEY_COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getKeyColumnsList().hashCode();
@@ -7437,8 +7306,6 @@ public final class Database {
super.clear();
tableName_ = "";
regionNumber_ = 0;
if (keyColumnsBuilder_ == null) {
keyColumns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
@@ -7475,7 +7342,6 @@ public final class Database {
io.greptime.v1.Database.DeleteRequest result = new io.greptime.v1.Database.DeleteRequest(this);
int from_bitField0_ = bitField0_;
result.tableName_ = tableName_;
result.regionNumber_ = regionNumber_;
if (keyColumnsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
keyColumns_ = java.util.Collections.unmodifiableList(keyColumns_);
@@ -7538,9 +7404,6 @@ public final class Database {
tableName_ = other.tableName_;
onChanged();
}
if (other.getRegionNumber() != 0) {
setRegionNumber(other.getRegionNumber());
}
if (keyColumnsBuilder_ == null) {
if (!other.keyColumns_.isEmpty()) {
if (keyColumns_.isEmpty()) {
@@ -7701,49 +7564,6 @@ public final class Database {
return this;
}
private int regionNumber_ ;
/**
* <pre>
* The region number of current delete request.
* </pre>
*
* <code>uint32 region_number = 2;</code>
* @return The regionNumber.
*/
@java.lang.Override
public int getRegionNumber() {
return regionNumber_;
}
/**
* <pre>
* The region number of current delete request.
* </pre>
*
* <code>uint32 region_number = 2;</code>
* @param value The regionNumber to set.
* @return This builder for chaining.
*/
public Builder setRegionNumber(int value) {
regionNumber_ = value;
onChanged();
return this;
}
/**
* <pre>
* The region number of current delete request.
* </pre>
*
* <code>uint32 region_number = 2;</code>
* @return This builder for chaining.
*/
public Builder clearRegionNumber() {
regionNumber_ = 0;
onChanged();
return this;
}
private java.util.List<io.greptime.v1.Columns.Column> keyColumns_ =
java.util.Collections.emptyList();
private void ensureKeyColumnsIsMutable() {
@@ -8988,16 +8808,6 @@ public final class Database {
* <code>.greptime.v1.Rows rows = 2;</code>
*/
io.greptime.v1.RowData.RowsOrBuilder getRowsOrBuilder();
/**
* <pre>
* The region number of current insert request.
* </pre>
*
* <code>uint32 region_number = 3;</code>
* @return The regionNumber.
*/
int getRegionNumber();
}
/**
* Protobuf type {@code greptime.v1.RowInsertRequest}
@@ -9064,11 +8874,6 @@ public final class Database {
break;
}
case 24: {
regionNumber_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -9179,21 +8984,6 @@ public final class Database {
return getRows();
}
public static final int REGION_NUMBER_FIELD_NUMBER = 3;
private int regionNumber_;
/**
* <pre>
* The region number of current insert request.
* </pre>
*
* <code>uint32 region_number = 3;</code>
* @return The regionNumber.
*/
@java.lang.Override
public int getRegionNumber() {
return regionNumber_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -9214,9 +9004,6 @@ public final class Database {
if (rows_ != null) {
output.writeMessage(2, getRows());
}
if (regionNumber_ != 0) {
output.writeUInt32(3, regionNumber_);
}
unknownFields.writeTo(output);
}
@@ -9233,10 +9020,6 @@ public final class Database {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRows());
}
if (regionNumber_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, regionNumber_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -9259,8 +9042,6 @@ public final class Database {
if (!getRows()
.equals(other.getRows())) return false;
}
if (getRegionNumber()
!= other.getRegionNumber()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -9278,8 +9059,6 @@ public final class Database {
hash = (37 * hash) + ROWS_FIELD_NUMBER;
hash = (53 * hash) + getRows().hashCode();
}
hash = (37 * hash) + REGION_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getRegionNumber();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -9421,8 +9200,6 @@ public final class Database {
rows_ = null;
rowsBuilder_ = null;
}
regionNumber_ = 0;
return this;
}
@@ -9455,7 +9232,6 @@ public final class Database {
} else {
result.rows_ = rowsBuilder_.build();
}
result.regionNumber_ = regionNumber_;
onBuilt();
return result;
}
@@ -9511,9 +9287,6 @@ public final class Database {
if (other.hasRows()) {
mergeRows(other.getRows());
}
if (other.getRegionNumber() != 0) {
setRegionNumber(other.getRegionNumber());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -9773,49 +9546,6 @@ public final class Database {
}
return rowsBuilder_;
}
private int regionNumber_ ;
/**
* <pre>
* The region number of current insert request.
* </pre>
*
* <code>uint32 region_number = 3;</code>
* @return The regionNumber.
*/
@java.lang.Override
public int getRegionNumber() {
return regionNumber_;
}
/**
* <pre>
* The region number of current insert request.
* </pre>
*
* <code>uint32 region_number = 3;</code>
* @param value The regionNumber to set.
* @return This builder for chaining.
*/
public Builder setRegionNumber(int value) {
regionNumber_ = value;
onChanged();
return this;
}
/**
* <pre>
* The region number of current insert request.
* </pre>
*
* <code>uint32 region_number = 3;</code>
* @return This builder for chaining.
*/
public Builder clearRegionNumber() {
regionNumber_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -10716,16 +10446,6 @@ public final class Database {
* <code>.greptime.v1.Rows rows = 2;</code>
*/
io.greptime.v1.RowData.RowsOrBuilder getRowsOrBuilder();
/**
* <pre>
* The region number of current delete request.
* </pre>
*
* <code>uint32 region_number = 3;</code>
* @return The regionNumber.
*/
int getRegionNumber();
}
/**
* Protobuf type {@code greptime.v1.RowDeleteRequest}
@@ -10792,11 +10512,6 @@ public final class Database {
break;
}
case 24: {
regionNumber_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -10917,21 +10632,6 @@ public final class Database {
return getRows();
}
public static final int REGION_NUMBER_FIELD_NUMBER = 3;
private int regionNumber_;
/**
* <pre>
* The region number of current delete request.
* </pre>
*
* <code>uint32 region_number = 3;</code>
* @return The regionNumber.
*/
@java.lang.Override
public int getRegionNumber() {
return regionNumber_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -10952,9 +10652,6 @@ public final class Database {
if (rows_ != null) {
output.writeMessage(2, getRows());
}
if (regionNumber_ != 0) {
output.writeUInt32(3, regionNumber_);
}
unknownFields.writeTo(output);
}
@@ -10971,10 +10668,6 @@ public final class Database {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRows());
}
if (regionNumber_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, regionNumber_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -10997,8 +10690,6 @@ public final class Database {
if (!getRows()
.equals(other.getRows())) return false;
}
if (getRegionNumber()
!= other.getRegionNumber()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -11016,8 +10707,6 @@ public final class Database {
hash = (37 * hash) + ROWS_FIELD_NUMBER;
hash = (53 * hash) + getRows().hashCode();
}
hash = (37 * hash) + REGION_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getRegionNumber();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -11159,8 +10848,6 @@ public final class Database {
rows_ = null;
rowsBuilder_ = null;
}
regionNumber_ = 0;
return this;
}
@@ -11193,7 +10880,6 @@ public final class Database {
} else {
result.rows_ = rowsBuilder_.build();
}
result.regionNumber_ = regionNumber_;
onBuilt();
return result;
}
@@ -11249,9 +10935,6 @@ public final class Database {
if (other.hasRows()) {
mergeRows(other.getRows());
}
if (other.getRegionNumber() != 0) {
setRegionNumber(other.getRegionNumber());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -11536,49 +11219,6 @@ public final class Database {
}
return rowsBuilder_;
}
private int regionNumber_ ;
/**
* <pre>
* The region number of current delete request.
* </pre>
*
* <code>uint32 region_number = 3;</code>
* @return The regionNumber.
*/
@java.lang.Override
public int getRegionNumber() {
return regionNumber_;
}
/**
* <pre>
* The region number of current delete request.
* </pre>
*
* <code>uint32 region_number = 3;</code>
* @param value The regionNumber to set.
* @return This builder for chaining.
*/
public Builder setRegionNumber(int value) {
regionNumber_ = value;
onChanged();
return this;
}
/**
* <pre>
* The region number of current delete request.
* </pre>
*
* <code>uint32 region_number = 3;</code>
* @return This builder for chaining.
*/
public Builder clearRegionNumber() {
regionNumber_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -11717,29 +11357,27 @@ public final class Database {
"_range_query\030\003 \001(\0132\033.greptime.v1.PromRan" +
"geQueryH\000B\007\n\005query\"=\n\016InsertRequests\022+\n\007" +
"inserts\030\001 \003(\0132\032.greptime.v1.InsertReques" +
"t\"s\n\rInsertRequest\022\022\n\ntable_name\030\001 \001(\t\022$" +
"t\"\\\n\rInsertRequest\022\022\n\ntable_name\030\001 \001(\t\022$" +
"\n\007columns\030\003 \003(\0132\023.greptime.v1.Column\022\021\n\t" +
"row_count\030\004 \001(\r\022\025\n\rregion_number\030\005 \001(\r\"=" +
"\n\016DeleteRequests\022+\n\007deletes\030\001 \003(\0132\032.grep" +
"time.v1.DeleteRequest\"w\n\rDeleteRequest\022\022" +
"\n\ntable_name\030\001 \001(\t\022\025\n\rregion_number\030\002 \001(" +
"\r\022(\n\013key_columns\030\003 \003(\0132\023.greptime.v1.Col" +
"umn\022\021\n\trow_count\030\004 \001(\r\"C\n\021RowInsertReque" +
"sts\022.\n\007inserts\030\001 \003(\0132\035.greptime.v1.RowIn" +
"sertRequest\"^\n\020RowInsertRequest\022\022\n\ntable" +
"_name\030\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1." +
"Rows\022\025\n\rregion_number\030\003 \001(\r\"C\n\021RowDelete" +
"Requests\022.\n\007deletes\030\001 \003(\0132\035.greptime.v1." +
"RowDeleteRequest\"^\n\020RowDeleteRequest\022\022\n\n" +
"table_name\030\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021.greptim" +
"e.v1.Rows\022\025\n\rregion_number\030\003 \001(\r2\252\001\n\020Gre" +
"ptimeDatabase\022E\n\006Handle\022\034.greptime.v1.Gr" +
"eptimeRequest\032\035.greptime.v1.GreptimeResp" +
"onse\022O\n\016HandleRequests\022\034.greptime.v1.Gre" +
"ptimeRequest\032\035.greptime.v1.GreptimeRespo" +
"nse(\001BQ\n\016io.greptime.v1B\010DatabaseZ5githu" +
"b.com/GreptimeTeam/greptime-proto/go/gre" +
"ptime/v1b\006proto3"
"row_count\030\004 \001(\r\"=\n\016DeleteRequests\022+\n\007del" +
"etes\030\001 \003(\0132\032.greptime.v1.DeleteRequest\"`" +
"\n\rDeleteRequest\022\022\n\ntable_name\030\001 \001(\t\022(\n\013k" +
"ey_columns\030\003 \003(\0132\023.greptime.v1.Column\022\021\n" +
"\trow_count\030\004 \001(\r\"C\n\021RowInsertRequests\022.\n" +
"\007inserts\030\001 \003(\0132\035.greptime.v1.RowInsertRe" +
"quest\"G\n\020RowInsertRequest\022\022\n\ntable_name\030" +
"\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"C" +
"\n\021RowDeleteRequests\022.\n\007deletes\030\001 \003(\0132\035.g" +
"reptime.v1.RowDeleteRequest\"G\n\020RowDelete" +
"Request\022\022\n\ntable_name\030\001 \001(\t\022\037\n\004rows\030\002 \001(" +
"\0132\021.greptime.v1.Rows2\252\001\n\020GreptimeDatabas" +
"e\022E\n\006Handle\022\034.greptime.v1.GreptimeReques" +
"t\032\035.greptime.v1.GreptimeResponse\022O\n\016Hand" +
"leRequests\022\034.greptime.v1.GreptimeRequest" +
"\032\035.greptime.v1.GreptimeResponse(\001BQ\n\016io." +
"greptime.v1B\010DatabaseZ5github.com/Grepti" +
"meTeam/greptime-proto/go/greptime/v1b\006pr" +
"oto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -11779,7 +11417,7 @@ public final class Database {
internal_static_greptime_v1_InsertRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_InsertRequest_descriptor,
new java.lang.String[] { "TableName", "Columns", "RowCount", "RegionNumber", });
new java.lang.String[] { "TableName", "Columns", "RowCount", });
internal_static_greptime_v1_DeleteRequests_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_greptime_v1_DeleteRequests_fieldAccessorTable = new
@@ -11791,7 +11429,7 @@ public final class Database {
internal_static_greptime_v1_DeleteRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_DeleteRequest_descriptor,
new java.lang.String[] { "TableName", "RegionNumber", "KeyColumns", "RowCount", });
new java.lang.String[] { "TableName", "KeyColumns", "RowCount", });
internal_static_greptime_v1_RowInsertRequests_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_greptime_v1_RowInsertRequests_fieldAccessorTable = new
@@ -11803,7 +11441,7 @@ public final class Database {
internal_static_greptime_v1_RowInsertRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_RowInsertRequest_descriptor,
new java.lang.String[] { "TableName", "Rows", "RegionNumber", });
new java.lang.String[] { "TableName", "Rows", });
internal_static_greptime_v1_RowDeleteRequests_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_greptime_v1_RowDeleteRequests_fieldAccessorTable = new
@@ -11815,7 +11453,7 @@ public final class Database {
internal_static_greptime_v1_RowDeleteRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_RowDeleteRequest_descriptor,
new java.lang.String[] { "TableName", "Rows", "RegionNumber", });
new java.lang.String[] { "TableName", "Rows", });
io.greptime.v1.Ddl.getDescriptor();
io.greptime.v1.Columns.getDescriptor();
io.greptime.v1.RowData.getDescriptor();
+40 -235
View File
@@ -1839,23 +1839,6 @@ java.lang.String defaultValue);
*/
io.greptime.v1.Ddl.TableIdOrBuilder getTableIdOrBuilder();
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @return A list containing the regionNumbers.
*/
java.util.List<java.lang.Integer> getRegionNumbersList();
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @return The count of regionNumbers.
*/
int getRegionNumbersCount();
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @param index The index of the element to return.
* @return The regionNumbers at the given index.
*/
int getRegionNumbers(int index);
/**
* <code>string engine = 12;</code>
* @return The engine.
@@ -1888,7 +1871,6 @@ java.lang.String defaultValue);
columnDefs_ = java.util.Collections.emptyList();
timeIndex_ = "";
primaryKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
regionNumbers_ = emptyIntList();
engine_ = "";
}
@@ -2002,27 +1984,6 @@ java.lang.String defaultValue);
break;
}
case 88: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
regionNumbers_ = newIntList();
mutable_bitField0_ |= 0x00000008;
}
regionNumbers_.addInt(input.readUInt32());
break;
}
case 90: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) {
regionNumbers_ = newIntList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
regionNumbers_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
@@ -2052,9 +2013,6 @@ java.lang.String defaultValue);
if (((mutable_bitField0_ & 0x00000002) != 0)) {
primaryKeys_ = primaryKeys_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
regionNumbers_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -2467,34 +2425,6 @@ java.lang.String defaultValue);
return getTableId();
}
public static final int REGION_NUMBERS_FIELD_NUMBER = 11;
private com.google.protobuf.Internal.IntList regionNumbers_;
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @return A list containing the regionNumbers.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getRegionNumbersList() {
return regionNumbers_;
}
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @return The count of regionNumbers.
*/
public int getRegionNumbersCount() {
return regionNumbers_.size();
}
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @param index The index of the element to return.
* @return The regionNumbers at the given index.
*/
public int getRegionNumbers(int index) {
return regionNumbers_.getInt(index);
}
private int regionNumbersMemoizedSerializedSize = -1;
public static final int ENGINE_FIELD_NUMBER = 12;
private volatile java.lang.Object engine_;
/**
@@ -2547,7 +2477,6 @@ java.lang.String defaultValue);
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_);
}
@@ -2581,13 +2510,6 @@ java.lang.String defaultValue);
if (tableId_ != null) {
output.writeMessage(10, getTableId());
}
if (getRegionNumbersList().size() > 0) {
output.writeUInt32NoTag(90);
output.writeUInt32NoTag(regionNumbersMemoizedSerializedSize);
}
for (int i = 0; i < regionNumbers_.size(); i++) {
output.writeUInt32NoTag(regionNumbers_.getInt(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engine_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, engine_);
}
@@ -2645,20 +2567,6 @@ java.lang.String defaultValue);
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getTableId());
}
{
int dataSize = 0;
for (int i = 0; i < regionNumbers_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(regionNumbers_.getInt(i));
}
size += dataSize;
if (!getRegionNumbersList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
regionNumbersMemoizedSerializedSize = dataSize;
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engine_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, engine_);
}
@@ -2700,8 +2608,6 @@ java.lang.String defaultValue);
if (!getTableId()
.equals(other.getTableId())) return false;
}
if (!getRegionNumbersList()
.equals(other.getRegionNumbersList())) return false;
if (!getEngine()
.equals(other.getEngine())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
@@ -2744,10 +2650,6 @@ java.lang.String defaultValue);
hash = (37 * hash) + TABLE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTableId().hashCode();
}
if (getRegionNumbersCount() > 0) {
hash = (37 * hash) + REGION_NUMBERS_FIELD_NUMBER;
hash = (53 * hash) + getRegionNumbersList().hashCode();
}
hash = (37 * hash) + ENGINE_FIELD_NUMBER;
hash = (53 * hash) + getEngine().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
@@ -2933,8 +2835,6 @@ java.lang.String defaultValue);
tableId_ = null;
tableIdBuilder_ = null;
}
regionNumbers_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000008);
engine_ = "";
return this;
@@ -2991,11 +2891,6 @@ java.lang.String defaultValue);
} else {
result.tableId_ = tableIdBuilder_.build();
}
if (((bitField0_ & 0x00000008) != 0)) {
regionNumbers_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.regionNumbers_ = regionNumbers_;
result.engine_ = engine_;
onBuilt();
return result;
@@ -3109,16 +3004,6 @@ java.lang.String defaultValue);
if (other.hasTableId()) {
mergeTableId(other.getTableId());
}
if (!other.regionNumbers_.isEmpty()) {
if (regionNumbers_.isEmpty()) {
regionNumbers_ = other.regionNumbers_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureRegionNumbersIsMutable();
regionNumbers_.addAll(other.regionNumbers_);
}
onChanged();
}
if (!other.getEngine().isEmpty()) {
engine_ = other.engine_;
onChanged();
@@ -4164,85 +4049,6 @@ java.lang.String defaultValue);
return tableIdBuilder_;
}
private com.google.protobuf.Internal.IntList regionNumbers_ = emptyIntList();
private void ensureRegionNumbersIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
regionNumbers_ = mutableCopy(regionNumbers_);
bitField0_ |= 0x00000008;
}
}
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @return A list containing the regionNumbers.
*/
public java.util.List<java.lang.Integer>
getRegionNumbersList() {
return ((bitField0_ & 0x00000008) != 0) ?
java.util.Collections.unmodifiableList(regionNumbers_) : regionNumbers_;
}
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @return The count of regionNumbers.
*/
public int getRegionNumbersCount() {
return regionNumbers_.size();
}
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @param index The index of the element to return.
* @return The regionNumbers at the given index.
*/
public int getRegionNumbers(int index) {
return regionNumbers_.getInt(index);
}
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @param index The index to set the value at.
* @param value The regionNumbers to set.
* @return This builder for chaining.
*/
public Builder setRegionNumbers(
int index, int value) {
ensureRegionNumbersIsMutable();
regionNumbers_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @param value The regionNumbers to add.
* @return This builder for chaining.
*/
public Builder addRegionNumbers(int value) {
ensureRegionNumbersIsMutable();
regionNumbers_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @param values The regionNumbers to add.
* @return This builder for chaining.
*/
public Builder addAllRegionNumbers(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureRegionNumbersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, regionNumbers_);
onChanged();
return this;
}
/**
* <code>repeated uint32 region_numbers = 11;</code>
* @return This builder for chaining.
*/
public Builder clearRegionNumbers() {
regionNumbers_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private java.lang.Object engine_ = "";
/**
* <code>string engine = 12;</code>
@@ -14971,7 +14777,7 @@ java.lang.String defaultValue);
"\030\003 \001(\0132\026.greptime.v1.AlterExprH\000\0220\n\ndrop" +
"_table\030\004 \001(\0132\032.greptime.v1.DropTableExpr" +
"H\000\0228\n\016truncate_table\030\007 \001(\0132\036.greptime.v1" +
".TruncateTableExprH\000B\006\n\004expr\"\237\003\n\017CreateT" +
".TruncateTableExprH\000B\006\n\004expr\"\207\003\n\017CreateT" +
"ableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema" +
"_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\014\n\004desc\030" +
"\004 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.greptime.v1" +
@@ -14979,45 +14785,44 @@ java.lang.String defaultValue);
"y_keys\030\007 \003(\t\022\034\n\024create_if_not_exists\030\010 \001" +
"(\010\022E\n\rtable_options\030\t \003(\0132..greptime.v1." +
"CreateTableExpr.TableOptionsEntry\022&\n\010tab" +
"le_id\030\n \001(\0132\024.greptime.v1.TableId\022\026\n\016reg" +
"ion_numbers\030\013 \003(\r\022\016\n\006engine\030\014 \001(\t\0323\n\021Tab" +
"leOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" +
"(\t:\0028\001\"\346\001\n\tAlterExpr\022\024\n\014catalog_name\030\001 \001" +
"(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 " +
"\001(\t\022.\n\013add_columns\030\004 \001(\0132\027.greptime.v1.A" +
"ddColumnsH\000\0220\n\014drop_columns\030\005 \001(\0132\030.grep" +
"time.v1.DropColumnsH\000\0220\n\014rename_table\030\006 " +
"\001(\0132\030.greptime.v1.RenameTableH\000B\006\n\004kind\"" +
"v\n\rDropTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023" +
"\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022" +
"&\n\010table_id\030\004 \001(\0132\024.greptime.v1.TableId\"" +
"\270\001\n\022CreateDatabaseExpr\022\025\n\rdatabase_name\030" +
"\001 \001(\t\022\034\n\024create_if_not_exists\030\002 \001(\010\022=\n\007o" +
"ptions\030\003 \003(\0132,.greptime.v1.CreateDatabas" +
"eExpr.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke" +
"y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTa" +
"bleExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_" +
"name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_" +
"id\030\004 \001(\0132\024.greptime.v1.TableId\"9\n\nAddCol" +
"umns\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1." +
"AddColumn\"<\n\013DropColumns\022-\n\014drop_columns" +
"\030\001 \003(\0132\027.greptime.v1.DropColumn\"%\n\013Renam" +
"eTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddCol" +
"umn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Co" +
"lumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1." +
"AddColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030" +
"\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\254\001\n\tColumnD" +
"ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr" +
"eptime.v1.ColumnDataType\022\023\n\013is_nullable\030" +
"\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem" +
"antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT" +
"ype\"\230\001\n\021AddColumnLocation\022B\n\rlocation_ty" +
"pe\030\001 \001(\0162+.greptime.v1.AddColumnLocation" +
".LocationType\022\031\n\021after_column_name\030\002 \001(\t" +
"\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL" +
"\n\016io.greptime.v1B\003DdlZ5github.com/Grepti" +
"meTeam/greptime-proto/go/greptime/v1b\006pr" +
"oto3"
"le_id\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006eng" +
"ine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003key\030\001 " +
"\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlterExpr\022\024\n\014" +
"catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022" +
"\022\n\ntable_name\030\003 \001(\t\022.\n\013add_columns\030\004 \001(\013" +
"2\027.greptime.v1.AddColumnsH\000\0220\n\014drop_colu" +
"mns\030\005 \001(\0132\030.greptime.v1.DropColumnsH\000\0220\n" +
"\014rename_table\030\006 \001(\0132\030.greptime.v1.Rename" +
"TableH\000B\006\n\004kind\"v\n\rDropTableExpr\022\024\n\014cata" +
"log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nt" +
"able_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grep" +
"time.v1.TableId\"\270\001\n\022CreateDatabaseExpr\022\025" +
"\n\rdatabase_name\030\001 \001(\t\022\034\n\024create_if_not_e" +
"xists\030\002 \001(\010\022=\n\007options\030\003 \003(\0132,.greptime." +
"v1.CreateDatabaseExpr.OptionsEntry\032.\n\014Op" +
"tionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" +
"8\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_name\030" +
"\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name" +
"\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.T" +
"ableId\"9\n\nAddColumns\022+\n\013add_columns\030\001 \003(" +
"\0132\026.greptime.v1.AddColumn\"<\n\013DropColumns" +
"\022-\n\014drop_columns\030\001 \003(\0132\027.greptime.v1.Dro" +
"pColumn\"%\n\013RenameTable\022\026\n\016new_table_name" +
"\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132" +
"\026.greptime.v1.ColumnDef\0220\n\010location\030\003 \001(" +
"\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDro" +
"pColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001" +
" \001(\r\"\254\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata" +
"_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType" +
"\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_constra" +
"int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept" +
"ime.v1.SemanticType\"\230\001\n\021AddColumnLocatio" +
"n\022B\n\rlocation_type\030\001 \001(\0162+.greptime.v1.A" +
"ddColumnLocation.LocationType\022\031\n\021after_c" +
"olumn_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRS" +
"T\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5g" +
"ithub.com/GreptimeTeam/greptime-proto/go" +
"/greptime/v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -15035,7 +14840,7 @@ java.lang.String defaultValue);
internal_static_greptime_v1_CreateTableExpr_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_CreateTableExpr_descriptor,
new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "Desc", "ColumnDefs", "TimeIndex", "PrimaryKeys", "CreateIfNotExists", "TableOptions", "TableId", "RegionNumbers", "Engine", });
new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "Desc", "ColumnDefs", "TimeIndex", "PrimaryKeys", "CreateIfNotExists", "TableOptions", "TableId", "Engine", });
internal_static_greptime_v1_CreateTableExpr_TableOptionsEntry_descriptor =
internal_static_greptime_v1_CreateTableExpr_descriptor.getNestedTypes().get(0);
internal_static_greptime_v1_CreateTableExpr_TableOptionsEntry_fieldAccessorTable = new
+144 -144
View File
@@ -2936,48 +2936,48 @@ public final class RowData {
long getDatetimeValue();
/**
* <code>int64 ts_second_value = 16;</code>
* @return Whether the tsSecondValue field is set.
* <code>int64 timestamp_second_value = 16;</code>
* @return Whether the timestampSecondValue field is set.
*/
boolean hasTsSecondValue();
boolean hasTimestampSecondValue();
/**
* <code>int64 ts_second_value = 16;</code>
* @return The tsSecondValue.
* <code>int64 timestamp_second_value = 16;</code>
* @return The timestampSecondValue.
*/
long getTsSecondValue();
long getTimestampSecondValue();
/**
* <code>int64 ts_millisecond_value = 17;</code>
* @return Whether the tsMillisecondValue field is set.
* <code>int64 timestamp_millisecond_value = 17;</code>
* @return Whether the timestampMillisecondValue field is set.
*/
boolean hasTsMillisecondValue();
boolean hasTimestampMillisecondValue();
/**
* <code>int64 ts_millisecond_value = 17;</code>
* @return The tsMillisecondValue.
* <code>int64 timestamp_millisecond_value = 17;</code>
* @return The timestampMillisecondValue.
*/
long getTsMillisecondValue();
long getTimestampMillisecondValue();
/**
* <code>int64 ts_microsecond_value = 18;</code>
* @return Whether the tsMicrosecondValue field is set.
* <code>int64 timestamp_microsecond_value = 18;</code>
* @return Whether the timestampMicrosecondValue field is set.
*/
boolean hasTsMicrosecondValue();
boolean hasTimestampMicrosecondValue();
/**
* <code>int64 ts_microsecond_value = 18;</code>
* @return The tsMicrosecondValue.
* <code>int64 timestamp_microsecond_value = 18;</code>
* @return The timestampMicrosecondValue.
*/
long getTsMicrosecondValue();
long getTimestampMicrosecondValue();
/**
* <code>int64 ts_nanosecond_value = 19;</code>
* @return Whether the tsNanosecondValue field is set.
* <code>int64 timestamp_nanosecond_value = 19;</code>
* @return Whether the timestampNanosecondValue field is set.
*/
boolean hasTsNanosecondValue();
boolean hasTimestampNanosecondValue();
/**
* <code>int64 ts_nanosecond_value = 19;</code>
* @return The tsNanosecondValue.
* <code>int64 timestamp_nanosecond_value = 19;</code>
* @return The timestampNanosecondValue.
*/
long getTsNanosecondValue();
long getTimestampNanosecondValue();
/**
* <code>int64 time_second_value = 20;</code>
@@ -3301,10 +3301,10 @@ public final class RowData {
STRING_VALUE(13),
DATE_VALUE(14),
DATETIME_VALUE(15),
TS_SECOND_VALUE(16),
TS_MILLISECOND_VALUE(17),
TS_MICROSECOND_VALUE(18),
TS_NANOSECOND_VALUE(19),
TIMESTAMP_SECOND_VALUE(16),
TIMESTAMP_MILLISECOND_VALUE(17),
TIMESTAMP_MICROSECOND_VALUE(18),
TIMESTAMP_NANOSECOND_VALUE(19),
TIME_SECOND_VALUE(20),
TIME_MILLISECOND_VALUE(21),
TIME_MICROSECOND_VALUE(22),
@@ -3344,10 +3344,10 @@ public final class RowData {
case 13: return STRING_VALUE;
case 14: return DATE_VALUE;
case 15: return DATETIME_VALUE;
case 16: return TS_SECOND_VALUE;
case 17: return TS_MILLISECOND_VALUE;
case 18: return TS_MICROSECOND_VALUE;
case 19: return TS_NANOSECOND_VALUE;
case 16: return TIMESTAMP_SECOND_VALUE;
case 17: return TIMESTAMP_MILLISECOND_VALUE;
case 18: return TIMESTAMP_MICROSECOND_VALUE;
case 19: return TIMESTAMP_NANOSECOND_VALUE;
case 20: return TIME_SECOND_VALUE;
case 21: return TIME_MILLISECOND_VALUE;
case 22: return TIME_MICROSECOND_VALUE;
@@ -3716,84 +3716,84 @@ public final class RowData {
return 0L;
}
public static final int TS_SECOND_VALUE_FIELD_NUMBER = 16;
public static final int TIMESTAMP_SECOND_VALUE_FIELD_NUMBER = 16;
/**
* <code>int64 ts_second_value = 16;</code>
* @return Whether the tsSecondValue field is set.
* <code>int64 timestamp_second_value = 16;</code>
* @return Whether the timestampSecondValue field is set.
*/
@java.lang.Override
public boolean hasTsSecondValue() {
public boolean hasTimestampSecondValue() {
return valueDataCase_ == 16;
}
/**
* <code>int64 ts_second_value = 16;</code>
* @return The tsSecondValue.
* <code>int64 timestamp_second_value = 16;</code>
* @return The timestampSecondValue.
*/
@java.lang.Override
public long getTsSecondValue() {
public long getTimestampSecondValue() {
if (valueDataCase_ == 16) {
return (java.lang.Long) valueData_;
}
return 0L;
}
public static final int TS_MILLISECOND_VALUE_FIELD_NUMBER = 17;
public static final int TIMESTAMP_MILLISECOND_VALUE_FIELD_NUMBER = 17;
/**
* <code>int64 ts_millisecond_value = 17;</code>
* @return Whether the tsMillisecondValue field is set.
* <code>int64 timestamp_millisecond_value = 17;</code>
* @return Whether the timestampMillisecondValue field is set.
*/
@java.lang.Override
public boolean hasTsMillisecondValue() {
public boolean hasTimestampMillisecondValue() {
return valueDataCase_ == 17;
}
/**
* <code>int64 ts_millisecond_value = 17;</code>
* @return The tsMillisecondValue.
* <code>int64 timestamp_millisecond_value = 17;</code>
* @return The timestampMillisecondValue.
*/
@java.lang.Override
public long getTsMillisecondValue() {
public long getTimestampMillisecondValue() {
if (valueDataCase_ == 17) {
return (java.lang.Long) valueData_;
}
return 0L;
}
public static final int TS_MICROSECOND_VALUE_FIELD_NUMBER = 18;
public static final int TIMESTAMP_MICROSECOND_VALUE_FIELD_NUMBER = 18;
/**
* <code>int64 ts_microsecond_value = 18;</code>
* @return Whether the tsMicrosecondValue field is set.
* <code>int64 timestamp_microsecond_value = 18;</code>
* @return Whether the timestampMicrosecondValue field is set.
*/
@java.lang.Override
public boolean hasTsMicrosecondValue() {
public boolean hasTimestampMicrosecondValue() {
return valueDataCase_ == 18;
}
/**
* <code>int64 ts_microsecond_value = 18;</code>
* @return The tsMicrosecondValue.
* <code>int64 timestamp_microsecond_value = 18;</code>
* @return The timestampMicrosecondValue.
*/
@java.lang.Override
public long getTsMicrosecondValue() {
public long getTimestampMicrosecondValue() {
if (valueDataCase_ == 18) {
return (java.lang.Long) valueData_;
}
return 0L;
}
public static final int TS_NANOSECOND_VALUE_FIELD_NUMBER = 19;
public static final int TIMESTAMP_NANOSECOND_VALUE_FIELD_NUMBER = 19;
/**
* <code>int64 ts_nanosecond_value = 19;</code>
* @return Whether the tsNanosecondValue field is set.
* <code>int64 timestamp_nanosecond_value = 19;</code>
* @return Whether the timestampNanosecondValue field is set.
*/
@java.lang.Override
public boolean hasTsNanosecondValue() {
public boolean hasTimestampNanosecondValue() {
return valueDataCase_ == 19;
}
/**
* <code>int64 ts_nanosecond_value = 19;</code>
* @return The tsNanosecondValue.
* <code>int64 timestamp_nanosecond_value = 19;</code>
* @return The timestampNanosecondValue.
*/
@java.lang.Override
public long getTsNanosecondValue() {
public long getTimestampNanosecondValue() {
if (valueDataCase_ == 19) {
return (java.lang.Long) valueData_;
}
@@ -4289,20 +4289,20 @@ public final class RowData {
!= other.getDatetimeValue()) return false;
break;
case 16:
if (getTsSecondValue()
!= other.getTsSecondValue()) return false;
if (getTimestampSecondValue()
!= other.getTimestampSecondValue()) return false;
break;
case 17:
if (getTsMillisecondValue()
!= other.getTsMillisecondValue()) return false;
if (getTimestampMillisecondValue()
!= other.getTimestampMillisecondValue()) return false;
break;
case 18:
if (getTsMicrosecondValue()
!= other.getTsMicrosecondValue()) return false;
if (getTimestampMicrosecondValue()
!= other.getTimestampMicrosecondValue()) return false;
break;
case 19:
if (getTsNanosecondValue()
!= other.getTsNanosecondValue()) return false;
if (getTimestampNanosecondValue()
!= other.getTimestampNanosecondValue()) return false;
break;
case 20:
if (getTimeSecondValue()
@@ -4414,24 +4414,24 @@ public final class RowData {
getDatetimeValue());
break;
case 16:
hash = (37 * hash) + TS_SECOND_VALUE_FIELD_NUMBER;
hash = (37 * hash) + TIMESTAMP_SECOND_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTsSecondValue());
getTimestampSecondValue());
break;
case 17:
hash = (37 * hash) + TS_MILLISECOND_VALUE_FIELD_NUMBER;
hash = (37 * hash) + TIMESTAMP_MILLISECOND_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTsMillisecondValue());
getTimestampMillisecondValue());
break;
case 18:
hash = (37 * hash) + TS_MICROSECOND_VALUE_FIELD_NUMBER;
hash = (37 * hash) + TIMESTAMP_MICROSECOND_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTsMicrosecondValue());
getTimestampMicrosecondValue());
break;
case 19:
hash = (37 * hash) + TS_NANOSECOND_VALUE_FIELD_NUMBER;
hash = (37 * hash) + TIMESTAMP_NANOSECOND_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTsNanosecondValue());
getTimestampNanosecondValue());
break;
case 20:
hash = (37 * hash) + TIME_SECOND_VALUE_FIELD_NUMBER;
@@ -4824,20 +4824,20 @@ public final class RowData {
setDatetimeValue(other.getDatetimeValue());
break;
}
case TS_SECOND_VALUE: {
setTsSecondValue(other.getTsSecondValue());
case TIMESTAMP_SECOND_VALUE: {
setTimestampSecondValue(other.getTimestampSecondValue());
break;
}
case TS_MILLISECOND_VALUE: {
setTsMillisecondValue(other.getTsMillisecondValue());
case TIMESTAMP_MILLISECOND_VALUE: {
setTimestampMillisecondValue(other.getTimestampMillisecondValue());
break;
}
case TS_MICROSECOND_VALUE: {
setTsMicrosecondValue(other.getTsMicrosecondValue());
case TIMESTAMP_MICROSECOND_VALUE: {
setTimestampMicrosecondValue(other.getTimestampMicrosecondValue());
break;
}
case TS_NANOSECOND_VALUE: {
setTsNanosecondValue(other.getTsNanosecondValue());
case TIMESTAMP_NANOSECOND_VALUE: {
setTimestampNanosecondValue(other.getTimestampNanosecondValue());
break;
}
case TIME_SECOND_VALUE: {
@@ -5591,38 +5591,38 @@ public final class RowData {
}
/**
* <code>int64 ts_second_value = 16;</code>
* @return Whether the tsSecondValue field is set.
* <code>int64 timestamp_second_value = 16;</code>
* @return Whether the timestampSecondValue field is set.
*/
public boolean hasTsSecondValue() {
public boolean hasTimestampSecondValue() {
return valueDataCase_ == 16;
}
/**
* <code>int64 ts_second_value = 16;</code>
* @return The tsSecondValue.
* <code>int64 timestamp_second_value = 16;</code>
* @return The timestampSecondValue.
*/
public long getTsSecondValue() {
public long getTimestampSecondValue() {
if (valueDataCase_ == 16) {
return (java.lang.Long) valueData_;
}
return 0L;
}
/**
* <code>int64 ts_second_value = 16;</code>
* @param value The tsSecondValue to set.
* <code>int64 timestamp_second_value = 16;</code>
* @param value The timestampSecondValue to set.
* @return This builder for chaining.
*/
public Builder setTsSecondValue(long value) {
public Builder setTimestampSecondValue(long value) {
valueDataCase_ = 16;
valueData_ = value;
onChanged();
return this;
}
/**
* <code>int64 ts_second_value = 16;</code>
* <code>int64 timestamp_second_value = 16;</code>
* @return This builder for chaining.
*/
public Builder clearTsSecondValue() {
public Builder clearTimestampSecondValue() {
if (valueDataCase_ == 16) {
valueDataCase_ = 0;
valueData_ = null;
@@ -5632,38 +5632,38 @@ public final class RowData {
}
/**
* <code>int64 ts_millisecond_value = 17;</code>
* @return Whether the tsMillisecondValue field is set.
* <code>int64 timestamp_millisecond_value = 17;</code>
* @return Whether the timestampMillisecondValue field is set.
*/
public boolean hasTsMillisecondValue() {
public boolean hasTimestampMillisecondValue() {
return valueDataCase_ == 17;
}
/**
* <code>int64 ts_millisecond_value = 17;</code>
* @return The tsMillisecondValue.
* <code>int64 timestamp_millisecond_value = 17;</code>
* @return The timestampMillisecondValue.
*/
public long getTsMillisecondValue() {
public long getTimestampMillisecondValue() {
if (valueDataCase_ == 17) {
return (java.lang.Long) valueData_;
}
return 0L;
}
/**
* <code>int64 ts_millisecond_value = 17;</code>
* @param value The tsMillisecondValue to set.
* <code>int64 timestamp_millisecond_value = 17;</code>
* @param value The timestampMillisecondValue to set.
* @return This builder for chaining.
*/
public Builder setTsMillisecondValue(long value) {
public Builder setTimestampMillisecondValue(long value) {
valueDataCase_ = 17;
valueData_ = value;
onChanged();
return this;
}
/**
* <code>int64 ts_millisecond_value = 17;</code>
* <code>int64 timestamp_millisecond_value = 17;</code>
* @return This builder for chaining.
*/
public Builder clearTsMillisecondValue() {
public Builder clearTimestampMillisecondValue() {
if (valueDataCase_ == 17) {
valueDataCase_ = 0;
valueData_ = null;
@@ -5673,38 +5673,38 @@ public final class RowData {
}
/**
* <code>int64 ts_microsecond_value = 18;</code>
* @return Whether the tsMicrosecondValue field is set.
* <code>int64 timestamp_microsecond_value = 18;</code>
* @return Whether the timestampMicrosecondValue field is set.
*/
public boolean hasTsMicrosecondValue() {
public boolean hasTimestampMicrosecondValue() {
return valueDataCase_ == 18;
}
/**
* <code>int64 ts_microsecond_value = 18;</code>
* @return The tsMicrosecondValue.
* <code>int64 timestamp_microsecond_value = 18;</code>
* @return The timestampMicrosecondValue.
*/
public long getTsMicrosecondValue() {
public long getTimestampMicrosecondValue() {
if (valueDataCase_ == 18) {
return (java.lang.Long) valueData_;
}
return 0L;
}
/**
* <code>int64 ts_microsecond_value = 18;</code>
* @param value The tsMicrosecondValue to set.
* <code>int64 timestamp_microsecond_value = 18;</code>
* @param value The timestampMicrosecondValue to set.
* @return This builder for chaining.
*/
public Builder setTsMicrosecondValue(long value) {
public Builder setTimestampMicrosecondValue(long value) {
valueDataCase_ = 18;
valueData_ = value;
onChanged();
return this;
}
/**
* <code>int64 ts_microsecond_value = 18;</code>
* <code>int64 timestamp_microsecond_value = 18;</code>
* @return This builder for chaining.
*/
public Builder clearTsMicrosecondValue() {
public Builder clearTimestampMicrosecondValue() {
if (valueDataCase_ == 18) {
valueDataCase_ = 0;
valueData_ = null;
@@ -5714,38 +5714,38 @@ public final class RowData {
}
/**
* <code>int64 ts_nanosecond_value = 19;</code>
* @return Whether the tsNanosecondValue field is set.
* <code>int64 timestamp_nanosecond_value = 19;</code>
* @return Whether the timestampNanosecondValue field is set.
*/
public boolean hasTsNanosecondValue() {
public boolean hasTimestampNanosecondValue() {
return valueDataCase_ == 19;
}
/**
* <code>int64 ts_nanosecond_value = 19;</code>
* @return The tsNanosecondValue.
* <code>int64 timestamp_nanosecond_value = 19;</code>
* @return The timestampNanosecondValue.
*/
public long getTsNanosecondValue() {
public long getTimestampNanosecondValue() {
if (valueDataCase_ == 19) {
return (java.lang.Long) valueData_;
}
return 0L;
}
/**
* <code>int64 ts_nanosecond_value = 19;</code>
* @param value The tsNanosecondValue to set.
* <code>int64 timestamp_nanosecond_value = 19;</code>
* @param value The timestampNanosecondValue to set.
* @return This builder for chaining.
*/
public Builder setTsNanosecondValue(long value) {
public Builder setTimestampNanosecondValue(long value) {
valueDataCase_ = 19;
valueData_ = value;
onChanged();
return this;
}
/**
* <code>int64 ts_nanosecond_value = 19;</code>
* <code>int64 timestamp_nanosecond_value = 19;</code>
* @return This builder for chaining.
*/
public Builder clearTsNanosecondValue() {
public Builder clearTimestampNanosecondValue() {
if (valueDataCase_ == 19) {
valueDataCase_ = 0;
valueData_ = null;
@@ -6231,7 +6231,7 @@ public final class RowData {
"\0162\033.greptime.v1.ColumnDataType\0220\n\rsemant" +
"ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType" +
"\")\n\003Row\022\"\n\006values\030\001 \003(\0132\022.greptime.v1.Va" +
"lue\"\356\005\n\005Value\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16" +
"lue\"\212\006\n\005Value\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16" +
"_value\030\002 \001(\005H\000\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti" +
"64_value\030\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\t" +
"u16_value\030\006 \001(\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023" +
@@ -6239,20 +6239,20 @@ public final class RowData {
"\022\023\n\tf64_value\030\n \001(\001H\000\022\024\n\nbool_value\030\013 \001(" +
"\010H\000\022\026\n\014binary_value\030\014 \001(\014H\000\022\026\n\014string_va" +
"lue\030\r \001(\tH\000\022\024\n\ndate_value\030\016 \001(\005H\000\022\030\n\016dat" +
"etime_value\030\017 \001(\003H\000\022\031\n\017ts_second_value\030\020" +
" \001(\003H\000\022\036\n\024ts_millisecond_value\030\021 \001(\003H\000\022\036" +
"\n\024ts_microsecond_value\030\022 \001(\003H\000\022\035\n\023ts_nan" +
"osecond_value\030\023 \001(\003H\000\022\033\n\021time_second_val" +
"ue\030\024 \001(\003H\000\022 \n\026time_millisecond_value\030\025 \001" +
"(\003H\000\022 \n\026time_microsecond_value\030\026 \001(\003H\000\022\037" +
"\n\025time_nanosecond_value\030\027 \001(\003H\000\022$\n\032inter" +
"val_year_month_values\030\030 \001(\005H\000\022\"\n\030interva" +
"l_day_time_values\030\031 \001(\003H\000\022K\n\036interval_mo" +
"nth_day_nano_values\030\032 \001(\0132!.greptime.v1." +
"IntervalMonthDayNanoH\000B\014\n\nvalue_dataBP\n\016" +
"io.greptime.v1B\007RowDataZ5github.com/Grep" +
"timeTeam/greptime-proto/go/greptime/v1b\006" +
"proto3"
"etime_value\030\017 \001(\003H\000\022 \n\026timestamp_second_" +
"value\030\020 \001(\003H\000\022%\n\033timestamp_millisecond_v" +
"alue\030\021 \001(\003H\000\022%\n\033timestamp_microsecond_va" +
"lue\030\022 \001(\003H\000\022$\n\032timestamp_nanosecond_valu" +
"e\030\023 \001(\003H\000\022\033\n\021time_second_value\030\024 \001(\003H\000\022 " +
"\n\026time_millisecond_value\030\025 \001(\003H\000\022 \n\026time" +
"_microsecond_value\030\026 \001(\003H\000\022\037\n\025time_nanos" +
"econd_value\030\027 \001(\003H\000\022$\n\032interval_year_mon" +
"th_values\030\030 \001(\005H\000\022\"\n\030interval_day_time_v" +
"alues\030\031 \001(\003H\000\022K\n\036interval_month_day_nano" +
"_values\030\032 \001(\0132!.greptime.v1.IntervalMont" +
"hDayNanoH\000B\014\n\nvalue_dataBP\n\016io.greptime." +
"v1B\007RowDataZ5github.com/GreptimeTeam/gre" +
"ptime-proto/go/greptime/v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -6282,7 +6282,7 @@ public final class RowData {
internal_static_greptime_v1_Value_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_Value_descriptor,
new java.lang.String[] { "I8Value", "I16Value", "I32Value", "I64Value", "U8Value", "U16Value", "U32Value", "U64Value", "F32Value", "F64Value", "BoolValue", "BinaryValue", "StringValue", "DateValue", "DatetimeValue", "TsSecondValue", "TsMillisecondValue", "TsMicrosecondValue", "TsNanosecondValue", "TimeSecondValue", "TimeMillisecondValue", "TimeMicrosecondValue", "TimeNanosecondValue", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "ValueData", });
new java.lang.String[] { "I8Value", "I16Value", "I32Value", "I64Value", "U8Value", "U16Value", "U32Value", "U64Value", "F32Value", "F64Value", "BoolValue", "BinaryValue", "StringValue", "DateValue", "DatetimeValue", "TimestampSecondValue", "TimestampMillisecondValue", "TimestampMicrosecondValue", "TimestampNanosecondValue", "TimeSecondValue", "TimeMillisecondValue", "TimeMicrosecondValue", "TimeNanosecondValue", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "ValueData", });
io.greptime.v1.Common.getDescriptor();
}
@@ -7057,7 +7057,22 @@ public final class Server {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint64 region_id = 1;</code>
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
* @return Whether the header field is set.
*/
boolean hasHeader();
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
* @return The header.
*/
io.greptime.v1.region.Server.RegionRequestHeader getHeader();
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
*/
io.greptime.v1.region.Server.RegionRequestHeaderOrBuilder getHeaderOrBuilder();
/**
* <code>uint64 region_id = 2;</code>
* @return The regionId.
*/
long getRegionId();
@@ -7067,7 +7082,7 @@ public final class Server {
* substrait plan to query
* </pre>
*
* <code>bytes plan = 2;</code>
* <code>bytes plan = 3;</code>
* @return The plan.
*/
com.google.protobuf.ByteString getPlan();
@@ -7118,12 +7133,25 @@ public final class Server {
case 0:
done = true;
break;
case 8: {
case 10: {
io.greptime.v1.region.Server.RegionRequestHeader.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(io.greptime.v1.region.Server.RegionRequestHeader.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
case 16: {
regionId_ = input.readUInt64();
break;
}
case 18: {
case 26: {
plan_ = input.readBytes();
break;
@@ -7162,10 +7190,36 @@ public final class Server {
io.greptime.v1.region.Server.QueryRequest.class, io.greptime.v1.region.Server.QueryRequest.Builder.class);
}
public static final int REGION_ID_FIELD_NUMBER = 1;
public static final int HEADER_FIELD_NUMBER = 1;
private io.greptime.v1.region.Server.RegionRequestHeader header_;
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
* @return Whether the header field is set.
*/
@java.lang.Override
public boolean hasHeader() {
return header_ != null;
}
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
* @return The header.
*/
@java.lang.Override
public io.greptime.v1.region.Server.RegionRequestHeader getHeader() {
return header_ == null ? io.greptime.v1.region.Server.RegionRequestHeader.getDefaultInstance() : header_;
}
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
*/
@java.lang.Override
public io.greptime.v1.region.Server.RegionRequestHeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int REGION_ID_FIELD_NUMBER = 2;
private long regionId_;
/**
* <code>uint64 region_id = 1;</code>
* <code>uint64 region_id = 2;</code>
* @return The regionId.
*/
@java.lang.Override
@@ -7173,14 +7227,14 @@ public final class Server {
return regionId_;
}
public static final int PLAN_FIELD_NUMBER = 2;
public static final int PLAN_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString plan_;
/**
* <pre>
* substrait plan to query
* </pre>
*
* <code>bytes plan = 2;</code>
* <code>bytes plan = 3;</code>
* @return The plan.
*/
@java.lang.Override
@@ -7202,11 +7256,14 @@ public final class Server {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (header_ != null) {
output.writeMessage(1, getHeader());
}
if (regionId_ != 0L) {
output.writeUInt64(1, regionId_);
output.writeUInt64(2, regionId_);
}
if (!plan_.isEmpty()) {
output.writeBytes(2, plan_);
output.writeBytes(3, plan_);
}
unknownFields.writeTo(output);
}
@@ -7217,13 +7274,17 @@ public final class Server {
if (size != -1) return size;
size = 0;
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (regionId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, regionId_);
.computeUInt64Size(2, regionId_);
}
if (!plan_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, plan_);
.computeBytesSize(3, plan_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -7240,6 +7301,11 @@ public final class Server {
}
io.greptime.v1.region.Server.QueryRequest other = (io.greptime.v1.region.Server.QueryRequest) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (getRegionId()
!= other.getRegionId()) return false;
if (!getPlan()
@@ -7255,6 +7321,10 @@ public final class Server {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
hash = (37 * hash) + REGION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRegionId());
@@ -7393,6 +7463,12 @@ public final class Server {
@java.lang.Override
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
regionId_ = 0L;
plan_ = com.google.protobuf.ByteString.EMPTY;
@@ -7423,6 +7499,11 @@ public final class Server {
@java.lang.Override
public io.greptime.v1.region.Server.QueryRequest buildPartial() {
io.greptime.v1.region.Server.QueryRequest result = new io.greptime.v1.region.Server.QueryRequest(this);
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
result.regionId_ = regionId_;
result.plan_ = plan_;
onBuilt();
@@ -7473,6 +7554,9 @@ public final class Server {
public Builder mergeFrom(io.greptime.v1.region.Server.QueryRequest other) {
if (other == io.greptime.v1.region.Server.QueryRequest.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.getRegionId() != 0L) {
setRegionId(other.getRegionId());
}
@@ -7508,9 +7592,128 @@ public final class Server {
return this;
}
private io.greptime.v1.region.Server.RegionRequestHeader header_;
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.region.Server.RegionRequestHeader, io.greptime.v1.region.Server.RegionRequestHeader.Builder, io.greptime.v1.region.Server.RegionRequestHeaderOrBuilder> headerBuilder_;
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
* @return The header.
*/
public io.greptime.v1.region.Server.RegionRequestHeader getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? io.greptime.v1.region.Server.RegionRequestHeader.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
*/
public Builder setHeader(io.greptime.v1.region.Server.RegionRequestHeader value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
*/
public Builder setHeader(
io.greptime.v1.region.Server.RegionRequestHeader.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
*/
public Builder mergeHeader(io.greptime.v1.region.Server.RegionRequestHeader value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
io.greptime.v1.region.Server.RegionRequestHeader.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
*/
public io.greptime.v1.region.Server.RegionRequestHeader.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
*/
public io.greptime.v1.region.Server.RegionRequestHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
io.greptime.v1.region.Server.RegionRequestHeader.getDefaultInstance() : header_;
}
}
/**
* <code>.greptime.v1.region.RegionRequestHeader header = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.region.Server.RegionRequestHeader, io.greptime.v1.region.Server.RegionRequestHeader.Builder, io.greptime.v1.region.Server.RegionRequestHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.region.Server.RegionRequestHeader, io.greptime.v1.region.Server.RegionRequestHeader.Builder, io.greptime.v1.region.Server.RegionRequestHeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private long regionId_ ;
/**
* <code>uint64 region_id = 1;</code>
* <code>uint64 region_id = 2;</code>
* @return The regionId.
*/
@java.lang.Override
@@ -7518,7 +7721,7 @@ public final class Server {
return regionId_;
}
/**
* <code>uint64 region_id = 1;</code>
* <code>uint64 region_id = 2;</code>
* @param value The regionId to set.
* @return This builder for chaining.
*/
@@ -7529,7 +7732,7 @@ public final class Server {
return this;
}
/**
* <code>uint64 region_id = 1;</code>
* <code>uint64 region_id = 2;</code>
* @return This builder for chaining.
*/
public Builder clearRegionId() {
@@ -7545,7 +7748,7 @@ public final class Server {
* substrait plan to query
* </pre>
*
* <code>bytes plan = 2;</code>
* <code>bytes plan = 3;</code>
* @return The plan.
*/
@java.lang.Override
@@ -7557,7 +7760,7 @@ public final class Server {
* substrait plan to query
* </pre>
*
* <code>bytes plan = 2;</code>
* <code>bytes plan = 3;</code>
* @param value The plan to set.
* @return This builder for chaining.
*/
@@ -7575,7 +7778,7 @@ public final class Server {
* substrait plan to query
* </pre>
*
* <code>bytes plan = 2;</code>
* <code>bytes plan = 3;</code>
* @return This builder for chaining.
*/
public Builder clearPlan() {
@@ -17442,9 +17645,10 @@ java.lang.String defaultValue);
}
/**
* <pre>
* The column definition of a region. Unlike the message `ColumnDef` in `ddl.proto` which is for clients outside
* GreptimeDB, this `RegionColumnDef` is for region requests use only. So it carries an extra field `column_id` that
* is known internally.
* The column definition of a region. Unlike the message `ColumnDef` in
* `ddl.proto` which is for clients outside GreptimeDB, this `RegionColumnDef`
* is for region requests use only. So it carries an extra field `column_id`
* that is known internally.
* </pre>
*
* Protobuf type {@code greptime.v1.region.RegionColumnDef}
@@ -17753,9 +17957,10 @@ java.lang.String defaultValue);
}
/**
* <pre>
* The column definition of a region. Unlike the message `ColumnDef` in `ddl.proto` which is for clients outside
* GreptimeDB, this `RegionColumnDef` is for region requests use only. So it carries an extra field `column_id` that
* is known internally.
* The column definition of a region. Unlike the message `ColumnDef` in
* `ddl.proto` which is for clients outside GreptimeDB, this `RegionColumnDef`
* is for region requests use only. So it carries an extra field `column_id`
* that is known internally.
* </pre>
*
* Protobuf type {@code greptime.v1.region.RegionColumnDef}
@@ -18266,43 +18471,44 @@ java.lang.String defaultValue);
"est\"C\n\rInsertRequest\022\021\n\tregion_id\030\001 \001(\004\022" +
"\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"C\n\rDele" +
"teRequest\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001" +
"(\0132\021.greptime.v1.Rows\"/\n\014QueryRequest\022\021\n" +
"\tregion_id\030\001 \001(\004\022\014\n\004plan\030\002 \001(\014\"\261\002\n\rCreat" +
"eRequest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 " +
"\001(\t\0228\n\013column_defs\030\003 \003(\0132#.greptime.v1.r" +
"egion.RegionColumnDef\022\023\n\013primary_key\030\004 \003" +
"(\r\022\034\n\024create_if_not_exists\030\005 \001(\010\022\017\n\007cata" +
"log\030\006 \001(\t\022\016\n\006schema\030\007 \001(\t\022?\n\007options\030\010 \003" +
"(\0132..greptime.v1.region.CreateRequest.Op" +
"tionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022" +
"\r\n\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022\021\n\treg" +
"ion_id\030\001 \001(\004\"\300\001\n\013OpenRequest\022\021\n\tregion_i" +
"d\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\017\n\007catalog\030\003 \001(\t" +
"\022\016\n\006schema\030\004 \001(\t\022=\n\007options\030\005 \003(\0132,.grep" +
"time.v1.region.OpenRequest.OptionsEntry\032" +
".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " +
"\001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001" +
"(\004\"\261\001\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\0225" +
"\n\013add_columns\030\002 \001(\0132\036.greptime.v1.region" +
".AddColumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037.gr" +
"eptime.v1.region.DropColumnsH\000\022\026\n\016schema" +
"_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013" +
"add_columns\030\001 \003(\0132\035.greptime.v1.region.A" +
"ddColumn\"C\n\013DropColumns\0224\n\014drop_columns\030" +
"\001 \003(\0132\036.greptime.v1.region.DropColumn\"v\n" +
"\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132#.greptim" +
"e.v1.region.RegionColumnDef\0220\n\010location\030" +
"\003 \001(\0132\036.greptime.v1.AddColumnLocation\"\032\n" +
"\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushReques" +
"t\022\021\n\tregion_id\030\001 \001(\004\"#\n\016CompactRequest\022\021" +
"\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\n" +
"column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef" +
"\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022" +
"!.greptime.v1.region.RegionRequest\032\".gre" +
"ptime.v1.region.RegionResponseB]\n\025io.gre" +
"ptime.v1.regionB\006ServerZ<github.com/Grep" +
"timeTeam/greptime-proto/go/greptime/v1/r" +
"egionb\006proto3"
"(\0132\021.greptime.v1.Rows\"h\n\014QueryRequest\0227\n" +
"\006header\030\001 \001(\0132\'.greptime.v1.region.Regio" +
"nRequestHeader\022\021\n\tregion_id\030\002 \001(\004\022\014\n\004pla" +
"n\030\003 \001(\014\"\261\002\n\rCreateRequest\022\021\n\tregion_id\030\001" +
" \001(\004\022\016\n\006engine\030\002 \001(\t\0228\n\013column_defs\030\003 \003(" +
"\0132#.greptime.v1.region.RegionColumnDef\022\023" +
"\n\013primary_key\030\004 \003(\r\022\034\n\024create_if_not_exi" +
"sts\030\005 \001(\010\022\017\n\007catalog\030\006 \001(\t\022\016\n\006schema\030\007 \001" +
"(\t\022?\n\007options\030\010 \003(\0132..greptime.v1.region" +
".CreateRequest.OptionsEntry\032.\n\014OptionsEn" +
"try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013D" +
"ropRequest\022\021\n\tregion_id\030\001 \001(\004\"\300\001\n\013OpenRe" +
"quest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t" +
"\022\017\n\007catalog\030\003 \001(\t\022\016\n\006schema\030\004 \001(\t\022=\n\007opt" +
"ions\030\005 \003(\0132,.greptime.v1.region.OpenRequ" +
"est.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030" +
"\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest" +
"\022\021\n\tregion_id\030\001 \001(\004\"\261\001\n\014AlterRequest\022\021\n\t" +
"region_id\030\001 \001(\004\0225\n\013add_columns\030\002 \001(\0132\036.g" +
"reptime.v1.region.AddColumnsH\000\0227\n\014drop_c" +
"olumns\030\003 \001(\0132\037.greptime.v1.region.DropCo" +
"lumnsH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\"" +
"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(\0132\035.gre" +
"ptime.v1.region.AddColumn\"C\n\013DropColumns" +
"\0224\n\014drop_columns\030\001 \003(\0132\036.greptime.v1.reg" +
"ion.DropColumn\"v\n\tAddColumn\0227\n\ncolumn_de" +
"f\030\001 \001(\0132#.greptime.v1.region.RegionColum" +
"nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add" +
"ColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001" +
"(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"#\n" +
"\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017Re" +
"gionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.grep" +
"time.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006" +
"Region\022O\n\006Handle\022!.greptime.v1.region.Re" +
"gionRequest\032\".greptime.v1.region.RegionR" +
"esponseB]\n\025io.greptime.v1.regionB\006Server" +
"Z<github.com/GreptimeTeam/greptime-proto" +
"/go/greptime/v1/regionb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -18358,7 +18564,7 @@ java.lang.String defaultValue);
internal_static_greptime_v1_region_QueryRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_region_QueryRequest_descriptor,
new java.lang.String[] { "RegionId", "Plan", });
new java.lang.String[] { "Header", "RegionId", "Plan", });
internal_static_greptime_v1_region_CreateRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_greptime_v1_region_CreateRequest_fieldAccessorTable = new
+4 -4
View File
@@ -46,10 +46,10 @@ message Column {
repeated int32 date_values = 14;
repeated int64 datetime_values = 15;
repeated int64 ts_second_values = 16;
repeated int64 ts_millisecond_values = 17;
repeated int64 ts_microsecond_values = 18;
repeated int64 ts_nanosecond_values = 19;
repeated int64 timestamp_second_values = 16;
repeated int64 timestamp_millisecond_values = 17;
repeated int64 timestamp_microsecond_values = 18;
repeated int64 timestamp_nanosecond_values = 19;
repeated int64 time_second_values = 20;
repeated int64 time_millisecond_values = 21;
repeated int64 time_microsecond_values = 22;
+4 -24
View File
@@ -57,9 +57,7 @@ message QueryRequest {
}
}
message InsertRequests {
repeated InsertRequest inserts = 1;
}
message InsertRequests { repeated InsertRequest inserts = 1; }
message InsertRequest {
string table_name = 1;
@@ -71,23 +69,15 @@ message InsertRequest {
//
// Note: the row_count of all columns in a InsertRequest must be same.
uint32 row_count = 4;
// The region number of current insert request.
uint32 region_number = 5;
}
message DeleteRequests {
repeated DeleteRequest deletes = 1;
}
message DeleteRequests { repeated DeleteRequest deletes = 1; }
message DeleteRequest {
// The table name to delete from. Catalog name and schema name are in the
// `RequestHeader`.
string table_name = 1;
// The region number of current delete request.
uint32 region_number = 2;
// The data to delete, indexed by key columns.
repeated Column key_columns = 3;
@@ -95,23 +85,16 @@ message DeleteRequest {
uint32 row_count = 4;
}
message RowInsertRequests {
repeated RowInsertRequest inserts = 1;
}
message RowInsertRequests { repeated RowInsertRequest inserts = 1; }
message RowInsertRequest {
string table_name = 1;
// Data is represented here.
Rows rows = 2;
// The region number of current insert request.
uint32 region_number = 3;
}
message RowDeleteRequests {
repeated RowDeleteRequest deletes = 1;
}
message RowDeleteRequests { repeated RowDeleteRequest deletes = 1; }
message RowDeleteRequest {
// The table name to delete from. Catalog name and schema name are in the
@@ -120,7 +103,4 @@ message RowDeleteRequest {
// The data to delete.
Rows rows = 2;
// The region number of current delete request.
uint32 region_number = 3;
}
-1
View File
@@ -47,7 +47,6 @@ message CreateTableExpr {
bool create_if_not_exists = 8;
map<string, string> table_options = 9;
TableId table_id = 10;
repeated uint32 region_numbers = 11;
string engine = 12;
}
+10 -14
View File
@@ -69,9 +69,10 @@ message DeleteRequest {
}
message QueryRequest {
uint64 region_id = 1;
RegionRequestHeader header = 1;
uint64 region_id = 2;
// substrait plan to query
bytes plan = 2;
bytes plan = 3;
}
message CreateRequest {
@@ -121,30 +122,25 @@ message AlterRequest {
uint64 schema_version = 4;
}
message AddColumns {
repeated AddColumn add_columns = 1;
}
message AddColumns { repeated AddColumn add_columns = 1; }
message DropColumns {
repeated DropColumn drop_columns = 1;
}
message DropColumns { repeated DropColumn drop_columns = 1; }
message AddColumn {
RegionColumnDef column_def = 1;
AddColumnLocation location = 3;
}
message DropColumn {
string name = 1;
}
message DropColumn { string name = 1; }
message FlushRequest { uint64 region_id = 1; }
message CompactRequest { uint64 region_id = 1; }
// The column definition of a region. Unlike the message `ColumnDef` in `ddl.proto` which is for clients outside
// GreptimeDB, this `RegionColumnDef` is for region requests use only. So it carries an extra field `column_id` that
// is known internally.
// The column definition of a region. Unlike the message `ColumnDef` in
// `ddl.proto` which is for clients outside GreptimeDB, this `RegionColumnDef`
// is for region requests use only. So it carries an extra field `column_id`
// that is known internally.
message RegionColumnDef {
ColumnDef column_def = 1;
uint32 column_id = 2;
+5 -7
View File
@@ -33,9 +33,7 @@ message ColumnSchema {
SemanticType semantic_type = 3;
}
message Row {
repeated Value values = 1;
}
message Row { repeated Value values = 1; }
message Value {
oneof value_data {
@@ -58,10 +56,10 @@ message Value {
int32 date_value = 14;
int64 datetime_value = 15;
int64 ts_second_value = 16;
int64 ts_millisecond_value = 17;
int64 ts_microsecond_value = 18;
int64 ts_nanosecond_value = 19;
int64 timestamp_second_value = 16;
int64 timestamp_millisecond_value = 17;
int64 timestamp_microsecond_value = 18;
int64 timestamp_nanosecond_value = 19;
int64 time_second_value = 20;
int64 time_millisecond_value = 21;
int64 time_microsecond_value = 22;