refactor: common semantic type (#73)
This commit is contained in:
+34
-446
@@ -92,26 +92,10 @@ struct ColumnDefaultTypeInternal {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnDefaultTypeInternal _Column_default_instance_;
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnDefaultTypeInternal _Column_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_;
|
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcolumn_2eproto[3];
|
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcolumn_2eproto[2];
|
||||||
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcolumn_2eproto[2];
|
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fcolumn_2eproto = nullptr;
|
||||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcolumn_2eproto = nullptr;
|
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcolumn_2eproto = nullptr;
|
||||||
|
|
||||||
const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
@@ -155,73 +139,50 @@ const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SE
|
|||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.values_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.values_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.null_mask_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.null_mask_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.datatype_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.datatype_),
|
||||||
~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_),
|
|
||||||
};
|
};
|
||||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
{ 0, -1, -1, sizeof(::greptime::v1::Column_Values)},
|
{ 0, -1, -1, sizeof(::greptime::v1::Column_Values)},
|
||||||
{ 29, -1, -1, sizeof(::greptime::v1::Column)},
|
{ 29, -1, -1, sizeof(::greptime::v1::Column)},
|
||||||
{ 40, -1, -1, sizeof(::greptime::v1::ColumnDef)},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
&::greptime::v1::_Column_Values_default_instance_._instance,
|
&::greptime::v1::_Column_Values_default_instance_._instance,
|
||||||
&::greptime::v1::_Column_default_instance_._instance,
|
&::greptime::v1::_Column_default_instance_._instance,
|
||||||
&::greptime::v1::_ColumnDef_default_instance_._instance,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const char descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
const char descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||||
"\n\030greptime/v1/column.proto\022\013greptime.v1\""
|
"\n\030greptime/v1/column.proto\022\013greptime.v1\032"
|
||||||
"\255\006\n\006Column\022\023\n\013column_name\030\001 \001(\t\0227\n\rseman"
|
"\030greptime/v1/common.proto\"\363\005\n\006Column\022\023\n\013"
|
||||||
"tic_type\030\002 \001(\0162 .greptime.v1.Column.Sema"
|
"column_name\030\001 \001(\t\0220\n\rsemantic_type\030\002 \001(\016"
|
||||||
"nticType\022*\n\006values\030\003 \001(\0132\032.greptime.v1.C"
|
"2\031.greptime.v1.SemanticType\022*\n\006values\030\003 "
|
||||||
"olumn.Values\022\021\n\tnull_mask\030\004 \001(\014\022-\n\010datat"
|
"\001(\0132\032.greptime.v1.Column.Values\022\021\n\tnull_"
|
||||||
"ype\030\005 \001(\0162\033.greptime.v1.ColumnDataType\032\263"
|
"mask\030\004 \001(\014\022-\n\010datatype\030\005 \001(\0162\033.greptime."
|
||||||
"\004\n\006Values\022\021\n\ti8_values\030\001 \003(\005\022\022\n\ni16_valu"
|
"v1.ColumnDataType\032\263\004\n\006Values\022\021\n\ti8_value"
|
||||||
"es\030\002 \003(\005\022\022\n\ni32_values\030\003 \003(\005\022\022\n\ni64_valu"
|
"s\030\001 \003(\005\022\022\n\ni16_values\030\002 \003(\005\022\022\n\ni32_value"
|
||||||
"es\030\004 \003(\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n\nu16_value"
|
"s\030\003 \003(\005\022\022\n\ni64_values\030\004 \003(\003\022\021\n\tu8_values"
|
||||||
"s\030\006 \003(\r\022\022\n\nu32_values\030\007 \003(\r\022\022\n\nu64_value"
|
"\030\005 \003(\r\022\022\n\nu16_values\030\006 \003(\r\022\022\n\nu32_values"
|
||||||
"s\030\010 \003(\004\022\022\n\nf32_values\030\t \003(\002\022\022\n\nf64_value"
|
"\030\007 \003(\r\022\022\n\nu64_values\030\010 \003(\004\022\022\n\nf32_values"
|
||||||
"s\030\n \003(\001\022\023\n\013bool_values\030\013 \003(\010\022\025\n\rbinary_v"
|
"\030\t \003(\002\022\022\n\nf64_values\030\n \003(\001\022\023\n\013bool_value"
|
||||||
"alues\030\014 \003(\014\022\025\n\rstring_values\030\r \003(\t\022\023\n\013da"
|
"s\030\013 \003(\010\022\025\n\rbinary_values\030\014 \003(\014\022\025\n\rstring"
|
||||||
"te_values\030\016 \003(\005\022\027\n\017datetime_values\030\017 \003(\003"
|
"_values\030\r \003(\t\022\023\n\013date_values\030\016 \003(\005\022\027\n\017da"
|
||||||
"\022\030\n\020ts_second_values\030\020 \003(\003\022\035\n\025ts_millise"
|
"tetime_values\030\017 \003(\003\022\030\n\020ts_second_values\030"
|
||||||
"cond_values\030\021 \003(\003\022\035\n\025ts_microsecond_valu"
|
"\020 \003(\003\022\035\n\025ts_millisecond_values\030\021 \003(\003\022\035\n\025"
|
||||||
"es\030\022 \003(\003\022\034\n\024ts_nanosecond_values\030\023 \003(\003\022\032"
|
"ts_microsecond_values\030\022 \003(\003\022\034\n\024ts_nanose"
|
||||||
"\n\022time_second_values\030\024 \003(\003\022\037\n\027time_milli"
|
"cond_values\030\023 \003(\003\022\032\n\022time_second_values\030"
|
||||||
"second_values\030\025 \003(\003\022\037\n\027time_microsecond_"
|
"\024 \003(\003\022\037\n\027time_millisecond_values\030\025 \003(\003\022\037"
|
||||||
"values\030\026 \003(\003\022\036\n\026time_nanosecond_values\030\027"
|
"\n\027time_microsecond_values\030\026 \003(\003\022\036\n\026time_"
|
||||||
" \003(\003\"1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001"
|
"nanosecond_values\030\027 \003(\003BP\n\016io.greptime.v"
|
||||||
"\022\r\n\tTIMESTAMP\020\002\"y\n\tColumnDef\022\014\n\004name\030\001 \001"
|
"1B\007ColumnsZ5github.com/GreptimeTeam/grep"
|
||||||
"(\t\022-\n\010datatype\030\002 \001(\0162\033.greptime.v1.Colum"
|
"time-proto/go/greptime/v1b\006proto3"
|
||||||
"nDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022defaul"
|
|
||||||
"t_constraint\030\004 \001(\014*\371\002\n\016ColumnDataType\022\013\n"
|
|
||||||
"\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32"
|
|
||||||
"\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006"
|
|
||||||
"UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLO"
|
|
||||||
"AT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r"
|
|
||||||
"\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025"
|
|
||||||
"TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MIC"
|
|
||||||
"ROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013"
|
|
||||||
"TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020T"
|
|
||||||
"IME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026BP"
|
|
||||||
"\n\016io.greptime.v1B\007ColumnsZ5github.com/Gr"
|
|
||||||
"eptimeTeam/greptime-proto/go/greptime/v1"
|
|
||||||
"b\006proto3"
|
|
||||||
;
|
;
|
||||||
|
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps[1] = {
|
||||||
|
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||||
|
};
|
||||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcolumn_2eproto_once;
|
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcolumn_2eproto_once;
|
||||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcolumn_2eproto = {
|
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcolumn_2eproto = {
|
||||||
false, false, 1448, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto,
|
false, false, 913, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto,
|
||||||
"greptime/v1/column.proto",
|
"greptime/v1/column.proto",
|
||||||
&descriptor_table_greptime_2fv1_2fcolumn_2eproto_once, nullptr, 0, 3,
|
&descriptor_table_greptime_2fv1_2fcolumn_2eproto_once, descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps, 1, 2,
|
||||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets,
|
schemas, file_default_instances, TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets,
|
||||||
file_level_metadata_greptime_2fv1_2fcolumn_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcolumn_2eproto,
|
file_level_metadata_greptime_2fv1_2fcolumn_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcolumn_2eproto,
|
||||||
file_level_service_descriptors_greptime_2fv1_2fcolumn_2eproto,
|
file_level_service_descriptors_greptime_2fv1_2fcolumn_2eproto,
|
||||||
@@ -234,64 +195,6 @@ PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_greptime
|
|||||||
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_greptime_2fv1_2fcolumn_2eproto(&descriptor_table_greptime_2fv1_2fcolumn_2eproto);
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_greptime_2fv1_2fcolumn_2eproto(&descriptor_table_greptime_2fv1_2fcolumn_2eproto);
|
||||||
namespace greptime {
|
namespace greptime {
|
||||||
namespace v1 {
|
namespace v1 {
|
||||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Column_SemanticType_descriptor() {
|
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fcolumn_2eproto);
|
|
||||||
return file_level_enum_descriptors_greptime_2fv1_2fcolumn_2eproto[0];
|
|
||||||
}
|
|
||||||
bool Column_SemanticType_IsValid(int value) {
|
|
||||||
switch (value) {
|
|
||||||
case 0:
|
|
||||||
case 1:
|
|
||||||
case 2:
|
|
||||||
return true;
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
||||||
constexpr Column_SemanticType Column::TAG;
|
|
||||||
constexpr Column_SemanticType Column::FIELD;
|
|
||||||
constexpr Column_SemanticType Column::TIMESTAMP;
|
|
||||||
constexpr Column_SemanticType Column::SemanticType_MIN;
|
|
||||||
constexpr Column_SemanticType Column::SemanticType_MAX;
|
|
||||||
constexpr int Column::SemanticType_ARRAYSIZE;
|
|
||||||
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
||||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ColumnDataType_descriptor() {
|
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fcolumn_2eproto);
|
|
||||||
return file_level_enum_descriptors_greptime_2fv1_2fcolumn_2eproto[1];
|
|
||||||
}
|
|
||||||
bool ColumnDataType_IsValid(int value) {
|
|
||||||
switch (value) {
|
|
||||||
case 0:
|
|
||||||
case 1:
|
|
||||||
case 2:
|
|
||||||
case 3:
|
|
||||||
case 4:
|
|
||||||
case 5:
|
|
||||||
case 6:
|
|
||||||
case 7:
|
|
||||||
case 8:
|
|
||||||
case 9:
|
|
||||||
case 10:
|
|
||||||
case 11:
|
|
||||||
case 12:
|
|
||||||
case 13:
|
|
||||||
case 14:
|
|
||||||
case 15:
|
|
||||||
case 16:
|
|
||||||
case 17:
|
|
||||||
case 18:
|
|
||||||
case 19:
|
|
||||||
case 20:
|
|
||||||
case 21:
|
|
||||||
case 22:
|
|
||||||
return true;
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
@@ -1502,12 +1405,12 @@ const char* Column::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// .greptime.v1.Column.SemanticType semantic_type = 2;
|
// .greptime.v1.SemanticType semantic_type = 2;
|
||||||
case 2:
|
case 2:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
||||||
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
_internal_set_semantic_type(static_cast<::greptime::v1::Column_SemanticType>(val));
|
_internal_set_semantic_type(static_cast<::greptime::v1::SemanticType>(val));
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
@@ -1576,7 +1479,7 @@ uint8_t* Column::_InternalSerialize(
|
|||||||
1, this->_internal_column_name(), target);
|
1, this->_internal_column_name(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// .greptime.v1.Column.SemanticType semantic_type = 2;
|
// .greptime.v1.SemanticType semantic_type = 2;
|
||||||
if (this->_internal_semantic_type() != 0) {
|
if (this->_internal_semantic_type() != 0) {
|
||||||
target = stream->EnsureSpace(target);
|
target = stream->EnsureSpace(target);
|
||||||
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
||||||
@@ -1640,7 +1543,7 @@ size_t Column::ByteSizeLong() const {
|
|||||||
*_impl_.values_);
|
*_impl_.values_);
|
||||||
}
|
}
|
||||||
|
|
||||||
// .greptime.v1.Column.SemanticType semantic_type = 2;
|
// .greptime.v1.SemanticType semantic_type = 2;
|
||||||
if (this->_internal_semantic_type() != 0) {
|
if (this->_internal_semantic_type() != 0) {
|
||||||
total_size += 1 +
|
total_size += 1 +
|
||||||
::_pbi::WireFormatLite::EnumSize(this->_internal_semantic_type());
|
::_pbi::WireFormatLite::EnumSize(this->_internal_semantic_type());
|
||||||
@@ -1727,317 +1630,6 @@ void Column::InternalSwap(Column* other) {
|
|||||||
file_level_metadata_greptime_2fv1_2fcolumn_2eproto[1]);
|
file_level_metadata_greptime_2fv1_2fcolumn_2eproto[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
|
||||||
|
|
||||||
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_2fcolumn_2eproto_getter, &descriptor_table_greptime_2fv1_2fcolumn_2eproto_once,
|
|
||||||
file_level_metadata_greptime_2fv1_2fcolumn_2eproto[2]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
@@ -2050,10 +1642,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::Column*
|
|||||||
Arena::CreateMaybeMessage< ::greptime::v1::Column >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::Column >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::Column >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::Column >(arena);
|
||||||
}
|
}
|
||||||
template<> PROTOBUF_NOINLINE ::greptime::v1::ColumnDef*
|
|
||||||
Arena::CreateMaybeMessage< ::greptime::v1::ColumnDef >(Arena* arena) {
|
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::ColumnDef >(arena);
|
|
||||||
}
|
|
||||||
PROTOBUF_NAMESPACE_CLOSE
|
PROTOBUF_NAMESPACE_CLOSE
|
||||||
|
|
||||||
// @@protoc_insertion_point(global_scope)
|
// @@protoc_insertion_point(global_scope)
|
||||||
|
|||||||
+12
-472
@@ -29,8 +29,8 @@
|
|||||||
#include <google/protobuf/message.h>
|
#include <google/protobuf/message.h>
|
||||||
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
||||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||||
#include <google/protobuf/generated_enum_reflection.h>
|
|
||||||
#include <google/protobuf/unknown_field_set.h>
|
#include <google/protobuf/unknown_field_set.h>
|
||||||
|
#include "greptime/v1/common.pb.h"
|
||||||
// @@protoc_insertion_point(includes)
|
// @@protoc_insertion_point(includes)
|
||||||
#include <google/protobuf/port_def.inc>
|
#include <google/protobuf/port_def.inc>
|
||||||
#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fcolumn_2eproto
|
#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fcolumn_2eproto
|
||||||
@@ -50,9 +50,6 @@ namespace v1 {
|
|||||||
class Column;
|
class Column;
|
||||||
struct ColumnDefaultTypeInternal;
|
struct ColumnDefaultTypeInternal;
|
||||||
extern ColumnDefaultTypeInternal _Column_default_instance_;
|
extern ColumnDefaultTypeInternal _Column_default_instance_;
|
||||||
class ColumnDef;
|
|
||||||
struct ColumnDefDefaultTypeInternal;
|
|
||||||
extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_;
|
|
||||||
class Column_Values;
|
class Column_Values;
|
||||||
struct Column_ValuesDefaultTypeInternal;
|
struct Column_ValuesDefaultTypeInternal;
|
||||||
extern Column_ValuesDefaultTypeInternal _Column_Values_default_instance_;
|
extern Column_ValuesDefaultTypeInternal _Column_Values_default_instance_;
|
||||||
@@ -60,84 +57,11 @@ extern Column_ValuesDefaultTypeInternal _Column_Values_default_instance_;
|
|||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
PROTOBUF_NAMESPACE_OPEN
|
PROTOBUF_NAMESPACE_OPEN
|
||||||
template<> ::greptime::v1::Column* Arena::CreateMaybeMessage<::greptime::v1::Column>(Arena*);
|
template<> ::greptime::v1::Column* Arena::CreateMaybeMessage<::greptime::v1::Column>(Arena*);
|
||||||
template<> ::greptime::v1::ColumnDef* Arena::CreateMaybeMessage<::greptime::v1::ColumnDef>(Arena*);
|
|
||||||
template<> ::greptime::v1::Column_Values* Arena::CreateMaybeMessage<::greptime::v1::Column_Values>(Arena*);
|
template<> ::greptime::v1::Column_Values* Arena::CreateMaybeMessage<::greptime::v1::Column_Values>(Arena*);
|
||||||
PROTOBUF_NAMESPACE_CLOSE
|
PROTOBUF_NAMESPACE_CLOSE
|
||||||
namespace greptime {
|
namespace greptime {
|
||||||
namespace v1 {
|
namespace v1 {
|
||||||
|
|
||||||
enum Column_SemanticType : int {
|
|
||||||
Column_SemanticType_TAG = 0,
|
|
||||||
Column_SemanticType_FIELD = 1,
|
|
||||||
Column_SemanticType_TIMESTAMP = 2,
|
|
||||||
Column_SemanticType_Column_SemanticType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
|
|
||||||
Column_SemanticType_Column_SemanticType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
|
|
||||||
};
|
|
||||||
bool Column_SemanticType_IsValid(int value);
|
|
||||||
constexpr Column_SemanticType Column_SemanticType_SemanticType_MIN = Column_SemanticType_TAG;
|
|
||||||
constexpr Column_SemanticType Column_SemanticType_SemanticType_MAX = Column_SemanticType_TIMESTAMP;
|
|
||||||
constexpr int Column_SemanticType_SemanticType_ARRAYSIZE = Column_SemanticType_SemanticType_MAX + 1;
|
|
||||||
|
|
||||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Column_SemanticType_descriptor();
|
|
||||||
template<typename T>
|
|
||||||
inline const std::string& Column_SemanticType_Name(T enum_t_value) {
|
|
||||||
static_assert(::std::is_same<T, Column_SemanticType>::value ||
|
|
||||||
::std::is_integral<T>::value,
|
|
||||||
"Incorrect type passed to function Column_SemanticType_Name.");
|
|
||||||
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
||||||
Column_SemanticType_descriptor(), enum_t_value);
|
|
||||||
}
|
|
||||||
inline bool Column_SemanticType_Parse(
|
|
||||||
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Column_SemanticType* value) {
|
|
||||||
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Column_SemanticType>(
|
|
||||||
Column_SemanticType_descriptor(), name, value);
|
|
||||||
}
|
|
||||||
enum ColumnDataType : int {
|
|
||||||
BOOLEAN = 0,
|
|
||||||
INT8 = 1,
|
|
||||||
INT16 = 2,
|
|
||||||
INT32 = 3,
|
|
||||||
INT64 = 4,
|
|
||||||
UINT8 = 5,
|
|
||||||
UINT16 = 6,
|
|
||||||
UINT32 = 7,
|
|
||||||
UINT64 = 8,
|
|
||||||
FLOAT32 = 9,
|
|
||||||
FLOAT64 = 10,
|
|
||||||
BINARY = 11,
|
|
||||||
STRING = 12,
|
|
||||||
DATE = 13,
|
|
||||||
DATETIME = 14,
|
|
||||||
TIMESTAMP_SECOND = 15,
|
|
||||||
TIMESTAMP_MILLISECOND = 16,
|
|
||||||
TIMESTAMP_MICROSECOND = 17,
|
|
||||||
TIMESTAMP_NANOSECOND = 18,
|
|
||||||
TIME_SECOND = 19,
|
|
||||||
TIME_MILLISECOND = 20,
|
|
||||||
TIME_MICROSECOND = 21,
|
|
||||||
TIME_NANOSECOND = 22,
|
|
||||||
ColumnDataType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
|
|
||||||
ColumnDataType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
|
|
||||||
};
|
|
||||||
bool ColumnDataType_IsValid(int value);
|
|
||||||
constexpr ColumnDataType ColumnDataType_MIN = BOOLEAN;
|
|
||||||
constexpr ColumnDataType ColumnDataType_MAX = TIME_NANOSECOND;
|
|
||||||
constexpr int ColumnDataType_ARRAYSIZE = ColumnDataType_MAX + 1;
|
|
||||||
|
|
||||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ColumnDataType_descriptor();
|
|
||||||
template<typename T>
|
|
||||||
inline const std::string& ColumnDataType_Name(T enum_t_value) {
|
|
||||||
static_assert(::std::is_same<T, ColumnDataType>::value ||
|
|
||||||
::std::is_integral<T>::value,
|
|
||||||
"Incorrect type passed to function ColumnDataType_Name.");
|
|
||||||
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
||||||
ColumnDataType_descriptor(), enum_t_value);
|
|
||||||
}
|
|
||||||
inline bool ColumnDataType_Parse(
|
|
||||||
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ColumnDataType* value) {
|
|
||||||
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ColumnDataType>(
|
|
||||||
ColumnDataType_descriptor(), name, value);
|
|
||||||
}
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
class Column_Values final :
|
class Column_Values final :
|
||||||
@@ -971,38 +895,6 @@ class Column final :
|
|||||||
|
|
||||||
typedef Column_Values Values;
|
typedef Column_Values Values;
|
||||||
|
|
||||||
typedef Column_SemanticType SemanticType;
|
|
||||||
static constexpr SemanticType TAG =
|
|
||||||
Column_SemanticType_TAG;
|
|
||||||
static constexpr SemanticType FIELD =
|
|
||||||
Column_SemanticType_FIELD;
|
|
||||||
static constexpr SemanticType TIMESTAMP =
|
|
||||||
Column_SemanticType_TIMESTAMP;
|
|
||||||
static inline bool SemanticType_IsValid(int value) {
|
|
||||||
return Column_SemanticType_IsValid(value);
|
|
||||||
}
|
|
||||||
static constexpr SemanticType SemanticType_MIN =
|
|
||||||
Column_SemanticType_SemanticType_MIN;
|
|
||||||
static constexpr SemanticType SemanticType_MAX =
|
|
||||||
Column_SemanticType_SemanticType_MAX;
|
|
||||||
static constexpr int SemanticType_ARRAYSIZE =
|
|
||||||
Column_SemanticType_SemanticType_ARRAYSIZE;
|
|
||||||
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
|
|
||||||
SemanticType_descriptor() {
|
|
||||||
return Column_SemanticType_descriptor();
|
|
||||||
}
|
|
||||||
template<typename T>
|
|
||||||
static inline const std::string& SemanticType_Name(T enum_t_value) {
|
|
||||||
static_assert(::std::is_same<T, SemanticType>::value ||
|
|
||||||
::std::is_integral<T>::value,
|
|
||||||
"Incorrect type passed to function SemanticType_Name.");
|
|
||||||
return Column_SemanticType_Name(enum_t_value);
|
|
||||||
}
|
|
||||||
static inline bool SemanticType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
|
|
||||||
SemanticType* value) {
|
|
||||||
return Column_SemanticType_Parse(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
// accessors -------------------------------------------------------
|
// accessors -------------------------------------------------------
|
||||||
|
|
||||||
enum : int {
|
enum : int {
|
||||||
@@ -1058,13 +950,13 @@ class Column final :
|
|||||||
::greptime::v1::Column_Values* values);
|
::greptime::v1::Column_Values* values);
|
||||||
::greptime::v1::Column_Values* unsafe_arena_release_values();
|
::greptime::v1::Column_Values* unsafe_arena_release_values();
|
||||||
|
|
||||||
// .greptime.v1.Column.SemanticType semantic_type = 2;
|
// .greptime.v1.SemanticType semantic_type = 2;
|
||||||
void clear_semantic_type();
|
void clear_semantic_type();
|
||||||
::greptime::v1::Column_SemanticType semantic_type() const;
|
::greptime::v1::SemanticType semantic_type() const;
|
||||||
void set_semantic_type(::greptime::v1::Column_SemanticType value);
|
void set_semantic_type(::greptime::v1::SemanticType value);
|
||||||
private:
|
private:
|
||||||
::greptime::v1::Column_SemanticType _internal_semantic_type() const;
|
::greptime::v1::SemanticType _internal_semantic_type() const;
|
||||||
void _internal_set_semantic_type(::greptime::v1::Column_SemanticType value);
|
void _internal_set_semantic_type(::greptime::v1::SemanticType value);
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// .greptime.v1.ColumnDataType datatype = 5;
|
// .greptime.v1.ColumnDataType datatype = 5;
|
||||||
@@ -1094,197 +986,6 @@ class Column final :
|
|||||||
union { Impl_ _impl_; };
|
union { Impl_ _impl_; };
|
||||||
friend struct ::TableStruct_greptime_2fv1_2fcolumn_2eproto;
|
friend struct ::TableStruct_greptime_2fv1_2fcolumn_2eproto;
|
||||||
};
|
};
|
||||||
// -------------------------------------------------------------------
|
|
||||||
|
|
||||||
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 =
|
|
||||||
2;
|
|
||||||
|
|
||||||
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_2fcolumn_2eproto;
|
|
||||||
};
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
|
|
||||||
@@ -2487,22 +2188,22 @@ inline void Column::set_allocated_column_name(std::string* column_name) {
|
|||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.Column.column_name)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.Column.column_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
// .greptime.v1.Column.SemanticType semantic_type = 2;
|
// .greptime.v1.SemanticType semantic_type = 2;
|
||||||
inline void Column::clear_semantic_type() {
|
inline void Column::clear_semantic_type() {
|
||||||
_impl_.semantic_type_ = 0;
|
_impl_.semantic_type_ = 0;
|
||||||
}
|
}
|
||||||
inline ::greptime::v1::Column_SemanticType Column::_internal_semantic_type() const {
|
inline ::greptime::v1::SemanticType Column::_internal_semantic_type() const {
|
||||||
return static_cast< ::greptime::v1::Column_SemanticType >(_impl_.semantic_type_);
|
return static_cast< ::greptime::v1::SemanticType >(_impl_.semantic_type_);
|
||||||
}
|
}
|
||||||
inline ::greptime::v1::Column_SemanticType Column::semantic_type() const {
|
inline ::greptime::v1::SemanticType Column::semantic_type() const {
|
||||||
// @@protoc_insertion_point(field_get:greptime.v1.Column.semantic_type)
|
// @@protoc_insertion_point(field_get:greptime.v1.Column.semantic_type)
|
||||||
return _internal_semantic_type();
|
return _internal_semantic_type();
|
||||||
}
|
}
|
||||||
inline void Column::_internal_set_semantic_type(::greptime::v1::Column_SemanticType value) {
|
inline void Column::_internal_set_semantic_type(::greptime::v1::SemanticType value) {
|
||||||
|
|
||||||
_impl_.semantic_type_ = value;
|
_impl_.semantic_type_ = value;
|
||||||
}
|
}
|
||||||
inline void Column::set_semantic_type(::greptime::v1::Column_SemanticType value) {
|
inline void Column::set_semantic_type(::greptime::v1::SemanticType value) {
|
||||||
_internal_set_semantic_type(value);
|
_internal_set_semantic_type(value);
|
||||||
// @@protoc_insertion_point(field_set:greptime.v1.Column.semantic_type)
|
// @@protoc_insertion_point(field_set:greptime.v1.Column.semantic_type)
|
||||||
}
|
}
|
||||||
@@ -2667,178 +2368,17 @@ inline void Column::set_datatype(::greptime::v1::ColumnDataType value) {
|
|||||||
// @@protoc_insertion_point(field_set:greptime.v1.Column.datatype)
|
// @@protoc_insertion_point(field_set:greptime.v1.Column.datatype)
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
|
||||||
|
|
||||||
// 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)
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif // __GNUC__
|
#endif // __GNUC__
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
|
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
|
|
||||||
PROTOBUF_NAMESPACE_OPEN
|
|
||||||
|
|
||||||
template <> struct is_proto_enum< ::greptime::v1::Column_SemanticType> : ::std::true_type {};
|
|
||||||
template <>
|
|
||||||
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::Column_SemanticType>() {
|
|
||||||
return ::greptime::v1::Column_SemanticType_descriptor();
|
|
||||||
}
|
|
||||||
template <> struct is_proto_enum< ::greptime::v1::ColumnDataType> : ::std::true_type {};
|
|
||||||
template <>
|
|
||||||
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::ColumnDataType>() {
|
|
||||||
return ::greptime::v1::ColumnDataType_descriptor();
|
|
||||||
}
|
|
||||||
|
|
||||||
PROTOBUF_NAMESPACE_CLOSE
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(global_scope)
|
// @@protoc_insertion_point(global_scope)
|
||||||
|
|
||||||
#include <google/protobuf/port_undef.inc>
|
#include <google/protobuf/port_undef.inc>
|
||||||
|
|||||||
@@ -135,10 +135,26 @@ 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_;
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[8];
|
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[9];
|
||||||
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr;
|
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2];
|
||||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr;
|
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr;
|
||||||
|
|
||||||
const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
@@ -213,6 +229,16 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
|
|||||||
~0u, // no _weak_field_map_
|
~0u, // no _weak_field_map_
|
||||||
~0u, // no _inlined_string_donated_
|
~0u, // no _inlined_string_donated_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::FlightMetadata, _impl_.affected_rows_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::FlightMetadata, _impl_.affected_rows_),
|
||||||
|
~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_),
|
||||||
};
|
};
|
||||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
{ 0, 12, -1, sizeof(::greptime::v1::RequestHeader)},
|
{ 0, 12, -1, sizeof(::greptime::v1::RequestHeader)},
|
||||||
@@ -223,6 +249,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
|||||||
{ 50, -1, -1, sizeof(::greptime::v1::Token)},
|
{ 50, -1, -1, sizeof(::greptime::v1::Token)},
|
||||||
{ 57, -1, -1, sizeof(::greptime::v1::AffectedRows)},
|
{ 57, -1, -1, sizeof(::greptime::v1::AffectedRows)},
|
||||||
{ 64, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
|
{ 64, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
|
||||||
|
{ 71, -1, -1, sizeof(::greptime::v1::ColumnDef)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
@@ -234,6 +261,7 @@ 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,
|
||||||
};
|
};
|
||||||
|
|
||||||
const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||||
@@ -251,16 +279,30 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S
|
|||||||
"\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005T"
|
"\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005T"
|
||||||
"oken\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows\022\r\n\005v"
|
"oken\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows\022\r\n\005v"
|
||||||
"alue\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raffected"
|
"alue\030\001 \001(\r\"B\n\016FlightMetadata\0220\n\raffected"
|
||||||
"_rows\030\001 \001(\0132\031.greptime.v1.AffectedRowsBO"
|
"_rows\030\001 \001(\0132\031.greptime.v1.AffectedRows\"y"
|
||||||
"\n\016io.greptime.v1B\006CommonZ5github.com/Gre"
|
"\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022-\n\010datatype\030\002 "
|
||||||
"ptimeTeam/greptime-proto/go/greptime/v1b"
|
"\001(\0162\033.greptime.v1.ColumnDataType\022\023\n\013is_n"
|
||||||
"\006proto3"
|
"ullable\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001("
|
||||||
|
"\014*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n"
|
||||||
|
"\tTIMESTAMP\020\002*\371\002\n\016ColumnDataType\022\013\n\007BOOLE"
|
||||||
|
"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"
|
||||||
|
"INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32"
|
||||||
|
"\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n"
|
||||||
|
"\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DA"
|
||||||
|
"TETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMEST"
|
||||||
|
"AMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECO"
|
||||||
|
"ND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_S"
|
||||||
|
"ECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MI"
|
||||||
|
"CROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026BO\n\016io.g"
|
||||||
|
"reptime.v1B\006CommonZ5github.com/GreptimeT"
|
||||||
|
"eam/greptime-proto/go/greptime/v1b\006proto"
|
||||||
|
"3"
|
||||||
;
|
;
|
||||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
|
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
|
||||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = {
|
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = {
|
||||||
false, false, 687, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
false, false, 1241, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
||||||
"greptime/v1/common.proto",
|
"greptime/v1/common.proto",
|
||||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 8,
|
&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,
|
||||||
@@ -273,6 +315,56 @@ PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_greptime
|
|||||||
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_greptime_2fv1_2fcommon_2eproto(&descriptor_table_greptime_2fv1_2fcommon_2eproto);
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_greptime_2fv1_2fcommon_2eproto(&descriptor_table_greptime_2fv1_2fcommon_2eproto);
|
||||||
namespace greptime {
|
namespace greptime {
|
||||||
namespace v1 {
|
namespace v1 {
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SemanticType_descriptor() {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fcommon_2eproto);
|
||||||
|
return file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[0];
|
||||||
|
}
|
||||||
|
bool SemanticType_IsValid(int value) {
|
||||||
|
switch (value) {
|
||||||
|
case 0:
|
||||||
|
case 1:
|
||||||
|
case 2:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ColumnDataType_descriptor() {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fcommon_2eproto);
|
||||||
|
return file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[1];
|
||||||
|
}
|
||||||
|
bool ColumnDataType_IsValid(int value) {
|
||||||
|
switch (value) {
|
||||||
|
case 0:
|
||||||
|
case 1:
|
||||||
|
case 2:
|
||||||
|
case 3:
|
||||||
|
case 4:
|
||||||
|
case 5:
|
||||||
|
case 6:
|
||||||
|
case 7:
|
||||||
|
case 8:
|
||||||
|
case 9:
|
||||||
|
case 10:
|
||||||
|
case 11:
|
||||||
|
case 12:
|
||||||
|
case 13:
|
||||||
|
case 14:
|
||||||
|
case 15:
|
||||||
|
case 16:
|
||||||
|
case 17:
|
||||||
|
case 18:
|
||||||
|
case 19:
|
||||||
|
case 20:
|
||||||
|
case 21:
|
||||||
|
case 22:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
@@ -2258,6 +2350,317 @@ void FlightMetadata::InternalSwap(FlightMetadata* other) {
|
|||||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[7]);
|
file_level_metadata_greptime_2fv1_2fcommon_2eproto[7]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===================================================================
|
||||||
|
|
||||||
|
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]);
|
||||||
|
}
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
@@ -2294,6 +2697,10 @@ 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);
|
||||||
|
}
|
||||||
PROTOBUF_NAMESPACE_CLOSE
|
PROTOBUF_NAMESPACE_CLOSE
|
||||||
|
|
||||||
// @@protoc_insertion_point(global_scope)
|
// @@protoc_insertion_point(global_scope)
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
#include <google/protobuf/message.h>
|
#include <google/protobuf/message.h>
|
||||||
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
||||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||||
|
#include <google/protobuf/generated_enum_reflection.h>
|
||||||
#include <google/protobuf/unknown_field_set.h>
|
#include <google/protobuf/unknown_field_set.h>
|
||||||
// @@protoc_insertion_point(includes)
|
// @@protoc_insertion_point(includes)
|
||||||
#include <google/protobuf/port_def.inc>
|
#include <google/protobuf/port_def.inc>
|
||||||
@@ -55,6 +56,9 @@ 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_;
|
||||||
@@ -76,6 +80,7 @@ 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::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader>(Arena*);
|
template<> ::greptime::v1::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader>(Arena*);
|
||||||
template<> ::greptime::v1::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::ResponseHeader>(Arena*);
|
template<> ::greptime::v1::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::ResponseHeader>(Arena*);
|
||||||
@@ -85,6 +90,78 @@ PROTOBUF_NAMESPACE_CLOSE
|
|||||||
namespace greptime {
|
namespace greptime {
|
||||||
namespace v1 {
|
namespace v1 {
|
||||||
|
|
||||||
|
enum SemanticType : int {
|
||||||
|
TAG = 0,
|
||||||
|
FIELD = 1,
|
||||||
|
TIMESTAMP = 2,
|
||||||
|
SemanticType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
|
||||||
|
SemanticType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
|
||||||
|
};
|
||||||
|
bool SemanticType_IsValid(int value);
|
||||||
|
constexpr SemanticType SemanticType_MIN = TAG;
|
||||||
|
constexpr SemanticType SemanticType_MAX = TIMESTAMP;
|
||||||
|
constexpr int SemanticType_ARRAYSIZE = SemanticType_MAX + 1;
|
||||||
|
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SemanticType_descriptor();
|
||||||
|
template<typename T>
|
||||||
|
inline const std::string& SemanticType_Name(T enum_t_value) {
|
||||||
|
static_assert(::std::is_same<T, SemanticType>::value ||
|
||||||
|
::std::is_integral<T>::value,
|
||||||
|
"Incorrect type passed to function SemanticType_Name.");
|
||||||
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
||||||
|
SemanticType_descriptor(), enum_t_value);
|
||||||
|
}
|
||||||
|
inline bool SemanticType_Parse(
|
||||||
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SemanticType* value) {
|
||||||
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SemanticType>(
|
||||||
|
SemanticType_descriptor(), name, value);
|
||||||
|
}
|
||||||
|
enum ColumnDataType : int {
|
||||||
|
BOOLEAN = 0,
|
||||||
|
INT8 = 1,
|
||||||
|
INT16 = 2,
|
||||||
|
INT32 = 3,
|
||||||
|
INT64 = 4,
|
||||||
|
UINT8 = 5,
|
||||||
|
UINT16 = 6,
|
||||||
|
UINT32 = 7,
|
||||||
|
UINT64 = 8,
|
||||||
|
FLOAT32 = 9,
|
||||||
|
FLOAT64 = 10,
|
||||||
|
BINARY = 11,
|
||||||
|
STRING = 12,
|
||||||
|
DATE = 13,
|
||||||
|
DATETIME = 14,
|
||||||
|
TIMESTAMP_SECOND = 15,
|
||||||
|
TIMESTAMP_MILLISECOND = 16,
|
||||||
|
TIMESTAMP_MICROSECOND = 17,
|
||||||
|
TIMESTAMP_NANOSECOND = 18,
|
||||||
|
TIME_SECOND = 19,
|
||||||
|
TIME_MILLISECOND = 20,
|
||||||
|
TIME_MICROSECOND = 21,
|
||||||
|
TIME_NANOSECOND = 22,
|
||||||
|
ColumnDataType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
|
||||||
|
ColumnDataType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
|
||||||
|
};
|
||||||
|
bool ColumnDataType_IsValid(int value);
|
||||||
|
constexpr ColumnDataType ColumnDataType_MIN = BOOLEAN;
|
||||||
|
constexpr ColumnDataType ColumnDataType_MAX = TIME_NANOSECOND;
|
||||||
|
constexpr int ColumnDataType_ARRAYSIZE = ColumnDataType_MAX + 1;
|
||||||
|
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ColumnDataType_descriptor();
|
||||||
|
template<typename T>
|
||||||
|
inline const std::string& ColumnDataType_Name(T enum_t_value) {
|
||||||
|
static_assert(::std::is_same<T, ColumnDataType>::value ||
|
||||||
|
::std::is_integral<T>::value,
|
||||||
|
"Incorrect type passed to function ColumnDataType_Name.");
|
||||||
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
||||||
|
ColumnDataType_descriptor(), enum_t_value);
|
||||||
|
}
|
||||||
|
inline bool ColumnDataType_Parse(
|
||||||
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ColumnDataType* value) {
|
||||||
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ColumnDataType>(
|
||||||
|
ColumnDataType_descriptor(), name, value);
|
||||||
|
}
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
class RequestHeader final :
|
class RequestHeader final :
|
||||||
@@ -1465,6 +1542,197 @@ class FlightMetadata final :
|
|||||||
union { Impl_ _impl_; };
|
union { Impl_ _impl_; };
|
||||||
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
|
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
|
||||||
};
|
};
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
|
|
||||||
@@ -2377,6 +2645,150 @@ inline void FlightMetadata::set_allocated_affected_rows(::greptime::v1::Affected
|
|||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.FlightMetadata.affected_rows)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.FlightMetadata.affected_rows)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// 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)
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif // __GNUC__
|
#endif // __GNUC__
|
||||||
@@ -2394,12 +2806,29 @@ inline void FlightMetadata::set_allocated_affected_rows(::greptime::v1::Affected
|
|||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
|
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
|
|
||||||
|
PROTOBUF_NAMESPACE_OPEN
|
||||||
|
|
||||||
|
template <> struct is_proto_enum< ::greptime::v1::SemanticType> : ::std::true_type {};
|
||||||
|
template <>
|
||||||
|
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::SemanticType>() {
|
||||||
|
return ::greptime::v1::SemanticType_descriptor();
|
||||||
|
}
|
||||||
|
template <> struct is_proto_enum< ::greptime::v1::ColumnDataType> : ::std::true_type {};
|
||||||
|
template <>
|
||||||
|
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::ColumnDataType>() {
|
||||||
|
return ::greptime::v1::ColumnDataType_descriptor();
|
||||||
|
}
|
||||||
|
|
||||||
|
PROTOBUF_NAMESPACE_CLOSE
|
||||||
|
|
||||||
// @@protoc_insertion_point(global_scope)
|
// @@protoc_insertion_point(global_scope)
|
||||||
|
|
||||||
#include <google/protobuf/port_undef.inc>
|
#include <google/protobuf/port_undef.inc>
|
||||||
|
|||||||
@@ -481,7 +481,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
|||||||
|
|
||||||
const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||||
"\n\025greptime/v1/ddl.proto\022\013greptime.v1\032\030gr"
|
"\n\025greptime/v1/ddl.proto\022\013greptime.v1\032\030gr"
|
||||||
"eptime/v1/column.proto\"\207\003\n\nDdlRequest\022:\n"
|
"eptime/v1/common.proto\"\207\003\n\nDdlRequest\022:\n"
|
||||||
"\017create_database\030\001 \001(\0132\037.greptime.v1.Cre"
|
"\017create_database\030\001 \001(\0132\037.greptime.v1.Cre"
|
||||||
"ateDatabaseExprH\000\0224\n\014create_table\030\002 \001(\0132"
|
"ateDatabaseExprH\000\0224\n\014create_table\030\002 \001(\0132"
|
||||||
"\034.greptime.v1.CreateTableExprH\000\022\'\n\005alter"
|
"\034.greptime.v1.CreateTableExprH\000\022\'\n\005alter"
|
||||||
@@ -541,7 +541,7 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
|
|||||||
"eptime-proto/go/greptime/v1b\006proto3"
|
"eptime-proto/go/greptime/v1b\006proto3"
|
||||||
;
|
;
|
||||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
|
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
|
||||||
&::descriptor_table_greptime_2fv1_2fcolumn_2eproto,
|
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||||
};
|
};
|
||||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
|
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
|
||||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
|
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include <google/protobuf/map_field_inl.h>
|
#include <google/protobuf/map_field_inl.h>
|
||||||
#include <google/protobuf/generated_enum_reflection.h>
|
#include <google/protobuf/generated_enum_reflection.h>
|
||||||
#include <google/protobuf/unknown_field_set.h>
|
#include <google/protobuf/unknown_field_set.h>
|
||||||
#include "greptime/v1/column.pb.h"
|
#include "greptime/v1/common.pb.h"
|
||||||
// @@protoc_insertion_point(includes)
|
// @@protoc_insertion_point(includes)
|
||||||
#include <google/protobuf/port_def.inc>
|
#include <google/protobuf/port_def.inc>
|
||||||
#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fddl_2eproto
|
#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fddl_2eproto
|
||||||
|
|||||||
+100
-381
@@ -34,171 +34,13 @@ const (
|
|||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
)
|
)
|
||||||
|
|
||||||
type ColumnDataType int32
|
|
||||||
|
|
||||||
const (
|
|
||||||
ColumnDataType_BOOLEAN ColumnDataType = 0
|
|
||||||
ColumnDataType_INT8 ColumnDataType = 1
|
|
||||||
ColumnDataType_INT16 ColumnDataType = 2
|
|
||||||
ColumnDataType_INT32 ColumnDataType = 3
|
|
||||||
ColumnDataType_INT64 ColumnDataType = 4
|
|
||||||
ColumnDataType_UINT8 ColumnDataType = 5
|
|
||||||
ColumnDataType_UINT16 ColumnDataType = 6
|
|
||||||
ColumnDataType_UINT32 ColumnDataType = 7
|
|
||||||
ColumnDataType_UINT64 ColumnDataType = 8
|
|
||||||
ColumnDataType_FLOAT32 ColumnDataType = 9
|
|
||||||
ColumnDataType_FLOAT64 ColumnDataType = 10
|
|
||||||
ColumnDataType_BINARY ColumnDataType = 11
|
|
||||||
ColumnDataType_STRING ColumnDataType = 12
|
|
||||||
ColumnDataType_DATE ColumnDataType = 13
|
|
||||||
ColumnDataType_DATETIME ColumnDataType = 14
|
|
||||||
ColumnDataType_TIMESTAMP_SECOND ColumnDataType = 15
|
|
||||||
ColumnDataType_TIMESTAMP_MILLISECOND ColumnDataType = 16
|
|
||||||
ColumnDataType_TIMESTAMP_MICROSECOND ColumnDataType = 17
|
|
||||||
ColumnDataType_TIMESTAMP_NANOSECOND ColumnDataType = 18
|
|
||||||
ColumnDataType_TIME_SECOND ColumnDataType = 19
|
|
||||||
ColumnDataType_TIME_MILLISECOND ColumnDataType = 20
|
|
||||||
ColumnDataType_TIME_MICROSECOND ColumnDataType = 21
|
|
||||||
ColumnDataType_TIME_NANOSECOND ColumnDataType = 22
|
|
||||||
)
|
|
||||||
|
|
||||||
// Enum value maps for ColumnDataType.
|
|
||||||
var (
|
|
||||||
ColumnDataType_name = map[int32]string{
|
|
||||||
0: "BOOLEAN",
|
|
||||||
1: "INT8",
|
|
||||||
2: "INT16",
|
|
||||||
3: "INT32",
|
|
||||||
4: "INT64",
|
|
||||||
5: "UINT8",
|
|
||||||
6: "UINT16",
|
|
||||||
7: "UINT32",
|
|
||||||
8: "UINT64",
|
|
||||||
9: "FLOAT32",
|
|
||||||
10: "FLOAT64",
|
|
||||||
11: "BINARY",
|
|
||||||
12: "STRING",
|
|
||||||
13: "DATE",
|
|
||||||
14: "DATETIME",
|
|
||||||
15: "TIMESTAMP_SECOND",
|
|
||||||
16: "TIMESTAMP_MILLISECOND",
|
|
||||||
17: "TIMESTAMP_MICROSECOND",
|
|
||||||
18: "TIMESTAMP_NANOSECOND",
|
|
||||||
19: "TIME_SECOND",
|
|
||||||
20: "TIME_MILLISECOND",
|
|
||||||
21: "TIME_MICROSECOND",
|
|
||||||
22: "TIME_NANOSECOND",
|
|
||||||
}
|
|
||||||
ColumnDataType_value = map[string]int32{
|
|
||||||
"BOOLEAN": 0,
|
|
||||||
"INT8": 1,
|
|
||||||
"INT16": 2,
|
|
||||||
"INT32": 3,
|
|
||||||
"INT64": 4,
|
|
||||||
"UINT8": 5,
|
|
||||||
"UINT16": 6,
|
|
||||||
"UINT32": 7,
|
|
||||||
"UINT64": 8,
|
|
||||||
"FLOAT32": 9,
|
|
||||||
"FLOAT64": 10,
|
|
||||||
"BINARY": 11,
|
|
||||||
"STRING": 12,
|
|
||||||
"DATE": 13,
|
|
||||||
"DATETIME": 14,
|
|
||||||
"TIMESTAMP_SECOND": 15,
|
|
||||||
"TIMESTAMP_MILLISECOND": 16,
|
|
||||||
"TIMESTAMP_MICROSECOND": 17,
|
|
||||||
"TIMESTAMP_NANOSECOND": 18,
|
|
||||||
"TIME_SECOND": 19,
|
|
||||||
"TIME_MILLISECOND": 20,
|
|
||||||
"TIME_MICROSECOND": 21,
|
|
||||||
"TIME_NANOSECOND": 22,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
func (x ColumnDataType) Enum() *ColumnDataType {
|
|
||||||
p := new(ColumnDataType)
|
|
||||||
*p = x
|
|
||||||
return p
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x ColumnDataType) String() string {
|
|
||||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
||||||
}
|
|
||||||
|
|
||||||
func (ColumnDataType) Descriptor() protoreflect.EnumDescriptor {
|
|
||||||
return file_greptime_v1_column_proto_enumTypes[0].Descriptor()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (ColumnDataType) Type() protoreflect.EnumType {
|
|
||||||
return &file_greptime_v1_column_proto_enumTypes[0]
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x ColumnDataType) Number() protoreflect.EnumNumber {
|
|
||||||
return protoreflect.EnumNumber(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use ColumnDataType.Descriptor instead.
|
|
||||||
func (ColumnDataType) EnumDescriptor() ([]byte, []int) {
|
|
||||||
return file_greptime_v1_column_proto_rawDescGZIP(), []int{0}
|
|
||||||
}
|
|
||||||
|
|
||||||
type Column_SemanticType int32
|
|
||||||
|
|
||||||
const (
|
|
||||||
Column_TAG Column_SemanticType = 0
|
|
||||||
Column_FIELD Column_SemanticType = 1
|
|
||||||
Column_TIMESTAMP Column_SemanticType = 2
|
|
||||||
)
|
|
||||||
|
|
||||||
// Enum value maps for Column_SemanticType.
|
|
||||||
var (
|
|
||||||
Column_SemanticType_name = map[int32]string{
|
|
||||||
0: "TAG",
|
|
||||||
1: "FIELD",
|
|
||||||
2: "TIMESTAMP",
|
|
||||||
}
|
|
||||||
Column_SemanticType_value = map[string]int32{
|
|
||||||
"TAG": 0,
|
|
||||||
"FIELD": 1,
|
|
||||||
"TIMESTAMP": 2,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
func (x Column_SemanticType) Enum() *Column_SemanticType {
|
|
||||||
p := new(Column_SemanticType)
|
|
||||||
*p = x
|
|
||||||
return p
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x Column_SemanticType) String() string {
|
|
||||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
||||||
}
|
|
||||||
|
|
||||||
func (Column_SemanticType) Descriptor() protoreflect.EnumDescriptor {
|
|
||||||
return file_greptime_v1_column_proto_enumTypes[1].Descriptor()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (Column_SemanticType) Type() protoreflect.EnumType {
|
|
||||||
return &file_greptime_v1_column_proto_enumTypes[1]
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x Column_SemanticType) Number() protoreflect.EnumNumber {
|
|
||||||
return protoreflect.EnumNumber(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use Column_SemanticType.Descriptor instead.
|
|
||||||
func (Column_SemanticType) EnumDescriptor() ([]byte, []int) {
|
|
||||||
return file_greptime_v1_column_proto_rawDescGZIP(), []int{0, 0}
|
|
||||||
}
|
|
||||||
|
|
||||||
type Column struct {
|
type Column struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
|
ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
|
||||||
SemanticType Column_SemanticType `protobuf:"varint,2,opt,name=semantic_type,json=semanticType,proto3,enum=greptime.v1.Column_SemanticType" json:"semantic_type,omitempty"`
|
SemanticType SemanticType `protobuf:"varint,2,opt,name=semantic_type,json=semanticType,proto3,enum=greptime.v1.SemanticType" json:"semantic_type,omitempty"`
|
||||||
// The array of non-null values in this column.
|
// The array of non-null values in this column.
|
||||||
//
|
//
|
||||||
// For example: suppose there is a column "foo" that contains some int32
|
// For example: suppose there is a column "foo" that contains some int32
|
||||||
@@ -257,11 +99,11 @@ func (x *Column) GetColumnName() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Column) GetSemanticType() Column_SemanticType {
|
func (x *Column) GetSemanticType() SemanticType {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.SemanticType
|
return x.SemanticType
|
||||||
}
|
}
|
||||||
return Column_TAG
|
return SemanticType_TAG
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Column) GetValues() *Column_Values {
|
func (x *Column) GetValues() *Column_Values {
|
||||||
@@ -285,77 +127,6 @@ func (x *Column) GetDatatype() ColumnDataType {
|
|||||||
return ColumnDataType_BOOLEAN
|
return ColumnDataType_BOOLEAN
|
||||||
}
|
}
|
||||||
|
|
||||||
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_column_proto_msgTypes[1]
|
|
||||||
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_column_proto_msgTypes[1]
|
|
||||||
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_column_proto_rawDescGZIP(), []int{1}
|
|
||||||
}
|
|
||||||
|
|
||||||
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 Column_Values struct {
|
type Column_Values struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@@ -389,7 +160,7 @@ type Column_Values struct {
|
|||||||
func (x *Column_Values) Reset() {
|
func (x *Column_Values) Reset() {
|
||||||
*x = Column_Values{}
|
*x = Column_Values{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_column_proto_msgTypes[2]
|
mi := &file_greptime_v1_column_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -402,7 +173,7 @@ func (x *Column_Values) String() string {
|
|||||||
func (*Column_Values) ProtoMessage() {}
|
func (*Column_Values) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *Column_Values) ProtoReflect() protoreflect.Message {
|
func (x *Column_Values) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_column_proto_msgTypes[2]
|
mi := &file_greptime_v1_column_proto_msgTypes[1]
|
||||||
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 {
|
||||||
@@ -584,123 +355,86 @@ var File_greptime_v1_column_proto protoreflect.FileDescriptor
|
|||||||
var file_greptime_v1_column_proto_rawDesc = []byte{
|
var file_greptime_v1_column_proto_rawDesc = []byte{
|
||||||
0x0a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f,
|
0x0a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f,
|
||||||
0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70,
|
0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70,
|
||||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x22, 0xb7, 0x09, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75,
|
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d,
|
0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||||
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e,
|
0x6f, 0x22, 0xfd, 0x08, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b,
|
||||||
0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f,
|
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65,
|
0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a,
|
||||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e,
|
0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
|
||||||
0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65,
|
0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||||
0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x76, 0x61,
|
0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52,
|
||||||
0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65,
|
0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a,
|
||||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e,
|
0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
|
||||||
0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b,
|
|
||||||
0x0a, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
||||||
0x0c, 0x52, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x37, 0x0a, 0x08, 0x64,
|
|
||||||
0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e,
|
|
||||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75,
|
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75,
|
||||||
0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61,
|
0x6d, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||||
0x74, 0x79, 0x70, 0x65, 0x1a, 0x87, 0x07, 0x0a, 0x06, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12,
|
0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04,
|
||||||
0x1b, 0x0a, 0x09, 0x69, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x37,
|
||||||
0x28, 0x05, 0x52, 0x08, 0x69, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a,
|
0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e,
|
||||||
0x69, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05,
|
0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
|
||||||
0x52, 0x09, 0x69, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69,
|
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64,
|
||||||
0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52,
|
0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x87, 0x07, 0x0a, 0x06, 0x56, 0x61, 0x6c, 0x75,
|
||||||
0x09, 0x69, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x36,
|
0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18,
|
||||||
0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09,
|
0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x69, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12,
|
||||||
0x69, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x38, 0x5f,
|
0x1d, 0x0a, 0x0a, 0x69, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20,
|
||||||
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x75, 0x38,
|
0x03, 0x28, 0x05, 0x52, 0x09, 0x69, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d,
|
||||||
0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x31, 0x36, 0x5f, 0x76, 0x61,
|
0x0a, 0x0a, 0x69, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03,
|
||||||
0x6c, 0x75, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x31, 0x36, 0x56,
|
0x28, 0x05, 0x52, 0x09, 0x69, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a,
|
||||||
0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c,
|
0x0a, 0x69, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,
|
||||||
0x75, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x33, 0x32, 0x56, 0x61,
|
0x03, 0x52, 0x09, 0x69, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09,
|
||||||
0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75,
|
0x75, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52,
|
||||||
0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x75, 0x36, 0x34, 0x56, 0x61, 0x6c,
|
0x08, 0x75, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x31, 0x36,
|
||||||
0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x09, 0x75,
|
||||||
0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x02, 0x52, 0x09, 0x66, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75,
|
0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x33, 0x32, 0x5f,
|
||||||
0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x33,
|
||||||
0x18, 0x0a, 0x20, 0x03, 0x28, 0x01, 0x52, 0x09, 0x66, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65,
|
0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x36, 0x34, 0x5f, 0x76,
|
||||||
0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
|
0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x75, 0x36, 0x34,
|
||||||
0x18, 0x0b, 0x20, 0x03, 0x28, 0x08, 0x52, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75,
|
0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x33, 0x32, 0x5f, 0x76, 0x61,
|
||||||
0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c,
|
0x6c, 0x75, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x02, 0x52, 0x09, 0x66, 0x33, 0x32, 0x56,
|
||||||
0x75, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x62, 0x69, 0x6e, 0x61, 0x72,
|
0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c,
|
||||||
0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e,
|
0x75, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x01, 0x52, 0x09, 0x66, 0x36, 0x34, 0x56, 0x61,
|
||||||
0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c,
|
0x6c, 0x75, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c,
|
||||||
0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b,
|
0x75, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x08, 0x52, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x56,
|
||||||
0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28,
|
0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f,
|
||||||
0x05, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x27, 0x0a,
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x62, 0x69,
|
||||||
0x0f, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
|
0x6e, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74,
|
||||||
0x18, 0x0f, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65,
|
0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28,
|
||||||
0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x73, 0x5f, 0x73, 0x65, 0x63,
|
0x09, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12,
|
||||||
0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x03,
|
0x1f, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0e,
|
||||||
0x52, 0x0e, 0x74, 0x73, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73,
|
0x20, 0x03, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73,
|
||||||
0x12, 0x32, 0x0a, 0x15, 0x74, 0x73, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f,
|
0x12, 0x27, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c,
|
||||||
0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x03, 0x52,
|
0x75, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74,
|
||||||
0x13, 0x74, 0x73, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61,
|
0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x73, 0x5f,
|
||||||
0x6c, 0x75, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74, 0x73, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f,
|
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x10, 0x20,
|
||||||
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x12, 0x20,
|
0x03, 0x28, 0x03, 0x52, 0x0e, 0x74, 0x73, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c,
|
||||||
0x03, 0x28, 0x03, 0x52, 0x13, 0x74, 0x73, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f,
|
0x75, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74, 0x73, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73,
|
||||||
0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x74, 0x73, 0x5f, 0x6e,
|
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03,
|
||||||
0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
|
0x28, 0x03, 0x52, 0x13, 0x74, 0x73, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e,
|
||||||
0x18, 0x13, 0x20, 0x03, 0x28, 0x03, 0x52, 0x12, 0x74, 0x73, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65,
|
0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74, 0x73, 0x5f, 0x6d, 0x69,
|
||||||
0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x69,
|
0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
|
||||||
0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
|
0x18, 0x12, 0x20, 0x03, 0x28, 0x03, 0x52, 0x13, 0x74, 0x73, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73,
|
||||||
0x18, 0x14, 0x20, 0x03, 0x28, 0x03, 0x52, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f,
|
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x74,
|
||||||
0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65,
|
0x73, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c,
|
||||||
0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c,
|
0x75, 0x65, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x03, 0x52, 0x12, 0x74, 0x73, 0x4e, 0x61, 0x6e,
|
||||||
0x75, 0x65, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d,
|
0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x2c, 0x0a,
|
||||||
0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73,
|
0x12, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c,
|
||||||
0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65,
|
0x75, 0x65, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x03, 0x52, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x53,
|
||||||
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28,
|
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74,
|
||||||
0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f,
|
0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f,
|
||||||
0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65,
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69,
|
||||||
0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75,
|
0x6d, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c,
|
||||||
0x65, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x03, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61,
|
0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72,
|
||||||
0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x31,
|
0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x16,
|
||||||
0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07,
|
0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73,
|
||||||
0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c, 0x44,
|
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74,
|
||||||
0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10,
|
0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76,
|
||||||
0x02, 0x22, 0xa8, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12,
|
0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x03, 0x52, 0x14, 0x74, 0x69, 0x6d,
|
||||||
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
|
0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
|
||||||
0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18,
|
0x73, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||||
0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
0x2e, 0x76, 0x31, 0x42, 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x5a, 0x35, 0x67, 0x69,
|
||||||
0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79,
|
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b,
|
0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70,
|
||||||
0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
|
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||||
0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a,
|
0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61,
|
|
||||||
0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75,
|
|
||||||
0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x2a, 0xf9, 0x02, 0x0a,
|
|
||||||
0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12,
|
|
||||||
0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04,
|
|
||||||
0x49, 0x4e, 0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10,
|
|
||||||
0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05,
|
|
||||||
0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49, 0x4e, 0x54, 0x38,
|
|
||||||
0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x06, 0x12, 0x0a,
|
|
||||||
0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49,
|
|
||||||
0x4e, 0x54, 0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33,
|
|
||||||
0x32, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x0a,
|
|
||||||
0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06,
|
|
||||||
0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x45,
|
|
||||||
0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x0e,
|
|
||||||
0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x53, 0x45,
|
|
||||||
0x43, 0x4f, 0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54,
|
|
||||||
0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
|
|
||||||
0x10, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d,
|
|
||||||
0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14,
|
|
||||||
0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45,
|
|
||||||
0x43, 0x4f, 0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53,
|
|
||||||
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f,
|
|
||||||
0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14, 0x12, 0x14, 0x0a,
|
|
||||||
0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e,
|
|
||||||
0x44, 0x10, 0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x41, 0x4e, 0x4f,
|
|
||||||
0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67,
|
|
||||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x43, 0x6f, 0x6c, 0x75,
|
|
||||||
0x6d, 0x6e, 0x73, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
|
||||||
0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65,
|
|
||||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67,
|
|
||||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
||||||
0x6f, 0x33,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -715,25 +449,22 @@ func file_greptime_v1_column_proto_rawDescGZIP() []byte {
|
|||||||
return file_greptime_v1_column_proto_rawDescData
|
return file_greptime_v1_column_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_greptime_v1_column_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
var file_greptime_v1_column_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||||
var file_greptime_v1_column_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
||||||
var file_greptime_v1_column_proto_goTypes = []interface{}{
|
var file_greptime_v1_column_proto_goTypes = []interface{}{
|
||||||
(ColumnDataType)(0), // 0: greptime.v1.ColumnDataType
|
(*Column)(nil), // 0: greptime.v1.Column
|
||||||
(Column_SemanticType)(0), // 1: greptime.v1.Column.SemanticType
|
(*Column_Values)(nil), // 1: greptime.v1.Column.Values
|
||||||
(*Column)(nil), // 2: greptime.v1.Column
|
(SemanticType)(0), // 2: greptime.v1.SemanticType
|
||||||
(*ColumnDef)(nil), // 3: greptime.v1.ColumnDef
|
(ColumnDataType)(0), // 3: greptime.v1.ColumnDataType
|
||||||
(*Column_Values)(nil), // 4: greptime.v1.Column.Values
|
|
||||||
}
|
}
|
||||||
var file_greptime_v1_column_proto_depIdxs = []int32{
|
var file_greptime_v1_column_proto_depIdxs = []int32{
|
||||||
1, // 0: greptime.v1.Column.semantic_type:type_name -> greptime.v1.Column.SemanticType
|
2, // 0: greptime.v1.Column.semantic_type:type_name -> greptime.v1.SemanticType
|
||||||
4, // 1: greptime.v1.Column.values:type_name -> greptime.v1.Column.Values
|
1, // 1: greptime.v1.Column.values:type_name -> greptime.v1.Column.Values
|
||||||
0, // 2: greptime.v1.Column.datatype:type_name -> greptime.v1.ColumnDataType
|
3, // 2: greptime.v1.Column.datatype:type_name -> greptime.v1.ColumnDataType
|
||||||
0, // 3: greptime.v1.ColumnDef.datatype:type_name -> greptime.v1.ColumnDataType
|
3, // [3:3] is the sub-list for method output_type
|
||||||
4, // [4:4] is the sub-list for method output_type
|
3, // [3:3] is the sub-list for method input_type
|
||||||
4, // [4:4] is the sub-list for method input_type
|
3, // [3:3] is the sub-list for extension type_name
|
||||||
4, // [4:4] is the sub-list for extension type_name
|
3, // [3:3] is the sub-list for extension extendee
|
||||||
4, // [4:4] is the sub-list for extension extendee
|
0, // [0:3] is the sub-list for field type_name
|
||||||
0, // [0:4] is the sub-list for field type_name
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_greptime_v1_column_proto_init() }
|
func init() { file_greptime_v1_column_proto_init() }
|
||||||
@@ -741,6 +472,7 @@ func file_greptime_v1_column_proto_init() {
|
|||||||
if File_greptime_v1_column_proto != nil {
|
if File_greptime_v1_column_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
file_greptime_v1_common_proto_init()
|
||||||
if !protoimpl.UnsafeEnabled {
|
if !protoimpl.UnsafeEnabled {
|
||||||
file_greptime_v1_column_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_column_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*Column); i {
|
switch v := v.(*Column); i {
|
||||||
@@ -755,18 +487,6 @@ func file_greptime_v1_column_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_column_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_column_proto_msgTypes[1].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_column_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*Column_Values); i {
|
switch v := v.(*Column_Values); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@@ -784,14 +504,13 @@ func file_greptime_v1_column_proto_init() {
|
|||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_greptime_v1_column_proto_rawDesc,
|
RawDescriptor: file_greptime_v1_column_proto_rawDesc,
|
||||||
NumEnums: 2,
|
NumEnums: 0,
|
||||||
NumMessages: 3,
|
NumMessages: 2,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
GoTypes: file_greptime_v1_column_proto_goTypes,
|
GoTypes: file_greptime_v1_column_proto_goTypes,
|
||||||
DependencyIndexes: file_greptime_v1_column_proto_depIdxs,
|
DependencyIndexes: file_greptime_v1_column_proto_depIdxs,
|
||||||
EnumInfos: file_greptime_v1_column_proto_enumTypes,
|
|
||||||
MessageInfos: file_greptime_v1_column_proto_msgTypes,
|
MessageInfos: file_greptime_v1_column_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_greptime_v1_column_proto = out.File
|
File_greptime_v1_column_proto = out.File
|
||||||
|
|||||||
+312
-28
@@ -34,6 +34,164 @@ const (
|
|||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type SemanticType int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
SemanticType_TAG SemanticType = 0
|
||||||
|
SemanticType_FIELD SemanticType = 1
|
||||||
|
SemanticType_TIMESTAMP SemanticType = 2
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for SemanticType.
|
||||||
|
var (
|
||||||
|
SemanticType_name = map[int32]string{
|
||||||
|
0: "TAG",
|
||||||
|
1: "FIELD",
|
||||||
|
2: "TIMESTAMP",
|
||||||
|
}
|
||||||
|
SemanticType_value = map[string]int32{
|
||||||
|
"TAG": 0,
|
||||||
|
"FIELD": 1,
|
||||||
|
"TIMESTAMP": 2,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x SemanticType) Enum() *SemanticType {
|
||||||
|
p := new(SemanticType)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x SemanticType) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (SemanticType) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_greptime_v1_common_proto_enumTypes[0].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (SemanticType) Type() protoreflect.EnumType {
|
||||||
|
return &file_greptime_v1_common_proto_enumTypes[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x SemanticType) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use SemanticType.Descriptor instead.
|
||||||
|
func (SemanticType) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_greptime_v1_common_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
type ColumnDataType int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
ColumnDataType_BOOLEAN ColumnDataType = 0
|
||||||
|
ColumnDataType_INT8 ColumnDataType = 1
|
||||||
|
ColumnDataType_INT16 ColumnDataType = 2
|
||||||
|
ColumnDataType_INT32 ColumnDataType = 3
|
||||||
|
ColumnDataType_INT64 ColumnDataType = 4
|
||||||
|
ColumnDataType_UINT8 ColumnDataType = 5
|
||||||
|
ColumnDataType_UINT16 ColumnDataType = 6
|
||||||
|
ColumnDataType_UINT32 ColumnDataType = 7
|
||||||
|
ColumnDataType_UINT64 ColumnDataType = 8
|
||||||
|
ColumnDataType_FLOAT32 ColumnDataType = 9
|
||||||
|
ColumnDataType_FLOAT64 ColumnDataType = 10
|
||||||
|
ColumnDataType_BINARY ColumnDataType = 11
|
||||||
|
ColumnDataType_STRING ColumnDataType = 12
|
||||||
|
ColumnDataType_DATE ColumnDataType = 13
|
||||||
|
ColumnDataType_DATETIME ColumnDataType = 14
|
||||||
|
ColumnDataType_TIMESTAMP_SECOND ColumnDataType = 15
|
||||||
|
ColumnDataType_TIMESTAMP_MILLISECOND ColumnDataType = 16
|
||||||
|
ColumnDataType_TIMESTAMP_MICROSECOND ColumnDataType = 17
|
||||||
|
ColumnDataType_TIMESTAMP_NANOSECOND ColumnDataType = 18
|
||||||
|
ColumnDataType_TIME_SECOND ColumnDataType = 19
|
||||||
|
ColumnDataType_TIME_MILLISECOND ColumnDataType = 20
|
||||||
|
ColumnDataType_TIME_MICROSECOND ColumnDataType = 21
|
||||||
|
ColumnDataType_TIME_NANOSECOND ColumnDataType = 22
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for ColumnDataType.
|
||||||
|
var (
|
||||||
|
ColumnDataType_name = map[int32]string{
|
||||||
|
0: "BOOLEAN",
|
||||||
|
1: "INT8",
|
||||||
|
2: "INT16",
|
||||||
|
3: "INT32",
|
||||||
|
4: "INT64",
|
||||||
|
5: "UINT8",
|
||||||
|
6: "UINT16",
|
||||||
|
7: "UINT32",
|
||||||
|
8: "UINT64",
|
||||||
|
9: "FLOAT32",
|
||||||
|
10: "FLOAT64",
|
||||||
|
11: "BINARY",
|
||||||
|
12: "STRING",
|
||||||
|
13: "DATE",
|
||||||
|
14: "DATETIME",
|
||||||
|
15: "TIMESTAMP_SECOND",
|
||||||
|
16: "TIMESTAMP_MILLISECOND",
|
||||||
|
17: "TIMESTAMP_MICROSECOND",
|
||||||
|
18: "TIMESTAMP_NANOSECOND",
|
||||||
|
19: "TIME_SECOND",
|
||||||
|
20: "TIME_MILLISECOND",
|
||||||
|
21: "TIME_MICROSECOND",
|
||||||
|
22: "TIME_NANOSECOND",
|
||||||
|
}
|
||||||
|
ColumnDataType_value = map[string]int32{
|
||||||
|
"BOOLEAN": 0,
|
||||||
|
"INT8": 1,
|
||||||
|
"INT16": 2,
|
||||||
|
"INT32": 3,
|
||||||
|
"INT64": 4,
|
||||||
|
"UINT8": 5,
|
||||||
|
"UINT16": 6,
|
||||||
|
"UINT32": 7,
|
||||||
|
"UINT64": 8,
|
||||||
|
"FLOAT32": 9,
|
||||||
|
"FLOAT64": 10,
|
||||||
|
"BINARY": 11,
|
||||||
|
"STRING": 12,
|
||||||
|
"DATE": 13,
|
||||||
|
"DATETIME": 14,
|
||||||
|
"TIMESTAMP_SECOND": 15,
|
||||||
|
"TIMESTAMP_MILLISECOND": 16,
|
||||||
|
"TIMESTAMP_MICROSECOND": 17,
|
||||||
|
"TIMESTAMP_NANOSECOND": 18,
|
||||||
|
"TIME_SECOND": 19,
|
||||||
|
"TIME_MILLISECOND": 20,
|
||||||
|
"TIME_MICROSECOND": 21,
|
||||||
|
"TIME_NANOSECOND": 22,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x ColumnDataType) Enum() *ColumnDataType {
|
||||||
|
p := new(ColumnDataType)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x ColumnDataType) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ColumnDataType) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_greptime_v1_common_proto_enumTypes[1].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ColumnDataType) Type() protoreflect.EnumType {
|
||||||
|
return &file_greptime_v1_common_proto_enumTypes[1]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x ColumnDataType) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use ColumnDataType.Descriptor instead.
|
||||||
|
func (ColumnDataType) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_greptime_v1_common_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
type RequestHeader struct {
|
type RequestHeader struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@@ -507,6 +665,77 @@ func (x *FlightMetadata) GetAffectedRows() *AffectedRows {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
var File_greptime_v1_common_proto protoreflect.FileDescriptor
|
var File_greptime_v1_common_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_greptime_v1_common_proto_rawDesc = []byte{
|
var file_greptime_v1_common_proto_rawDesc = []byte{
|
||||||
@@ -556,13 +785,50 @@ var file_greptime_v1_common_proto_rawDesc = []byte{
|
|||||||
0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
||||||
0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,
|
0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,
|
||||||
0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x0c, 0x61, 0x66, 0x66,
|
0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x0c, 0x61, 0x66, 0x66,
|
||||||
0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e,
|
0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x22, 0xa8, 0x01, 0x0a, 0x09, 0x43, 0x6f,
|
||||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d,
|
0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
||||||
0x6d, 0x6f, 0x6e, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64,
|
||||||
0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65,
|
0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e,
|
||||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67,
|
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75,
|
||||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61,
|
||||||
0x6f, 0x33,
|
0x74, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61,
|
||||||
|
0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c,
|
||||||
|
0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
|
||||||
|
0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||||
|
0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72,
|
||||||
|
0x61, 0x69, 0x6e, 0x74, 0x2a, 0x31, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63,
|
||||||
|
0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a,
|
||||||
|
0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45,
|
||||||
|
0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02, 0x2a, 0xf9, 0x02, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75,
|
||||||
|
0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f,
|
||||||
|
0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x54, 0x38, 0x10,
|
||||||
|
0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05,
|
||||||
|
0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34,
|
||||||
|
0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a,
|
||||||
|
0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e,
|
||||||
|
0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10,
|
||||||
|
0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x09, 0x12, 0x0b,
|
||||||
|
0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x42,
|
||||||
|
0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e,
|
||||||
|
0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x0c, 0x0a,
|
||||||
|
0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x0e, 0x12, 0x14, 0x0a, 0x10, 0x54,
|
||||||
|
0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
|
||||||
|
0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d,
|
||||||
|
0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x10, 0x12, 0x19, 0x0a, 0x15,
|
||||||
|
0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53,
|
||||||
|
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x53,
|
||||||
|
0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
|
||||||
|
0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44,
|
||||||
|
0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49,
|
||||||
|
0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45,
|
||||||
|
0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x13,
|
||||||
|
0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e,
|
||||||
|
0x44, 0x10, 0x16, 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 (
|
||||||
@@ -577,28 +843,33 @@ func file_greptime_v1_common_proto_rawDescGZIP() []byte {
|
|||||||
return file_greptime_v1_common_proto_rawDescData
|
return file_greptime_v1_common_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||||
|
var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||||
var file_greptime_v1_common_proto_goTypes = []interface{}{
|
var file_greptime_v1_common_proto_goTypes = []interface{}{
|
||||||
(*RequestHeader)(nil), // 0: greptime.v1.RequestHeader
|
(SemanticType)(0), // 0: greptime.v1.SemanticType
|
||||||
(*ResponseHeader)(nil), // 1: greptime.v1.ResponseHeader
|
(ColumnDataType)(0), // 1: greptime.v1.ColumnDataType
|
||||||
(*Status)(nil), // 2: greptime.v1.Status
|
(*RequestHeader)(nil), // 2: greptime.v1.RequestHeader
|
||||||
(*AuthHeader)(nil), // 3: greptime.v1.AuthHeader
|
(*ResponseHeader)(nil), // 3: greptime.v1.ResponseHeader
|
||||||
(*Basic)(nil), // 4: greptime.v1.Basic
|
(*Status)(nil), // 4: greptime.v1.Status
|
||||||
(*Token)(nil), // 5: greptime.v1.Token
|
(*AuthHeader)(nil), // 5: greptime.v1.AuthHeader
|
||||||
(*AffectedRows)(nil), // 6: greptime.v1.AffectedRows
|
(*Basic)(nil), // 6: greptime.v1.Basic
|
||||||
(*FlightMetadata)(nil), // 7: greptime.v1.FlightMetadata
|
(*Token)(nil), // 7: greptime.v1.Token
|
||||||
|
(*AffectedRows)(nil), // 8: greptime.v1.AffectedRows
|
||||||
|
(*FlightMetadata)(nil), // 9: greptime.v1.FlightMetadata
|
||||||
|
(*ColumnDef)(nil), // 10: greptime.v1.ColumnDef
|
||||||
}
|
}
|
||||||
var file_greptime_v1_common_proto_depIdxs = []int32{
|
var file_greptime_v1_common_proto_depIdxs = []int32{
|
||||||
3, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader
|
5, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader
|
||||||
2, // 1: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status
|
4, // 1: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status
|
||||||
4, // 2: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
|
6, // 2: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
|
||||||
5, // 3: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
|
7, // 3: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
|
||||||
6, // 4: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
|
8, // 4: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
|
||||||
5, // [5:5] is the sub-list for method output_type
|
1, // 5: greptime.v1.ColumnDef.datatype:type_name -> greptime.v1.ColumnDataType
|
||||||
5, // [5:5] is the sub-list for method input_type
|
6, // [6:6] is the sub-list for method output_type
|
||||||
5, // [5:5] is the sub-list for extension type_name
|
6, // [6:6] is the sub-list for method input_type
|
||||||
5, // [5:5] is the sub-list for extension extendee
|
6, // [6:6] is the sub-list for extension type_name
|
||||||
0, // [0:5] is the sub-list for field type_name
|
6, // [6:6] is the sub-list for extension extendee
|
||||||
|
0, // [0:6] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_greptime_v1_common_proto_init() }
|
func init() { file_greptime_v1_common_proto_init() }
|
||||||
@@ -703,6 +974,18 @@ func file_greptime_v1_common_proto_init() {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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[0].OneofWrappers = []interface{}{}
|
file_greptime_v1_common_proto_msgTypes[0].OneofWrappers = []interface{}{}
|
||||||
file_greptime_v1_common_proto_msgTypes[3].OneofWrappers = []interface{}{
|
file_greptime_v1_common_proto_msgTypes[3].OneofWrappers = []interface{}{
|
||||||
@@ -714,13 +997,14 @@ func file_greptime_v1_common_proto_init() {
|
|||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
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: 0,
|
NumEnums: 2,
|
||||||
NumMessages: 8,
|
NumMessages: 9,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
GoTypes: file_greptime_v1_common_proto_goTypes,
|
GoTypes: file_greptime_v1_common_proto_goTypes,
|
||||||
DependencyIndexes: file_greptime_v1_common_proto_depIdxs,
|
DependencyIndexes: file_greptime_v1_common_proto_depIdxs,
|
||||||
|
EnumInfos: file_greptime_v1_common_proto_enumTypes,
|
||||||
MessageInfos: file_greptime_v1_common_proto_msgTypes,
|
MessageInfos: file_greptime_v1_common_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_greptime_v1_common_proto = out.File
|
File_greptime_v1_common_proto = out.File
|
||||||
|
|||||||
@@ -1212,7 +1212,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
|
|||||||
0x0a, 0x15, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x64,
|
0x0a, 0x15, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x64,
|
||||||
0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
0x65, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76,
|
0x65, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76,
|
||||||
0x31, 0x2f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf,
|
0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf,
|
||||||
0x03, 0x0a, 0x0a, 0x44, 0x64, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a,
|
0x03, 0x0a, 0x0a, 0x44, 0x64, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a,
|
||||||
0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
|
0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
@@ -1470,7 +1470,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
if File_greptime_v1_ddl_proto != nil {
|
if File_greptime_v1_ddl_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
file_greptime_v1_column_proto_init()
|
file_greptime_v1_common_proto_init()
|
||||||
if !protoimpl.UnsafeEnabled {
|
if !protoimpl.UnsafeEnabled {
|
||||||
file_greptime_v1_ddl_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DdlRequest); i {
|
switch v := v.(*DdlRequest); i {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -2184,12 +2184,12 @@ public final class Ddl {
|
|||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
java.util.List<io.greptime.v1.Columns.ColumnDef>
|
java.util.List<io.greptime.v1.Common.ColumnDef>
|
||||||
getColumnDefsList();
|
getColumnDefsList();
|
||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
io.greptime.v1.Columns.ColumnDef getColumnDefs(int index);
|
io.greptime.v1.Common.ColumnDef getColumnDefs(int index);
|
||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
@@ -2197,12 +2197,12 @@ public final class Ddl {
|
|||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
java.util.List<? extends io.greptime.v1.Columns.ColumnDefOrBuilder>
|
java.util.List<? extends io.greptime.v1.Common.ColumnDefOrBuilder>
|
||||||
getColumnDefsOrBuilderList();
|
getColumnDefsOrBuilderList();
|
||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
io.greptime.v1.Columns.ColumnDefOrBuilder getColumnDefsOrBuilder(
|
io.greptime.v1.Common.ColumnDefOrBuilder getColumnDefsOrBuilder(
|
||||||
int index);
|
int index);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -2409,11 +2409,11 @@ java.lang.String defaultValue);
|
|||||||
}
|
}
|
||||||
case 42: {
|
case 42: {
|
||||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||||
columnDefs_ = new java.util.ArrayList<io.greptime.v1.Columns.ColumnDef>();
|
columnDefs_ = new java.util.ArrayList<io.greptime.v1.Common.ColumnDef>();
|
||||||
mutable_bitField0_ |= 0x00000001;
|
mutable_bitField0_ |= 0x00000001;
|
||||||
}
|
}
|
||||||
columnDefs_.add(
|
columnDefs_.add(
|
||||||
input.readMessage(io.greptime.v1.Columns.ColumnDef.parser(), extensionRegistry));
|
input.readMessage(io.greptime.v1.Common.ColumnDef.parser(), extensionRegistry));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 50: {
|
case 50: {
|
||||||
@@ -2697,19 +2697,19 @@ java.lang.String defaultValue);
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static final int COLUMN_DEFS_FIELD_NUMBER = 5;
|
public static final int COLUMN_DEFS_FIELD_NUMBER = 5;
|
||||||
private java.util.List<io.greptime.v1.Columns.ColumnDef> columnDefs_;
|
private java.util.List<io.greptime.v1.Common.ColumnDef> columnDefs_;
|
||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public java.util.List<io.greptime.v1.Columns.ColumnDef> getColumnDefsList() {
|
public java.util.List<io.greptime.v1.Common.ColumnDef> getColumnDefsList() {
|
||||||
return columnDefs_;
|
return columnDefs_;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public java.util.List<? extends io.greptime.v1.Columns.ColumnDefOrBuilder>
|
public java.util.List<? extends io.greptime.v1.Common.ColumnDefOrBuilder>
|
||||||
getColumnDefsOrBuilderList() {
|
getColumnDefsOrBuilderList() {
|
||||||
return columnDefs_;
|
return columnDefs_;
|
||||||
}
|
}
|
||||||
@@ -2724,14 +2724,14 @@ java.lang.String defaultValue);
|
|||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public io.greptime.v1.Columns.ColumnDef getColumnDefs(int index) {
|
public io.greptime.v1.Common.ColumnDef getColumnDefs(int index) {
|
||||||
return columnDefs_.get(index);
|
return columnDefs_.get(index);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public io.greptime.v1.Columns.ColumnDefOrBuilder getColumnDefsOrBuilder(
|
public io.greptime.v1.Common.ColumnDefOrBuilder getColumnDefsOrBuilder(
|
||||||
int index) {
|
int index) {
|
||||||
return columnDefs_.get(index);
|
return columnDefs_.get(index);
|
||||||
}
|
}
|
||||||
@@ -3917,22 +3917,22 @@ java.lang.String defaultValue);
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private java.util.List<io.greptime.v1.Columns.ColumnDef> columnDefs_ =
|
private java.util.List<io.greptime.v1.Common.ColumnDef> columnDefs_ =
|
||||||
java.util.Collections.emptyList();
|
java.util.Collections.emptyList();
|
||||||
private void ensureColumnDefsIsMutable() {
|
private void ensureColumnDefsIsMutable() {
|
||||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||||
columnDefs_ = new java.util.ArrayList<io.greptime.v1.Columns.ColumnDef>(columnDefs_);
|
columnDefs_ = new java.util.ArrayList<io.greptime.v1.Common.ColumnDef>(columnDefs_);
|
||||||
bitField0_ |= 0x00000001;
|
bitField0_ |= 0x00000001;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
||||||
io.greptime.v1.Columns.ColumnDef, io.greptime.v1.Columns.ColumnDef.Builder, io.greptime.v1.Columns.ColumnDefOrBuilder> columnDefsBuilder_;
|
io.greptime.v1.Common.ColumnDef, io.greptime.v1.Common.ColumnDef.Builder, io.greptime.v1.Common.ColumnDefOrBuilder> columnDefsBuilder_;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public java.util.List<io.greptime.v1.Columns.ColumnDef> getColumnDefsList() {
|
public java.util.List<io.greptime.v1.Common.ColumnDef> getColumnDefsList() {
|
||||||
if (columnDefsBuilder_ == null) {
|
if (columnDefsBuilder_ == null) {
|
||||||
return java.util.Collections.unmodifiableList(columnDefs_);
|
return java.util.Collections.unmodifiableList(columnDefs_);
|
||||||
} else {
|
} else {
|
||||||
@@ -3952,7 +3952,7 @@ java.lang.String defaultValue);
|
|||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public io.greptime.v1.Columns.ColumnDef getColumnDefs(int index) {
|
public io.greptime.v1.Common.ColumnDef getColumnDefs(int index) {
|
||||||
if (columnDefsBuilder_ == null) {
|
if (columnDefsBuilder_ == null) {
|
||||||
return columnDefs_.get(index);
|
return columnDefs_.get(index);
|
||||||
} else {
|
} else {
|
||||||
@@ -3963,7 +3963,7 @@ java.lang.String defaultValue);
|
|||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setColumnDefs(
|
public Builder setColumnDefs(
|
||||||
int index, io.greptime.v1.Columns.ColumnDef value) {
|
int index, io.greptime.v1.Common.ColumnDef value) {
|
||||||
if (columnDefsBuilder_ == null) {
|
if (columnDefsBuilder_ == null) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
@@ -3980,7 +3980,7 @@ java.lang.String defaultValue);
|
|||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setColumnDefs(
|
public Builder setColumnDefs(
|
||||||
int index, io.greptime.v1.Columns.ColumnDef.Builder builderForValue) {
|
int index, io.greptime.v1.Common.ColumnDef.Builder builderForValue) {
|
||||||
if (columnDefsBuilder_ == null) {
|
if (columnDefsBuilder_ == null) {
|
||||||
ensureColumnDefsIsMutable();
|
ensureColumnDefsIsMutable();
|
||||||
columnDefs_.set(index, builderForValue.build());
|
columnDefs_.set(index, builderForValue.build());
|
||||||
@@ -3993,7 +3993,7 @@ java.lang.String defaultValue);
|
|||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public Builder addColumnDefs(io.greptime.v1.Columns.ColumnDef value) {
|
public Builder addColumnDefs(io.greptime.v1.Common.ColumnDef value) {
|
||||||
if (columnDefsBuilder_ == null) {
|
if (columnDefsBuilder_ == null) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
@@ -4010,7 +4010,7 @@ java.lang.String defaultValue);
|
|||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public Builder addColumnDefs(
|
public Builder addColumnDefs(
|
||||||
int index, io.greptime.v1.Columns.ColumnDef value) {
|
int index, io.greptime.v1.Common.ColumnDef value) {
|
||||||
if (columnDefsBuilder_ == null) {
|
if (columnDefsBuilder_ == null) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
@@ -4027,7 +4027,7 @@ java.lang.String defaultValue);
|
|||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public Builder addColumnDefs(
|
public Builder addColumnDefs(
|
||||||
io.greptime.v1.Columns.ColumnDef.Builder builderForValue) {
|
io.greptime.v1.Common.ColumnDef.Builder builderForValue) {
|
||||||
if (columnDefsBuilder_ == null) {
|
if (columnDefsBuilder_ == null) {
|
||||||
ensureColumnDefsIsMutable();
|
ensureColumnDefsIsMutable();
|
||||||
columnDefs_.add(builderForValue.build());
|
columnDefs_.add(builderForValue.build());
|
||||||
@@ -4041,7 +4041,7 @@ java.lang.String defaultValue);
|
|||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public Builder addColumnDefs(
|
public Builder addColumnDefs(
|
||||||
int index, io.greptime.v1.Columns.ColumnDef.Builder builderForValue) {
|
int index, io.greptime.v1.Common.ColumnDef.Builder builderForValue) {
|
||||||
if (columnDefsBuilder_ == null) {
|
if (columnDefsBuilder_ == null) {
|
||||||
ensureColumnDefsIsMutable();
|
ensureColumnDefsIsMutable();
|
||||||
columnDefs_.add(index, builderForValue.build());
|
columnDefs_.add(index, builderForValue.build());
|
||||||
@@ -4055,7 +4055,7 @@ java.lang.String defaultValue);
|
|||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public Builder addAllColumnDefs(
|
public Builder addAllColumnDefs(
|
||||||
java.lang.Iterable<? extends io.greptime.v1.Columns.ColumnDef> values) {
|
java.lang.Iterable<? extends io.greptime.v1.Common.ColumnDef> values) {
|
||||||
if (columnDefsBuilder_ == null) {
|
if (columnDefsBuilder_ == null) {
|
||||||
ensureColumnDefsIsMutable();
|
ensureColumnDefsIsMutable();
|
||||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||||
@@ -4095,14 +4095,14 @@ java.lang.String defaultValue);
|
|||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public io.greptime.v1.Columns.ColumnDef.Builder getColumnDefsBuilder(
|
public io.greptime.v1.Common.ColumnDef.Builder getColumnDefsBuilder(
|
||||||
int index) {
|
int index) {
|
||||||
return getColumnDefsFieldBuilder().getBuilder(index);
|
return getColumnDefsFieldBuilder().getBuilder(index);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public io.greptime.v1.Columns.ColumnDefOrBuilder getColumnDefsOrBuilder(
|
public io.greptime.v1.Common.ColumnDefOrBuilder getColumnDefsOrBuilder(
|
||||||
int index) {
|
int index) {
|
||||||
if (columnDefsBuilder_ == null) {
|
if (columnDefsBuilder_ == null) {
|
||||||
return columnDefs_.get(index); } else {
|
return columnDefs_.get(index); } else {
|
||||||
@@ -4112,7 +4112,7 @@ java.lang.String defaultValue);
|
|||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public java.util.List<? extends io.greptime.v1.Columns.ColumnDefOrBuilder>
|
public java.util.List<? extends io.greptime.v1.Common.ColumnDefOrBuilder>
|
||||||
getColumnDefsOrBuilderList() {
|
getColumnDefsOrBuilderList() {
|
||||||
if (columnDefsBuilder_ != null) {
|
if (columnDefsBuilder_ != null) {
|
||||||
return columnDefsBuilder_.getMessageOrBuilderList();
|
return columnDefsBuilder_.getMessageOrBuilderList();
|
||||||
@@ -4123,31 +4123,31 @@ java.lang.String defaultValue);
|
|||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public io.greptime.v1.Columns.ColumnDef.Builder addColumnDefsBuilder() {
|
public io.greptime.v1.Common.ColumnDef.Builder addColumnDefsBuilder() {
|
||||||
return getColumnDefsFieldBuilder().addBuilder(
|
return getColumnDefsFieldBuilder().addBuilder(
|
||||||
io.greptime.v1.Columns.ColumnDef.getDefaultInstance());
|
io.greptime.v1.Common.ColumnDef.getDefaultInstance());
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public io.greptime.v1.Columns.ColumnDef.Builder addColumnDefsBuilder(
|
public io.greptime.v1.Common.ColumnDef.Builder addColumnDefsBuilder(
|
||||||
int index) {
|
int index) {
|
||||||
return getColumnDefsFieldBuilder().addBuilder(
|
return getColumnDefsFieldBuilder().addBuilder(
|
||||||
index, io.greptime.v1.Columns.ColumnDef.getDefaultInstance());
|
index, io.greptime.v1.Common.ColumnDef.getDefaultInstance());
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
* <code>repeated .greptime.v1.ColumnDef column_defs = 5;</code>
|
||||||
*/
|
*/
|
||||||
public java.util.List<io.greptime.v1.Columns.ColumnDef.Builder>
|
public java.util.List<io.greptime.v1.Common.ColumnDef.Builder>
|
||||||
getColumnDefsBuilderList() {
|
getColumnDefsBuilderList() {
|
||||||
return getColumnDefsFieldBuilder().getBuilderList();
|
return getColumnDefsFieldBuilder().getBuilderList();
|
||||||
}
|
}
|
||||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
||||||
io.greptime.v1.Columns.ColumnDef, io.greptime.v1.Columns.ColumnDef.Builder, io.greptime.v1.Columns.ColumnDefOrBuilder>
|
io.greptime.v1.Common.ColumnDef, io.greptime.v1.Common.ColumnDef.Builder, io.greptime.v1.Common.ColumnDefOrBuilder>
|
||||||
getColumnDefsFieldBuilder() {
|
getColumnDefsFieldBuilder() {
|
||||||
if (columnDefsBuilder_ == null) {
|
if (columnDefsBuilder_ == null) {
|
||||||
columnDefsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
columnDefsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
||||||
io.greptime.v1.Columns.ColumnDef, io.greptime.v1.Columns.ColumnDef.Builder, io.greptime.v1.Columns.ColumnDefOrBuilder>(
|
io.greptime.v1.Common.ColumnDef, io.greptime.v1.Common.ColumnDef.Builder, io.greptime.v1.Common.ColumnDefOrBuilder>(
|
||||||
columnDefs_,
|
columnDefs_,
|
||||||
((bitField0_ & 0x00000001) != 0),
|
((bitField0_ & 0x00000001) != 0),
|
||||||
getParentForChildren(),
|
getParentForChildren(),
|
||||||
@@ -13869,11 +13869,11 @@ java.lang.String defaultValue);
|
|||||||
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
||||||
* @return The columnDef.
|
* @return The columnDef.
|
||||||
*/
|
*/
|
||||||
io.greptime.v1.Columns.ColumnDef getColumnDef();
|
io.greptime.v1.Common.ColumnDef getColumnDef();
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
||||||
*/
|
*/
|
||||||
io.greptime.v1.Columns.ColumnDefOrBuilder getColumnDefOrBuilder();
|
io.greptime.v1.Common.ColumnDefOrBuilder getColumnDefOrBuilder();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>bool is_key = 2;</code>
|
* <code>bool is_key = 2;</code>
|
||||||
@@ -13942,11 +13942,11 @@ java.lang.String defaultValue);
|
|||||||
done = true;
|
done = true;
|
||||||
break;
|
break;
|
||||||
case 10: {
|
case 10: {
|
||||||
io.greptime.v1.Columns.ColumnDef.Builder subBuilder = null;
|
io.greptime.v1.Common.ColumnDef.Builder subBuilder = null;
|
||||||
if (columnDef_ != null) {
|
if (columnDef_ != null) {
|
||||||
subBuilder = columnDef_.toBuilder();
|
subBuilder = columnDef_.toBuilder();
|
||||||
}
|
}
|
||||||
columnDef_ = input.readMessage(io.greptime.v1.Columns.ColumnDef.parser(), extensionRegistry);
|
columnDef_ = input.readMessage(io.greptime.v1.Common.ColumnDef.parser(), extensionRegistry);
|
||||||
if (subBuilder != null) {
|
if (subBuilder != null) {
|
||||||
subBuilder.mergeFrom(columnDef_);
|
subBuilder.mergeFrom(columnDef_);
|
||||||
columnDef_ = subBuilder.buildPartial();
|
columnDef_ = subBuilder.buildPartial();
|
||||||
@@ -14792,7 +14792,7 @@ java.lang.String defaultValue);
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static final int COLUMN_DEF_FIELD_NUMBER = 1;
|
public static final int COLUMN_DEF_FIELD_NUMBER = 1;
|
||||||
private io.greptime.v1.Columns.ColumnDef columnDef_;
|
private io.greptime.v1.Common.ColumnDef columnDef_;
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
||||||
* @return Whether the columnDef field is set.
|
* @return Whether the columnDef field is set.
|
||||||
@@ -14806,14 +14806,14 @@ java.lang.String defaultValue);
|
|||||||
* @return The columnDef.
|
* @return The columnDef.
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public io.greptime.v1.Columns.ColumnDef getColumnDef() {
|
public io.greptime.v1.Common.ColumnDef getColumnDef() {
|
||||||
return columnDef_ == null ? io.greptime.v1.Columns.ColumnDef.getDefaultInstance() : columnDef_;
|
return columnDef_ == null ? io.greptime.v1.Common.ColumnDef.getDefaultInstance() : columnDef_;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
public io.greptime.v1.Columns.ColumnDefOrBuilder getColumnDefOrBuilder() {
|
public io.greptime.v1.Common.ColumnDefOrBuilder getColumnDefOrBuilder() {
|
||||||
return getColumnDef();
|
return getColumnDef();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -15217,9 +15217,9 @@ java.lang.String defaultValue);
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private io.greptime.v1.Columns.ColumnDef columnDef_;
|
private io.greptime.v1.Common.ColumnDef columnDef_;
|
||||||
private com.google.protobuf.SingleFieldBuilderV3<
|
private com.google.protobuf.SingleFieldBuilderV3<
|
||||||
io.greptime.v1.Columns.ColumnDef, io.greptime.v1.Columns.ColumnDef.Builder, io.greptime.v1.Columns.ColumnDefOrBuilder> columnDefBuilder_;
|
io.greptime.v1.Common.ColumnDef, io.greptime.v1.Common.ColumnDef.Builder, io.greptime.v1.Common.ColumnDefOrBuilder> columnDefBuilder_;
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
||||||
* @return Whether the columnDef field is set.
|
* @return Whether the columnDef field is set.
|
||||||
@@ -15231,9 +15231,9 @@ java.lang.String defaultValue);
|
|||||||
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
||||||
* @return The columnDef.
|
* @return The columnDef.
|
||||||
*/
|
*/
|
||||||
public io.greptime.v1.Columns.ColumnDef getColumnDef() {
|
public io.greptime.v1.Common.ColumnDef getColumnDef() {
|
||||||
if (columnDefBuilder_ == null) {
|
if (columnDefBuilder_ == null) {
|
||||||
return columnDef_ == null ? io.greptime.v1.Columns.ColumnDef.getDefaultInstance() : columnDef_;
|
return columnDef_ == null ? io.greptime.v1.Common.ColumnDef.getDefaultInstance() : columnDef_;
|
||||||
} else {
|
} else {
|
||||||
return columnDefBuilder_.getMessage();
|
return columnDefBuilder_.getMessage();
|
||||||
}
|
}
|
||||||
@@ -15241,7 +15241,7 @@ java.lang.String defaultValue);
|
|||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setColumnDef(io.greptime.v1.Columns.ColumnDef value) {
|
public Builder setColumnDef(io.greptime.v1.Common.ColumnDef value) {
|
||||||
if (columnDefBuilder_ == null) {
|
if (columnDefBuilder_ == null) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
@@ -15258,7 +15258,7 @@ java.lang.String defaultValue);
|
|||||||
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setColumnDef(
|
public Builder setColumnDef(
|
||||||
io.greptime.v1.Columns.ColumnDef.Builder builderForValue) {
|
io.greptime.v1.Common.ColumnDef.Builder builderForValue) {
|
||||||
if (columnDefBuilder_ == null) {
|
if (columnDefBuilder_ == null) {
|
||||||
columnDef_ = builderForValue.build();
|
columnDef_ = builderForValue.build();
|
||||||
onChanged();
|
onChanged();
|
||||||
@@ -15271,11 +15271,11 @@ java.lang.String defaultValue);
|
|||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder mergeColumnDef(io.greptime.v1.Columns.ColumnDef value) {
|
public Builder mergeColumnDef(io.greptime.v1.Common.ColumnDef value) {
|
||||||
if (columnDefBuilder_ == null) {
|
if (columnDefBuilder_ == null) {
|
||||||
if (columnDef_ != null) {
|
if (columnDef_ != null) {
|
||||||
columnDef_ =
|
columnDef_ =
|
||||||
io.greptime.v1.Columns.ColumnDef.newBuilder(columnDef_).mergeFrom(value).buildPartial();
|
io.greptime.v1.Common.ColumnDef.newBuilder(columnDef_).mergeFrom(value).buildPartial();
|
||||||
} else {
|
} else {
|
||||||
columnDef_ = value;
|
columnDef_ = value;
|
||||||
}
|
}
|
||||||
@@ -15303,7 +15303,7 @@ java.lang.String defaultValue);
|
|||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
||||||
*/
|
*/
|
||||||
public io.greptime.v1.Columns.ColumnDef.Builder getColumnDefBuilder() {
|
public io.greptime.v1.Common.ColumnDef.Builder getColumnDefBuilder() {
|
||||||
|
|
||||||
onChanged();
|
onChanged();
|
||||||
return getColumnDefFieldBuilder().getBuilder();
|
return getColumnDefFieldBuilder().getBuilder();
|
||||||
@@ -15311,23 +15311,23 @@ java.lang.String defaultValue);
|
|||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
||||||
*/
|
*/
|
||||||
public io.greptime.v1.Columns.ColumnDefOrBuilder getColumnDefOrBuilder() {
|
public io.greptime.v1.Common.ColumnDefOrBuilder getColumnDefOrBuilder() {
|
||||||
if (columnDefBuilder_ != null) {
|
if (columnDefBuilder_ != null) {
|
||||||
return columnDefBuilder_.getMessageOrBuilder();
|
return columnDefBuilder_.getMessageOrBuilder();
|
||||||
} else {
|
} else {
|
||||||
return columnDef_ == null ?
|
return columnDef_ == null ?
|
||||||
io.greptime.v1.Columns.ColumnDef.getDefaultInstance() : columnDef_;
|
io.greptime.v1.Common.ColumnDef.getDefaultInstance() : columnDef_;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
* <code>.greptime.v1.ColumnDef column_def = 1;</code>
|
||||||
*/
|
*/
|
||||||
private com.google.protobuf.SingleFieldBuilderV3<
|
private com.google.protobuf.SingleFieldBuilderV3<
|
||||||
io.greptime.v1.Columns.ColumnDef, io.greptime.v1.Columns.ColumnDef.Builder, io.greptime.v1.Columns.ColumnDefOrBuilder>
|
io.greptime.v1.Common.ColumnDef, io.greptime.v1.Common.ColumnDef.Builder, io.greptime.v1.Common.ColumnDefOrBuilder>
|
||||||
getColumnDefFieldBuilder() {
|
getColumnDefFieldBuilder() {
|
||||||
if (columnDefBuilder_ == null) {
|
if (columnDefBuilder_ == null) {
|
||||||
columnDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
columnDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||||
io.greptime.v1.Columns.ColumnDef, io.greptime.v1.Columns.ColumnDef.Builder, io.greptime.v1.Columns.ColumnDefOrBuilder>(
|
io.greptime.v1.Common.ColumnDef, io.greptime.v1.Common.ColumnDef.Builder, io.greptime.v1.Common.ColumnDefOrBuilder>(
|
||||||
getColumnDef(),
|
getColumnDef(),
|
||||||
getParentForChildren(),
|
getParentForChildren(),
|
||||||
isClean());
|
isClean());
|
||||||
@@ -16688,7 +16688,7 @@ java.lang.String defaultValue);
|
|||||||
static {
|
static {
|
||||||
java.lang.String[] descriptorData = {
|
java.lang.String[] descriptorData = {
|
||||||
"\n\025greptime/v1/ddl.proto\022\013greptime.v1\032\030gr" +
|
"\n\025greptime/v1/ddl.proto\022\013greptime.v1\032\030gr" +
|
||||||
"eptime/v1/column.proto\"\207\003\n\nDdlRequest\022:\n" +
|
"eptime/v1/common.proto\"\207\003\n\nDdlRequest\022:\n" +
|
||||||
"\017create_database\030\001 \001(\0132\037.greptime.v1.Cre" +
|
"\017create_database\030\001 \001(\0132\037.greptime.v1.Cre" +
|
||||||
"ateDatabaseExprH\000\0224\n\014create_table\030\002 \001(\0132" +
|
"ateDatabaseExprH\000\0224\n\014create_table\030\002 \001(\0132" +
|
||||||
"\034.greptime.v1.CreateTableExprH\000\022\'\n\005alter" +
|
"\034.greptime.v1.CreateTableExprH\000\022\'\n\005alter" +
|
||||||
@@ -16750,7 +16750,7 @@ java.lang.String defaultValue);
|
|||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
.internalBuildGeneratedFileFrom(descriptorData,
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||||
io.greptime.v1.Columns.getDescriptor(),
|
io.greptime.v1.Common.getDescriptor(),
|
||||||
});
|
});
|
||||||
internal_static_greptime_v1_DdlRequest_descriptor =
|
internal_static_greptime_v1_DdlRequest_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(0);
|
getDescriptor().getMessageTypes().get(0);
|
||||||
@@ -16848,7 +16848,7 @@ java.lang.String defaultValue);
|
|||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_TableId_descriptor,
|
internal_static_greptime_v1_TableId_descriptor,
|
||||||
new java.lang.String[] { "Id", });
|
new java.lang.String[] { "Id", });
|
||||||
io.greptime.v1.Columns.getDescriptor();
|
io.greptime.v1.Common.getDescriptor();
|
||||||
}
|
}
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
// @@protoc_insertion_point(outer_class_scope)
|
||||||
|
|||||||
@@ -20,14 +20,10 @@ option java_package = "io.greptime.v1";
|
|||||||
option java_outer_classname = "Columns";
|
option java_outer_classname = "Columns";
|
||||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
|
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
|
||||||
|
|
||||||
|
import "greptime/v1/common.proto";
|
||||||
|
|
||||||
message Column {
|
message Column {
|
||||||
string column_name = 1;
|
string column_name = 1;
|
||||||
|
|
||||||
enum SemanticType {
|
|
||||||
TAG = 0;
|
|
||||||
FIELD = 1;
|
|
||||||
TIMESTAMP = 2;
|
|
||||||
}
|
|
||||||
SemanticType semantic_type = 2;
|
SemanticType semantic_type = 2;
|
||||||
|
|
||||||
message Values {
|
message Values {
|
||||||
@@ -78,36 +74,3 @@ message Column {
|
|||||||
// Helpful in creating vector from column.
|
// Helpful in creating vector from column.
|
||||||
ColumnDataType datatype = 5;
|
ColumnDataType datatype = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ColumnDef {
|
|
||||||
string name = 1;
|
|
||||||
ColumnDataType datatype = 2;
|
|
||||||
bool is_nullable = 3;
|
|
||||||
bytes default_constraint = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum ColumnDataType {
|
|
||||||
BOOLEAN = 0;
|
|
||||||
INT8 = 1;
|
|
||||||
INT16 = 2;
|
|
||||||
INT32 = 3;
|
|
||||||
INT64 = 4;
|
|
||||||
UINT8 = 5;
|
|
||||||
UINT16 = 6;
|
|
||||||
UINT32 = 7;
|
|
||||||
UINT64 = 8;
|
|
||||||
FLOAT32 = 9;
|
|
||||||
FLOAT64 = 10;
|
|
||||||
BINARY = 11;
|
|
||||||
STRING = 12;
|
|
||||||
DATE = 13;
|
|
||||||
DATETIME = 14;
|
|
||||||
TIMESTAMP_SECOND = 15;
|
|
||||||
TIMESTAMP_MILLISECOND = 16;
|
|
||||||
TIMESTAMP_MICROSECOND = 17;
|
|
||||||
TIMESTAMP_NANOSECOND = 18;
|
|
||||||
TIME_SECOND = 19;
|
|
||||||
TIME_MILLISECOND = 20;
|
|
||||||
TIME_MICROSECOND = 21;
|
|
||||||
TIME_NANOSECOND = 22;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -62,3 +62,42 @@ message Token { string token = 1; }
|
|||||||
message AffectedRows { uint32 value = 1; }
|
message AffectedRows { uint32 value = 1; }
|
||||||
|
|
||||||
message FlightMetadata { AffectedRows affected_rows = 1; }
|
message FlightMetadata { AffectedRows affected_rows = 1; }
|
||||||
|
|
||||||
|
enum SemanticType {
|
||||||
|
TAG = 0;
|
||||||
|
FIELD = 1;
|
||||||
|
TIMESTAMP = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ColumnDef {
|
||||||
|
string name = 1;
|
||||||
|
ColumnDataType datatype = 2;
|
||||||
|
bool is_nullable = 3;
|
||||||
|
bytes default_constraint = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
enum ColumnDataType {
|
||||||
|
BOOLEAN = 0;
|
||||||
|
INT8 = 1;
|
||||||
|
INT16 = 2;
|
||||||
|
INT32 = 3;
|
||||||
|
INT64 = 4;
|
||||||
|
UINT8 = 5;
|
||||||
|
UINT16 = 6;
|
||||||
|
UINT32 = 7;
|
||||||
|
UINT64 = 8;
|
||||||
|
FLOAT32 = 9;
|
||||||
|
FLOAT64 = 10;
|
||||||
|
BINARY = 11;
|
||||||
|
STRING = 12;
|
||||||
|
DATE = 13;
|
||||||
|
DATETIME = 14;
|
||||||
|
TIMESTAMP_SECOND = 15;
|
||||||
|
TIMESTAMP_MILLISECOND = 16;
|
||||||
|
TIMESTAMP_MICROSECOND = 17;
|
||||||
|
TIMESTAMP_NANOSECOND = 18;
|
||||||
|
TIME_SECOND = 19;
|
||||||
|
TIME_MILLISECOND = 20;
|
||||||
|
TIME_MICROSECOND = 21;
|
||||||
|
TIME_NANOSECOND = 22;
|
||||||
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ option java_package = "io.greptime.v1";
|
|||||||
option java_outer_classname = "Ddl";
|
option java_outer_classname = "Ddl";
|
||||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
|
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
|
||||||
|
|
||||||
import "greptime/v1/column.proto";
|
import "greptime/v1/common.proto";
|
||||||
|
|
||||||
// "Data Definition Language" requests, that create, modify or delete the
|
// "Data Definition Language" requests, that create, modify or delete the
|
||||||
// database structures but not the data. `DdlRequest` could carry more
|
// database structures but not the data. `DdlRequest` could carry more
|
||||||
|
|||||||
Reference in New Issue
Block a user