feat: distributed alter table in region server (#97)

* feat: alter region request
This commit is contained in:
LFC
2023-09-04 18:58:35 +08:00
committed by GitHub
parent b585955dbb
commit 1969b5d610
14 changed files with 10367 additions and 5386 deletions
+22 -368
View File
@@ -134,22 +134,6 @@ struct FlightMetadataDefaultTypeInternal {
}; };
}; };
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlightMetadataDefaultTypeInternal _FlightMetadata_default_instance_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlightMetadataDefaultTypeInternal _FlightMetadata_default_instance_;
PROTOBUF_CONSTEXPR ColumnDef::ColumnDef(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.default_constraint_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.datatype_)*/0
, /*decltype(_impl_.is_nullable_)*/false
, /*decltype(_impl_._cached_size_)*/{}} {}
struct ColumnDefDefaultTypeInternal {
PROTOBUF_CONSTEXPR ColumnDefDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~ColumnDefDefaultTypeInternal() {}
union {
ColumnDef _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnDefDefaultTypeInternal _ColumnDef_default_instance_;
PROTOBUF_CONSTEXPR IntervalMonthDayNano::IntervalMonthDayNano( PROTOBUF_CONSTEXPR IntervalMonthDayNano::IntervalMonthDayNano(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.months_)*/0 /*decltype(_impl_.months_)*/0
@@ -167,7 +151,7 @@ struct IntervalMonthDayNanoDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_;
} // namespace v1 } // namespace v1
} // namespace greptime } // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[10]; static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[9];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr;
@@ -238,16 +222,6 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
~0u, // no _inlined_string_donated_ ~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::FlightMetadata, _impl_.affected_rows_), PROTOBUF_FIELD_OFFSET(::greptime::v1::FlightMetadata, _impl_.affected_rows_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.datatype_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.is_nullable_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.default_constraint_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
@@ -266,8 +240,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 44, -1, -1, sizeof(::greptime::v1::Token)}, { 44, -1, -1, sizeof(::greptime::v1::Token)},
{ 51, -1, -1, sizeof(::greptime::v1::AffectedRows)}, { 51, -1, -1, sizeof(::greptime::v1::AffectedRows)},
{ 58, -1, -1, sizeof(::greptime::v1::FlightMetadata)}, { 58, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
{ 65, -1, -1, sizeof(::greptime::v1::ColumnDef)}, { 65, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
{ 75, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
}; };
static const ::_pb::Message* const file_default_instances[] = { static const ::_pb::Message* const file_default_instances[] = {
@@ -279,7 +252,6 @@ static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::_Token_default_instance_._instance, &::greptime::v1::_Token_default_instance_._instance,
&::greptime::v1::_AffectedRows_default_instance_._instance, &::greptime::v1::_AffectedRows_default_instance_._instance,
&::greptime::v1::_FlightMetadata_default_instance_._instance, &::greptime::v1::_FlightMetadata_default_instance_._instance,
&::greptime::v1::_ColumnDef_default_instance_._instance,
&::greptime::v1::_IntervalMonthDayNano_default_instance_._instance, &::greptime::v1::_IntervalMonthDayNano_default_instance_._instance,
}; };
@@ -298,32 +270,29 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S
"\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows" "\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows"
"\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raff" "\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raff"
"ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR" "ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR"
"ows\"y\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022-\n\010dataty" "ows\"I\n\024IntervalMonthDayNano\022\016\n\006months\030\001 "
"pe\030\002 \001(\0162\033.greptime.v1.ColumnDataType\022\023\n" "\001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003*1"
"\013is_nullable\030\003 \001(\010\022\032\n\022default_constraint" "\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTI"
"\030\004 \001(\014\"I\n\024IntervalMonthDayNano\022\016\n\006months" "MESTAMP\020\002*\306\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020"
"\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(" "\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT"
"\003*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n" "64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022"
"\tTIMESTAMP\020\002*\306\003\n\016ColumnDataType\022\013\n\007BOOLE" "\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n"
"AN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005" "\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATET"
"INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32" "IME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP"
"\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n" "_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020"
"\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DA" "\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_SECO"
"TETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMEST" "ND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MICRO"
"AMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECO" "SECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVA"
"ND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_S" "L_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n"
"ECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MI" "\027INTERVAL_MONTH_DAY_NANO\020\031BO\n\016io.greptim"
"CROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTE" "e.v1B\006CommonZ5github.com/GreptimeTeam/gr"
"RVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030" "eptime-proto/go/greptime/v1b\006proto3"
"\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031BO\n\016io.grep"
"time.v1B\006CommonZ5github.com/GreptimeTeam"
"/greptime-proto/go/greptime/v1b\006proto3"
; ;
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = { const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = {
false, false, 1358, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, false, false, 1235, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
"greptime/v1/common.proto", "greptime/v1/common.proto",
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 10, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 9,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fcommon_2eproto::offsets, schemas, file_default_instances, TableStruct_greptime_2fv1_2fcommon_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto, file_level_metadata_greptime_2fv1_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto,
file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto, file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto,
@@ -2351,317 +2320,6 @@ void FlightMetadata::InternalSwap(FlightMetadata* other) {
// =================================================================== // ===================================================================
class ColumnDef::_Internal {
public:
};
ColumnDef::ColumnDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:greptime.v1.ColumnDef)
}
ColumnDef::ColumnDef(const ColumnDef& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
ColumnDef* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.name_){}
, decltype(_impl_.default_constraint_){}
, decltype(_impl_.datatype_){}
, decltype(_impl_.is_nullable_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_name().empty()) {
_this->_impl_.name_.Set(from._internal_name(),
_this->GetArenaForAllocation());
}
_impl_.default_constraint_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.default_constraint_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_default_constraint().empty()) {
_this->_impl_.default_constraint_.Set(from._internal_default_constraint(),
_this->GetArenaForAllocation());
}
::memcpy(&_impl_.datatype_, &from._impl_.datatype_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_nullable_) -
reinterpret_cast<char*>(&_impl_.datatype_)) + sizeof(_impl_.is_nullable_));
// @@protoc_insertion_point(copy_constructor:greptime.v1.ColumnDef)
}
inline void ColumnDef::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.name_){}
, decltype(_impl_.default_constraint_){}
, decltype(_impl_.datatype_){0}
, decltype(_impl_.is_nullable_){false}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.default_constraint_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.default_constraint_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
ColumnDef::~ColumnDef() {
// @@protoc_insertion_point(destructor:greptime.v1.ColumnDef)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void ColumnDef::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.name_.Destroy();
_impl_.default_constraint_.Destroy();
}
void ColumnDef::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void ColumnDef::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.ColumnDef)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.name_.ClearToEmpty();
_impl_.default_constraint_.ClearToEmpty();
::memset(&_impl_.datatype_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.is_nullable_) -
reinterpret_cast<char*>(&_impl_.datatype_)) + sizeof(_impl_.is_nullable_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* ColumnDef::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// string name = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_name();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ColumnDef.name"));
} else
goto handle_unusual;
continue;
// .greptime.v1.ColumnDataType datatype = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
_internal_set_datatype(static_cast<::greptime::v1::ColumnDataType>(val));
} else
goto handle_unusual;
continue;
// bool is_nullable = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
_impl_.is_nullable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// bytes default_constraint = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
auto str = _internal_mutable_default_constraint();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* ColumnDef::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ColumnDef)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// string name = 1;
if (!this->_internal_name().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.ColumnDef.name");
target = stream->WriteStringMaybeAliased(
1, this->_internal_name(), target);
}
// .greptime.v1.ColumnDataType datatype = 2;
if (this->_internal_datatype() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this->_internal_datatype(), target);
}
// bool is_nullable = 3;
if (this->_internal_is_nullable() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_nullable(), target);
}
// bytes default_constraint = 4;
if (!this->_internal_default_constraint().empty()) {
target = stream->WriteBytesMaybeAliased(
4, this->_internal_default_constraint(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ColumnDef)
return target;
}
size_t ColumnDef::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ColumnDef)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string name = 1;
if (!this->_internal_name().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_name());
}
// bytes default_constraint = 4;
if (!this->_internal_default_constraint().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
this->_internal_default_constraint());
}
// .greptime.v1.ColumnDataType datatype = 2;
if (this->_internal_datatype() != 0) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this->_internal_datatype());
}
// bool is_nullable = 3;
if (this->_internal_is_nullable() != 0) {
total_size += 1 + 1;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ColumnDef::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
ColumnDef::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ColumnDef::GetClassData() const { return &_class_data_; }
void ColumnDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<ColumnDef*>(&to_msg);
auto& from = static_cast<const ColumnDef&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.ColumnDef)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_name().empty()) {
_this->_internal_set_name(from._internal_name());
}
if (!from._internal_default_constraint().empty()) {
_this->_internal_set_default_constraint(from._internal_default_constraint());
}
if (from._internal_datatype() != 0) {
_this->_internal_set_datatype(from._internal_datatype());
}
if (from._internal_is_nullable() != 0) {
_this->_internal_set_is_nullable(from._internal_is_nullable());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void ColumnDef::CopyFrom(const ColumnDef& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ColumnDef)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ColumnDef::IsInitialized() const {
return true;
}
void ColumnDef::InternalSwap(ColumnDef* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.name_, lhs_arena,
&other->_impl_.name_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.default_constraint_, lhs_arena,
&other->_impl_.default_constraint_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.is_nullable_)
+ sizeof(ColumnDef::_impl_.is_nullable_)
- PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.datatype_)>(
reinterpret_cast<char*>(&_impl_.datatype_),
reinterpret_cast<char*>(&other->_impl_.datatype_));
}
::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[8]);
}
// ===================================================================
class IntervalMonthDayNano::_Internal { class IntervalMonthDayNano::_Internal {
public: public:
}; };
@@ -2892,7 +2550,7 @@ void IntervalMonthDayNano::InternalSwap(IntervalMonthDayNano* other) {
::PROTOBUF_NAMESPACE_ID::Metadata IntervalMonthDayNano::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata IntervalMonthDayNano::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[9]); file_level_metadata_greptime_2fv1_2fcommon_2eproto[8]);
} }
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -2931,10 +2589,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::FlightMetadata*
Arena::CreateMaybeMessage< ::greptime::v1::FlightMetadata >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::FlightMetadata >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::FlightMetadata >(arena); return Arena::CreateMessageInternal< ::greptime::v1::FlightMetadata >(arena);
} }
template<> PROTOBUF_NOINLINE ::greptime::v1::ColumnDef*
Arena::CreateMaybeMessage< ::greptime::v1::ColumnDef >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::ColumnDef >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::IntervalMonthDayNano* template<> PROTOBUF_NOINLINE ::greptime::v1::IntervalMonthDayNano*
Arena::CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::IntervalMonthDayNano >(arena); return Arena::CreateMessageInternal< ::greptime::v1::IntervalMonthDayNano >(arena);
+1 -342
View File
@@ -56,9 +56,6 @@ extern AuthHeaderDefaultTypeInternal _AuthHeader_default_instance_;
class Basic; class Basic;
struct BasicDefaultTypeInternal; struct BasicDefaultTypeInternal;
extern BasicDefaultTypeInternal _Basic_default_instance_; extern BasicDefaultTypeInternal _Basic_default_instance_;
class ColumnDef;
struct ColumnDefDefaultTypeInternal;
extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_;
class FlightMetadata; class FlightMetadata;
struct FlightMetadataDefaultTypeInternal; struct FlightMetadataDefaultTypeInternal;
extern FlightMetadataDefaultTypeInternal _FlightMetadata_default_instance_; extern FlightMetadataDefaultTypeInternal _FlightMetadata_default_instance_;
@@ -83,7 +80,6 @@ PROTOBUF_NAMESPACE_OPEN
template<> ::greptime::v1::AffectedRows* Arena::CreateMaybeMessage<::greptime::v1::AffectedRows>(Arena*); template<> ::greptime::v1::AffectedRows* Arena::CreateMaybeMessage<::greptime::v1::AffectedRows>(Arena*);
template<> ::greptime::v1::AuthHeader* Arena::CreateMaybeMessage<::greptime::v1::AuthHeader>(Arena*); template<> ::greptime::v1::AuthHeader* Arena::CreateMaybeMessage<::greptime::v1::AuthHeader>(Arena*);
template<> ::greptime::v1::Basic* Arena::CreateMaybeMessage<::greptime::v1::Basic>(Arena*); template<> ::greptime::v1::Basic* Arena::CreateMaybeMessage<::greptime::v1::Basic>(Arena*);
template<> ::greptime::v1::ColumnDef* Arena::CreateMaybeMessage<::greptime::v1::ColumnDef>(Arena*);
template<> ::greptime::v1::FlightMetadata* Arena::CreateMaybeMessage<::greptime::v1::FlightMetadata>(Arena*); template<> ::greptime::v1::FlightMetadata* Arena::CreateMaybeMessage<::greptime::v1::FlightMetadata>(Arena*);
template<> ::greptime::v1::IntervalMonthDayNano* Arena::CreateMaybeMessage<::greptime::v1::IntervalMonthDayNano>(Arena*); template<> ::greptime::v1::IntervalMonthDayNano* Arena::CreateMaybeMessage<::greptime::v1::IntervalMonthDayNano>(Arena*);
template<> ::greptime::v1::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader>(Arena*); template<> ::greptime::v1::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader>(Arena*);
@@ -1542,197 +1538,6 @@ class FlightMetadata final :
}; };
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class ColumnDef final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ColumnDef) */ {
public:
inline ColumnDef() : ColumnDef(nullptr) {}
~ColumnDef() override;
explicit PROTOBUF_CONSTEXPR ColumnDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ColumnDef(const ColumnDef& from);
ColumnDef(ColumnDef&& from) noexcept
: ColumnDef() {
*this = ::std::move(from);
}
inline ColumnDef& operator=(const ColumnDef& from) {
CopyFrom(from);
return *this;
}
inline ColumnDef& operator=(ColumnDef&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ColumnDef& default_instance() {
return *internal_default_instance();
}
static inline const ColumnDef* internal_default_instance() {
return reinterpret_cast<const ColumnDef*>(
&_ColumnDef_default_instance_);
}
static constexpr int kIndexInFileMessages =
8;
friend void swap(ColumnDef& a, ColumnDef& b) {
a.Swap(&b);
}
inline void Swap(ColumnDef* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ColumnDef* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ColumnDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ColumnDef>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ColumnDef& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const ColumnDef& from) {
ColumnDef::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ColumnDef* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.ColumnDef";
}
protected:
explicit ColumnDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kNameFieldNumber = 1,
kDefaultConstraintFieldNumber = 4,
kDatatypeFieldNumber = 2,
kIsNullableFieldNumber = 3,
};
// string name = 1;
void clear_name();
const std::string& name() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_name(ArgT0&& arg0, ArgT... args);
std::string* mutable_name();
PROTOBUF_NODISCARD std::string* release_name();
void set_allocated_name(std::string* name);
private:
const std::string& _internal_name() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
std::string* _internal_mutable_name();
public:
// bytes default_constraint = 4;
void clear_default_constraint();
const std::string& default_constraint() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_default_constraint(ArgT0&& arg0, ArgT... args);
std::string* mutable_default_constraint();
PROTOBUF_NODISCARD std::string* release_default_constraint();
void set_allocated_default_constraint(std::string* default_constraint);
private:
const std::string& _internal_default_constraint() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_constraint(const std::string& value);
std::string* _internal_mutable_default_constraint();
public:
// .greptime.v1.ColumnDataType datatype = 2;
void clear_datatype();
::greptime::v1::ColumnDataType datatype() const;
void set_datatype(::greptime::v1::ColumnDataType value);
private:
::greptime::v1::ColumnDataType _internal_datatype() const;
void _internal_set_datatype(::greptime::v1::ColumnDataType value);
public:
// bool is_nullable = 3;
void clear_is_nullable();
bool is_nullable() const;
void set_is_nullable(bool value);
private:
bool _internal_is_nullable() const;
void _internal_set_is_nullable(bool value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.ColumnDef)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_constraint_;
int datatype_;
bool is_nullable_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------
class IntervalMonthDayNano final : class IntervalMonthDayNano final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.IntervalMonthDayNano) */ { public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.IntervalMonthDayNano) */ {
public: public:
@@ -1781,7 +1586,7 @@ class IntervalMonthDayNano final :
&_IntervalMonthDayNano_default_instance_); &_IntervalMonthDayNano_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
9; 8;
friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) { friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) {
a.Swap(&b); a.Swap(&b);
@@ -2799,150 +2604,6 @@ inline void FlightMetadata::set_allocated_affected_rows(::greptime::v1::Affected
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// ColumnDef
// string name = 1;
inline void ColumnDef::clear_name() {
_impl_.name_.ClearToEmpty();
}
inline const std::string& ColumnDef::name() const {
// @@protoc_insertion_point(field_get:greptime.v1.ColumnDef.name)
return _internal_name();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void ColumnDef::set_name(ArgT0&& arg0, ArgT... args) {
_impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.ColumnDef.name)
}
inline std::string* ColumnDef::mutable_name() {
std::string* _s = _internal_mutable_name();
// @@protoc_insertion_point(field_mutable:greptime.v1.ColumnDef.name)
return _s;
}
inline const std::string& ColumnDef::_internal_name() const {
return _impl_.name_.Get();
}
inline void ColumnDef::_internal_set_name(const std::string& value) {
_impl_.name_.Set(value, GetArenaForAllocation());
}
inline std::string* ColumnDef::_internal_mutable_name() {
return _impl_.name_.Mutable(GetArenaForAllocation());
}
inline std::string* ColumnDef::release_name() {
// @@protoc_insertion_point(field_release:greptime.v1.ColumnDef.name)
return _impl_.name_.Release();
}
inline void ColumnDef::set_allocated_name(std::string* name) {
if (name != nullptr) {
} else {
}
_impl_.name_.SetAllocated(name, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.name_.IsDefault()) {
_impl_.name_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDef.name)
}
// .greptime.v1.ColumnDataType datatype = 2;
inline void ColumnDef::clear_datatype() {
_impl_.datatype_ = 0;
}
inline ::greptime::v1::ColumnDataType ColumnDef::_internal_datatype() const {
return static_cast< ::greptime::v1::ColumnDataType >(_impl_.datatype_);
}
inline ::greptime::v1::ColumnDataType ColumnDef::datatype() const {
// @@protoc_insertion_point(field_get:greptime.v1.ColumnDef.datatype)
return _internal_datatype();
}
inline void ColumnDef::_internal_set_datatype(::greptime::v1::ColumnDataType value) {
_impl_.datatype_ = value;
}
inline void ColumnDef::set_datatype(::greptime::v1::ColumnDataType value) {
_internal_set_datatype(value);
// @@protoc_insertion_point(field_set:greptime.v1.ColumnDef.datatype)
}
// bool is_nullable = 3;
inline void ColumnDef::clear_is_nullable() {
_impl_.is_nullable_ = false;
}
inline bool ColumnDef::_internal_is_nullable() const {
return _impl_.is_nullable_;
}
inline bool ColumnDef::is_nullable() const {
// @@protoc_insertion_point(field_get:greptime.v1.ColumnDef.is_nullable)
return _internal_is_nullable();
}
inline void ColumnDef::_internal_set_is_nullable(bool value) {
_impl_.is_nullable_ = value;
}
inline void ColumnDef::set_is_nullable(bool value) {
_internal_set_is_nullable(value);
// @@protoc_insertion_point(field_set:greptime.v1.ColumnDef.is_nullable)
}
// bytes default_constraint = 4;
inline void ColumnDef::clear_default_constraint() {
_impl_.default_constraint_.ClearToEmpty();
}
inline const std::string& ColumnDef::default_constraint() const {
// @@protoc_insertion_point(field_get:greptime.v1.ColumnDef.default_constraint)
return _internal_default_constraint();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void ColumnDef::set_default_constraint(ArgT0&& arg0, ArgT... args) {
_impl_.default_constraint_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.ColumnDef.default_constraint)
}
inline std::string* ColumnDef::mutable_default_constraint() {
std::string* _s = _internal_mutable_default_constraint();
// @@protoc_insertion_point(field_mutable:greptime.v1.ColumnDef.default_constraint)
return _s;
}
inline const std::string& ColumnDef::_internal_default_constraint() const {
return _impl_.default_constraint_.Get();
}
inline void ColumnDef::_internal_set_default_constraint(const std::string& value) {
_impl_.default_constraint_.Set(value, GetArenaForAllocation());
}
inline std::string* ColumnDef::_internal_mutable_default_constraint() {
return _impl_.default_constraint_.Mutable(GetArenaForAllocation());
}
inline std::string* ColumnDef::release_default_constraint() {
// @@protoc_insertion_point(field_release:greptime.v1.ColumnDef.default_constraint)
return _impl_.default_constraint_.Release();
}
inline void ColumnDef::set_allocated_default_constraint(std::string* default_constraint) {
if (default_constraint != nullptr) {
} else {
}
_impl_.default_constraint_.SetAllocated(default_constraint, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.default_constraint_.IsDefault()) {
_impl_.default_constraint_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDef.default_constraint)
}
// -------------------------------------------------------------------
// IntervalMonthDayNano // IntervalMonthDayNano
// int32 months = 1; // int32 months = 1;
@@ -3024,8 +2685,6 @@ inline void IntervalMonthDayNano::set_nanoseconds(int64_t value) {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
+696 -435
View File
File diff suppressed because it is too large Load Diff
+705 -499
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+56 -152
View File
@@ -674,78 +674,6 @@ func (x *FlightMetadata) GetAffectedRows() *AffectedRows {
return nil return nil
} }
// TODO: deprecate this, and use the `ColumnDef` in region_server.proto instead
type ColumnDef struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Datatype ColumnDataType `protobuf:"varint,2,opt,name=datatype,proto3,enum=greptime.v1.ColumnDataType" json:"datatype,omitempty"`
IsNullable bool `protobuf:"varint,3,opt,name=is_nullable,json=isNullable,proto3" json:"is_nullable,omitempty"`
DefaultConstraint []byte `protobuf:"bytes,4,opt,name=default_constraint,json=defaultConstraint,proto3" json:"default_constraint,omitempty"`
}
func (x *ColumnDef) Reset() {
*x = ColumnDef{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ColumnDef) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ColumnDef) ProtoMessage() {}
func (x *ColumnDef) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ColumnDef.ProtoReflect.Descriptor instead.
func (*ColumnDef) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{8}
}
func (x *ColumnDef) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ColumnDef) GetDatatype() ColumnDataType {
if x != nil {
return x.Datatype
}
return ColumnDataType_BOOLEAN
}
func (x *ColumnDef) GetIsNullable() bool {
if x != nil {
return x.IsNullable
}
return false
}
func (x *ColumnDef) GetDefaultConstraint() []byte {
if x != nil {
return x.DefaultConstraint
}
return nil
}
type IntervalMonthDayNano struct { type IntervalMonthDayNano struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -759,7 +687,7 @@ type IntervalMonthDayNano struct {
func (x *IntervalMonthDayNano) Reset() { func (x *IntervalMonthDayNano) Reset() {
*x = IntervalMonthDayNano{} *x = IntervalMonthDayNano{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[9] mi := &file_greptime_v1_common_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -772,7 +700,7 @@ func (x *IntervalMonthDayNano) String() string {
func (*IntervalMonthDayNano) ProtoMessage() {} func (*IntervalMonthDayNano) ProtoMessage() {}
func (x *IntervalMonthDayNano) ProtoReflect() protoreflect.Message { func (x *IntervalMonthDayNano) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[9] mi := &file_greptime_v1_common_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -785,7 +713,7 @@ func (x *IntervalMonthDayNano) ProtoReflect() protoreflect.Message {
// Deprecated: Use IntervalMonthDayNano.ProtoReflect.Descriptor instead. // Deprecated: Use IntervalMonthDayNano.ProtoReflect.Descriptor instead.
func (*IntervalMonthDayNano) Descriptor() ([]byte, []int) { func (*IntervalMonthDayNano) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{9} return file_greptime_v1_common_proto_rawDescGZIP(), []int{8}
} }
func (x *IntervalMonthDayNano) GetMonths() int32 { func (x *IntervalMonthDayNano) GetMonths() int32 {
@@ -856,61 +784,51 @@ var file_greptime_v1_common_proto_rawDesc = []byte{
0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66, 0x66, 0x65, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66, 0x66, 0x65,
0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74,
0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x22, 0xa8, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x22, 0x64, 0x0a, 0x14, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76,
0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x12, 0x16,
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x0a, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x64, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61,
0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x2a, 0x31, 0x0a, 0x0c,
0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03,
0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x54, 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x01,
0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02, 0x2a,
0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0xc6, 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79,
0x74, 0x22, 0x64, 0x0a, 0x14, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12,
0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x6e, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54,
0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x31, 0x36, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12,
0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49,
0x04, 0x64, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x4e, 0x54, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10,
0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a,
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x2a, 0x31, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f,
0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x00, 0x41, 0x54, 0x33, 0x32, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36,
0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x34, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12,
0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02, 0x2a, 0xc6, 0x03, 0x0a, 0x0e, 0x43, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d,
0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x45, 0x10, 0x0e, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50,
0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x02, 0x12, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d,
0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f,
0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x05, 0x4e, 0x44, 0x10, 0x10, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d,
0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12,
0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e,
0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d,
0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x0a, 0x12, 0x0a, 0x45, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49,
0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14,
0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45,
0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x0e, 0x12, 0x14, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e,
0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13, 0x49,
0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f, 0x4e,
0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x10, 0x12, 0x54, 0x48, 0x10, 0x17, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c,
0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x43, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17, 0x49,
0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44, 0x41,
0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x59, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x19, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67,
0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53, 0x45, 0x43, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d,
0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x6f, 0x6e, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47,
0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70,
0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72,
0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x33,
0x41, 0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x17, 0x12,
0x15, 0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x44, 0x41, 0x59, 0x5f,
0x54, 0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56,
0x41, 0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x4e, 0x41, 0x4e,
0x4f, 0x10, 0x19, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5a, 0x35, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -926,7 +844,7 @@ func file_greptime_v1_common_proto_rawDescGZIP() []byte {
} }
var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_greptime_v1_common_proto_goTypes = []interface{}{ var file_greptime_v1_common_proto_goTypes = []interface{}{
(SemanticType)(0), // 0: greptime.v1.SemanticType (SemanticType)(0), // 0: greptime.v1.SemanticType
(ColumnDataType)(0), // 1: greptime.v1.ColumnDataType (ColumnDataType)(0), // 1: greptime.v1.ColumnDataType
@@ -938,8 +856,7 @@ var file_greptime_v1_common_proto_goTypes = []interface{}{
(*Token)(nil), // 7: greptime.v1.Token (*Token)(nil), // 7: greptime.v1.Token
(*AffectedRows)(nil), // 8: greptime.v1.AffectedRows (*AffectedRows)(nil), // 8: greptime.v1.AffectedRows
(*FlightMetadata)(nil), // 9: greptime.v1.FlightMetadata (*FlightMetadata)(nil), // 9: greptime.v1.FlightMetadata
(*ColumnDef)(nil), // 10: greptime.v1.ColumnDef (*IntervalMonthDayNano)(nil), // 10: greptime.v1.IntervalMonthDayNano
(*IntervalMonthDayNano)(nil), // 11: greptime.v1.IntervalMonthDayNano
} }
var file_greptime_v1_common_proto_depIdxs = []int32{ var file_greptime_v1_common_proto_depIdxs = []int32{
5, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader 5, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader
@@ -947,12 +864,11 @@ var file_greptime_v1_common_proto_depIdxs = []int32{
6, // 2: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic 6, // 2: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
7, // 3: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token 7, // 3: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
8, // 4: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows 8, // 4: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
1, // 5: greptime.v1.ColumnDef.datatype:type_name -> greptime.v1.ColumnDataType 5, // [5:5] is the sub-list for method output_type
6, // [6:6] is the sub-list for method output_type 5, // [5:5] is the sub-list for method input_type
6, // [6:6] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension extendee
6, // [6:6] is the sub-list for extension extendee 0, // [0:5] is the sub-list for field type_name
0, // [0:6] is the sub-list for field type_name
} }
func init() { file_greptime_v1_common_proto_init() } func init() { file_greptime_v1_common_proto_init() }
@@ -1058,18 +974,6 @@ func file_greptime_v1_common_proto_init() {
} }
} }
file_greptime_v1_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ColumnDef); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IntervalMonthDayNano); i { switch v := v.(*IntervalMonthDayNano); i {
case 0: case 0:
return &v.state return &v.state
@@ -1092,7 +996,7 @@ func file_greptime_v1_common_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_common_proto_rawDesc, RawDescriptor: file_greptime_v1_common_proto_rawDesc,
NumEnums: 2, NumEnums: 2,
NumMessages: 10, NumMessages: 9,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
+246 -169
View File
@@ -34,50 +34,50 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
) )
type AddColumn_Location_LocationType int32 type AddColumnLocation_LocationType int32
const ( const (
AddColumn_Location_FIRST AddColumn_Location_LocationType = 0 AddColumnLocation_FIRST AddColumnLocation_LocationType = 0
AddColumn_Location_AFTER AddColumn_Location_LocationType = 1 AddColumnLocation_AFTER AddColumnLocation_LocationType = 1
) )
// Enum value maps for AddColumn_Location_LocationType. // Enum value maps for AddColumnLocation_LocationType.
var ( var (
AddColumn_Location_LocationType_name = map[int32]string{ AddColumnLocation_LocationType_name = map[int32]string{
0: "FIRST", 0: "FIRST",
1: "AFTER", 1: "AFTER",
} }
AddColumn_Location_LocationType_value = map[string]int32{ AddColumnLocation_LocationType_value = map[string]int32{
"FIRST": 0, "FIRST": 0,
"AFTER": 1, "AFTER": 1,
} }
) )
func (x AddColumn_Location_LocationType) Enum() *AddColumn_Location_LocationType { func (x AddColumnLocation_LocationType) Enum() *AddColumnLocation_LocationType {
p := new(AddColumn_Location_LocationType) p := new(AddColumnLocation_LocationType)
*p = x *p = x
return p return p
} }
func (x AddColumn_Location_LocationType) String() string { func (x AddColumnLocation_LocationType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
} }
func (AddColumn_Location_LocationType) Descriptor() protoreflect.EnumDescriptor { func (AddColumnLocation_LocationType) Descriptor() protoreflect.EnumDescriptor {
return file_greptime_v1_ddl_proto_enumTypes[0].Descriptor() return file_greptime_v1_ddl_proto_enumTypes[0].Descriptor()
} }
func (AddColumn_Location_LocationType) Type() protoreflect.EnumType { func (AddColumnLocation_LocationType) Type() protoreflect.EnumType {
return &file_greptime_v1_ddl_proto_enumTypes[0] return &file_greptime_v1_ddl_proto_enumTypes[0]
} }
func (x AddColumn_Location_LocationType) Number() protoreflect.EnumNumber { func (x AddColumnLocation_LocationType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x) return protoreflect.EnumNumber(x)
} }
// Deprecated: Use AddColumn_Location_LocationType.Descriptor instead. // Deprecated: Use AddColumnLocation_LocationType.Descriptor instead.
func (AddColumn_Location_LocationType) EnumDescriptor() ([]byte, []int) { func (AddColumnLocation_LocationType) EnumDescriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9, 0, 0} return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13, 0}
} }
// "Data Definition Language" requests, that create, modify or delete the // "Data Definition Language" requests, that create, modify or delete the
@@ -356,9 +356,6 @@ type AlterExpr struct {
// *AlterExpr_DropColumns // *AlterExpr_DropColumns
// *AlterExpr_RenameTable // *AlterExpr_RenameTable
Kind isAlterExpr_Kind `protobuf_oneof:"kind"` Kind isAlterExpr_Kind `protobuf_oneof:"kind"`
TableId *TableId `protobuf:"bytes,7,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
// table version before altering.
TableVersion uint64 `protobuf:"varint,8,opt,name=table_version,json=tableVersion,proto3" json:"table_version,omitempty"`
} }
func (x *AlterExpr) Reset() { func (x *AlterExpr) Reset() {
@@ -442,20 +439,6 @@ func (x *AlterExpr) GetRenameTable() *RenameTable {
return nil return nil
} }
func (x *AlterExpr) GetTableId() *TableId {
if x != nil {
return x.TableId
}
return nil
}
func (x *AlterExpr) GetTableVersion() uint64 {
if x != nil {
return x.TableVersion
}
return 0
}
type isAlterExpr_Kind interface { type isAlterExpr_Kind interface {
isAlterExpr_Kind() isAlterExpr_Kind()
} }
@@ -830,8 +813,7 @@ type AddColumn struct {
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
ColumnDef *ColumnDef `protobuf:"bytes,1,opt,name=column_def,json=columnDef,proto3" json:"column_def,omitempty"` ColumnDef *ColumnDef `protobuf:"bytes,1,opt,name=column_def,json=columnDef,proto3" json:"column_def,omitempty"`
IsKey bool `protobuf:"varint,2,opt,name=is_key,json=isKey,proto3" json:"is_key,omitempty"` Location *AddColumnLocation `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
Location *AddColumn_Location `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
} }
func (x *AddColumn) Reset() { func (x *AddColumn) Reset() {
@@ -873,14 +855,7 @@ func (x *AddColumn) GetColumnDef() *ColumnDef {
return nil return nil
} }
func (x *AddColumn) GetIsKey() bool { func (x *AddColumn) GetLocation() *AddColumnLocation {
if x != nil {
return x.IsKey
}
return false
}
func (x *AddColumn) GetLocation() *AddColumn_Location {
if x != nil { if x != nil {
return x.Location return x.Location
} }
@@ -981,32 +956,35 @@ func (x *TableId) GetId() uint32 {
return 0 return 0
} }
type AddColumn_Location struct { type ColumnDef struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
LocationType AddColumn_Location_LocationType `protobuf:"varint,1,opt,name=location_type,json=locationType,proto3,enum=greptime.v1.AddColumn_Location_LocationType" json:"location_type,omitempty"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
AfterColumnName string `protobuf:"bytes,2,opt,name=after_column_name,json=afterColumnName,proto3" json:"after_column_name,omitempty"` DataType ColumnDataType `protobuf:"varint,2,opt,name=data_type,json=dataType,proto3,enum=greptime.v1.ColumnDataType" json:"data_type,omitempty"`
IsNullable bool `protobuf:"varint,3,opt,name=is_nullable,json=isNullable,proto3" json:"is_nullable,omitempty"`
DefaultConstraint []byte `protobuf:"bytes,4,opt,name=default_constraint,json=defaultConstraint,proto3" json:"default_constraint,omitempty"`
SemanticType SemanticType `protobuf:"varint,5,opt,name=semantic_type,json=semanticType,proto3,enum=greptime.v1.SemanticType" json:"semantic_type,omitempty"`
} }
func (x *AddColumn_Location) Reset() { func (x *ColumnDef) Reset() {
*x = AddColumn_Location{} *x = ColumnDef{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_ddl_proto_msgTypes[14] mi := &file_greptime_v1_ddl_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
} }
func (x *AddColumn_Location) String() string { func (x *ColumnDef) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*AddColumn_Location) ProtoMessage() {} func (*ColumnDef) ProtoMessage() {}
func (x *AddColumn_Location) ProtoReflect() protoreflect.Message { func (x *ColumnDef) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_ddl_proto_msgTypes[14] mi := &file_greptime_v1_ddl_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -1017,19 +995,95 @@ func (x *AddColumn_Location) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use AddColumn_Location.ProtoReflect.Descriptor instead. // Deprecated: Use ColumnDef.ProtoReflect.Descriptor instead.
func (*AddColumn_Location) Descriptor() ([]byte, []int) { func (*ColumnDef) Descriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9, 0} return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12}
} }
func (x *AddColumn_Location) GetLocationType() AddColumn_Location_LocationType { func (x *ColumnDef) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ColumnDef) GetDataType() ColumnDataType {
if x != nil {
return x.DataType
}
return ColumnDataType_BOOLEAN
}
func (x *ColumnDef) GetIsNullable() bool {
if x != nil {
return x.IsNullable
}
return false
}
func (x *ColumnDef) GetDefaultConstraint() []byte {
if x != nil {
return x.DefaultConstraint
}
return nil
}
func (x *ColumnDef) GetSemanticType() SemanticType {
if x != nil {
return x.SemanticType
}
return SemanticType_TAG
}
type AddColumnLocation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
LocationType AddColumnLocation_LocationType `protobuf:"varint,1,opt,name=location_type,json=locationType,proto3,enum=greptime.v1.AddColumnLocation_LocationType" json:"location_type,omitempty"`
AfterColumnName string `protobuf:"bytes,2,opt,name=after_column_name,json=afterColumnName,proto3" json:"after_column_name,omitempty"`
}
func (x *AddColumnLocation) Reset() {
*x = AddColumnLocation{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_ddl_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AddColumnLocation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddColumnLocation) ProtoMessage() {}
func (x *AddColumnLocation) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_ddl_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddColumnLocation.ProtoReflect.Descriptor instead.
func (*AddColumnLocation) Descriptor() ([]byte, []int) {
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13}
}
func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType {
if x != nil { if x != nil {
return x.LocationType return x.LocationType
} }
return AddColumn_Location_FIRST return AddColumnLocation_FIRST
} }
func (x *AddColumn_Location) GetAfterColumnName() string { func (x *AddColumnLocation) GetAfterColumnName() string {
if x != nil { if x != nil {
return x.AfterColumnName return x.AfterColumnName
} }
@@ -1100,7 +1154,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 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, 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, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x86, 0x03, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 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, 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, 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, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65,
@@ -1119,91 +1173,99 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 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, 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, 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62,
0x6c, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xa3, 0x01, 0x0a, 0x0d, 0x44,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c,
0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12,
0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65,
0x22, 0xa3, 0x01, 0x0a, 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x22, 0xee, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62,
0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78,
0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xee, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61,
0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x23, 0x0a, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x46, 0x0a,
0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65,
0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e,
0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70,
0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x73, 0x74, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
0x65, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61,
0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63,
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61,
0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67,
0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x0a, 0x41,
0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16,
0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64,
0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x64, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a,
0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20,
0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xc8, 0x02, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x15, 0x0a, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x06, 0x69, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12,
0x73, 0x4b, 0x65, 0x79, 0x12, 0x3b, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0xe9, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x4c, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
0x6e, 0x1a, 0xaf, 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x51, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70,
0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69,
0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x4c, 0x6f, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12,
0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69,
0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73,
0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01,
0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73,
0x52, 0x10, 0x01, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x22, 0xb7, 0x01, 0x0a, 0x11,
0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c,
0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 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 ( var (
@@ -1219,9 +1281,9 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte {
} }
var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 15) var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_greptime_v1_ddl_proto_goTypes = []interface{}{ var file_greptime_v1_ddl_proto_goTypes = []interface{}{
(AddColumn_Location_LocationType)(0), // 0: greptime.v1.AddColumn.Location.LocationType (AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType
(*DdlRequest)(nil), // 1: greptime.v1.DdlRequest (*DdlRequest)(nil), // 1: greptime.v1.DdlRequest
(*CreateTableExpr)(nil), // 2: greptime.v1.CreateTableExpr (*CreateTableExpr)(nil), // 2: greptime.v1.CreateTableExpr
(*AlterExpr)(nil), // 3: greptime.v1.AlterExpr (*AlterExpr)(nil), // 3: greptime.v1.AlterExpr
@@ -1234,10 +1296,12 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{
(*AddColumn)(nil), // 10: greptime.v1.AddColumn (*AddColumn)(nil), // 10: greptime.v1.AddColumn
(*DropColumn)(nil), // 11: greptime.v1.DropColumn (*DropColumn)(nil), // 11: greptime.v1.DropColumn
(*TableId)(nil), // 12: greptime.v1.TableId (*TableId)(nil), // 12: greptime.v1.TableId
nil, // 13: greptime.v1.CreateTableExpr.TableOptionsEntry (*ColumnDef)(nil), // 13: greptime.v1.ColumnDef
nil, // 14: greptime.v1.CreateDatabaseExpr.OptionsEntry (*AddColumnLocation)(nil), // 14: greptime.v1.AddColumnLocation
(*AddColumn_Location)(nil), // 15: greptime.v1.AddColumn.Location nil, // 15: greptime.v1.CreateTableExpr.TableOptionsEntry
(*ColumnDef)(nil), // 16: greptime.v1.ColumnDef nil, // 16: greptime.v1.CreateDatabaseExpr.OptionsEntry
(ColumnDataType)(0), // 17: greptime.v1.ColumnDataType
(SemanticType)(0), // 18: greptime.v1.SemanticType
} }
var file_greptime_v1_ddl_proto_depIdxs = []int32{ var file_greptime_v1_ddl_proto_depIdxs = []int32{
5, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr 5, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
@@ -1245,26 +1309,27 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{
3, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr 3, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr
4, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr 4, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr
6, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr 6, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr
16, // 5: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef 13, // 5: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef
13, // 6: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry 15, // 6: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
12, // 7: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId 12, // 7: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId
7, // 8: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns 7, // 8: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns
8, // 9: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns 8, // 9: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns
9, // 10: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable 9, // 10: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable
12, // 11: greptime.v1.AlterExpr.table_id:type_name -> greptime.v1.TableId 12, // 11: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId
12, // 12: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId 16, // 12: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry
14, // 13: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry 12, // 13: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId
12, // 14: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId 10, // 14: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
10, // 15: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn 11, // 15: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
11, // 16: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn 13, // 16: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
16, // 17: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef 14, // 17: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
15, // 18: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumn.Location 17, // 18: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType
0, // 19: greptime.v1.AddColumn.Location.location_type:type_name -> greptime.v1.AddColumn.Location.LocationType 18, // 19: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType
20, // [20:20] is the sub-list for method output_type 0, // 20: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType
20, // [20:20] is the sub-list for method input_type 21, // [21:21] is the sub-list for method output_type
20, // [20:20] is the sub-list for extension type_name 21, // [21:21] is the sub-list for method input_type
20, // [20:20] is the sub-list for extension extendee 21, // [21:21] is the sub-list for extension type_name
0, // [0:20] is the sub-list for field type_name 21, // [21:21] is the sub-list for extension extendee
0, // [0:21] is the sub-list for field type_name
} }
func init() { file_greptime_v1_ddl_proto_init() } func init() { file_greptime_v1_ddl_proto_init() }
@@ -1418,8 +1483,20 @@ func file_greptime_v1_ddl_proto_init() {
return nil return nil
} }
} }
file_greptime_v1_ddl_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AddColumn_Location); i { switch v := v.(*ColumnDef); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_ddl_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AddColumnLocation); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1449,7 +1526,7 @@ func file_greptime_v1_ddl_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, RawDescriptor: file_greptime_v1_ddl_proto_rawDesc,
NumEnums: 1, NumEnums: 1,
NumMessages: 15, NumMessages: 16,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
+18 -862
View File
@@ -6515,836 +6515,6 @@ public final class Common {
} }
public interface ColumnDefOrBuilder extends
// @@protoc_insertion_point(interface_extends:greptime.v1.ColumnDef)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string name = 1;</code>
* @return The name.
*/
java.lang.String getName();
/**
* <code>string name = 1;</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
* @return The enum numeric value on the wire for datatype.
*/
int getDatatypeValue();
/**
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
* @return The datatype.
*/
io.greptime.v1.Common.ColumnDataType getDatatype();
/**
* <code>bool is_nullable = 3;</code>
* @return The isNullable.
*/
boolean getIsNullable();
/**
* <code>bytes default_constraint = 4;</code>
* @return The defaultConstraint.
*/
com.google.protobuf.ByteString getDefaultConstraint();
}
/**
* <pre>
* TODO: deprecate this, and use the `ColumnDef` in region_server.proto instead
* </pre>
*
* Protobuf type {@code greptime.v1.ColumnDef}
*/
public static final class ColumnDef extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:greptime.v1.ColumnDef)
ColumnDefOrBuilder {
private static final long serialVersionUID = 0L;
// Use ColumnDef.newBuilder() to construct.
private ColumnDef(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ColumnDef() {
name_ = "";
datatype_ = 0;
defaultConstraint_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ColumnDef();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ColumnDef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
datatype_ = rawValue;
break;
}
case 24: {
isNullable_ = input.readBool();
break;
}
case 34: {
defaultConstraint_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDef_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.greptime.v1.Common.ColumnDef.class, io.greptime.v1.Common.ColumnDef.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* <code>string name = 1;</code>
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* <code>string name = 1;</code>
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATATYPE_FIELD_NUMBER = 2;
private int datatype_;
/**
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
* @return The enum numeric value on the wire for datatype.
*/
@java.lang.Override public int getDatatypeValue() {
return datatype_;
}
/**
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
* @return The datatype.
*/
@java.lang.Override public io.greptime.v1.Common.ColumnDataType getDatatype() {
@SuppressWarnings("deprecation")
io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(datatype_);
return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result;
}
public static final int IS_NULLABLE_FIELD_NUMBER = 3;
private boolean isNullable_;
/**
* <code>bool is_nullable = 3;</code>
* @return The isNullable.
*/
@java.lang.Override
public boolean getIsNullable() {
return isNullable_;
}
public static final int DEFAULT_CONSTRAINT_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString defaultConstraint_;
/**
* <code>bytes default_constraint = 4;</code>
* @return The defaultConstraint.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDefaultConstraint() {
return defaultConstraint_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) {
output.writeEnum(2, datatype_);
}
if (isNullable_ != false) {
output.writeBool(3, isNullable_);
}
if (!defaultConstraint_.isEmpty()) {
output.writeBytes(4, defaultConstraint_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, datatype_);
}
if (isNullable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, isNullable_);
}
if (!defaultConstraint_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, defaultConstraint_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.greptime.v1.Common.ColumnDef)) {
return super.equals(obj);
}
io.greptime.v1.Common.ColumnDef other = (io.greptime.v1.Common.ColumnDef) obj;
if (!getName()
.equals(other.getName())) return false;
if (datatype_ != other.datatype_) return false;
if (getIsNullable()
!= other.getIsNullable()) return false;
if (!getDefaultConstraint()
.equals(other.getDefaultConstraint())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
hash = (53 * hash) + datatype_;
hash = (37 * hash) + IS_NULLABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsNullable());
hash = (37 * hash) + DEFAULT_CONSTRAINT_FIELD_NUMBER;
hash = (53 * hash) + getDefaultConstraint().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.greptime.v1.Common.ColumnDef parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.greptime.v1.Common.ColumnDef parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.greptime.v1.Common.ColumnDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.greptime.v1.Common.ColumnDef parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.greptime.v1.Common.ColumnDef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.greptime.v1.Common.ColumnDef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.greptime.v1.Common.ColumnDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.greptime.v1.Common.ColumnDef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.greptime.v1.Common.ColumnDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.greptime.v1.Common.ColumnDef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.greptime.v1.Common.ColumnDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.greptime.v1.Common.ColumnDef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.greptime.v1.Common.ColumnDef prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* TODO: deprecate this, and use the `ColumnDef` in region_server.proto instead
* </pre>
*
* Protobuf type {@code greptime.v1.ColumnDef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:greptime.v1.ColumnDef)
io.greptime.v1.Common.ColumnDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDef_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.greptime.v1.Common.ColumnDef.class, io.greptime.v1.Common.ColumnDef.Builder.class);
}
// Construct using io.greptime.v1.Common.ColumnDef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
datatype_ = 0;
isNullable_ = false;
defaultConstraint_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDef_descriptor;
}
@java.lang.Override
public io.greptime.v1.Common.ColumnDef getDefaultInstanceForType() {
return io.greptime.v1.Common.ColumnDef.getDefaultInstance();
}
@java.lang.Override
public io.greptime.v1.Common.ColumnDef build() {
io.greptime.v1.Common.ColumnDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.greptime.v1.Common.ColumnDef buildPartial() {
io.greptime.v1.Common.ColumnDef result = new io.greptime.v1.Common.ColumnDef(this);
result.name_ = name_;
result.datatype_ = datatype_;
result.isNullable_ = isNullable_;
result.defaultConstraint_ = defaultConstraint_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.greptime.v1.Common.ColumnDef) {
return mergeFrom((io.greptime.v1.Common.ColumnDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.greptime.v1.Common.ColumnDef other) {
if (other == io.greptime.v1.Common.ColumnDef.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.datatype_ != 0) {
setDatatypeValue(other.getDatatypeValue());
}
if (other.getIsNullable() != false) {
setIsNullable(other.getIsNullable());
}
if (other.getDefaultConstraint() != com.google.protobuf.ByteString.EMPTY) {
setDefaultConstraint(other.getDefaultConstraint());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.greptime.v1.Common.ColumnDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.greptime.v1.Common.ColumnDef) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* <code>string name = 1;</code>
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string name = 1;</code>
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string name = 1;</code>
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* <code>string name = 1;</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <code>string name = 1;</code>
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int datatype_ = 0;
/**
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
* @return The enum numeric value on the wire for datatype.
*/
@java.lang.Override public int getDatatypeValue() {
return datatype_;
}
/**
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
* @param value The enum numeric value on the wire for datatype to set.
* @return This builder for chaining.
*/
public Builder setDatatypeValue(int value) {
datatype_ = value;
onChanged();
return this;
}
/**
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
* @return The datatype.
*/
@java.lang.Override
public io.greptime.v1.Common.ColumnDataType getDatatype() {
@SuppressWarnings("deprecation")
io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(datatype_);
return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result;
}
/**
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
* @param value The datatype to set.
* @return This builder for chaining.
*/
public Builder setDatatype(io.greptime.v1.Common.ColumnDataType value) {
if (value == null) {
throw new NullPointerException();
}
datatype_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.greptime.v1.ColumnDataType datatype = 2;</code>
* @return This builder for chaining.
*/
public Builder clearDatatype() {
datatype_ = 0;
onChanged();
return this;
}
private boolean isNullable_ ;
/**
* <code>bool is_nullable = 3;</code>
* @return The isNullable.
*/
@java.lang.Override
public boolean getIsNullable() {
return isNullable_;
}
/**
* <code>bool is_nullable = 3;</code>
* @param value The isNullable to set.
* @return This builder for chaining.
*/
public Builder setIsNullable(boolean value) {
isNullable_ = value;
onChanged();
return this;
}
/**
* <code>bool is_nullable = 3;</code>
* @return This builder for chaining.
*/
public Builder clearIsNullable() {
isNullable_ = false;
onChanged();
return this;
}
private com.google.protobuf.ByteString defaultConstraint_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>bytes default_constraint = 4;</code>
* @return The defaultConstraint.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDefaultConstraint() {
return defaultConstraint_;
}
/**
* <code>bytes default_constraint = 4;</code>
* @param value The defaultConstraint to set.
* @return This builder for chaining.
*/
public Builder setDefaultConstraint(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
defaultConstraint_ = value;
onChanged();
return this;
}
/**
* <code>bytes default_constraint = 4;</code>
* @return This builder for chaining.
*/
public Builder clearDefaultConstraint() {
defaultConstraint_ = getDefaultInstance().getDefaultConstraint();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:greptime.v1.ColumnDef)
}
// @@protoc_insertion_point(class_scope:greptime.v1.ColumnDef)
private static final io.greptime.v1.Common.ColumnDef DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.greptime.v1.Common.ColumnDef();
}
public static io.greptime.v1.Common.ColumnDef getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ColumnDef>
PARSER = new com.google.protobuf.AbstractParser<ColumnDef>() {
@java.lang.Override
public ColumnDef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ColumnDef(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ColumnDef> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ColumnDef> getParserForType() {
return PARSER;
}
@java.lang.Override
public io.greptime.v1.Common.ColumnDef getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IntervalMonthDayNanoOrBuilder extends public interface IntervalMonthDayNanoOrBuilder extends
// @@protoc_insertion_point(interface_extends:greptime.v1.IntervalMonthDayNano) // @@protoc_insertion_point(interface_extends:greptime.v1.IntervalMonthDayNano)
com.google.protobuf.MessageOrBuilder { com.google.protobuf.MessageOrBuilder {
@@ -8016,11 +7186,6 @@ public final class Common {
private static final private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_greptime_v1_FlightMetadata_fieldAccessorTable; internal_static_greptime_v1_FlightMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_greptime_v1_ColumnDef_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_greptime_v1_ColumnDef_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor private static final com.google.protobuf.Descriptors.Descriptor
internal_static_greptime_v1_IntervalMonthDayNano_descriptor; internal_static_greptime_v1_IntervalMonthDayNano_descriptor;
private static final private static final
@@ -8049,26 +7214,23 @@ public final class Common {
"\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows" + "\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows" +
"\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raff" + "\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raff" +
"ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR" + "ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR" +
"ows\"y\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022-\n\010dataty" + "ows\"I\n\024IntervalMonthDayNano\022\016\n\006months\030\001 " +
"pe\030\002 \001(\0162\033.greptime.v1.ColumnDataType\022\023\n" + "\001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003*1" +
"\013is_nullable\030\003 \001(\010\022\032\n\022default_constraint" + "\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTI" +
"\030\004 \001(\014\"I\n\024IntervalMonthDayNano\022\016\n\006months" + "MESTAMP\020\002*\306\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020" +
"\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(" + "\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT" +
"\003*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n" + "64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022" +
"\tTIMESTAMP\020\002*\306\003\n\016ColumnDataType\022\013\n\007BOOLE" + "\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n" +
"AN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005" + "\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATET" +
"INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32" + "IME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP" +
"\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n" + "_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020" +
"\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DA" + "\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_SECO" +
"TETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMEST" + "ND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MICRO" +
"AMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECO" + "SECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVA" +
"ND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_S" + "L_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n" +
"ECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MI" + "\027INTERVAL_MONTH_DAY_NANO\020\031BO\n\016io.greptim" +
"CROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTE" + "e.v1B\006CommonZ5github.com/GreptimeTeam/gr" +
"RVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030" + "eptime-proto/go/greptime/v1b\006proto3"
"\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031BO\n\016io.grep" +
"time.v1B\006CommonZ5github.com/GreptimeTeam" +
"/greptime-proto/go/greptime/v1b\006proto3"
}; };
descriptor = com.google.protobuf.Descriptors.FileDescriptor descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData, .internalBuildGeneratedFileFrom(descriptorData,
@@ -8122,14 +7284,8 @@ public final class Common {
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_FlightMetadata_descriptor, internal_static_greptime_v1_FlightMetadata_descriptor,
new java.lang.String[] { "AffectedRows", }); new java.lang.String[] { "AffectedRows", });
internal_static_greptime_v1_ColumnDef_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_greptime_v1_ColumnDef_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_ColumnDef_descriptor,
new java.lang.String[] { "Name", "Datatype", "IsNullable", "DefaultConstraint", });
internal_static_greptime_v1_IntervalMonthDayNano_descriptor = internal_static_greptime_v1_IntervalMonthDayNano_descriptor =
getDescriptor().getMessageTypes().get(9); getDescriptor().getMessageTypes().get(8);
internal_static_greptime_v1_IntervalMonthDayNano_fieldAccessorTable = new internal_static_greptime_v1_IntervalMonthDayNano_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_IntervalMonthDayNano_descriptor, internal_static_greptime_v1_IntervalMonthDayNano_descriptor,
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-8
View File
@@ -67,14 +67,6 @@ enum SemanticType {
TIMESTAMP = 2; TIMESTAMP = 2;
} }
// TODO: deprecate this, and use the `ColumnDef` in region_server.proto instead
message ColumnDef {
string name = 1;
ColumnDataType datatype = 2;
bool is_nullable = 3;
bytes default_constraint = 4;
}
enum ColumnDataType { enum ColumnDataType {
BOOLEAN = 0; BOOLEAN = 0;
INT8 = 1; INT8 = 1;
+15 -11
View File
@@ -60,9 +60,6 @@ message AlterExpr {
DropColumns drop_columns = 5; DropColumns drop_columns = 5;
RenameTable rename_table = 6; RenameTable rename_table = 6;
} }
TableId table_id = 7;
// table version before altering.
uint64 table_version = 8;
} }
message DropTableExpr { message DropTableExpr {
@@ -93,9 +90,22 @@ message RenameTable { string new_table_name = 1; }
message AddColumn { message AddColumn {
ColumnDef column_def = 1; ColumnDef column_def = 1;
bool is_key = 2; AddColumnLocation location = 3;
}
message Location { message DropColumn { string name = 1; }
message TableId { uint32 id = 1; }
message ColumnDef {
string name = 1;
ColumnDataType data_type = 2;
bool is_nullable = 3;
bytes default_constraint = 4;
SemanticType semantic_type = 5;
}
message AddColumnLocation {
enum LocationType { enum LocationType {
FIRST = 0; FIRST = 0;
AFTER = 1; AFTER = 1;
@@ -103,9 +113,3 @@ message AddColumn {
LocationType location_type = 1; LocationType location_type = 1;
string after_column_name = 2; string after_column_name = 2;
} }
Location location = 3;
}
message DropColumn { string name = 1; }
message TableId { uint32 id = 1; }
+33 -9
View File
@@ -22,6 +22,7 @@ option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/regio
import "greptime/v1/common.proto"; import "greptime/v1/common.proto";
import "greptime/v1/row.proto"; import "greptime/v1/row.proto";
import "greptime/v1/ddl.proto";
service Region { rpc Handle(RegionRequest) returns (RegionResponse); } service Region { rpc Handle(RegionRequest) returns (RegionResponse); }
@@ -78,7 +79,7 @@ message CreateRequest {
// Region engine name // Region engine name
string engine = 2; string engine = 2;
// Columns in this region. // Columns in this region.
repeated ColumnDef column_defs = 3; repeated RegionColumnDef column_defs = 3;
// Column Id of primary keys. // Column Id of primary keys.
repeated uint32 primary_key = 4; repeated uint32 primary_key = 4;
// Create region if not exists. // Create region if not exists.
@@ -110,18 +111,41 @@ message OpenRequest {
message CloseRequest { uint64 region_id = 1; } message CloseRequest { uint64 region_id = 1; }
// TODO: implement alter request message AlterRequest {
message AlterRequest { uint64 region_id = 1; } uint64 region_id = 1;
oneof kind {
AddColumns add_columns = 2;
DropColumns drop_columns = 3;
}
// The version of the schema before applying the alteration.
uint64 schema_version = 4;
}
message AddColumns {
repeated AddColumn add_columns = 1;
}
message DropColumns {
repeated DropColumn drop_columns = 1;
}
message AddColumn {
RegionColumnDef column_def = 1;
AddColumnLocation location = 3;
}
message DropColumn {
string name = 1;
}
message FlushRequest { uint64 region_id = 1; } message FlushRequest { uint64 region_id = 1; }
message CompactRequest { uint64 region_id = 1; } message CompactRequest { uint64 region_id = 1; }
message ColumnDef { // The column definition of a region. Unlike the message `ColumnDef` in `ddl.proto` which is for clients outside
string name = 1; // 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; uint32 column_id = 2;
ColumnDataType datatype = 3;
bool is_nullable = 4;
bytes default_constraint = 5;
SemanticType semantic_type = 6;
} }