diff --git a/internal/core/src/pb/milvus.pb.cc b/internal/core/src/pb/milvus.pb.cc index 2a97613002..4ad1cec0e3 100644 --- a/internal/core/src/pb/milvus.pb.cc +++ b/internal/core/src/pb/milvus.pb.cc @@ -25,6 +25,8 @@ extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlaceholderValue_milvus_2eproto; extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_QuerySegmentInfo_milvus_2eproto; extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionSchema_schema_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FieldData_schema_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_IDs_schema_2eproto; namespace milvus { namespace proto { namespace milvus { @@ -188,6 +190,14 @@ class SearchRequestDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _SearchRequest_default_instance_; +class RetrieveRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RetrieveRequest_default_instance_; +class RetrieveResultsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RetrieveResults_default_instance_; class HitsDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -869,6 +879,39 @@ static void InitDefaultsscc_info_ReleasePartitionsRequest_milvus_2eproto() { {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ReleasePartitionsRequest_milvus_2eproto}, { &scc_info_MsgBase_common_2eproto.base,}}; +static void InitDefaultsscc_info_RetrieveRequest_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_RetrieveRequest_default_instance_; + new (ptr) ::milvus::proto::milvus::RetrieveRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::RetrieveRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_RetrieveRequest_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_RetrieveRequest_milvus_2eproto}, { + &scc_info_MsgBase_common_2eproto.base, + &scc_info_IDs_schema_2eproto.base,}}; + +static void InitDefaultsscc_info_RetrieveResults_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::milvus::_RetrieveResults_default_instance_; + new (ptr) ::milvus::proto::milvus::RetrieveResults(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::milvus::RetrieveResults::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_RetrieveResults_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_RetrieveResults_milvus_2eproto}, { + &scc_info_Status_common_2eproto.base, + &scc_info_IDs_schema_2eproto.base, + &scc_info_FieldData_schema_2eproto.base,}}; + static void InitDefaultsscc_info_SearchRequest_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -1005,7 +1048,7 @@ static void InitDefaultsscc_info_StringResponse_milvus_2eproto() { {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_StringResponse_milvus_2eproto}, { &scc_info_Status_common_2eproto.base,}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_milvus_2eproto[51]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_milvus_2eproto[53]; static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_milvus_2eproto[1]; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_milvus_2eproto = nullptr; @@ -1355,6 +1398,25 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_milvus_2eproto::offsets[] PROT PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::SearchRequest, dsl_type_), PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::SearchRequest, search_params_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::RetrieveRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::RetrieveRequest, base_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::RetrieveRequest, db_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::RetrieveRequest, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::RetrieveRequest, partition_names_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::RetrieveRequest, ids_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::RetrieveRequest, output_fields_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::RetrieveResults, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::RetrieveResults, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::RetrieveResults, ids_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::RetrieveResults, fields_data_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::proto::milvus::Hits, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1487,17 +1549,19 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 317, -1, sizeof(::milvus::proto::milvus::PlaceholderValue)}, { 325, -1, sizeof(::milvus::proto::milvus::PlaceholderGroup)}, { 331, -1, sizeof(::milvus::proto::milvus::SearchRequest)}, - { 344, -1, sizeof(::milvus::proto::milvus::Hits)}, - { 352, -1, sizeof(::milvus::proto::milvus::SearchResults)}, - { 359, -1, sizeof(::milvus::proto::milvus::FlushRequest)}, - { 367, -1, sizeof(::milvus::proto::milvus::PersistentSegmentInfo)}, - { 381, -1, sizeof(::milvus::proto::milvus::GetPersistentSegmentInfoRequest)}, - { 389, -1, sizeof(::milvus::proto::milvus::GetPersistentSegmentInfoResponse)}, - { 396, -1, sizeof(::milvus::proto::milvus::QuerySegmentInfo)}, - { 408, -1, sizeof(::milvus::proto::milvus::GetQuerySegmentInfoRequest)}, - { 416, -1, sizeof(::milvus::proto::milvus::GetQuerySegmentInfoResponse)}, - { 423, -1, sizeof(::milvus::proto::milvus::RegisterLinkRequest)}, - { 428, -1, sizeof(::milvus::proto::milvus::RegisterLinkResponse)}, + { 344, -1, sizeof(::milvus::proto::milvus::RetrieveRequest)}, + { 355, -1, sizeof(::milvus::proto::milvus::RetrieveResults)}, + { 363, -1, sizeof(::milvus::proto::milvus::Hits)}, + { 371, -1, sizeof(::milvus::proto::milvus::SearchResults)}, + { 378, -1, sizeof(::milvus::proto::milvus::FlushRequest)}, + { 386, -1, sizeof(::milvus::proto::milvus::PersistentSegmentInfo)}, + { 400, -1, sizeof(::milvus::proto::milvus::GetPersistentSegmentInfoRequest)}, + { 408, -1, sizeof(::milvus::proto::milvus::GetPersistentSegmentInfoResponse)}, + { 415, -1, sizeof(::milvus::proto::milvus::QuerySegmentInfo)}, + { 427, -1, sizeof(::milvus::proto::milvus::GetQuerySegmentInfoRequest)}, + { 435, -1, sizeof(::milvus::proto::milvus::GetQuerySegmentInfoResponse)}, + { 442, -1, sizeof(::milvus::proto::milvus::RegisterLinkRequest)}, + { 447, -1, sizeof(::milvus::proto::milvus::RegisterLinkResponse)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -1541,6 +1605,8 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::milvus::proto::milvus::_PlaceholderValue_default_instance_), reinterpret_cast(&::milvus::proto::milvus::_PlaceholderGroup_default_instance_), reinterpret_cast(&::milvus::proto::milvus::_SearchRequest_default_instance_), + reinterpret_cast(&::milvus::proto::milvus::_RetrieveRequest_default_instance_), + reinterpret_cast(&::milvus::proto::milvus::_RetrieveResults_default_instance_), reinterpret_cast(&::milvus::proto::milvus::_Hits_default_instance_), reinterpret_cast(&::milvus::proto::milvus::_SearchResults_default_instance_), reinterpret_cast(&::milvus::proto::milvus::_FlushRequest_default_instance_), @@ -1689,96 +1755,107 @@ const char descriptor_table_protodef_milvus_2eproto[] PROTOBUF_SECTION_VARIABLE( "er_group\030\006 \001(\014\022.\n\010dsl_type\030\007 \001(\0162\034.milvu" "s.proto.common.DslType\0228\n\rsearch_params\030" "\010 \003(\0132!.milvus.proto.common.KeyValuePair" - "\"5\n\004Hits\022\013\n\003IDs\030\001 \003(\003\022\020\n\010row_data\030\002 \003(\014\022" - "\016\n\006scores\030\003 \003(\002\"J\n\rSearchResults\022+\n\006stat" - "us\030\001 \001(\0132\033.milvus.proto.common.Status\022\014\n" - "\004hits\030\002 \003(\014\"e\n\014FlushRequest\022*\n\004base\030\001 \001(" - "\0132\034.milvus.proto.common.MsgBase\022\017\n\007db_na" - "me\030\002 \001(\t\022\030\n\020collection_names\030\003 \003(\t\"\351\001\n\025P" - "ersistentSegmentInfo\022\021\n\tsegmentID\030\001 \001(\003\022" - "\024\n\014collectionID\030\002 \001(\003\022\023\n\013partitionID\030\003 \001" - "(\003\022\021\n\topen_time\030\004 \001(\004\022\023\n\013sealed_time\030\005 \001" - "(\004\022\024\n\014flushed_time\030\006 \001(\004\022\020\n\010num_rows\030\007 \001" - "(\003\022\020\n\010mem_size\030\010 \001(\003\0220\n\005state\030\t \001(\0162!.mi" - "lvus.proto.common.SegmentState\"u\n\037GetPer" - "sistentSegmentInfoRequest\022*\n\004base\030\001 \001(\0132" - "\034.milvus.proto.common.MsgBase\022\016\n\006dbName\030" - "\002 \001(\t\022\026\n\016collectionName\030\003 \001(\t\"\212\001\n GetPer" - "sistentSegmentInfoResponse\022+\n\006status\030\001 \001" - "(\0132\033.milvus.proto.common.Status\0229\n\005infos" - "\030\002 \003(\0132*.milvus.proto.milvus.PersistentS" - "egmentInfo\"\231\001\n\020QuerySegmentInfo\022\021\n\tsegme" - "ntID\030\001 \001(\003\022\024\n\014collectionID\030\002 \001(\003\022\023\n\013part" - "itionID\030\003 \001(\003\022\020\n\010mem_size\030\004 \001(\003\022\020\n\010num_r" - "ows\030\005 \001(\003\022\022\n\nindex_name\030\006 \001(\t\022\017\n\007indexID" - "\030\007 \001(\003\"p\n\032GetQuerySegmentInfoRequest\022*\n\004" - "base\030\001 \001(\0132\034.milvus.proto.common.MsgBase" - "\022\016\n\006dbName\030\002 \001(\t\022\026\n\016collectionName\030\003 \001(\t" - "\"\200\001\n\033GetQuerySegmentInfoResponse\022+\n\006stat" - "us\030\001 \001(\0132\033.milvus.proto.common.Status\0224\n" - "\005infos\030\002 \003(\0132%.milvus.proto.milvus.Query" - "SegmentInfo\"\025\n\023RegisterLinkRequest\"r\n\024Re" - "gisterLinkResponse\022-\n\007address\030\001 \001(\0132\034.mi" - "lvus.proto.common.Address\022+\n\006status\030\002 \001(" - "\0132\033.milvus.proto.common.Status*>\n\017Placeh" - "olderType\022\010\n\004None\020\000\022\020\n\014BinaryVector\020d\022\017\n" - "\013FloatVector\020e2\220\025\n\rMilvusService\022_\n\020Crea" - "teCollection\022,.milvus.proto.milvus.Creat" - "eCollectionRequest\032\033.milvus.proto.common" - ".Status\"\000\022[\n\016DropCollection\022*.milvus.pro" - "to.milvus.DropCollectionRequest\032\033.milvus" - ".proto.common.Status\"\000\022_\n\rHasCollection\022" - ").milvus.proto.milvus.HasCollectionReque" - "st\032!.milvus.proto.milvus.BoolResponse\"\000\022" - "[\n\016LoadCollection\022*.milvus.proto.milvus." - "LoadCollectionRequest\032\033.milvus.proto.com" - "mon.Status\"\000\022a\n\021ReleaseCollection\022-.milv" - "us.proto.milvus.ReleaseCollectionRequest" - "\032\033.milvus.proto.common.Status\"\000\022w\n\022Descr" - "ibeCollection\022..milvus.proto.milvus.Desc" - "ribeCollectionRequest\032/.milvus.proto.mil" - "vus.DescribeCollectionResponse\"\000\022\206\001\n\027Get" - "CollectionStatistics\0223.milvus.proto.milv" - "us.GetCollectionStatisticsRequest\0324.milv" - "us.proto.milvus.GetCollectionStatisticsR" - "esponse\"\000\022n\n\017ShowCollections\022+.milvus.pr" - "oto.milvus.ShowCollectionsRequest\032,.milv" - "us.proto.milvus.ShowCollectionsResponse\"" - "\000\022]\n\017CreatePartition\022+.milvus.proto.milv" - "us.CreatePartitionRequest\032\033.milvus.proto" - ".common.Status\"\000\022Y\n\rDropPartition\022).milv" - "us.proto.milvus.DropPartitionRequest\032\033.m" - "ilvus.proto.common.Status\"\000\022]\n\014HasPartit" - "ion\022(.milvus.proto.milvus.HasPartitionRe" - "quest\032!.milvus.proto.milvus.BoolResponse" - "\"\000\022[\n\016LoadPartitions\022*.milvus.proto.milv" - "us.LoadPartitionsRequest\032\033.milvus.proto." - "common.Status\"\000\022a\n\021ReleasePartitions\022-.m" - "ilvus.proto.milvus.ReleasePartitionsRequ" - "est\032\033.milvus.proto.common.Status\"\000\022\203\001\n\026G" - "etPartitionStatistics\0222.milvus.proto.mil" - "vus.GetPartitionStatisticsRequest\0323.milv" - "us.proto.milvus.GetPartitionStatisticsRe" - "sponse\"\000\022k\n\016ShowPartitions\022*.milvus.prot" - "o.milvus.ShowPartitionsRequest\032+.milvus." - "proto.milvus.ShowPartitionsResponse\"\000\022U\n" - "\013CreateIndex\022\'.milvus.proto.milvus.Creat" - "eIndexRequest\032\033.milvus.proto.common.Stat" - "us\"\000\022h\n\rDescribeIndex\022).milvus.proto.mil" - "vus.DescribeIndexRequest\032*.milvus.proto." - "milvus.DescribeIndexResponse\"\000\022h\n\rGetInd" - "exState\022).milvus.proto.milvus.GetIndexSt" - "ateRequest\032*.milvus.proto.milvus.GetInde" - "xStateResponse\"\000\022\200\001\n\025GetIndexBuildProgre" - "ss\0221.milvus.proto.milvus.GetIndexBuildPr" - "ogressRequest\0322.milvus.proto.milvus.GetI" - "ndexBuildProgressResponse\"\000\022Q\n\tDropIndex" - "\022%.milvus.proto.milvus.DropIndexRequest\032" - "\033.milvus.proto.common.Status\"\000\022S\n\006Insert" - "\022\".milvus.proto.milvus.InsertRequest\032#.m" - "ilvus.proto.milvus.InsertResponse\"\000\022R\n\006S" - "earch\022\".milvus.proto.milvus.SearchReques" - "t\032\".milvus.proto.milvus.SearchResults\"\000\022" + "\"\276\001\n\017RetrieveRequest\022*\n\004base\030\001 \001(\0132\034.mil" + "vus.proto.common.MsgBase\022\017\n\007db_name\030\002 \001(" + "\t\022\027\n\017collection_name\030\003 \001(\t\022\027\n\017partition_" + "names\030\004 \003(\t\022%\n\003ids\030\005 \001(\0132\030.milvus.proto." + "schema.IDs\022\025\n\routput_fields\030\006 \003(\t\"\232\001\n\017Re" + "trieveResults\022+\n\006status\030\001 \001(\0132\033.milvus.p" + "roto.common.Status\022%\n\003ids\030\002 \001(\0132\030.milvus" + ".proto.schema.IDs\0223\n\013fields_data\030\003 \003(\0132\036" + ".milvus.proto.schema.FieldData\"5\n\004Hits\022\013" + "\n\003IDs\030\001 \003(\003\022\020\n\010row_data\030\002 \003(\014\022\016\n\006scores\030" + "\003 \003(\002\"J\n\rSearchResults\022+\n\006status\030\001 \001(\0132\033" + ".milvus.proto.common.Status\022\014\n\004hits\030\002 \003(" + "\014\"e\n\014FlushRequest\022*\n\004base\030\001 \001(\0132\034.milvus" + ".proto.common.MsgBase\022\017\n\007db_name\030\002 \001(\t\022\030" + "\n\020collection_names\030\003 \003(\t\"\351\001\n\025PersistentS" + "egmentInfo\022\021\n\tsegmentID\030\001 \001(\003\022\024\n\014collect" + "ionID\030\002 \001(\003\022\023\n\013partitionID\030\003 \001(\003\022\021\n\topen" + "_time\030\004 \001(\004\022\023\n\013sealed_time\030\005 \001(\004\022\024\n\014flus" + "hed_time\030\006 \001(\004\022\020\n\010num_rows\030\007 \001(\003\022\020\n\010mem_" + "size\030\010 \001(\003\0220\n\005state\030\t \001(\0162!.milvus.proto" + ".common.SegmentState\"u\n\037GetPersistentSeg" + "mentInfoRequest\022*\n\004base\030\001 \001(\0132\034.milvus.p" + "roto.common.MsgBase\022\016\n\006dbName\030\002 \001(\t\022\026\n\016c" + "ollectionName\030\003 \001(\t\"\212\001\n GetPersistentSeg" + "mentInfoResponse\022+\n\006status\030\001 \001(\0132\033.milvu" + "s.proto.common.Status\0229\n\005infos\030\002 \003(\0132*.m" + "ilvus.proto.milvus.PersistentSegmentInfo" + "\"\231\001\n\020QuerySegmentInfo\022\021\n\tsegmentID\030\001 \001(\003" + "\022\024\n\014collectionID\030\002 \001(\003\022\023\n\013partitionID\030\003 " + "\001(\003\022\020\n\010mem_size\030\004 \001(\003\022\020\n\010num_rows\030\005 \001(\003\022" + "\022\n\nindex_name\030\006 \001(\t\022\017\n\007indexID\030\007 \001(\003\"p\n\032" + "GetQuerySegmentInfoRequest\022*\n\004base\030\001 \001(\013" + "2\034.milvus.proto.common.MsgBase\022\016\n\006dbName" + "\030\002 \001(\t\022\026\n\016collectionName\030\003 \001(\t\"\200\001\n\033GetQu" + "erySegmentInfoResponse\022+\n\006status\030\001 \001(\0132\033" + ".milvus.proto.common.Status\0224\n\005infos\030\002 \003" + "(\0132%.milvus.proto.milvus.QuerySegmentInf" + "o\"\025\n\023RegisterLinkRequest\"r\n\024RegisterLink" + "Response\022-\n\007address\030\001 \001(\0132\034.milvus.proto" + ".common.Address\022+\n\006status\030\002 \001(\0132\033.milvus" + ".proto.common.Status*>\n\017PlaceholderType\022" + "\010\n\004None\020\000\022\020\n\014BinaryVector\020d\022\017\n\013FloatVect" + "or\020e2\352\025\n\rMilvusService\022_\n\020CreateCollecti" + "on\022,.milvus.proto.milvus.CreateCollectio" + "nRequest\032\033.milvus.proto.common.Status\"\000\022" + "[\n\016DropCollection\022*.milvus.proto.milvus." + "DropCollectionRequest\032\033.milvus.proto.com" + "mon.Status\"\000\022_\n\rHasCollection\022).milvus.p" + "roto.milvus.HasCollectionRequest\032!.milvu" + "s.proto.milvus.BoolResponse\"\000\022[\n\016LoadCol" + "lection\022*.milvus.proto.milvus.LoadCollec" + "tionRequest\032\033.milvus.proto.common.Status" + "\"\000\022a\n\021ReleaseCollection\022-.milvus.proto.m" + "ilvus.ReleaseCollectionRequest\032\033.milvus." + "proto.common.Status\"\000\022w\n\022DescribeCollect" + "ion\022..milvus.proto.milvus.DescribeCollec" + "tionRequest\032/.milvus.proto.milvus.Descri" + "beCollectionResponse\"\000\022\206\001\n\027GetCollection" + "Statistics\0223.milvus.proto.milvus.GetColl" + "ectionStatisticsRequest\0324.milvus.proto.m" + "ilvus.GetCollectionStatisticsResponse\"\000\022" + "n\n\017ShowCollections\022+.milvus.proto.milvus" + ".ShowCollectionsRequest\032,.milvus.proto.m" + "ilvus.ShowCollectionsResponse\"\000\022]\n\017Creat" + "ePartition\022+.milvus.proto.milvus.CreateP" + "artitionRequest\032\033.milvus.proto.common.St" + "atus\"\000\022Y\n\rDropPartition\022).milvus.proto.m" + "ilvus.DropPartitionRequest\032\033.milvus.prot" + "o.common.Status\"\000\022]\n\014HasPartition\022(.milv" + "us.proto.milvus.HasPartitionRequest\032!.mi" + "lvus.proto.milvus.BoolResponse\"\000\022[\n\016Load" + "Partitions\022*.milvus.proto.milvus.LoadPar" + "titionsRequest\032\033.milvus.proto.common.Sta" + "tus\"\000\022a\n\021ReleasePartitions\022-.milvus.prot" + "o.milvus.ReleasePartitionsRequest\032\033.milv" + "us.proto.common.Status\"\000\022\203\001\n\026GetPartitio" + "nStatistics\0222.milvus.proto.milvus.GetPar" + "titionStatisticsRequest\0323.milvus.proto.m" + "ilvus.GetPartitionStatisticsResponse\"\000\022k" + "\n\016ShowPartitions\022*.milvus.proto.milvus.S" + "howPartitionsRequest\032+.milvus.proto.milv" + "us.ShowPartitionsResponse\"\000\022U\n\013CreateInd" + "ex\022\'.milvus.proto.milvus.CreateIndexRequ" + "est\032\033.milvus.proto.common.Status\"\000\022h\n\rDe" + "scribeIndex\022).milvus.proto.milvus.Descri" + "beIndexRequest\032*.milvus.proto.milvus.Des" + "cribeIndexResponse\"\000\022h\n\rGetIndexState\022)." + "milvus.proto.milvus.GetIndexStateRequest" + "\032*.milvus.proto.milvus.GetIndexStateResp" + "onse\"\000\022\200\001\n\025GetIndexBuildProgress\0221.milvu" + "s.proto.milvus.GetIndexBuildProgressRequ" + "est\0322.milvus.proto.milvus.GetIndexBuildP" + "rogressResponse\"\000\022Q\n\tDropIndex\022%.milvus." + "proto.milvus.DropIndexRequest\032\033.milvus.p" + "roto.common.Status\"\000\022S\n\006Insert\022\".milvus." + "proto.milvus.InsertRequest\032#.milvus.prot" + "o.milvus.InsertResponse\"\000\022R\n\006Search\022\".mi" + "lvus.proto.milvus.SearchRequest\032\".milvus" + ".proto.milvus.SearchResults\"\000\022X\n\010Retriev" + "e\022$.milvus.proto.milvus.RetrieveRequest\032" + "$.milvus.proto.milvus.RetrieveResults\"\000\022" "I\n\005Flush\022!.milvus.proto.milvus.FlushRequ" "est\032\033.milvus.proto.common.Status\"\000\022\211\001\n\030G" "etPersistentSegmentInfo\0224.milvus.proto.m" @@ -1800,7 +1877,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor &::descriptor_table_common_2eproto, &::descriptor_table_schema_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_milvus_2eproto_sccs[51] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_milvus_2eproto_sccs[53] = { &scc_info_BoolResponse_milvus_2eproto.base, &scc_info_CreateCollectionRequest_milvus_2eproto.base, &scc_info_CreateIndexRequest_milvus_2eproto.base, @@ -1843,6 +1920,8 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_mil &scc_info_RegisterLinkResponse_milvus_2eproto.base, &scc_info_ReleaseCollectionRequest_milvus_2eproto.base, &scc_info_ReleasePartitionsRequest_milvus_2eproto.base, + &scc_info_RetrieveRequest_milvus_2eproto.base, + &scc_info_RetrieveResults_milvus_2eproto.base, &scc_info_SearchRequest_milvus_2eproto.base, &scc_info_SearchResults_milvus_2eproto.base, &scc_info_ShowCollectionsRequest_milvus_2eproto.base, @@ -1856,10 +1935,10 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_mil static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_milvus_2eproto_once; static bool descriptor_table_milvus_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_milvus_2eproto = { - &descriptor_table_milvus_2eproto_initialized, descriptor_table_protodef_milvus_2eproto, "milvus.proto", 9583, - &descriptor_table_milvus_2eproto_once, descriptor_table_milvus_2eproto_sccs, descriptor_table_milvus_2eproto_deps, 51, 2, + &descriptor_table_milvus_2eproto_initialized, descriptor_table_protodef_milvus_2eproto, "milvus.proto", 10023, + &descriptor_table_milvus_2eproto_once, descriptor_table_milvus_2eproto_sccs, descriptor_table_milvus_2eproto_deps, 53, 2, schemas, file_default_instances, TableStruct_milvus_2eproto::offsets, - file_level_metadata_milvus_2eproto, 51, file_level_enum_descriptors_milvus_2eproto, file_level_service_descriptors_milvus_2eproto, + file_level_metadata_milvus_2eproto, 53, file_level_enum_descriptors_milvus_2eproto, file_level_service_descriptors_milvus_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -18804,6 +18883,988 @@ void SearchRequest::InternalSwap(SearchRequest* other) { } +// =================================================================== + +void RetrieveRequest::InitAsDefaultInstance() { + ::milvus::proto::milvus::_RetrieveRequest_default_instance_._instance.get_mutable()->base_ = const_cast< ::milvus::proto::common::MsgBase*>( + ::milvus::proto::common::MsgBase::internal_default_instance()); + ::milvus::proto::milvus::_RetrieveRequest_default_instance_._instance.get_mutable()->ids_ = const_cast< ::milvus::proto::schema::IDs*>( + ::milvus::proto::schema::IDs::internal_default_instance()); +} +class RetrieveRequest::_Internal { + public: + static const ::milvus::proto::common::MsgBase& base(const RetrieveRequest* msg); + static const ::milvus::proto::schema::IDs& ids(const RetrieveRequest* msg); +}; + +const ::milvus::proto::common::MsgBase& +RetrieveRequest::_Internal::base(const RetrieveRequest* msg) { + return *msg->base_; +} +const ::milvus::proto::schema::IDs& +RetrieveRequest::_Internal::ids(const RetrieveRequest* msg) { + return *msg->ids_; +} +void RetrieveRequest::clear_base() { + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; +} +void RetrieveRequest::clear_ids() { + if (GetArenaNoVirtual() == nullptr && ids_ != nullptr) { + delete ids_; + } + ids_ = nullptr; +} +RetrieveRequest::RetrieveRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.RetrieveRequest) +} +RetrieveRequest::RetrieveRequest(const RetrieveRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + partition_names_(from.partition_names_), + output_fields_(from.output_fields_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.db_name().empty()) { + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + base_ = new ::milvus::proto::common::MsgBase(*from.base_); + } else { + base_ = nullptr; + } + if (from.has_ids()) { + ids_ = new ::milvus::proto::schema::IDs(*from.ids_); + } else { + ids_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.RetrieveRequest) +} + +void RetrieveRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RetrieveRequest_milvus_2eproto.base); + db_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&base_, 0, static_cast( + reinterpret_cast(&ids_) - + reinterpret_cast(&base_)) + sizeof(ids_)); +} + +RetrieveRequest::~RetrieveRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.RetrieveRequest) + SharedDtor(); +} + +void RetrieveRequest::SharedDtor() { + db_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete base_; + if (this != internal_default_instance()) delete ids_; +} + +void RetrieveRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RetrieveRequest& RetrieveRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RetrieveRequest_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void RetrieveRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.RetrieveRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + partition_names_.Clear(); + output_fields_.Clear(); + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && base_ != nullptr) { + delete base_; + } + base_ = nullptr; + if (GetArenaNoVirtual() == nullptr && ids_ != nullptr) { + delete ids_; + } + ids_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* RetrieveRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.MsgBase base = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_base(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string db_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_db_name(), ptr, ctx, "milvus.proto.milvus.RetrieveRequest.db_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string collection_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.proto.milvus.RetrieveRequest.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string partition_names = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_names(), ptr, ctx, "milvus.proto.milvus.RetrieveRequest.partition_names"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.IDs ids = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(mutable_ids(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string output_fields = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_output_fields(), ptr, ctx, "milvus.proto.milvus.RetrieveRequest.output_fields"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool RetrieveRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.RetrieveRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.MsgBase base = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_base())); + } else { + goto handle_unusual; + } + break; + } + + // string db_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_db_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.RetrieveRequest.db_name")); + } else { + goto handle_unusual; + } + break; + } + + // string collection_name = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.RetrieveRequest.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string partition_names = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_partition_names())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(this->partition_names_size() - 1).data(), + static_cast(this->partition_names(this->partition_names_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.RetrieveRequest.partition_names")); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.IDs ids = 5; + case 5: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_ids())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string output_fields = 6; + case 6: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_output_fields())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->output_fields(this->output_fields_size() - 1).data(), + static_cast(this->output_fields(this->output_fields_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.milvus.RetrieveRequest.output_fields")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.RetrieveRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.RetrieveRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void RetrieveRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.RetrieveRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::base(this), output); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.RetrieveRequest.db_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->db_name(), output); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.RetrieveRequest.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->collection_name(), output); + } + + // repeated string partition_names = 4; + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(i).data(), static_cast(this->partition_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.RetrieveRequest.partition_names"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 4, this->partition_names(i), output); + } + + // .milvus.proto.schema.IDs ids = 5; + if (this->has_ids()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, _Internal::ids(this), output); + } + + // repeated string output_fields = 6; + for (int i = 0, n = this->output_fields_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->output_fields(i).data(), static_cast(this->output_fields(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.RetrieveRequest.output_fields"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 6, this->output_fields(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.RetrieveRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* RetrieveRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.RetrieveRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::base(this), target); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->db_name().data(), static_cast(this->db_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.RetrieveRequest.db_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->db_name(), target); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.RetrieveRequest.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->collection_name(), target); + } + + // repeated string partition_names = 4; + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->partition_names(i).data(), static_cast(this->partition_names(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.RetrieveRequest.partition_names"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(4, this->partition_names(i), target); + } + + // .milvus.proto.schema.IDs ids = 5; + if (this->has_ids()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, _Internal::ids(this), target); + } + + // repeated string output_fields = 6; + for (int i = 0, n = this->output_fields_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->output_fields(i).data(), static_cast(this->output_fields(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.milvus.RetrieveRequest.output_fields"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(6, this->output_fields(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.RetrieveRequest) + return target; +} + +size_t RetrieveRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.RetrieveRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string partition_names = 4; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_names_size()); + for (int i = 0, n = this->partition_names_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->partition_names(i)); + } + + // repeated string output_fields = 6; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->output_fields_size()); + for (int i = 0, n = this->output_fields_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->output_fields(i)); + } + + // string db_name = 2; + if (this->db_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->db_name()); + } + + // string collection_name = 3; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // .milvus.proto.common.MsgBase base = 1; + if (this->has_base()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *base_); + } + + // .milvus.proto.schema.IDs ids = 5; + if (this->has_ids()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *ids_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RetrieveRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.RetrieveRequest) + GOOGLE_DCHECK_NE(&from, this); + const RetrieveRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.RetrieveRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.RetrieveRequest) + MergeFrom(*source); + } +} + +void RetrieveRequest::MergeFrom(const RetrieveRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.RetrieveRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + partition_names_.MergeFrom(from.partition_names_); + output_fields_.MergeFrom(from.output_fields_); + if (from.db_name().size() > 0) { + + db_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.db_name_); + } + if (from.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.has_base()) { + mutable_base()->::milvus::proto::common::MsgBase::MergeFrom(from.base()); + } + if (from.has_ids()) { + mutable_ids()->::milvus::proto::schema::IDs::MergeFrom(from.ids()); + } +} + +void RetrieveRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.RetrieveRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RetrieveRequest::CopyFrom(const RetrieveRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.RetrieveRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RetrieveRequest::IsInitialized() const { + return true; +} + +void RetrieveRequest::InternalSwap(RetrieveRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + partition_names_.InternalSwap(CastToBase(&other->partition_names_)); + output_fields_.InternalSwap(CastToBase(&other->output_fields_)); + db_name_.Swap(&other->db_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(base_, other->base_); + swap(ids_, other->ids_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RetrieveRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void RetrieveResults::InitAsDefaultInstance() { + ::milvus::proto::milvus::_RetrieveResults_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); + ::milvus::proto::milvus::_RetrieveResults_default_instance_._instance.get_mutable()->ids_ = const_cast< ::milvus::proto::schema::IDs*>( + ::milvus::proto::schema::IDs::internal_default_instance()); +} +class RetrieveResults::_Internal { + public: + static const ::milvus::proto::common::Status& status(const RetrieveResults* msg); + static const ::milvus::proto::schema::IDs& ids(const RetrieveResults* msg); +}; + +const ::milvus::proto::common::Status& +RetrieveResults::_Internal::status(const RetrieveResults* msg) { + return *msg->status_; +} +const ::milvus::proto::schema::IDs& +RetrieveResults::_Internal::ids(const RetrieveResults* msg) { + return *msg->ids_; +} +void RetrieveResults::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +void RetrieveResults::clear_ids() { + if (GetArenaNoVirtual() == nullptr && ids_ != nullptr) { + delete ids_; + } + ids_ = nullptr; +} +void RetrieveResults::clear_fields_data() { + fields_data_.Clear(); +} +RetrieveResults::RetrieveResults() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.milvus.RetrieveResults) +} +RetrieveResults::RetrieveResults(const RetrieveResults& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + fields_data_(from.fields_data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + if (from.has_ids()) { + ids_ = new ::milvus::proto::schema::IDs(*from.ids_); + } else { + ids_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.milvus.RetrieveResults) +} + +void RetrieveResults::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RetrieveResults_milvus_2eproto.base); + ::memset(&status_, 0, static_cast( + reinterpret_cast(&ids_) - + reinterpret_cast(&status_)) + sizeof(ids_)); +} + +RetrieveResults::~RetrieveResults() { + // @@protoc_insertion_point(destructor:milvus.proto.milvus.RetrieveResults) + SharedDtor(); +} + +void RetrieveResults::SharedDtor() { + if (this != internal_default_instance()) delete status_; + if (this != internal_default_instance()) delete ids_; +} + +void RetrieveResults::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RetrieveResults& RetrieveResults::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RetrieveResults_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void RetrieveResults::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.milvus.RetrieveResults) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + fields_data_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + if (GetArenaNoVirtual() == nullptr && ids_ != nullptr) { + delete ids_; + } + ids_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* RetrieveResults::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.IDs ids = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_ids(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.proto.schema.FieldData fields_data = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_fields_data(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool RetrieveResults::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.milvus.RetrieveResults) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.IDs ids = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_ids())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .milvus.proto.schema.FieldData fields_data = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_fields_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.milvus.RetrieveResults) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.milvus.RetrieveResults) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void RetrieveResults::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.milvus.RetrieveResults) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // .milvus.proto.schema.IDs ids = 2; + if (this->has_ids()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::ids(this), output); + } + + // repeated .milvus.proto.schema.FieldData fields_data = 3; + for (unsigned int i = 0, + n = static_cast(this->fields_data_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->fields_data(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.milvus.RetrieveResults) +} + +::PROTOBUF_NAMESPACE_ID::uint8* RetrieveResults::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.milvus.RetrieveResults) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // .milvus.proto.schema.IDs ids = 2; + if (this->has_ids()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::ids(this), target); + } + + // repeated .milvus.proto.schema.FieldData fields_data = 3; + for (unsigned int i = 0, + n = static_cast(this->fields_data_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->fields_data(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.milvus.RetrieveResults) + return target; +} + +size_t RetrieveResults::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.milvus.RetrieveResults) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .milvus.proto.schema.FieldData fields_data = 3; + { + unsigned int count = static_cast(this->fields_data_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->fields_data(static_cast(i))); + } + } + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // .milvus.proto.schema.IDs ids = 2; + if (this->has_ids()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *ids_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RetrieveResults::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.milvus.RetrieveResults) + GOOGLE_DCHECK_NE(&from, this); + const RetrieveResults* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.milvus.RetrieveResults) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.milvus.RetrieveResults) + MergeFrom(*source); + } +} + +void RetrieveResults::MergeFrom(const RetrieveResults& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.milvus.RetrieveResults) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + fields_data_.MergeFrom(from.fields_data_); + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } + if (from.has_ids()) { + mutable_ids()->::milvus::proto::schema::IDs::MergeFrom(from.ids()); + } +} + +void RetrieveResults::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.milvus.RetrieveResults) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RetrieveResults::CopyFrom(const RetrieveResults& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.milvus.RetrieveResults) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RetrieveResults::IsInitialized() const { + return true; +} + +void RetrieveResults::InternalSwap(RetrieveResults* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&fields_data_)->InternalSwap(CastToBase(&other->fields_data_)); + swap(status_, other->status_); + swap(ids_, other->ids_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RetrieveResults::GetMetadata() const { + return GetMetadataStatic(); +} + + // =================================================================== void Hits::InitAsDefaultInstance() { @@ -23130,6 +24191,12 @@ template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::PlaceholderGroup* Arena::C template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::SearchRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::SearchRequest >(Arena* arena) { return Arena::CreateInternal< ::milvus::proto::milvus::SearchRequest >(arena); } +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::RetrieveRequest* Arena::CreateMaybeMessage< ::milvus::proto::milvus::RetrieveRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::RetrieveRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::RetrieveResults* Arena::CreateMaybeMessage< ::milvus::proto::milvus::RetrieveResults >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::milvus::RetrieveResults >(arena); +} template<> PROTOBUF_NOINLINE ::milvus::proto::milvus::Hits* Arena::CreateMaybeMessage< ::milvus::proto::milvus::Hits >(Arena* arena) { return Arena::CreateInternal< ::milvus::proto::milvus::Hits >(arena); } diff --git a/internal/core/src/pb/milvus.pb.h b/internal/core/src/pb/milvus.pb.h index d16253f786..3c01f2adb0 100644 --- a/internal/core/src/pb/milvus.pb.h +++ b/internal/core/src/pb/milvus.pb.h @@ -50,7 +50,7 @@ struct TableStruct_milvus_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[51] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[53] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -186,6 +186,12 @@ extern ReleaseCollectionRequestDefaultTypeInternal _ReleaseCollectionRequest_def class ReleasePartitionsRequest; class ReleasePartitionsRequestDefaultTypeInternal; extern ReleasePartitionsRequestDefaultTypeInternal _ReleasePartitionsRequest_default_instance_; +class RetrieveRequest; +class RetrieveRequestDefaultTypeInternal; +extern RetrieveRequestDefaultTypeInternal _RetrieveRequest_default_instance_; +class RetrieveResults; +class RetrieveResultsDefaultTypeInternal; +extern RetrieveResultsDefaultTypeInternal _RetrieveResults_default_instance_; class SearchRequest; class SearchRequestDefaultTypeInternal; extern SearchRequestDefaultTypeInternal _SearchRequest_default_instance_; @@ -259,6 +265,8 @@ template<> ::milvus::proto::milvus::RegisterLinkRequest* Arena::CreateMaybeMessa template<> ::milvus::proto::milvus::RegisterLinkResponse* Arena::CreateMaybeMessage<::milvus::proto::milvus::RegisterLinkResponse>(Arena*); template<> ::milvus::proto::milvus::ReleaseCollectionRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::ReleaseCollectionRequest>(Arena*); template<> ::milvus::proto::milvus::ReleasePartitionsRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::ReleasePartitionsRequest>(Arena*); +template<> ::milvus::proto::milvus::RetrieveRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::RetrieveRequest>(Arena*); +template<> ::milvus::proto::milvus::RetrieveResults* Arena::CreateMaybeMessage<::milvus::proto::milvus::RetrieveResults>(Arena*); template<> ::milvus::proto::milvus::SearchRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::SearchRequest>(Arena*); template<> ::milvus::proto::milvus::SearchResults* Arena::CreateMaybeMessage<::milvus::proto::milvus::SearchResults>(Arena*); template<> ::milvus::proto::milvus::ShowCollectionsRequest* Arena::CreateMaybeMessage<::milvus::proto::milvus::ShowCollectionsRequest>(Arena*); @@ -6932,6 +6940,371 @@ class SearchRequest : }; // ------------------------------------------------------------------- +class RetrieveRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.RetrieveRequest) */ { + public: + RetrieveRequest(); + virtual ~RetrieveRequest(); + + RetrieveRequest(const RetrieveRequest& from); + RetrieveRequest(RetrieveRequest&& from) noexcept + : RetrieveRequest() { + *this = ::std::move(from); + } + + inline RetrieveRequest& operator=(const RetrieveRequest& from) { + CopyFrom(from); + return *this; + } + inline RetrieveRequest& operator=(RetrieveRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const RetrieveRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RetrieveRequest* internal_default_instance() { + return reinterpret_cast( + &_RetrieveRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 40; + + friend void swap(RetrieveRequest& a, RetrieveRequest& b) { + a.Swap(&b); + } + inline void Swap(RetrieveRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline RetrieveRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + RetrieveRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const RetrieveRequest& from); + void MergeFrom(const RetrieveRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RetrieveRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.RetrieveRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPartitionNamesFieldNumber = 4, + kOutputFieldsFieldNumber = 6, + kDbNameFieldNumber = 2, + kCollectionNameFieldNumber = 3, + kBaseFieldNumber = 1, + kIdsFieldNumber = 5, + }; + // repeated string partition_names = 4; + int partition_names_size() const; + void clear_partition_names(); + const std::string& partition_names(int index) const; + std::string* mutable_partition_names(int index); + void set_partition_names(int index, const std::string& value); + void set_partition_names(int index, std::string&& value); + void set_partition_names(int index, const char* value); + void set_partition_names(int index, const char* value, size_t size); + std::string* add_partition_names(); + void add_partition_names(const std::string& value); + void add_partition_names(std::string&& value); + void add_partition_names(const char* value); + void add_partition_names(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partition_names() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partition_names(); + + // repeated string output_fields = 6; + int output_fields_size() const; + void clear_output_fields(); + const std::string& output_fields(int index) const; + std::string* mutable_output_fields(int index); + void set_output_fields(int index, const std::string& value); + void set_output_fields(int index, std::string&& value); + void set_output_fields(int index, const char* value); + void set_output_fields(int index, const char* value, size_t size); + std::string* add_output_fields(); + void add_output_fields(const std::string& value); + void add_output_fields(std::string&& value); + void add_output_fields(const char* value); + void add_output_fields(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& output_fields() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_output_fields(); + + // string db_name = 2; + void clear_db_name(); + const std::string& db_name() const; + void set_db_name(const std::string& value); + void set_db_name(std::string&& value); + void set_db_name(const char* value); + void set_db_name(const char* value, size_t size); + std::string* mutable_db_name(); + std::string* release_db_name(); + void set_allocated_db_name(std::string* db_name); + + // string collection_name = 3; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // .milvus.proto.common.MsgBase base = 1; + bool has_base() const; + void clear_base(); + const ::milvus::proto::common::MsgBase& base() const; + ::milvus::proto::common::MsgBase* release_base(); + ::milvus::proto::common::MsgBase* mutable_base(); + void set_allocated_base(::milvus::proto::common::MsgBase* base); + + // .milvus.proto.schema.IDs ids = 5; + bool has_ids() const; + void clear_ids(); + const ::milvus::proto::schema::IDs& ids() const; + ::milvus::proto::schema::IDs* release_ids(); + ::milvus::proto::schema::IDs* mutable_ids(); + void set_allocated_ids(::milvus::proto::schema::IDs* ids); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.RetrieveRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField partition_names_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField output_fields_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::milvus::proto::common::MsgBase* base_; + ::milvus::proto::schema::IDs* ids_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class RetrieveResults : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.RetrieveResults) */ { + public: + RetrieveResults(); + virtual ~RetrieveResults(); + + RetrieveResults(const RetrieveResults& from); + RetrieveResults(RetrieveResults&& from) noexcept + : RetrieveResults() { + *this = ::std::move(from); + } + + inline RetrieveResults& operator=(const RetrieveResults& from) { + CopyFrom(from); + return *this; + } + inline RetrieveResults& operator=(RetrieveResults&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const RetrieveResults& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RetrieveResults* internal_default_instance() { + return reinterpret_cast( + &_RetrieveResults_default_instance_); + } + static constexpr int kIndexInFileMessages = + 41; + + friend void swap(RetrieveResults& a, RetrieveResults& b) { + a.Swap(&b); + } + inline void Swap(RetrieveResults* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline RetrieveResults* New() const final { + return CreateMaybeMessage(nullptr); + } + + RetrieveResults* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const RetrieveResults& from); + void MergeFrom(const RetrieveResults& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RetrieveResults* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.milvus.RetrieveResults"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kFieldsDataFieldNumber = 3, + kStatusFieldNumber = 1, + kIdsFieldNumber = 2, + }; + // repeated .milvus.proto.schema.FieldData fields_data = 3; + int fields_data_size() const; + void clear_fields_data(); + ::milvus::proto::schema::FieldData* mutable_fields_data(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::schema::FieldData >* + mutable_fields_data(); + const ::milvus::proto::schema::FieldData& fields_data(int index) const; + ::milvus::proto::schema::FieldData* add_fields_data(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::schema::FieldData >& + fields_data() const; + + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // .milvus.proto.schema.IDs ids = 2; + bool has_ids() const; + void clear_ids(); + const ::milvus::proto::schema::IDs& ids() const; + ::milvus::proto::schema::IDs* release_ids(); + ::milvus::proto::schema::IDs* mutable_ids(); + void set_allocated_ids(::milvus::proto::schema::IDs* ids); + + // @@protoc_insertion_point(class_scope:milvus.proto.milvus.RetrieveResults) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::schema::FieldData > fields_data_; + ::milvus::proto::common::Status* status_; + ::milvus::proto::schema::IDs* ids_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + class Hits : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.milvus.Hits) */ { public: @@ -6974,7 +7347,7 @@ class Hits : &_Hits_default_instance_); } static constexpr int kIndexInFileMessages = - 40; + 42; friend void swap(Hits& a, Hits& b) { a.Swap(&b); @@ -7145,7 +7518,7 @@ class SearchResults : &_SearchResults_default_instance_); } static constexpr int kIndexInFileMessages = - 41; + 43; friend void swap(SearchResults& a, SearchResults& b) { a.Swap(&b); @@ -7298,7 +7671,7 @@ class FlushRequest : &_FlushRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 42; + 44; friend void swap(FlushRequest& a, FlushRequest& b) { a.Swap(&b); @@ -7464,7 +7837,7 @@ class PersistentSegmentInfo : &_PersistentSegmentInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 43; + 45; friend void swap(PersistentSegmentInfo& a, PersistentSegmentInfo& b) { a.Swap(&b); @@ -7651,7 +8024,7 @@ class GetPersistentSegmentInfoRequest : &_GetPersistentSegmentInfoRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 44; + 46; friend void swap(GetPersistentSegmentInfoRequest& a, GetPersistentSegmentInfoRequest& b) { a.Swap(&b); @@ -7811,7 +8184,7 @@ class GetPersistentSegmentInfoResponse : &_GetPersistentSegmentInfoResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 45; + 47; friend void swap(GetPersistentSegmentInfoResponse& a, GetPersistentSegmentInfoResponse& b) { a.Swap(&b); @@ -7958,7 +8331,7 @@ class QuerySegmentInfo : &_QuerySegmentInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 46; + 48; friend void swap(QuerySegmentInfo& a, QuerySegmentInfo& b) { a.Swap(&b); @@ -8137,7 +8510,7 @@ class GetQuerySegmentInfoRequest : &_GetQuerySegmentInfoRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 47; + 49; friend void swap(GetQuerySegmentInfoRequest& a, GetQuerySegmentInfoRequest& b) { a.Swap(&b); @@ -8297,7 +8670,7 @@ class GetQuerySegmentInfoResponse : &_GetQuerySegmentInfoResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 48; + 50; friend void swap(GetQuerySegmentInfoResponse& a, GetQuerySegmentInfoResponse& b) { a.Swap(&b); @@ -8444,7 +8817,7 @@ class RegisterLinkRequest : &_RegisterLinkRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 49; + 51; friend void swap(RegisterLinkRequest& a, RegisterLinkRequest& b) { a.Swap(&b); @@ -8566,7 +8939,7 @@ class RegisterLinkResponse : &_RegisterLinkResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 50; + 52; friend void swap(RegisterLinkResponse& a, RegisterLinkResponse& b) { a.Swap(&b); @@ -14963,6 +15336,453 @@ SearchRequest::search_params() const { // ------------------------------------------------------------------- +// RetrieveRequest + +// .milvus.proto.common.MsgBase base = 1; +inline bool RetrieveRequest::has_base() const { + return this != internal_default_instance() && base_ != nullptr; +} +inline const ::milvus::proto::common::MsgBase& RetrieveRequest::base() const { + const ::milvus::proto::common::MsgBase* p = base_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.RetrieveRequest.base) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::proto::common::_MsgBase_default_instance_); +} +inline ::milvus::proto::common::MsgBase* RetrieveRequest::release_base() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.RetrieveRequest.base) + + ::milvus::proto::common::MsgBase* temp = base_; + base_ = nullptr; + return temp; +} +inline ::milvus::proto::common::MsgBase* RetrieveRequest::mutable_base() { + + if (base_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::MsgBase>(GetArenaNoVirtual()); + base_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.RetrieveRequest.base) + return base_; +} +inline void RetrieveRequest::set_allocated_base(::milvus::proto::common::MsgBase* base) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_); + } + if (base) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + base = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, base, submessage_arena); + } + + } else { + + } + base_ = base; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.RetrieveRequest.base) +} + +// string db_name = 2; +inline void RetrieveRequest::clear_db_name() { + db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& RetrieveRequest::db_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.RetrieveRequest.db_name) + return db_name_.GetNoArena(); +} +inline void RetrieveRequest::set_db_name(const std::string& value) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.RetrieveRequest.db_name) +} +inline void RetrieveRequest::set_db_name(std::string&& value) { + + db_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.RetrieveRequest.db_name) +} +inline void RetrieveRequest::set_db_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.RetrieveRequest.db_name) +} +inline void RetrieveRequest::set_db_name(const char* value, size_t size) { + + db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.RetrieveRequest.db_name) +} +inline std::string* RetrieveRequest::mutable_db_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.RetrieveRequest.db_name) + return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* RetrieveRequest::release_db_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.RetrieveRequest.db_name) + + return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void RetrieveRequest::set_allocated_db_name(std::string* db_name) { + if (db_name != nullptr) { + + } else { + + } + db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.RetrieveRequest.db_name) +} + +// string collection_name = 3; +inline void RetrieveRequest::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& RetrieveRequest::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.RetrieveRequest.collection_name) + return collection_name_.GetNoArena(); +} +inline void RetrieveRequest::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.milvus.RetrieveRequest.collection_name) +} +inline void RetrieveRequest::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.RetrieveRequest.collection_name) +} +inline void RetrieveRequest::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.RetrieveRequest.collection_name) +} +inline void RetrieveRequest::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.RetrieveRequest.collection_name) +} +inline std::string* RetrieveRequest::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.RetrieveRequest.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* RetrieveRequest::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.RetrieveRequest.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void RetrieveRequest::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.RetrieveRequest.collection_name) +} + +// repeated string partition_names = 4; +inline int RetrieveRequest::partition_names_size() const { + return partition_names_.size(); +} +inline void RetrieveRequest::clear_partition_names() { + partition_names_.Clear(); +} +inline const std::string& RetrieveRequest::partition_names(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.RetrieveRequest.partition_names) + return partition_names_.Get(index); +} +inline std::string* RetrieveRequest::mutable_partition_names(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.RetrieveRequest.partition_names) + return partition_names_.Mutable(index); +} +inline void RetrieveRequest::set_partition_names(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.RetrieveRequest.partition_names) + partition_names_.Mutable(index)->assign(value); +} +inline void RetrieveRequest::set_partition_names(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.RetrieveRequest.partition_names) + partition_names_.Mutable(index)->assign(std::move(value)); +} +inline void RetrieveRequest::set_partition_names(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + partition_names_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.RetrieveRequest.partition_names) +} +inline void RetrieveRequest::set_partition_names(int index, const char* value, size_t size) { + partition_names_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.RetrieveRequest.partition_names) +} +inline std::string* RetrieveRequest::add_partition_names() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.milvus.RetrieveRequest.partition_names) + return partition_names_.Add(); +} +inline void RetrieveRequest::add_partition_names(const std::string& value) { + partition_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.RetrieveRequest.partition_names) +} +inline void RetrieveRequest::add_partition_names(std::string&& value) { + partition_names_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.RetrieveRequest.partition_names) +} +inline void RetrieveRequest::add_partition_names(const char* value) { + GOOGLE_DCHECK(value != nullptr); + partition_names_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.milvus.RetrieveRequest.partition_names) +} +inline void RetrieveRequest::add_partition_names(const char* value, size_t size) { + partition_names_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.milvus.RetrieveRequest.partition_names) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +RetrieveRequest::partition_names() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.RetrieveRequest.partition_names) + return partition_names_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +RetrieveRequest::mutable_partition_names() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.RetrieveRequest.partition_names) + return &partition_names_; +} + +// .milvus.proto.schema.IDs ids = 5; +inline bool RetrieveRequest::has_ids() const { + return this != internal_default_instance() && ids_ != nullptr; +} +inline const ::milvus::proto::schema::IDs& RetrieveRequest::ids() const { + const ::milvus::proto::schema::IDs* p = ids_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.RetrieveRequest.ids) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::proto::schema::_IDs_default_instance_); +} +inline ::milvus::proto::schema::IDs* RetrieveRequest::release_ids() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.RetrieveRequest.ids) + + ::milvus::proto::schema::IDs* temp = ids_; + ids_ = nullptr; + return temp; +} +inline ::milvus::proto::schema::IDs* RetrieveRequest::mutable_ids() { + + if (ids_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::schema::IDs>(GetArenaNoVirtual()); + ids_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.RetrieveRequest.ids) + return ids_; +} +inline void RetrieveRequest::set_allocated_ids(::milvus::proto::schema::IDs* ids) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(ids_); + } + if (ids) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + ids = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ids, submessage_arena); + } + + } else { + + } + ids_ = ids; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.RetrieveRequest.ids) +} + +// repeated string output_fields = 6; +inline int RetrieveRequest::output_fields_size() const { + return output_fields_.size(); +} +inline void RetrieveRequest::clear_output_fields() { + output_fields_.Clear(); +} +inline const std::string& RetrieveRequest::output_fields(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.RetrieveRequest.output_fields) + return output_fields_.Get(index); +} +inline std::string* RetrieveRequest::mutable_output_fields(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.RetrieveRequest.output_fields) + return output_fields_.Mutable(index); +} +inline void RetrieveRequest::set_output_fields(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.RetrieveRequest.output_fields) + output_fields_.Mutable(index)->assign(value); +} +inline void RetrieveRequest::set_output_fields(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.milvus.RetrieveRequest.output_fields) + output_fields_.Mutable(index)->assign(std::move(value)); +} +inline void RetrieveRequest::set_output_fields(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + output_fields_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.milvus.RetrieveRequest.output_fields) +} +inline void RetrieveRequest::set_output_fields(int index, const char* value, size_t size) { + output_fields_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.RetrieveRequest.output_fields) +} +inline std::string* RetrieveRequest::add_output_fields() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.milvus.RetrieveRequest.output_fields) + return output_fields_.Add(); +} +inline void RetrieveRequest::add_output_fields(const std::string& value) { + output_fields_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.RetrieveRequest.output_fields) +} +inline void RetrieveRequest::add_output_fields(std::string&& value) { + output_fields_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.milvus.RetrieveRequest.output_fields) +} +inline void RetrieveRequest::add_output_fields(const char* value) { + GOOGLE_DCHECK(value != nullptr); + output_fields_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.milvus.RetrieveRequest.output_fields) +} +inline void RetrieveRequest::add_output_fields(const char* value, size_t size) { + output_fields_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.milvus.RetrieveRequest.output_fields) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +RetrieveRequest::output_fields() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.RetrieveRequest.output_fields) + return output_fields_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +RetrieveRequest::mutable_output_fields() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.RetrieveRequest.output_fields) + return &output_fields_; +} + +// ------------------------------------------------------------------- + +// RetrieveResults + +// .milvus.proto.common.Status status = 1; +inline bool RetrieveResults::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& RetrieveResults::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.RetrieveResults.status) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* RetrieveResults::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.RetrieveResults.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* RetrieveResults::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.RetrieveResults.status) + return status_; +} +inline void RetrieveResults::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.RetrieveResults.status) +} + +// .milvus.proto.schema.IDs ids = 2; +inline bool RetrieveResults::has_ids() const { + return this != internal_default_instance() && ids_ != nullptr; +} +inline const ::milvus::proto::schema::IDs& RetrieveResults::ids() const { + const ::milvus::proto::schema::IDs* p = ids_; + // @@protoc_insertion_point(field_get:milvus.proto.milvus.RetrieveResults.ids) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::proto::schema::_IDs_default_instance_); +} +inline ::milvus::proto::schema::IDs* RetrieveResults::release_ids() { + // @@protoc_insertion_point(field_release:milvus.proto.milvus.RetrieveResults.ids) + + ::milvus::proto::schema::IDs* temp = ids_; + ids_ = nullptr; + return temp; +} +inline ::milvus::proto::schema::IDs* RetrieveResults::mutable_ids() { + + if (ids_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::schema::IDs>(GetArenaNoVirtual()); + ids_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.RetrieveResults.ids) + return ids_; +} +inline void RetrieveResults::set_allocated_ids(::milvus::proto::schema::IDs* ids) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(ids_); + } + if (ids) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + ids = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ids, submessage_arena); + } + + } else { + + } + ids_ = ids; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.RetrieveResults.ids) +} + +// repeated .milvus.proto.schema.FieldData fields_data = 3; +inline int RetrieveResults::fields_data_size() const { + return fields_data_.size(); +} +inline ::milvus::proto::schema::FieldData* RetrieveResults::mutable_fields_data(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.milvus.RetrieveResults.fields_data) + return fields_data_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::schema::FieldData >* +RetrieveResults::mutable_fields_data() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.milvus.RetrieveResults.fields_data) + return &fields_data_; +} +inline const ::milvus::proto::schema::FieldData& RetrieveResults::fields_data(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.milvus.RetrieveResults.fields_data) + return fields_data_.Get(index); +} +inline ::milvus::proto::schema::FieldData* RetrieveResults::add_fields_data() { + // @@protoc_insertion_point(field_add:milvus.proto.milvus.RetrieveResults.fields_data) + return fields_data_.Add(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::schema::FieldData >& +RetrieveResults::fields_data() const { + // @@protoc_insertion_point(field_list:milvus.proto.milvus.RetrieveResults.fields_data) + return fields_data_; +} + +// ------------------------------------------------------------------- + // Hits // repeated int64 IDs = 1; @@ -16299,6 +17119,10 @@ inline void RegisterLinkResponse::set_allocated_status(::milvus::proto::common:: // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/internal/core/src/pb/schema.pb.cc b/internal/core/src/pb/schema.pb.cc index e637fd4670..6c4fc9477b 100644 --- a/internal/core/src/pb/schema.pb.cc +++ b/internal/core/src/pb/schema.pb.cc @@ -16,7 +16,16 @@ // @@protoc_insertion_point(includes) #include extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValuePair_common_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BoolArray_schema_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BytesArray_schema_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DoubleArray_schema_2eproto; extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldSchema_schema_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FloatArray_schema_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_IntArray_schema_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LongArray_schema_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_ScalarField_schema_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StringArray_schema_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorField_schema_2eproto; namespace milvus { namespace proto { namespace schema { @@ -28,9 +37,94 @@ class CollectionSchemaDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _CollectionSchema_default_instance_; +class BoolArrayDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _BoolArray_default_instance_; +class IntArrayDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _IntArray_default_instance_; +class LongArrayDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _LongArray_default_instance_; +class FloatArrayDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _FloatArray_default_instance_; +class DoubleArrayDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DoubleArray_default_instance_; +class BytesArrayDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _BytesArray_default_instance_; +class StringArrayDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _StringArray_default_instance_; +class ScalarFieldDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + const ::milvus::proto::schema::BoolArray* bool_data_; + const ::milvus::proto::schema::IntArray* int_data_; + const ::milvus::proto::schema::LongArray* long_data_; + const ::milvus::proto::schema::FloatArray* float_data_; + const ::milvus::proto::schema::DoubleArray* double_data_; + const ::milvus::proto::schema::StringArray* string_data_; + const ::milvus::proto::schema::BytesArray* bytes_data_; +} _ScalarField_default_instance_; +class VectorFieldDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + const ::milvus::proto::schema::FloatArray* float_vector_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr binary_vector_; +} _VectorField_default_instance_; +class FieldDataDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + const ::milvus::proto::schema::ScalarField* scalars_; + const ::milvus::proto::schema::VectorField* vectors_; +} _FieldData_default_instance_; +class IDsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + const ::milvus::proto::schema::LongArray* int_id_; + const ::milvus::proto::schema::StringArray* str_id_; +} _IDs_default_instance_; } // namespace schema } // namespace proto } // namespace milvus +static void InitDefaultsscc_info_BoolArray_schema_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::schema::_BoolArray_default_instance_; + new (ptr) ::milvus::proto::schema::BoolArray(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::schema::BoolArray::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BoolArray_schema_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_BoolArray_schema_2eproto}, {}}; + +static void InitDefaultsscc_info_BytesArray_schema_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::schema::_BytesArray_default_instance_; + new (ptr) ::milvus::proto::schema::BytesArray(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::schema::BytesArray::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BytesArray_schema_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_BytesArray_schema_2eproto}, {}}; + static void InitDefaultsscc_info_CollectionSchema_schema_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -46,6 +140,36 @@ static void InitDefaultsscc_info_CollectionSchema_schema_2eproto() { {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionSchema_schema_2eproto}, { &scc_info_FieldSchema_schema_2eproto.base,}}; +static void InitDefaultsscc_info_DoubleArray_schema_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::schema::_DoubleArray_default_instance_; + new (ptr) ::milvus::proto::schema::DoubleArray(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::schema::DoubleArray::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DoubleArray_schema_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DoubleArray_schema_2eproto}, {}}; + +static void InitDefaultsscc_info_FieldData_schema_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::schema::_FieldData_default_instance_; + new (ptr) ::milvus::proto::schema::FieldData(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::schema::FieldData::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FieldData_schema_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_FieldData_schema_2eproto}, { + &scc_info_ScalarField_schema_2eproto.base, + &scc_info_VectorField_schema_2eproto.base,}}; + static void InitDefaultsscc_info_FieldSchema_schema_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -61,7 +185,115 @@ static void InitDefaultsscc_info_FieldSchema_schema_2eproto() { {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FieldSchema_schema_2eproto}, { &scc_info_KeyValuePair_common_2eproto.base,}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_schema_2eproto[2]; +static void InitDefaultsscc_info_FloatArray_schema_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::schema::_FloatArray_default_instance_; + new (ptr) ::milvus::proto::schema::FloatArray(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::schema::FloatArray::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FloatArray_schema_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_FloatArray_schema_2eproto}, {}}; + +static void InitDefaultsscc_info_IDs_schema_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::schema::_IDs_default_instance_; + new (ptr) ::milvus::proto::schema::IDs(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::schema::IDs::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_IDs_schema_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_IDs_schema_2eproto}, { + &scc_info_LongArray_schema_2eproto.base, + &scc_info_StringArray_schema_2eproto.base,}}; + +static void InitDefaultsscc_info_IntArray_schema_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::schema::_IntArray_default_instance_; + new (ptr) ::milvus::proto::schema::IntArray(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::schema::IntArray::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_IntArray_schema_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_IntArray_schema_2eproto}, {}}; + +static void InitDefaultsscc_info_LongArray_schema_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::schema::_LongArray_default_instance_; + new (ptr) ::milvus::proto::schema::LongArray(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::schema::LongArray::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LongArray_schema_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_LongArray_schema_2eproto}, {}}; + +static void InitDefaultsscc_info_ScalarField_schema_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::schema::_ScalarField_default_instance_; + new (ptr) ::milvus::proto::schema::ScalarField(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::schema::ScalarField::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_ScalarField_schema_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 7, InitDefaultsscc_info_ScalarField_schema_2eproto}, { + &scc_info_BoolArray_schema_2eproto.base, + &scc_info_IntArray_schema_2eproto.base, + &scc_info_LongArray_schema_2eproto.base, + &scc_info_FloatArray_schema_2eproto.base, + &scc_info_DoubleArray_schema_2eproto.base, + &scc_info_StringArray_schema_2eproto.base, + &scc_info_BytesArray_schema_2eproto.base,}}; + +static void InitDefaultsscc_info_StringArray_schema_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::schema::_StringArray_default_instance_; + new (ptr) ::milvus::proto::schema::StringArray(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::schema::StringArray::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StringArray_schema_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_StringArray_schema_2eproto}, {}}; + +static void InitDefaultsscc_info_VectorField_schema_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::schema::_VectorField_default_instance_; + new (ptr) ::milvus::proto::schema::VectorField(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::schema::VectorField::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VectorField_schema_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_VectorField_schema_2eproto}, { + &scc_info_FloatArray_schema_2eproto.base,}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_schema_2eproto[13]; static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_schema_2eproto[1]; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_schema_2eproto = nullptr; @@ -87,15 +319,119 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_schema_2eproto::offsets[] PROT PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::CollectionSchema, description_), PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::CollectionSchema, autoid_), PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::CollectionSchema, fields_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::BoolArray, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::BoolArray, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::IntArray, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::IntArray, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::LongArray, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::LongArray, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::FloatArray, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::FloatArray, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::DoubleArray, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::DoubleArray, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::BytesArray, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::BytesArray, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::StringArray, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::StringArray, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::ScalarField, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::ScalarField, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::milvus::proto::schema::ScalarFieldDefaultTypeInternal, bool_data_), + offsetof(::milvus::proto::schema::ScalarFieldDefaultTypeInternal, int_data_), + offsetof(::milvus::proto::schema::ScalarFieldDefaultTypeInternal, long_data_), + offsetof(::milvus::proto::schema::ScalarFieldDefaultTypeInternal, float_data_), + offsetof(::milvus::proto::schema::ScalarFieldDefaultTypeInternal, double_data_), + offsetof(::milvus::proto::schema::ScalarFieldDefaultTypeInternal, string_data_), + offsetof(::milvus::proto::schema::ScalarFieldDefaultTypeInternal, bytes_data_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::ScalarField, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::VectorField, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::VectorField, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::VectorField, dim_), + offsetof(::milvus::proto::schema::VectorFieldDefaultTypeInternal, float_vector_), + offsetof(::milvus::proto::schema::VectorFieldDefaultTypeInternal, binary_vector_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::VectorField, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::FieldData, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::FieldData, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::FieldData, type_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::FieldData, field_name_), + offsetof(::milvus::proto::schema::FieldDataDefaultTypeInternal, scalars_), + offsetof(::milvus::proto::schema::FieldDataDefaultTypeInternal, vectors_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::FieldData, field_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::IDs, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::IDs, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::milvus::proto::schema::IDsDefaultTypeInternal, int_id_), + offsetof(::milvus::proto::schema::IDsDefaultTypeInternal, str_id_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::IDs, id_field_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::milvus::proto::schema::FieldSchema)}, { 12, -1, sizeof(::milvus::proto::schema::CollectionSchema)}, + { 21, -1, sizeof(::milvus::proto::schema::BoolArray)}, + { 27, -1, sizeof(::milvus::proto::schema::IntArray)}, + { 33, -1, sizeof(::milvus::proto::schema::LongArray)}, + { 39, -1, sizeof(::milvus::proto::schema::FloatArray)}, + { 45, -1, sizeof(::milvus::proto::schema::DoubleArray)}, + { 51, -1, sizeof(::milvus::proto::schema::BytesArray)}, + { 57, -1, sizeof(::milvus::proto::schema::StringArray)}, + { 63, -1, sizeof(::milvus::proto::schema::ScalarField)}, + { 76, -1, sizeof(::milvus::proto::schema::VectorField)}, + { 85, -1, sizeof(::milvus::proto::schema::FieldData)}, + { 95, -1, sizeof(::milvus::proto::schema::IDs)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::milvus::proto::schema::_FieldSchema_default_instance_), reinterpret_cast(&::milvus::proto::schema::_CollectionSchema_default_instance_), + reinterpret_cast(&::milvus::proto::schema::_BoolArray_default_instance_), + reinterpret_cast(&::milvus::proto::schema::_IntArray_default_instance_), + reinterpret_cast(&::milvus::proto::schema::_LongArray_default_instance_), + reinterpret_cast(&::milvus::proto::schema::_FloatArray_default_instance_), + reinterpret_cast(&::milvus::proto::schema::_DoubleArray_default_instance_), + reinterpret_cast(&::milvus::proto::schema::_BytesArray_default_instance_), + reinterpret_cast(&::milvus::proto::schema::_StringArray_default_instance_), + reinterpret_cast(&::milvus::proto::schema::_ScalarField_default_instance_), + reinterpret_cast(&::milvus::proto::schema::_VectorField_default_instance_), + reinterpret_cast(&::milvus::proto::schema::_FieldData_default_instance_), + reinterpret_cast(&::milvus::proto::schema::_IDs_default_instance_), }; const char descriptor_table_protodef_schema_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -109,27 +445,64 @@ const char descriptor_table_protodef_schema_2eproto[] PROTOBUF_SECTION_VARIABLE( "roto.common.KeyValuePair\"w\n\020CollectionSc" "hema\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022" "\016\n\006autoID\030\003 \001(\010\0220\n\006fields\030\004 \003(\0132 .milvus" - ".proto.schema.FieldSchema*\217\001\n\010DataType\022\010" - "\n\004None\020\000\022\010\n\004Bool\020\001\022\010\n\004Int8\020\002\022\t\n\005Int16\020\003\022" - "\t\n\005Int32\020\004\022\t\n\005Int64\020\005\022\t\n\005Float\020\n\022\n\n\006Doub" - "le\020\013\022\n\n\006String\020\024\022\020\n\014BinaryVector\020d\022\017\n\013Fl" - "oatVector\020eB5Z3github.com/milvus-io/milv" - "us/internal/proto/schemapbb\006proto3" + ".proto.schema.FieldSchema\"\031\n\tBoolArray\022\014" + "\n\004data\030\001 \003(\010\"\030\n\010IntArray\022\014\n\004data\030\001 \003(\005\"\031" + "\n\tLongArray\022\014\n\004data\030\001 \003(\003\"\032\n\nFloatArray\022" + "\014\n\004data\030\001 \003(\002\"\033\n\013DoubleArray\022\014\n\004data\030\001 \003" + "(\001\"\032\n\nBytesArray\022\014\n\004data\030\001 \003(\014\"\033\n\013String" + "Array\022\014\n\004data\030\001 \003(\t\"\222\003\n\013ScalarField\0223\n\tb" + "ool_data\030\001 \001(\0132\036.milvus.proto.schema.Boo" + "lArrayH\000\0221\n\010int_data\030\002 \001(\0132\035.milvus.prot" + "o.schema.IntArrayH\000\0223\n\tlong_data\030\003 \001(\0132\036" + ".milvus.proto.schema.LongArrayH\000\0225\n\nfloa" + "t_data\030\004 \001(\0132\037.milvus.proto.schema.Float" + "ArrayH\000\0227\n\013double_data\030\005 \001(\0132 .milvus.pr" + "oto.schema.DoubleArrayH\000\0227\n\013string_data\030" + "\006 \001(\0132 .milvus.proto.schema.StringArrayH" + "\000\0225\n\nbytes_data\030\007 \001(\0132\037.milvus.proto.sch" + "ema.BytesArrayH\000B\006\n\004data\"t\n\013VectorField\022" + "\013\n\003dim\030\001 \001(\003\0227\n\014float_vector\030\002 \001(\0132\037.mil" + "vus.proto.schema.FloatArrayH\000\022\027\n\rbinary_" + "vector\030\003 \001(\014H\000B\006\n\004data\"\277\001\n\tFieldData\022+\n\004" + "type\030\001 \001(\0162\035.milvus.proto.schema.DataTyp" + "e\022\022\n\nfield_name\030\002 \001(\t\0223\n\007scalars\030\003 \001(\0132 " + ".milvus.proto.schema.ScalarFieldH\000\0223\n\007ve" + "ctors\030\004 \001(\0132 .milvus.proto.schema.Vector" + "FieldH\000B\007\n\005field\"w\n\003IDs\0220\n\006int_id\030\001 \001(\0132" + "\036.milvus.proto.schema.LongArrayH\000\0222\n\006str" + "_id\030\002 \001(\0132 .milvus.proto.schema.StringAr" + "rayH\000B\n\n\010id_field*\217\001\n\010DataType\022\010\n\004None\020\000" + "\022\010\n\004Bool\020\001\022\010\n\004Int8\020\002\022\t\n\005Int16\020\003\022\t\n\005Int32" + "\020\004\022\t\n\005Int64\020\005\022\t\n\005Float\020\n\022\n\n\006Double\020\013\022\n\n\006" + "String\020\024\022\020\n\014BinaryVector\020d\022\017\n\013FloatVecto" + "r\020eB5Z3github.com/milvus-io/milvus/inter" + "nal/proto/schemapbb\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_schema_2eproto_deps[1] = { &::descriptor_table_common_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_schema_2eproto_sccs[2] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_schema_2eproto_sccs[13] = { + &scc_info_BoolArray_schema_2eproto.base, + &scc_info_BytesArray_schema_2eproto.base, &scc_info_CollectionSchema_schema_2eproto.base, + &scc_info_DoubleArray_schema_2eproto.base, + &scc_info_FieldData_schema_2eproto.base, &scc_info_FieldSchema_schema_2eproto.base, + &scc_info_FloatArray_schema_2eproto.base, + &scc_info_IDs_schema_2eproto.base, + &scc_info_IntArray_schema_2eproto.base, + &scc_info_LongArray_schema_2eproto.base, + &scc_info_ScalarField_schema_2eproto.base, + &scc_info_StringArray_schema_2eproto.base, + &scc_info_VectorField_schema_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_schema_2eproto_once; static bool descriptor_table_schema_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_schema_2eproto = { - &descriptor_table_schema_2eproto_initialized, descriptor_table_protodef_schema_2eproto, "schema.proto", 634, - &descriptor_table_schema_2eproto_once, descriptor_table_schema_2eproto_sccs, descriptor_table_schema_2eproto_deps, 2, 1, + &descriptor_table_schema_2eproto_initialized, descriptor_table_protodef_schema_2eproto, "schema.proto", 1666, + &descriptor_table_schema_2eproto_once, descriptor_table_schema_2eproto_sccs, descriptor_table_schema_2eproto_deps, 13, 1, schemas, file_default_instances, TableStruct_schema_2eproto::offsets, - file_level_metadata_schema_2eproto, 2, file_level_enum_descriptors_schema_2eproto, file_level_service_descriptors_schema_2eproto, + file_level_metadata_schema_2eproto, 13, file_level_enum_descriptors_schema_2eproto, file_level_service_descriptors_schema_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -1171,6 +1544,3907 @@ void CollectionSchema::InternalSwap(CollectionSchema* other) { } +// =================================================================== + +void BoolArray::InitAsDefaultInstance() { +} +class BoolArray::_Internal { + public: +}; + +BoolArray::BoolArray() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.schema.BoolArray) +} +BoolArray::BoolArray(const BoolArray& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + data_(from.data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:milvus.proto.schema.BoolArray) +} + +void BoolArray::SharedCtor() { +} + +BoolArray::~BoolArray() { + // @@protoc_insertion_point(destructor:milvus.proto.schema.BoolArray) + SharedDtor(); +} + +void BoolArray::SharedDtor() { +} + +void BoolArray::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BoolArray& BoolArray::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BoolArray_schema_2eproto.base); + return *internal_default_instance(); +} + + +void BoolArray::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.schema.BoolArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BoolArray::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated bool data = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedBoolParser(mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { + add_data(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool BoolArray::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.schema.BoolArray) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated bool data = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( + input, this->mutable_data()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( + 1, 10u, input, this->mutable_data()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.schema.BoolArray) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.schema.BoolArray) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void BoolArray::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.schema.BoolArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bool data = 1; + if (this->data_size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_data_cached_byte_size_.load( + std::memory_order_relaxed)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolArray( + this->data().data(), this->data_size(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.schema.BoolArray) +} + +::PROTOBUF_NAMESPACE_ID::uint8* BoolArray::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.schema.BoolArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bool data = 1; + if (this->data_size() > 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + 1, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _data_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteBoolNoTagToArray(this->data_, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.schema.BoolArray) + return target; +} + +size_t BoolArray::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.schema.BoolArray) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated bool data = 1; + { + unsigned int count = static_cast(this->data_size()); + size_t data_size = 1UL * count; + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _data_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BoolArray::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.schema.BoolArray) + GOOGLE_DCHECK_NE(&from, this); + const BoolArray* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.schema.BoolArray) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.schema.BoolArray) + MergeFrom(*source); + } +} + +void BoolArray::MergeFrom(const BoolArray& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.schema.BoolArray) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_.MergeFrom(from.data_); +} + +void BoolArray::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.schema.BoolArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BoolArray::CopyFrom(const BoolArray& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.schema.BoolArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BoolArray::IsInitialized() const { + return true; +} + +void BoolArray::InternalSwap(BoolArray* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + data_.InternalSwap(&other->data_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BoolArray::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void IntArray::InitAsDefaultInstance() { +} +class IntArray::_Internal { + public: +}; + +IntArray::IntArray() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.schema.IntArray) +} +IntArray::IntArray(const IntArray& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + data_(from.data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:milvus.proto.schema.IntArray) +} + +void IntArray::SharedCtor() { +} + +IntArray::~IntArray() { + // @@protoc_insertion_point(destructor:milvus.proto.schema.IntArray) + SharedDtor(); +} + +void IntArray::SharedDtor() { +} + +void IntArray::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IntArray& IntArray::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IntArray_schema_2eproto.base); + return *internal_default_instance(); +} + + +void IntArray::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.schema.IntArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IntArray::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated int32 data = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { + add_data(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IntArray::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.schema.IntArray) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated int32 data = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( + input, this->mutable_data()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( + 1, 10u, input, this->mutable_data()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.schema.IntArray) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.schema.IntArray) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IntArray::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.schema.IntArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated int32 data = 1; + if (this->data_size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_data_cached_byte_size_.load( + std::memory_order_relaxed)); + } + for (int i = 0, n = this->data_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32NoTag( + this->data(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.schema.IntArray) +} + +::PROTOBUF_NAMESPACE_ID::uint8* IntArray::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.schema.IntArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated int32 data = 1; + if (this->data_size() > 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + 1, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _data_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt32NoTagToArray(this->data_, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.schema.IntArray) + return target; +} + +size_t IntArray::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.schema.IntArray) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated int32 data = 1; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int32Size(this->data_); + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _data_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IntArray::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.schema.IntArray) + GOOGLE_DCHECK_NE(&from, this); + const IntArray* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.schema.IntArray) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.schema.IntArray) + MergeFrom(*source); + } +} + +void IntArray::MergeFrom(const IntArray& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.schema.IntArray) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_.MergeFrom(from.data_); +} + +void IntArray::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.schema.IntArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IntArray::CopyFrom(const IntArray& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.schema.IntArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IntArray::IsInitialized() const { + return true; +} + +void IntArray::InternalSwap(IntArray* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + data_.InternalSwap(&other->data_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IntArray::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void LongArray::InitAsDefaultInstance() { +} +class LongArray::_Internal { + public: +}; + +LongArray::LongArray() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.schema.LongArray) +} +LongArray::LongArray(const LongArray& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + data_(from.data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:milvus.proto.schema.LongArray) +} + +void LongArray::SharedCtor() { +} + +LongArray::~LongArray() { + // @@protoc_insertion_point(destructor:milvus.proto.schema.LongArray) + SharedDtor(); +} + +void LongArray::SharedDtor() { +} + +void LongArray::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LongArray& LongArray::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LongArray_schema_2eproto.base); + return *internal_default_instance(); +} + + +void LongArray::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.schema.LongArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LongArray::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated int64 data = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { + add_data(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LongArray::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.schema.LongArray) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated int64 data = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, this->mutable_data()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 1, 10u, input, this->mutable_data()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.schema.LongArray) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.schema.LongArray) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LongArray::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.schema.LongArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated int64 data = 1; + if (this->data_size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_data_cached_byte_size_.load( + std::memory_order_relaxed)); + } + for (int i = 0, n = this->data_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( + this->data(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.schema.LongArray) +} + +::PROTOBUF_NAMESPACE_ID::uint8* LongArray::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.schema.LongArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated int64 data = 1; + if (this->data_size() > 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + 1, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _data_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->data_, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.schema.LongArray) + return target; +} + +size_t LongArray::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.schema.LongArray) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated int64 data = 1; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->data_); + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _data_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LongArray::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.schema.LongArray) + GOOGLE_DCHECK_NE(&from, this); + const LongArray* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.schema.LongArray) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.schema.LongArray) + MergeFrom(*source); + } +} + +void LongArray::MergeFrom(const LongArray& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.schema.LongArray) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_.MergeFrom(from.data_); +} + +void LongArray::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.schema.LongArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LongArray::CopyFrom(const LongArray& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.schema.LongArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LongArray::IsInitialized() const { + return true; +} + +void LongArray::InternalSwap(LongArray* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + data_.InternalSwap(&other->data_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LongArray::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void FloatArray::InitAsDefaultInstance() { +} +class FloatArray::_Internal { + public: +}; + +FloatArray::FloatArray() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.schema.FloatArray) +} +FloatArray::FloatArray(const FloatArray& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + data_(from.data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:milvus.proto.schema.FloatArray) +} + +void FloatArray::SharedCtor() { +} + +FloatArray::~FloatArray() { + // @@protoc_insertion_point(destructor:milvus.proto.schema.FloatArray) + SharedDtor(); +} + +void FloatArray::SharedDtor() { +} + +void FloatArray::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const FloatArray& FloatArray::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FloatArray_schema_2eproto.base); + return *internal_default_instance(); +} + + +void FloatArray::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.schema.FloatArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FloatArray::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated float data = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13) { + add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(float); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool FloatArray::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.schema.FloatArray) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated float data = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_data()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (13 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( + 1, 10u, input, this->mutable_data()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.schema.FloatArray) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.schema.FloatArray) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void FloatArray::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.schema.FloatArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated float data = 1; + if (this->data_size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_data_cached_byte_size_.load( + std::memory_order_relaxed)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( + this->data().data(), this->data_size(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.schema.FloatArray) +} + +::PROTOBUF_NAMESPACE_ID::uint8* FloatArray::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.schema.FloatArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated float data = 1; + if (this->data_size() > 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + 1, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _data_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteFloatNoTagToArray(this->data_, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.schema.FloatArray) + return target; +} + +size_t FloatArray::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.schema.FloatArray) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated float data = 1; + { + unsigned int count = static_cast(this->data_size()); + size_t data_size = 4UL * count; + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _data_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FloatArray::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.schema.FloatArray) + GOOGLE_DCHECK_NE(&from, this); + const FloatArray* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.schema.FloatArray) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.schema.FloatArray) + MergeFrom(*source); + } +} + +void FloatArray::MergeFrom(const FloatArray& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.schema.FloatArray) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_.MergeFrom(from.data_); +} + +void FloatArray::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.schema.FloatArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FloatArray::CopyFrom(const FloatArray& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.schema.FloatArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FloatArray::IsInitialized() const { + return true; +} + +void FloatArray::InternalSwap(FloatArray* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + data_.InternalSwap(&other->data_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FloatArray::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void DoubleArray::InitAsDefaultInstance() { +} +class DoubleArray::_Internal { + public: +}; + +DoubleArray::DoubleArray() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.schema.DoubleArray) +} +DoubleArray::DoubleArray(const DoubleArray& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + data_(from.data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:milvus.proto.schema.DoubleArray) +} + +void DoubleArray::SharedCtor() { +} + +DoubleArray::~DoubleArray() { + // @@protoc_insertion_point(destructor:milvus.proto.schema.DoubleArray) + SharedDtor(); +} + +void DoubleArray::SharedDtor() { +} + +void DoubleArray::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DoubleArray& DoubleArray::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DoubleArray_schema_2eproto.base); + return *internal_default_instance(); +} + + +void DoubleArray::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.schema.DoubleArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DoubleArray::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated double data = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(mutable_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9) { + add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DoubleArray::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.schema.DoubleArray) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated double data = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( + input, this->mutable_data()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( + 1, 10u, input, this->mutable_data()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.schema.DoubleArray) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.schema.DoubleArray) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DoubleArray::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.schema.DoubleArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated double data = 1; + if (this->data_size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_data_cached_byte_size_.load( + std::memory_order_relaxed)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleArray( + this->data().data(), this->data_size(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.schema.DoubleArray) +} + +::PROTOBUF_NAMESPACE_ID::uint8* DoubleArray::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.schema.DoubleArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated double data = 1; + if (this->data_size() > 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + 1, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _data_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteDoubleNoTagToArray(this->data_, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.schema.DoubleArray) + return target; +} + +size_t DoubleArray::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.schema.DoubleArray) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated double data = 1; + { + unsigned int count = static_cast(this->data_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _data_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DoubleArray::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.schema.DoubleArray) + GOOGLE_DCHECK_NE(&from, this); + const DoubleArray* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.schema.DoubleArray) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.schema.DoubleArray) + MergeFrom(*source); + } +} + +void DoubleArray::MergeFrom(const DoubleArray& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.schema.DoubleArray) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_.MergeFrom(from.data_); +} + +void DoubleArray::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.schema.DoubleArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DoubleArray::CopyFrom(const DoubleArray& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.schema.DoubleArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DoubleArray::IsInitialized() const { + return true; +} + +void DoubleArray::InternalSwap(DoubleArray* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + data_.InternalSwap(&other->data_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DoubleArray::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void BytesArray::InitAsDefaultInstance() { +} +class BytesArray::_Internal { + public: +}; + +BytesArray::BytesArray() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.schema.BytesArray) +} +BytesArray::BytesArray(const BytesArray& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + data_(from.data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:milvus.proto.schema.BytesArray) +} + +void BytesArray::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BytesArray_schema_2eproto.base); +} + +BytesArray::~BytesArray() { + // @@protoc_insertion_point(destructor:milvus.proto.schema.BytesArray) + SharedDtor(); +} + +void BytesArray::SharedDtor() { +} + +void BytesArray::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BytesArray& BytesArray::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BytesArray_schema_2eproto.base); + return *internal_default_instance(); +} + + +void BytesArray::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.schema.BytesArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BytesArray::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated bytes data = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(add_data(), ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool BytesArray::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.schema.BytesArray) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated bytes data = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( + input, this->add_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.schema.BytesArray) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.schema.BytesArray) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void BytesArray::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.schema.BytesArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes data = 1; + for (int i = 0, n = this->data_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytes( + 1, this->data(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.schema.BytesArray) +} + +::PROTOBUF_NAMESPACE_ID::uint8* BytesArray::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.schema.BytesArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes data = 1; + for (int i = 0, n = this->data_size(); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteBytesToArray(1, this->data(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.schema.BytesArray) + return target; +} + +size_t BytesArray::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.schema.BytesArray) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated bytes data = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->data_size()); + for (int i = 0, n = this->data_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->data(i)); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BytesArray::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.schema.BytesArray) + GOOGLE_DCHECK_NE(&from, this); + const BytesArray* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.schema.BytesArray) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.schema.BytesArray) + MergeFrom(*source); + } +} + +void BytesArray::MergeFrom(const BytesArray& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.schema.BytesArray) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_.MergeFrom(from.data_); +} + +void BytesArray::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.schema.BytesArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytesArray::CopyFrom(const BytesArray& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.schema.BytesArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytesArray::IsInitialized() const { + return true; +} + +void BytesArray::InternalSwap(BytesArray* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + data_.InternalSwap(CastToBase(&other->data_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BytesArray::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void StringArray::InitAsDefaultInstance() { +} +class StringArray::_Internal { + public: +}; + +StringArray::StringArray() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.schema.StringArray) +} +StringArray::StringArray(const StringArray& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + data_(from.data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:milvus.proto.schema.StringArray) +} + +void StringArray::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StringArray_schema_2eproto.base); +} + +StringArray::~StringArray() { + // @@protoc_insertion_point(destructor:milvus.proto.schema.StringArray) + SharedDtor(); +} + +void StringArray::SharedDtor() { +} + +void StringArray::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StringArray& StringArray::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StringArray_schema_2eproto.base); + return *internal_default_instance(); +} + + +void StringArray::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.schema.StringArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* StringArray::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated string data = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_data(), ptr, ctx, "milvus.proto.schema.StringArray.data"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool StringArray::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.schema.StringArray) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string data = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_data())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->data(this->data_size() - 1).data(), + static_cast(this->data(this->data_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.schema.StringArray.data")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.schema.StringArray) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.schema.StringArray) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void StringArray::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.schema.StringArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string data = 1; + for (int i = 0, n = this->data_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->data(i).data(), static_cast(this->data(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.schema.StringArray.data"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 1, this->data(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.schema.StringArray) +} + +::PROTOBUF_NAMESPACE_ID::uint8* StringArray::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.schema.StringArray) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string data = 1; + for (int i = 0, n = this->data_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->data(i).data(), static_cast(this->data(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.schema.StringArray.data"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(1, this->data(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.schema.StringArray) + return target; +} + +size_t StringArray::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.schema.StringArray) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string data = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->data_size()); + for (int i = 0, n = this->data_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->data(i)); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StringArray::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.schema.StringArray) + GOOGLE_DCHECK_NE(&from, this); + const StringArray* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.schema.StringArray) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.schema.StringArray) + MergeFrom(*source); + } +} + +void StringArray::MergeFrom(const StringArray& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.schema.StringArray) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_.MergeFrom(from.data_); +} + +void StringArray::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.schema.StringArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StringArray::CopyFrom(const StringArray& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.schema.StringArray) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StringArray::IsInitialized() const { + return true; +} + +void StringArray::InternalSwap(StringArray* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + data_.InternalSwap(CastToBase(&other->data_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StringArray::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void ScalarField::InitAsDefaultInstance() { + ::milvus::proto::schema::_ScalarField_default_instance_.bool_data_ = const_cast< ::milvus::proto::schema::BoolArray*>( + ::milvus::proto::schema::BoolArray::internal_default_instance()); + ::milvus::proto::schema::_ScalarField_default_instance_.int_data_ = const_cast< ::milvus::proto::schema::IntArray*>( + ::milvus::proto::schema::IntArray::internal_default_instance()); + ::milvus::proto::schema::_ScalarField_default_instance_.long_data_ = const_cast< ::milvus::proto::schema::LongArray*>( + ::milvus::proto::schema::LongArray::internal_default_instance()); + ::milvus::proto::schema::_ScalarField_default_instance_.float_data_ = const_cast< ::milvus::proto::schema::FloatArray*>( + ::milvus::proto::schema::FloatArray::internal_default_instance()); + ::milvus::proto::schema::_ScalarField_default_instance_.double_data_ = const_cast< ::milvus::proto::schema::DoubleArray*>( + ::milvus::proto::schema::DoubleArray::internal_default_instance()); + ::milvus::proto::schema::_ScalarField_default_instance_.string_data_ = const_cast< ::milvus::proto::schema::StringArray*>( + ::milvus::proto::schema::StringArray::internal_default_instance()); + ::milvus::proto::schema::_ScalarField_default_instance_.bytes_data_ = const_cast< ::milvus::proto::schema::BytesArray*>( + ::milvus::proto::schema::BytesArray::internal_default_instance()); +} +class ScalarField::_Internal { + public: + static const ::milvus::proto::schema::BoolArray& bool_data(const ScalarField* msg); + static const ::milvus::proto::schema::IntArray& int_data(const ScalarField* msg); + static const ::milvus::proto::schema::LongArray& long_data(const ScalarField* msg); + static const ::milvus::proto::schema::FloatArray& float_data(const ScalarField* msg); + static const ::milvus::proto::schema::DoubleArray& double_data(const ScalarField* msg); + static const ::milvus::proto::schema::StringArray& string_data(const ScalarField* msg); + static const ::milvus::proto::schema::BytesArray& bytes_data(const ScalarField* msg); +}; + +const ::milvus::proto::schema::BoolArray& +ScalarField::_Internal::bool_data(const ScalarField* msg) { + return *msg->data_.bool_data_; +} +const ::milvus::proto::schema::IntArray& +ScalarField::_Internal::int_data(const ScalarField* msg) { + return *msg->data_.int_data_; +} +const ::milvus::proto::schema::LongArray& +ScalarField::_Internal::long_data(const ScalarField* msg) { + return *msg->data_.long_data_; +} +const ::milvus::proto::schema::FloatArray& +ScalarField::_Internal::float_data(const ScalarField* msg) { + return *msg->data_.float_data_; +} +const ::milvus::proto::schema::DoubleArray& +ScalarField::_Internal::double_data(const ScalarField* msg) { + return *msg->data_.double_data_; +} +const ::milvus::proto::schema::StringArray& +ScalarField::_Internal::string_data(const ScalarField* msg) { + return *msg->data_.string_data_; +} +const ::milvus::proto::schema::BytesArray& +ScalarField::_Internal::bytes_data(const ScalarField* msg) { + return *msg->data_.bytes_data_; +} +void ScalarField::set_allocated_bool_data(::milvus::proto::schema::BoolArray* bool_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (bool_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + bool_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, bool_data, submessage_arena); + } + set_has_bool_data(); + data_.bool_data_ = bool_data; + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.ScalarField.bool_data) +} +void ScalarField::set_allocated_int_data(::milvus::proto::schema::IntArray* int_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (int_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + int_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, int_data, submessage_arena); + } + set_has_int_data(); + data_.int_data_ = int_data; + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.ScalarField.int_data) +} +void ScalarField::set_allocated_long_data(::milvus::proto::schema::LongArray* long_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (long_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + long_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, long_data, submessage_arena); + } + set_has_long_data(); + data_.long_data_ = long_data; + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.ScalarField.long_data) +} +void ScalarField::set_allocated_float_data(::milvus::proto::schema::FloatArray* float_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (float_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + float_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, float_data, submessage_arena); + } + set_has_float_data(); + data_.float_data_ = float_data; + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.ScalarField.float_data) +} +void ScalarField::set_allocated_double_data(::milvus::proto::schema::DoubleArray* double_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (double_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + double_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, double_data, submessage_arena); + } + set_has_double_data(); + data_.double_data_ = double_data; + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.ScalarField.double_data) +} +void ScalarField::set_allocated_string_data(::milvus::proto::schema::StringArray* string_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (string_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + string_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, string_data, submessage_arena); + } + set_has_string_data(); + data_.string_data_ = string_data; + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.ScalarField.string_data) +} +void ScalarField::set_allocated_bytes_data(::milvus::proto::schema::BytesArray* bytes_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (bytes_data) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + bytes_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, bytes_data, submessage_arena); + } + set_has_bytes_data(); + data_.bytes_data_ = bytes_data; + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.ScalarField.bytes_data) +} +ScalarField::ScalarField() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.schema.ScalarField) +} +ScalarField::ScalarField(const ScalarField& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_data(); + switch (from.data_case()) { + case kBoolData: { + mutable_bool_data()->::milvus::proto::schema::BoolArray::MergeFrom(from.bool_data()); + break; + } + case kIntData: { + mutable_int_data()->::milvus::proto::schema::IntArray::MergeFrom(from.int_data()); + break; + } + case kLongData: { + mutable_long_data()->::milvus::proto::schema::LongArray::MergeFrom(from.long_data()); + break; + } + case kFloatData: { + mutable_float_data()->::milvus::proto::schema::FloatArray::MergeFrom(from.float_data()); + break; + } + case kDoubleData: { + mutable_double_data()->::milvus::proto::schema::DoubleArray::MergeFrom(from.double_data()); + break; + } + case kStringData: { + mutable_string_data()->::milvus::proto::schema::StringArray::MergeFrom(from.string_data()); + break; + } + case kBytesData: { + mutable_bytes_data()->::milvus::proto::schema::BytesArray::MergeFrom(from.bytes_data()); + break; + } + case DATA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.schema.ScalarField) +} + +void ScalarField::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ScalarField_schema_2eproto.base); + clear_has_data(); +} + +ScalarField::~ScalarField() { + // @@protoc_insertion_point(destructor:milvus.proto.schema.ScalarField) + SharedDtor(); +} + +void ScalarField::SharedDtor() { + if (has_data()) { + clear_data(); + } +} + +void ScalarField::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ScalarField& ScalarField::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ScalarField_schema_2eproto.base); + return *internal_default_instance(); +} + + +void ScalarField::clear_data() { +// @@protoc_insertion_point(one_of_clear_start:milvus.proto.schema.ScalarField) + switch (data_case()) { + case kBoolData: { + delete data_.bool_data_; + break; + } + case kIntData: { + delete data_.int_data_; + break; + } + case kLongData: { + delete data_.long_data_; + break; + } + case kFloatData: { + delete data_.float_data_; + break; + } + case kDoubleData: { + delete data_.double_data_; + break; + } + case kStringData: { + delete data_.string_data_; + break; + } + case kBytesData: { + delete data_.bytes_data_; + break; + } + case DATA_NOT_SET: { + break; + } + } + _oneof_case_[0] = DATA_NOT_SET; +} + + +void ScalarField::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.schema.ScalarField) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_data(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ScalarField::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.schema.BoolArray bool_data = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_bool_data(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.IntArray int_data = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_int_data(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.LongArray long_data = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(mutable_long_data(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.FloatArray float_data = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(mutable_float_data(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.DoubleArray double_data = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(mutable_double_data(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.StringArray string_data = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(mutable_string_data(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.BytesArray bytes_data = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr = ctx->ParseMessage(mutable_bytes_data(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ScalarField::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.schema.ScalarField) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.schema.BoolArray bool_data = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_bool_data())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.IntArray int_data = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_int_data())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.LongArray long_data = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_long_data())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.FloatArray float_data = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_float_data())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.DoubleArray double_data = 5; + case 5: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_double_data())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.StringArray string_data = 6; + case 6: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_string_data())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.BytesArray bytes_data = 7; + case 7: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_bytes_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.schema.ScalarField) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.schema.ScalarField) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ScalarField::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.schema.ScalarField) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.schema.BoolArray bool_data = 1; + if (has_bool_data()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::bool_data(this), output); + } + + // .milvus.proto.schema.IntArray int_data = 2; + if (has_int_data()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::int_data(this), output); + } + + // .milvus.proto.schema.LongArray long_data = 3; + if (has_long_data()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, _Internal::long_data(this), output); + } + + // .milvus.proto.schema.FloatArray float_data = 4; + if (has_float_data()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, _Internal::float_data(this), output); + } + + // .milvus.proto.schema.DoubleArray double_data = 5; + if (has_double_data()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, _Internal::double_data(this), output); + } + + // .milvus.proto.schema.StringArray string_data = 6; + if (has_string_data()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, _Internal::string_data(this), output); + } + + // .milvus.proto.schema.BytesArray bytes_data = 7; + if (has_bytes_data()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, _Internal::bytes_data(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.schema.ScalarField) +} + +::PROTOBUF_NAMESPACE_ID::uint8* ScalarField::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.schema.ScalarField) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.schema.BoolArray bool_data = 1; + if (has_bool_data()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::bool_data(this), target); + } + + // .milvus.proto.schema.IntArray int_data = 2; + if (has_int_data()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::int_data(this), target); + } + + // .milvus.proto.schema.LongArray long_data = 3; + if (has_long_data()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, _Internal::long_data(this), target); + } + + // .milvus.proto.schema.FloatArray float_data = 4; + if (has_float_data()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, _Internal::float_data(this), target); + } + + // .milvus.proto.schema.DoubleArray double_data = 5; + if (has_double_data()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, _Internal::double_data(this), target); + } + + // .milvus.proto.schema.StringArray string_data = 6; + if (has_string_data()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, _Internal::string_data(this), target); + } + + // .milvus.proto.schema.BytesArray bytes_data = 7; + if (has_bytes_data()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, _Internal::bytes_data(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.schema.ScalarField) + return target; +} + +size_t ScalarField::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.schema.ScalarField) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (data_case()) { + // .milvus.proto.schema.BoolArray bool_data = 1; + case kBoolData: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *data_.bool_data_); + break; + } + // .milvus.proto.schema.IntArray int_data = 2; + case kIntData: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *data_.int_data_); + break; + } + // .milvus.proto.schema.LongArray long_data = 3; + case kLongData: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *data_.long_data_); + break; + } + // .milvus.proto.schema.FloatArray float_data = 4; + case kFloatData: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *data_.float_data_); + break; + } + // .milvus.proto.schema.DoubleArray double_data = 5; + case kDoubleData: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *data_.double_data_); + break; + } + // .milvus.proto.schema.StringArray string_data = 6; + case kStringData: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *data_.string_data_); + break; + } + // .milvus.proto.schema.BytesArray bytes_data = 7; + case kBytesData: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *data_.bytes_data_); + break; + } + case DATA_NOT_SET: { + break; + } + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ScalarField::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.schema.ScalarField) + GOOGLE_DCHECK_NE(&from, this); + const ScalarField* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.schema.ScalarField) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.schema.ScalarField) + MergeFrom(*source); + } +} + +void ScalarField::MergeFrom(const ScalarField& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.schema.ScalarField) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.data_case()) { + case kBoolData: { + mutable_bool_data()->::milvus::proto::schema::BoolArray::MergeFrom(from.bool_data()); + break; + } + case kIntData: { + mutable_int_data()->::milvus::proto::schema::IntArray::MergeFrom(from.int_data()); + break; + } + case kLongData: { + mutable_long_data()->::milvus::proto::schema::LongArray::MergeFrom(from.long_data()); + break; + } + case kFloatData: { + mutable_float_data()->::milvus::proto::schema::FloatArray::MergeFrom(from.float_data()); + break; + } + case kDoubleData: { + mutable_double_data()->::milvus::proto::schema::DoubleArray::MergeFrom(from.double_data()); + break; + } + case kStringData: { + mutable_string_data()->::milvus::proto::schema::StringArray::MergeFrom(from.string_data()); + break; + } + case kBytesData: { + mutable_bytes_data()->::milvus::proto::schema::BytesArray::MergeFrom(from.bytes_data()); + break; + } + case DATA_NOT_SET: { + break; + } + } +} + +void ScalarField::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.schema.ScalarField) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ScalarField::CopyFrom(const ScalarField& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.schema.ScalarField) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ScalarField::IsInitialized() const { + return true; +} + +void ScalarField::InternalSwap(ScalarField* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(data_, other->data_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ScalarField::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void VectorField::InitAsDefaultInstance() { + ::milvus::proto::schema::_VectorField_default_instance_.float_vector_ = const_cast< ::milvus::proto::schema::FloatArray*>( + ::milvus::proto::schema::FloatArray::internal_default_instance()); + ::milvus::proto::schema::_VectorField_default_instance_.binary_vector_.UnsafeSetDefault( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +class VectorField::_Internal { + public: + static const ::milvus::proto::schema::FloatArray& float_vector(const VectorField* msg); +}; + +const ::milvus::proto::schema::FloatArray& +VectorField::_Internal::float_vector(const VectorField* msg) { + return *msg->data_.float_vector_; +} +void VectorField::set_allocated_float_vector(::milvus::proto::schema::FloatArray* float_vector) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (float_vector) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + float_vector = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, float_vector, submessage_arena); + } + set_has_float_vector(); + data_.float_vector_ = float_vector; + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.VectorField.float_vector) +} +VectorField::VectorField() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.schema.VectorField) +} +VectorField::VectorField(const VectorField& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + dim_ = from.dim_; + clear_has_data(); + switch (from.data_case()) { + case kFloatVector: { + mutable_float_vector()->::milvus::proto::schema::FloatArray::MergeFrom(from.float_vector()); + break; + } + case kBinaryVector: { + set_binary_vector(from.binary_vector()); + break; + } + case DATA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.schema.VectorField) +} + +void VectorField::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorField_schema_2eproto.base); + dim_ = PROTOBUF_LONGLONG(0); + clear_has_data(); +} + +VectorField::~VectorField() { + // @@protoc_insertion_point(destructor:milvus.proto.schema.VectorField) + SharedDtor(); +} + +void VectorField::SharedDtor() { + if (has_data()) { + clear_data(); + } +} + +void VectorField::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const VectorField& VectorField::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorField_schema_2eproto.base); + return *internal_default_instance(); +} + + +void VectorField::clear_data() { +// @@protoc_insertion_point(one_of_clear_start:milvus.proto.schema.VectorField) + switch (data_case()) { + case kFloatVector: { + delete data_.float_vector_; + break; + } + case kBinaryVector: { + data_.binary_vector_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + break; + } + case DATA_NOT_SET: { + break; + } + } + _oneof_case_[0] = DATA_NOT_SET; +} + + +void VectorField::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.schema.VectorField) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + dim_ = PROTOBUF_LONGLONG(0); + clear_data(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* VectorField::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // int64 dim = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + dim_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.FloatArray float_vector = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_float_vector(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes binary_vector = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_binary_vector(), ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool VectorField::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.schema.VectorField) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 dim = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &dim_))); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.FloatArray float_vector = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_float_vector())); + } else { + goto handle_unusual; + } + break; + } + + // bytes binary_vector = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( + input, this->mutable_binary_vector())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.schema.VectorField) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.schema.VectorField) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void VectorField::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.schema.VectorField) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 dim = 1; + if (this->dim() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->dim(), output); + } + + // .milvus.proto.schema.FloatArray float_vector = 2; + if (has_float_vector()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::float_vector(this), output); + } + + // bytes binary_vector = 3; + if (has_binary_vector()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->binary_vector(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.schema.VectorField) +} + +::PROTOBUF_NAMESPACE_ID::uint8* VectorField::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.schema.VectorField) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 dim = 1; + if (this->dim() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->dim(), target); + } + + // .milvus.proto.schema.FloatArray float_vector = 2; + if (has_float_vector()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::float_vector(this), target); + } + + // bytes binary_vector = 3; + if (has_binary_vector()) { + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( + 3, this->binary_vector(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.schema.VectorField) + return target; +} + +size_t VectorField::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.schema.VectorField) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 dim = 1; + if (this->dim() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->dim()); + } + + switch (data_case()) { + // .milvus.proto.schema.FloatArray float_vector = 2; + case kFloatVector: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *data_.float_vector_); + break; + } + // bytes binary_vector = 3; + case kBinaryVector: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->binary_vector()); + break; + } + case DATA_NOT_SET: { + break; + } + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void VectorField::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.schema.VectorField) + GOOGLE_DCHECK_NE(&from, this); + const VectorField* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.schema.VectorField) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.schema.VectorField) + MergeFrom(*source); + } +} + +void VectorField::MergeFrom(const VectorField& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.schema.VectorField) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.dim() != 0) { + set_dim(from.dim()); + } + switch (from.data_case()) { + case kFloatVector: { + mutable_float_vector()->::milvus::proto::schema::FloatArray::MergeFrom(from.float_vector()); + break; + } + case kBinaryVector: { + set_binary_vector(from.binary_vector()); + break; + } + case DATA_NOT_SET: { + break; + } + } +} + +void VectorField::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.schema.VectorField) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void VectorField::CopyFrom(const VectorField& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.schema.VectorField) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VectorField::IsInitialized() const { + return true; +} + +void VectorField::InternalSwap(VectorField* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(dim_, other->dim_); + swap(data_, other->data_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata VectorField::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void FieldData::InitAsDefaultInstance() { + ::milvus::proto::schema::_FieldData_default_instance_.scalars_ = const_cast< ::milvus::proto::schema::ScalarField*>( + ::milvus::proto::schema::ScalarField::internal_default_instance()); + ::milvus::proto::schema::_FieldData_default_instance_.vectors_ = const_cast< ::milvus::proto::schema::VectorField*>( + ::milvus::proto::schema::VectorField::internal_default_instance()); +} +class FieldData::_Internal { + public: + static const ::milvus::proto::schema::ScalarField& scalars(const FieldData* msg); + static const ::milvus::proto::schema::VectorField& vectors(const FieldData* msg); +}; + +const ::milvus::proto::schema::ScalarField& +FieldData::_Internal::scalars(const FieldData* msg) { + return *msg->field_.scalars_; +} +const ::milvus::proto::schema::VectorField& +FieldData::_Internal::vectors(const FieldData* msg) { + return *msg->field_.vectors_; +} +void FieldData::set_allocated_scalars(::milvus::proto::schema::ScalarField* scalars) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_field(); + if (scalars) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + scalars = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, scalars, submessage_arena); + } + set_has_scalars(); + field_.scalars_ = scalars; + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.FieldData.scalars) +} +void FieldData::set_allocated_vectors(::milvus::proto::schema::VectorField* vectors) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_field(); + if (vectors) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + vectors = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vectors, submessage_arena); + } + set_has_vectors(); + field_.vectors_ = vectors; + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.FieldData.vectors) +} +FieldData::FieldData() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.schema.FieldData) +} +FieldData::FieldData(const FieldData& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.field_name().empty()) { + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + type_ = from.type_; + clear_has_field(); + switch (from.field_case()) { + case kScalars: { + mutable_scalars()->::milvus::proto::schema::ScalarField::MergeFrom(from.scalars()); + break; + } + case kVectors: { + mutable_vectors()->::milvus::proto::schema::VectorField::MergeFrom(from.vectors()); + break; + } + case FIELD_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.schema.FieldData) +} + +void FieldData::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldData_schema_2eproto.base); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + type_ = 0; + clear_has_field(); +} + +FieldData::~FieldData() { + // @@protoc_insertion_point(destructor:milvus.proto.schema.FieldData) + SharedDtor(); +} + +void FieldData::SharedDtor() { + field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (has_field()) { + clear_field(); + } +} + +void FieldData::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const FieldData& FieldData::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldData_schema_2eproto.base); + return *internal_default_instance(); +} + + +void FieldData::clear_field() { +// @@protoc_insertion_point(one_of_clear_start:milvus.proto.schema.FieldData) + switch (field_case()) { + case kScalars: { + delete field_.scalars_; + break; + } + case kVectors: { + delete field_.vectors_; + break; + } + case FIELD_NOT_SET: { + break; + } + } + _oneof_case_[0] = FIELD_NOT_SET; +} + + +void FieldData::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.schema.FieldData) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + type_ = 0; + clear_field(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FieldData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.schema.DataType type = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_type(static_cast<::milvus::proto::schema::DataType>(val)); + } else goto handle_unusual; + continue; + // string field_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.proto.schema.FieldData.field_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.ScalarField scalars = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(mutable_scalars(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.VectorField vectors = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(mutable_vectors(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool FieldData::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.schema.FieldData) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.schema.DataType type = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_type(static_cast< ::milvus::proto::schema::DataType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string field_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_field_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.schema.FieldData.field_name")); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.ScalarField scalars = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_scalars())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.VectorField vectors = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_vectors())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.schema.FieldData) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.schema.FieldData) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void FieldData::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.schema.FieldData) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.schema.DataType type = 1; + if (this->type() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // string field_name = 2; + if (this->field_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.schema.FieldData.field_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->field_name(), output); + } + + // .milvus.proto.schema.ScalarField scalars = 3; + if (has_scalars()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, _Internal::scalars(this), output); + } + + // .milvus.proto.schema.VectorField vectors = 4; + if (has_vectors()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, _Internal::vectors(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.schema.FieldData) +} + +::PROTOBUF_NAMESPACE_ID::uint8* FieldData::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.schema.FieldData) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.schema.DataType type = 1; + if (this->type() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // string field_name = 2; + if (this->field_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.schema.FieldData.field_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->field_name(), target); + } + + // .milvus.proto.schema.ScalarField scalars = 3; + if (has_scalars()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, _Internal::scalars(this), target); + } + + // .milvus.proto.schema.VectorField vectors = 4; + if (has_vectors()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, _Internal::vectors(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.schema.FieldData) + return target; +} + +size_t FieldData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.schema.FieldData) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string field_name = 2; + if (this->field_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->field_name()); + } + + // .milvus.proto.schema.DataType type = 1; + if (this->type() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->type()); + } + + switch (field_case()) { + // .milvus.proto.schema.ScalarField scalars = 3; + case kScalars: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *field_.scalars_); + break; + } + // .milvus.proto.schema.VectorField vectors = 4; + case kVectors: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *field_.vectors_); + break; + } + case FIELD_NOT_SET: { + break; + } + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FieldData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.schema.FieldData) + GOOGLE_DCHECK_NE(&from, this); + const FieldData* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.schema.FieldData) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.schema.FieldData) + MergeFrom(*source); + } +} + +void FieldData::MergeFrom(const FieldData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.schema.FieldData) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.field_name().size() > 0) { + + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + if (from.type() != 0) { + set_type(from.type()); + } + switch (from.field_case()) { + case kScalars: { + mutable_scalars()->::milvus::proto::schema::ScalarField::MergeFrom(from.scalars()); + break; + } + case kVectors: { + mutable_vectors()->::milvus::proto::schema::VectorField::MergeFrom(from.vectors()); + break; + } + case FIELD_NOT_SET: { + break; + } + } +} + +void FieldData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.schema.FieldData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FieldData::CopyFrom(const FieldData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.schema.FieldData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FieldData::IsInitialized() const { + return true; +} + +void FieldData::InternalSwap(FieldData* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(type_, other->type_); + swap(field_, other->field_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FieldData::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void IDs::InitAsDefaultInstance() { + ::milvus::proto::schema::_IDs_default_instance_.int_id_ = const_cast< ::milvus::proto::schema::LongArray*>( + ::milvus::proto::schema::LongArray::internal_default_instance()); + ::milvus::proto::schema::_IDs_default_instance_.str_id_ = const_cast< ::milvus::proto::schema::StringArray*>( + ::milvus::proto::schema::StringArray::internal_default_instance()); +} +class IDs::_Internal { + public: + static const ::milvus::proto::schema::LongArray& int_id(const IDs* msg); + static const ::milvus::proto::schema::StringArray& str_id(const IDs* msg); +}; + +const ::milvus::proto::schema::LongArray& +IDs::_Internal::int_id(const IDs* msg) { + return *msg->id_field_.int_id_; +} +const ::milvus::proto::schema::StringArray& +IDs::_Internal::str_id(const IDs* msg) { + return *msg->id_field_.str_id_; +} +void IDs::set_allocated_int_id(::milvus::proto::schema::LongArray* int_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_id_field(); + if (int_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + int_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, int_id, submessage_arena); + } + set_has_int_id(); + id_field_.int_id_ = int_id; + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.IDs.int_id) +} +void IDs::set_allocated_str_id(::milvus::proto::schema::StringArray* str_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_id_field(); + if (str_id) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + str_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, str_id, submessage_arena); + } + set_has_str_id(); + id_field_.str_id_ = str_id; + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.IDs.str_id) +} +IDs::IDs() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.schema.IDs) +} +IDs::IDs(const IDs& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_id_field(); + switch (from.id_field_case()) { + case kIntId: { + mutable_int_id()->::milvus::proto::schema::LongArray::MergeFrom(from.int_id()); + break; + } + case kStrId: { + mutable_str_id()->::milvus::proto::schema::StringArray::MergeFrom(from.str_id()); + break; + } + case ID_FIELD_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:milvus.proto.schema.IDs) +} + +void IDs::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IDs_schema_2eproto.base); + clear_has_id_field(); +} + +IDs::~IDs() { + // @@protoc_insertion_point(destructor:milvus.proto.schema.IDs) + SharedDtor(); +} + +void IDs::SharedDtor() { + if (has_id_field()) { + clear_id_field(); + } +} + +void IDs::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IDs& IDs::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IDs_schema_2eproto.base); + return *internal_default_instance(); +} + + +void IDs::clear_id_field() { +// @@protoc_insertion_point(one_of_clear_start:milvus.proto.schema.IDs) + switch (id_field_case()) { + case kIntId: { + delete id_field_.int_id_; + break; + } + case kStrId: { + delete id_field_.str_id_; + break; + } + case ID_FIELD_NOT_SET: { + break; + } + } + _oneof_case_[0] = ID_FIELD_NOT_SET; +} + + +void IDs::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.schema.IDs) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_id_field(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IDs::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.schema.LongArray int_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_int_id(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.StringArray str_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_str_id(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IDs::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.schema.IDs) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.schema.LongArray int_id = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_int_id())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.StringArray str_id = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_str_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.schema.IDs) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.schema.IDs) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IDs::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.schema.IDs) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.schema.LongArray int_id = 1; + if (has_int_id()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::int_id(this), output); + } + + // .milvus.proto.schema.StringArray str_id = 2; + if (has_str_id()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::str_id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.schema.IDs) +} + +::PROTOBUF_NAMESPACE_ID::uint8* IDs::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.schema.IDs) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.schema.LongArray int_id = 1; + if (has_int_id()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::int_id(this), target); + } + + // .milvus.proto.schema.StringArray str_id = 2; + if (has_str_id()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::str_id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.schema.IDs) + return target; +} + +size_t IDs::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.schema.IDs) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (id_field_case()) { + // .milvus.proto.schema.LongArray int_id = 1; + case kIntId: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *id_field_.int_id_); + break; + } + // .milvus.proto.schema.StringArray str_id = 2; + case kStrId: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *id_field_.str_id_); + break; + } + case ID_FIELD_NOT_SET: { + break; + } + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IDs::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.schema.IDs) + GOOGLE_DCHECK_NE(&from, this); + const IDs* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.schema.IDs) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.schema.IDs) + MergeFrom(*source); + } +} + +void IDs::MergeFrom(const IDs& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.schema.IDs) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.id_field_case()) { + case kIntId: { + mutable_int_id()->::milvus::proto::schema::LongArray::MergeFrom(from.int_id()); + break; + } + case kStrId: { + mutable_str_id()->::milvus::proto::schema::StringArray::MergeFrom(from.str_id()); + break; + } + case ID_FIELD_NOT_SET: { + break; + } + } +} + +void IDs::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.schema.IDs) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IDs::CopyFrom(const IDs& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.schema.IDs) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IDs::IsInitialized() const { + return true; +} + +void IDs::InternalSwap(IDs* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_field_, other->id_field_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IDs::GetMetadata() const { + return GetMetadataStatic(); +} + + // @@protoc_insertion_point(namespace_scope) } // namespace schema } // namespace proto @@ -1182,6 +5456,39 @@ template<> PROTOBUF_NOINLINE ::milvus::proto::schema::FieldSchema* Arena::Create template<> PROTOBUF_NOINLINE ::milvus::proto::schema::CollectionSchema* Arena::CreateMaybeMessage< ::milvus::proto::schema::CollectionSchema >(Arena* arena) { return Arena::CreateInternal< ::milvus::proto::schema::CollectionSchema >(arena); } +template<> PROTOBUF_NOINLINE ::milvus::proto::schema::BoolArray* Arena::CreateMaybeMessage< ::milvus::proto::schema::BoolArray >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::schema::BoolArray >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::schema::IntArray* Arena::CreateMaybeMessage< ::milvus::proto::schema::IntArray >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::schema::IntArray >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::schema::LongArray* Arena::CreateMaybeMessage< ::milvus::proto::schema::LongArray >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::schema::LongArray >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::schema::FloatArray* Arena::CreateMaybeMessage< ::milvus::proto::schema::FloatArray >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::schema::FloatArray >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::schema::DoubleArray* Arena::CreateMaybeMessage< ::milvus::proto::schema::DoubleArray >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::schema::DoubleArray >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::schema::BytesArray* Arena::CreateMaybeMessage< ::milvus::proto::schema::BytesArray >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::schema::BytesArray >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::schema::StringArray* Arena::CreateMaybeMessage< ::milvus::proto::schema::StringArray >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::schema::StringArray >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::schema::ScalarField* Arena::CreateMaybeMessage< ::milvus::proto::schema::ScalarField >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::schema::ScalarField >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::schema::VectorField* Arena::CreateMaybeMessage< ::milvus::proto::schema::VectorField >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::schema::VectorField >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::schema::FieldData* Arena::CreateMaybeMessage< ::milvus::proto::schema::FieldData >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::schema::FieldData >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::schema::IDs* Arena::CreateMaybeMessage< ::milvus::proto::schema::IDs >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::schema::IDs >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/internal/core/src/pb/schema.pb.h b/internal/core/src/pb/schema.pb.h index 0ad86761e6..442c31b689 100644 --- a/internal/core/src/pb/schema.pb.h +++ b/internal/core/src/pb/schema.pb.h @@ -49,7 +49,7 @@ struct TableStruct_schema_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[13] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -59,18 +59,62 @@ extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table namespace milvus { namespace proto { namespace schema { +class BoolArray; +class BoolArrayDefaultTypeInternal; +extern BoolArrayDefaultTypeInternal _BoolArray_default_instance_; +class BytesArray; +class BytesArrayDefaultTypeInternal; +extern BytesArrayDefaultTypeInternal _BytesArray_default_instance_; class CollectionSchema; class CollectionSchemaDefaultTypeInternal; extern CollectionSchemaDefaultTypeInternal _CollectionSchema_default_instance_; +class DoubleArray; +class DoubleArrayDefaultTypeInternal; +extern DoubleArrayDefaultTypeInternal _DoubleArray_default_instance_; +class FieldData; +class FieldDataDefaultTypeInternal; +extern FieldDataDefaultTypeInternal _FieldData_default_instance_; class FieldSchema; class FieldSchemaDefaultTypeInternal; extern FieldSchemaDefaultTypeInternal _FieldSchema_default_instance_; +class FloatArray; +class FloatArrayDefaultTypeInternal; +extern FloatArrayDefaultTypeInternal _FloatArray_default_instance_; +class IDs; +class IDsDefaultTypeInternal; +extern IDsDefaultTypeInternal _IDs_default_instance_; +class IntArray; +class IntArrayDefaultTypeInternal; +extern IntArrayDefaultTypeInternal _IntArray_default_instance_; +class LongArray; +class LongArrayDefaultTypeInternal; +extern LongArrayDefaultTypeInternal _LongArray_default_instance_; +class ScalarField; +class ScalarFieldDefaultTypeInternal; +extern ScalarFieldDefaultTypeInternal _ScalarField_default_instance_; +class StringArray; +class StringArrayDefaultTypeInternal; +extern StringArrayDefaultTypeInternal _StringArray_default_instance_; +class VectorField; +class VectorFieldDefaultTypeInternal; +extern VectorFieldDefaultTypeInternal _VectorField_default_instance_; } // namespace schema } // namespace proto } // namespace milvus PROTOBUF_NAMESPACE_OPEN +template<> ::milvus::proto::schema::BoolArray* Arena::CreateMaybeMessage<::milvus::proto::schema::BoolArray>(Arena*); +template<> ::milvus::proto::schema::BytesArray* Arena::CreateMaybeMessage<::milvus::proto::schema::BytesArray>(Arena*); template<> ::milvus::proto::schema::CollectionSchema* Arena::CreateMaybeMessage<::milvus::proto::schema::CollectionSchema>(Arena*); +template<> ::milvus::proto::schema::DoubleArray* Arena::CreateMaybeMessage<::milvus::proto::schema::DoubleArray>(Arena*); +template<> ::milvus::proto::schema::FieldData* Arena::CreateMaybeMessage<::milvus::proto::schema::FieldData>(Arena*); template<> ::milvus::proto::schema::FieldSchema* Arena::CreateMaybeMessage<::milvus::proto::schema::FieldSchema>(Arena*); +template<> ::milvus::proto::schema::FloatArray* Arena::CreateMaybeMessage<::milvus::proto::schema::FloatArray>(Arena*); +template<> ::milvus::proto::schema::IDs* Arena::CreateMaybeMessage<::milvus::proto::schema::IDs>(Arena*); +template<> ::milvus::proto::schema::IntArray* Arena::CreateMaybeMessage<::milvus::proto::schema::IntArray>(Arena*); +template<> ::milvus::proto::schema::LongArray* Arena::CreateMaybeMessage<::milvus::proto::schema::LongArray>(Arena*); +template<> ::milvus::proto::schema::ScalarField* Arena::CreateMaybeMessage<::milvus::proto::schema::ScalarField>(Arena*); +template<> ::milvus::proto::schema::StringArray* Arena::CreateMaybeMessage<::milvus::proto::schema::StringArray>(Arena*); +template<> ::milvus::proto::schema::VectorField* Arena::CreateMaybeMessage<::milvus::proto::schema::VectorField>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace milvus { namespace proto { @@ -477,6 +521,1723 @@ class CollectionSchema : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_schema_2eproto; }; +// ------------------------------------------------------------------- + +class BoolArray : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.schema.BoolArray) */ { + public: + BoolArray(); + virtual ~BoolArray(); + + BoolArray(const BoolArray& from); + BoolArray(BoolArray&& from) noexcept + : BoolArray() { + *this = ::std::move(from); + } + + inline BoolArray& operator=(const BoolArray& from) { + CopyFrom(from); + return *this; + } + inline BoolArray& operator=(BoolArray&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const BoolArray& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BoolArray* internal_default_instance() { + return reinterpret_cast( + &_BoolArray_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(BoolArray& a, BoolArray& b) { + a.Swap(&b); + } + inline void Swap(BoolArray* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline BoolArray* New() const final { + return CreateMaybeMessage(nullptr); + } + + BoolArray* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const BoolArray& from); + void MergeFrom(const BoolArray& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BoolArray* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.schema.BoolArray"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_2eproto); + return ::descriptor_table_schema_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDataFieldNumber = 1, + }; + // repeated bool data = 1; + int data_size() const; + void clear_data(); + bool data(int index) const; + void set_data(int index, bool value); + void add_data(bool value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* + mutable_data(); + + // @@protoc_insertion_point(class_scope:milvus.proto.schema.BoolArray) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool > data_; + mutable std::atomic _data_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_schema_2eproto; +}; +// ------------------------------------------------------------------- + +class IntArray : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.schema.IntArray) */ { + public: + IntArray(); + virtual ~IntArray(); + + IntArray(const IntArray& from); + IntArray(IntArray&& from) noexcept + : IntArray() { + *this = ::std::move(from); + } + + inline IntArray& operator=(const IntArray& from) { + CopyFrom(from); + return *this; + } + inline IntArray& operator=(IntArray&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const IntArray& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IntArray* internal_default_instance() { + return reinterpret_cast( + &_IntArray_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(IntArray& a, IntArray& b) { + a.Swap(&b); + } + inline void Swap(IntArray* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline IntArray* New() const final { + return CreateMaybeMessage(nullptr); + } + + IntArray* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const IntArray& from); + void MergeFrom(const IntArray& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IntArray* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.schema.IntArray"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_2eproto); + return ::descriptor_table_schema_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDataFieldNumber = 1, + }; + // repeated int32 data = 1; + int data_size() const; + void clear_data(); + ::PROTOBUF_NAMESPACE_ID::int32 data(int index) const; + void set_data(int index, ::PROTOBUF_NAMESPACE_ID::int32 value); + void add_data(::PROTOBUF_NAMESPACE_ID::int32 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* + mutable_data(); + + // @@protoc_insertion_point(class_scope:milvus.proto.schema.IntArray) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > data_; + mutable std::atomic _data_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_schema_2eproto; +}; +// ------------------------------------------------------------------- + +class LongArray : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.schema.LongArray) */ { + public: + LongArray(); + virtual ~LongArray(); + + LongArray(const LongArray& from); + LongArray(LongArray&& from) noexcept + : LongArray() { + *this = ::std::move(from); + } + + inline LongArray& operator=(const LongArray& from) { + CopyFrom(from); + return *this; + } + inline LongArray& operator=(LongArray&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const LongArray& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LongArray* internal_default_instance() { + return reinterpret_cast( + &_LongArray_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(LongArray& a, LongArray& b) { + a.Swap(&b); + } + inline void Swap(LongArray* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline LongArray* New() const final { + return CreateMaybeMessage(nullptr); + } + + LongArray* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const LongArray& from); + void MergeFrom(const LongArray& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LongArray* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.schema.LongArray"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_2eproto); + return ::descriptor_table_schema_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDataFieldNumber = 1, + }; + // repeated int64 data = 1; + int data_size() const; + void clear_data(); + ::PROTOBUF_NAMESPACE_ID::int64 data(int index) const; + void set_data(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_data(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* + mutable_data(); + + // @@protoc_insertion_point(class_scope:milvus.proto.schema.LongArray) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > data_; + mutable std::atomic _data_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_schema_2eproto; +}; +// ------------------------------------------------------------------- + +class FloatArray : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.schema.FloatArray) */ { + public: + FloatArray(); + virtual ~FloatArray(); + + FloatArray(const FloatArray& from); + FloatArray(FloatArray&& from) noexcept + : FloatArray() { + *this = ::std::move(from); + } + + inline FloatArray& operator=(const FloatArray& from) { + CopyFrom(from); + return *this; + } + inline FloatArray& operator=(FloatArray&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const FloatArray& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FloatArray* internal_default_instance() { + return reinterpret_cast( + &_FloatArray_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(FloatArray& a, FloatArray& b) { + a.Swap(&b); + } + inline void Swap(FloatArray* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline FloatArray* New() const final { + return CreateMaybeMessage(nullptr); + } + + FloatArray* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const FloatArray& from); + void MergeFrom(const FloatArray& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FloatArray* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.schema.FloatArray"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_2eproto); + return ::descriptor_table_schema_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDataFieldNumber = 1, + }; + // repeated float data = 1; + int data_size() const; + void clear_data(); + float data(int index) const; + void set_data(int index, float value); + void add_data(float value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* + mutable_data(); + + // @@protoc_insertion_point(class_scope:milvus.proto.schema.FloatArray) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > data_; + mutable std::atomic _data_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_schema_2eproto; +}; +// ------------------------------------------------------------------- + +class DoubleArray : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.schema.DoubleArray) */ { + public: + DoubleArray(); + virtual ~DoubleArray(); + + DoubleArray(const DoubleArray& from); + DoubleArray(DoubleArray&& from) noexcept + : DoubleArray() { + *this = ::std::move(from); + } + + inline DoubleArray& operator=(const DoubleArray& from) { + CopyFrom(from); + return *this; + } + inline DoubleArray& operator=(DoubleArray&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const DoubleArray& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DoubleArray* internal_default_instance() { + return reinterpret_cast( + &_DoubleArray_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(DoubleArray& a, DoubleArray& b) { + a.Swap(&b); + } + inline void Swap(DoubleArray* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DoubleArray* New() const final { + return CreateMaybeMessage(nullptr); + } + + DoubleArray* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DoubleArray& from); + void MergeFrom(const DoubleArray& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DoubleArray* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.schema.DoubleArray"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_2eproto); + return ::descriptor_table_schema_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDataFieldNumber = 1, + }; + // repeated double data = 1; + int data_size() const; + void clear_data(); + double data(int index) const; + void set_data(int index, double value); + void add_data(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_data(); + + // @@protoc_insertion_point(class_scope:milvus.proto.schema.DoubleArray) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > data_; + mutable std::atomic _data_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_schema_2eproto; +}; +// ------------------------------------------------------------------- + +class BytesArray : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.schema.BytesArray) */ { + public: + BytesArray(); + virtual ~BytesArray(); + + BytesArray(const BytesArray& from); + BytesArray(BytesArray&& from) noexcept + : BytesArray() { + *this = ::std::move(from); + } + + inline BytesArray& operator=(const BytesArray& from) { + CopyFrom(from); + return *this; + } + inline BytesArray& operator=(BytesArray&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const BytesArray& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BytesArray* internal_default_instance() { + return reinterpret_cast( + &_BytesArray_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(BytesArray& a, BytesArray& b) { + a.Swap(&b); + } + inline void Swap(BytesArray* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline BytesArray* New() const final { + return CreateMaybeMessage(nullptr); + } + + BytesArray* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const BytesArray& from); + void MergeFrom(const BytesArray& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BytesArray* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.schema.BytesArray"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_2eproto); + return ::descriptor_table_schema_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDataFieldNumber = 1, + }; + // repeated bytes data = 1; + int data_size() const; + void clear_data(); + const std::string& data(int index) const; + std::string* mutable_data(int index); + void set_data(int index, const std::string& value); + void set_data(int index, std::string&& value); + void set_data(int index, const char* value); + void set_data(int index, const void* value, size_t size); + std::string* add_data(); + void add_data(const std::string& value); + void add_data(std::string&& value); + void add_data(const char* value); + void add_data(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_data(); + + // @@protoc_insertion_point(class_scope:milvus.proto.schema.BytesArray) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_schema_2eproto; +}; +// ------------------------------------------------------------------- + +class StringArray : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.schema.StringArray) */ { + public: + StringArray(); + virtual ~StringArray(); + + StringArray(const StringArray& from); + StringArray(StringArray&& from) noexcept + : StringArray() { + *this = ::std::move(from); + } + + inline StringArray& operator=(const StringArray& from) { + CopyFrom(from); + return *this; + } + inline StringArray& operator=(StringArray&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const StringArray& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StringArray* internal_default_instance() { + return reinterpret_cast( + &_StringArray_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(StringArray& a, StringArray& b) { + a.Swap(&b); + } + inline void Swap(StringArray* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline StringArray* New() const final { + return CreateMaybeMessage(nullptr); + } + + StringArray* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const StringArray& from); + void MergeFrom(const StringArray& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StringArray* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.schema.StringArray"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_2eproto); + return ::descriptor_table_schema_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDataFieldNumber = 1, + }; + // repeated string data = 1; + int data_size() const; + void clear_data(); + const std::string& data(int index) const; + std::string* mutable_data(int index); + void set_data(int index, const std::string& value); + void set_data(int index, std::string&& value); + void set_data(int index, const char* value); + void set_data(int index, const char* value, size_t size); + std::string* add_data(); + void add_data(const std::string& value); + void add_data(std::string&& value); + void add_data(const char* value); + void add_data(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& data() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_data(); + + // @@protoc_insertion_point(class_scope:milvus.proto.schema.StringArray) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_schema_2eproto; +}; +// ------------------------------------------------------------------- + +class ScalarField : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.schema.ScalarField) */ { + public: + ScalarField(); + virtual ~ScalarField(); + + ScalarField(const ScalarField& from); + ScalarField(ScalarField&& from) noexcept + : ScalarField() { + *this = ::std::move(from); + } + + inline ScalarField& operator=(const ScalarField& from) { + CopyFrom(from); + return *this; + } + inline ScalarField& operator=(ScalarField&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ScalarField& default_instance(); + + enum DataCase { + kBoolData = 1, + kIntData = 2, + kLongData = 3, + kFloatData = 4, + kDoubleData = 5, + kStringData = 6, + kBytesData = 7, + DATA_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ScalarField* internal_default_instance() { + return reinterpret_cast( + &_ScalarField_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(ScalarField& a, ScalarField& b) { + a.Swap(&b); + } + inline void Swap(ScalarField* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ScalarField* New() const final { + return CreateMaybeMessage(nullptr); + } + + ScalarField* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ScalarField& from); + void MergeFrom(const ScalarField& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ScalarField* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.schema.ScalarField"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_2eproto); + return ::descriptor_table_schema_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBoolDataFieldNumber = 1, + kIntDataFieldNumber = 2, + kLongDataFieldNumber = 3, + kFloatDataFieldNumber = 4, + kDoubleDataFieldNumber = 5, + kStringDataFieldNumber = 6, + kBytesDataFieldNumber = 7, + }; + // .milvus.proto.schema.BoolArray bool_data = 1; + bool has_bool_data() const; + void clear_bool_data(); + const ::milvus::proto::schema::BoolArray& bool_data() const; + ::milvus::proto::schema::BoolArray* release_bool_data(); + ::milvus::proto::schema::BoolArray* mutable_bool_data(); + void set_allocated_bool_data(::milvus::proto::schema::BoolArray* bool_data); + + // .milvus.proto.schema.IntArray int_data = 2; + bool has_int_data() const; + void clear_int_data(); + const ::milvus::proto::schema::IntArray& int_data() const; + ::milvus::proto::schema::IntArray* release_int_data(); + ::milvus::proto::schema::IntArray* mutable_int_data(); + void set_allocated_int_data(::milvus::proto::schema::IntArray* int_data); + + // .milvus.proto.schema.LongArray long_data = 3; + bool has_long_data() const; + void clear_long_data(); + const ::milvus::proto::schema::LongArray& long_data() const; + ::milvus::proto::schema::LongArray* release_long_data(); + ::milvus::proto::schema::LongArray* mutable_long_data(); + void set_allocated_long_data(::milvus::proto::schema::LongArray* long_data); + + // .milvus.proto.schema.FloatArray float_data = 4; + bool has_float_data() const; + void clear_float_data(); + const ::milvus::proto::schema::FloatArray& float_data() const; + ::milvus::proto::schema::FloatArray* release_float_data(); + ::milvus::proto::schema::FloatArray* mutable_float_data(); + void set_allocated_float_data(::milvus::proto::schema::FloatArray* float_data); + + // .milvus.proto.schema.DoubleArray double_data = 5; + bool has_double_data() const; + void clear_double_data(); + const ::milvus::proto::schema::DoubleArray& double_data() const; + ::milvus::proto::schema::DoubleArray* release_double_data(); + ::milvus::proto::schema::DoubleArray* mutable_double_data(); + void set_allocated_double_data(::milvus::proto::schema::DoubleArray* double_data); + + // .milvus.proto.schema.StringArray string_data = 6; + bool has_string_data() const; + void clear_string_data(); + const ::milvus::proto::schema::StringArray& string_data() const; + ::milvus::proto::schema::StringArray* release_string_data(); + ::milvus::proto::schema::StringArray* mutable_string_data(); + void set_allocated_string_data(::milvus::proto::schema::StringArray* string_data); + + // .milvus.proto.schema.BytesArray bytes_data = 7; + bool has_bytes_data() const; + void clear_bytes_data(); + const ::milvus::proto::schema::BytesArray& bytes_data() const; + ::milvus::proto::schema::BytesArray* release_bytes_data(); + ::milvus::proto::schema::BytesArray* mutable_bytes_data(); + void set_allocated_bytes_data(::milvus::proto::schema::BytesArray* bytes_data); + + void clear_data(); + DataCase data_case() const; + // @@protoc_insertion_point(class_scope:milvus.proto.schema.ScalarField) + private: + class _Internal; + void set_has_bool_data(); + void set_has_int_data(); + void set_has_long_data(); + void set_has_float_data(); + void set_has_double_data(); + void set_has_string_data(); + void set_has_bytes_data(); + + inline bool has_data() const; + inline void clear_has_data(); + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + union DataUnion { + DataUnion() {} + ::milvus::proto::schema::BoolArray* bool_data_; + ::milvus::proto::schema::IntArray* int_data_; + ::milvus::proto::schema::LongArray* long_data_; + ::milvus::proto::schema::FloatArray* float_data_; + ::milvus::proto::schema::DoubleArray* double_data_; + ::milvus::proto::schema::StringArray* string_data_; + ::milvus::proto::schema::BytesArray* bytes_data_; + } data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_schema_2eproto; +}; +// ------------------------------------------------------------------- + +class VectorField : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.schema.VectorField) */ { + public: + VectorField(); + virtual ~VectorField(); + + VectorField(const VectorField& from); + VectorField(VectorField&& from) noexcept + : VectorField() { + *this = ::std::move(from); + } + + inline VectorField& operator=(const VectorField& from) { + CopyFrom(from); + return *this; + } + inline VectorField& operator=(VectorField&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const VectorField& default_instance(); + + enum DataCase { + kFloatVector = 2, + kBinaryVector = 3, + DATA_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VectorField* internal_default_instance() { + return reinterpret_cast( + &_VectorField_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(VectorField& a, VectorField& b) { + a.Swap(&b); + } + inline void Swap(VectorField* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline VectorField* New() const final { + return CreateMaybeMessage(nullptr); + } + + VectorField* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const VectorField& from); + void MergeFrom(const VectorField& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(VectorField* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.schema.VectorField"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_2eproto); + return ::descriptor_table_schema_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDimFieldNumber = 1, + kFloatVectorFieldNumber = 2, + kBinaryVectorFieldNumber = 3, + }; + // int64 dim = 1; + void clear_dim(); + ::PROTOBUF_NAMESPACE_ID::int64 dim() const; + void set_dim(::PROTOBUF_NAMESPACE_ID::int64 value); + + // .milvus.proto.schema.FloatArray float_vector = 2; + bool has_float_vector() const; + void clear_float_vector(); + const ::milvus::proto::schema::FloatArray& float_vector() const; + ::milvus::proto::schema::FloatArray* release_float_vector(); + ::milvus::proto::schema::FloatArray* mutable_float_vector(); + void set_allocated_float_vector(::milvus::proto::schema::FloatArray* float_vector); + + // bytes binary_vector = 3; + private: + bool has_binary_vector() const; + public: + void clear_binary_vector(); + const std::string& binary_vector() const; + void set_binary_vector(const std::string& value); + void set_binary_vector(std::string&& value); + void set_binary_vector(const char* value); + void set_binary_vector(const void* value, size_t size); + std::string* mutable_binary_vector(); + std::string* release_binary_vector(); + void set_allocated_binary_vector(std::string* binary_vector); + + void clear_data(); + DataCase data_case() const; + // @@protoc_insertion_point(class_scope:milvus.proto.schema.VectorField) + private: + class _Internal; + void set_has_float_vector(); + void set_has_binary_vector(); + + inline bool has_data() const; + inline void clear_has_data(); + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::int64 dim_; + union DataUnion { + DataUnion() {} + ::milvus::proto::schema::FloatArray* float_vector_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr binary_vector_; + } data_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_schema_2eproto; +}; +// ------------------------------------------------------------------- + +class FieldData : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.schema.FieldData) */ { + public: + FieldData(); + virtual ~FieldData(); + + FieldData(const FieldData& from); + FieldData(FieldData&& from) noexcept + : FieldData() { + *this = ::std::move(from); + } + + inline FieldData& operator=(const FieldData& from) { + CopyFrom(from); + return *this; + } + inline FieldData& operator=(FieldData&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const FieldData& default_instance(); + + enum FieldCase { + kScalars = 3, + kVectors = 4, + FIELD_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FieldData* internal_default_instance() { + return reinterpret_cast( + &_FieldData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(FieldData& a, FieldData& b) { + a.Swap(&b); + } + inline void Swap(FieldData* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline FieldData* New() const final { + return CreateMaybeMessage(nullptr); + } + + FieldData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const FieldData& from); + void MergeFrom(const FieldData& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FieldData* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.schema.FieldData"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_2eproto); + return ::descriptor_table_schema_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kFieldNameFieldNumber = 2, + kTypeFieldNumber = 1, + kScalarsFieldNumber = 3, + kVectorsFieldNumber = 4, + }; + // string field_name = 2; + void clear_field_name(); + const std::string& field_name() const; + void set_field_name(const std::string& value); + void set_field_name(std::string&& value); + void set_field_name(const char* value); + void set_field_name(const char* value, size_t size); + std::string* mutable_field_name(); + std::string* release_field_name(); + void set_allocated_field_name(std::string* field_name); + + // .milvus.proto.schema.DataType type = 1; + void clear_type(); + ::milvus::proto::schema::DataType type() const; + void set_type(::milvus::proto::schema::DataType value); + + // .milvus.proto.schema.ScalarField scalars = 3; + bool has_scalars() const; + void clear_scalars(); + const ::milvus::proto::schema::ScalarField& scalars() const; + ::milvus::proto::schema::ScalarField* release_scalars(); + ::milvus::proto::schema::ScalarField* mutable_scalars(); + void set_allocated_scalars(::milvus::proto::schema::ScalarField* scalars); + + // .milvus.proto.schema.VectorField vectors = 4; + bool has_vectors() const; + void clear_vectors(); + const ::milvus::proto::schema::VectorField& vectors() const; + ::milvus::proto::schema::VectorField* release_vectors(); + ::milvus::proto::schema::VectorField* mutable_vectors(); + void set_allocated_vectors(::milvus::proto::schema::VectorField* vectors); + + void clear_field(); + FieldCase field_case() const; + // @@protoc_insertion_point(class_scope:milvus.proto.schema.FieldData) + private: + class _Internal; + void set_has_scalars(); + void set_has_vectors(); + + inline bool has_field() const; + inline void clear_has_field(); + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; + int type_; + union FieldUnion { + FieldUnion() {} + ::milvus::proto::schema::ScalarField* scalars_; + ::milvus::proto::schema::VectorField* vectors_; + } field_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_schema_2eproto; +}; +// ------------------------------------------------------------------- + +class IDs : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.schema.IDs) */ { + public: + IDs(); + virtual ~IDs(); + + IDs(const IDs& from); + IDs(IDs&& from) noexcept + : IDs() { + *this = ::std::move(from); + } + + inline IDs& operator=(const IDs& from) { + CopyFrom(from); + return *this; + } + inline IDs& operator=(IDs&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const IDs& default_instance(); + + enum IdFieldCase { + kIntId = 1, + kStrId = 2, + ID_FIELD_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IDs* internal_default_instance() { + return reinterpret_cast( + &_IDs_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(IDs& a, IDs& b) { + a.Swap(&b); + } + inline void Swap(IDs* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline IDs* New() const final { + return CreateMaybeMessage(nullptr); + } + + IDs* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const IDs& from); + void MergeFrom(const IDs& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IDs* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.schema.IDs"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_2eproto); + return ::descriptor_table_schema_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIntIdFieldNumber = 1, + kStrIdFieldNumber = 2, + }; + // .milvus.proto.schema.LongArray int_id = 1; + bool has_int_id() const; + void clear_int_id(); + const ::milvus::proto::schema::LongArray& int_id() const; + ::milvus::proto::schema::LongArray* release_int_id(); + ::milvus::proto::schema::LongArray* mutable_int_id(); + void set_allocated_int_id(::milvus::proto::schema::LongArray* int_id); + + // .milvus.proto.schema.StringArray str_id = 2; + bool has_str_id() const; + void clear_str_id(); + const ::milvus::proto::schema::StringArray& str_id() const; + ::milvus::proto::schema::StringArray* release_str_id(); + ::milvus::proto::schema::StringArray* mutable_str_id(); + void set_allocated_str_id(::milvus::proto::schema::StringArray* str_id); + + void clear_id_field(); + IdFieldCase id_field_case() const; + // @@protoc_insertion_point(class_scope:milvus.proto.schema.IDs) + private: + class _Internal; + void set_has_int_id(); + void set_has_str_id(); + + inline bool has_id_field() const; + inline void clear_has_id_field(); + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + union IdFieldUnion { + IdFieldUnion() {} + ::milvus::proto::schema::LongArray* int_id_; + ::milvus::proto::schema::StringArray* str_id_; + } id_field_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_schema_2eproto; +}; // =================================================================== @@ -836,11 +2597,1054 @@ CollectionSchema::fields() const { return fields_; } +// ------------------------------------------------------------------- + +// BoolArray + +// repeated bool data = 1; +inline int BoolArray::data_size() const { + return data_.size(); +} +inline void BoolArray::clear_data() { + data_.Clear(); +} +inline bool BoolArray::data(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.BoolArray.data) + return data_.Get(index); +} +inline void BoolArray::set_data(int index, bool value) { + data_.Set(index, value); + // @@protoc_insertion_point(field_set:milvus.proto.schema.BoolArray.data) +} +inline void BoolArray::add_data(bool value) { + data_.Add(value); + // @@protoc_insertion_point(field_add:milvus.proto.schema.BoolArray.data) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& +BoolArray::data() const { + // @@protoc_insertion_point(field_list:milvus.proto.schema.BoolArray.data) + return data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* +BoolArray::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.schema.BoolArray.data) + return &data_; +} + +// ------------------------------------------------------------------- + +// IntArray + +// repeated int32 data = 1; +inline int IntArray::data_size() const { + return data_.size(); +} +inline void IntArray::clear_data() { + data_.Clear(); +} +inline ::PROTOBUF_NAMESPACE_ID::int32 IntArray::data(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.IntArray.data) + return data_.Get(index); +} +inline void IntArray::set_data(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) { + data_.Set(index, value); + // @@protoc_insertion_point(field_set:milvus.proto.schema.IntArray.data) +} +inline void IntArray::add_data(::PROTOBUF_NAMESPACE_ID::int32 value) { + data_.Add(value); + // @@protoc_insertion_point(field_add:milvus.proto.schema.IntArray.data) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& +IntArray::data() const { + // @@protoc_insertion_point(field_list:milvus.proto.schema.IntArray.data) + return data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* +IntArray::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.schema.IntArray.data) + return &data_; +} + +// ------------------------------------------------------------------- + +// LongArray + +// repeated int64 data = 1; +inline int LongArray::data_size() const { + return data_.size(); +} +inline void LongArray::clear_data() { + data_.Clear(); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 LongArray::data(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.LongArray.data) + return data_.Get(index); +} +inline void LongArray::set_data(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { + data_.Set(index, value); + // @@protoc_insertion_point(field_set:milvus.proto.schema.LongArray.data) +} +inline void LongArray::add_data(::PROTOBUF_NAMESPACE_ID::int64 value) { + data_.Add(value); + // @@protoc_insertion_point(field_add:milvus.proto.schema.LongArray.data) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& +LongArray::data() const { + // @@protoc_insertion_point(field_list:milvus.proto.schema.LongArray.data) + return data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* +LongArray::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.schema.LongArray.data) + return &data_; +} + +// ------------------------------------------------------------------- + +// FloatArray + +// repeated float data = 1; +inline int FloatArray::data_size() const { + return data_.size(); +} +inline void FloatArray::clear_data() { + data_.Clear(); +} +inline float FloatArray::data(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.FloatArray.data) + return data_.Get(index); +} +inline void FloatArray::set_data(int index, float value) { + data_.Set(index, value); + // @@protoc_insertion_point(field_set:milvus.proto.schema.FloatArray.data) +} +inline void FloatArray::add_data(float value) { + data_.Add(value); + // @@protoc_insertion_point(field_add:milvus.proto.schema.FloatArray.data) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& +FloatArray::data() const { + // @@protoc_insertion_point(field_list:milvus.proto.schema.FloatArray.data) + return data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* +FloatArray::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.schema.FloatArray.data) + return &data_; +} + +// ------------------------------------------------------------------- + +// DoubleArray + +// repeated double data = 1; +inline int DoubleArray::data_size() const { + return data_.size(); +} +inline void DoubleArray::clear_data() { + data_.Clear(); +} +inline double DoubleArray::data(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.DoubleArray.data) + return data_.Get(index); +} +inline void DoubleArray::set_data(int index, double value) { + data_.Set(index, value); + // @@protoc_insertion_point(field_set:milvus.proto.schema.DoubleArray.data) +} +inline void DoubleArray::add_data(double value) { + data_.Add(value); + // @@protoc_insertion_point(field_add:milvus.proto.schema.DoubleArray.data) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +DoubleArray::data() const { + // @@protoc_insertion_point(field_list:milvus.proto.schema.DoubleArray.data) + return data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +DoubleArray::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.schema.DoubleArray.data) + return &data_; +} + +// ------------------------------------------------------------------- + +// BytesArray + +// repeated bytes data = 1; +inline int BytesArray::data_size() const { + return data_.size(); +} +inline void BytesArray::clear_data() { + data_.Clear(); +} +inline const std::string& BytesArray::data(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.BytesArray.data) + return data_.Get(index); +} +inline std::string* BytesArray::mutable_data(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.BytesArray.data) + return data_.Mutable(index); +} +inline void BytesArray::set_data(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.schema.BytesArray.data) + data_.Mutable(index)->assign(value); +} +inline void BytesArray::set_data(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.schema.BytesArray.data) + data_.Mutable(index)->assign(std::move(value)); +} +inline void BytesArray::set_data(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + data_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.schema.BytesArray.data) +} +inline void BytesArray::set_data(int index, const void* value, size_t size) { + data_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.schema.BytesArray.data) +} +inline std::string* BytesArray::add_data() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.schema.BytesArray.data) + return data_.Add(); +} +inline void BytesArray::add_data(const std::string& value) { + data_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.schema.BytesArray.data) +} +inline void BytesArray::add_data(std::string&& value) { + data_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.schema.BytesArray.data) +} +inline void BytesArray::add_data(const char* value) { + GOOGLE_DCHECK(value != nullptr); + data_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.schema.BytesArray.data) +} +inline void BytesArray::add_data(const void* value, size_t size) { + data_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.schema.BytesArray.data) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +BytesArray::data() const { + // @@protoc_insertion_point(field_list:milvus.proto.schema.BytesArray.data) + return data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +BytesArray::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.schema.BytesArray.data) + return &data_; +} + +// ------------------------------------------------------------------- + +// StringArray + +// repeated string data = 1; +inline int StringArray::data_size() const { + return data_.size(); +} +inline void StringArray::clear_data() { + data_.Clear(); +} +inline const std::string& StringArray::data(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.StringArray.data) + return data_.Get(index); +} +inline std::string* StringArray::mutable_data(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.StringArray.data) + return data_.Mutable(index); +} +inline void StringArray::set_data(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.schema.StringArray.data) + data_.Mutable(index)->assign(value); +} +inline void StringArray::set_data(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.schema.StringArray.data) + data_.Mutable(index)->assign(std::move(value)); +} +inline void StringArray::set_data(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + data_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.schema.StringArray.data) +} +inline void StringArray::set_data(int index, const char* value, size_t size) { + data_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.schema.StringArray.data) +} +inline std::string* StringArray::add_data() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.schema.StringArray.data) + return data_.Add(); +} +inline void StringArray::add_data(const std::string& value) { + data_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.schema.StringArray.data) +} +inline void StringArray::add_data(std::string&& value) { + data_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.schema.StringArray.data) +} +inline void StringArray::add_data(const char* value) { + GOOGLE_DCHECK(value != nullptr); + data_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.schema.StringArray.data) +} +inline void StringArray::add_data(const char* value, size_t size) { + data_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.schema.StringArray.data) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +StringArray::data() const { + // @@protoc_insertion_point(field_list:milvus.proto.schema.StringArray.data) + return data_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +StringArray::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.schema.StringArray.data) + return &data_; +} + +// ------------------------------------------------------------------- + +// ScalarField + +// .milvus.proto.schema.BoolArray bool_data = 1; +inline bool ScalarField::has_bool_data() const { + return data_case() == kBoolData; +} +inline void ScalarField::set_has_bool_data() { + _oneof_case_[0] = kBoolData; +} +inline void ScalarField::clear_bool_data() { + if (has_bool_data()) { + delete data_.bool_data_; + clear_has_data(); + } +} +inline ::milvus::proto::schema::BoolArray* ScalarField::release_bool_data() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.ScalarField.bool_data) + if (has_bool_data()) { + clear_has_data(); + ::milvus::proto::schema::BoolArray* temp = data_.bool_data_; + data_.bool_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::proto::schema::BoolArray& ScalarField::bool_data() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.ScalarField.bool_data) + return has_bool_data() + ? *data_.bool_data_ + : *reinterpret_cast< ::milvus::proto::schema::BoolArray*>(&::milvus::proto::schema::_BoolArray_default_instance_); +} +inline ::milvus::proto::schema::BoolArray* ScalarField::mutable_bool_data() { + if (!has_bool_data()) { + clear_data(); + set_has_bool_data(); + data_.bool_data_ = CreateMaybeMessage< ::milvus::proto::schema::BoolArray >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.ScalarField.bool_data) + return data_.bool_data_; +} + +// .milvus.proto.schema.IntArray int_data = 2; +inline bool ScalarField::has_int_data() const { + return data_case() == kIntData; +} +inline void ScalarField::set_has_int_data() { + _oneof_case_[0] = kIntData; +} +inline void ScalarField::clear_int_data() { + if (has_int_data()) { + delete data_.int_data_; + clear_has_data(); + } +} +inline ::milvus::proto::schema::IntArray* ScalarField::release_int_data() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.ScalarField.int_data) + if (has_int_data()) { + clear_has_data(); + ::milvus::proto::schema::IntArray* temp = data_.int_data_; + data_.int_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::proto::schema::IntArray& ScalarField::int_data() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.ScalarField.int_data) + return has_int_data() + ? *data_.int_data_ + : *reinterpret_cast< ::milvus::proto::schema::IntArray*>(&::milvus::proto::schema::_IntArray_default_instance_); +} +inline ::milvus::proto::schema::IntArray* ScalarField::mutable_int_data() { + if (!has_int_data()) { + clear_data(); + set_has_int_data(); + data_.int_data_ = CreateMaybeMessage< ::milvus::proto::schema::IntArray >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.ScalarField.int_data) + return data_.int_data_; +} + +// .milvus.proto.schema.LongArray long_data = 3; +inline bool ScalarField::has_long_data() const { + return data_case() == kLongData; +} +inline void ScalarField::set_has_long_data() { + _oneof_case_[0] = kLongData; +} +inline void ScalarField::clear_long_data() { + if (has_long_data()) { + delete data_.long_data_; + clear_has_data(); + } +} +inline ::milvus::proto::schema::LongArray* ScalarField::release_long_data() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.ScalarField.long_data) + if (has_long_data()) { + clear_has_data(); + ::milvus::proto::schema::LongArray* temp = data_.long_data_; + data_.long_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::proto::schema::LongArray& ScalarField::long_data() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.ScalarField.long_data) + return has_long_data() + ? *data_.long_data_ + : *reinterpret_cast< ::milvus::proto::schema::LongArray*>(&::milvus::proto::schema::_LongArray_default_instance_); +} +inline ::milvus::proto::schema::LongArray* ScalarField::mutable_long_data() { + if (!has_long_data()) { + clear_data(); + set_has_long_data(); + data_.long_data_ = CreateMaybeMessage< ::milvus::proto::schema::LongArray >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.ScalarField.long_data) + return data_.long_data_; +} + +// .milvus.proto.schema.FloatArray float_data = 4; +inline bool ScalarField::has_float_data() const { + return data_case() == kFloatData; +} +inline void ScalarField::set_has_float_data() { + _oneof_case_[0] = kFloatData; +} +inline void ScalarField::clear_float_data() { + if (has_float_data()) { + delete data_.float_data_; + clear_has_data(); + } +} +inline ::milvus::proto::schema::FloatArray* ScalarField::release_float_data() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.ScalarField.float_data) + if (has_float_data()) { + clear_has_data(); + ::milvus::proto::schema::FloatArray* temp = data_.float_data_; + data_.float_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::proto::schema::FloatArray& ScalarField::float_data() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.ScalarField.float_data) + return has_float_data() + ? *data_.float_data_ + : *reinterpret_cast< ::milvus::proto::schema::FloatArray*>(&::milvus::proto::schema::_FloatArray_default_instance_); +} +inline ::milvus::proto::schema::FloatArray* ScalarField::mutable_float_data() { + if (!has_float_data()) { + clear_data(); + set_has_float_data(); + data_.float_data_ = CreateMaybeMessage< ::milvus::proto::schema::FloatArray >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.ScalarField.float_data) + return data_.float_data_; +} + +// .milvus.proto.schema.DoubleArray double_data = 5; +inline bool ScalarField::has_double_data() const { + return data_case() == kDoubleData; +} +inline void ScalarField::set_has_double_data() { + _oneof_case_[0] = kDoubleData; +} +inline void ScalarField::clear_double_data() { + if (has_double_data()) { + delete data_.double_data_; + clear_has_data(); + } +} +inline ::milvus::proto::schema::DoubleArray* ScalarField::release_double_data() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.ScalarField.double_data) + if (has_double_data()) { + clear_has_data(); + ::milvus::proto::schema::DoubleArray* temp = data_.double_data_; + data_.double_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::proto::schema::DoubleArray& ScalarField::double_data() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.ScalarField.double_data) + return has_double_data() + ? *data_.double_data_ + : *reinterpret_cast< ::milvus::proto::schema::DoubleArray*>(&::milvus::proto::schema::_DoubleArray_default_instance_); +} +inline ::milvus::proto::schema::DoubleArray* ScalarField::mutable_double_data() { + if (!has_double_data()) { + clear_data(); + set_has_double_data(); + data_.double_data_ = CreateMaybeMessage< ::milvus::proto::schema::DoubleArray >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.ScalarField.double_data) + return data_.double_data_; +} + +// .milvus.proto.schema.StringArray string_data = 6; +inline bool ScalarField::has_string_data() const { + return data_case() == kStringData; +} +inline void ScalarField::set_has_string_data() { + _oneof_case_[0] = kStringData; +} +inline void ScalarField::clear_string_data() { + if (has_string_data()) { + delete data_.string_data_; + clear_has_data(); + } +} +inline ::milvus::proto::schema::StringArray* ScalarField::release_string_data() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.ScalarField.string_data) + if (has_string_data()) { + clear_has_data(); + ::milvus::proto::schema::StringArray* temp = data_.string_data_; + data_.string_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::proto::schema::StringArray& ScalarField::string_data() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.ScalarField.string_data) + return has_string_data() + ? *data_.string_data_ + : *reinterpret_cast< ::milvus::proto::schema::StringArray*>(&::milvus::proto::schema::_StringArray_default_instance_); +} +inline ::milvus::proto::schema::StringArray* ScalarField::mutable_string_data() { + if (!has_string_data()) { + clear_data(); + set_has_string_data(); + data_.string_data_ = CreateMaybeMessage< ::milvus::proto::schema::StringArray >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.ScalarField.string_data) + return data_.string_data_; +} + +// .milvus.proto.schema.BytesArray bytes_data = 7; +inline bool ScalarField::has_bytes_data() const { + return data_case() == kBytesData; +} +inline void ScalarField::set_has_bytes_data() { + _oneof_case_[0] = kBytesData; +} +inline void ScalarField::clear_bytes_data() { + if (has_bytes_data()) { + delete data_.bytes_data_; + clear_has_data(); + } +} +inline ::milvus::proto::schema::BytesArray* ScalarField::release_bytes_data() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.ScalarField.bytes_data) + if (has_bytes_data()) { + clear_has_data(); + ::milvus::proto::schema::BytesArray* temp = data_.bytes_data_; + data_.bytes_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::proto::schema::BytesArray& ScalarField::bytes_data() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.ScalarField.bytes_data) + return has_bytes_data() + ? *data_.bytes_data_ + : *reinterpret_cast< ::milvus::proto::schema::BytesArray*>(&::milvus::proto::schema::_BytesArray_default_instance_); +} +inline ::milvus::proto::schema::BytesArray* ScalarField::mutable_bytes_data() { + if (!has_bytes_data()) { + clear_data(); + set_has_bytes_data(); + data_.bytes_data_ = CreateMaybeMessage< ::milvus::proto::schema::BytesArray >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.ScalarField.bytes_data) + return data_.bytes_data_; +} + +inline bool ScalarField::has_data() const { + return data_case() != DATA_NOT_SET; +} +inline void ScalarField::clear_has_data() { + _oneof_case_[0] = DATA_NOT_SET; +} +inline ScalarField::DataCase ScalarField::data_case() const { + return ScalarField::DataCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// VectorField + +// int64 dim = 1; +inline void VectorField::clear_dim() { + dim_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 VectorField::dim() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.VectorField.dim) + return dim_; +} +inline void VectorField::set_dim(::PROTOBUF_NAMESPACE_ID::int64 value) { + + dim_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.schema.VectorField.dim) +} + +// .milvus.proto.schema.FloatArray float_vector = 2; +inline bool VectorField::has_float_vector() const { + return data_case() == kFloatVector; +} +inline void VectorField::set_has_float_vector() { + _oneof_case_[0] = kFloatVector; +} +inline void VectorField::clear_float_vector() { + if (has_float_vector()) { + delete data_.float_vector_; + clear_has_data(); + } +} +inline ::milvus::proto::schema::FloatArray* VectorField::release_float_vector() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.VectorField.float_vector) + if (has_float_vector()) { + clear_has_data(); + ::milvus::proto::schema::FloatArray* temp = data_.float_vector_; + data_.float_vector_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::proto::schema::FloatArray& VectorField::float_vector() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.VectorField.float_vector) + return has_float_vector() + ? *data_.float_vector_ + : *reinterpret_cast< ::milvus::proto::schema::FloatArray*>(&::milvus::proto::schema::_FloatArray_default_instance_); +} +inline ::milvus::proto::schema::FloatArray* VectorField::mutable_float_vector() { + if (!has_float_vector()) { + clear_data(); + set_has_float_vector(); + data_.float_vector_ = CreateMaybeMessage< ::milvus::proto::schema::FloatArray >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.VectorField.float_vector) + return data_.float_vector_; +} + +// bytes binary_vector = 3; +inline bool VectorField::has_binary_vector() const { + return data_case() == kBinaryVector; +} +inline void VectorField::set_has_binary_vector() { + _oneof_case_[0] = kBinaryVector; +} +inline void VectorField::clear_binary_vector() { + if (has_binary_vector()) { + data_.binary_vector_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + clear_has_data(); + } +} +inline const std::string& VectorField::binary_vector() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.VectorField.binary_vector) + if (has_binary_vector()) { + return data_.binary_vector_.GetNoArena(); + } + return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void VectorField::set_binary_vector(const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.schema.VectorField.binary_vector) + if (!has_binary_vector()) { + clear_data(); + set_has_binary_vector(); + data_.binary_vector_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + data_.binary_vector_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.schema.VectorField.binary_vector) +} +inline void VectorField::set_binary_vector(std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.schema.VectorField.binary_vector) + if (!has_binary_vector()) { + clear_data(); + set_has_binary_vector(); + data_.binary_vector_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + data_.binary_vector_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.schema.VectorField.binary_vector) +} +inline void VectorField::set_binary_vector(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_binary_vector()) { + clear_data(); + set_has_binary_vector(); + data_.binary_vector_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + data_.binary_vector_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.schema.VectorField.binary_vector) +} +inline void VectorField::set_binary_vector(const void* value, size_t size) { + if (!has_binary_vector()) { + clear_data(); + set_has_binary_vector(); + data_.binary_vector_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + data_.binary_vector_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.schema.VectorField.binary_vector) +} +inline std::string* VectorField::mutable_binary_vector() { + if (!has_binary_vector()) { + clear_data(); + set_has_binary_vector(); + data_.binary_vector_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.VectorField.binary_vector) + return data_.binary_vector_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* VectorField::release_binary_vector() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.VectorField.binary_vector) + if (has_binary_vector()) { + clear_has_data(); + return data_.binary_vector_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void VectorField::set_allocated_binary_vector(std::string* binary_vector) { + if (has_data()) { + clear_data(); + } + if (binary_vector != nullptr) { + set_has_binary_vector(); + data_.binary_vector_.UnsafeSetDefault(binary_vector); + } + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.VectorField.binary_vector) +} + +inline bool VectorField::has_data() const { + return data_case() != DATA_NOT_SET; +} +inline void VectorField::clear_has_data() { + _oneof_case_[0] = DATA_NOT_SET; +} +inline VectorField::DataCase VectorField::data_case() const { + return VectorField::DataCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// FieldData + +// .milvus.proto.schema.DataType type = 1; +inline void FieldData::clear_type() { + type_ = 0; +} +inline ::milvus::proto::schema::DataType FieldData::type() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.FieldData.type) + return static_cast< ::milvus::proto::schema::DataType >(type_); +} +inline void FieldData::set_type(::milvus::proto::schema::DataType value) { + + type_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.schema.FieldData.type) +} + +// string field_name = 2; +inline void FieldData::clear_field_name() { + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& FieldData::field_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.FieldData.field_name) + return field_name_.GetNoArena(); +} +inline void FieldData::set_field_name(const std::string& value) { + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.schema.FieldData.field_name) +} +inline void FieldData::set_field_name(std::string&& value) { + + field_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.schema.FieldData.field_name) +} +inline void FieldData::set_field_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.schema.FieldData.field_name) +} +inline void FieldData::set_field_name(const char* value, size_t size) { + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.schema.FieldData.field_name) +} +inline std::string* FieldData::mutable_field_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.FieldData.field_name) + return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* FieldData::release_field_name() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.FieldData.field_name) + + return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void FieldData::set_allocated_field_name(std::string* field_name) { + if (field_name != nullptr) { + + } else { + + } + field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.FieldData.field_name) +} + +// .milvus.proto.schema.ScalarField scalars = 3; +inline bool FieldData::has_scalars() const { + return field_case() == kScalars; +} +inline void FieldData::set_has_scalars() { + _oneof_case_[0] = kScalars; +} +inline void FieldData::clear_scalars() { + if (has_scalars()) { + delete field_.scalars_; + clear_has_field(); + } +} +inline ::milvus::proto::schema::ScalarField* FieldData::release_scalars() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.FieldData.scalars) + if (has_scalars()) { + clear_has_field(); + ::milvus::proto::schema::ScalarField* temp = field_.scalars_; + field_.scalars_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::proto::schema::ScalarField& FieldData::scalars() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.FieldData.scalars) + return has_scalars() + ? *field_.scalars_ + : *reinterpret_cast< ::milvus::proto::schema::ScalarField*>(&::milvus::proto::schema::_ScalarField_default_instance_); +} +inline ::milvus::proto::schema::ScalarField* FieldData::mutable_scalars() { + if (!has_scalars()) { + clear_field(); + set_has_scalars(); + field_.scalars_ = CreateMaybeMessage< ::milvus::proto::schema::ScalarField >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.FieldData.scalars) + return field_.scalars_; +} + +// .milvus.proto.schema.VectorField vectors = 4; +inline bool FieldData::has_vectors() const { + return field_case() == kVectors; +} +inline void FieldData::set_has_vectors() { + _oneof_case_[0] = kVectors; +} +inline void FieldData::clear_vectors() { + if (has_vectors()) { + delete field_.vectors_; + clear_has_field(); + } +} +inline ::milvus::proto::schema::VectorField* FieldData::release_vectors() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.FieldData.vectors) + if (has_vectors()) { + clear_has_field(); + ::milvus::proto::schema::VectorField* temp = field_.vectors_; + field_.vectors_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::proto::schema::VectorField& FieldData::vectors() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.FieldData.vectors) + return has_vectors() + ? *field_.vectors_ + : *reinterpret_cast< ::milvus::proto::schema::VectorField*>(&::milvus::proto::schema::_VectorField_default_instance_); +} +inline ::milvus::proto::schema::VectorField* FieldData::mutable_vectors() { + if (!has_vectors()) { + clear_field(); + set_has_vectors(); + field_.vectors_ = CreateMaybeMessage< ::milvus::proto::schema::VectorField >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.FieldData.vectors) + return field_.vectors_; +} + +inline bool FieldData::has_field() const { + return field_case() != FIELD_NOT_SET; +} +inline void FieldData::clear_has_field() { + _oneof_case_[0] = FIELD_NOT_SET; +} +inline FieldData::FieldCase FieldData::field_case() const { + return FieldData::FieldCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// IDs + +// .milvus.proto.schema.LongArray int_id = 1; +inline bool IDs::has_int_id() const { + return id_field_case() == kIntId; +} +inline void IDs::set_has_int_id() { + _oneof_case_[0] = kIntId; +} +inline void IDs::clear_int_id() { + if (has_int_id()) { + delete id_field_.int_id_; + clear_has_id_field(); + } +} +inline ::milvus::proto::schema::LongArray* IDs::release_int_id() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.IDs.int_id) + if (has_int_id()) { + clear_has_id_field(); + ::milvus::proto::schema::LongArray* temp = id_field_.int_id_; + id_field_.int_id_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::proto::schema::LongArray& IDs::int_id() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.IDs.int_id) + return has_int_id() + ? *id_field_.int_id_ + : *reinterpret_cast< ::milvus::proto::schema::LongArray*>(&::milvus::proto::schema::_LongArray_default_instance_); +} +inline ::milvus::proto::schema::LongArray* IDs::mutable_int_id() { + if (!has_int_id()) { + clear_id_field(); + set_has_int_id(); + id_field_.int_id_ = CreateMaybeMessage< ::milvus::proto::schema::LongArray >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.IDs.int_id) + return id_field_.int_id_; +} + +// .milvus.proto.schema.StringArray str_id = 2; +inline bool IDs::has_str_id() const { + return id_field_case() == kStrId; +} +inline void IDs::set_has_str_id() { + _oneof_case_[0] = kStrId; +} +inline void IDs::clear_str_id() { + if (has_str_id()) { + delete id_field_.str_id_; + clear_has_id_field(); + } +} +inline ::milvus::proto::schema::StringArray* IDs::release_str_id() { + // @@protoc_insertion_point(field_release:milvus.proto.schema.IDs.str_id) + if (has_str_id()) { + clear_has_id_field(); + ::milvus::proto::schema::StringArray* temp = id_field_.str_id_; + id_field_.str_id_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::milvus::proto::schema::StringArray& IDs::str_id() const { + // @@protoc_insertion_point(field_get:milvus.proto.schema.IDs.str_id) + return has_str_id() + ? *id_field_.str_id_ + : *reinterpret_cast< ::milvus::proto::schema::StringArray*>(&::milvus::proto::schema::_StringArray_default_instance_); +} +inline ::milvus::proto::schema::StringArray* IDs::mutable_str_id() { + if (!has_str_id()) { + clear_id_field(); + set_has_str_id(); + id_field_.str_id_ = CreateMaybeMessage< ::milvus::proto::schema::StringArray >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:milvus.proto.schema.IDs.str_id) + return id_field_.str_id_; +} + +inline bool IDs::has_id_field() const { + return id_field_case() != ID_FIELD_NOT_SET; +} +inline void IDs::clear_has_id_field() { + _oneof_case_[0] = ID_FIELD_NOT_SET; +} +inline IDs::IdFieldCase IDs::id_field_case() const { + return IDs::IdFieldCase(_oneof_case_[0]); +} #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/internal/distributed/proxynode/service.go b/internal/distributed/proxynode/service.go index cbd9f042f6..a8e30aa117 100644 --- a/internal/distributed/proxynode/service.go +++ b/internal/distributed/proxynode/service.go @@ -379,6 +379,10 @@ func (s *Server) Search(ctx context.Context, request *milvuspb.SearchRequest) (* return s.proxynode.Search(ctx, request) } +func (s *Server) Retrieve(ctx context.Context, request *milvuspb.RetrieveRequest) (*milvuspb.RetrieveResults, error) { + return s.proxynode.Retrieve(ctx, request) +} + func (s *Server) Flush(ctx context.Context, request *milvuspb.FlushRequest) (*commonpb.Status, error) { return s.proxynode.Flush(ctx, request) } diff --git a/internal/proto/internal.proto b/internal/proto/internal.proto index 29804de4df..17b42ff1c5 100644 --- a/internal/proto/internal.proto +++ b/internal/proto/internal.proto @@ -3,6 +3,7 @@ package milvus.proto.internal; option go_package = "github.com/milvus-io/milvus/internal/proto/internalpb"; import "common.proto"; +import "schema.proto"; enum StateCode { Initializing = 0; @@ -63,7 +64,7 @@ message CreateCollectionRequest { int64 collectionID = 5; bytes schema = 6; repeated string virtualChannelNames = 7; - repeated string physicalChannelNames= 8; + repeated string physicalChannelNames = 8; } message DropCollectionRequest { @@ -141,6 +142,24 @@ message SearchResults { repeated bytes hits = 5; } +message RetrieveRequest { + common.MsgBase base = 1; + string result_channelID = 2; + int64 dbID = 3; + int64 collectionID = 4; + repeated int64 partitionIDs = 5; + schema.IDs ids = 6; + repeated string output_fields = 7; +} + +message RetrieveResults { + common.MsgBase base = 1; + common.Status status = 2; + string result_channelID = 3; + schema.IDs ids = 4; + repeated schema.FieldData fields_data = 5; +} + message DeleteRequest { common.MsgBase base = 1; string collection_name = 2; diff --git a/internal/proto/internalpb/internal.pb.go b/internal/proto/internalpb/internal.pb.go index c084472627..bf908b80e3 100644 --- a/internal/proto/internalpb/internal.pb.go +++ b/internal/proto/internalpb/internal.pb.go @@ -7,6 +7,7 @@ import ( fmt "fmt" proto "github.com/golang/protobuf/proto" commonpb "github.com/milvus-io/milvus/internal/proto/commonpb" + schemapb "github.com/milvus-io/milvus/internal/proto/schemapb" math "math" ) @@ -1209,6 +1210,164 @@ func (m *SearchResults) GetHits() [][]byte { return nil } +type RetrieveRequest struct { + Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + ResultChannelID string `protobuf:"bytes,2,opt,name=result_channelID,json=resultChannelID,proto3" json:"result_channelID,omitempty"` + DbID int64 `protobuf:"varint,3,opt,name=dbID,proto3" json:"dbID,omitempty"` + CollectionID int64 `protobuf:"varint,4,opt,name=collectionID,proto3" json:"collectionID,omitempty"` + PartitionIDs []int64 `protobuf:"varint,5,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"` + Ids *schemapb.IDs `protobuf:"bytes,6,opt,name=ids,proto3" json:"ids,omitempty"` + OutputFields []string `protobuf:"bytes,7,rep,name=output_fields,json=outputFields,proto3" json:"output_fields,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RetrieveRequest) Reset() { *m = RetrieveRequest{} } +func (m *RetrieveRequest) String() string { return proto.CompactTextString(m) } +func (*RetrieveRequest) ProtoMessage() {} +func (*RetrieveRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_41f4a519b878ee3b, []int{18} +} + +func (m *RetrieveRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RetrieveRequest.Unmarshal(m, b) +} +func (m *RetrieveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RetrieveRequest.Marshal(b, m, deterministic) +} +func (m *RetrieveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetrieveRequest.Merge(m, src) +} +func (m *RetrieveRequest) XXX_Size() int { + return xxx_messageInfo_RetrieveRequest.Size(m) +} +func (m *RetrieveRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RetrieveRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RetrieveRequest proto.InternalMessageInfo + +func (m *RetrieveRequest) GetBase() *commonpb.MsgBase { + if m != nil { + return m.Base + } + return nil +} + +func (m *RetrieveRequest) GetResultChannelID() string { + if m != nil { + return m.ResultChannelID + } + return "" +} + +func (m *RetrieveRequest) GetDbID() int64 { + if m != nil { + return m.DbID + } + return 0 +} + +func (m *RetrieveRequest) GetCollectionID() int64 { + if m != nil { + return m.CollectionID + } + return 0 +} + +func (m *RetrieveRequest) GetPartitionIDs() []int64 { + if m != nil { + return m.PartitionIDs + } + return nil +} + +func (m *RetrieveRequest) GetIds() *schemapb.IDs { + if m != nil { + return m.Ids + } + return nil +} + +func (m *RetrieveRequest) GetOutputFields() []string { + if m != nil { + return m.OutputFields + } + return nil +} + +type RetrieveResults struct { + Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + Status *commonpb.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + ResultChannelID string `protobuf:"bytes,3,opt,name=result_channelID,json=resultChannelID,proto3" json:"result_channelID,omitempty"` + Ids *schemapb.IDs `protobuf:"bytes,4,opt,name=ids,proto3" json:"ids,omitempty"` + FieldsData []*schemapb.FieldData `protobuf:"bytes,5,rep,name=fields_data,json=fieldsData,proto3" json:"fields_data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RetrieveResults) Reset() { *m = RetrieveResults{} } +func (m *RetrieveResults) String() string { return proto.CompactTextString(m) } +func (*RetrieveResults) ProtoMessage() {} +func (*RetrieveResults) Descriptor() ([]byte, []int) { + return fileDescriptor_41f4a519b878ee3b, []int{19} +} + +func (m *RetrieveResults) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RetrieveResults.Unmarshal(m, b) +} +func (m *RetrieveResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RetrieveResults.Marshal(b, m, deterministic) +} +func (m *RetrieveResults) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetrieveResults.Merge(m, src) +} +func (m *RetrieveResults) XXX_Size() int { + return xxx_messageInfo_RetrieveResults.Size(m) +} +func (m *RetrieveResults) XXX_DiscardUnknown() { + xxx_messageInfo_RetrieveResults.DiscardUnknown(m) +} + +var xxx_messageInfo_RetrieveResults proto.InternalMessageInfo + +func (m *RetrieveResults) GetBase() *commonpb.MsgBase { + if m != nil { + return m.Base + } + return nil +} + +func (m *RetrieveResults) GetStatus() *commonpb.Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *RetrieveResults) GetResultChannelID() string { + if m != nil { + return m.ResultChannelID + } + return "" +} + +func (m *RetrieveResults) GetIds() *schemapb.IDs { + if m != nil { + return m.Ids + } + return nil +} + +func (m *RetrieveResults) GetFieldsData() []*schemapb.FieldData { + if m != nil { + return m.FieldsData + } + return nil +} + type DeleteRequest struct { Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` CollectionName string `protobuf:"bytes,2,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` @@ -1224,7 +1383,7 @@ func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } func (*DeleteRequest) ProtoMessage() {} func (*DeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_41f4a519b878ee3b, []int{18} + return fileDescriptor_41f4a519b878ee3b, []int{20} } func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { @@ -1296,7 +1455,7 @@ func (m *LoadIndex) Reset() { *m = LoadIndex{} } func (m *LoadIndex) String() string { return proto.CompactTextString(m) } func (*LoadIndex) ProtoMessage() {} func (*LoadIndex) Descriptor() ([]byte, []int) { - return fileDescriptor_41f4a519b878ee3b, []int{19} + return fileDescriptor_41f4a519b878ee3b, []int{21} } func (m *LoadIndex) XXX_Unmarshal(b []byte) error { @@ -1376,7 +1535,7 @@ func (m *SegmentStatisticsUpdates) Reset() { *m = SegmentStatisticsUpdat func (m *SegmentStatisticsUpdates) String() string { return proto.CompactTextString(m) } func (*SegmentStatisticsUpdates) ProtoMessage() {} func (*SegmentStatisticsUpdates) Descriptor() ([]byte, []int) { - return fileDescriptor_41f4a519b878ee3b, []int{20} + return fileDescriptor_41f4a519b878ee3b, []int{22} } func (m *SegmentStatisticsUpdates) XXX_Unmarshal(b []byte) error { @@ -1458,7 +1617,7 @@ func (m *SegmentStatistics) Reset() { *m = SegmentStatistics{} } func (m *SegmentStatistics) String() string { return proto.CompactTextString(m) } func (*SegmentStatistics) ProtoMessage() {} func (*SegmentStatistics) Descriptor() ([]byte, []int) { - return fileDescriptor_41f4a519b878ee3b, []int{21} + return fileDescriptor_41f4a519b878ee3b, []int{23} } func (m *SegmentStatistics) XXX_Unmarshal(b []byte) error { @@ -1505,7 +1664,7 @@ func (m *SegmentFlushCompletedMsg) Reset() { *m = SegmentFlushCompletedM func (m *SegmentFlushCompletedMsg) String() string { return proto.CompactTextString(m) } func (*SegmentFlushCompletedMsg) ProtoMessage() {} func (*SegmentFlushCompletedMsg) Descriptor() ([]byte, []int) { - return fileDescriptor_41f4a519b878ee3b, []int{22} + return fileDescriptor_41f4a519b878ee3b, []int{24} } func (m *SegmentFlushCompletedMsg) XXX_Unmarshal(b []byte) error { @@ -1552,7 +1711,7 @@ func (m *IndexStats) Reset() { *m = IndexStats{} } func (m *IndexStats) String() string { return proto.CompactTextString(m) } func (*IndexStats) ProtoMessage() {} func (*IndexStats) Descriptor() ([]byte, []int) { - return fileDescriptor_41f4a519b878ee3b, []int{23} + return fileDescriptor_41f4a519b878ee3b, []int{25} } func (m *IndexStats) XXX_Unmarshal(b []byte) error { @@ -1600,7 +1759,7 @@ func (m *FieldStats) Reset() { *m = FieldStats{} } func (m *FieldStats) String() string { return proto.CompactTextString(m) } func (*FieldStats) ProtoMessage() {} func (*FieldStats) Descriptor() ([]byte, []int) { - return fileDescriptor_41f4a519b878ee3b, []int{24} + return fileDescriptor_41f4a519b878ee3b, []int{26} } func (m *FieldStats) XXX_Unmarshal(b []byte) error { @@ -1656,7 +1815,7 @@ func (m *SegmentStats) Reset() { *m = SegmentStats{} } func (m *SegmentStats) String() string { return proto.CompactTextString(m) } func (*SegmentStats) ProtoMessage() {} func (*SegmentStats) Descriptor() ([]byte, []int) { - return fileDescriptor_41f4a519b878ee3b, []int{25} + return fileDescriptor_41f4a519b878ee3b, []int{27} } func (m *SegmentStats) XXX_Unmarshal(b []byte) error { @@ -1718,7 +1877,7 @@ func (m *QueryNodeStats) Reset() { *m = QueryNodeStats{} } func (m *QueryNodeStats) String() string { return proto.CompactTextString(m) } func (*QueryNodeStats) ProtoMessage() {} func (*QueryNodeStats) Descriptor() ([]byte, []int) { - return fileDescriptor_41f4a519b878ee3b, []int{26} + return fileDescriptor_41f4a519b878ee3b, []int{28} } func (m *QueryNodeStats) XXX_Unmarshal(b []byte) error { @@ -1774,7 +1933,7 @@ func (m *MsgPosition) Reset() { *m = MsgPosition{} } func (m *MsgPosition) String() string { return proto.CompactTextString(m) } func (*MsgPosition) ProtoMessage() {} func (*MsgPosition) Descriptor() ([]byte, []int) { - return fileDescriptor_41f4a519b878ee3b, []int{27} + return fileDescriptor_41f4a519b878ee3b, []int{29} } func (m *MsgPosition) XXX_Unmarshal(b []byte) error { @@ -1843,6 +2002,8 @@ func init() { proto.RegisterType((*InsertRequest)(nil), "milvus.proto.internal.InsertRequest") proto.RegisterType((*SearchRequest)(nil), "milvus.proto.internal.SearchRequest") proto.RegisterType((*SearchResults)(nil), "milvus.proto.internal.SearchResults") + proto.RegisterType((*RetrieveRequest)(nil), "milvus.proto.internal.RetrieveRequest") + proto.RegisterType((*RetrieveResults)(nil), "milvus.proto.internal.RetrieveResults") proto.RegisterType((*DeleteRequest)(nil), "milvus.proto.internal.DeleteRequest") proto.RegisterType((*LoadIndex)(nil), "milvus.proto.internal.LoadIndex") proto.RegisterType((*SegmentStatisticsUpdates)(nil), "milvus.proto.internal.SegmentStatisticsUpdates") @@ -1858,104 +2019,110 @@ func init() { func init() { proto.RegisterFile("internal.proto", fileDescriptor_41f4a519b878ee3b) } var fileDescriptor_41f4a519b878ee3b = []byte{ - // 1576 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0x4d, 0x6f, 0x1b, 0xc5, - 0x1b, 0xff, 0xaf, 0xed, 0xc4, 0xf6, 0xe3, 0x4d, 0xea, 0x4e, 0xd3, 0x76, 0xd3, 0x97, 0x7f, 0xdd, - 0xfd, 0xbf, 0x10, 0xa8, 0x48, 0xaa, 0x14, 0x28, 0xe2, 0xd2, 0x36, 0x71, 0x1b, 0xac, 0x36, 0x51, - 0x58, 0xb7, 0x95, 0xe0, 0xb2, 0x1a, 0xef, 0x4e, 0xec, 0x6d, 0xf7, 0x8d, 0x99, 0x71, 0x13, 0xf7, - 0xc4, 0x81, 0x1b, 0x82, 0x03, 0x12, 0x5f, 0x83, 0x8f, 0x00, 0xa8, 0x27, 0x24, 0xee, 0x48, 0x7c, - 0x0d, 0x8e, 0x9c, 0xd0, 0xbc, 0xec, 0xda, 0x4e, 0x37, 0x21, 0x35, 0x42, 0x08, 0xc1, 0x6d, 0xe7, - 0x79, 0x9e, 0x79, 0x66, 0x7e, 0xbf, 0xe7, 0x65, 0x66, 0x16, 0x16, 0x83, 0x98, 0x13, 0x1a, 0xe3, - 0x70, 0x35, 0xa5, 0x09, 0x4f, 0xd0, 0xd9, 0x28, 0x08, 0x9f, 0x0d, 0x99, 0x1a, 0xad, 0x66, 0xca, - 0x0b, 0xa6, 0x97, 0x44, 0x51, 0x12, 0x2b, 0xb1, 0xfd, 0x8d, 0x01, 0x0b, 0x9b, 0x49, 0x94, 0x26, - 0x31, 0x89, 0x79, 0x27, 0xde, 0x4b, 0xd0, 0x39, 0x98, 0x8f, 0x13, 0x9f, 0x74, 0xda, 0x96, 0xd1, - 0x32, 0x56, 0xca, 0x8e, 0x1e, 0x21, 0x04, 0x15, 0x9a, 0x84, 0xc4, 0x2a, 0xb5, 0x8c, 0x95, 0xba, - 0x23, 0xbf, 0xd1, 0x2d, 0x00, 0xc6, 0x31, 0x27, 0xae, 0x97, 0xf8, 0xc4, 0x2a, 0xb7, 0x8c, 0x95, - 0xc5, 0xf5, 0xd6, 0x6a, 0xe1, 0xba, 0xab, 0x5d, 0x61, 0xb8, 0x99, 0xf8, 0xc4, 0xa9, 0xb3, 0xec, - 0x13, 0xdd, 0x06, 0x20, 0x07, 0x9c, 0x62, 0x37, 0x88, 0xf7, 0x12, 0xab, 0xd2, 0x2a, 0xaf, 0x34, - 0xd6, 0xaf, 0x4e, 0x3b, 0xd0, 0xdb, 0xbd, 0x4f, 0x46, 0x8f, 0x71, 0x38, 0x24, 0xbb, 0x38, 0xa0, - 0x4e, 0x5d, 0x4e, 0x12, 0xdb, 0xb5, 0x7f, 0x32, 0xe0, 0x54, 0x0e, 0x40, 0xae, 0xc1, 0xd0, 0x7b, - 0x30, 0x27, 0x97, 0x90, 0x08, 0x1a, 0xeb, 0xff, 0x3d, 0x62, 0x47, 0x53, 0xb8, 0x1d, 0x35, 0x05, - 0x3d, 0x82, 0x33, 0x6c, 0xd8, 0xf3, 0x32, 0x95, 0x2b, 0xa5, 0xcc, 0x2a, 0xc9, 0xad, 0x9d, 0xcc, - 0x13, 0x9a, 0x74, 0xa0, 0xb7, 0x74, 0x03, 0xe6, 0x85, 0xa7, 0x21, 0x93, 0x2c, 0x35, 0xd6, 0x2f, - 0x16, 0x82, 0xec, 0x4a, 0x13, 0x47, 0x9b, 0xda, 0x17, 0x61, 0x79, 0x8b, 0xf0, 0x43, 0xe8, 0x1c, - 0xf2, 0xf1, 0x90, 0x30, 0xae, 0x95, 0x0f, 0x83, 0x88, 0x3c, 0x0c, 0xbc, 0xa7, 0x9b, 0x03, 0x1c, - 0xc7, 0x24, 0xcc, 0x94, 0x97, 0xe1, 0xe2, 0x16, 0x91, 0x13, 0x02, 0xc6, 0x03, 0x8f, 0x1d, 0x52, - 0x9f, 0x85, 0x33, 0x5b, 0x84, 0xb7, 0xfd, 0x43, 0xe2, 0xc7, 0x50, 0xdb, 0x11, 0xc1, 0x16, 0x69, - 0xf0, 0x0e, 0x54, 0xb1, 0xef, 0x53, 0xc2, 0x98, 0x66, 0xf1, 0x52, 0xe1, 0x8e, 0xef, 0x28, 0x1b, - 0x27, 0x33, 0x2e, 0x4a, 0x13, 0xfb, 0x09, 0x40, 0x27, 0x0e, 0xf8, 0x2e, 0xa6, 0x38, 0x62, 0x47, - 0x26, 0x58, 0x1b, 0x4c, 0xc6, 0x31, 0xe5, 0x6e, 0x2a, 0xed, 0x34, 0xe5, 0x27, 0xc8, 0x86, 0x86, - 0x9c, 0xa6, 0xbc, 0xdb, 0x1f, 0x02, 0x74, 0x39, 0x0d, 0xe2, 0xfe, 0x83, 0x80, 0x71, 0xb1, 0xd6, - 0x33, 0x61, 0x27, 0x40, 0x94, 0x57, 0xea, 0x8e, 0x1e, 0x4d, 0x84, 0xa3, 0x74, 0xf2, 0x70, 0xdc, - 0x82, 0x46, 0x46, 0xf7, 0x36, 0xeb, 0xa3, 0xeb, 0x50, 0xe9, 0x61, 0x46, 0x8e, 0xa5, 0x67, 0x9b, - 0xf5, 0x37, 0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e, 0x2e, 0xa3, 0xbc, 0x7c, 0x0c, 0xe5, 0x95, 0x02, 0xca, 0x6d, 0x30, 0x27, 0xf8, 0x65, 0xd6, - 0x9c, 0x84, 0x3e, 0x25, 0x43, 0x4d, 0x28, 0xfb, 0x2c, 0x94, 0x11, 0xab, 0x3b, 0xe2, 0x13, 0x5d, - 0x83, 0xd3, 0x69, 0x88, 0x3d, 0x32, 0x48, 0x42, 0x9f, 0x50, 0xb7, 0x4f, 0x93, 0x61, 0x2a, 0xc3, - 0x65, 0x3a, 0xcd, 0x09, 0xc5, 0x96, 0x90, 0xa3, 0x9b, 0x50, 0xf3, 0x59, 0xe8, 0xf2, 0x51, 0x4a, - 0x64, 0xc8, 0x16, 0x8f, 0xc0, 0xde, 0x66, 0xe1, 0xc3, 0x51, 0x4a, 0x9c, 0xaa, 0xaf, 0x3e, 0xd0, - 0x75, 0x58, 0x62, 0x84, 0x06, 0x38, 0x0c, 0x9e, 0x13, 0xdf, 0x25, 0x07, 0x29, 0x75, 0xd3, 0x10, - 0xc7, 0x32, 0xb2, 0xa6, 0x83, 0xc6, 0xba, 0xbb, 0x07, 0x29, 0xdd, 0x0d, 0x71, 0x6c, 0xff, 0x68, - 0x8c, 0x49, 0x17, 0xfc, 0xb0, 0x19, 0x48, 0x9f, 0xe5, 0x26, 0x55, 0x18, 0xa9, 0x72, 0x71, 0xa4, - 0xae, 0x40, 0x23, 0x22, 0x9c, 0x06, 0x9e, 0x62, 0x44, 0x15, 0x10, 0x28, 0x91, 0x84, 0x8d, 0xa0, - 0x32, 0x08, 0xb8, 0x0a, 0x85, 0xe9, 0xc8, 0x6f, 0xfb, 0x07, 0x03, 0x16, 0xda, 0x24, 0x24, 0x9c, - 0xcc, 0x9e, 0x4d, 0x05, 0x55, 0x5e, 0x2a, 0xac, 0xf2, 0xa9, 0x32, 0x2a, 0x1f, 0x5f, 0x46, 0x95, - 0x97, 0xca, 0xe8, 0x2a, 0x98, 0x29, 0x0d, 0x22, 0x4c, 0x47, 0xee, 0x53, 0x32, 0xca, 0x32, 0xaa, - 0xa1, 0x65, 0xf7, 0xc9, 0x88, 0xd9, 0xbf, 0x18, 0x50, 0x7f, 0x90, 0x60, 0x5f, 0x1e, 0x06, 0x33, - 0x20, 0x99, 0xea, 0x02, 0xa5, 0x82, 0x2e, 0x90, 0xf7, 0xf3, 0x6c, 0xfb, 0xe3, 0x06, 0x3f, 0xd1, - 0xa8, 0x2b, 0xd3, 0x8d, 0xfa, 0x0a, 0x34, 0x02, 0xb1, 0x21, 0x37, 0xc5, 0x7c, 0xa0, 0xf6, 0x5d, - 0x77, 0x40, 0x8a, 0x76, 0x85, 0x44, 0x74, 0xf2, 0xcc, 0x40, 0x76, 0xf2, 0xf9, 0x13, 0x77, 0x72, - 0xed, 0x44, 0x76, 0xf2, 0xef, 0x4a, 0x60, 0x75, 0xd5, 0x66, 0xc7, 0xcf, 0x99, 0x47, 0xa9, 0x2f, - 0x5f, 0x55, 0x97, 0xa0, 0xde, 0xcd, 0x91, 0xa9, 0xd7, 0xc4, 0x58, 0x20, 0xa8, 0xdf, 0x26, 0x51, - 0x42, 0x47, 0xdd, 0xe0, 0x39, 0xd1, 0xc0, 0x27, 0x24, 0x02, 0xdb, 0xce, 0x30, 0x72, 0x92, 0x7d, - 0xa6, 0xfb, 0x40, 0x36, 0x14, 0xd8, 0x3c, 0x79, 0xfe, 0xba, 0x22, 0x52, 0x12, 0x79, 0xc5, 0x01, - 0x25, 0x12, 0x4f, 0x00, 0xb4, 0x0c, 0x35, 0x12, 0xfb, 0x4a, 0x3b, 0x27, 0xb5, 0x55, 0x12, 0xfb, - 0x52, 0xd5, 0x81, 0x45, 0xfd, 0x8c, 0x49, 0x98, 0xec, 0x09, 0xb2, 0x13, 0x34, 0xd6, 0xed, 0x23, - 0xde, 0x8e, 0xdb, 0xac, 0xbf, 0xab, 0x2d, 0x9d, 0x05, 0xf5, 0x92, 0xd1, 0x43, 0x74, 0x17, 0x4c, - 0xb1, 0x4a, 0xee,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x06, 0xd4, 0x73, 0xc8, 0x93, 0x14, 0x00, 0x00, + // 1667 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcb, 0x6f, 0x1c, 0x49, + 0x19, 0xa7, 0x67, 0xc6, 0x9e, 0x99, 0xaf, 0xdb, 0xf6, 0xa4, 0xe2, 0xec, 0xb6, 0x93, 0xec, 0xee, + 0x6c, 0x2f, 0x0f, 0xb3, 0x2b, 0xec, 0xc8, 0x0b, 0x04, 0x71, 0x49, 0x62, 0x4f, 0x62, 0x46, 0x89, + 0x2d, 0xd3, 0x93, 0x44, 0x82, 0x4b, 0xab, 0xa6, 0xbb, 0x3c, 0xd3, 0x49, 0xbf, 0xa8, 0xaa, 0xb6, + 0x3d, 0x39, 0x71, 0xe0, 0x86, 0x40, 0x08, 0x89, 0x13, 0xff, 0x03, 0x7f, 0x02, 0xa0, 0x9c, 0x90, + 0xb8, 0x23, 0xf1, 0x6f, 0x70, 0xe4, 0x84, 0xea, 0xd1, 0x3d, 0x33, 0x4e, 0xdb, 0x4c, 0x1c, 0x21, + 0x88, 0xd8, 0x5b, 0xd7, 0xf7, 0x7d, 0xf5, 0xf8, 0xfd, 0xbe, 0x57, 0x55, 0xc3, 0x6a, 0x98, 0x70, + 0x42, 0x13, 0x1c, 0x6d, 0x65, 0x34, 0xe5, 0x29, 0xba, 0x11, 0x87, 0xd1, 0x49, 0xce, 0xd4, 0x68, + 0xab, 0x50, 0xde, 0xb4, 0xfc, 0x34, 0x8e, 0xd3, 0x44, 0x89, 0x6f, 0x5a, 0xcc, 0x1f, 0x93, 0x18, + 0xab, 0x91, 0xf3, 0x47, 0x03, 0x56, 0xf6, 0xd2, 0x38, 0x4b, 0x13, 0x92, 0xf0, 0x7e, 0x72, 0x9c, + 0xa2, 0x0f, 0x60, 0x39, 0x49, 0x03, 0xd2, 0xef, 0xd9, 0x46, 0xd7, 0xd8, 0xac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x21, 0x64, 0x3c, 0xf4, 0xd9, 0x39, 0xf5, 0x0d, 0xb8, 0xbe, 0x4f, 0x78, + 0x2f, 0x38, 0x27, 0x7e, 0x0e, 0xad, 0x43, 0xe1, 0x6c, 0x11, 0x06, 0xdf, 0x87, 0x26, 0x0e, 0x02, + 0x4a, 0x18, 0xd3, 0x2c, 0xde, 0xae, 0x3c, 0xf1, 0x03, 0x65, 0xe3, 0x16, 0xc6, 0x55, 0x61, 0xe2, + 0xbc, 0x00, 0xe8, 0x27, 0x21, 0x3f, 0xc2, 0x14, 0xc7, 0xec, 0xc2, 0x00, 0xeb, 0x81, 0xc5, 0x38, + 0xa6, 0xdc, 0xcb, 0xa4, 0x9d, 0xa6, 0x7c, 0x81, 0x68, 0x30, 0xe5, 0x34, 0xb5, 0xba, 0xf3, 0x13, + 0x80, 0x01, 0xa7, 0x61, 0x32, 0x7a, 0x12, 0x32, 0x2e, 0xf6, 0x3a, 0x11, 0x76, 0x02, 0x44, 0x7d, + 0xb3, 0xed, 0xea, 0xd1, 0x8c, 0x3b, 0x6a, 0x8b, 0xbb, 0xe3, 0x1e, 0x98, 0x05, 0xdd, 0x07, 0x6c, + 0x84, 0xee, 0x40, 0x63, 0x88, 0x19, 0xb9, 0x94, 0x9e, 0x03, 0x36, 0xda, 0xc5, 0x8c, 0xb8, 0xd2, + 0xd2, 0x79, 0x5d, 0x83, 0x0f, 0xf7, 0x28, 0x91, 0xc1, 0x1f, 0x45, 0xc4, 0xe7, 0x61, 0x9a, 0x68, + 0xee, 0xdf, 0x7e, 0x35, 0xf4, 0x21, 0x34, 0x83, 0xa1, 0x97, 0xe0, 0xb8, 0x20, 0x7b, 0x39, 0x18, + 0x1e, 0xe2, 0x98, 0xa0, 0x6f, 0xc2, 0xaa, 0x5f, 0xae, 0x2f, 0x24, 0x32, 0xe6, 0xda, 0xee, 0x39, + 0xa9, 0x70, 0x55, 0x30, 0xec, 0xf7, 0xec, 0x86, 0x74, 0x83, 0xfc, 0x46, 0x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0x43, 0xb8, + 0x54, 0xb4, 0x85, 0x5a, 0x65, 0x5b, 0x98, 0xab, 0xbb, 0xf5, 0xcb, 0xeb, 0x6e, 0xe3, 0x8d, 0xba, + 0xfb, 0x29, 0x58, 0x19, 0x0d, 0x63, 0x4c, 0x27, 0xde, 0x4b, 0x32, 0x29, 0x42, 0xc6, 0xd4, 0xb2, + 0xc7, 0x64, 0xc2, 0x9c, 0x7f, 0x1a, 0xd0, 0x7e, 0x92, 0xe2, 0x40, 0xde, 0x1e, 0xae, 0x80, 0x64, + 0xae, 0x6d, 0xd4, 0x2a, 0xda, 0x46, 0x79, 0x01, 0x28, 0x8e, 0x3f, 0xbd, 0x11, 0xcc, 0x74, 0xf6, + 0xc6, 0x7c, 0x67, 0xff, 0x04, 0xcc, 0x50, 0x1c, 0xc8, 0xcb, 0x30, 0x1f, 0xab, 0x73, 0xb7, 0x5d, + 0x90, 0xa2, 0x23, 0x21, 0x11, 0xad, 0xbf, 0x30, 0x90, 0xad, 0x7f, 0x79, 0xe1, 0xd6, 0xaf, 0x17, + 0x91, 0xad, 0xff, 0xcf, 0x35, 0xb0, 0x07, 0xea, 0xb0, 0xd3, 0xf7, 0xef, 0xb3, 0x2c, 0x90, 0xcf, + 0xf0, 0xdb, 0xd0, 0x1e, 0x94, 0xc8, 0xd4, 0xf3, 0x73, 0x2a, 0x10, 0xd4, 0x1f, 0x90, 0x38, 0xa5, + 0x93, 0x41, 0xf8, 0x8a, 0x68, 0xe0, 0x33, 0x12, 0x81, 0xed, 0x30, 0x8f, 0xdd, 0xf4, 0x94, 0xe9, + 0x44, 0x2f, 0x86, 0x02, 0x9b, 0x2f, 0x2f, 0x6c, 0x9e, 0xf0, 0x94, 0x44, 0xde, 0x70, 0x41, 0x89, + 0xc4, 0x9b, 0x11, 0x6d, 0x40, 0x8b, 0x24, 0x81, 0xd2, 0x2e, 0x49, 0x6d, 0x93, 0x24, 0x81, 0x54, + 0xf5, 0x61, 0x55, 0xbf, 0x7b, 0x53,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0x77, 0xc2, 0x54, 0x7f, 0x6d, 0x17, 0xd8, 0xb7, 0x25, 0x15, 0xe5, 0x30, 0x1b, + 0x0e, 0x97, 0xa5, 0xe4, 0xcb, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x70, 0x63, 0x8f, 0xe1, 0xd2, + 0x16, 0x00, 0x00, } diff --git a/internal/proto/milvus.proto b/internal/proto/milvus.proto index cfb9bc3687..4af802a650 100644 --- a/internal/proto/milvus.proto +++ b/internal/proto/milvus.proto @@ -32,6 +32,7 @@ service MilvusService { rpc Insert(InsertRequest) returns (InsertResponse) {} rpc Search(SearchRequest) returns (SearchResults) {} + rpc Retrieve(RetrieveRequest) returns (RetrieveResults) {} rpc Flush(FlushRequest) returns (common.Status) {} rpc GetPersistentSegmentInfo(GetPersistentSegmentInfoRequest) returns (GetPersistentSegmentInfoResponse) {} @@ -314,6 +315,21 @@ message SearchRequest { repeated common.KeyValuePair search_params = 8; } +message RetrieveRequest { + common.MsgBase base = 1; + string db_name = 2; + string collection_name = 3; + repeated string partition_names = 4; + schema.IDs ids = 5; + repeated string output_fields = 6; +} + +message RetrieveResults { + common.Status status = 1; + schema.IDs ids = 2; + repeated schema.FieldData fields_data = 3; +} + message Hits { repeated int64 IDs = 1; repeated bytes row_data = 2; diff --git a/internal/proto/milvuspb/milvus.pb.go b/internal/proto/milvuspb/milvus.pb.go index 9d37001d28..6de349e9a6 100644 --- a/internal/proto/milvuspb/milvus.pb.go +++ b/internal/proto/milvuspb/milvus.pb.go @@ -2449,6 +2449,140 @@ func (m *SearchRequest) GetSearchParams() []*commonpb.KeyValuePair { return nil } +type RetrieveRequest struct { + Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` + CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` + PartitionNames []string `protobuf:"bytes,4,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"` + Ids *schemapb.IDs `protobuf:"bytes,5,opt,name=ids,proto3" json:"ids,omitempty"` + OutputFields []string `protobuf:"bytes,6,rep,name=output_fields,json=outputFields,proto3" json:"output_fields,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RetrieveRequest) Reset() { *m = RetrieveRequest{} } +func (m *RetrieveRequest) String() string { return proto.CompactTextString(m) } +func (*RetrieveRequest) ProtoMessage() {} +func (*RetrieveRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_02345ba45cc0e303, []int{40} +} + +func (m *RetrieveRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RetrieveRequest.Unmarshal(m, b) +} +func (m *RetrieveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RetrieveRequest.Marshal(b, m, deterministic) +} +func (m *RetrieveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetrieveRequest.Merge(m, src) +} +func (m *RetrieveRequest) XXX_Size() int { + return xxx_messageInfo_RetrieveRequest.Size(m) +} +func (m *RetrieveRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RetrieveRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RetrieveRequest proto.InternalMessageInfo + +func (m *RetrieveRequest) GetBase() *commonpb.MsgBase { + if m != nil { + return m.Base + } + return nil +} + +func (m *RetrieveRequest) GetDbName() string { + if m != nil { + return m.DbName + } + return "" +} + +func (m *RetrieveRequest) GetCollectionName() string { + if m != nil { + return m.CollectionName + } + return "" +} + +func (m *RetrieveRequest) GetPartitionNames() []string { + if m != nil { + return m.PartitionNames + } + return nil +} + +func (m *RetrieveRequest) GetIds() *schemapb.IDs { + if m != nil { + return m.Ids + } + return nil +} + +func (m *RetrieveRequest) GetOutputFields() []string { + if m != nil { + return m.OutputFields + } + return nil +} + +type RetrieveResults struct { + Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + Ids *schemapb.IDs `protobuf:"bytes,2,opt,name=ids,proto3" json:"ids,omitempty"` + FieldsData []*schemapb.FieldData `protobuf:"bytes,3,rep,name=fields_data,json=fieldsData,proto3" json:"fields_data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RetrieveResults) Reset() { *m = RetrieveResults{} } +func (m *RetrieveResults) String() string { return proto.CompactTextString(m) } +func (*RetrieveResults) ProtoMessage() {} +func (*RetrieveResults) Descriptor() ([]byte, []int) { + return fileDescriptor_02345ba45cc0e303, []int{41} +} + +func (m *RetrieveResults) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RetrieveResults.Unmarshal(m, b) +} +func (m *RetrieveResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RetrieveResults.Marshal(b, m, deterministic) +} +func (m *RetrieveResults) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetrieveResults.Merge(m, src) +} +func (m *RetrieveResults) XXX_Size() int { + return xxx_messageInfo_RetrieveResults.Size(m) +} +func (m *RetrieveResults) XXX_DiscardUnknown() { + xxx_messageInfo_RetrieveResults.DiscardUnknown(m) +} + +var xxx_messageInfo_RetrieveResults proto.InternalMessageInfo + +func (m *RetrieveResults) GetStatus() *commonpb.Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *RetrieveResults) GetIds() *schemapb.IDs { + if m != nil { + return m.Ids + } + return nil +} + +func (m *RetrieveResults) GetFieldsData() []*schemapb.FieldData { + if m != nil { + return m.FieldsData + } + return nil +} + type Hits struct { IDs []int64 `protobuf:"varint,1,rep,packed,name=IDs,proto3" json:"IDs,omitempty"` RowData [][]byte `protobuf:"bytes,2,rep,name=row_data,json=rowData,proto3" json:"row_data,omitempty"` @@ -2462,7 +2596,7 @@ func (m *Hits) Reset() { *m = Hits{} } func (m *Hits) String() string { return proto.CompactTextString(m) } func (*Hits) ProtoMessage() {} func (*Hits) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{40} + return fileDescriptor_02345ba45cc0e303, []int{42} } func (m *Hits) XXX_Unmarshal(b []byte) error { @@ -2516,7 +2650,7 @@ func (m *SearchResults) Reset() { *m = SearchResults{} } func (m *SearchResults) String() string { return proto.CompactTextString(m) } func (*SearchResults) ProtoMessage() {} func (*SearchResults) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{41} + return fileDescriptor_02345ba45cc0e303, []int{43} } func (m *SearchResults) XXX_Unmarshal(b []byte) error { @@ -2564,7 +2698,7 @@ func (m *FlushRequest) Reset() { *m = FlushRequest{} } func (m *FlushRequest) String() string { return proto.CompactTextString(m) } func (*FlushRequest) ProtoMessage() {} func (*FlushRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{42} + return fileDescriptor_02345ba45cc0e303, []int{44} } func (m *FlushRequest) XXX_Unmarshal(b []byte) error { @@ -2625,7 +2759,7 @@ func (m *PersistentSegmentInfo) Reset() { *m = PersistentSegmentInfo{} } func (m *PersistentSegmentInfo) String() string { return proto.CompactTextString(m) } func (*PersistentSegmentInfo) ProtoMessage() {} func (*PersistentSegmentInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{43} + return fileDescriptor_02345ba45cc0e303, []int{45} } func (m *PersistentSegmentInfo) XXX_Unmarshal(b []byte) error { @@ -2722,7 +2856,7 @@ func (m *GetPersistentSegmentInfoRequest) Reset() { *m = GetPersistentSe func (m *GetPersistentSegmentInfoRequest) String() string { return proto.CompactTextString(m) } func (*GetPersistentSegmentInfoRequest) ProtoMessage() {} func (*GetPersistentSegmentInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{44} + return fileDescriptor_02345ba45cc0e303, []int{46} } func (m *GetPersistentSegmentInfoRequest) XXX_Unmarshal(b []byte) error { @@ -2776,7 +2910,7 @@ func (m *GetPersistentSegmentInfoResponse) Reset() { *m = GetPersistentS func (m *GetPersistentSegmentInfoResponse) String() string { return proto.CompactTextString(m) } func (*GetPersistentSegmentInfoResponse) ProtoMessage() {} func (*GetPersistentSegmentInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{45} + return fileDescriptor_02345ba45cc0e303, []int{47} } func (m *GetPersistentSegmentInfoResponse) XXX_Unmarshal(b []byte) error { @@ -2828,7 +2962,7 @@ func (m *QuerySegmentInfo) Reset() { *m = QuerySegmentInfo{} } func (m *QuerySegmentInfo) String() string { return proto.CompactTextString(m) } func (*QuerySegmentInfo) ProtoMessage() {} func (*QuerySegmentInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{46} + return fileDescriptor_02345ba45cc0e303, []int{48} } func (m *QuerySegmentInfo) XXX_Unmarshal(b []byte) error { @@ -2911,7 +3045,7 @@ func (m *GetQuerySegmentInfoRequest) Reset() { *m = GetQuerySegmentInfoR func (m *GetQuerySegmentInfoRequest) String() string { return proto.CompactTextString(m) } func (*GetQuerySegmentInfoRequest) ProtoMessage() {} func (*GetQuerySegmentInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{47} + return fileDescriptor_02345ba45cc0e303, []int{49} } func (m *GetQuerySegmentInfoRequest) XXX_Unmarshal(b []byte) error { @@ -2965,7 +3099,7 @@ func (m *GetQuerySegmentInfoResponse) Reset() { *m = GetQuerySegmentInfo func (m *GetQuerySegmentInfoResponse) String() string { return proto.CompactTextString(m) } func (*GetQuerySegmentInfoResponse) ProtoMessage() {} func (*GetQuerySegmentInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{48} + return fileDescriptor_02345ba45cc0e303, []int{50} } func (m *GetQuerySegmentInfoResponse) XXX_Unmarshal(b []byte) error { @@ -3010,7 +3144,7 @@ func (m *RegisterLinkRequest) Reset() { *m = RegisterLinkRequest{} } func (m *RegisterLinkRequest) String() string { return proto.CompactTextString(m) } func (*RegisterLinkRequest) ProtoMessage() {} func (*RegisterLinkRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{49} + return fileDescriptor_02345ba45cc0e303, []int{51} } func (m *RegisterLinkRequest) XXX_Unmarshal(b []byte) error { @@ -3043,7 +3177,7 @@ func (m *RegisterLinkResponse) Reset() { *m = RegisterLinkResponse{} } func (m *RegisterLinkResponse) String() string { return proto.CompactTextString(m) } func (*RegisterLinkResponse) ProtoMessage() {} func (*RegisterLinkResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{50} + return fileDescriptor_02345ba45cc0e303, []int{52} } func (m *RegisterLinkResponse) XXX_Unmarshal(b []byte) error { @@ -3120,6 +3254,8 @@ func init() { proto.RegisterType((*PlaceholderValue)(nil), "milvus.proto.milvus.PlaceholderValue") proto.RegisterType((*PlaceholderGroup)(nil), "milvus.proto.milvus.PlaceholderGroup") proto.RegisterType((*SearchRequest)(nil), "milvus.proto.milvus.SearchRequest") + proto.RegisterType((*RetrieveRequest)(nil), "milvus.proto.milvus.RetrieveRequest") + proto.RegisterType((*RetrieveResults)(nil), "milvus.proto.milvus.RetrieveResults") proto.RegisterType((*Hits)(nil), "milvus.proto.milvus.Hits") proto.RegisterType((*SearchResults)(nil), "milvus.proto.milvus.SearchResults") proto.RegisterType((*FlushRequest)(nil), "milvus.proto.milvus.FlushRequest") @@ -3136,144 +3272,151 @@ func init() { func init() { proto.RegisterFile("milvus.proto", fileDescriptor_02345ba45cc0e303) } var fileDescriptor_02345ba45cc0e303 = []byte{ - // 2184 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x1a, 0x5d, 0x6f, 0x1b, 0x59, - 0xb5, 0xd7, 0x5f, 0xb1, 0x8f, 0xed, 0xc4, 0x7b, 0xf3, 0x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3e, 0x37, - 0x16, 0x27, 0xe0, 0x53, 0x87, 0x9c, 0xb8, 0xcd, 0x26, 0x2c, 0x1a, 0xe9, 0x52, 0xd4, 0xc6, 0xe3, - 0xf0, 0xeb, 0xb0, 0x76, 0x01, 0xef, 0x42, 0x96, 0x5f, 0x63, 0xb1, 0x3a, 0x15, 0x85, 0xaf, 0xb8, - 0xc7, 0xc9, 0xfc, 0x63, 0x04, 0xd5, 0xa4, 0x7b, 0x0a, 0x4e, 0x3c, 0x85, 0xc6, 0x5d, 0xb6, 0x6a, - 0xb7, 0x4f, 0x48, 0x15, 0xa8, 0xea, 0x19, 0xcc, 0x2b, 0xaa, 0x63, 0xbc, 0x9e, 0xb4, 0x5e, 0x42, - 0x61, 0x5f, 0x7b, 0x73, 0x72, 0x82, 0x60, 0x6f, 0x02, 0xa5, 0x70, 0xc1, 0x9b, 0x70, 0x1c, 0x28, - 0x6a, 0xe5, 0xda, 0xb5, 0x09, 0x30, 0x87, 0xdb, 0x6c, 0xf4, 0xa1, 0xb4, 0xe7, 0xb9, 0x4f, 0x07, - 0xc3, 0x82, 0xf4, 0xb3, 0xd9, 0x76, 0xeb, 0xf6, 0x77, 0x37, 0xf7, 0x2d, 0xbf, 0xd3, 0x6f, 0x31, - 0xfb, 0xaf, 0x0b, 0xdc, 0x37, 0x2c, 0x57, 0x3e, 0xad, 0x5b, 0x8e, 0x4f, 0x3c, 0xc7, 0xb0, 0xd7, - 0xf9, 0x5a, 0x12, 0xda, 0x6b, 0xb5, 0x72, 0xfc, 0x7d, 0xf3, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, - 0x20, 0x11, 0x9c, 0x73, 0xcc, 0x2c, 0x00, 0x00, + // 2292 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5a, 0xcd, 0x6f, 0x1c, 0x49, + 0x15, 0x4f, 0xcd, 0x97, 0x67, 0xde, 0xf4, 0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x5c, 0x9b, 0x80, 0x12, 0x4d, 0xa5, 0x53, 0x0e, 0x1a, 0x49, 0x16, 0x5e, 0xbf, + 0x3a, 0x01, 0x67, 0xb0, 0xcc, 0xda, 0x00, 0x94, 0x1d, 0xd7, 0x79, 0x32, 0x0c, 0x52, 0xdd, 0xcf, + 0x67, 0xd9, 0x8d, 0x5b, 0xdf, 0x5d, 0xdf, 0x35, 0xbd, 0xee, 0xa0, 0xcd, 0xf4, 0xbf, 0x2a, 0x78, + 0x5f, 0x37, 0x1d, 0xff, 0x69, 0xd5, 0xb4, 0x3d, 0xe2, 0xda, 0xba, 0xb5, 0xca, 0xe7, 0xf2, 0xa9, + 0xfd, 0x76, 0xbb, 0xc0, 0xdf, 0xd7, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0x78, 0xd5, 0xe7, 0xcd, + 0xde, 0x2e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3310,6 +3453,7 @@ type MilvusServiceClient interface { DropIndex(ctx context.Context, in *DropIndexRequest, opts ...grpc.CallOption) (*commonpb.Status, error) Insert(ctx context.Context, in *InsertRequest, opts ...grpc.CallOption) (*InsertResponse, error) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResults, error) + Retrieve(ctx context.Context, in *RetrieveRequest, opts ...grpc.CallOption) (*RetrieveResults, error) Flush(ctx context.Context, in *FlushRequest, opts ...grpc.CallOption) (*commonpb.Status, error) GetPersistentSegmentInfo(ctx context.Context, in *GetPersistentSegmentInfoRequest, opts ...grpc.CallOption) (*GetPersistentSegmentInfoResponse, error) GetQuerySegmentInfo(ctx context.Context, in *GetQuerySegmentInfoRequest, opts ...grpc.CallOption) (*GetQuerySegmentInfoResponse, error) @@ -3523,6 +3667,15 @@ func (c *milvusServiceClient) Search(ctx context.Context, in *SearchRequest, opt return out, nil } +func (c *milvusServiceClient) Retrieve(ctx context.Context, in *RetrieveRequest, opts ...grpc.CallOption) (*RetrieveResults, error) { + out := new(RetrieveResults) + err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/Retrieve", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *milvusServiceClient) Flush(ctx context.Context, in *FlushRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { out := new(commonpb.Status) err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/Flush", in, out, opts...) @@ -3583,6 +3736,7 @@ type MilvusServiceServer interface { DropIndex(context.Context, *DropIndexRequest) (*commonpb.Status, error) Insert(context.Context, *InsertRequest) (*InsertResponse, error) Search(context.Context, *SearchRequest) (*SearchResults, error) + Retrieve(context.Context, *RetrieveRequest) (*RetrieveResults, error) Flush(context.Context, *FlushRequest) (*commonpb.Status, error) GetPersistentSegmentInfo(context.Context, *GetPersistentSegmentInfoRequest) (*GetPersistentSegmentInfoResponse, error) GetQuerySegmentInfo(context.Context, *GetQuerySegmentInfoRequest) (*GetQuerySegmentInfoResponse, error) @@ -3660,6 +3814,9 @@ func (*UnimplementedMilvusServiceServer) Insert(ctx context.Context, req *Insert func (*UnimplementedMilvusServiceServer) Search(ctx context.Context, req *SearchRequest) (*SearchResults, error) { return nil, status.Errorf(codes.Unimplemented, "method Search not implemented") } +func (*UnimplementedMilvusServiceServer) Retrieve(ctx context.Context, req *RetrieveRequest) (*RetrieveResults, error) { + return nil, status.Errorf(codes.Unimplemented, "method Retrieve not implemented") +} func (*UnimplementedMilvusServiceServer) Flush(ctx context.Context, req *FlushRequest) (*commonpb.Status, error) { return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented") } @@ -4073,6 +4230,24 @@ func _MilvusService_Search_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +func _MilvusService_Retrieve_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RetrieveRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MilvusServiceServer).Retrieve(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/milvus.proto.milvus.MilvusService/Retrieve", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MilvusServiceServer).Retrieve(ctx, req.(*RetrieveRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _MilvusService_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FlushRequest) if err := dec(in); err != nil { @@ -4237,6 +4412,10 @@ var _MilvusService_serviceDesc = grpc.ServiceDesc{ MethodName: "Search", Handler: _MilvusService_Search_Handler, }, + { + MethodName: "Retrieve", + Handler: _MilvusService_Retrieve_Handler, + }, { MethodName: "Flush", Handler: _MilvusService_Flush_Handler, diff --git a/internal/proto/schema.proto b/internal/proto/schema.proto index 72c84d81b5..e6a3635f72 100644 --- a/internal/proto/schema.proto +++ b/internal/proto/schema.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package milvus.proto.schema; -option go_package="github.com/milvus-io/milvus/internal/proto/schemapb"; +option go_package = "github.com/milvus-io/milvus/internal/proto/schemapb"; import "common.proto"; @@ -47,3 +47,68 @@ message CollectionSchema { bool autoID = 3; repeated FieldSchema fields = 4; } + +message BoolArray { + repeated bool data = 1; +} + +message IntArray { + repeated int32 data = 1; +} + +message LongArray { + repeated int64 data = 1; +} + +message FloatArray { + repeated float data = 1; +} + +message DoubleArray { + repeated double data = 1; +} + +// For special fields such as bigdecimal, array... +message BytesArray { + repeated bytes data = 1; +} + +message StringArray { + repeated string data = 1; +} + +message ScalarField { + oneof data { + BoolArray bool_data = 1; + IntArray int_data = 2; + LongArray long_data = 3; + FloatArray float_data = 4; + DoubleArray double_data = 5; + StringArray string_data = 6; + BytesArray bytes_data = 7; + } +} + +message VectorField { + int64 dim = 1; + oneof data { + FloatArray float_vector = 2; + bytes binary_vector = 3; + } +} + +message FieldData { + DataType type = 1; + string field_name = 2; + oneof field { + ScalarField scalars = 3; + VectorField vectors = 4; + } +} + +message IDs { + oneof id_field { + LongArray int_id = 1; + StringArray str_id = 2; + } +} diff --git a/internal/proto/schemapb/schema.pb.go b/internal/proto/schemapb/schema.pb.go index ca567df10c..d94721afd7 100644 --- a/internal/proto/schemapb/schema.pb.go +++ b/internal/proto/schemapb/schema.pb.go @@ -229,42 +229,771 @@ func (m *CollectionSchema) GetFields() []*FieldSchema { return nil } +type BoolArray struct { + Data []bool `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BoolArray) Reset() { *m = BoolArray{} } +func (m *BoolArray) String() string { return proto.CompactTextString(m) } +func (*BoolArray) ProtoMessage() {} +func (*BoolArray) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{2} +} + +func (m *BoolArray) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BoolArray.Unmarshal(m, b) +} +func (m *BoolArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BoolArray.Marshal(b, m, deterministic) +} +func (m *BoolArray) XXX_Merge(src proto.Message) { + xxx_messageInfo_BoolArray.Merge(m, src) +} +func (m *BoolArray) XXX_Size() int { + return xxx_messageInfo_BoolArray.Size(m) +} +func (m *BoolArray) XXX_DiscardUnknown() { + xxx_messageInfo_BoolArray.DiscardUnknown(m) +} + +var xxx_messageInfo_BoolArray proto.InternalMessageInfo + +func (m *BoolArray) GetData() []bool { + if m != nil { + return m.Data + } + return nil +} + +type IntArray struct { + Data []int32 `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IntArray) Reset() { *m = IntArray{} } +func (m *IntArray) String() string { return proto.CompactTextString(m) } +func (*IntArray) ProtoMessage() {} +func (*IntArray) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{3} +} + +func (m *IntArray) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IntArray.Unmarshal(m, b) +} +func (m *IntArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IntArray.Marshal(b, m, deterministic) +} +func (m *IntArray) XXX_Merge(src proto.Message) { + xxx_messageInfo_IntArray.Merge(m, src) +} +func (m *IntArray) XXX_Size() int { + return xxx_messageInfo_IntArray.Size(m) +} +func (m *IntArray) XXX_DiscardUnknown() { + xxx_messageInfo_IntArray.DiscardUnknown(m) +} + +var xxx_messageInfo_IntArray proto.InternalMessageInfo + +func (m *IntArray) GetData() []int32 { + if m != nil { + return m.Data + } + return nil +} + +type LongArray struct { + Data []int64 `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LongArray) Reset() { *m = LongArray{} } +func (m *LongArray) String() string { return proto.CompactTextString(m) } +func (*LongArray) ProtoMessage() {} +func (*LongArray) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{4} +} + +func (m *LongArray) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LongArray.Unmarshal(m, b) +} +func (m *LongArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LongArray.Marshal(b, m, deterministic) +} +func (m *LongArray) XXX_Merge(src proto.Message) { + xxx_messageInfo_LongArray.Merge(m, src) +} +func (m *LongArray) XXX_Size() int { + return xxx_messageInfo_LongArray.Size(m) +} +func (m *LongArray) XXX_DiscardUnknown() { + xxx_messageInfo_LongArray.DiscardUnknown(m) +} + +var xxx_messageInfo_LongArray proto.InternalMessageInfo + +func (m *LongArray) GetData() []int64 { + if m != nil { + return m.Data + } + return nil +} + +type FloatArray struct { + Data []float32 `protobuf:"fixed32,1,rep,packed,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FloatArray) Reset() { *m = FloatArray{} } +func (m *FloatArray) String() string { return proto.CompactTextString(m) } +func (*FloatArray) ProtoMessage() {} +func (*FloatArray) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{5} +} + +func (m *FloatArray) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FloatArray.Unmarshal(m, b) +} +func (m *FloatArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FloatArray.Marshal(b, m, deterministic) +} +func (m *FloatArray) XXX_Merge(src proto.Message) { + xxx_messageInfo_FloatArray.Merge(m, src) +} +func (m *FloatArray) XXX_Size() int { + return xxx_messageInfo_FloatArray.Size(m) +} +func (m *FloatArray) XXX_DiscardUnknown() { + xxx_messageInfo_FloatArray.DiscardUnknown(m) +} + +var xxx_messageInfo_FloatArray proto.InternalMessageInfo + +func (m *FloatArray) GetData() []float32 { + if m != nil { + return m.Data + } + return nil +} + +type DoubleArray struct { + Data []float64 `protobuf:"fixed64,1,rep,packed,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DoubleArray) Reset() { *m = DoubleArray{} } +func (m *DoubleArray) String() string { return proto.CompactTextString(m) } +func (*DoubleArray) ProtoMessage() {} +func (*DoubleArray) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{6} +} + +func (m *DoubleArray) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DoubleArray.Unmarshal(m, b) +} +func (m *DoubleArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DoubleArray.Marshal(b, m, deterministic) +} +func (m *DoubleArray) XXX_Merge(src proto.Message) { + xxx_messageInfo_DoubleArray.Merge(m, src) +} +func (m *DoubleArray) XXX_Size() int { + return xxx_messageInfo_DoubleArray.Size(m) +} +func (m *DoubleArray) XXX_DiscardUnknown() { + xxx_messageInfo_DoubleArray.DiscardUnknown(m) +} + +var xxx_messageInfo_DoubleArray proto.InternalMessageInfo + +func (m *DoubleArray) GetData() []float64 { + if m != nil { + return m.Data + } + return nil +} + +// For special fields such as bigdecimal, array... +type BytesArray struct { + Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BytesArray) Reset() { *m = BytesArray{} } +func (m *BytesArray) String() string { return proto.CompactTextString(m) } +func (*BytesArray) ProtoMessage() {} +func (*BytesArray) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{7} +} + +func (m *BytesArray) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BytesArray.Unmarshal(m, b) +} +func (m *BytesArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BytesArray.Marshal(b, m, deterministic) +} +func (m *BytesArray) XXX_Merge(src proto.Message) { + xxx_messageInfo_BytesArray.Merge(m, src) +} +func (m *BytesArray) XXX_Size() int { + return xxx_messageInfo_BytesArray.Size(m) +} +func (m *BytesArray) XXX_DiscardUnknown() { + xxx_messageInfo_BytesArray.DiscardUnknown(m) +} + +var xxx_messageInfo_BytesArray proto.InternalMessageInfo + +func (m *BytesArray) GetData() [][]byte { + if m != nil { + return m.Data + } + return nil +} + +type StringArray struct { + Data []string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StringArray) Reset() { *m = StringArray{} } +func (m *StringArray) String() string { return proto.CompactTextString(m) } +func (*StringArray) ProtoMessage() {} +func (*StringArray) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{8} +} + +func (m *StringArray) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StringArray.Unmarshal(m, b) +} +func (m *StringArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StringArray.Marshal(b, m, deterministic) +} +func (m *StringArray) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringArray.Merge(m, src) +} +func (m *StringArray) XXX_Size() int { + return xxx_messageInfo_StringArray.Size(m) +} +func (m *StringArray) XXX_DiscardUnknown() { + xxx_messageInfo_StringArray.DiscardUnknown(m) +} + +var xxx_messageInfo_StringArray proto.InternalMessageInfo + +func (m *StringArray) GetData() []string { + if m != nil { + return m.Data + } + return nil +} + +type ScalarField struct { + // Types that are valid to be assigned to Data: + // *ScalarField_BoolData + // *ScalarField_IntData + // *ScalarField_LongData + // *ScalarField_FloatData + // *ScalarField_DoubleData + // *ScalarField_StringData + // *ScalarField_BytesData + Data isScalarField_Data `protobuf_oneof:"data"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScalarField) Reset() { *m = ScalarField{} } +func (m *ScalarField) String() string { return proto.CompactTextString(m) } +func (*ScalarField) ProtoMessage() {} +func (*ScalarField) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{9} +} + +func (m *ScalarField) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ScalarField.Unmarshal(m, b) +} +func (m *ScalarField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ScalarField.Marshal(b, m, deterministic) +} +func (m *ScalarField) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScalarField.Merge(m, src) +} +func (m *ScalarField) XXX_Size() int { + return xxx_messageInfo_ScalarField.Size(m) +} +func (m *ScalarField) XXX_DiscardUnknown() { + xxx_messageInfo_ScalarField.DiscardUnknown(m) +} + +var xxx_messageInfo_ScalarField proto.InternalMessageInfo + +type isScalarField_Data interface { + isScalarField_Data() +} + +type ScalarField_BoolData struct { + BoolData *BoolArray `protobuf:"bytes,1,opt,name=bool_data,json=boolData,proto3,oneof"` +} + +type ScalarField_IntData struct { + IntData *IntArray `protobuf:"bytes,2,opt,name=int_data,json=intData,proto3,oneof"` +} + +type ScalarField_LongData struct { + LongData *LongArray `protobuf:"bytes,3,opt,name=long_data,json=longData,proto3,oneof"` +} + +type ScalarField_FloatData struct { + FloatData *FloatArray `protobuf:"bytes,4,opt,name=float_data,json=floatData,proto3,oneof"` +} + +type ScalarField_DoubleData struct { + DoubleData *DoubleArray `protobuf:"bytes,5,opt,name=double_data,json=doubleData,proto3,oneof"` +} + +type ScalarField_StringData struct { + StringData *StringArray `protobuf:"bytes,6,opt,name=string_data,json=stringData,proto3,oneof"` +} + +type ScalarField_BytesData struct { + BytesData *BytesArray `protobuf:"bytes,7,opt,name=bytes_data,json=bytesData,proto3,oneof"` +} + +func (*ScalarField_BoolData) isScalarField_Data() {} + +func (*ScalarField_IntData) isScalarField_Data() {} + +func (*ScalarField_LongData) isScalarField_Data() {} + +func (*ScalarField_FloatData) isScalarField_Data() {} + +func (*ScalarField_DoubleData) isScalarField_Data() {} + +func (*ScalarField_StringData) isScalarField_Data() {} + +func (*ScalarField_BytesData) isScalarField_Data() {} + +func (m *ScalarField) GetData() isScalarField_Data { + if m != nil { + return m.Data + } + return nil +} + +func (m *ScalarField) GetBoolData() *BoolArray { + if x, ok := m.GetData().(*ScalarField_BoolData); ok { + return x.BoolData + } + return nil +} + +func (m *ScalarField) GetIntData() *IntArray { + if x, ok := m.GetData().(*ScalarField_IntData); ok { + return x.IntData + } + return nil +} + +func (m *ScalarField) GetLongData() *LongArray { + if x, ok := m.GetData().(*ScalarField_LongData); ok { + return x.LongData + } + return nil +} + +func (m *ScalarField) GetFloatData() *FloatArray { + if x, ok := m.GetData().(*ScalarField_FloatData); ok { + return x.FloatData + } + return nil +} + +func (m *ScalarField) GetDoubleData() *DoubleArray { + if x, ok := m.GetData().(*ScalarField_DoubleData); ok { + return x.DoubleData + } + return nil +} + +func (m *ScalarField) GetStringData() *StringArray { + if x, ok := m.GetData().(*ScalarField_StringData); ok { + return x.StringData + } + return nil +} + +func (m *ScalarField) GetBytesData() *BytesArray { + if x, ok := m.GetData().(*ScalarField_BytesData); ok { + return x.BytesData + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ScalarField) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ScalarField_BoolData)(nil), + (*ScalarField_IntData)(nil), + (*ScalarField_LongData)(nil), + (*ScalarField_FloatData)(nil), + (*ScalarField_DoubleData)(nil), + (*ScalarField_StringData)(nil), + (*ScalarField_BytesData)(nil), + } +} + +type VectorField struct { + Dim int64 `protobuf:"varint,1,opt,name=dim,proto3" json:"dim,omitempty"` + // Types that are valid to be assigned to Data: + // *VectorField_FloatVector + // *VectorField_BinaryVector + Data isVectorField_Data `protobuf_oneof:"data"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VectorField) Reset() { *m = VectorField{} } +func (m *VectorField) String() string { return proto.CompactTextString(m) } +func (*VectorField) ProtoMessage() {} +func (*VectorField) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{10} +} + +func (m *VectorField) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VectorField.Unmarshal(m, b) +} +func (m *VectorField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VectorField.Marshal(b, m, deterministic) +} +func (m *VectorField) XXX_Merge(src proto.Message) { + xxx_messageInfo_VectorField.Merge(m, src) +} +func (m *VectorField) XXX_Size() int { + return xxx_messageInfo_VectorField.Size(m) +} +func (m *VectorField) XXX_DiscardUnknown() { + xxx_messageInfo_VectorField.DiscardUnknown(m) +} + +var xxx_messageInfo_VectorField proto.InternalMessageInfo + +func (m *VectorField) GetDim() int64 { + if m != nil { + return m.Dim + } + return 0 +} + +type isVectorField_Data interface { + isVectorField_Data() +} + +type VectorField_FloatVector struct { + FloatVector *FloatArray `protobuf:"bytes,2,opt,name=float_vector,json=floatVector,proto3,oneof"` +} + +type VectorField_BinaryVector struct { + BinaryVector []byte `protobuf:"bytes,3,opt,name=binary_vector,json=binaryVector,proto3,oneof"` +} + +func (*VectorField_FloatVector) isVectorField_Data() {} + +func (*VectorField_BinaryVector) isVectorField_Data() {} + +func (m *VectorField) GetData() isVectorField_Data { + if m != nil { + return m.Data + } + return nil +} + +func (m *VectorField) GetFloatVector() *FloatArray { + if x, ok := m.GetData().(*VectorField_FloatVector); ok { + return x.FloatVector + } + return nil +} + +func (m *VectorField) GetBinaryVector() []byte { + if x, ok := m.GetData().(*VectorField_BinaryVector); ok { + return x.BinaryVector + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*VectorField) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*VectorField_FloatVector)(nil), + (*VectorField_BinaryVector)(nil), + } +} + +type FieldData struct { + Type DataType `protobuf:"varint,1,opt,name=type,proto3,enum=milvus.proto.schema.DataType" json:"type,omitempty"` + FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` + // Types that are valid to be assigned to Field: + // *FieldData_Scalars + // *FieldData_Vectors + Field isFieldData_Field `protobuf_oneof:"field"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FieldData) Reset() { *m = FieldData{} } +func (m *FieldData) String() string { return proto.CompactTextString(m) } +func (*FieldData) ProtoMessage() {} +func (*FieldData) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{11} +} + +func (m *FieldData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FieldData.Unmarshal(m, b) +} +func (m *FieldData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FieldData.Marshal(b, m, deterministic) +} +func (m *FieldData) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldData.Merge(m, src) +} +func (m *FieldData) XXX_Size() int { + return xxx_messageInfo_FieldData.Size(m) +} +func (m *FieldData) XXX_DiscardUnknown() { + xxx_messageInfo_FieldData.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldData proto.InternalMessageInfo + +func (m *FieldData) GetType() DataType { + if m != nil { + return m.Type + } + return DataType_None +} + +func (m *FieldData) GetFieldName() string { + if m != nil { + return m.FieldName + } + return "" +} + +type isFieldData_Field interface { + isFieldData_Field() +} + +type FieldData_Scalars struct { + Scalars *ScalarField `protobuf:"bytes,3,opt,name=scalars,proto3,oneof"` +} + +type FieldData_Vectors struct { + Vectors *VectorField `protobuf:"bytes,4,opt,name=vectors,proto3,oneof"` +} + +func (*FieldData_Scalars) isFieldData_Field() {} + +func (*FieldData_Vectors) isFieldData_Field() {} + +func (m *FieldData) GetField() isFieldData_Field { + if m != nil { + return m.Field + } + return nil +} + +func (m *FieldData) GetScalars() *ScalarField { + if x, ok := m.GetField().(*FieldData_Scalars); ok { + return x.Scalars + } + return nil +} + +func (m *FieldData) GetVectors() *VectorField { + if x, ok := m.GetField().(*FieldData_Vectors); ok { + return x.Vectors + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FieldData) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FieldData_Scalars)(nil), + (*FieldData_Vectors)(nil), + } +} + +type IDs struct { + // Types that are valid to be assigned to IdField: + // *IDs_IntId + // *IDs_StrId + IdField isIDs_IdField `protobuf_oneof:"id_field"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IDs) Reset() { *m = IDs{} } +func (m *IDs) String() string { return proto.CompactTextString(m) } +func (*IDs) ProtoMessage() {} +func (*IDs) Descriptor() ([]byte, []int) { + return fileDescriptor_1c5fb4d8cc22d66a, []int{12} +} + +func (m *IDs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IDs.Unmarshal(m, b) +} +func (m *IDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IDs.Marshal(b, m, deterministic) +} +func (m *IDs) XXX_Merge(src proto.Message) { + xxx_messageInfo_IDs.Merge(m, src) +} +func (m *IDs) XXX_Size() int { + return xxx_messageInfo_IDs.Size(m) +} +func (m *IDs) XXX_DiscardUnknown() { + xxx_messageInfo_IDs.DiscardUnknown(m) +} + +var xxx_messageInfo_IDs proto.InternalMessageInfo + +type isIDs_IdField interface { + isIDs_IdField() +} + +type IDs_IntId struct { + IntId *LongArray `protobuf:"bytes,1,opt,name=int_id,json=intId,proto3,oneof"` +} + +type IDs_StrId struct { + StrId *StringArray `protobuf:"bytes,2,opt,name=str_id,json=strId,proto3,oneof"` +} + +func (*IDs_IntId) isIDs_IdField() {} + +func (*IDs_StrId) isIDs_IdField() {} + +func (m *IDs) GetIdField() isIDs_IdField { + if m != nil { + return m.IdField + } + return nil +} + +func (m *IDs) GetIntId() *LongArray { + if x, ok := m.GetIdField().(*IDs_IntId); ok { + return x.IntId + } + return nil +} + +func (m *IDs) GetStrId() *StringArray { + if x, ok := m.GetIdField().(*IDs_StrId); ok { + return x.StrId + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*IDs) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*IDs_IntId)(nil), + (*IDs_StrId)(nil), + } +} + func init() { proto.RegisterEnum("milvus.proto.schema.DataType", DataType_name, DataType_value) proto.RegisterType((*FieldSchema)(nil), "milvus.proto.schema.FieldSchema") proto.RegisterType((*CollectionSchema)(nil), "milvus.proto.schema.CollectionSchema") + proto.RegisterType((*BoolArray)(nil), "milvus.proto.schema.BoolArray") + proto.RegisterType((*IntArray)(nil), "milvus.proto.schema.IntArray") + proto.RegisterType((*LongArray)(nil), "milvus.proto.schema.LongArray") + proto.RegisterType((*FloatArray)(nil), "milvus.proto.schema.FloatArray") + proto.RegisterType((*DoubleArray)(nil), "milvus.proto.schema.DoubleArray") + proto.RegisterType((*BytesArray)(nil), "milvus.proto.schema.BytesArray") + proto.RegisterType((*StringArray)(nil), "milvus.proto.schema.StringArray") + proto.RegisterType((*ScalarField)(nil), "milvus.proto.schema.ScalarField") + proto.RegisterType((*VectorField)(nil), "milvus.proto.schema.VectorField") + proto.RegisterType((*FieldData)(nil), "milvus.proto.schema.FieldData") + proto.RegisterType((*IDs)(nil), "milvus.proto.schema.IDs") } func init() { proto.RegisterFile("schema.proto", fileDescriptor_1c5fb4d8cc22d66a) } var fileDescriptor_1c5fb4d8cc22d66a = []byte{ - // 443 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x41, 0x8b, 0xd4, 0x30, - 0x1c, 0xc5, 0xcd, 0x4c, 0xa7, 0x3b, 0xf3, 0x6f, 0x59, 0x43, 0x14, 0x29, 0x82, 0x50, 0x17, 0x0f, - 0x45, 0x70, 0x06, 0x67, 0x74, 0x59, 0x3c, 0x8e, 0x65, 0x61, 0x58, 0x90, 0xa1, 0x2b, 0x7b, 0xf0, - 0x32, 0x64, 0xda, 0xb8, 0x1b, 0x4c, 0x93, 0x92, 0xa6, 0x62, 0x3f, 0x85, 0x77, 0xbf, 0x91, 0xdf, - 0x4a, 0x92, 0x66, 0x60, 0xd4, 0x3d, 0xec, 0xed, 0xbd, 0x7f, 0xf2, 0xfe, 0xe4, 0xfd, 0x02, 0x71, - 0x5b, 0xde, 0xb1, 0x9a, 0xce, 0x1b, 0xad, 0x8c, 0x22, 0x4f, 0x6a, 0x2e, 0xbe, 0x77, 0xed, 0xe0, - 0xe6, 0xc3, 0xd1, 0xf3, 0xb8, 0x54, 0x75, 0x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a4, - 0x9d, 0x51, 0x9b, 0xdc, 0x03, 0xf5, 0x8e, 0x5c, 0x40, 0xe8, 0xfe, 0xa3, 0x4d, 0x02, 0xf7, 0xc4, - 0xf4, 0x5e, 0x4a, 0x47, 0x1f, 0x5a, 0xf8, 0xfb, 0xaf, 0x7f, 0x22, 0x98, 0x1e, 0xe8, 0x91, 0x29, - 0x04, 0x9f, 0x94, 0x64, 0xf8, 0x91, 0x55, 0x6b, 0xa5, 0x04, 0x46, 0x56, 0x6d, 0xa4, 0xb9, 0xc0, - 0x23, 0x32, 0x83, 0xc9, 0x46, 0x9a, 0xb7, 0xe7, 0x78, 0xec, 0xe5, 0x6a, 0x89, 0x03, 0x2f, 0xcf, - 0xdf, 0xe1, 0x89, 0x95, 0x97, 0x42, 0x51, 0x83, 0x81, 0x00, 0x84, 0xb9, 0xea, 0xf6, 0x82, 0xe1, - 0xc8, 0xea, 0x6b, 0xa3, 0xb9, 0xbc, 0xc5, 0x4f, 0x09, 0x86, 0x78, 0xcd, 0x25, 0xd5, 0xfd, 0x0d, - 0x2b, 0x8d, 0xd2, 0xb8, 0x22, 0x8f, 0x21, 0x72, 0x21, 0x3f, 0x60, 0xeb, 0xf7, 0x5f, 0x56, 0xb7, - 0xdc, 0xdc, 0x75, 0x7b, 0x4b, 0x76, 0x31, 0xf4, 0x78, 0xc3, 0x95, 0x57, 0x0b, 0x2e, 0x0d, 0xd3, - 0x92, 0x8a, 0x85, 0xab, 0xb6, 0x18, 0xaa, 0x35, 0xfb, 0x7d, 0xe8, 0xfc, 0xea, 0x4f, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xa8, 0x56, 0xc7, 0x76, 0xeb, 0x02, 0x00, 0x00, + // 842 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xd1, 0x8e, 0xdb, 0x44, + 0x14, 0xcd, 0xc4, 0x89, 0x63, 0x5f, 0x87, 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8, 0xe7, 0xc2, 0xa7, 0x5f, 0xc5, 0x7d, 0x13, 0xa2, 0x09, 0x62, 0xa0, 0x00, 0xbe, + 0xbd, 0x06, 0x71, 0x64, 0x62, 0x5b, 0x46, 0xfc, 0x31, 0x8d, 0x61, 0x38, 0x69, 0xcc, 0x3c, 0xce, + 0xe9, 0x87, 0x10, 0x5d, 0xee, 0xbd, 0x12, 0xf3, 0xc9, 0xd7, 0x3f, 0x5f, 0xdc, 0x08, 0xfd, 0x6e, + 0xbb, 0x34, 0x7f, 0x8a, 0x33, 0xdb, 0xd4, 0x97, 0x42, 0xb9, 0xe8, 0x4c, 0x48, 0xcd, 0x4b, 0xc9, + 0x8a, 0x33, 0xec, 0xf3, 0xcc, 0xf6, 0xb9, 0x59, 0x2e, 0x7d, 0x5c, 0x5f, 0xfc, 0x1b, 0x00, 0x00, + 0xff, 0xff, 0xe1, 0x3e, 0xe2, 0x25, 0xbb, 0x07, 0x00, 0x00, } diff --git a/internal/proxynode/impl.go b/internal/proxynode/impl.go index a87951f80e..144bdba3bc 100644 --- a/internal/proxynode/impl.go +++ b/internal/proxynode/impl.go @@ -1169,6 +1169,10 @@ func (node *ProxyNode) Search(ctx context.Context, request *milvuspb.SearchReque return qt.result, nil } +func (node *ProxyNode) Retrieve(ctx context.Context, request *milvuspb.RetrieveRequest) (*milvuspb.RetrieveResults, error) { + return nil, nil +} + func (node *ProxyNode) Flush(ctx context.Context, request *milvuspb.FlushRequest) (*commonpb.Status, error) { ft := &FlushTask{ ctx: ctx, diff --git a/internal/proxynode/task.go b/internal/proxynode/task.go index d5cf7c9943..f25ded4789 100644 --- a/internal/proxynode/task.go +++ b/internal/proxynode/task.go @@ -47,6 +47,7 @@ const ( CreateCollectionTaskName = "CreateCollectionTask" DropCollectionTaskName = "DropCollectionTask" SearchTaskName = "SearchTask" + RetrieveTaskName = "RetrieveTask" AnnsFieldKey = "anns_field" TopKKey = "topk" MetricTypeKey = "metric_type"