milvus/internal/core/src/pb/segcore.pb.cc
Enwei Jiao 564173dcbc
Upgrade protobuf to 3.21.9 (#21679)
Signed-off-by: Enwei Jiao <enwei.jiao@zilliz.com>
2023-01-13 14:05:41 +08:00

1144 lines
42 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: segcore.proto
#include "segcore.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
namespace milvus {
namespace proto {
namespace segcore {
PROTOBUF_CONSTEXPR RetrieveResults::RetrieveResults(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.offset_)*/{}
, /*decltype(_impl_._offset_cached_byte_size_)*/{0}
, /*decltype(_impl_.fields_data_)*/{}
, /*decltype(_impl_.ids_)*/nullptr
, /*decltype(_impl_._cached_size_)*/{}} {}
struct RetrieveResultsDefaultTypeInternal {
PROTOBUF_CONSTEXPR RetrieveResultsDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~RetrieveResultsDefaultTypeInternal() {}
union {
RetrieveResults _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RetrieveResultsDefaultTypeInternal _RetrieveResults_default_instance_;
PROTOBUF_CONSTEXPR LoadFieldMeta::LoadFieldMeta(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.min_timestamp_)*/int64_t{0}
, /*decltype(_impl_.max_timestamp_)*/int64_t{0}
, /*decltype(_impl_.row_count_)*/int64_t{0}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct LoadFieldMetaDefaultTypeInternal {
PROTOBUF_CONSTEXPR LoadFieldMetaDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~LoadFieldMetaDefaultTypeInternal() {}
union {
LoadFieldMeta _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LoadFieldMetaDefaultTypeInternal _LoadFieldMeta_default_instance_;
PROTOBUF_CONSTEXPR LoadSegmentMeta::LoadSegmentMeta(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.metas_)*/{}
, /*decltype(_impl_.total_size_)*/int64_t{0}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct LoadSegmentMetaDefaultTypeInternal {
PROTOBUF_CONSTEXPR LoadSegmentMetaDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~LoadSegmentMetaDefaultTypeInternal() {}
union {
LoadSegmentMeta _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LoadSegmentMetaDefaultTypeInternal _LoadSegmentMeta_default_instance_;
PROTOBUF_CONSTEXPR InsertRecord::InsertRecord(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.fields_data_)*/{}
, /*decltype(_impl_.num_rows_)*/int64_t{0}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct InsertRecordDefaultTypeInternal {
PROTOBUF_CONSTEXPR InsertRecordDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~InsertRecordDefaultTypeInternal() {}
union {
InsertRecord _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InsertRecordDefaultTypeInternal _InsertRecord_default_instance_;
} // namespace segcore
} // namespace proto
} // namespace milvus
static ::_pb::Metadata file_level_metadata_segcore_2eproto[4];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_segcore_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_segcore_2eproto = nullptr;
const uint32_t TableStruct_segcore_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::RetrieveResults, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::RetrieveResults, _impl_.ids_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::RetrieveResults, _impl_.offset_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::RetrieveResults, _impl_.fields_data_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::LoadFieldMeta, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::LoadFieldMeta, _impl_.min_timestamp_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::LoadFieldMeta, _impl_.max_timestamp_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::LoadFieldMeta, _impl_.row_count_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::LoadSegmentMeta, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::LoadSegmentMeta, _impl_.metas_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::LoadSegmentMeta, _impl_.total_size_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::InsertRecord, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::InsertRecord, _impl_.fields_data_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::segcore::InsertRecord, _impl_.num_rows_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::milvus::proto::segcore::RetrieveResults)},
{ 9, -1, -1, sizeof(::milvus::proto::segcore::LoadFieldMeta)},
{ 18, -1, -1, sizeof(::milvus::proto::segcore::LoadSegmentMeta)},
{ 26, -1, -1, sizeof(::milvus::proto::segcore::InsertRecord)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::milvus::proto::segcore::_RetrieveResults_default_instance_._instance,
&::milvus::proto::segcore::_LoadFieldMeta_default_instance_._instance,
&::milvus::proto::segcore::_LoadSegmentMeta_default_instance_._instance,
&::milvus::proto::segcore::_InsertRecord_default_instance_._instance,
};
const char descriptor_table_protodef_segcore_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\rsegcore.proto\022\024milvus.proto.segcore\032\014s"
"chema.proto\"}\n\017RetrieveResults\022%\n\003ids\030\001 "
"\001(\0132\030.milvus.proto.schema.IDs\022\016\n\006offset\030"
"\002 \003(\003\0223\n\013fields_data\030\003 \003(\0132\036.milvus.prot"
"o.schema.FieldData\"P\n\rLoadFieldMeta\022\025\n\rm"
"in_timestamp\030\001 \001(\003\022\025\n\rmax_timestamp\030\002 \001("
"\003\022\021\n\trow_count\030\003 \001(\003\"Y\n\017LoadSegmentMeta\022"
"2\n\005metas\030\001 \003(\0132#.milvus.proto.segcore.Lo"
"adFieldMeta\022\022\n\ntotal_size\030\002 \001(\003\"U\n\014Inser"
"tRecord\0223\n\013fields_data\030\001 \003(\0132\036.milvus.pr"
"oto.schema.FieldData\022\020\n\010num_rows\030\002 \001(\003B6"
"Z4github.com/milvus-io/milvus/internal/p"
"roto/segcorepbb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_segcore_2eproto_deps[1] = {
&::descriptor_table_schema_2eproto,
};
static ::_pbi::once_flag descriptor_table_segcore_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_segcore_2eproto = {
false, false, 502, descriptor_table_protodef_segcore_2eproto,
"segcore.proto",
&descriptor_table_segcore_2eproto_once, descriptor_table_segcore_2eproto_deps, 1, 4,
schemas, file_default_instances, TableStruct_segcore_2eproto::offsets,
file_level_metadata_segcore_2eproto, file_level_enum_descriptors_segcore_2eproto,
file_level_service_descriptors_segcore_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_segcore_2eproto_getter() {
return &descriptor_table_segcore_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_segcore_2eproto(&descriptor_table_segcore_2eproto);
namespace milvus {
namespace proto {
namespace segcore {
// ===================================================================
class RetrieveResults::_Internal {
public:
static const ::milvus::proto::schema::IDs& ids(const RetrieveResults* msg);
};
const ::milvus::proto::schema::IDs&
RetrieveResults::_Internal::ids(const RetrieveResults* msg) {
return *msg->_impl_.ids_;
}
void RetrieveResults::clear_ids() {
if (GetArenaForAllocation() == nullptr && _impl_.ids_ != nullptr) {
delete _impl_.ids_;
}
_impl_.ids_ = nullptr;
}
void RetrieveResults::clear_fields_data() {
_impl_.fields_data_.Clear();
}
RetrieveResults::RetrieveResults(::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:milvus.proto.segcore.RetrieveResults)
}
RetrieveResults::RetrieveResults(const RetrieveResults& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
RetrieveResults* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.offset_){from._impl_.offset_}
, /*decltype(_impl_._offset_cached_byte_size_)*/{0}
, decltype(_impl_.fields_data_){from._impl_.fields_data_}
, decltype(_impl_.ids_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
if (from._internal_has_ids()) {
_this->_impl_.ids_ = new ::milvus::proto::schema::IDs(*from._impl_.ids_);
}
// @@protoc_insertion_point(copy_constructor:milvus.proto.segcore.RetrieveResults)
}
inline void RetrieveResults::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.offset_){arena}
, /*decltype(_impl_._offset_cached_byte_size_)*/{0}
, decltype(_impl_.fields_data_){arena}
, decltype(_impl_.ids_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}
};
}
RetrieveResults::~RetrieveResults() {
// @@protoc_insertion_point(destructor:milvus.proto.segcore.RetrieveResults)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void RetrieveResults::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.offset_.~RepeatedField();
_impl_.fields_data_.~RepeatedPtrField();
if (this != internal_default_instance()) delete _impl_.ids_;
}
void RetrieveResults::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void RetrieveResults::Clear() {
// @@protoc_insertion_point(message_clear_start:milvus.proto.segcore.RetrieveResults)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.offset_.Clear();
_impl_.fields_data_.Clear();
if (GetArenaForAllocation() == nullptr && _impl_.ids_ != nullptr) {
delete _impl_.ids_;
}
_impl_.ids_ = nullptr;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* RetrieveResults::_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) {
// .milvus.proto.schema.IDs ids = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr = ctx->ParseMessage(_internal_mutable_ids(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// repeated int64 offset = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_offset(), ptr, ctx);
CHK_(ptr);
} else if (static_cast<uint8_t>(tag) == 16) {
_internal_add_offset(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// repeated .milvus.proto.schema.FieldData fields_data = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_fields_data(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(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* RetrieveResults::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.segcore.RetrieveResults)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// .milvus.proto.schema.IDs ids = 1;
if (this->_internal_has_ids()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, _Internal::ids(this),
_Internal::ids(this).GetCachedSize(), target, stream);
}
// repeated int64 offset = 2;
{
int byte_size = _impl_._offset_cached_byte_size_.load(std::memory_order_relaxed);
if (byte_size > 0) {
target = stream->WriteInt64Packed(
2, _internal_offset(), byte_size, target);
}
}
// repeated .milvus.proto.schema.FieldData fields_data = 3;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_fields_data_size()); i < n; i++) {
const auto& repfield = this->_internal_fields_data(i);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, repfield, repfield.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);
}
// @@protoc_insertion_point(serialize_to_array_end:milvus.proto.segcore.RetrieveResults)
return target;
}
size_t RetrieveResults::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.segcore.RetrieveResults)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated int64 offset = 2;
{
size_t data_size = ::_pbi::WireFormatLite::
Int64Size(this->_impl_.offset_);
if (data_size > 0) {
total_size += 1 +
::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
}
int cached_size = ::_pbi::ToCachedSize(data_size);
_impl_._offset_cached_byte_size_.store(cached_size,
std::memory_order_relaxed);
total_size += data_size;
}
// repeated .milvus.proto.schema.FieldData fields_data = 3;
total_size += 1UL * this->_internal_fields_data_size();
for (const auto& msg : this->_impl_.fields_data_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
// .milvus.proto.schema.IDs ids = 1;
if (this->_internal_has_ids()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.ids_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RetrieveResults::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
RetrieveResults::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetrieveResults::GetClassData() const { return &_class_data_; }
void RetrieveResults::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<RetrieveResults*>(&to_msg);
auto& from = static_cast<const RetrieveResults&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.segcore.RetrieveResults)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_impl_.offset_.MergeFrom(from._impl_.offset_);
_this->_impl_.fields_data_.MergeFrom(from._impl_.fields_data_);
if (from._internal_has_ids()) {
_this->_internal_mutable_ids()->::milvus::proto::schema::IDs::MergeFrom(
from._internal_ids());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void RetrieveResults::CopyFrom(const RetrieveResults& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.segcore.RetrieveResults)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RetrieveResults::IsInitialized() const {
return true;
}
void RetrieveResults::InternalSwap(RetrieveResults* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.offset_.InternalSwap(&other->_impl_.offset_);
_impl_.fields_data_.InternalSwap(&other->_impl_.fields_data_);
swap(_impl_.ids_, other->_impl_.ids_);
}
::PROTOBUF_NAMESPACE_ID::Metadata RetrieveResults::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_segcore_2eproto_getter, &descriptor_table_segcore_2eproto_once,
file_level_metadata_segcore_2eproto[0]);
}
// ===================================================================
class LoadFieldMeta::_Internal {
public:
};
LoadFieldMeta::LoadFieldMeta(::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:milvus.proto.segcore.LoadFieldMeta)
}
LoadFieldMeta::LoadFieldMeta(const LoadFieldMeta& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
LoadFieldMeta* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.min_timestamp_){}
, decltype(_impl_.max_timestamp_){}
, decltype(_impl_.row_count_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::memcpy(&_impl_.min_timestamp_, &from._impl_.min_timestamp_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.row_count_) -
reinterpret_cast<char*>(&_impl_.min_timestamp_)) + sizeof(_impl_.row_count_));
// @@protoc_insertion_point(copy_constructor:milvus.proto.segcore.LoadFieldMeta)
}
inline void LoadFieldMeta::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.min_timestamp_){int64_t{0}}
, decltype(_impl_.max_timestamp_){int64_t{0}}
, decltype(_impl_.row_count_){int64_t{0}}
, /*decltype(_impl_._cached_size_)*/{}
};
}
LoadFieldMeta::~LoadFieldMeta() {
// @@protoc_insertion_point(destructor:milvus.proto.segcore.LoadFieldMeta)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void LoadFieldMeta::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void LoadFieldMeta::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void LoadFieldMeta::Clear() {
// @@protoc_insertion_point(message_clear_start:milvus.proto.segcore.LoadFieldMeta)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.min_timestamp_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.row_count_) -
reinterpret_cast<char*>(&_impl_.min_timestamp_)) + sizeof(_impl_.row_count_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* LoadFieldMeta::_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) {
// int64 min_timestamp = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.min_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// int64 max_timestamp = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.max_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// int64 row_count = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
_impl_.row_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* LoadFieldMeta::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.segcore.LoadFieldMeta)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// int64 min_timestamp = 1;
if (this->_internal_min_timestamp() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_min_timestamp(), target);
}
// int64 max_timestamp = 2;
if (this->_internal_max_timestamp() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_max_timestamp(), target);
}
// int64 row_count = 3;
if (this->_internal_row_count() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_row_count(), 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:milvus.proto.segcore.LoadFieldMeta)
return target;
}
size_t LoadFieldMeta::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.segcore.LoadFieldMeta)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// int64 min_timestamp = 1;
if (this->_internal_min_timestamp() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_min_timestamp());
}
// int64 max_timestamp = 2;
if (this->_internal_max_timestamp() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_max_timestamp());
}
// int64 row_count = 3;
if (this->_internal_row_count() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_row_count());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LoadFieldMeta::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
LoadFieldMeta::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LoadFieldMeta::GetClassData() const { return &_class_data_; }
void LoadFieldMeta::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<LoadFieldMeta*>(&to_msg);
auto& from = static_cast<const LoadFieldMeta&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.segcore.LoadFieldMeta)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_min_timestamp() != 0) {
_this->_internal_set_min_timestamp(from._internal_min_timestamp());
}
if (from._internal_max_timestamp() != 0) {
_this->_internal_set_max_timestamp(from._internal_max_timestamp());
}
if (from._internal_row_count() != 0) {
_this->_internal_set_row_count(from._internal_row_count());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void LoadFieldMeta::CopyFrom(const LoadFieldMeta& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.segcore.LoadFieldMeta)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LoadFieldMeta::IsInitialized() const {
return true;
}
void LoadFieldMeta::InternalSwap(LoadFieldMeta* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(LoadFieldMeta, _impl_.row_count_)
+ sizeof(LoadFieldMeta::_impl_.row_count_)
- PROTOBUF_FIELD_OFFSET(LoadFieldMeta, _impl_.min_timestamp_)>(
reinterpret_cast<char*>(&_impl_.min_timestamp_),
reinterpret_cast<char*>(&other->_impl_.min_timestamp_));
}
::PROTOBUF_NAMESPACE_ID::Metadata LoadFieldMeta::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_segcore_2eproto_getter, &descriptor_table_segcore_2eproto_once,
file_level_metadata_segcore_2eproto[1]);
}
// ===================================================================
class LoadSegmentMeta::_Internal {
public:
};
LoadSegmentMeta::LoadSegmentMeta(::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:milvus.proto.segcore.LoadSegmentMeta)
}
LoadSegmentMeta::LoadSegmentMeta(const LoadSegmentMeta& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
LoadSegmentMeta* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.metas_){from._impl_.metas_}
, decltype(_impl_.total_size_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.total_size_ = from._impl_.total_size_;
// @@protoc_insertion_point(copy_constructor:milvus.proto.segcore.LoadSegmentMeta)
}
inline void LoadSegmentMeta::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.metas_){arena}
, decltype(_impl_.total_size_){int64_t{0}}
, /*decltype(_impl_._cached_size_)*/{}
};
}
LoadSegmentMeta::~LoadSegmentMeta() {
// @@protoc_insertion_point(destructor:milvus.proto.segcore.LoadSegmentMeta)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void LoadSegmentMeta::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.metas_.~RepeatedPtrField();
}
void LoadSegmentMeta::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void LoadSegmentMeta::Clear() {
// @@protoc_insertion_point(message_clear_start:milvus.proto.segcore.LoadSegmentMeta)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.metas_.Clear();
_impl_.total_size_ = int64_t{0};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* LoadSegmentMeta::_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) {
// repeated .milvus.proto.segcore.LoadFieldMeta metas = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_metas(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else
goto handle_unusual;
continue;
// int64 total_size = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.total_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* LoadSegmentMeta::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.segcore.LoadSegmentMeta)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// repeated .milvus.proto.segcore.LoadFieldMeta metas = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_metas_size()); i < n; i++) {
const auto& repfield = this->_internal_metas(i);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
// int64 total_size = 2;
if (this->_internal_total_size() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_total_size(), 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:milvus.proto.segcore.LoadSegmentMeta)
return target;
}
size_t LoadSegmentMeta::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.segcore.LoadSegmentMeta)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .milvus.proto.segcore.LoadFieldMeta metas = 1;
total_size += 1UL * this->_internal_metas_size();
for (const auto& msg : this->_impl_.metas_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
// int64 total_size = 2;
if (this->_internal_total_size() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_total_size());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LoadSegmentMeta::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
LoadSegmentMeta::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LoadSegmentMeta::GetClassData() const { return &_class_data_; }
void LoadSegmentMeta::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<LoadSegmentMeta*>(&to_msg);
auto& from = static_cast<const LoadSegmentMeta&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.segcore.LoadSegmentMeta)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_impl_.metas_.MergeFrom(from._impl_.metas_);
if (from._internal_total_size() != 0) {
_this->_internal_set_total_size(from._internal_total_size());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void LoadSegmentMeta::CopyFrom(const LoadSegmentMeta& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.segcore.LoadSegmentMeta)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LoadSegmentMeta::IsInitialized() const {
return true;
}
void LoadSegmentMeta::InternalSwap(LoadSegmentMeta* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.metas_.InternalSwap(&other->_impl_.metas_);
swap(_impl_.total_size_, other->_impl_.total_size_);
}
::PROTOBUF_NAMESPACE_ID::Metadata LoadSegmentMeta::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_segcore_2eproto_getter, &descriptor_table_segcore_2eproto_once,
file_level_metadata_segcore_2eproto[2]);
}
// ===================================================================
class InsertRecord::_Internal {
public:
};
void InsertRecord::clear_fields_data() {
_impl_.fields_data_.Clear();
}
InsertRecord::InsertRecord(::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:milvus.proto.segcore.InsertRecord)
}
InsertRecord::InsertRecord(const InsertRecord& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
InsertRecord* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.fields_data_){from._impl_.fields_data_}
, decltype(_impl_.num_rows_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.num_rows_ = from._impl_.num_rows_;
// @@protoc_insertion_point(copy_constructor:milvus.proto.segcore.InsertRecord)
}
inline void InsertRecord::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.fields_data_){arena}
, decltype(_impl_.num_rows_){int64_t{0}}
, /*decltype(_impl_._cached_size_)*/{}
};
}
InsertRecord::~InsertRecord() {
// @@protoc_insertion_point(destructor:milvus.proto.segcore.InsertRecord)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void InsertRecord::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.fields_data_.~RepeatedPtrField();
}
void InsertRecord::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void InsertRecord::Clear() {
// @@protoc_insertion_point(message_clear_start:milvus.proto.segcore.InsertRecord)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.fields_data_.Clear();
_impl_.num_rows_ = int64_t{0};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* InsertRecord::_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) {
// repeated .milvus.proto.schema.FieldData fields_data = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_fields_data(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else
goto handle_unusual;
continue;
// int64 num_rows = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.num_rows_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* InsertRecord::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.segcore.InsertRecord)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// repeated .milvus.proto.schema.FieldData fields_data = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_fields_data_size()); i < n; i++) {
const auto& repfield = this->_internal_fields_data(i);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
// int64 num_rows = 2;
if (this->_internal_num_rows() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_num_rows(), 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:milvus.proto.segcore.InsertRecord)
return target;
}
size_t InsertRecord::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.segcore.InsertRecord)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .milvus.proto.schema.FieldData fields_data = 1;
total_size += 1UL * this->_internal_fields_data_size();
for (const auto& msg : this->_impl_.fields_data_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
// int64 num_rows = 2;
if (this->_internal_num_rows() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_num_rows());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InsertRecord::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
InsertRecord::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InsertRecord::GetClassData() const { return &_class_data_; }
void InsertRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<InsertRecord*>(&to_msg);
auto& from = static_cast<const InsertRecord&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.segcore.InsertRecord)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_impl_.fields_data_.MergeFrom(from._impl_.fields_data_);
if (from._internal_num_rows() != 0) {
_this->_internal_set_num_rows(from._internal_num_rows());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void InsertRecord::CopyFrom(const InsertRecord& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.segcore.InsertRecord)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool InsertRecord::IsInitialized() const {
return true;
}
void InsertRecord::InternalSwap(InsertRecord* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.fields_data_.InternalSwap(&other->_impl_.fields_data_);
swap(_impl_.num_rows_, other->_impl_.num_rows_);
}
::PROTOBUF_NAMESPACE_ID::Metadata InsertRecord::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_segcore_2eproto_getter, &descriptor_table_segcore_2eproto_once,
file_level_metadata_segcore_2eproto[3]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace segcore
} // namespace proto
} // namespace milvus
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::milvus::proto::segcore::RetrieveResults*
Arena::CreateMaybeMessage< ::milvus::proto::segcore::RetrieveResults >(Arena* arena) {
return Arena::CreateMessageInternal< ::milvus::proto::segcore::RetrieveResults >(arena);
}
template<> PROTOBUF_NOINLINE ::milvus::proto::segcore::LoadFieldMeta*
Arena::CreateMaybeMessage< ::milvus::proto::segcore::LoadFieldMeta >(Arena* arena) {
return Arena::CreateMessageInternal< ::milvus::proto::segcore::LoadFieldMeta >(arena);
}
template<> PROTOBUF_NOINLINE ::milvus::proto::segcore::LoadSegmentMeta*
Arena::CreateMaybeMessage< ::milvus::proto::segcore::LoadSegmentMeta >(Arena* arena) {
return Arena::CreateMessageInternal< ::milvus::proto::segcore::LoadSegmentMeta >(arena);
}
template<> PROTOBUF_NOINLINE ::milvus::proto::segcore::InsertRecord*
Arena::CreateMaybeMessage< ::milvus::proto::segcore::InsertRecord >(Arena* arena) {
return Arena::CreateMessageInternal< ::milvus::proto::segcore::InsertRecord >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>