mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-02 08:55:56 +08:00
3532 lines
125 KiB
C++
3532 lines
125 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_._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_.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 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_;
|
|
} // namespace common
|
|
} // namespace proto
|
|
} // namespace milvus
|
|
static ::_pb::Metadata file_level_metadata_common_2eproto[11];
|
|
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_),
|
|
~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_),
|
|
~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_),
|
|
};
|
|
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
{ 0, -1, -1, sizeof(::milvus::proto::common::Status)},
|
|
{ 8, -1, -1, sizeof(::milvus::proto::common::KeyValuePair)},
|
|
{ 16, -1, -1, sizeof(::milvus::proto::common::KeyDataPair)},
|
|
{ 24, -1, -1, sizeof(::milvus::proto::common::Blob)},
|
|
{ 31, -1, -1, sizeof(::milvus::proto::common::PlaceholderValue)},
|
|
{ 40, -1, -1, sizeof(::milvus::proto::common::PlaceholderGroup)},
|
|
{ 47, -1, -1, sizeof(::milvus::proto::common::Address)},
|
|
{ 55, -1, -1, sizeof(::milvus::proto::common::MsgBase)},
|
|
{ 66, -1, -1, sizeof(::milvus::proto::common::MsgHeader)},
|
|
{ 73, -1, -1, sizeof(::milvus::proto::common::DMLMsgHeader)},
|
|
{ 81, -1, -1, sizeof(::milvus::proto::common::PrivilegeExt)},
|
|
};
|
|
|
|
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::_MsgHeader_default_instance_._instance,
|
|
&::milvus::proto::common::_DMLMsgHeader_default_instance_._instance,
|
|
&::milvus::proto::common::_PrivilegeExt_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\"L\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\"*\n\014KeyValueP"
|
|
"air\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"(\n\013KeyDa"
|
|
"taPair\022\013\n\003key\030\001 \001(\t\022\014\n\004data\030\002 \001(\014\"\025\n\004Blo"
|
|
"b\022\r\n\005value\030\001 \001(\014\"c\n\020PlaceholderValue\022\013\n\003"
|
|
"tag\030\001 \001(\t\0222\n\004type\030\002 \001(\0162$.milvus.proto.c"
|
|
"ommon.PlaceholderType\022\016\n\006values\030\003 \003(\014\"O\n"
|
|
"\020PlaceholderGroup\022;\n\014placeholders\030\001 \003(\0132"
|
|
"%.milvus.proto.common.PlaceholderValue\"#"
|
|
"\n\007Address\022\n\n\002ip\030\001 \001(\t\022\014\n\004port\030\002 \001(\003\"\177\n\007M"
|
|
"sgBase\022.\n\010msg_type\030\001 \001(\0162\034.milvus.proto."
|
|
"common.MsgType\022\r\n\005msgID\030\002 \001(\003\022\021\n\ttimesta"
|
|
"mp\030\003 \001(\004\022\020\n\010sourceID\030\004 \001(\003\022\020\n\010targetID\030\005"
|
|
" \001(\003\"7\n\tMsgHeader\022*\n\004base\030\001 \001(\0132\034.milvus"
|
|
".proto.common.MsgBase\"M\n\014DMLMsgHeader\022*\n"
|
|
"\004base\030\001 \001(\0132\034.milvus.proto.common.MsgBas"
|
|
"e\022\021\n\tshardName\030\002 \001(\t\"\273\001\n\014PrivilegeExt\0224\n"
|
|
"\013object_type\030\001 \001(\0162\037.milvus.proto.common"
|
|
".ObjectType\022>\n\020object_privilege\030\002 \001(\0162$."
|
|
"milvus.proto.common.ObjectPrivilege\022\031\n\021o"
|
|
"bject_name_index\030\003 \001(\005\022\032\n\022object_name_in"
|
|
"dexs\030\004 \001(\005*\303\n\n\tErrorCode\022\013\n\007Success\020\000\022\023\n"
|
|
"\017UnexpectedError\020\001\022\021\n\rConnectFailed\020\002\022\024\n"
|
|
"\020PermissionDenied\020\003\022\027\n\023CollectionNotExis"
|
|
"ts\020\004\022\023\n\017IllegalArgument\020\005\022\024\n\020IllegalDime"
|
|
"nsion\020\007\022\024\n\020IllegalIndexType\020\010\022\031\n\025Illegal"
|
|
"CollectionName\020\t\022\017\n\013IllegalTOPK\020\n\022\024\n\020Ill"
|
|
"egalRowRecord\020\013\022\023\n\017IllegalVectorID\020\014\022\027\n\023"
|
|
"IllegalSearchResult\020\r\022\020\n\014FileNotFound\020\016\022"
|
|
"\016\n\nMetaFailed\020\017\022\017\n\013CacheFailed\020\020\022\026\n\022Cann"
|
|
"otCreateFolder\020\021\022\024\n\020CannotCreateFile\020\022\022\026"
|
|
"\n\022CannotDeleteFolder\020\023\022\024\n\020CannotDeleteFi"
|
|
"le\020\024\022\023\n\017BuildIndexError\020\025\022\020\n\014IllegalNLIS"
|
|
"T\020\026\022\025\n\021IllegalMetricType\020\027\022\017\n\013OutOfMemor"
|
|
"y\020\030\022\021\n\rIndexNotExist\020\031\022\023\n\017EmptyCollectio"
|
|
"n\020\032\022\033\n\027UpdateImportTaskFailure\020\033\022\032\n\026Coll"
|
|
"ectionNameNotFound\020\034\022\033\n\027CreateCredential"
|
|
"Failure\020\035\022\033\n\027UpdateCredentialFailure\020\036\022\033"
|
|
"\n\027DeleteCredentialFailure\020\037\022\030\n\024GetCreden"
|
|
"tialFailure\020 \022\030\n\024ListCredUsersFailure\020!\022"
|
|
"\022\n\016GetUserFailure\020\"\022\025\n\021CreateRoleFailure"
|
|
"\020#\022\023\n\017DropRoleFailure\020$\022\032\n\026OperateUserRo"
|
|
"leFailure\020%\022\025\n\021SelectRoleFailure\020&\022\025\n\021Se"
|
|
"lectUserFailure\020\'\022\031\n\025SelectResourceFailu"
|
|
"re\020(\022\033\n\027OperatePrivilegeFailure\020)\022\026\n\022Sel"
|
|
"ectGrantFailure\020*\022!\n\035RefreshPolicyInfoCa"
|
|
"cheFailure\020+\022\025\n\021ListPolicyFailure\020,\022\022\n\016N"
|
|
"otShardLeader\020-\022\026\n\022NoReplicaAvailable\020.\022"
|
|
"\023\n\017SegmentNotFound\020/\022\r\n\tForceDeny\0200\022\r\n\tR"
|
|
"ateLimit\0201\022\022\n\016NodeIDNotMatch\0202\022\024\n\020Upsert"
|
|
"AutoIDTrue\0203\022\034\n\030InsufficientMemoryToLoad"
|
|
"\0204\022\030\n\024MemoryQuotaExhausted\0205\022\026\n\022DiskQuot"
|
|
"aExhausted\0206\022\025\n\021TimeTickLongDelay\0207\022\021\n\rN"
|
|
"otReadyServe\0208\022\033\n\027NotReadyCoordActivatin"
|
|
"g\0209\022\017\n\013DataCoordNA\020d\022\022\n\rDDRequestRace\020\350\007"
|
|
"*c\n\nIndexState\022\022\n\016IndexStateNone\020\000\022\014\n\010Un"
|
|
"issued\020\001\022\016\n\nInProgress\020\002\022\014\n\010Finished\020\003\022\n"
|
|
"\n\006Failed\020\004\022\t\n\005Retry\020\005*\202\001\n\014SegmentState\022\024"
|
|
"\n\020SegmentStateNone\020\000\022\014\n\010NotExist\020\001\022\013\n\007Gr"
|
|
"owing\020\002\022\n\n\006Sealed\020\003\022\013\n\007Flushed\020\004\022\014\n\010Flus"
|
|
"hing\020\005\022\013\n\007Dropped\020\006\022\r\n\tImporting\020\007*>\n\017Pl"
|
|
"aceholderType\022\010\n\004None\020\000\022\020\n\014BinaryVector\020"
|
|
"d\022\017\n\013FloatVector\020e*\300\016\n\007MsgType\022\r\n\tUndefi"
|
|
"ned\020\000\022\024\n\020CreateCollection\020d\022\022\n\016DropColle"
|
|
"ction\020e\022\021\n\rHasCollection\020f\022\026\n\022DescribeCo"
|
|
"llection\020g\022\023\n\017ShowCollections\020h\022\024\n\020GetSy"
|
|
"stemConfigs\020i\022\022\n\016LoadCollection\020j\022\025\n\021Rel"
|
|
"easeCollection\020k\022\017\n\013CreateAlias\020l\022\r\n\tDro"
|
|
"pAlias\020m\022\016\n\nAlterAlias\020n\022\023\n\017AlterCollect"
|
|
"ion\020o\022\024\n\020RenameCollection\020p\022\024\n\017CreatePar"
|
|
"tition\020\310\001\022\022\n\rDropPartition\020\311\001\022\021\n\014HasPart"
|
|
"ition\020\312\001\022\026\n\021DescribePartition\020\313\001\022\023\n\016Show"
|
|
"Partitions\020\314\001\022\023\n\016LoadPartitions\020\315\001\022\026\n\021Re"
|
|
"leasePartitions\020\316\001\022\021\n\014ShowSegments\020\372\001\022\024\n"
|
|
"\017DescribeSegment\020\373\001\022\021\n\014LoadSegments\020\374\001\022\024"
|
|
"\n\017ReleaseSegments\020\375\001\022\024\n\017HandoffSegments\020"
|
|
"\376\001\022\030\n\023LoadBalanceSegments\020\377\001\022\025\n\020Describe"
|
|
"Segments\020\200\002\022\020\n\013CreateIndex\020\254\002\022\022\n\rDescrib"
|
|
"eIndex\020\255\002\022\016\n\tDropIndex\020\256\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\022ResendSegment"
|
|
"Stats\020\223\003\022\013\n\006Upsert\020\224\003\022\013\n\006Search\020\364\003\022\021\n\014Se"
|
|
"archResult\020\365\003\022\022\n\rGetIndexState\020\366\003\022\032\n\025Get"
|
|
"IndexBuildProgress\020\367\003\022\034\n\027GetCollectionSt"
|
|
"atistics\020\370\003\022\033\n\026GetPartitionStatistics\020\371\003"
|
|
"\022\r\n\010Retrieve\020\372\003\022\023\n\016RetrieveResult\020\373\003\022\024\n\017"
|
|
"WatchDmChannels\020\374\003\022\025\n\020RemoveDmChannels\020\375"
|
|
"\003\022\027\n\022WatchQueryChannels\020\376\003\022\030\n\023RemoveQuer"
|
|
"yChannels\020\377\003\022\035\n\030SealedSegmentsChangeInfo"
|
|
"\020\200\004\022\027\n\022WatchDeltaChannels\020\201\004\022\024\n\017GetShard"
|
|
"Leaders\020\202\004\022\020\n\013GetReplicas\020\203\004\022\023\n\016UnsubDmC"
|
|
"hannel\020\204\004\022\024\n\017GetDistribution\020\205\004\022\025\n\020SyncD"
|
|
"istribution\020\206\004\022\020\n\013SegmentInfo\020\330\004\022\017\n\nSyst"
|
|
"emInfo\020\331\004\022\024\n\017GetRecoveryInfo\020\332\004\022\024\n\017GetSe"
|
|
"gmentState\020\333\004\022\r\n\010TimeTick\020\260\t\022\023\n\016QueryNod"
|
|
"eStats\020\261\t\022\016\n\tLoadIndex\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\021SegmentStatistics\020\266\t\022\025\n\020SegmentFlush"
|
|
"Done\020\267\t\022\017\n\nDataNodeTt\020\270\t\022\025\n\020CreateCreden"
|
|
"tial\020\334\013\022\022\n\rGetCredential\020\335\013\022\025\n\020DeleteCre"
|
|
"dential\020\336\013\022\025\n\020UpdateCredential\020\337\013\022\026\n\021Lis"
|
|
"tCredUsernames\020\340\013\022\017\n\nCreateRole\020\300\014\022\r\n\010Dr"
|
|
"opRole\020\301\014\022\024\n\017OperateUserRole\020\302\014\022\017\n\nSelec"
|
|
"tRole\020\303\014\022\017\n\nSelectUser\020\304\014\022\023\n\016SelectResou"
|
|
"rce\020\305\014\022\025\n\020OperatePrivilege\020\306\014\022\020\n\013SelectG"
|
|
"rant\020\307\014\022\033\n\026RefreshPolicyInfoCache\020\310\014\022\017\n\n"
|
|
"ListPolicy\020\311\014\022\030\n\023CreateResourceGroup\020\244\r\022"
|
|
"\026\n\021DropResourceGroup\020\245\r\022\027\n\022ListResourceG"
|
|
"roups\020\246\r\022\032\n\025DescribeResourceGroup\020\247\r\022\021\n\014"
|
|
"TransferNode\020\250\r\022\024\n\017TransferReplica\020\251\r*\"\n"
|
|
"\007DslType\022\007\n\003Dsl\020\000\022\016\n\nBoolExprV1\020\001*B\n\017Com"
|
|
"pactionState\022\021\n\rUndefiedState\020\000\022\r\n\tExecu"
|
|
"ting\020\001\022\r\n\tCompleted\020\002*X\n\020ConsistencyLeve"
|
|
"l\022\n\n\006Strong\020\000\022\013\n\007Session\020\001\022\013\n\007Bounded\020\002\022"
|
|
"\016\n\nEventually\020\003\022\016\n\nCustomized\020\004*\236\001\n\013Impo"
|
|
"rtState\022\021\n\rImportPending\020\000\022\020\n\014ImportFail"
|
|
"ed\020\001\022\021\n\rImportStarted\020\002\022\023\n\017ImportPersist"
|
|
"ed\020\005\022\021\n\rImportFlushed\020\010\022\023\n\017ImportComplet"
|
|
"ed\020\006\022\032\n\026ImportFailedAndCleaned\020\007*2\n\nObje"
|
|
"ctType\022\016\n\nCollection\020\000\022\n\n\006Global\020\001\022\010\n\004Us"
|
|
"er\020\002*\227\007\n\017ObjectPrivilege\022\020\n\014PrivilegeAll"
|
|
"\020\000\022\035\n\031PrivilegeCreateCollection\020\001\022\033\n\027Pri"
|
|
"vilegeDropCollection\020\002\022\037\n\033PrivilegeDescr"
|
|
"ibeCollection\020\003\022\034\n\030PrivilegeShowCollecti"
|
|
"ons\020\004\022\021\n\rPrivilegeLoad\020\005\022\024\n\020PrivilegeRel"
|
|
"ease\020\006\022\027\n\023PrivilegeCompaction\020\007\022\023\n\017Privi"
|
|
"legeInsert\020\010\022\023\n\017PrivilegeDelete\020\t\022\032\n\026Pri"
|
|
"vilegeGetStatistics\020\n\022\030\n\024PrivilegeCreate"
|
|
"Index\020\013\022\030\n\024PrivilegeIndexDetail\020\014\022\026\n\022Pri"
|
|
"vilegeDropIndex\020\r\022\023\n\017PrivilegeSearch\020\016\022\022"
|
|
"\n\016PrivilegeFlush\020\017\022\022\n\016PrivilegeQuery\020\020\022\030"
|
|
"\n\024PrivilegeLoadBalance\020\021\022\023\n\017PrivilegeImp"
|
|
"ort\020\022\022\034\n\030PrivilegeCreateOwnership\020\023\022\027\n\023P"
|
|
"rivilegeUpdateUser\020\024\022\032\n\026PrivilegeDropOwn"
|
|
"ership\020\025\022\034\n\030PrivilegeSelectOwnership\020\026\022\034"
|
|
"\n\030PrivilegeManageOwnership\020\027\022\027\n\023Privileg"
|
|
"eSelectUser\020\030\022\023\n\017PrivilegeUpsert\020\031\022 \n\034Pr"
|
|
"ivilegeCreateResourceGroup\020\032\022\036\n\032Privileg"
|
|
"eDropResourceGroup\020\033\022\"\n\036PrivilegeDescrib"
|
|
"eResourceGroup\020\034\022\037\n\033PrivilegeListResourc"
|
|
"eGroups\020\035\022\031\n\025PrivilegeTransferNode\020\036\022\034\n\030"
|
|
"PrivilegeTransferReplica\020\037\022\037\n\033PrivilegeG"
|
|
"etLoadingProgress\020 \022\031\n\025PrivilegeGetLoadS"
|
|
"tate\020!*S\n\tStateCode\022\020\n\014Initializing\020\000\022\013\n"
|
|
"\007Healthy\020\001\022\014\n\010Abnormal\020\002\022\013\n\007StandBy\020\003\022\014\n"
|
|
"\010Stopping\020\004*c\n\tLoadState\022\025\n\021LoadStateNot"
|
|
"Exist\020\000\022\024\n\020LoadStateNotLoad\020\001\022\024\n\020LoadSta"
|
|
"teLoading\020\002\022\023\n\017LoadStateLoaded\020\003:^\n\021priv"
|
|
"ilege_ext_obj\022\037.google.protobuf.MessageO"
|
|
"ptions\030\351\007 \001(\0132!.milvus.proto.common.Priv"
|
|
"ilegeExtBf\n\016io.milvus.grpcB\013CommonProtoP"
|
|
"\001Z1github.com/milvus-io/milvus-proto/go-"
|
|
"api/commonpb\240\001\001\252\002\016IO.Milvus.Grpcb\006proto3"
|
|
;
|
|
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, 6160, descriptor_table_protodef_common_2eproto,
|
|
"common.proto",
|
|
&descriptor_table_common_2eproto_once, descriptor_table_common_2eproto_deps, 1, 11,
|
|
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 100:
|
|
case 101:
|
|
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 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 300:
|
|
case 301:
|
|
case 302:
|
|
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 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:
|
|
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:
|
|
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_._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());
|
|
}
|
|
_this->_impl_.error_code_ = from._impl_.error_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_._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();
|
|
_impl_.error_code_ = 0;
|
|
_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;
|
|
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);
|
|
}
|
|
|
|
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());
|
|
}
|
|
|
|
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());
|
|
}
|
|
_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
|
|
);
|
|
swap(_impl_.error_code_, 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:
|
|
};
|
|
|
|
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_.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_);
|
|
::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_.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);
|
|
}
|
|
|
|
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;
|
|
|
|
::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;
|
|
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);
|
|
}
|
|
|
|
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;
|
|
|
|
// 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_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_.msgid_)>(
|
|
reinterpret_cast<char*>(&_impl_.msgid_),
|
|
reinterpret_cast<char*>(&other->_impl_.msgid_));
|
|
}
|
|
|
|
::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 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[8]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
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[9]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
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[10]);
|
|
}
|
|
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::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);
|
|
}
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include <google/protobuf/port_undef.inc>
|