mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
5195 lines
190 KiB
C++
5195 lines
190 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: common.proto
|
|
|
|
#include "common.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 common {
|
|
PROTOBUF_CONSTEXPR Status::Status(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.reason_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.error_code_)*/0
|
|
, /*decltype(_impl_.code_)*/0
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct StatusDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR StatusDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~StatusDefaultTypeInternal() {}
|
|
union {
|
|
Status _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_;
|
|
PROTOBUF_CONSTEXPR KeyValuePair::KeyValuePair(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.value_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct KeyValuePairDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR KeyValuePairDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~KeyValuePairDefaultTypeInternal() {}
|
|
union {
|
|
KeyValuePair _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_;
|
|
PROTOBUF_CONSTEXPR KeyDataPair::KeyDataPair(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct KeyDataPairDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR KeyDataPairDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~KeyDataPairDefaultTypeInternal() {}
|
|
union {
|
|
KeyDataPair _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyDataPairDefaultTypeInternal _KeyDataPair_default_instance_;
|
|
PROTOBUF_CONSTEXPR Blob::Blob(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.value_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct BlobDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR BlobDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~BlobDefaultTypeInternal() {}
|
|
union {
|
|
Blob _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlobDefaultTypeInternal _Blob_default_instance_;
|
|
PROTOBUF_CONSTEXPR PlaceholderValue::PlaceholderValue(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.values_)*/{}
|
|
, /*decltype(_impl_.tag_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.type_)*/0
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct PlaceholderValueDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR PlaceholderValueDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~PlaceholderValueDefaultTypeInternal() {}
|
|
union {
|
|
PlaceholderValue _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlaceholderValueDefaultTypeInternal _PlaceholderValue_default_instance_;
|
|
PROTOBUF_CONSTEXPR PlaceholderGroup::PlaceholderGroup(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.placeholders_)*/{}
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct PlaceholderGroupDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR PlaceholderGroupDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~PlaceholderGroupDefaultTypeInternal() {}
|
|
union {
|
|
PlaceholderGroup _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlaceholderGroupDefaultTypeInternal _PlaceholderGroup_default_instance_;
|
|
PROTOBUF_CONSTEXPR Address::Address(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.ip_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.port_)*/int64_t{0}
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct AddressDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR AddressDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~AddressDefaultTypeInternal() {}
|
|
union {
|
|
Address _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddressDefaultTypeInternal _Address_default_instance_;
|
|
PROTOBUF_CONSTEXPR MsgBase::MsgBase(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.replicate_)*/nullptr
|
|
, /*decltype(_impl_.msgid_)*/int64_t{0}
|
|
, /*decltype(_impl_.timestamp_)*/uint64_t{0u}
|
|
, /*decltype(_impl_.sourceid_)*/int64_t{0}
|
|
, /*decltype(_impl_.targetid_)*/int64_t{0}
|
|
, /*decltype(_impl_.msg_type_)*/0
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct MsgBaseDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR MsgBaseDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~MsgBaseDefaultTypeInternal() {}
|
|
union {
|
|
MsgBase _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MsgBaseDefaultTypeInternal _MsgBase_default_instance_;
|
|
PROTOBUF_CONSTEXPR ReplicateEntity::ReplicateEntity(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.isreplicate_)*/false
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct ReplicateEntityDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ReplicateEntityDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ReplicateEntityDefaultTypeInternal() {}
|
|
union {
|
|
ReplicateEntity _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReplicateEntityDefaultTypeInternal _ReplicateEntity_default_instance_;
|
|
PROTOBUF_CONSTEXPR MsgHeader::MsgHeader(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.base_)*/nullptr
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct MsgHeaderDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR MsgHeaderDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~MsgHeaderDefaultTypeInternal() {}
|
|
union {
|
|
MsgHeader _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MsgHeaderDefaultTypeInternal _MsgHeader_default_instance_;
|
|
PROTOBUF_CONSTEXPR DMLMsgHeader::DMLMsgHeader(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.shardname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.base_)*/nullptr
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct DMLMsgHeaderDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR DMLMsgHeaderDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~DMLMsgHeaderDefaultTypeInternal() {}
|
|
union {
|
|
DMLMsgHeader _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DMLMsgHeaderDefaultTypeInternal _DMLMsgHeader_default_instance_;
|
|
PROTOBUF_CONSTEXPR PrivilegeExt::PrivilegeExt(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.object_type_)*/0
|
|
, /*decltype(_impl_.object_privilege_)*/0
|
|
, /*decltype(_impl_.object_name_index_)*/0
|
|
, /*decltype(_impl_.object_name_indexs_)*/0
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct PrivilegeExtDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR PrivilegeExtDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~PrivilegeExtDefaultTypeInternal() {}
|
|
union {
|
|
PrivilegeExt _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrivilegeExtDefaultTypeInternal _PrivilegeExt_default_instance_;
|
|
PROTOBUF_CONSTEXPR SegmentStats::SegmentStats(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.segmentid_)*/int64_t{0}
|
|
, /*decltype(_impl_.numrows_)*/int64_t{0}
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct SegmentStatsDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR SegmentStatsDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~SegmentStatsDefaultTypeInternal() {}
|
|
union {
|
|
SegmentStats _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SegmentStatsDefaultTypeInternal _SegmentStats_default_instance_;
|
|
PROTOBUF_CONSTEXPR ClientInfo_ReservedEntry_DoNotUse::ClientInfo_ReservedEntry_DoNotUse(
|
|
::_pbi::ConstantInitialized) {}
|
|
struct ClientInfo_ReservedEntry_DoNotUseDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ClientInfo_ReservedEntry_DoNotUseDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ClientInfo_ReservedEntry_DoNotUseDefaultTypeInternal() {}
|
|
union {
|
|
ClientInfo_ReservedEntry_DoNotUse _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ClientInfo_ReservedEntry_DoNotUseDefaultTypeInternal _ClientInfo_ReservedEntry_DoNotUse_default_instance_;
|
|
PROTOBUF_CONSTEXPR ClientInfo::ClientInfo(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.reserved_)*/{::_pbi::ConstantInitialized()}
|
|
, /*decltype(_impl_.sdk_type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.sdk_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.local_time_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.user_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.host_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct ClientInfoDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ClientInfoDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ClientInfoDefaultTypeInternal() {}
|
|
union {
|
|
ClientInfo _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ClientInfoDefaultTypeInternal _ClientInfo_default_instance_;
|
|
PROTOBUF_CONSTEXPR ServerInfo_ReservedEntry_DoNotUse::ServerInfo_ReservedEntry_DoNotUse(
|
|
::_pbi::ConstantInitialized) {}
|
|
struct ServerInfo_ReservedEntry_DoNotUseDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ServerInfo_ReservedEntry_DoNotUseDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ServerInfo_ReservedEntry_DoNotUseDefaultTypeInternal() {}
|
|
union {
|
|
ServerInfo_ReservedEntry_DoNotUse _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ServerInfo_ReservedEntry_DoNotUseDefaultTypeInternal _ServerInfo_ReservedEntry_DoNotUse_default_instance_;
|
|
PROTOBUF_CONSTEXPR ServerInfo::ServerInfo(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_.reserved_)*/{::_pbi::ConstantInitialized()}
|
|
, /*decltype(_impl_.build_tags_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.build_time_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.git_commit_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.go_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.deploy_mode_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
struct ServerInfoDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ServerInfoDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ServerInfoDefaultTypeInternal() {}
|
|
union {
|
|
ServerInfo _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ServerInfoDefaultTypeInternal _ServerInfo_default_instance_;
|
|
} // namespace common
|
|
} // namespace proto
|
|
} // namespace milvus
|
|
static ::_pb::Metadata file_level_metadata_common_2eproto[17];
|
|
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_common_2eproto[13];
|
|
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_common_2eproto = nullptr;
|
|
|
|
const uint32_t TableStruct_common_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::Status, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::Status, _impl_.error_code_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::Status, _impl_.reason_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::Status, _impl_.code_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::KeyValuePair, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::KeyValuePair, _impl_.key_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::KeyValuePair, _impl_.value_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::KeyDataPair, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::KeyDataPair, _impl_.key_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::KeyDataPair, _impl_.data_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::Blob, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::Blob, _impl_.value_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::PlaceholderValue, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::PlaceholderValue, _impl_.tag_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::PlaceholderValue, _impl_.type_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::PlaceholderValue, _impl_.values_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::PlaceholderGroup, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::PlaceholderGroup, _impl_.placeholders_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::Address, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::Address, _impl_.ip_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::Address, _impl_.port_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::MsgBase, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::MsgBase, _impl_.msg_type_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::MsgBase, _impl_.msgid_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::MsgBase, _impl_.timestamp_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::MsgBase, _impl_.sourceid_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::MsgBase, _impl_.targetid_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::MsgBase, _impl_.replicate_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ReplicateEntity, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ReplicateEntity, _impl_.isreplicate_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::MsgHeader, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::MsgHeader, _impl_.base_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::DMLMsgHeader, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::DMLMsgHeader, _impl_.base_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::DMLMsgHeader, _impl_.shardname_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::PrivilegeExt, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::PrivilegeExt, _impl_.object_type_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::PrivilegeExt, _impl_.object_privilege_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::PrivilegeExt, _impl_.object_name_index_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::PrivilegeExt, _impl_.object_name_indexs_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::SegmentStats, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::SegmentStats, _impl_.segmentid_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::SegmentStats, _impl_.numrows_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ClientInfo_ReservedEntry_DoNotUse, _has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ClientInfo_ReservedEntry_DoNotUse, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ClientInfo_ReservedEntry_DoNotUse, key_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ClientInfo_ReservedEntry_DoNotUse, value_),
|
|
0,
|
|
1,
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ClientInfo, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ClientInfo, _impl_.sdk_type_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ClientInfo, _impl_.sdk_version_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ClientInfo, _impl_.local_time_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ClientInfo, _impl_.user_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ClientInfo, _impl_.host_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ClientInfo, _impl_.reserved_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ServerInfo_ReservedEntry_DoNotUse, _has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ServerInfo_ReservedEntry_DoNotUse, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ServerInfo_ReservedEntry_DoNotUse, key_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ServerInfo_ReservedEntry_DoNotUse, value_),
|
|
0,
|
|
1,
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ServerInfo, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ServerInfo, _impl_.build_tags_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ServerInfo, _impl_.build_time_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ServerInfo, _impl_.git_commit_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ServerInfo, _impl_.go_version_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ServerInfo, _impl_.deploy_mode_),
|
|
PROTOBUF_FIELD_OFFSET(::milvus::proto::common::ServerInfo, _impl_.reserved_),
|
|
};
|
|
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
{ 0, -1, -1, sizeof(::milvus::proto::common::Status)},
|
|
{ 9, -1, -1, sizeof(::milvus::proto::common::KeyValuePair)},
|
|
{ 17, -1, -1, sizeof(::milvus::proto::common::KeyDataPair)},
|
|
{ 25, -1, -1, sizeof(::milvus::proto::common::Blob)},
|
|
{ 32, -1, -1, sizeof(::milvus::proto::common::PlaceholderValue)},
|
|
{ 41, -1, -1, sizeof(::milvus::proto::common::PlaceholderGroup)},
|
|
{ 48, -1, -1, sizeof(::milvus::proto::common::Address)},
|
|
{ 56, -1, -1, sizeof(::milvus::proto::common::MsgBase)},
|
|
{ 68, -1, -1, sizeof(::milvus::proto::common::ReplicateEntity)},
|
|
{ 75, -1, -1, sizeof(::milvus::proto::common::MsgHeader)},
|
|
{ 82, -1, -1, sizeof(::milvus::proto::common::DMLMsgHeader)},
|
|
{ 90, -1, -1, sizeof(::milvus::proto::common::PrivilegeExt)},
|
|
{ 100, -1, -1, sizeof(::milvus::proto::common::SegmentStats)},
|
|
{ 108, 116, -1, sizeof(::milvus::proto::common::ClientInfo_ReservedEntry_DoNotUse)},
|
|
{ 118, -1, -1, sizeof(::milvus::proto::common::ClientInfo)},
|
|
{ 130, 138, -1, sizeof(::milvus::proto::common::ServerInfo_ReservedEntry_DoNotUse)},
|
|
{ 140, -1, -1, sizeof(::milvus::proto::common::ServerInfo)},
|
|
};
|
|
|
|
static const ::_pb::Message* const file_default_instances[] = {
|
|
&::milvus::proto::common::_Status_default_instance_._instance,
|
|
&::milvus::proto::common::_KeyValuePair_default_instance_._instance,
|
|
&::milvus::proto::common::_KeyDataPair_default_instance_._instance,
|
|
&::milvus::proto::common::_Blob_default_instance_._instance,
|
|
&::milvus::proto::common::_PlaceholderValue_default_instance_._instance,
|
|
&::milvus::proto::common::_PlaceholderGroup_default_instance_._instance,
|
|
&::milvus::proto::common::_Address_default_instance_._instance,
|
|
&::milvus::proto::common::_MsgBase_default_instance_._instance,
|
|
&::milvus::proto::common::_ReplicateEntity_default_instance_._instance,
|
|
&::milvus::proto::common::_MsgHeader_default_instance_._instance,
|
|
&::milvus::proto::common::_DMLMsgHeader_default_instance_._instance,
|
|
&::milvus::proto::common::_PrivilegeExt_default_instance_._instance,
|
|
&::milvus::proto::common::_SegmentStats_default_instance_._instance,
|
|
&::milvus::proto::common::_ClientInfo_ReservedEntry_DoNotUse_default_instance_._instance,
|
|
&::milvus::proto::common::_ClientInfo_default_instance_._instance,
|
|
&::milvus::proto::common::_ServerInfo_ReservedEntry_DoNotUse_default_instance_._instance,
|
|
&::milvus::proto::common::_ServerInfo_default_instance_._instance,
|
|
};
|
|
|
|
const char descriptor_table_protodef_common_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
|
"\n\014common.proto\022\023milvus.proto.common\032 goo"
|
|
"gle/protobuf/descriptor.proto\"Z\n\006Status\022"
|
|
"2\n\nerror_code\030\001 \001(\0162\036.milvus.proto.commo"
|
|
"n.ErrorCode\022\016\n\006reason\030\002 \001(\t\022\014\n\004code\030\003 \001("
|
|
"\005\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
|
|
"\002 \001(\t\"(\n\013KeyDataPair\022\013\n\003key\030\001 \001(\t\022\014\n\004dat"
|
|
"a\030\002 \001(\014\"\025\n\004Blob\022\r\n\005value\030\001 \001(\014\"c\n\020Placeh"
|
|
"olderValue\022\013\n\003tag\030\001 \001(\t\0222\n\004type\030\002 \001(\0162$."
|
|
"milvus.proto.common.PlaceholderType\022\016\n\006v"
|
|
"alues\030\003 \003(\014\"O\n\020PlaceholderGroup\022;\n\014place"
|
|
"holders\030\001 \003(\0132%.milvus.proto.common.Plac"
|
|
"eholderValue\"#\n\007Address\022\n\n\002ip\030\001 \001(\t\022\014\n\004p"
|
|
"ort\030\002 \001(\003\"\270\001\n\007MsgBase\022.\n\010msg_type\030\001 \001(\0162"
|
|
"\034.milvus.proto.common.MsgType\022\r\n\005msgID\030\002"
|
|
" \001(\003\022\021\n\ttimestamp\030\003 \001(\004\022\020\n\010sourceID\030\004 \001("
|
|
"\003\022\020\n\010targetID\030\005 \001(\003\0227\n\treplicate\030\006 \001(\0132$"
|
|
".milvus.proto.common.ReplicateEntity\"&\n\017"
|
|
"ReplicateEntity\022\023\n\013isReplicate\030\001 \001(\010\"7\n\t"
|
|
"MsgHeader\022*\n\004base\030\001 \001(\0132\034.milvus.proto.c"
|
|
"ommon.MsgBase\"M\n\014DMLMsgHeader\022*\n\004base\030\001 "
|
|
"\001(\0132\034.milvus.proto.common.MsgBase\022\021\n\tsha"
|
|
"rdName\030\002 \001(\t\"\273\001\n\014PrivilegeExt\0224\n\013object_"
|
|
"type\030\001 \001(\0162\037.milvus.proto.common.ObjectT"
|
|
"ype\022>\n\020object_privilege\030\002 \001(\0162$.milvus.p"
|
|
"roto.common.ObjectPrivilege\022\031\n\021object_na"
|
|
"me_index\030\003 \001(\005\022\032\n\022object_name_indexs\030\004 \001"
|
|
"(\005\"2\n\014SegmentStats\022\021\n\tSegmentID\030\001 \001(\003\022\017\n"
|
|
"\007NumRows\030\002 \001(\003\"\325\001\n\nClientInfo\022\020\n\010sdk_typ"
|
|
"e\030\001 \001(\t\022\023\n\013sdk_version\030\002 \001(\t\022\022\n\nlocal_ti"
|
|
"me\030\003 \001(\t\022\014\n\004user\030\004 \001(\t\022\014\n\004host\030\005 \001(\t\022\?\n\010"
|
|
"reserved\030\006 \003(\0132-.milvus.proto.common.Cli"
|
|
"entInfo.ReservedEntry\032/\n\rReservedEntry\022\013"
|
|
"\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\343\001\n\nServe"
|
|
"rInfo\022\022\n\nbuild_tags\030\001 \001(\t\022\022\n\nbuild_time\030"
|
|
"\002 \001(\t\022\022\n\ngit_commit\030\003 \001(\t\022\022\n\ngo_version\030"
|
|
"\004 \001(\t\022\023\n\013deploy_mode\030\005 \001(\t\022\?\n\010reserved\030\006"
|
|
" \003(\0132-.milvus.proto.common.ServerInfo.Re"
|
|
"servedEntry\032/\n\rReservedEntry\022\013\n\003key\030\001 \001("
|
|
"\t\022\r\n\005value\030\002 \001(\t:\0028\001*\303\n\n\tErrorCode\022\013\n\007Su"
|
|
"ccess\020\000\022\023\n\017UnexpectedError\020\001\022\021\n\rConnectF"
|
|
"ailed\020\002\022\024\n\020PermissionDenied\020\003\022\027\n\023Collect"
|
|
"ionNotExists\020\004\022\023\n\017IllegalArgument\020\005\022\024\n\020I"
|
|
"llegalDimension\020\007\022\024\n\020IllegalIndexType\020\010\022"
|
|
"\031\n\025IllegalCollectionName\020\t\022\017\n\013IllegalTOP"
|
|
"K\020\n\022\024\n\020IllegalRowRecord\020\013\022\023\n\017IllegalVect"
|
|
"orID\020\014\022\027\n\023IllegalSearchResult\020\r\022\020\n\014FileN"
|
|
"otFound\020\016\022\016\n\nMetaFailed\020\017\022\017\n\013CacheFailed"
|
|
"\020\020\022\026\n\022CannotCreateFolder\020\021\022\024\n\020CannotCrea"
|
|
"teFile\020\022\022\026\n\022CannotDeleteFolder\020\023\022\024\n\020Cann"
|
|
"otDeleteFile\020\024\022\023\n\017BuildIndexError\020\025\022\020\n\014I"
|
|
"llegalNLIST\020\026\022\025\n\021IllegalMetricType\020\027\022\017\n\013"
|
|
"OutOfMemory\020\030\022\021\n\rIndexNotExist\020\031\022\023\n\017Empt"
|
|
"yCollection\020\032\022\033\n\027UpdateImportTaskFailure"
|
|
"\020\033\022\032\n\026CollectionNameNotFound\020\034\022\033\n\027Create"
|
|
"CredentialFailure\020\035\022\033\n\027UpdateCredentialF"
|
|
"ailure\020\036\022\033\n\027DeleteCredentialFailure\020\037\022\030\n"
|
|
"\024GetCredentialFailure\020 \022\030\n\024ListCredUsers"
|
|
"Failure\020!\022\022\n\016GetUserFailure\020\"\022\025\n\021CreateR"
|
|
"oleFailure\020#\022\023\n\017DropRoleFailure\020$\022\032\n\026Ope"
|
|
"rateUserRoleFailure\020%\022\025\n\021SelectRoleFailu"
|
|
"re\020&\022\025\n\021SelectUserFailure\020\'\022\031\n\025SelectRes"
|
|
"ourceFailure\020(\022\033\n\027OperatePrivilegeFailur"
|
|
"e\020)\022\026\n\022SelectGrantFailure\020*\022!\n\035RefreshPo"
|
|
"licyInfoCacheFailure\020+\022\025\n\021ListPolicyFail"
|
|
"ure\020,\022\022\n\016NotShardLeader\020-\022\026\n\022NoReplicaAv"
|
|
"ailable\020.\022\023\n\017SegmentNotFound\020/\022\r\n\tForceD"
|
|
"eny\0200\022\r\n\tRateLimit\0201\022\022\n\016NodeIDNotMatch\0202"
|
|
"\022\024\n\020UpsertAutoIDTrue\0203\022\034\n\030InsufficientMe"
|
|
"moryToLoad\0204\022\030\n\024MemoryQuotaExhausted\0205\022\026"
|
|
"\n\022DiskQuotaExhausted\0206\022\025\n\021TimeTickLongDe"
|
|
"lay\0207\022\021\n\rNotReadyServe\0208\022\033\n\027NotReadyCoor"
|
|
"dActivating\0209\022\017\n\013DataCoordNA\020d\022\022\n\rDDRequ"
|
|
"estRace\020\350\007*c\n\nIndexState\022\022\n\016IndexStateNo"
|
|
"ne\020\000\022\014\n\010Unissued\020\001\022\016\n\nInProgress\020\002\022\014\n\010Fi"
|
|
"nished\020\003\022\n\n\006Failed\020\004\022\t\n\005Retry\020\005*\202\001\n\014Segm"
|
|
"entState\022\024\n\020SegmentStateNone\020\000\022\014\n\010NotExi"
|
|
"st\020\001\022\013\n\007Growing\020\002\022\n\n\006Sealed\020\003\022\013\n\007Flushed"
|
|
"\020\004\022\014\n\010Flushing\020\005\022\013\n\007Dropped\020\006\022\r\n\tImporti"
|
|
"ng\020\007*i\n\017PlaceholderType\022\010\n\004None\020\000\022\020\n\014Bin"
|
|
"aryVector\020d\022\017\n\013FloatVector\020e\022\021\n\rFloat16V"
|
|
"ector\020f\022\t\n\005Int64\020\005\022\013\n\007VarChar\020\025*\264\020\n\007MsgT"
|
|
"ype\022\r\n\tUndefined\020\000\022\024\n\020CreateCollection\020d"
|
|
"\022\022\n\016DropCollection\020e\022\021\n\rHasCollection\020f\022"
|
|
"\026\n\022DescribeCollection\020g\022\023\n\017ShowCollectio"
|
|
"ns\020h\022\024\n\020GetSystemConfigs\020i\022\022\n\016LoadCollec"
|
|
"tion\020j\022\025\n\021ReleaseCollection\020k\022\017\n\013CreateA"
|
|
"lias\020l\022\r\n\tDropAlias\020m\022\016\n\nAlterAlias\020n\022\023\n"
|
|
"\017AlterCollection\020o\022\024\n\020RenameCollection\020p"
|
|
"\022\021\n\rDescribeAlias\020q\022\017\n\013ListAliases\020r\022\024\n\017"
|
|
"CreatePartition\020\310\001\022\022\n\rDropPartition\020\311\001\022\021"
|
|
"\n\014HasPartition\020\312\001\022\026\n\021DescribePartition\020\313"
|
|
"\001\022\023\n\016ShowPartitions\020\314\001\022\023\n\016LoadPartitions"
|
|
"\020\315\001\022\026\n\021ReleasePartitions\020\316\001\022\021\n\014ShowSegme"
|
|
"nts\020\372\001\022\024\n\017DescribeSegment\020\373\001\022\021\n\014LoadSegm"
|
|
"ents\020\374\001\022\024\n\017ReleaseSegments\020\375\001\022\024\n\017Handoff"
|
|
"Segments\020\376\001\022\030\n\023LoadBalanceSegments\020\377\001\022\025\n"
|
|
"\020DescribeSegments\020\200\002\022\034\n\027FederListIndexed"
|
|
"Segment\020\201\002\022\"\n\035FederDescribeSegmentIndexD"
|
|
"ata\020\202\002\022\020\n\013CreateIndex\020\254\002\022\022\n\rDescribeInde"
|
|
"x\020\255\002\022\016\n\tDropIndex\020\256\002\022\027\n\022GetIndexStatisti"
|
|
"cs\020\257\002\022\013\n\006Insert\020\220\003\022\013\n\006Delete\020\221\003\022\n\n\005Flush"
|
|
"\020\222\003\022\027\n\022ResendSegmentStats\020\223\003\022\013\n\006Upsert\020\224"
|
|
"\003\022\013\n\006Search\020\364\003\022\021\n\014SearchResult\020\365\003\022\022\n\rGet"
|
|
"IndexState\020\366\003\022\032\n\025GetIndexBuildProgress\020\367"
|
|
"\003\022\034\n\027GetCollectionStatistics\020\370\003\022\033\n\026GetPa"
|
|
"rtitionStatistics\020\371\003\022\r\n\010Retrieve\020\372\003\022\023\n\016R"
|
|
"etrieveResult\020\373\003\022\024\n\017WatchDmChannels\020\374\003\022\025"
|
|
"\n\020RemoveDmChannels\020\375\003\022\027\n\022WatchQueryChann"
|
|
"els\020\376\003\022\030\n\023RemoveQueryChannels\020\377\003\022\035\n\030Seal"
|
|
"edSegmentsChangeInfo\020\200\004\022\027\n\022WatchDeltaCha"
|
|
"nnels\020\201\004\022\024\n\017GetShardLeaders\020\202\004\022\020\n\013GetRep"
|
|
"licas\020\203\004\022\023\n\016UnsubDmChannel\020\204\004\022\024\n\017GetDist"
|
|
"ribution\020\205\004\022\025\n\020SyncDistribution\020\206\004\022\020\n\013Se"
|
|
"gmentInfo\020\330\004\022\017\n\nSystemInfo\020\331\004\022\024\n\017GetReco"
|
|
"veryInfo\020\332\004\022\024\n\017GetSegmentState\020\333\004\022\r\n\010Tim"
|
|
"eTick\020\260\t\022\023\n\016QueryNodeStats\020\261\t\022\016\n\tLoadInd"
|
|
"ex\020\262\t\022\016\n\tRequestID\020\263\t\022\017\n\nRequestTSO\020\264\t\022\024"
|
|
"\n\017AllocateSegment\020\265\t\022\026\n\021SegmentStatistic"
|
|
"s\020\266\t\022\025\n\020SegmentFlushDone\020\267\t\022\017\n\nDataNodeT"
|
|
"t\020\270\t\022\014\n\007Connect\020\271\t\022\024\n\017ListClientInfos\020\272\t"
|
|
"\022\023\n\016AllocTimestamp\020\273\t\022\025\n\020CreateCredentia"
|
|
"l\020\334\013\022\022\n\rGetCredential\020\335\013\022\025\n\020DeleteCreden"
|
|
"tial\020\336\013\022\025\n\020UpdateCredential\020\337\013\022\026\n\021ListCr"
|
|
"edUsernames\020\340\013\022\017\n\nCreateRole\020\300\014\022\r\n\010DropR"
|
|
"ole\020\301\014\022\024\n\017OperateUserRole\020\302\014\022\017\n\nSelectRo"
|
|
"le\020\303\014\022\017\n\nSelectUser\020\304\014\022\023\n\016SelectResource"
|
|
"\020\305\014\022\025\n\020OperatePrivilege\020\306\014\022\020\n\013SelectGran"
|
|
"t\020\307\014\022\033\n\026RefreshPolicyInfoCache\020\310\014\022\017\n\nLis"
|
|
"tPolicy\020\311\014\022\030\n\023CreateResourceGroup\020\244\r\022\026\n\021"
|
|
"DropResourceGroup\020\245\r\022\027\n\022ListResourceGrou"
|
|
"ps\020\246\r\022\032\n\025DescribeResourceGroup\020\247\r\022\021\n\014Tra"
|
|
"nsferNode\020\250\r\022\024\n\017TransferReplica\020\251\r\022\023\n\016Cr"
|
|
"eateDatabase\020\211\016\022\021\n\014DropDatabase\020\212\016\022\022\n\rLi"
|
|
"stDatabases\020\213\016*\"\n\007DslType\022\007\n\003Dsl\020\000\022\016\n\nBo"
|
|
"olExprV1\020\001*B\n\017CompactionState\022\021\n\rUndefie"
|
|
"dState\020\000\022\r\n\tExecuting\020\001\022\r\n\tCompleted\020\002*X"
|
|
"\n\020ConsistencyLevel\022\n\n\006Strong\020\000\022\013\n\007Sessio"
|
|
"n\020\001\022\013\n\007Bounded\020\002\022\016\n\nEventually\020\003\022\016\n\nCust"
|
|
"omized\020\004*\236\001\n\013ImportState\022\021\n\rImportPendin"
|
|
"g\020\000\022\020\n\014ImportFailed\020\001\022\021\n\rImportStarted\020\002"
|
|
"\022\023\n\017ImportPersisted\020\005\022\021\n\rImportFlushed\020\010"
|
|
"\022\023\n\017ImportCompleted\020\006\022\032\n\026ImportFailedAnd"
|
|
"Cleaned\020\007*2\n\nObjectType\022\016\n\nCollection\020\000\022"
|
|
"\n\n\006Global\020\001\022\010\n\004User\020\002*\241\010\n\017ObjectPrivileg"
|
|
"e\022\020\n\014PrivilegeAll\020\000\022\035\n\031PrivilegeCreateCo"
|
|
"llection\020\001\022\033\n\027PrivilegeDropCollection\020\002\022"
|
|
"\037\n\033PrivilegeDescribeCollection\020\003\022\034\n\030Priv"
|
|
"ilegeShowCollections\020\004\022\021\n\rPrivilegeLoad\020"
|
|
"\005\022\024\n\020PrivilegeRelease\020\006\022\027\n\023PrivilegeComp"
|
|
"action\020\007\022\023\n\017PrivilegeInsert\020\010\022\023\n\017Privile"
|
|
"geDelete\020\t\022\032\n\026PrivilegeGetStatistics\020\n\022\030"
|
|
"\n\024PrivilegeCreateIndex\020\013\022\030\n\024PrivilegeInd"
|
|
"exDetail\020\014\022\026\n\022PrivilegeDropIndex\020\r\022\023\n\017Pr"
|
|
"ivilegeSearch\020\016\022\022\n\016PrivilegeFlush\020\017\022\022\n\016P"
|
|
"rivilegeQuery\020\020\022\030\n\024PrivilegeLoadBalance\020"
|
|
"\021\022\023\n\017PrivilegeImport\020\022\022\034\n\030PrivilegeCreat"
|
|
"eOwnership\020\023\022\027\n\023PrivilegeUpdateUser\020\024\022\032\n"
|
|
"\026PrivilegeDropOwnership\020\025\022\034\n\030PrivilegeSe"
|
|
"lectOwnership\020\026\022\034\n\030PrivilegeManageOwners"
|
|
"hip\020\027\022\027\n\023PrivilegeSelectUser\020\030\022\023\n\017Privil"
|
|
"egeUpsert\020\031\022 \n\034PrivilegeCreateResourceGr"
|
|
"oup\020\032\022\036\n\032PrivilegeDropResourceGroup\020\033\022\"\n"
|
|
"\036PrivilegeDescribeResourceGroup\020\034\022\037\n\033Pri"
|
|
"vilegeListResourceGroups\020\035\022\031\n\025PrivilegeT"
|
|
"ransferNode\020\036\022\034\n\030PrivilegeTransferReplic"
|
|
"a\020\037\022\037\n\033PrivilegeGetLoadingProgress\020 \022\031\n\025"
|
|
"PrivilegeGetLoadState\020!\022\035\n\031PrivilegeRena"
|
|
"meCollection\020\"\022\033\n\027PrivilegeCreateDatabas"
|
|
"e\020#\022\031\n\025PrivilegeDropDatabase\020$\022\032\n\026Privil"
|
|
"egeListDatabases\020%\022\025\n\021PrivilegeFlushAll\020"
|
|
"&*S\n\tStateCode\022\020\n\014Initializing\020\000\022\013\n\007Heal"
|
|
"thy\020\001\022\014\n\010Abnormal\020\002\022\013\n\007StandBy\020\003\022\014\n\010Stop"
|
|
"ping\020\004*c\n\tLoadState\022\025\n\021LoadStateNotExist"
|
|
"\020\000\022\024\n\020LoadStateNotLoad\020\001\022\024\n\020LoadStateLoa"
|
|
"ding\020\002\022\023\n\017LoadStateLoaded\020\003:^\n\021privilege"
|
|
"_ext_obj\022\037.google.protobuf.MessageOption"
|
|
"s\030\351\007 \001(\0132!.milvus.proto.common.Privilege"
|
|
"ExtBm\n\016io.milvus.grpcB\013CommonProtoP\001Z4gi"
|
|
"thub.com/milvus-io/milvus-proto/go-api/v"
|
|
"2/commonpb\240\001\001\252\002\022Milvus.Client.Grpcb\006prot"
|
|
"o3"
|
|
;
|
|
static const ::_pbi::DescriptorTable* const descriptor_table_common_2eproto_deps[1] = {
|
|
&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto,
|
|
};
|
|
static ::_pbi::once_flag descriptor_table_common_2eproto_once;
|
|
const ::_pbi::DescriptorTable descriptor_table_common_2eproto = {
|
|
false, false, 7202, descriptor_table_protodef_common_2eproto,
|
|
"common.proto",
|
|
&descriptor_table_common_2eproto_once, descriptor_table_common_2eproto_deps, 1, 17,
|
|
schemas, file_default_instances, TableStruct_common_2eproto::offsets,
|
|
file_level_metadata_common_2eproto, file_level_enum_descriptors_common_2eproto,
|
|
file_level_service_descriptors_common_2eproto,
|
|
};
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_common_2eproto_getter() {
|
|
return &descriptor_table_common_2eproto;
|
|
}
|
|
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_common_2eproto(&descriptor_table_common_2eproto);
|
|
namespace milvus {
|
|
namespace proto {
|
|
namespace common {
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[0];
|
|
}
|
|
bool ErrorCode_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 5:
|
|
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:
|
|
case 23:
|
|
case 24:
|
|
case 25:
|
|
case 26:
|
|
case 27:
|
|
case 28:
|
|
case 29:
|
|
case 30:
|
|
case 31:
|
|
case 32:
|
|
case 33:
|
|
case 34:
|
|
case 35:
|
|
case 36:
|
|
case 37:
|
|
case 38:
|
|
case 39:
|
|
case 40:
|
|
case 41:
|
|
case 42:
|
|
case 43:
|
|
case 44:
|
|
case 45:
|
|
case 46:
|
|
case 47:
|
|
case 48:
|
|
case 49:
|
|
case 50:
|
|
case 51:
|
|
case 52:
|
|
case 53:
|
|
case 54:
|
|
case 55:
|
|
case 56:
|
|
case 57:
|
|
case 100:
|
|
case 1000:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* IndexState_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[1];
|
|
}
|
|
bool IndexState_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 5:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SegmentState_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[2];
|
|
}
|
|
bool SegmentState_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 5:
|
|
case 6:
|
|
case 7:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlaceholderType_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[3];
|
|
}
|
|
bool PlaceholderType_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 5:
|
|
case 21:
|
|
case 100:
|
|
case 101:
|
|
case 102:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MsgType_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[4];
|
|
}
|
|
bool MsgType_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 100:
|
|
case 101:
|
|
case 102:
|
|
case 103:
|
|
case 104:
|
|
case 105:
|
|
case 106:
|
|
case 107:
|
|
case 108:
|
|
case 109:
|
|
case 110:
|
|
case 111:
|
|
case 112:
|
|
case 113:
|
|
case 114:
|
|
case 200:
|
|
case 201:
|
|
case 202:
|
|
case 203:
|
|
case 204:
|
|
case 205:
|
|
case 206:
|
|
case 250:
|
|
case 251:
|
|
case 252:
|
|
case 253:
|
|
case 254:
|
|
case 255:
|
|
case 256:
|
|
case 257:
|
|
case 258:
|
|
case 300:
|
|
case 301:
|
|
case 302:
|
|
case 303:
|
|
case 400:
|
|
case 401:
|
|
case 402:
|
|
case 403:
|
|
case 404:
|
|
case 500:
|
|
case 501:
|
|
case 502:
|
|
case 503:
|
|
case 504:
|
|
case 505:
|
|
case 506:
|
|
case 507:
|
|
case 508:
|
|
case 509:
|
|
case 510:
|
|
case 511:
|
|
case 512:
|
|
case 513:
|
|
case 514:
|
|
case 515:
|
|
case 516:
|
|
case 517:
|
|
case 518:
|
|
case 600:
|
|
case 601:
|
|
case 602:
|
|
case 603:
|
|
case 1200:
|
|
case 1201:
|
|
case 1202:
|
|
case 1203:
|
|
case 1204:
|
|
case 1205:
|
|
case 1206:
|
|
case 1207:
|
|
case 1208:
|
|
case 1209:
|
|
case 1210:
|
|
case 1211:
|
|
case 1500:
|
|
case 1501:
|
|
case 1502:
|
|
case 1503:
|
|
case 1504:
|
|
case 1600:
|
|
case 1601:
|
|
case 1602:
|
|
case 1603:
|
|
case 1604:
|
|
case 1605:
|
|
case 1606:
|
|
case 1607:
|
|
case 1608:
|
|
case 1609:
|
|
case 1700:
|
|
case 1701:
|
|
case 1702:
|
|
case 1703:
|
|
case 1704:
|
|
case 1705:
|
|
case 1801:
|
|
case 1802:
|
|
case 1803:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DslType_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[5];
|
|
}
|
|
bool DslType_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CompactionState_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[6];
|
|
}
|
|
bool CompactionState_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ConsistencyLevel_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[7];
|
|
}
|
|
bool ConsistencyLevel_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ImportState_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[8];
|
|
}
|
|
bool ImportState_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 5:
|
|
case 6:
|
|
case 7:
|
|
case 8:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ObjectType_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[9];
|
|
}
|
|
bool ObjectType_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ObjectPrivilege_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[10];
|
|
}
|
|
bool ObjectPrivilege_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:
|
|
case 23:
|
|
case 24:
|
|
case 25:
|
|
case 26:
|
|
case 27:
|
|
case 28:
|
|
case 29:
|
|
case 30:
|
|
case 31:
|
|
case 32:
|
|
case 33:
|
|
case 34:
|
|
case 35:
|
|
case 36:
|
|
case 37:
|
|
case 38:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* StateCode_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[11];
|
|
}
|
|
bool StateCode_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LoadState_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[12];
|
|
}
|
|
bool LoadState_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
class Status::_Internal {
|
|
public:
|
|
};
|
|
|
|
Status::Status(::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.common.Status)
|
|
}
|
|
Status::Status(const Status& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
Status* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.reason_){}
|
|
, decltype(_impl_.error_code_){}
|
|
, decltype(_impl_.code_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_impl_.reason_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.reason_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_reason().empty()) {
|
|
_this->_impl_.reason_.Set(from._internal_reason(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
::memcpy(&_impl_.error_code_, &from._impl_.error_code_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.code_) -
|
|
reinterpret_cast<char*>(&_impl_.error_code_)) + sizeof(_impl_.code_));
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.Status)
|
|
}
|
|
|
|
inline void Status::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.reason_){}
|
|
, decltype(_impl_.error_code_){0}
|
|
, decltype(_impl_.code_){0}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
_impl_.reason_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.reason_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
Status::~Status() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.Status)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void Status::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.reason_.Destroy();
|
|
}
|
|
|
|
void Status::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void Status::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.Status)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.reason_.ClearToEmpty();
|
|
::memset(&_impl_.error_code_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&_impl_.code_) -
|
|
reinterpret_cast<char*>(&_impl_.error_code_)) + sizeof(_impl_.code_));
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* Status::_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.common.ErrorCode error_code = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
|
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
_internal_set_error_code(static_cast<::milvus::proto::common::ErrorCode>(val));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// string reason = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
|
auto str = _internal_mutable_reason();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.Status.reason"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// int32 code = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
|
_impl_.code_ = ::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* Status::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.Status)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .milvus.proto.common.ErrorCode error_code = 1;
|
|
if (this->_internal_error_code() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this->_internal_error_code(), target);
|
|
}
|
|
|
|
// string reason = 2;
|
|
if (!this->_internal_reason().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_reason().data(), static_cast<int>(this->_internal_reason().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.Status.reason");
|
|
target = stream->WriteStringMaybeAliased(
|
|
2, this->_internal_reason(), target);
|
|
}
|
|
|
|
// int32 code = 3;
|
|
if (this->_internal_code() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_code(), 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.common.Status)
|
|
return target;
|
|
}
|
|
|
|
size_t Status::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.Status)
|
|
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 reason = 2;
|
|
if (!this->_internal_reason().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_reason());
|
|
}
|
|
|
|
// .milvus.proto.common.ErrorCode error_code = 1;
|
|
if (this->_internal_error_code() != 0) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this->_internal_error_code());
|
|
}
|
|
|
|
// int32 code = 3;
|
|
if (this->_internal_code() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_code());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
Status::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<Status*>(&to_msg);
|
|
auto& from = static_cast<const Status&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.Status)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (!from._internal_reason().empty()) {
|
|
_this->_internal_set_reason(from._internal_reason());
|
|
}
|
|
if (from._internal_error_code() != 0) {
|
|
_this->_internal_set_error_code(from._internal_error_code());
|
|
}
|
|
if (from._internal_code() != 0) {
|
|
_this->_internal_set_code(from._internal_code());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void Status::CopyFrom(const Status& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.Status)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool Status::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void Status::InternalSwap(Status* 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_.reason_, lhs_arena,
|
|
&other->_impl_.reason_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(Status, _impl_.code_)
|
|
+ sizeof(Status::_impl_.code_)
|
|
- PROTOBUF_FIELD_OFFSET(Status, _impl_.error_code_)>(
|
|
reinterpret_cast<char*>(&_impl_.error_code_),
|
|
reinterpret_cast<char*>(&other->_impl_.error_code_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[0]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class KeyValuePair::_Internal {
|
|
public:
|
|
};
|
|
|
|
KeyValuePair::KeyValuePair(::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.common.KeyValuePair)
|
|
}
|
|
KeyValuePair::KeyValuePair(const KeyValuePair& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
KeyValuePair* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.key_){}
|
|
, decltype(_impl_.value_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_impl_.key_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.key_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_key().empty()) {
|
|
_this->_impl_.key_.Set(from._internal_key(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.value_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.value_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_value().empty()) {
|
|
_this->_impl_.value_.Set(from._internal_value(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.KeyValuePair)
|
|
}
|
|
|
|
inline void KeyValuePair::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.key_){}
|
|
, decltype(_impl_.value_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
_impl_.key_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.key_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.value_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.value_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
KeyValuePair::~KeyValuePair() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.KeyValuePair)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void KeyValuePair::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.key_.Destroy();
|
|
_impl_.value_.Destroy();
|
|
}
|
|
|
|
void KeyValuePair::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void KeyValuePair::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.KeyValuePair)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.key_.ClearToEmpty();
|
|
_impl_.value_.ClearToEmpty();
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* KeyValuePair::_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 key = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
auto str = _internal_mutable_key();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.KeyValuePair.key"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// string value = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
|
auto str = _internal_mutable_value();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.KeyValuePair.value"));
|
|
} 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* KeyValuePair::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.KeyValuePair)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string key = 1;
|
|
if (!this->_internal_key().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_key().data(), static_cast<int>(this->_internal_key().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.KeyValuePair.key");
|
|
target = stream->WriteStringMaybeAliased(
|
|
1, this->_internal_key(), target);
|
|
}
|
|
|
|
// string value = 2;
|
|
if (!this->_internal_value().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_value().data(), static_cast<int>(this->_internal_value().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.KeyValuePair.value");
|
|
target = stream->WriteStringMaybeAliased(
|
|
2, this->_internal_value(), 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.common.KeyValuePair)
|
|
return target;
|
|
}
|
|
|
|
size_t KeyValuePair::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.KeyValuePair)
|
|
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 key = 1;
|
|
if (!this->_internal_key().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_key());
|
|
}
|
|
|
|
// string value = 2;
|
|
if (!this->_internal_value().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_value());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData KeyValuePair::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
KeyValuePair::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*KeyValuePair::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void KeyValuePair::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<KeyValuePair*>(&to_msg);
|
|
auto& from = static_cast<const KeyValuePair&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.KeyValuePair)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (!from._internal_key().empty()) {
|
|
_this->_internal_set_key(from._internal_key());
|
|
}
|
|
if (!from._internal_value().empty()) {
|
|
_this->_internal_set_value(from._internal_value());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void KeyValuePair::CopyFrom(const KeyValuePair& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.KeyValuePair)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool KeyValuePair::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void KeyValuePair::InternalSwap(KeyValuePair* 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_.key_, lhs_arena,
|
|
&other->_impl_.key_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.value_, lhs_arena,
|
|
&other->_impl_.value_, rhs_arena
|
|
);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata KeyValuePair::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[1]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class KeyDataPair::_Internal {
|
|
public:
|
|
};
|
|
|
|
KeyDataPair::KeyDataPair(::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.common.KeyDataPair)
|
|
}
|
|
KeyDataPair::KeyDataPair(const KeyDataPair& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
KeyDataPair* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.key_){}
|
|
, decltype(_impl_.data_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_impl_.key_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.key_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_key().empty()) {
|
|
_this->_impl_.key_.Set(from._internal_key(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.data_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.data_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_data().empty()) {
|
|
_this->_impl_.data_.Set(from._internal_data(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.KeyDataPair)
|
|
}
|
|
|
|
inline void KeyDataPair::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.key_){}
|
|
, decltype(_impl_.data_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
_impl_.key_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.key_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.data_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.data_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
KeyDataPair::~KeyDataPair() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.KeyDataPair)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void KeyDataPair::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.key_.Destroy();
|
|
_impl_.data_.Destroy();
|
|
}
|
|
|
|
void KeyDataPair::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void KeyDataPair::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.KeyDataPair)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.key_.ClearToEmpty();
|
|
_impl_.data_.ClearToEmpty();
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* KeyDataPair::_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 key = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
auto str = _internal_mutable_key();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.KeyDataPair.key"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// bytes data = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
|
auto str = _internal_mutable_data();
|
|
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* KeyDataPair::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.KeyDataPair)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string key = 1;
|
|
if (!this->_internal_key().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_key().data(), static_cast<int>(this->_internal_key().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.KeyDataPair.key");
|
|
target = stream->WriteStringMaybeAliased(
|
|
1, this->_internal_key(), target);
|
|
}
|
|
|
|
// bytes data = 2;
|
|
if (!this->_internal_data().empty()) {
|
|
target = stream->WriteBytesMaybeAliased(
|
|
2, this->_internal_data(), 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.common.KeyDataPair)
|
|
return target;
|
|
}
|
|
|
|
size_t KeyDataPair::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.KeyDataPair)
|
|
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 key = 1;
|
|
if (!this->_internal_key().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_key());
|
|
}
|
|
|
|
// bytes data = 2;
|
|
if (!this->_internal_data().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
this->_internal_data());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData KeyDataPair::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
KeyDataPair::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*KeyDataPair::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void KeyDataPair::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<KeyDataPair*>(&to_msg);
|
|
auto& from = static_cast<const KeyDataPair&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.KeyDataPair)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (!from._internal_key().empty()) {
|
|
_this->_internal_set_key(from._internal_key());
|
|
}
|
|
if (!from._internal_data().empty()) {
|
|
_this->_internal_set_data(from._internal_data());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void KeyDataPair::CopyFrom(const KeyDataPair& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.KeyDataPair)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool KeyDataPair::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void KeyDataPair::InternalSwap(KeyDataPair* 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_.key_, lhs_arena,
|
|
&other->_impl_.key_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.data_, lhs_arena,
|
|
&other->_impl_.data_, rhs_arena
|
|
);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata KeyDataPair::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[2]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class Blob::_Internal {
|
|
public:
|
|
};
|
|
|
|
Blob::Blob(::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.common.Blob)
|
|
}
|
|
Blob::Blob(const Blob& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
Blob* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.value_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_impl_.value_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.value_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_value().empty()) {
|
|
_this->_impl_.value_.Set(from._internal_value(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.Blob)
|
|
}
|
|
|
|
inline void Blob::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.value_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
_impl_.value_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.value_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
Blob::~Blob() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.Blob)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void Blob::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.value_.Destroy();
|
|
}
|
|
|
|
void Blob::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void Blob::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.Blob)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.value_.ClearToEmpty();
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* Blob::_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) {
|
|
// bytes value = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
auto str = _internal_mutable_value();
|
|
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* Blob::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.Blob)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// bytes value = 1;
|
|
if (!this->_internal_value().empty()) {
|
|
target = stream->WriteBytesMaybeAliased(
|
|
1, this->_internal_value(), 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.common.Blob)
|
|
return target;
|
|
}
|
|
|
|
size_t Blob::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.Blob)
|
|
size_t total_size = 0;
|
|
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// bytes value = 1;
|
|
if (!this->_internal_value().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
this->_internal_value());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Blob::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
Blob::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Blob::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void Blob::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<Blob*>(&to_msg);
|
|
auto& from = static_cast<const Blob&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.Blob)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (!from._internal_value().empty()) {
|
|
_this->_internal_set_value(from._internal_value());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void Blob::CopyFrom(const Blob& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.Blob)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool Blob::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void Blob::InternalSwap(Blob* 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_.value_, lhs_arena,
|
|
&other->_impl_.value_, rhs_arena
|
|
);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Blob::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[3]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class PlaceholderValue::_Internal {
|
|
public:
|
|
};
|
|
|
|
PlaceholderValue::PlaceholderValue(::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.common.PlaceholderValue)
|
|
}
|
|
PlaceholderValue::PlaceholderValue(const PlaceholderValue& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
PlaceholderValue* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.values_){from._impl_.values_}
|
|
, decltype(_impl_.tag_){}
|
|
, decltype(_impl_.type_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_impl_.tag_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.tag_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_tag().empty()) {
|
|
_this->_impl_.tag_.Set(from._internal_tag(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_this->_impl_.type_ = from._impl_.type_;
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.PlaceholderValue)
|
|
}
|
|
|
|
inline void PlaceholderValue::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.values_){arena}
|
|
, decltype(_impl_.tag_){}
|
|
, decltype(_impl_.type_){0}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
_impl_.tag_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.tag_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
PlaceholderValue::~PlaceholderValue() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.PlaceholderValue)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void PlaceholderValue::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.values_.~RepeatedPtrField();
|
|
_impl_.tag_.Destroy();
|
|
}
|
|
|
|
void PlaceholderValue::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void PlaceholderValue::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.PlaceholderValue)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.values_.Clear();
|
|
_impl_.tag_.ClearToEmpty();
|
|
_impl_.type_ = 0;
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* PlaceholderValue::_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 tag = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
auto str = _internal_mutable_tag();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.PlaceholderValue.tag"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// .milvus.proto.common.PlaceholderType type = 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_type(static_cast<::milvus::proto::common::PlaceholderType>(val));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// repeated bytes values = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
auto str = _internal_add_values();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
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* PlaceholderValue::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.PlaceholderValue)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string tag = 1;
|
|
if (!this->_internal_tag().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_tag().data(), static_cast<int>(this->_internal_tag().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.PlaceholderValue.tag");
|
|
target = stream->WriteStringMaybeAliased(
|
|
1, this->_internal_tag(), target);
|
|
}
|
|
|
|
// .milvus.proto.common.PlaceholderType type = 2;
|
|
if (this->_internal_type() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this->_internal_type(), target);
|
|
}
|
|
|
|
// repeated bytes values = 3;
|
|
for (int i = 0, n = this->_internal_values_size(); i < n; i++) {
|
|
const auto& s = this->_internal_values(i);
|
|
target = stream->WriteBytes(3, s, 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.common.PlaceholderValue)
|
|
return target;
|
|
}
|
|
|
|
size_t PlaceholderValue::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.PlaceholderValue)
|
|
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 bytes values = 3;
|
|
total_size += 1 *
|
|
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.values_.size());
|
|
for (int i = 0, n = _impl_.values_.size(); i < n; i++) {
|
|
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
_impl_.values_.Get(i));
|
|
}
|
|
|
|
// string tag = 1;
|
|
if (!this->_internal_tag().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_tag());
|
|
}
|
|
|
|
// .milvus.proto.common.PlaceholderType type = 2;
|
|
if (this->_internal_type() != 0) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this->_internal_type());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlaceholderValue::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
PlaceholderValue::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PlaceholderValue::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void PlaceholderValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<PlaceholderValue*>(&to_msg);
|
|
auto& from = static_cast<const PlaceholderValue&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.PlaceholderValue)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
_this->_impl_.values_.MergeFrom(from._impl_.values_);
|
|
if (!from._internal_tag().empty()) {
|
|
_this->_internal_set_tag(from._internal_tag());
|
|
}
|
|
if (from._internal_type() != 0) {
|
|
_this->_internal_set_type(from._internal_type());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void PlaceholderValue::CopyFrom(const PlaceholderValue& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.PlaceholderValue)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool PlaceholderValue::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void PlaceholderValue::InternalSwap(PlaceholderValue* other) {
|
|
using std::swap;
|
|
auto* lhs_arena = GetArenaForAllocation();
|
|
auto* rhs_arena = other->GetArenaForAllocation();
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
_impl_.values_.InternalSwap(&other->_impl_.values_);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.tag_, lhs_arena,
|
|
&other->_impl_.tag_, rhs_arena
|
|
);
|
|
swap(_impl_.type_, other->_impl_.type_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata PlaceholderValue::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[4]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class PlaceholderGroup::_Internal {
|
|
public:
|
|
};
|
|
|
|
PlaceholderGroup::PlaceholderGroup(::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.common.PlaceholderGroup)
|
|
}
|
|
PlaceholderGroup::PlaceholderGroup(const PlaceholderGroup& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
PlaceholderGroup* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.placeholders_){from._impl_.placeholders_}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.PlaceholderGroup)
|
|
}
|
|
|
|
inline void PlaceholderGroup::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.placeholders_){arena}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
}
|
|
|
|
PlaceholderGroup::~PlaceholderGroup() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.PlaceholderGroup)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void PlaceholderGroup::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.placeholders_.~RepeatedPtrField();
|
|
}
|
|
|
|
void PlaceholderGroup::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void PlaceholderGroup::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.PlaceholderGroup)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.placeholders_.Clear();
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* PlaceholderGroup::_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.common.PlaceholderValue placeholders = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(_internal_add_placeholders(), ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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* PlaceholderGroup::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.PlaceholderGroup)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .milvus.proto.common.PlaceholderValue placeholders = 1;
|
|
for (unsigned i = 0,
|
|
n = static_cast<unsigned>(this->_internal_placeholders_size()); i < n; i++) {
|
|
const auto& repfield = this->_internal_placeholders(i);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessage(1, 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.common.PlaceholderGroup)
|
|
return target;
|
|
}
|
|
|
|
size_t PlaceholderGroup::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.PlaceholderGroup)
|
|
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.common.PlaceholderValue placeholders = 1;
|
|
total_size += 1UL * this->_internal_placeholders_size();
|
|
for (const auto& msg : this->_impl_.placeholders_) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlaceholderGroup::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
PlaceholderGroup::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PlaceholderGroup::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void PlaceholderGroup::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<PlaceholderGroup*>(&to_msg);
|
|
auto& from = static_cast<const PlaceholderGroup&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.PlaceholderGroup)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
_this->_impl_.placeholders_.MergeFrom(from._impl_.placeholders_);
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void PlaceholderGroup::CopyFrom(const PlaceholderGroup& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.PlaceholderGroup)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool PlaceholderGroup::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void PlaceholderGroup::InternalSwap(PlaceholderGroup* other) {
|
|
using std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
_impl_.placeholders_.InternalSwap(&other->_impl_.placeholders_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata PlaceholderGroup::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[5]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class Address::_Internal {
|
|
public:
|
|
};
|
|
|
|
Address::Address(::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.common.Address)
|
|
}
|
|
Address::Address(const Address& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
Address* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.ip_){}
|
|
, decltype(_impl_.port_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_impl_.ip_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.ip_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_ip().empty()) {
|
|
_this->_impl_.ip_.Set(from._internal_ip(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_this->_impl_.port_ = from._impl_.port_;
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.Address)
|
|
}
|
|
|
|
inline void Address::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.ip_){}
|
|
, decltype(_impl_.port_){int64_t{0}}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
_impl_.ip_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.ip_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
Address::~Address() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.Address)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void Address::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.ip_.Destroy();
|
|
}
|
|
|
|
void Address::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void Address::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.Address)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.ip_.ClearToEmpty();
|
|
_impl_.port_ = int64_t{0};
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* Address::_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 ip = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
auto str = _internal_mutable_ip();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.Address.ip"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// int64 port = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
|
_impl_.port_ = ::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* Address::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.Address)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string ip = 1;
|
|
if (!this->_internal_ip().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_ip().data(), static_cast<int>(this->_internal_ip().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.Address.ip");
|
|
target = stream->WriteStringMaybeAliased(
|
|
1, this->_internal_ip(), target);
|
|
}
|
|
|
|
// int64 port = 2;
|
|
if (this->_internal_port() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_port(), 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.common.Address)
|
|
return target;
|
|
}
|
|
|
|
size_t Address::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.Address)
|
|
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 ip = 1;
|
|
if (!this->_internal_ip().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_ip());
|
|
}
|
|
|
|
// int64 port = 2;
|
|
if (this->_internal_port() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_port());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Address::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
Address::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Address::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void Address::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<Address*>(&to_msg);
|
|
auto& from = static_cast<const Address&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.Address)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (!from._internal_ip().empty()) {
|
|
_this->_internal_set_ip(from._internal_ip());
|
|
}
|
|
if (from._internal_port() != 0) {
|
|
_this->_internal_set_port(from._internal_port());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void Address::CopyFrom(const Address& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.Address)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool Address::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void Address::InternalSwap(Address* 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_.ip_, lhs_arena,
|
|
&other->_impl_.ip_, rhs_arena
|
|
);
|
|
swap(_impl_.port_, other->_impl_.port_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Address::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[6]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class MsgBase::_Internal {
|
|
public:
|
|
static const ::milvus::proto::common::ReplicateEntity& replicate(const MsgBase* msg);
|
|
};
|
|
|
|
const ::milvus::proto::common::ReplicateEntity&
|
|
MsgBase::_Internal::replicate(const MsgBase* msg) {
|
|
return *msg->_impl_.replicate_;
|
|
}
|
|
MsgBase::MsgBase(::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.common.MsgBase)
|
|
}
|
|
MsgBase::MsgBase(const MsgBase& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
MsgBase* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.replicate_){nullptr}
|
|
, decltype(_impl_.msgid_){}
|
|
, decltype(_impl_.timestamp_){}
|
|
, decltype(_impl_.sourceid_){}
|
|
, decltype(_impl_.targetid_){}
|
|
, decltype(_impl_.msg_type_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
if (from._internal_has_replicate()) {
|
|
_this->_impl_.replicate_ = new ::milvus::proto::common::ReplicateEntity(*from._impl_.replicate_);
|
|
}
|
|
::memcpy(&_impl_.msgid_, &from._impl_.msgid_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.msg_type_) -
|
|
reinterpret_cast<char*>(&_impl_.msgid_)) + sizeof(_impl_.msg_type_));
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.MsgBase)
|
|
}
|
|
|
|
inline void MsgBase::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.replicate_){nullptr}
|
|
, decltype(_impl_.msgid_){int64_t{0}}
|
|
, decltype(_impl_.timestamp_){uint64_t{0u}}
|
|
, decltype(_impl_.sourceid_){int64_t{0}}
|
|
, decltype(_impl_.targetid_){int64_t{0}}
|
|
, decltype(_impl_.msg_type_){0}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
}
|
|
|
|
MsgBase::~MsgBase() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.MsgBase)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void MsgBase::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
if (this != internal_default_instance()) delete _impl_.replicate_;
|
|
}
|
|
|
|
void MsgBase::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void MsgBase::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.MsgBase)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
if (GetArenaForAllocation() == nullptr && _impl_.replicate_ != nullptr) {
|
|
delete _impl_.replicate_;
|
|
}
|
|
_impl_.replicate_ = nullptr;
|
|
::memset(&_impl_.msgid_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&_impl_.msg_type_) -
|
|
reinterpret_cast<char*>(&_impl_.msgid_)) + sizeof(_impl_.msg_type_));
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* MsgBase::_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.common.MsgType msg_type = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
|
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
_internal_set_msg_type(static_cast<::milvus::proto::common::MsgType>(val));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// int64 msgID = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
|
_impl_.msgid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// uint64 timestamp = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
|
_impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// int64 sourceID = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
|
|
_impl_.sourceid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// int64 targetID = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
|
|
_impl_.targetid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// .milvus.proto.common.ReplicateEntity replicate = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
|
|
ptr = ctx->ParseMessage(_internal_mutable_replicate(), 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* MsgBase::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.MsgBase)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .milvus.proto.common.MsgType msg_type = 1;
|
|
if (this->_internal_msg_type() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this->_internal_msg_type(), target);
|
|
}
|
|
|
|
// int64 msgID = 2;
|
|
if (this->_internal_msgid() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_msgid(), target);
|
|
}
|
|
|
|
// uint64 timestamp = 3;
|
|
if (this->_internal_timestamp() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_timestamp(), target);
|
|
}
|
|
|
|
// int64 sourceID = 4;
|
|
if (this->_internal_sourceid() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteInt64ToArray(4, this->_internal_sourceid(), target);
|
|
}
|
|
|
|
// int64 targetID = 5;
|
|
if (this->_internal_targetid() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_targetid(), target);
|
|
}
|
|
|
|
// .milvus.proto.common.ReplicateEntity replicate = 6;
|
|
if (this->_internal_has_replicate()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessage(6, _Internal::replicate(this),
|
|
_Internal::replicate(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);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:milvus.proto.common.MsgBase)
|
|
return target;
|
|
}
|
|
|
|
size_t MsgBase::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.MsgBase)
|
|
size_t total_size = 0;
|
|
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// .milvus.proto.common.ReplicateEntity replicate = 6;
|
|
if (this->_internal_has_replicate()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*_impl_.replicate_);
|
|
}
|
|
|
|
// int64 msgID = 2;
|
|
if (this->_internal_msgid() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_msgid());
|
|
}
|
|
|
|
// uint64 timestamp = 3;
|
|
if (this->_internal_timestamp() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_timestamp());
|
|
}
|
|
|
|
// int64 sourceID = 4;
|
|
if (this->_internal_sourceid() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_sourceid());
|
|
}
|
|
|
|
// int64 targetID = 5;
|
|
if (this->_internal_targetid() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_targetid());
|
|
}
|
|
|
|
// .milvus.proto.common.MsgType msg_type = 1;
|
|
if (this->_internal_msg_type() != 0) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this->_internal_msg_type());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MsgBase::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
MsgBase::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MsgBase::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void MsgBase::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<MsgBase*>(&to_msg);
|
|
auto& from = static_cast<const MsgBase&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.MsgBase)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from._internal_has_replicate()) {
|
|
_this->_internal_mutable_replicate()->::milvus::proto::common::ReplicateEntity::MergeFrom(
|
|
from._internal_replicate());
|
|
}
|
|
if (from._internal_msgid() != 0) {
|
|
_this->_internal_set_msgid(from._internal_msgid());
|
|
}
|
|
if (from._internal_timestamp() != 0) {
|
|
_this->_internal_set_timestamp(from._internal_timestamp());
|
|
}
|
|
if (from._internal_sourceid() != 0) {
|
|
_this->_internal_set_sourceid(from._internal_sourceid());
|
|
}
|
|
if (from._internal_targetid() != 0) {
|
|
_this->_internal_set_targetid(from._internal_targetid());
|
|
}
|
|
if (from._internal_msg_type() != 0) {
|
|
_this->_internal_set_msg_type(from._internal_msg_type());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void MsgBase::CopyFrom(const MsgBase& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.MsgBase)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool MsgBase::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void MsgBase::InternalSwap(MsgBase* other) {
|
|
using std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(MsgBase, _impl_.msg_type_)
|
|
+ sizeof(MsgBase::_impl_.msg_type_)
|
|
- PROTOBUF_FIELD_OFFSET(MsgBase, _impl_.replicate_)>(
|
|
reinterpret_cast<char*>(&_impl_.replicate_),
|
|
reinterpret_cast<char*>(&other->_impl_.replicate_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata MsgBase::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[7]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ReplicateEntity::_Internal {
|
|
public:
|
|
};
|
|
|
|
ReplicateEntity::ReplicateEntity(::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.common.ReplicateEntity)
|
|
}
|
|
ReplicateEntity::ReplicateEntity(const ReplicateEntity& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
ReplicateEntity* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.isreplicate_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_this->_impl_.isreplicate_ = from._impl_.isreplicate_;
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.ReplicateEntity)
|
|
}
|
|
|
|
inline void ReplicateEntity::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.isreplicate_){false}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
}
|
|
|
|
ReplicateEntity::~ReplicateEntity() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.ReplicateEntity)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void ReplicateEntity::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
}
|
|
|
|
void ReplicateEntity::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void ReplicateEntity::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.ReplicateEntity)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.isreplicate_ = false;
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* ReplicateEntity::_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) {
|
|
// bool isReplicate = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
|
_impl_.isreplicate_ = ::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* ReplicateEntity::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.ReplicateEntity)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// bool isReplicate = 1;
|
|
if (this->_internal_isreplicate() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_isreplicate(), 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.common.ReplicateEntity)
|
|
return target;
|
|
}
|
|
|
|
size_t ReplicateEntity::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.ReplicateEntity)
|
|
size_t total_size = 0;
|
|
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// bool isReplicate = 1;
|
|
if (this->_internal_isreplicate() != 0) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReplicateEntity::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
ReplicateEntity::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReplicateEntity::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void ReplicateEntity::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<ReplicateEntity*>(&to_msg);
|
|
auto& from = static_cast<const ReplicateEntity&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.ReplicateEntity)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from._internal_isreplicate() != 0) {
|
|
_this->_internal_set_isreplicate(from._internal_isreplicate());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void ReplicateEntity::CopyFrom(const ReplicateEntity& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.ReplicateEntity)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ReplicateEntity::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void ReplicateEntity::InternalSwap(ReplicateEntity* other) {
|
|
using std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_.isreplicate_, other->_impl_.isreplicate_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ReplicateEntity::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[8]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class MsgHeader::_Internal {
|
|
public:
|
|
static const ::milvus::proto::common::MsgBase& base(const MsgHeader* msg);
|
|
};
|
|
|
|
const ::milvus::proto::common::MsgBase&
|
|
MsgHeader::_Internal::base(const MsgHeader* msg) {
|
|
return *msg->_impl_.base_;
|
|
}
|
|
MsgHeader::MsgHeader(::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.common.MsgHeader)
|
|
}
|
|
MsgHeader::MsgHeader(const MsgHeader& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
MsgHeader* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.base_){nullptr}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
if (from._internal_has_base()) {
|
|
_this->_impl_.base_ = new ::milvus::proto::common::MsgBase(*from._impl_.base_);
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.MsgHeader)
|
|
}
|
|
|
|
inline void MsgHeader::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.base_){nullptr}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
}
|
|
|
|
MsgHeader::~MsgHeader() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.MsgHeader)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void MsgHeader::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
if (this != internal_default_instance()) delete _impl_.base_;
|
|
}
|
|
|
|
void MsgHeader::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void MsgHeader::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.MsgHeader)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
if (GetArenaForAllocation() == nullptr && _impl_.base_ != nullptr) {
|
|
delete _impl_.base_;
|
|
}
|
|
_impl_.base_ = nullptr;
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* MsgHeader::_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.common.MsgBase base = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
ptr = ctx->ParseMessage(_internal_mutable_base(), 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* MsgHeader::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.MsgHeader)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .milvus.proto.common.MsgBase base = 1;
|
|
if (this->_internal_has_base()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessage(1, _Internal::base(this),
|
|
_Internal::base(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);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:milvus.proto.common.MsgHeader)
|
|
return target;
|
|
}
|
|
|
|
size_t MsgHeader::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.MsgHeader)
|
|
size_t total_size = 0;
|
|
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// .milvus.proto.common.MsgBase base = 1;
|
|
if (this->_internal_has_base()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*_impl_.base_);
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MsgHeader::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
MsgHeader::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MsgHeader::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void MsgHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<MsgHeader*>(&to_msg);
|
|
auto& from = static_cast<const MsgHeader&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.MsgHeader)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from._internal_has_base()) {
|
|
_this->_internal_mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(
|
|
from._internal_base());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void MsgHeader::CopyFrom(const MsgHeader& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.MsgHeader)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool MsgHeader::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void MsgHeader::InternalSwap(MsgHeader* other) {
|
|
using std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_.base_, other->_impl_.base_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata MsgHeader::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[9]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class DMLMsgHeader::_Internal {
|
|
public:
|
|
static const ::milvus::proto::common::MsgBase& base(const DMLMsgHeader* msg);
|
|
};
|
|
|
|
const ::milvus::proto::common::MsgBase&
|
|
DMLMsgHeader::_Internal::base(const DMLMsgHeader* msg) {
|
|
return *msg->_impl_.base_;
|
|
}
|
|
DMLMsgHeader::DMLMsgHeader(::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.common.DMLMsgHeader)
|
|
}
|
|
DMLMsgHeader::DMLMsgHeader(const DMLMsgHeader& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
DMLMsgHeader* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.shardname_){}
|
|
, decltype(_impl_.base_){nullptr}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_impl_.shardname_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.shardname_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_shardname().empty()) {
|
|
_this->_impl_.shardname_.Set(from._internal_shardname(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
if (from._internal_has_base()) {
|
|
_this->_impl_.base_ = new ::milvus::proto::common::MsgBase(*from._impl_.base_);
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.DMLMsgHeader)
|
|
}
|
|
|
|
inline void DMLMsgHeader::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.shardname_){}
|
|
, decltype(_impl_.base_){nullptr}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
_impl_.shardname_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.shardname_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
DMLMsgHeader::~DMLMsgHeader() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.DMLMsgHeader)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void DMLMsgHeader::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.shardname_.Destroy();
|
|
if (this != internal_default_instance()) delete _impl_.base_;
|
|
}
|
|
|
|
void DMLMsgHeader::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void DMLMsgHeader::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.DMLMsgHeader)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.shardname_.ClearToEmpty();
|
|
if (GetArenaForAllocation() == nullptr && _impl_.base_ != nullptr) {
|
|
delete _impl_.base_;
|
|
}
|
|
_impl_.base_ = nullptr;
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* DMLMsgHeader::_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.common.MsgBase base = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
ptr = ctx->ParseMessage(_internal_mutable_base(), ptr);
|
|
CHK_(ptr);
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// string shardName = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
|
auto str = _internal_mutable_shardname();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.DMLMsgHeader.shardName"));
|
|
} 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* DMLMsgHeader::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.DMLMsgHeader)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .milvus.proto.common.MsgBase base = 1;
|
|
if (this->_internal_has_base()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessage(1, _Internal::base(this),
|
|
_Internal::base(this).GetCachedSize(), target, stream);
|
|
}
|
|
|
|
// string shardName = 2;
|
|
if (!this->_internal_shardname().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_shardname().data(), static_cast<int>(this->_internal_shardname().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.DMLMsgHeader.shardName");
|
|
target = stream->WriteStringMaybeAliased(
|
|
2, this->_internal_shardname(), 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.common.DMLMsgHeader)
|
|
return target;
|
|
}
|
|
|
|
size_t DMLMsgHeader::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.DMLMsgHeader)
|
|
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 shardName = 2;
|
|
if (!this->_internal_shardname().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_shardname());
|
|
}
|
|
|
|
// .milvus.proto.common.MsgBase base = 1;
|
|
if (this->_internal_has_base()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*_impl_.base_);
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DMLMsgHeader::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
DMLMsgHeader::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DMLMsgHeader::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void DMLMsgHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<DMLMsgHeader*>(&to_msg);
|
|
auto& from = static_cast<const DMLMsgHeader&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.DMLMsgHeader)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (!from._internal_shardname().empty()) {
|
|
_this->_internal_set_shardname(from._internal_shardname());
|
|
}
|
|
if (from._internal_has_base()) {
|
|
_this->_internal_mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(
|
|
from._internal_base());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void DMLMsgHeader::CopyFrom(const DMLMsgHeader& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.DMLMsgHeader)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool DMLMsgHeader::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void DMLMsgHeader::InternalSwap(DMLMsgHeader* 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_.shardname_, lhs_arena,
|
|
&other->_impl_.shardname_, rhs_arena
|
|
);
|
|
swap(_impl_.base_, other->_impl_.base_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata DMLMsgHeader::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[10]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class PrivilegeExt::_Internal {
|
|
public:
|
|
};
|
|
|
|
PrivilegeExt::PrivilegeExt(::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.common.PrivilegeExt)
|
|
}
|
|
PrivilegeExt::PrivilegeExt(const PrivilegeExt& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
PrivilegeExt* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.object_type_){}
|
|
, decltype(_impl_.object_privilege_){}
|
|
, decltype(_impl_.object_name_index_){}
|
|
, decltype(_impl_.object_name_indexs_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
::memcpy(&_impl_.object_type_, &from._impl_.object_type_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.object_name_indexs_) -
|
|
reinterpret_cast<char*>(&_impl_.object_type_)) + sizeof(_impl_.object_name_indexs_));
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.PrivilegeExt)
|
|
}
|
|
|
|
inline void PrivilegeExt::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.object_type_){0}
|
|
, decltype(_impl_.object_privilege_){0}
|
|
, decltype(_impl_.object_name_index_){0}
|
|
, decltype(_impl_.object_name_indexs_){0}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
}
|
|
|
|
PrivilegeExt::~PrivilegeExt() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.PrivilegeExt)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void PrivilegeExt::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
}
|
|
|
|
void PrivilegeExt::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void PrivilegeExt::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.PrivilegeExt)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
::memset(&_impl_.object_type_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&_impl_.object_name_indexs_) -
|
|
reinterpret_cast<char*>(&_impl_.object_type_)) + sizeof(_impl_.object_name_indexs_));
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* PrivilegeExt::_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.common.ObjectType object_type = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
|
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
_internal_set_object_type(static_cast<::milvus::proto::common::ObjectType>(val));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// .milvus.proto.common.ObjectPrivilege object_privilege = 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_object_privilege(static_cast<::milvus::proto::common::ObjectPrivilege>(val));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// int32 object_name_index = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
|
_impl_.object_name_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
CHK_(ptr);
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// int32 object_name_indexs = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
|
|
_impl_.object_name_indexs_ = ::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* PrivilegeExt::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.PrivilegeExt)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .milvus.proto.common.ObjectType object_type = 1;
|
|
if (this->_internal_object_type() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this->_internal_object_type(), target);
|
|
}
|
|
|
|
// .milvus.proto.common.ObjectPrivilege object_privilege = 2;
|
|
if (this->_internal_object_privilege() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this->_internal_object_privilege(), target);
|
|
}
|
|
|
|
// int32 object_name_index = 3;
|
|
if (this->_internal_object_name_index() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_object_name_index(), target);
|
|
}
|
|
|
|
// int32 object_name_indexs = 4;
|
|
if (this->_internal_object_name_indexs() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_object_name_indexs(), 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.common.PrivilegeExt)
|
|
return target;
|
|
}
|
|
|
|
size_t PrivilegeExt::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.PrivilegeExt)
|
|
size_t total_size = 0;
|
|
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// .milvus.proto.common.ObjectType object_type = 1;
|
|
if (this->_internal_object_type() != 0) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this->_internal_object_type());
|
|
}
|
|
|
|
// .milvus.proto.common.ObjectPrivilege object_privilege = 2;
|
|
if (this->_internal_object_privilege() != 0) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this->_internal_object_privilege());
|
|
}
|
|
|
|
// int32 object_name_index = 3;
|
|
if (this->_internal_object_name_index() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_object_name_index());
|
|
}
|
|
|
|
// int32 object_name_indexs = 4;
|
|
if (this->_internal_object_name_indexs() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_object_name_indexs());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrivilegeExt::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
PrivilegeExt::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrivilegeExt::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void PrivilegeExt::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<PrivilegeExt*>(&to_msg);
|
|
auto& from = static_cast<const PrivilegeExt&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.PrivilegeExt)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from._internal_object_type() != 0) {
|
|
_this->_internal_set_object_type(from._internal_object_type());
|
|
}
|
|
if (from._internal_object_privilege() != 0) {
|
|
_this->_internal_set_object_privilege(from._internal_object_privilege());
|
|
}
|
|
if (from._internal_object_name_index() != 0) {
|
|
_this->_internal_set_object_name_index(from._internal_object_name_index());
|
|
}
|
|
if (from._internal_object_name_indexs() != 0) {
|
|
_this->_internal_set_object_name_indexs(from._internal_object_name_indexs());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void PrivilegeExt::CopyFrom(const PrivilegeExt& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.PrivilegeExt)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool PrivilegeExt::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void PrivilegeExt::InternalSwap(PrivilegeExt* other) {
|
|
using std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(PrivilegeExt, _impl_.object_name_indexs_)
|
|
+ sizeof(PrivilegeExt::_impl_.object_name_indexs_)
|
|
- PROTOBUF_FIELD_OFFSET(PrivilegeExt, _impl_.object_type_)>(
|
|
reinterpret_cast<char*>(&_impl_.object_type_),
|
|
reinterpret_cast<char*>(&other->_impl_.object_type_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata PrivilegeExt::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[11]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class SegmentStats::_Internal {
|
|
public:
|
|
};
|
|
|
|
SegmentStats::SegmentStats(::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.common.SegmentStats)
|
|
}
|
|
SegmentStats::SegmentStats(const SegmentStats& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
SegmentStats* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.segmentid_){}
|
|
, decltype(_impl_.numrows_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
::memcpy(&_impl_.segmentid_, &from._impl_.segmentid_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.numrows_) -
|
|
reinterpret_cast<char*>(&_impl_.segmentid_)) + sizeof(_impl_.numrows_));
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.SegmentStats)
|
|
}
|
|
|
|
inline void SegmentStats::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.segmentid_){int64_t{0}}
|
|
, decltype(_impl_.numrows_){int64_t{0}}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
}
|
|
|
|
SegmentStats::~SegmentStats() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.SegmentStats)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void SegmentStats::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
}
|
|
|
|
void SegmentStats::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void SegmentStats::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.SegmentStats)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
::memset(&_impl_.segmentid_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&_impl_.numrows_) -
|
|
reinterpret_cast<char*>(&_impl_.segmentid_)) + sizeof(_impl_.numrows_));
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* SegmentStats::_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 SegmentID = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
|
_impl_.segmentid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// int64 NumRows = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
|
_impl_.numrows_ = ::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* SegmentStats::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.SegmentStats)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// int64 SegmentID = 1;
|
|
if (this->_internal_segmentid() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_segmentid(), target);
|
|
}
|
|
|
|
// int64 NumRows = 2;
|
|
if (this->_internal_numrows() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_numrows(), 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.common.SegmentStats)
|
|
return target;
|
|
}
|
|
|
|
size_t SegmentStats::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.SegmentStats)
|
|
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 SegmentID = 1;
|
|
if (this->_internal_segmentid() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_segmentid());
|
|
}
|
|
|
|
// int64 NumRows = 2;
|
|
if (this->_internal_numrows() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_numrows());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SegmentStats::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
SegmentStats::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SegmentStats::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void SegmentStats::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<SegmentStats*>(&to_msg);
|
|
auto& from = static_cast<const SegmentStats&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.SegmentStats)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from._internal_segmentid() != 0) {
|
|
_this->_internal_set_segmentid(from._internal_segmentid());
|
|
}
|
|
if (from._internal_numrows() != 0) {
|
|
_this->_internal_set_numrows(from._internal_numrows());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void SegmentStats::CopyFrom(const SegmentStats& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.SegmentStats)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SegmentStats::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void SegmentStats::InternalSwap(SegmentStats* other) {
|
|
using std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(SegmentStats, _impl_.numrows_)
|
|
+ sizeof(SegmentStats::_impl_.numrows_)
|
|
- PROTOBUF_FIELD_OFFSET(SegmentStats, _impl_.segmentid_)>(
|
|
reinterpret_cast<char*>(&_impl_.segmentid_),
|
|
reinterpret_cast<char*>(&other->_impl_.segmentid_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata SegmentStats::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[12]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ClientInfo_ReservedEntry_DoNotUse::ClientInfo_ReservedEntry_DoNotUse() {}
|
|
ClientInfo_ReservedEntry_DoNotUse::ClientInfo_ReservedEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
: SuperType(arena) {}
|
|
void ClientInfo_ReservedEntry_DoNotUse::MergeFrom(const ClientInfo_ReservedEntry_DoNotUse& other) {
|
|
MergeFromInternal(other);
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ClientInfo_ReservedEntry_DoNotUse::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[13]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ClientInfo::_Internal {
|
|
public:
|
|
};
|
|
|
|
ClientInfo::ClientInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
bool is_message_owned)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
|
SharedCtor(arena, is_message_owned);
|
|
if (arena != nullptr && !is_message_owned) {
|
|
arena->OwnCustomDestructor(this, &ClientInfo::ArenaDtor);
|
|
}
|
|
// @@protoc_insertion_point(arena_constructor:milvus.proto.common.ClientInfo)
|
|
}
|
|
ClientInfo::ClientInfo(const ClientInfo& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
ClientInfo* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
/*decltype(_impl_.reserved_)*/{}
|
|
, decltype(_impl_.sdk_type_){}
|
|
, decltype(_impl_.sdk_version_){}
|
|
, decltype(_impl_.local_time_){}
|
|
, decltype(_impl_.user_){}
|
|
, decltype(_impl_.host_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_this->_impl_.reserved_.MergeFrom(from._impl_.reserved_);
|
|
_impl_.sdk_type_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.sdk_type_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_sdk_type().empty()) {
|
|
_this->_impl_.sdk_type_.Set(from._internal_sdk_type(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.sdk_version_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.sdk_version_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_sdk_version().empty()) {
|
|
_this->_impl_.sdk_version_.Set(from._internal_sdk_version(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.local_time_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.local_time_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_local_time().empty()) {
|
|
_this->_impl_.local_time_.Set(from._internal_local_time(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.user_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.user_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_user().empty()) {
|
|
_this->_impl_.user_.Set(from._internal_user(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.host_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.host_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_host().empty()) {
|
|
_this->_impl_.host_.Set(from._internal_host(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.ClientInfo)
|
|
}
|
|
|
|
inline void ClientInfo::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
/*decltype(_impl_.reserved_)*/{::_pbi::ArenaInitialized(), arena}
|
|
, decltype(_impl_.sdk_type_){}
|
|
, decltype(_impl_.sdk_version_){}
|
|
, decltype(_impl_.local_time_){}
|
|
, decltype(_impl_.user_){}
|
|
, decltype(_impl_.host_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
_impl_.sdk_type_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.sdk_type_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.sdk_version_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.sdk_version_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.local_time_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.local_time_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.user_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.user_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.host_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.host_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
ClientInfo::~ClientInfo() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.ClientInfo)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
ArenaDtor(this);
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void ClientInfo::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.reserved_.Destruct();
|
|
_impl_.reserved_.~MapField();
|
|
_impl_.sdk_type_.Destroy();
|
|
_impl_.sdk_version_.Destroy();
|
|
_impl_.local_time_.Destroy();
|
|
_impl_.user_.Destroy();
|
|
_impl_.host_.Destroy();
|
|
}
|
|
|
|
void ClientInfo::ArenaDtor(void* object) {
|
|
ClientInfo* _this = reinterpret_cast< ClientInfo* >(object);
|
|
_this->_impl_.reserved_.Destruct();
|
|
}
|
|
void ClientInfo::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void ClientInfo::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.ClientInfo)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.reserved_.Clear();
|
|
_impl_.sdk_type_.ClearToEmpty();
|
|
_impl_.sdk_version_.ClearToEmpty();
|
|
_impl_.local_time_.ClearToEmpty();
|
|
_impl_.user_.ClearToEmpty();
|
|
_impl_.host_.ClearToEmpty();
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* ClientInfo::_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 sdk_type = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
auto str = _internal_mutable_sdk_type();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.ClientInfo.sdk_type"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// string sdk_version = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
|
auto str = _internal_mutable_sdk_version();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.ClientInfo.sdk_version"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// string local_time = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
|
auto str = _internal_mutable_local_time();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.ClientInfo.local_time"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// string user = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
|
|
auto str = _internal_mutable_user();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.ClientInfo.user"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// string host = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
|
|
auto str = _internal_mutable_host();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.ClientInfo.host"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// map<string, string> reserved = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(&_impl_.reserved_, ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(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* ClientInfo::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.ClientInfo)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string sdk_type = 1;
|
|
if (!this->_internal_sdk_type().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_sdk_type().data(), static_cast<int>(this->_internal_sdk_type().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ClientInfo.sdk_type");
|
|
target = stream->WriteStringMaybeAliased(
|
|
1, this->_internal_sdk_type(), target);
|
|
}
|
|
|
|
// string sdk_version = 2;
|
|
if (!this->_internal_sdk_version().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_sdk_version().data(), static_cast<int>(this->_internal_sdk_version().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ClientInfo.sdk_version");
|
|
target = stream->WriteStringMaybeAliased(
|
|
2, this->_internal_sdk_version(), target);
|
|
}
|
|
|
|
// string local_time = 3;
|
|
if (!this->_internal_local_time().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_local_time().data(), static_cast<int>(this->_internal_local_time().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ClientInfo.local_time");
|
|
target = stream->WriteStringMaybeAliased(
|
|
3, this->_internal_local_time(), target);
|
|
}
|
|
|
|
// string user = 4;
|
|
if (!this->_internal_user().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_user().data(), static_cast<int>(this->_internal_user().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ClientInfo.user");
|
|
target = stream->WriteStringMaybeAliased(
|
|
4, this->_internal_user(), target);
|
|
}
|
|
|
|
// string host = 5;
|
|
if (!this->_internal_host().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_host().data(), static_cast<int>(this->_internal_host().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ClientInfo.host");
|
|
target = stream->WriteStringMaybeAliased(
|
|
5, this->_internal_host(), target);
|
|
}
|
|
|
|
// map<string, string> reserved = 6;
|
|
if (!this->_internal_reserved().empty()) {
|
|
using MapType = ::_pb::Map<std::string, std::string>;
|
|
using WireHelper = ClientInfo_ReservedEntry_DoNotUse::Funcs;
|
|
const auto& map_field = this->_internal_reserved();
|
|
auto check_utf8 = [](const MapType::value_type& entry) {
|
|
(void)entry;
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
entry.first.data(), static_cast<int>(entry.first.length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ClientInfo.ReservedEntry.key");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
entry.second.data(), static_cast<int>(entry.second.length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ClientInfo.ReservedEntry.value");
|
|
};
|
|
|
|
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
|
|
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
|
|
target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream);
|
|
check_utf8(entry);
|
|
}
|
|
} else {
|
|
for (const auto& entry : map_field) {
|
|
target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream);
|
|
check_utf8(entry);
|
|
}
|
|
}
|
|
}
|
|
|
|
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.common.ClientInfo)
|
|
return target;
|
|
}
|
|
|
|
size_t ClientInfo::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.ClientInfo)
|
|
size_t total_size = 0;
|
|
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// map<string, string> reserved = 6;
|
|
total_size += 1 *
|
|
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_reserved_size());
|
|
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
|
|
it = this->_internal_reserved().begin();
|
|
it != this->_internal_reserved().end(); ++it) {
|
|
total_size += ClientInfo_ReservedEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
|
|
}
|
|
|
|
// string sdk_type = 1;
|
|
if (!this->_internal_sdk_type().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_sdk_type());
|
|
}
|
|
|
|
// string sdk_version = 2;
|
|
if (!this->_internal_sdk_version().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_sdk_version());
|
|
}
|
|
|
|
// string local_time = 3;
|
|
if (!this->_internal_local_time().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_local_time());
|
|
}
|
|
|
|
// string user = 4;
|
|
if (!this->_internal_user().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_user());
|
|
}
|
|
|
|
// string host = 5;
|
|
if (!this->_internal_host().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_host());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ClientInfo::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
ClientInfo::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ClientInfo::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void ClientInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<ClientInfo*>(&to_msg);
|
|
auto& from = static_cast<const ClientInfo&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.ClientInfo)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
_this->_impl_.reserved_.MergeFrom(from._impl_.reserved_);
|
|
if (!from._internal_sdk_type().empty()) {
|
|
_this->_internal_set_sdk_type(from._internal_sdk_type());
|
|
}
|
|
if (!from._internal_sdk_version().empty()) {
|
|
_this->_internal_set_sdk_version(from._internal_sdk_version());
|
|
}
|
|
if (!from._internal_local_time().empty()) {
|
|
_this->_internal_set_local_time(from._internal_local_time());
|
|
}
|
|
if (!from._internal_user().empty()) {
|
|
_this->_internal_set_user(from._internal_user());
|
|
}
|
|
if (!from._internal_host().empty()) {
|
|
_this->_internal_set_host(from._internal_host());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void ClientInfo::CopyFrom(const ClientInfo& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.ClientInfo)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientInfo::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void ClientInfo::InternalSwap(ClientInfo* other) {
|
|
using std::swap;
|
|
auto* lhs_arena = GetArenaForAllocation();
|
|
auto* rhs_arena = other->GetArenaForAllocation();
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
_impl_.reserved_.InternalSwap(&other->_impl_.reserved_);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.sdk_type_, lhs_arena,
|
|
&other->_impl_.sdk_type_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.sdk_version_, lhs_arena,
|
|
&other->_impl_.sdk_version_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.local_time_, lhs_arena,
|
|
&other->_impl_.local_time_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.user_, lhs_arena,
|
|
&other->_impl_.user_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.host_, lhs_arena,
|
|
&other->_impl_.host_, rhs_arena
|
|
);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ClientInfo::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[14]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ServerInfo_ReservedEntry_DoNotUse::ServerInfo_ReservedEntry_DoNotUse() {}
|
|
ServerInfo_ReservedEntry_DoNotUse::ServerInfo_ReservedEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
: SuperType(arena) {}
|
|
void ServerInfo_ReservedEntry_DoNotUse::MergeFrom(const ServerInfo_ReservedEntry_DoNotUse& other) {
|
|
MergeFromInternal(other);
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ServerInfo_ReservedEntry_DoNotUse::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[15]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ServerInfo::_Internal {
|
|
public:
|
|
};
|
|
|
|
ServerInfo::ServerInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
bool is_message_owned)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
|
SharedCtor(arena, is_message_owned);
|
|
if (arena != nullptr && !is_message_owned) {
|
|
arena->OwnCustomDestructor(this, &ServerInfo::ArenaDtor);
|
|
}
|
|
// @@protoc_insertion_point(arena_constructor:milvus.proto.common.ServerInfo)
|
|
}
|
|
ServerInfo::ServerInfo(const ServerInfo& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
ServerInfo* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
/*decltype(_impl_.reserved_)*/{}
|
|
, decltype(_impl_.build_tags_){}
|
|
, decltype(_impl_.build_time_){}
|
|
, decltype(_impl_.git_commit_){}
|
|
, decltype(_impl_.go_version_){}
|
|
, decltype(_impl_.deploy_mode_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_this->_impl_.reserved_.MergeFrom(from._impl_.reserved_);
|
|
_impl_.build_tags_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.build_tags_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_build_tags().empty()) {
|
|
_this->_impl_.build_tags_.Set(from._internal_build_tags(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.build_time_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.build_time_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_build_time().empty()) {
|
|
_this->_impl_.build_time_.Set(from._internal_build_time(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.git_commit_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.git_commit_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_git_commit().empty()) {
|
|
_this->_impl_.git_commit_.Set(from._internal_git_commit(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.go_version_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.go_version_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_go_version().empty()) {
|
|
_this->_impl_.go_version_.Set(from._internal_go_version(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.deploy_mode_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.deploy_mode_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (!from._internal_deploy_mode().empty()) {
|
|
_this->_impl_.deploy_mode_.Set(from._internal_deploy_mode(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:milvus.proto.common.ServerInfo)
|
|
}
|
|
|
|
inline void ServerInfo::SharedCtor(
|
|
::_pb::Arena* arena, bool is_message_owned) {
|
|
(void)arena;
|
|
(void)is_message_owned;
|
|
new (&_impl_) Impl_{
|
|
/*decltype(_impl_.reserved_)*/{::_pbi::ArenaInitialized(), arena}
|
|
, decltype(_impl_.build_tags_){}
|
|
, decltype(_impl_.build_time_){}
|
|
, decltype(_impl_.git_commit_){}
|
|
, decltype(_impl_.go_version_){}
|
|
, decltype(_impl_.deploy_mode_){}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
};
|
|
_impl_.build_tags_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.build_tags_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.build_time_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.build_time_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.git_commit_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.git_commit_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.go_version_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.go_version_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.deploy_mode_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.deploy_mode_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
ServerInfo::~ServerInfo() {
|
|
// @@protoc_insertion_point(destructor:milvus.proto.common.ServerInfo)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
ArenaDtor(this);
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void ServerInfo::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.reserved_.Destruct();
|
|
_impl_.reserved_.~MapField();
|
|
_impl_.build_tags_.Destroy();
|
|
_impl_.build_time_.Destroy();
|
|
_impl_.git_commit_.Destroy();
|
|
_impl_.go_version_.Destroy();
|
|
_impl_.deploy_mode_.Destroy();
|
|
}
|
|
|
|
void ServerInfo::ArenaDtor(void* object) {
|
|
ServerInfo* _this = reinterpret_cast< ServerInfo* >(object);
|
|
_this->_impl_.reserved_.Destruct();
|
|
}
|
|
void ServerInfo::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void ServerInfo::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:milvus.proto.common.ServerInfo)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.reserved_.Clear();
|
|
_impl_.build_tags_.ClearToEmpty();
|
|
_impl_.build_time_.ClearToEmpty();
|
|
_impl_.git_commit_.ClearToEmpty();
|
|
_impl_.go_version_.ClearToEmpty();
|
|
_impl_.deploy_mode_.ClearToEmpty();
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* ServerInfo::_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 build_tags = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
auto str = _internal_mutable_build_tags();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.ServerInfo.build_tags"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// string build_time = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
|
auto str = _internal_mutable_build_time();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.ServerInfo.build_time"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// string git_commit = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
|
auto str = _internal_mutable_git_commit();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.ServerInfo.git_commit"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// string go_version = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
|
|
auto str = _internal_mutable_go_version();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.ServerInfo.go_version"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// string deploy_mode = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
|
|
auto str = _internal_mutable_deploy_mode();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
CHK_(::_pbi::VerifyUTF8(str, "milvus.proto.common.ServerInfo.deploy_mode"));
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// map<string, string> reserved = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(&_impl_.reserved_, ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(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* ServerInfo::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:milvus.proto.common.ServerInfo)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string build_tags = 1;
|
|
if (!this->_internal_build_tags().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_build_tags().data(), static_cast<int>(this->_internal_build_tags().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ServerInfo.build_tags");
|
|
target = stream->WriteStringMaybeAliased(
|
|
1, this->_internal_build_tags(), target);
|
|
}
|
|
|
|
// string build_time = 2;
|
|
if (!this->_internal_build_time().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_build_time().data(), static_cast<int>(this->_internal_build_time().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ServerInfo.build_time");
|
|
target = stream->WriteStringMaybeAliased(
|
|
2, this->_internal_build_time(), target);
|
|
}
|
|
|
|
// string git_commit = 3;
|
|
if (!this->_internal_git_commit().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_git_commit().data(), static_cast<int>(this->_internal_git_commit().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ServerInfo.git_commit");
|
|
target = stream->WriteStringMaybeAliased(
|
|
3, this->_internal_git_commit(), target);
|
|
}
|
|
|
|
// string go_version = 4;
|
|
if (!this->_internal_go_version().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_go_version().data(), static_cast<int>(this->_internal_go_version().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ServerInfo.go_version");
|
|
target = stream->WriteStringMaybeAliased(
|
|
4, this->_internal_go_version(), target);
|
|
}
|
|
|
|
// string deploy_mode = 5;
|
|
if (!this->_internal_deploy_mode().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_deploy_mode().data(), static_cast<int>(this->_internal_deploy_mode().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ServerInfo.deploy_mode");
|
|
target = stream->WriteStringMaybeAliased(
|
|
5, this->_internal_deploy_mode(), target);
|
|
}
|
|
|
|
// map<string, string> reserved = 6;
|
|
if (!this->_internal_reserved().empty()) {
|
|
using MapType = ::_pb::Map<std::string, std::string>;
|
|
using WireHelper = ServerInfo_ReservedEntry_DoNotUse::Funcs;
|
|
const auto& map_field = this->_internal_reserved();
|
|
auto check_utf8 = [](const MapType::value_type& entry) {
|
|
(void)entry;
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
entry.first.data(), static_cast<int>(entry.first.length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ServerInfo.ReservedEntry.key");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
entry.second.data(), static_cast<int>(entry.second.length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"milvus.proto.common.ServerInfo.ReservedEntry.value");
|
|
};
|
|
|
|
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
|
|
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
|
|
target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream);
|
|
check_utf8(entry);
|
|
}
|
|
} else {
|
|
for (const auto& entry : map_field) {
|
|
target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream);
|
|
check_utf8(entry);
|
|
}
|
|
}
|
|
}
|
|
|
|
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.common.ServerInfo)
|
|
return target;
|
|
}
|
|
|
|
size_t ServerInfo::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:milvus.proto.common.ServerInfo)
|
|
size_t total_size = 0;
|
|
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// map<string, string> reserved = 6;
|
|
total_size += 1 *
|
|
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_reserved_size());
|
|
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
|
|
it = this->_internal_reserved().begin();
|
|
it != this->_internal_reserved().end(); ++it) {
|
|
total_size += ServerInfo_ReservedEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
|
|
}
|
|
|
|
// string build_tags = 1;
|
|
if (!this->_internal_build_tags().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_build_tags());
|
|
}
|
|
|
|
// string build_time = 2;
|
|
if (!this->_internal_build_time().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_build_time());
|
|
}
|
|
|
|
// string git_commit = 3;
|
|
if (!this->_internal_git_commit().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_git_commit());
|
|
}
|
|
|
|
// string go_version = 4;
|
|
if (!this->_internal_go_version().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_go_version());
|
|
}
|
|
|
|
// string deploy_mode = 5;
|
|
if (!this->_internal_deploy_mode().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_deploy_mode());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ServerInfo::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
ServerInfo::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ServerInfo::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void ServerInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<ServerInfo*>(&to_msg);
|
|
auto& from = static_cast<const ServerInfo&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.common.ServerInfo)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
_this->_impl_.reserved_.MergeFrom(from._impl_.reserved_);
|
|
if (!from._internal_build_tags().empty()) {
|
|
_this->_internal_set_build_tags(from._internal_build_tags());
|
|
}
|
|
if (!from._internal_build_time().empty()) {
|
|
_this->_internal_set_build_time(from._internal_build_time());
|
|
}
|
|
if (!from._internal_git_commit().empty()) {
|
|
_this->_internal_set_git_commit(from._internal_git_commit());
|
|
}
|
|
if (!from._internal_go_version().empty()) {
|
|
_this->_internal_set_go_version(from._internal_go_version());
|
|
}
|
|
if (!from._internal_deploy_mode().empty()) {
|
|
_this->_internal_set_deploy_mode(from._internal_deploy_mode());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void ServerInfo::CopyFrom(const ServerInfo& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.common.ServerInfo)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ServerInfo::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void ServerInfo::InternalSwap(ServerInfo* other) {
|
|
using std::swap;
|
|
auto* lhs_arena = GetArenaForAllocation();
|
|
auto* rhs_arena = other->GetArenaForAllocation();
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
_impl_.reserved_.InternalSwap(&other->_impl_.reserved_);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.build_tags_, lhs_arena,
|
|
&other->_impl_.build_tags_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.build_time_, lhs_arena,
|
|
&other->_impl_.build_time_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.git_commit_, lhs_arena,
|
|
&other->_impl_.git_commit_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.go_version_, lhs_arena,
|
|
&other->_impl_.go_version_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.deploy_mode_, lhs_arena,
|
|
&other->_impl_.deploy_mode_, rhs_arena
|
|
);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ServerInfo::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
|
|
file_level_metadata_common_2eproto[16]);
|
|
}
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions,
|
|
::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::milvus::proto::common::PrivilegeExt >, 11, false>
|
|
privilege_ext_obj(kPrivilegeExtObjFieldNumber, ::milvus::proto::common::PrivilegeExt::default_instance(), nullptr);
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace common
|
|
} // namespace proto
|
|
} // namespace milvus
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::Status*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::Status >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::Status >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::KeyValuePair*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::KeyValuePair >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::KeyValuePair >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::KeyDataPair*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::KeyDataPair >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::KeyDataPair >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::Blob*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::Blob >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::Blob >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::PlaceholderValue*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::PlaceholderValue >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::PlaceholderValue >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::PlaceholderGroup*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::PlaceholderGroup >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::PlaceholderGroup >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::Address*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::Address >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::Address >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::MsgBase*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::MsgBase >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::MsgBase >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::ReplicateEntity*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::ReplicateEntity >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::ReplicateEntity >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::MsgHeader*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::MsgHeader >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::MsgHeader >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::DMLMsgHeader*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::DMLMsgHeader >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::DMLMsgHeader >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::PrivilegeExt*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::PrivilegeExt >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::PrivilegeExt >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::SegmentStats*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::SegmentStats >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::SegmentStats >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::ClientInfo_ReservedEntry_DoNotUse*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::ClientInfo_ReservedEntry_DoNotUse >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::ClientInfo_ReservedEntry_DoNotUse >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::ClientInfo*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::ClientInfo >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::ClientInfo >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::ServerInfo_ReservedEntry_DoNotUse*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::ServerInfo_ReservedEntry_DoNotUse >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::ServerInfo_ReservedEntry_DoNotUse >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::milvus::proto::common::ServerInfo*
|
|
Arena::CreateMaybeMessage< ::milvus::proto::common::ServerInfo >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::milvus::proto::common::ServerInfo >(arena);
|
|
}
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include <google/protobuf/port_undef.inc>
|