feat: flow replace option (#198)
* feat: flow replace * chore: make * refactor: rename * chore: make all * refactor: more rename * chore: make all
This commit is contained in:
+298
-32
@@ -272,6 +272,19 @@ struct DecimalTypeExtensionDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_;
|
||||
PROTOBUF_CONSTEXPR VectorTypeExtension::VectorTypeExtension(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.dim_)*/0u
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct VectorTypeExtensionDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR VectorTypeExtensionDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~VectorTypeExtensionDefaultTypeInternal() {}
|
||||
union {
|
||||
VectorTypeExtension _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VectorTypeExtensionDefaultTypeInternal _VectorTypeExtension_default_instance_;
|
||||
PROTOBUF_CONSTEXPR ColumnOptions_OptionsEntry_DoNotUse::ColumnOptions_OptionsEntry_DoNotUse(
|
||||
::_pbi::ConstantInitialized) {}
|
||||
struct ColumnOptions_OptionsEntry_DoNotUseDefaultTypeInternal {
|
||||
@@ -298,7 +311,7 @@ struct ColumnOptionsDefaultTypeInternal {
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnOptionsDefaultTypeInternal _ColumnOptions_default_instance_;
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[20];
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[21];
|
||||
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[3];
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr;
|
||||
|
||||
@@ -448,6 +461,7 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
|
||||
~0u, // no _inlined_string_donated_
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDataTypeExtension, _impl_.type_ext_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _internal_metadata_),
|
||||
@@ -457,6 +471,13 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _impl_.precision_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _impl_.scale_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::VectorTypeExtension, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::VectorTypeExtension, _impl_.dim_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse, _has_bits_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -493,9 +514,10 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 120, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
|
||||
{ 129, -1, -1, sizeof(::greptime::v1::Decimal128)},
|
||||
{ 137, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
|
||||
{ 146, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
|
||||
{ 154, 162, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)},
|
||||
{ 164, -1, -1, sizeof(::greptime::v1::ColumnOptions)},
|
||||
{ 147, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
|
||||
{ 155, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)},
|
||||
{ 162, 170, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)},
|
||||
{ 172, -1, -1, sizeof(::greptime::v1::ColumnOptions)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -517,6 +539,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::_Decimal128_default_instance_._instance,
|
||||
&::greptime::v1::_ColumnDataTypeExtension_default_instance_._instance,
|
||||
&::greptime::v1::_DecimalTypeExtension_default_instance_._instance,
|
||||
&::greptime::v1::_VectorTypeExtension_default_instance_._instance,
|
||||
&::greptime::v1::_ColumnOptions_OptionsEntry_DoNotUse_default_instance_._instance,
|
||||
&::greptime::v1::_ColumnOptions_default_instance_._instance,
|
||||
};
|
||||
@@ -551,38 +574,40 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S
|
||||
"2\024.greptime.v1.Metrics\"I\n\024IntervalMonthD"
|
||||
"ayNano\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013"
|
||||
"nanoseconds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 "
|
||||
"\001(\003\022\n\n\002lo\030\002 \001(\003\"\225\001\n\027ColumnDataTypeExtens"
|
||||
"\001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExtens"
|
||||
"ion\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v1."
|
||||
"DecimalTypeExtensionH\000\0223\n\tjson_type\030\002 \001("
|
||||
"\0162\036.greptime.v1.JsonTypeExtensionH\000B\n\n\010t"
|
||||
"ype_ext\"8\n\024DecimalTypeExtension\022\021\n\tpreci"
|
||||
"sion\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"y\n\rColumnOptio"
|
||||
"ns\0228\n\007options\030\001 \003(\0132\'.greptime.v1.Column"
|
||||
"Options.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003"
|
||||
"key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001*1\n\014Semantic"
|
||||
"Type\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002*"
|
||||
"\340\003\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\005UI"
|
||||
"NT8\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\010DATETIME\020\016\022\024\n\020T"
|
||||
"IMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISECO"
|
||||
"ND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIMES"
|
||||
"TAMP_NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020TI"
|
||||
"ME_MILLISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022\023"
|
||||
"\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MON"
|
||||
"TH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL_"
|
||||
"MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036\022\010\n\004JSON"
|
||||
"\020\037*$\n\021JsonTypeExtension\022\017\n\013JSON_BINARY\020\000"
|
||||
"BO\n\016io.greptime.v1B\006CommonZ5github.com/G"
|
||||
"reptimeTeam/greptime-proto/go/greptime/v"
|
||||
"1b\006proto3"
|
||||
"\0162\036.greptime.v1.JsonTypeExtensionH\000\0227\n\013v"
|
||||
"ector_type\030\003 \001(\0132 .greptime.v1.VectorTyp"
|
||||
"eExtensionH\000B\n\n\010type_ext\"8\n\024DecimalTypeE"
|
||||
"xtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001"
|
||||
"(\005\"\"\n\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r\"y"
|
||||
"\n\rColumnOptions\0228\n\007options\030\001 \003(\0132\'.grept"
|
||||
"ime.v1.ColumnOptions.OptionsEntry\032.\n\014Opt"
|
||||
"ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028"
|
||||
"\001*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n"
|
||||
"\tTIMESTAMP\020\002*\354\003\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\026\022\027\n\023INTE"
|
||||
"RVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030"
|
||||
"\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL"
|
||||
"128\020\036\022\010\n\004JSON\020\037\022\n\n\006VECTOR\020 *$\n\021JsonTypeE"
|
||||
"xtension\022\017\n\013JSON_BINARY\020\000BO\n\016io.greptime"
|
||||
".v1B\006CommonZ5github.com/GreptimeTeam/gre"
|
||||
"ptime-proto/go/greptime/v1b\006proto3"
|
||||
;
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = {
|
||||
false, false, 2169, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
||||
false, false, 2274, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
||||
"greptime/v1/common.proto",
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 20,
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 21,
|
||||
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_service_descriptors_greptime_2fv1_2fcommon_2eproto,
|
||||
@@ -644,6 +669,7 @@ bool ColumnDataType_IsValid(int value) {
|
||||
case 25:
|
||||
case 30:
|
||||
case 31:
|
||||
case 32:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
@@ -4284,12 +4310,17 @@ void Decimal128::InternalSwap(Decimal128* other) {
|
||||
class ColumnDataTypeExtension::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::DecimalTypeExtension& decimal_type(const ColumnDataTypeExtension* msg);
|
||||
static const ::greptime::v1::VectorTypeExtension& vector_type(const ColumnDataTypeExtension* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::DecimalTypeExtension&
|
||||
ColumnDataTypeExtension::_Internal::decimal_type(const ColumnDataTypeExtension* msg) {
|
||||
return *msg->_impl_.type_ext_.decimal_type_;
|
||||
}
|
||||
const ::greptime::v1::VectorTypeExtension&
|
||||
ColumnDataTypeExtension::_Internal::vector_type(const ColumnDataTypeExtension* msg) {
|
||||
return *msg->_impl_.type_ext_.vector_type_;
|
||||
}
|
||||
void ColumnDataTypeExtension::set_allocated_decimal_type(::greptime::v1::DecimalTypeExtension* decimal_type) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_type_ext();
|
||||
@@ -4305,6 +4336,21 @@ void ColumnDataTypeExtension::set_allocated_decimal_type(::greptime::v1::Decimal
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDataTypeExtension.decimal_type)
|
||||
}
|
||||
void ColumnDataTypeExtension::set_allocated_vector_type(::greptime::v1::VectorTypeExtension* vector_type) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_type_ext();
|
||||
if (vector_type) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(vector_type);
|
||||
if (message_arena != submessage_arena) {
|
||||
vector_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, vector_type, submessage_arena);
|
||||
}
|
||||
set_has_vector_type();
|
||||
_impl_.type_ext_.vector_type_ = vector_type;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDataTypeExtension.vector_type)
|
||||
}
|
||||
ColumnDataTypeExtension::ColumnDataTypeExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -4331,6 +4377,11 @@ ColumnDataTypeExtension::ColumnDataTypeExtension(const ColumnDataTypeExtension&
|
||||
_this->_internal_set_json_type(from._internal_json_type());
|
||||
break;
|
||||
}
|
||||
case kVectorType: {
|
||||
_this->_internal_mutable_vector_type()->::greptime::v1::VectorTypeExtension::MergeFrom(
|
||||
from._internal_vector_type());
|
||||
break;
|
||||
}
|
||||
case TYPE_EXT_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -4383,6 +4434,12 @@ void ColumnDataTypeExtension::clear_type_ext() {
|
||||
// No need to clear
|
||||
break;
|
||||
}
|
||||
case kVectorType: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.type_ext_.vector_type_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case TYPE_EXT_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -4424,6 +4481,14 @@ const char* ColumnDataTypeExtension::_InternalParse(const char* ptr, ::_pbi::Par
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.VectorTypeExtension vector_type = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_vector_type(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -4467,6 +4532,13 @@ uint8_t* ColumnDataTypeExtension::_InternalSerialize(
|
||||
2, this->_internal_json_type(), target);
|
||||
}
|
||||
|
||||
// .greptime.v1.VectorTypeExtension vector_type = 3;
|
||||
if (_internal_has_vector_type()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(3, _Internal::vector_type(this),
|
||||
_Internal::vector_type(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
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);
|
||||
@@ -4497,6 +4569,13 @@ size_t ColumnDataTypeExtension::ByteSizeLong() const {
|
||||
::_pbi::WireFormatLite::EnumSize(this->_internal_json_type());
|
||||
break;
|
||||
}
|
||||
// .greptime.v1.VectorTypeExtension vector_type = 3;
|
||||
case kVectorType: {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.type_ext_.vector_type_);
|
||||
break;
|
||||
}
|
||||
case TYPE_EXT_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -4529,6 +4608,11 @@ void ColumnDataTypeExtension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg
|
||||
_this->_internal_set_json_type(from._internal_json_type());
|
||||
break;
|
||||
}
|
||||
case kVectorType: {
|
||||
_this->_internal_mutable_vector_type()->::greptime::v1::VectorTypeExtension::MergeFrom(
|
||||
from._internal_vector_type());
|
||||
break;
|
||||
}
|
||||
case TYPE_EXT_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -4773,6 +4857,184 @@ void DecimalTypeExtension::InternalSwap(DecimalTypeExtension* other) {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class VectorTypeExtension::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
VectorTypeExtension::VectorTypeExtension(::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.VectorTypeExtension)
|
||||
}
|
||||
VectorTypeExtension::VectorTypeExtension(const VectorTypeExtension& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
VectorTypeExtension* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.dim_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
_this->_impl_.dim_ = from._impl_.dim_;
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.VectorTypeExtension)
|
||||
}
|
||||
|
||||
inline void VectorTypeExtension::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.dim_){0u}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
VectorTypeExtension::~VectorTypeExtension() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.VectorTypeExtension)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void VectorTypeExtension::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
}
|
||||
|
||||
void VectorTypeExtension::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void VectorTypeExtension::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.VectorTypeExtension)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.dim_ = 0u;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* VectorTypeExtension::_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) {
|
||||
// uint32 dim = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
||||
_impl_.dim_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||
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* VectorTypeExtension::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.VectorTypeExtension)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// uint32 dim = 1;
|
||||
if (this->_internal_dim() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_dim(), 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.VectorTypeExtension)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t VectorTypeExtension::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.VectorTypeExtension)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// uint32 dim = 1;
|
||||
if (this->_internal_dim() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_dim());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VectorTypeExtension::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
VectorTypeExtension::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VectorTypeExtension::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void VectorTypeExtension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<VectorTypeExtension*>(&to_msg);
|
||||
auto& from = static_cast<const VectorTypeExtension&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.VectorTypeExtension)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_dim() != 0) {
|
||||
_this->_internal_set_dim(from._internal_dim());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void VectorTypeExtension::CopyFrom(const VectorTypeExtension& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.VectorTypeExtension)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool VectorTypeExtension::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void VectorTypeExtension::InternalSwap(VectorTypeExtension* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
swap(_impl_.dim_, other->_impl_.dim_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata VectorTypeExtension::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[18]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
ColumnOptions_OptionsEntry_DoNotUse::ColumnOptions_OptionsEntry_DoNotUse() {}
|
||||
ColumnOptions_OptionsEntry_DoNotUse::ColumnOptions_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
||||
: SuperType(arena) {}
|
||||
@@ -4782,7 +5044,7 @@ void ColumnOptions_OptionsEntry_DoNotUse::MergeFrom(const ColumnOptions_OptionsE
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions_OptionsEntry_DoNotUse::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[18]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[19]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -5001,7 +5263,7 @@ void ColumnOptions::InternalSwap(ColumnOptions* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions::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[19]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[20]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
@@ -5080,6 +5342,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::DecimalTypeExtension*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::DecimalTypeExtension >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::DecimalTypeExtension >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::VectorTypeExtension*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::VectorTypeExtension >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::VectorTypeExtension >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse >(arena);
|
||||
|
||||
Reference in New Issue
Block a user