From 175e2bfa1a1a4b49cba916de627a7ad821c269f2 Mon Sep 17 00:00:00 2001 From: XuanYang-cn Date: Thu, 5 May 2022 20:03:47 +0800 Subject: [PATCH] Enable gitsubmodule for milvus-proto in pymilvus (#975) See also: milvus-io/milvus#15653, #909 Signed-off-by: XuanYang-cn --- .gitmodules | 3 + CONTRIBUTING.md | 2 +- Makefile | 7 +- README.md | 23 + pymilvus/grpc_gen/common_pb2.py | 62 +- pymilvus/grpc_gen/milvus-proto | 1 + pymilvus/grpc_gen/milvus_pb2.py | 163 ++++- pymilvus/grpc_gen/milvus_pb2_grpc.py | 33 + pymilvus/grpc_gen/proto/common.proto | 225 ------- pymilvus/grpc_gen/proto/milvus.proto | 915 -------------------------- pymilvus/grpc_gen/proto/python_gen.sh | 10 - pymilvus/grpc_gen/proto/schema.proto | 132 ---- pymilvus/grpc_gen/python_gen.sh | 12 + 13 files changed, 243 insertions(+), 1345 deletions(-) create mode 100644 .gitmodules create mode 160000 pymilvus/grpc_gen/milvus-proto delete mode 100644 pymilvus/grpc_gen/proto/common.proto delete mode 100644 pymilvus/grpc_gen/proto/milvus.proto delete mode 100755 pymilvus/grpc_gen/proto/python_gen.sh delete mode 100644 pymilvus/grpc_gen/proto/schema.proto create mode 100755 pymilvus/grpc_gen/python_gen.sh diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..e2d891f4f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "pymilvus/grpc_gen/milvus-proto"] + path = pymilvus/grpc_gen/milvus-proto + url = https://github.com/milvus-io/milvus-proto.git diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 86d27776d..266568221 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,4 +69,4 @@ Note: the problems, features, and questions mentioned here are not limited to Py ## Congratulations! You are now the contributor to the Milvus community! -Apart from dealing with codes and machines, you are always welcome to communicate with any member from the Milvus community. New faces join us every day, and they may as well encounter the same challenges as you faced beore. Feel free to help them. You can pass on the collaborative spirit from the assistance you acquired when you first joined the community. Let us build a collaborative, open-source, exuberant, and tolerant community together! \ No newline at end of file +Apart from dealing with codes and machines, you are always welcome to communicate with any member from the Milvus community. New faces join us every day, and they may as well encounter the same challenges as you faced beore. Feel free to help them. You can pass on the collaborative spirit from the assistance you acquired when you first joined the community. Let us build a collaborative, open-source, exuberant, and tolerant community together! diff --git a/Makefile b/Makefile index 46f4295e8..4dbbc37d2 100644 --- a/Makefile +++ b/Makefile @@ -16,5 +16,8 @@ example_index: package: python3 -m build --sdist --wheel --outdir dist/ . -gen_proto: - cd pymilvus/grpc_gen/proto && ./python_gen.sh +get_proto: + git submodule update --init + +gen_proto: get_proto + cd pymilvus/grpc_gen && ./python_gen.sh diff --git a/README.md b/README.md index 420081542..ef0c353cf 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,29 @@ You can upgrade PyMilvus to the latest version by: $ pip3 install --upgrade pymilvus ``` +## FAQ +Q1. How to get submodules? + +A1. The following command will only get the latest protos , for protos of certain version, see +[milvus-proto](https://github.com/milvus-io/milvus-proto#usage) for details. +```shell +$ git sumodule update --init +``` + +Q2. How to generate python files from milvus-proto? + +A2. +```shell +$ make gen_proto +``` + +Q3. How to use the local PyMilvus repository for Milvus server? + +A3. +```shell +$ python setup.py install +``` + ## Documentation diff --git a/pymilvus/grpc_gen/common_pb2.py b/pymilvus/grpc_gen/common_pb2.py index 5091ab852..98c01a959 100644 --- a/pymilvus/grpc_gen/common_pb2.py +++ b/pymilvus/grpc_gen/common_pb2.py @@ -20,7 +20,7 @@ syntax='proto3', serialized_options=b'\n\016io.milvus.grpcB\013CommonProtoP\001Z3github.com/milvus-io/milvus/internal/proto/commonpb\240\001\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x0c\x63ommon.proto\x12\x13milvus.proto.common\"L\n\x06Status\x12\x32\n\nerror_code\x18\x01 \x01(\x0e\x32\x1e.milvus.proto.common.ErrorCode\x12\x0e\n\x06reason\x18\x02 \x01(\t\"*\n\x0cKeyValuePair\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"(\n\x0bKeyDataPair\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"\x15\n\x04\x42lob\x12\r\n\x05value\x18\x01 \x01(\x0c\"#\n\x07\x41\x64\x64ress\x12\n\n\x02ip\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x03\"m\n\x07MsgBase\x12.\n\x08msg_type\x18\x01 \x01(\x0e\x32\x1c.milvus.proto.common.MsgType\x12\r\n\x05msgID\x18\x02 \x01(\x03\x12\x11\n\ttimestamp\x18\x03 \x01(\x04\x12\x10\n\x08sourceID\x18\x04 \x01(\x03\"7\n\tMsgHeader\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\"M\n\x0c\x44MLMsgHeader\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x11\n\tshardName\x18\x02 \x01(\t*\xfe\x05\n\tErrorCode\x12\x0b\n\x07Success\x10\x00\x12\x13\n\x0fUnexpectedError\x10\x01\x12\x11\n\rConnectFailed\x10\x02\x12\x14\n\x10PermissionDenied\x10\x03\x12\x17\n\x13\x43ollectionNotExists\x10\x04\x12\x13\n\x0fIllegalArgument\x10\x05\x12\x14\n\x10IllegalDimension\x10\x07\x12\x14\n\x10IllegalIndexType\x10\x08\x12\x19\n\x15IllegalCollectionName\x10\t\x12\x0f\n\x0bIllegalTOPK\x10\n\x12\x14\n\x10IllegalRowRecord\x10\x0b\x12\x13\n\x0fIllegalVectorID\x10\x0c\x12\x17\n\x13IllegalSearchResult\x10\r\x12\x10\n\x0c\x46ileNotFound\x10\x0e\x12\x0e\n\nMetaFailed\x10\x0f\x12\x0f\n\x0b\x43\x61\x63heFailed\x10\x10\x12\x16\n\x12\x43\x61nnotCreateFolder\x10\x11\x12\x14\n\x10\x43\x61nnotCreateFile\x10\x12\x12\x16\n\x12\x43\x61nnotDeleteFolder\x10\x13\x12\x14\n\x10\x43\x61nnotDeleteFile\x10\x14\x12\x13\n\x0f\x42uildIndexError\x10\x15\x12\x10\n\x0cIllegalNLIST\x10\x16\x12\x15\n\x11IllegalMetricType\x10\x17\x12\x0f\n\x0bOutOfMemory\x10\x18\x12\x11\n\rIndexNotExist\x10\x19\x12\x13\n\x0f\x45mptyCollection\x10\x1a\x12\x1b\n\x17UpdateImportTaskFailure\x10\x1b\x12\x1a\n\x16\x43ollectionNameNotFound\x10\x1c\x12\x1b\n\x17\x43reateCredentialFailure\x10\x1d\x12\x1b\n\x17UpdateCredentialFailure\x10\x1e\x12\x1b\n\x17\x44\x65leteCredentialFailure\x10\x1f\x12\x18\n\x14GetCredentialFailure\x10 \x12\x18\n\x14ListCredUsersFailure\x10!\x12\x12\n\rDDRequestRace\x10\xe8\x07*X\n\nIndexState\x12\x12\n\x0eIndexStateNone\x10\x00\x12\x0c\n\x08Unissued\x10\x01\x12\x0e\n\nInProgress\x10\x02\x12\x0c\n\x08\x46inished\x10\x03\x12\n\n\x06\x46\x61iled\x10\x04*\x82\x01\n\x0cSegmentState\x12\x14\n\x10SegmentStateNone\x10\x00\x12\x0c\n\x08NotExist\x10\x01\x12\x0b\n\x07Growing\x10\x02\x12\n\n\x06Sealed\x10\x03\x12\x0b\n\x07\x46lushed\x10\x04\x12\x0c\n\x08\x46lushing\x10\x05\x12\x0b\n\x07\x44ropped\x10\x06\x12\r\n\tImporting\x10\x07*\xc7\n\n\x07MsgType\x12\r\n\tUndefined\x10\x00\x12\x14\n\x10\x43reateCollection\x10\x64\x12\x12\n\x0e\x44ropCollection\x10\x65\x12\x11\n\rHasCollection\x10\x66\x12\x16\n\x12\x44\x65scribeCollection\x10g\x12\x13\n\x0fShowCollections\x10h\x12\x14\n\x10GetSystemConfigs\x10i\x12\x12\n\x0eLoadCollection\x10j\x12\x15\n\x11ReleaseCollection\x10k\x12\x0f\n\x0b\x43reateAlias\x10l\x12\r\n\tDropAlias\x10m\x12\x0e\n\nAlterAlias\x10n\x12\x14\n\x0f\x43reatePartition\x10\xc8\x01\x12\x12\n\rDropPartition\x10\xc9\x01\x12\x11\n\x0cHasPartition\x10\xca\x01\x12\x16\n\x11\x44\x65scribePartition\x10\xcb\x01\x12\x13\n\x0eShowPartitions\x10\xcc\x01\x12\x13\n\x0eLoadPartitions\x10\xcd\x01\x12\x16\n\x11ReleasePartitions\x10\xce\x01\x12\x11\n\x0cShowSegments\x10\xfa\x01\x12\x14\n\x0f\x44\x65scribeSegment\x10\xfb\x01\x12\x11\n\x0cLoadSegments\x10\xfc\x01\x12\x14\n\x0fReleaseSegments\x10\xfd\x01\x12\x14\n\x0fHandoffSegments\x10\xfe\x01\x12\x18\n\x13LoadBalanceSegments\x10\xff\x01\x12\x15\n\x10\x44\x65scribeSegments\x10\x80\x02\x12\x10\n\x0b\x43reateIndex\x10\xac\x02\x12\x12\n\rDescribeIndex\x10\xad\x02\x12\x0e\n\tDropIndex\x10\xae\x02\x12\x0b\n\x06Insert\x10\x90\x03\x12\x0b\n\x06\x44\x65lete\x10\x91\x03\x12\n\n\x05\x46lush\x10\x92\x03\x12\x0b\n\x06Search\x10\xf4\x03\x12\x11\n\x0cSearchResult\x10\xf5\x03\x12\x12\n\rGetIndexState\x10\xf6\x03\x12\x1a\n\x15GetIndexBuildProgress\x10\xf7\x03\x12\x1c\n\x17GetCollectionStatistics\x10\xf8\x03\x12\x1b\n\x16GetPartitionStatistics\x10\xf9\x03\x12\r\n\x08Retrieve\x10\xfa\x03\x12\x13\n\x0eRetrieveResult\x10\xfb\x03\x12\x14\n\x0fWatchDmChannels\x10\xfc\x03\x12\x15\n\x10RemoveDmChannels\x10\xfd\x03\x12\x17\n\x12WatchQueryChannels\x10\xfe\x03\x12\x18\n\x13RemoveQueryChannels\x10\xff\x03\x12\x1d\n\x18SealedSegmentsChangeInfo\x10\x80\x04\x12\x17\n\x12WatchDeltaChannels\x10\x81\x04\x12\x14\n\x0fGetShardLeaders\x10\x82\x04\x12\x10\n\x0bSegmentInfo\x10\xd8\x04\x12\x0f\n\nSystemInfo\x10\xd9\x04\x12\x14\n\x0fGetRecoveryInfo\x10\xda\x04\x12\x14\n\x0fGetSegmentState\x10\xdb\x04\x12\r\n\x08TimeTick\x10\xb0\t\x12\x13\n\x0eQueryNodeStats\x10\xb1\t\x12\x0e\n\tLoadIndex\x10\xb2\t\x12\x0e\n\tRequestID\x10\xb3\t\x12\x0f\n\nRequestTSO\x10\xb4\t\x12\x14\n\x0f\x41llocateSegment\x10\xb5\t\x12\x16\n\x11SegmentStatistics\x10\xb6\t\x12\x15\n\x10SegmentFlushDone\x10\xb7\t\x12\x0f\n\nDataNodeTt\x10\xb8\t\x12\x15\n\x10\x43reateCredential\x10\xdc\x0b\x12\x12\n\rGetCredential\x10\xdd\x0b\x12\x15\n\x10\x44\x65leteCredential\x10\xde\x0b\x12\x15\n\x10UpdateCredential\x10\xdf\x0b\x12\x16\n\x11ListCredUsernames\x10\xe0\x0b*\"\n\x07\x44slType\x12\x07\n\x03\x44sl\x10\x00\x12\x0e\n\nBoolExprV1\x10\x01*B\n\x0f\x43ompactionState\x12\x11\n\rUndefiedState\x10\x00\x12\r\n\tExecuting\x10\x01\x12\r\n\tCompleted\x10\x02*X\n\x10\x43onsistencyLevel\x12\n\n\x06Strong\x10\x00\x12\x0b\n\x07Session\x10\x01\x12\x0b\n\x07\x42ounded\x10\x02\x12\x0e\n\nEventually\x10\x03\x12\x0e\n\nCustomized\x10\x04*\x97\x01\n\x0bImportState\x12\x11\n\rImportPending\x10\x00\x12\x10\n\x0cImportFailed\x10\x01\x12\x11\n\rImportStarted\x10\x02\x12\x14\n\x10ImportDownloaded\x10\x03\x12\x10\n\x0cImportParsed\x10\x04\x12\x13\n\x0fImportPersisted\x10\x05\x12\x13\n\x0fImportCompleted\x10\x06\x42W\n\x0eio.milvus.grpcB\x0b\x43ommonProtoP\x01Z3github.com/milvus-io/milvus/internal/proto/commonpb\xa0\x01\x01\x62\x06proto3' + serialized_pb=b'\n\x0c\x63ommon.proto\x12\x13milvus.proto.common\"L\n\x06Status\x12\x32\n\nerror_code\x18\x01 \x01(\x0e\x32\x1e.milvus.proto.common.ErrorCode\x12\x0e\n\x06reason\x18\x02 \x01(\t\"*\n\x0cKeyValuePair\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"(\n\x0bKeyDataPair\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"\x15\n\x04\x42lob\x12\r\n\x05value\x18\x01 \x01(\x0c\"#\n\x07\x41\x64\x64ress\x12\n\n\x02ip\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x03\"m\n\x07MsgBase\x12.\n\x08msg_type\x18\x01 \x01(\x0e\x32\x1c.milvus.proto.common.MsgType\x12\r\n\x05msgID\x18\x02 \x01(\x03\x12\x11\n\ttimestamp\x18\x03 \x01(\x04\x12\x10\n\x08sourceID\x18\x04 \x01(\x03\"7\n\tMsgHeader\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\"M\n\x0c\x44MLMsgHeader\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x11\n\tshardName\x18\x02 \x01(\t*\xfe\x05\n\tErrorCode\x12\x0b\n\x07Success\x10\x00\x12\x13\n\x0fUnexpectedError\x10\x01\x12\x11\n\rConnectFailed\x10\x02\x12\x14\n\x10PermissionDenied\x10\x03\x12\x17\n\x13\x43ollectionNotExists\x10\x04\x12\x13\n\x0fIllegalArgument\x10\x05\x12\x14\n\x10IllegalDimension\x10\x07\x12\x14\n\x10IllegalIndexType\x10\x08\x12\x19\n\x15IllegalCollectionName\x10\t\x12\x0f\n\x0bIllegalTOPK\x10\n\x12\x14\n\x10IllegalRowRecord\x10\x0b\x12\x13\n\x0fIllegalVectorID\x10\x0c\x12\x17\n\x13IllegalSearchResult\x10\r\x12\x10\n\x0c\x46ileNotFound\x10\x0e\x12\x0e\n\nMetaFailed\x10\x0f\x12\x0f\n\x0b\x43\x61\x63heFailed\x10\x10\x12\x16\n\x12\x43\x61nnotCreateFolder\x10\x11\x12\x14\n\x10\x43\x61nnotCreateFile\x10\x12\x12\x16\n\x12\x43\x61nnotDeleteFolder\x10\x13\x12\x14\n\x10\x43\x61nnotDeleteFile\x10\x14\x12\x13\n\x0f\x42uildIndexError\x10\x15\x12\x10\n\x0cIllegalNLIST\x10\x16\x12\x15\n\x11IllegalMetricType\x10\x17\x12\x0f\n\x0bOutOfMemory\x10\x18\x12\x11\n\rIndexNotExist\x10\x19\x12\x13\n\x0f\x45mptyCollection\x10\x1a\x12\x1b\n\x17UpdateImportTaskFailure\x10\x1b\x12\x1a\n\x16\x43ollectionNameNotFound\x10\x1c\x12\x1b\n\x17\x43reateCredentialFailure\x10\x1d\x12\x1b\n\x17UpdateCredentialFailure\x10\x1e\x12\x1b\n\x17\x44\x65leteCredentialFailure\x10\x1f\x12\x18\n\x14GetCredentialFailure\x10 \x12\x18\n\x14ListCredUsersFailure\x10!\x12\x12\n\rDDRequestRace\x10\xe8\x07*X\n\nIndexState\x12\x12\n\x0eIndexStateNone\x10\x00\x12\x0c\n\x08Unissued\x10\x01\x12\x0e\n\nInProgress\x10\x02\x12\x0c\n\x08\x46inished\x10\x03\x12\n\n\x06\x46\x61iled\x10\x04*\x82\x01\n\x0cSegmentState\x12\x14\n\x10SegmentStateNone\x10\x00\x12\x0c\n\x08NotExist\x10\x01\x12\x0b\n\x07Growing\x10\x02\x12\n\n\x06Sealed\x10\x03\x12\x0b\n\x07\x46lushed\x10\x04\x12\x0c\n\x08\x46lushing\x10\x05\x12\x0b\n\x07\x44ropped\x10\x06\x12\r\n\tImporting\x10\x07*\xd9\n\n\x07MsgType\x12\r\n\tUndefined\x10\x00\x12\x14\n\x10\x43reateCollection\x10\x64\x12\x12\n\x0e\x44ropCollection\x10\x65\x12\x11\n\rHasCollection\x10\x66\x12\x16\n\x12\x44\x65scribeCollection\x10g\x12\x13\n\x0fShowCollections\x10h\x12\x14\n\x10GetSystemConfigs\x10i\x12\x12\n\x0eLoadCollection\x10j\x12\x15\n\x11ReleaseCollection\x10k\x12\x0f\n\x0b\x43reateAlias\x10l\x12\r\n\tDropAlias\x10m\x12\x0e\n\nAlterAlias\x10n\x12\x14\n\x0f\x43reatePartition\x10\xc8\x01\x12\x12\n\rDropPartition\x10\xc9\x01\x12\x11\n\x0cHasPartition\x10\xca\x01\x12\x16\n\x11\x44\x65scribePartition\x10\xcb\x01\x12\x13\n\x0eShowPartitions\x10\xcc\x01\x12\x13\n\x0eLoadPartitions\x10\xcd\x01\x12\x16\n\x11ReleasePartitions\x10\xce\x01\x12\x11\n\x0cShowSegments\x10\xfa\x01\x12\x14\n\x0f\x44\x65scribeSegment\x10\xfb\x01\x12\x11\n\x0cLoadSegments\x10\xfc\x01\x12\x14\n\x0fReleaseSegments\x10\xfd\x01\x12\x14\n\x0fHandoffSegments\x10\xfe\x01\x12\x18\n\x13LoadBalanceSegments\x10\xff\x01\x12\x15\n\x10\x44\x65scribeSegments\x10\x80\x02\x12\x10\n\x0b\x43reateIndex\x10\xac\x02\x12\x12\n\rDescribeIndex\x10\xad\x02\x12\x0e\n\tDropIndex\x10\xae\x02\x12\x0b\n\x06Insert\x10\x90\x03\x12\x0b\n\x06\x44\x65lete\x10\x91\x03\x12\n\n\x05\x46lush\x10\x92\x03\x12\x0b\n\x06Search\x10\xf4\x03\x12\x11\n\x0cSearchResult\x10\xf5\x03\x12\x12\n\rGetIndexState\x10\xf6\x03\x12\x1a\n\x15GetIndexBuildProgress\x10\xf7\x03\x12\x1c\n\x17GetCollectionStatistics\x10\xf8\x03\x12\x1b\n\x16GetPartitionStatistics\x10\xf9\x03\x12\r\n\x08Retrieve\x10\xfa\x03\x12\x13\n\x0eRetrieveResult\x10\xfb\x03\x12\x14\n\x0fWatchDmChannels\x10\xfc\x03\x12\x15\n\x10RemoveDmChannels\x10\xfd\x03\x12\x17\n\x12WatchQueryChannels\x10\xfe\x03\x12\x18\n\x13RemoveQueryChannels\x10\xff\x03\x12\x1d\n\x18SealedSegmentsChangeInfo\x10\x80\x04\x12\x17\n\x12WatchDeltaChannels\x10\x81\x04\x12\x14\n\x0fGetShardLeaders\x10\x82\x04\x12\x10\n\x0bGetReplicas\x10\x83\x04\x12\x10\n\x0bSegmentInfo\x10\xd8\x04\x12\x0f\n\nSystemInfo\x10\xd9\x04\x12\x14\n\x0fGetRecoveryInfo\x10\xda\x04\x12\x14\n\x0fGetSegmentState\x10\xdb\x04\x12\r\n\x08TimeTick\x10\xb0\t\x12\x13\n\x0eQueryNodeStats\x10\xb1\t\x12\x0e\n\tLoadIndex\x10\xb2\t\x12\x0e\n\tRequestID\x10\xb3\t\x12\x0f\n\nRequestTSO\x10\xb4\t\x12\x14\n\x0f\x41llocateSegment\x10\xb5\t\x12\x16\n\x11SegmentStatistics\x10\xb6\t\x12\x15\n\x10SegmentFlushDone\x10\xb7\t\x12\x0f\n\nDataNodeTt\x10\xb8\t\x12\x15\n\x10\x43reateCredential\x10\xdc\x0b\x12\x12\n\rGetCredential\x10\xdd\x0b\x12\x15\n\x10\x44\x65leteCredential\x10\xde\x0b\x12\x15\n\x10UpdateCredential\x10\xdf\x0b\x12\x16\n\x11ListCredUsernames\x10\xe0\x0b*\"\n\x07\x44slType\x12\x07\n\x03\x44sl\x10\x00\x12\x0e\n\nBoolExprV1\x10\x01*B\n\x0f\x43ompactionState\x12\x11\n\rUndefiedState\x10\x00\x12\r\n\tExecuting\x10\x01\x12\r\n\tCompleted\x10\x02*X\n\x10\x43onsistencyLevel\x12\n\n\x06Strong\x10\x00\x12\x0b\n\x07Session\x10\x01\x12\x0b\n\x07\x42ounded\x10\x02\x12\x0e\n\nEventually\x10\x03\x12\x0e\n\nCustomized\x10\x04*\x97\x01\n\x0bImportState\x12\x11\n\rImportPending\x10\x00\x12\x10\n\x0cImportFailed\x10\x01\x12\x11\n\rImportStarted\x10\x02\x12\x14\n\x10ImportDownloaded\x10\x03\x12\x10\n\x0cImportParsed\x10\x04\x12\x13\n\x0fImportPersisted\x10\x05\x12\x13\n\x0fImportCompleted\x10\x06\x42W\n\x0eio.milvus.grpcB\x0b\x43ommonProtoP\x01Z3github.com/milvus-io/milvus/internal/proto/commonpb\xa0\x01\x01\x62\x06proto3' ) _ERRORCODE = _descriptor.EnumDescriptor( @@ -549,92 +549,97 @@ type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='SegmentInfo', index=47, number=600, + name='GetReplicas', index=47, number=515, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='SystemInfo', index=48, number=601, + name='SegmentInfo', index=48, number=600, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='GetRecoveryInfo', index=49, number=602, + name='SystemInfo', index=49, number=601, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='GetSegmentState', index=50, number=603, + name='GetRecoveryInfo', index=50, number=602, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='TimeTick', index=51, number=1200, + name='GetSegmentState', index=51, number=603, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='QueryNodeStats', index=52, number=1201, + name='TimeTick', index=52, number=1200, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='LoadIndex', index=53, number=1202, + name='QueryNodeStats', index=53, number=1201, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='RequestID', index=54, number=1203, + name='LoadIndex', index=54, number=1202, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='RequestTSO', index=55, number=1204, + name='RequestID', index=55, number=1203, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='AllocateSegment', index=56, number=1205, + name='RequestTSO', index=56, number=1204, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='SegmentStatistics', index=57, number=1206, + name='AllocateSegment', index=57, number=1205, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='SegmentFlushDone', index=58, number=1207, + name='SegmentStatistics', index=58, number=1206, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='DataNodeTt', index=59, number=1208, + name='SegmentFlushDone', index=59, number=1207, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='CreateCredential', index=60, number=1500, + name='DataNodeTt', index=60, number=1208, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='GetCredential', index=61, number=1501, + name='CreateCredential', index=61, number=1500, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='DeleteCredential', index=62, number=1502, + name='GetCredential', index=62, number=1501, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='UpdateCredential', index=63, number=1503, + name='DeleteCredential', index=63, number=1502, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( - name='ListCredUsernames', index=64, number=1504, + name='UpdateCredential', index=64, number=1503, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='ListCredUsernames', index=65, number=1504, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), @@ -642,7 +647,7 @@ containing_type=None, serialized_options=None, serialized_start=1501, - serialized_end=2852, + serialized_end=2870, ) _sym_db.RegisterEnumDescriptor(_MSGTYPE) @@ -667,8 +672,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2854, - serialized_end=2888, + serialized_start=2872, + serialized_end=2906, ) _sym_db.RegisterEnumDescriptor(_DSLTYPE) @@ -698,8 +703,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2890, - serialized_end=2956, + serialized_start=2908, + serialized_end=2974, ) _sym_db.RegisterEnumDescriptor(_COMPACTIONSTATE) @@ -739,8 +744,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2958, - serialized_end=3046, + serialized_start=2976, + serialized_end=3064, ) _sym_db.RegisterEnumDescriptor(_CONSISTENCYLEVEL) @@ -790,8 +795,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3049, - serialized_end=3200, + serialized_start=3067, + serialized_end=3218, ) _sym_db.RegisterEnumDescriptor(_IMPORTSTATE) @@ -890,6 +895,7 @@ SealedSegmentsChangeInfo = 512 WatchDeltaChannels = 513 GetShardLeaders = 514 +GetReplicas = 515 SegmentInfo = 600 SystemInfo = 601 GetRecoveryInfo = 602 diff --git a/pymilvus/grpc_gen/milvus-proto b/pymilvus/grpc_gen/milvus-proto new file mode 160000 index 000000000..f56828744 --- /dev/null +++ b/pymilvus/grpc_gen/milvus-proto @@ -0,0 +1 @@ +Subproject commit f56828744189e6b7b71d104ff2d8b37a13e089d7 diff --git a/pymilvus/grpc_gen/milvus_pb2.py b/pymilvus/grpc_gen/milvus_pb2.py index cbde5fa63..a07a96f58 100644 --- a/pymilvus/grpc_gen/milvus_pb2.py +++ b/pymilvus/grpc_gen/milvus_pb2.py @@ -22,7 +22,7 @@ syntax='proto3', serialized_options=b'\n\016io.milvus.grpcB\013MilvusProtoP\001Z3github.com/milvus-io/milvus/internal/proto/milvuspb\240\001\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x0cmilvus.proto\x12\x13milvus.proto.milvus\x1a\x0c\x63ommon.proto\x1a\x0cschema.proto\"y\n\x12\x43reateAliasRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\r\n\x05\x61lias\x18\x04 \x01(\t\"^\n\x10\x44ropAliasRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\r\n\x05\x61lias\x18\x03 \x01(\t\"x\n\x11\x41lterAliasRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\r\n\x05\x61lias\x18\x04 \x01(\t\"\xd5\x01\n\x17\x43reateCollectionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x0e\n\x06schema\x18\x04 \x01(\x0c\x12\x12\n\nshards_num\x18\x05 \x01(\x05\x12@\n\x11\x63onsistency_level\x18\x06 \x01(\x0e\x32%.milvus.proto.common.ConsistencyLevel\"m\n\x15\x44ropCollectionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\"\x80\x01\n\x14HasCollectionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x12\n\ntime_stamp\x18\x04 \x01(\x04\"J\n\x0c\x42oolResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\r\n\x05value\x18\x02 \x01(\x08\"L\n\x0eStringResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\r\n\x05value\x18\x02 \x01(\t\"\x9b\x01\n\x19\x44\x65scribeCollectionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x14\n\x0c\x63ollectionID\x18\x04 \x01(\x03\x12\x12\n\ntime_stamp\x18\x05 \x01(\x04\"\xca\x03\n\x1a\x44\x65scribeCollectionResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x35\n\x06schema\x18\x02 \x01(\x0b\x32%.milvus.proto.schema.CollectionSchema\x12\x14\n\x0c\x63ollectionID\x18\x03 \x01(\x03\x12\x1d\n\x15virtual_channel_names\x18\x04 \x03(\t\x12\x1e\n\x16physical_channel_names\x18\x05 \x03(\t\x12\x19\n\x11\x63reated_timestamp\x18\x06 \x01(\x04\x12\x1d\n\x15\x63reated_utc_timestamp\x18\x07 \x01(\x04\x12\x12\n\nshards_num\x18\x08 \x01(\x05\x12\x0f\n\x07\x61liases\x18\t \x03(\t\x12\x39\n\x0fstart_positions\x18\n \x03(\x0b\x32 .milvus.proto.common.KeyDataPair\x12@\n\x11\x63onsistency_level\x18\x0b \x01(\x0e\x32%.milvus.proto.common.ConsistencyLevel\x12\x17\n\x0f\x63ollection_name\x18\x0c \x01(\t\"\x85\x01\n\x15LoadCollectionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0ereplica_number\x18\x04 \x01(\x05\"p\n\x18ReleaseCollectionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\"v\n\x1eGetCollectionStatisticsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\"\x80\x01\n\x1fGetCollectionStatisticsResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x30\n\x05stats\x18\x02 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\"\xb0\x01\n\x16ShowCollectionsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x12\n\ntime_stamp\x18\x03 \x01(\x04\x12+\n\x04type\x18\x04 \x01(\x0e\x32\x1d.milvus.proto.milvus.ShowType\x12\x18\n\x10\x63ollection_names\x18\x05 \x03(\t\"\xd2\x01\n\x17ShowCollectionsResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x18\n\x10\x63ollection_names\x18\x02 \x03(\t\x12\x16\n\x0e\x63ollection_ids\x18\x03 \x03(\x03\x12\x1a\n\x12\x63reated_timestamps\x18\x04 \x03(\x04\x12\x1e\n\x16\x63reated_utc_timestamps\x18\x05 \x03(\x04\x12\x1c\n\x14inMemory_percentages\x18\x06 \x03(\x03\"\x86\x01\n\x16\x43reatePartitionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0epartition_name\x18\x04 \x01(\t\"\x84\x01\n\x14\x44ropPartitionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0epartition_name\x18\x04 \x01(\t\"\x83\x01\n\x13HasPartitionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0epartition_name\x18\x04 \x01(\t\"\x9e\x01\n\x15LoadPartitionsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x17\n\x0fpartition_names\x18\x04 \x03(\t\x12\x16\n\x0ereplica_number\x18\x05 \x01(\x05\"\x89\x01\n\x18ReleasePartitionsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x17\n\x0fpartition_names\x18\x04 \x03(\t\"\x8d\x01\n\x1dGetPartitionStatisticsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0epartition_name\x18\x04 \x01(\t\"\x7f\n\x1eGetPartitionStatisticsResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x30\n\x05stats\x18\x02 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\"\xc9\x01\n\x15ShowPartitionsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x14\n\x0c\x63ollectionID\x18\x04 \x01(\x03\x12\x17\n\x0fpartition_names\x18\x05 \x03(\t\x12+\n\x04type\x18\x06 \x01(\x0e\x32\x1d.milvus.proto.milvus.ShowType\"\xce\x01\n\x16ShowPartitionsResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x17\n\x0fpartition_names\x18\x02 \x03(\t\x12\x14\n\x0cpartitionIDs\x18\x03 \x03(\x03\x12\x1a\n\x12\x63reated_timestamps\x18\x04 \x03(\x04\x12\x1e\n\x16\x63reated_utc_timestamps\x18\x05 \x03(\x04\x12\x1c\n\x14inMemory_percentages\x18\x06 \x03(\x03\"m\n\x16\x44\x65scribeSegmentRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x14\n\x0c\x63ollectionID\x18\x02 \x01(\x03\x12\x11\n\tsegmentID\x18\x03 \x01(\x03\"\x8f\x01\n\x17\x44\x65scribeSegmentResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x0f\n\x07indexID\x18\x02 \x01(\x03\x12\x0f\n\x07\x62uildID\x18\x03 \x01(\x03\x12\x14\n\x0c\x65nable_index\x18\x04 \x01(\x08\x12\x0f\n\x07\x66ieldID\x18\x05 \x01(\x03\"l\n\x13ShowSegmentsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x14\n\x0c\x63ollectionID\x18\x02 \x01(\x03\x12\x13\n\x0bpartitionID\x18\x03 \x01(\x03\"W\n\x14ShowSegmentsResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x12\n\nsegmentIDs\x18\x02 \x03(\x03\"\xcb\x01\n\x12\x43reateIndexRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x12\n\nfield_name\x18\x04 \x01(\t\x12\x37\n\x0c\x65xtra_params\x18\x05 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\x12\x12\n\nindex_name\x18\x06 \x01(\t\"\x94\x01\n\x14\x44\x65scribeIndexRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x12\n\nfield_name\x18\x04 \x01(\t\x12\x12\n\nindex_name\x18\x05 \x01(\t\"~\n\x10IndexDescription\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x0f\n\x07indexID\x18\x02 \x01(\x03\x12\x31\n\x06params\x18\x03 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\x12\x12\n\nfield_name\x18\x04 \x01(\t\"\x87\x01\n\x15\x44\x65scribeIndexResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x41\n\x12index_descriptions\x18\x02 \x03(\x0b\x32%.milvus.proto.milvus.IndexDescription\"\x9c\x01\n\x1cGetIndexBuildProgressRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x12\n\nfield_name\x18\x04 \x01(\t\x12\x12\n\nindex_name\x18\x05 \x01(\t\"v\n\x1dGetIndexBuildProgressResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x14\n\x0cindexed_rows\x18\x02 \x01(\x03\x12\x12\n\ntotal_rows\x18\x03 \x01(\x03\"\x94\x01\n\x14GetIndexStateRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x12\n\nfield_name\x18\x04 \x01(\t\x12\x12\n\nindex_name\x18\x05 \x01(\t\"\x89\x01\n\x15GetIndexStateResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12.\n\x05state\x18\x02 \x01(\x0e\x32\x1f.milvus.proto.common.IndexState\x12\x13\n\x0b\x66\x61il_reason\x18\x03 \x01(\t\"\x90\x01\n\x10\x44ropIndexRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x12\n\nfield_name\x18\x04 \x01(\t\x12\x12\n\nindex_name\x18\x05 \x01(\t\"\xd7\x01\n\rInsertRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0epartition_name\x18\x04 \x01(\t\x12\x33\n\x0b\x66ields_data\x18\x05 \x03(\x0b\x32\x1e.milvus.proto.schema.FieldData\x12\x11\n\thash_keys\x18\x06 \x03(\r\x12\x10\n\x08num_rows\x18\x07 \x01(\r\"\xf0\x01\n\x0eMutationResult\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12%\n\x03IDs\x18\x02 \x01(\x0b\x32\x18.milvus.proto.schema.IDs\x12\x12\n\nsucc_index\x18\x03 \x03(\r\x12\x11\n\terr_index\x18\x04 \x03(\r\x12\x14\n\x0c\x61\x63knowledged\x18\x05 \x01(\x08\x12\x12\n\ninsert_cnt\x18\x06 \x01(\x03\x12\x12\n\ndelete_cnt\x18\x07 \x01(\x03\x12\x12\n\nupsert_cnt\x18\x08 \x01(\x03\x12\x11\n\ttimestamp\x18\t \x01(\x04\"\x9e\x01\n\rDeleteRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0epartition_name\x18\x04 \x01(\t\x12\x0c\n\x04\x65xpr\x18\x05 \x01(\t\x12\x11\n\thash_keys\x18\x06 \x03(\r\"c\n\x10PlaceholderValue\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x32\n\x04type\x18\x02 \x01(\x0e\x32$.milvus.proto.milvus.PlaceholderType\x12\x0e\n\x06values\x18\x03 \x03(\x0c\"O\n\x10PlaceholderGroup\x12;\n\x0cplaceholders\x18\x01 \x03(\x0b\x32%.milvus.proto.milvus.PlaceholderValue\"\xde\x02\n\rSearchRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x17\n\x0fpartition_names\x18\x04 \x03(\t\x12\x0b\n\x03\x64sl\x18\x05 \x01(\t\x12\x19\n\x11placeholder_group\x18\x06 \x01(\x0c\x12.\n\x08\x64sl_type\x18\x07 \x01(\x0e\x32\x1c.milvus.proto.common.DslType\x12\x15\n\routput_fields\x18\x08 \x03(\t\x12\x38\n\rsearch_params\x18\t \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\x12\x18\n\x10travel_timestamp\x18\n \x01(\x04\x12\x1b\n\x13guarantee_timestamp\x18\x0b \x01(\x04\"5\n\x04Hits\x12\x0b\n\x03IDs\x18\x01 \x03(\x03\x12\x10\n\x08row_data\x18\x02 \x03(\x0c\x12\x0e\n\x06scores\x18\x03 \x03(\x02\"\x8d\x01\n\rSearchResults\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x36\n\x07results\x18\x02 \x01(\x0b\x32%.milvus.proto.schema.SearchResultData\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\"e\n\x0c\x46lushRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x18\n\x10\x63ollection_names\x18\x03 \x03(\t\"\xe9\x01\n\rFlushResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12G\n\x0b\x63oll_segIDs\x18\x03 \x03(\x0b\x32\x32.milvus.proto.milvus.FlushResponse.CollSegIDsEntry\x1aQ\n\x0f\x43ollSegIDsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x1e.milvus.proto.schema.LongArray:\x02\x38\x01\"\xd9\x01\n\x0cQueryRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x0c\n\x04\x65xpr\x18\x04 \x01(\t\x12\x15\n\routput_fields\x18\x05 \x03(\t\x12\x17\n\x0fpartition_names\x18\x06 \x03(\t\x12\x18\n\x10travel_timestamp\x18\x07 \x01(\x04\x12\x1b\n\x13guarantee_timestamp\x18\x08 \x01(\x04\"\x89\x01\n\x0cQueryResults\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x33\n\x0b\x66ields_data\x18\x02 \x03(\x0b\x32\x1e.milvus.proto.schema.FieldData\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\"}\n\tVectorIDs\x12\x17\n\x0f\x63ollection_name\x18\x01 \x01(\t\x12\x12\n\nfield_name\x18\x02 \x01(\t\x12*\n\x08id_array\x18\x03 \x01(\x0b\x32\x18.milvus.proto.schema.IDs\x12\x17\n\x0fpartition_names\x18\x04 \x03(\t\"\x83\x01\n\x0cVectorsArray\x12\x32\n\x08id_array\x18\x01 \x01(\x0b\x32\x1e.milvus.proto.milvus.VectorIDsH\x00\x12\x36\n\ndata_array\x18\x02 \x01(\x0b\x32 .milvus.proto.schema.VectorFieldH\x00\x42\x07\n\x05\x61rray\"\xdd\x01\n\x13\x43\x61lcDistanceRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x32\n\x07op_left\x18\x02 \x01(\x0b\x32!.milvus.proto.milvus.VectorsArray\x12\x33\n\x08op_right\x18\x03 \x01(\x0b\x32!.milvus.proto.milvus.VectorsArray\x12\x31\n\x06params\x18\x04 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\"\xb5\x01\n\x13\x43\x61lcDistanceResults\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x31\n\x08int_dist\x18\x02 \x01(\x0b\x32\x1d.milvus.proto.schema.IntArrayH\x00\x12\x35\n\nfloat_dist\x18\x03 \x01(\x0b\x32\x1f.milvus.proto.schema.FloatArrayH\x00\x42\x07\n\x05\x61rray\"\x99\x01\n\x15PersistentSegmentInfo\x12\x11\n\tsegmentID\x18\x01 \x01(\x03\x12\x14\n\x0c\x63ollectionID\x18\x02 \x01(\x03\x12\x13\n\x0bpartitionID\x18\x03 \x01(\x03\x12\x10\n\x08num_rows\x18\x04 \x01(\x03\x12\x30\n\x05state\x18\x05 \x01(\x0e\x32!.milvus.proto.common.SegmentState\"u\n\x1fGetPersistentSegmentInfoRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0e\n\x06\x64\x62Name\x18\x02 \x01(\t\x12\x16\n\x0e\x63ollectionName\x18\x03 \x01(\t\"\x8a\x01\n GetPersistentSegmentInfoResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x39\n\x05infos\x18\x02 \x03(\x0b\x32*.milvus.proto.milvus.PersistentSegmentInfo\"\xdb\x01\n\x10QuerySegmentInfo\x12\x11\n\tsegmentID\x18\x01 \x01(\x03\x12\x14\n\x0c\x63ollectionID\x18\x02 \x01(\x03\x12\x13\n\x0bpartitionID\x18\x03 \x01(\x03\x12\x10\n\x08mem_size\x18\x04 \x01(\x03\x12\x10\n\x08num_rows\x18\x05 \x01(\x03\x12\x12\n\nindex_name\x18\x06 \x01(\t\x12\x0f\n\x07indexID\x18\x07 \x01(\x03\x12\x0e\n\x06nodeID\x18\x08 \x01(\x03\x12\x30\n\x05state\x18\t \x01(\x0e\x32!.milvus.proto.common.SegmentState\"p\n\x1aGetQuerySegmentInfoRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0e\n\x06\x64\x62Name\x18\x02 \x01(\t\x12\x16\n\x0e\x63ollectionName\x18\x03 \x01(\t\"\x80\x01\n\x1bGetQuerySegmentInfoResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x34\n\x05infos\x18\x02 \x03(\x0b\x32%.milvus.proto.milvus.QuerySegmentInfo\"$\n\x0c\x44ummyRequest\x12\x14\n\x0crequest_type\x18\x01 \x01(\t\"!\n\rDummyResponse\x12\x10\n\x08response\x18\x01 \x01(\t\"\x15\n\x13RegisterLinkRequest\"r\n\x14RegisterLinkResponse\x12-\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.Address\x12+\n\x06status\x18\x02 \x01(\x0b\x32\x1b.milvus.proto.common.Status\"P\n\x11GetMetricsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07request\x18\x02 \x01(\t\"k\n\x12GetMetricsResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x10\n\x08response\x18\x02 \x01(\t\x12\x16\n\x0e\x63omponent_name\x18\x03 \x01(\t\"\x9c\x01\n\x12LoadBalanceRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x12\n\nsrc_nodeID\x18\x02 \x01(\x03\x12\x13\n\x0b\x64st_nodeIDs\x18\x03 \x03(\x03\x12\x19\n\x11sealed_segmentIDs\x18\x04 \x03(\x03\x12\x16\n\x0e\x63ollectionName\x18\x05 \x01(\t\"C\n\x17ManualCompactionRequest\x12\x14\n\x0c\x63ollectionID\x18\x01 \x01(\x03\x12\x12\n\ntimetravel\x18\x02 \x01(\x04\"]\n\x18ManualCompactionResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x14\n\x0c\x63ompactionID\x18\x02 \x01(\x03\"1\n\x19GetCompactionStateRequest\x12\x14\n\x0c\x63ompactionID\x18\x01 \x01(\x03\"\xc7\x01\n\x1aGetCompactionStateResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x33\n\x05state\x18\x02 \x01(\x0e\x32$.milvus.proto.common.CompactionState\x12\x17\n\x0f\x65xecutingPlanNo\x18\x03 \x01(\x03\x12\x15\n\rtimeoutPlanNo\x18\x04 \x01(\x03\x12\x17\n\x0f\x63ompletedPlanNo\x18\x05 \x01(\x03\"1\n\x19GetCompactionPlansRequest\x12\x14\n\x0c\x63ompactionID\x18\x01 \x01(\x03\"\xbc\x01\n\x1aGetCompactionPlansResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x33\n\x05state\x18\x02 \x01(\x0e\x32$.milvus.proto.common.CompactionState\x12<\n\nmergeInfos\x18\x03 \x03(\x0b\x32(.milvus.proto.milvus.CompactionMergeInfo\"6\n\x13\x43ompactionMergeInfo\x12\x0f\n\x07sources\x18\x01 \x03(\x03\x12\x0e\n\x06target\x18\x02 \x01(\x03\"*\n\x14GetFlushStateRequest\x12\x12\n\nsegmentIDs\x18\x01 \x03(\x03\"U\n\x15GetFlushStateResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x0f\n\x07\x66lushed\x18\x02 \x01(\x08\"\xad\x01\n\rImportRequest\x12\x17\n\x0f\x63ollection_name\x18\x01 \x01(\t\x12\x16\n\x0epartition_name\x18\x02 \x01(\t\x12\x15\n\rchannel_names\x18\x03 \x03(\t\x12\x11\n\trow_based\x18\x04 \x01(\x08\x12\r\n\x05\x66iles\x18\x05 \x03(\t\x12\x32\n\x07options\x18\x06 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\"L\n\x0eImportResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\r\n\x05tasks\x18\x02 \x03(\x03\"%\n\x15GetImportStateRequest\x12\x0c\n\x04task\x18\x01 \x01(\x03\"\xcc\x01\n\x16GetImportStateResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12/\n\x05state\x18\x02 \x01(\x0e\x32 .milvus.proto.common.ImportState\x12\x11\n\trow_count\x18\x03 \x01(\x03\x12\x0f\n\x07id_list\x18\x04 \x03(\x03\x12\x30\n\x05infos\x18\x05 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\"p\n\x12GetReplicasRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x14\n\x0c\x63ollectionID\x18\x02 \x01(\x03\x12\x18\n\x10with_shard_nodes\x18\x03 \x01(\x08\"v\n\x13GetReplicasResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x32\n\x08replicas\x18\x02 \x03(\x0b\x32 .milvus.proto.milvus.ReplicaInfo\"\x9a\x01\n\x0bReplicaInfo\x12\x11\n\treplicaID\x18\x01 \x01(\x03\x12\x14\n\x0c\x63ollectionID\x18\x02 \x01(\x03\x12\x15\n\rpartition_ids\x18\x03 \x03(\x03\x12\x39\n\x0eshard_replicas\x18\x04 \x03(\x0b\x32!.milvus.proto.milvus.ShardReplica\x12\x10\n\x08node_ids\x18\x05 \x03(\x03\"`\n\x0cShardReplica\x12\x10\n\x08leaderID\x18\x01 \x01(\x03\x12\x13\n\x0bleader_addr\x18\x02 \x01(\t\x12\x17\n\x0f\x64m_channel_name\x18\x03 \x01(\t\x12\x10\n\x08node_ids\x18\x04 \x03(\x03\"\xaa\x01\n\x17\x43reateCredentialRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x10\n\x08password\x18\x03 \x01(\t\x12\x1e\n\x16\x63reated_utc_timestamps\x18\x04 \x01(\x04\x12\x1f\n\x17modified_utc_timestamps\x18\x05 \x01(\x04\"\xc2\x01\n\x17UpdateCredentialRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x13\n\x0boldPassword\x18\x03 \x01(\t\x12\x13\n\x0bnewPassword\x18\x04 \x01(\t\x12\x1e\n\x16\x63reated_utc_timestamps\x18\x05 \x01(\x04\x12\x1f\n\x17modified_utc_timestamps\x18\x06 \x01(\x04\"W\n\x17\x44\x65leteCredentialRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x10\n\x08username\x18\x02 \x01(\t\"W\n\x15ListCredUsersResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x11\n\tusernames\x18\x02 \x03(\t\"B\n\x14ListCredUsersRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase*!\n\x08ShowType\x12\x07\n\x03\x41ll\x10\x00\x12\x0c\n\x08InMemory\x10\x01*>\n\x0fPlaceholderType\x12\x08\n\x04None\x10\x00\x12\x10\n\x0c\x42inaryVector\x10\x64\x12\x0f\n\x0b\x46loatVector\x10\x65\x32\xb8$\n\rMilvusService\x12_\n\x10\x43reateCollection\x12,.milvus.proto.milvus.CreateCollectionRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12[\n\x0e\x44ropCollection\x12*.milvus.proto.milvus.DropCollectionRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12_\n\rHasCollection\x12).milvus.proto.milvus.HasCollectionRequest\x1a!.milvus.proto.milvus.BoolResponse\"\x00\x12[\n\x0eLoadCollection\x12*.milvus.proto.milvus.LoadCollectionRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12\x61\n\x11ReleaseCollection\x12-.milvus.proto.milvus.ReleaseCollectionRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12w\n\x12\x44\x65scribeCollection\x12..milvus.proto.milvus.DescribeCollectionRequest\x1a/.milvus.proto.milvus.DescribeCollectionResponse\"\x00\x12\x86\x01\n\x17GetCollectionStatistics\x12\x33.milvus.proto.milvus.GetCollectionStatisticsRequest\x1a\x34.milvus.proto.milvus.GetCollectionStatisticsResponse\"\x00\x12n\n\x0fShowCollections\x12+.milvus.proto.milvus.ShowCollectionsRequest\x1a,.milvus.proto.milvus.ShowCollectionsResponse\"\x00\x12]\n\x0f\x43reatePartition\x12+.milvus.proto.milvus.CreatePartitionRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12Y\n\rDropPartition\x12).milvus.proto.milvus.DropPartitionRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12]\n\x0cHasPartition\x12(.milvus.proto.milvus.HasPartitionRequest\x1a!.milvus.proto.milvus.BoolResponse\"\x00\x12[\n\x0eLoadPartitions\x12*.milvus.proto.milvus.LoadPartitionsRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12\x61\n\x11ReleasePartitions\x12-.milvus.proto.milvus.ReleasePartitionsRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12\x83\x01\n\x16GetPartitionStatistics\x12\x32.milvus.proto.milvus.GetPartitionStatisticsRequest\x1a\x33.milvus.proto.milvus.GetPartitionStatisticsResponse\"\x00\x12k\n\x0eShowPartitions\x12*.milvus.proto.milvus.ShowPartitionsRequest\x1a+.milvus.proto.milvus.ShowPartitionsResponse\"\x00\x12U\n\x0b\x43reateAlias\x12\'.milvus.proto.milvus.CreateAliasRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12Q\n\tDropAlias\x12%.milvus.proto.milvus.DropAliasRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12S\n\nAlterAlias\x12&.milvus.proto.milvus.AlterAliasRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12U\n\x0b\x43reateIndex\x12\'.milvus.proto.milvus.CreateIndexRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12h\n\rDescribeIndex\x12).milvus.proto.milvus.DescribeIndexRequest\x1a*.milvus.proto.milvus.DescribeIndexResponse\"\x00\x12h\n\rGetIndexState\x12).milvus.proto.milvus.GetIndexStateRequest\x1a*.milvus.proto.milvus.GetIndexStateResponse\"\x00\x12\x80\x01\n\x15GetIndexBuildProgress\x12\x31.milvus.proto.milvus.GetIndexBuildProgressRequest\x1a\x32.milvus.proto.milvus.GetIndexBuildProgressResponse\"\x00\x12Q\n\tDropIndex\x12%.milvus.proto.milvus.DropIndexRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12S\n\x06Insert\x12\".milvus.proto.milvus.InsertRequest\x1a#.milvus.proto.milvus.MutationResult\"\x00\x12S\n\x06\x44\x65lete\x12\".milvus.proto.milvus.DeleteRequest\x1a#.milvus.proto.milvus.MutationResult\"\x00\x12R\n\x06Search\x12\".milvus.proto.milvus.SearchRequest\x1a\".milvus.proto.milvus.SearchResults\"\x00\x12P\n\x05\x46lush\x12!.milvus.proto.milvus.FlushRequest\x1a\".milvus.proto.milvus.FlushResponse\"\x00\x12O\n\x05Query\x12!.milvus.proto.milvus.QueryRequest\x1a!.milvus.proto.milvus.QueryResults\"\x00\x12\x64\n\x0c\x43\x61lcDistance\x12(.milvus.proto.milvus.CalcDistanceRequest\x1a(.milvus.proto.milvus.CalcDistanceResults\"\x00\x12h\n\rGetFlushState\x12).milvus.proto.milvus.GetFlushStateRequest\x1a*.milvus.proto.milvus.GetFlushStateResponse\"\x00\x12\x89\x01\n\x18GetPersistentSegmentInfo\x12\x34.milvus.proto.milvus.GetPersistentSegmentInfoRequest\x1a\x35.milvus.proto.milvus.GetPersistentSegmentInfoResponse\"\x00\x12z\n\x13GetQuerySegmentInfo\x12/.milvus.proto.milvus.GetQuerySegmentInfoRequest\x1a\x30.milvus.proto.milvus.GetQuerySegmentInfoResponse\"\x00\x12\x62\n\x0bGetReplicas\x12\'.milvus.proto.milvus.GetReplicasRequest\x1a(.milvus.proto.milvus.GetReplicasResponse\"\x00\x12P\n\x05\x44ummy\x12!.milvus.proto.milvus.DummyRequest\x1a\".milvus.proto.milvus.DummyResponse\"\x00\x12\x65\n\x0cRegisterLink\x12(.milvus.proto.milvus.RegisterLinkRequest\x1a).milvus.proto.milvus.RegisterLinkResponse\"\x00\x12_\n\nGetMetrics\x12&.milvus.proto.milvus.GetMetricsRequest\x1a\'.milvus.proto.milvus.GetMetricsResponse\"\x00\x12U\n\x0bLoadBalance\x12\'.milvus.proto.milvus.LoadBalanceRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12w\n\x12GetCompactionState\x12..milvus.proto.milvus.GetCompactionStateRequest\x1a/.milvus.proto.milvus.GetCompactionStateResponse\"\x00\x12q\n\x10ManualCompaction\x12,.milvus.proto.milvus.ManualCompactionRequest\x1a-.milvus.proto.milvus.ManualCompactionResponse\"\x00\x12\x80\x01\n\x1bGetCompactionStateWithPlans\x12..milvus.proto.milvus.GetCompactionPlansRequest\x1a/.milvus.proto.milvus.GetCompactionPlansResponse\"\x00\x12S\n\x06Import\x12\".milvus.proto.milvus.ImportRequest\x1a#.milvus.proto.milvus.ImportResponse\"\x00\x12k\n\x0eGetImportState\x12*.milvus.proto.milvus.GetImportStateRequest\x1a+.milvus.proto.milvus.GetImportStateResponse\"\x00\x12_\n\x10\x43reateCredential\x12,.milvus.proto.milvus.CreateCredentialRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12_\n\x10UpdateCredential\x12,.milvus.proto.milvus.UpdateCredentialRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12_\n\x10\x44\x65leteCredential\x12,.milvus.proto.milvus.DeleteCredentialRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12h\n\rListCredUsers\x12).milvus.proto.milvus.ListCredUsersRequest\x1a*.milvus.proto.milvus.ListCredUsersResponse\"\x00\x32u\n\x0cProxyService\x12\x65\n\x0cRegisterLink\x12(.milvus.proto.milvus.RegisterLinkRequest\x1a).milvus.proto.milvus.RegisterLinkResponse\"\x00\x42W\n\x0eio.milvus.grpcB\x0bMilvusProtoP\x01Z3github.com/milvus-io/milvus/internal/proto/milvuspb\xa0\x01\x01\x62\x06proto3' + serialized_pb=b'\n\x0cmilvus.proto\x12\x13milvus.proto.milvus\x1a\x0c\x63ommon.proto\x1a\x0cschema.proto\"y\n\x12\x43reateAliasRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\r\n\x05\x61lias\x18\x04 \x01(\t\"^\n\x10\x44ropAliasRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\r\n\x05\x61lias\x18\x03 \x01(\t\"x\n\x11\x41lterAliasRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\r\n\x05\x61lias\x18\x04 \x01(\t\"\xd5\x01\n\x17\x43reateCollectionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x0e\n\x06schema\x18\x04 \x01(\x0c\x12\x12\n\nshards_num\x18\x05 \x01(\x05\x12@\n\x11\x63onsistency_level\x18\x06 \x01(\x0e\x32%.milvus.proto.common.ConsistencyLevel\"m\n\x15\x44ropCollectionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\"\x80\x01\n\x14HasCollectionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x12\n\ntime_stamp\x18\x04 \x01(\x04\"J\n\x0c\x42oolResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\r\n\x05value\x18\x02 \x01(\x08\"L\n\x0eStringResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\r\n\x05value\x18\x02 \x01(\t\"\x9b\x01\n\x19\x44\x65scribeCollectionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x14\n\x0c\x63ollectionID\x18\x04 \x01(\x03\x12\x12\n\ntime_stamp\x18\x05 \x01(\x04\"\xca\x03\n\x1a\x44\x65scribeCollectionResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x35\n\x06schema\x18\x02 \x01(\x0b\x32%.milvus.proto.schema.CollectionSchema\x12\x14\n\x0c\x63ollectionID\x18\x03 \x01(\x03\x12\x1d\n\x15virtual_channel_names\x18\x04 \x03(\t\x12\x1e\n\x16physical_channel_names\x18\x05 \x03(\t\x12\x19\n\x11\x63reated_timestamp\x18\x06 \x01(\x04\x12\x1d\n\x15\x63reated_utc_timestamp\x18\x07 \x01(\x04\x12\x12\n\nshards_num\x18\x08 \x01(\x05\x12\x0f\n\x07\x61liases\x18\t \x03(\t\x12\x39\n\x0fstart_positions\x18\n \x03(\x0b\x32 .milvus.proto.common.KeyDataPair\x12@\n\x11\x63onsistency_level\x18\x0b \x01(\x0e\x32%.milvus.proto.common.ConsistencyLevel\x12\x17\n\x0f\x63ollection_name\x18\x0c \x01(\t\"\x85\x01\n\x15LoadCollectionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0ereplica_number\x18\x04 \x01(\x05\"p\n\x18ReleaseCollectionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\"v\n\x1eGetCollectionStatisticsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\"\x80\x01\n\x1fGetCollectionStatisticsResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x30\n\x05stats\x18\x02 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\"\xb0\x01\n\x16ShowCollectionsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x12\n\ntime_stamp\x18\x03 \x01(\x04\x12+\n\x04type\x18\x04 \x01(\x0e\x32\x1d.milvus.proto.milvus.ShowType\x12\x18\n\x10\x63ollection_names\x18\x05 \x03(\t\"\xd2\x01\n\x17ShowCollectionsResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x18\n\x10\x63ollection_names\x18\x02 \x03(\t\x12\x16\n\x0e\x63ollection_ids\x18\x03 \x03(\x03\x12\x1a\n\x12\x63reated_timestamps\x18\x04 \x03(\x04\x12\x1e\n\x16\x63reated_utc_timestamps\x18\x05 \x03(\x04\x12\x1c\n\x14inMemory_percentages\x18\x06 \x03(\x03\"\x86\x01\n\x16\x43reatePartitionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0epartition_name\x18\x04 \x01(\t\"\x84\x01\n\x14\x44ropPartitionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0epartition_name\x18\x04 \x01(\t\"\x83\x01\n\x13HasPartitionRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0epartition_name\x18\x04 \x01(\t\"\x9e\x01\n\x15LoadPartitionsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x17\n\x0fpartition_names\x18\x04 \x03(\t\x12\x16\n\x0ereplica_number\x18\x05 \x01(\x05\"\x89\x01\n\x18ReleasePartitionsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x17\n\x0fpartition_names\x18\x04 \x03(\t\"\x8d\x01\n\x1dGetPartitionStatisticsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0epartition_name\x18\x04 \x01(\t\"\x7f\n\x1eGetPartitionStatisticsResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x30\n\x05stats\x18\x02 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\"\xc9\x01\n\x15ShowPartitionsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x14\n\x0c\x63ollectionID\x18\x04 \x01(\x03\x12\x17\n\x0fpartition_names\x18\x05 \x03(\t\x12+\n\x04type\x18\x06 \x01(\x0e\x32\x1d.milvus.proto.milvus.ShowType\"\xce\x01\n\x16ShowPartitionsResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x17\n\x0fpartition_names\x18\x02 \x03(\t\x12\x14\n\x0cpartitionIDs\x18\x03 \x03(\x03\x12\x1a\n\x12\x63reated_timestamps\x18\x04 \x03(\x04\x12\x1e\n\x16\x63reated_utc_timestamps\x18\x05 \x03(\x04\x12\x1c\n\x14inMemory_percentages\x18\x06 \x03(\x03\"m\n\x16\x44\x65scribeSegmentRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x14\n\x0c\x63ollectionID\x18\x02 \x01(\x03\x12\x11\n\tsegmentID\x18\x03 \x01(\x03\"\x8f\x01\n\x17\x44\x65scribeSegmentResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x0f\n\x07indexID\x18\x02 \x01(\x03\x12\x0f\n\x07\x62uildID\x18\x03 \x01(\x03\x12\x14\n\x0c\x65nable_index\x18\x04 \x01(\x08\x12\x0f\n\x07\x66ieldID\x18\x05 \x01(\x03\"l\n\x13ShowSegmentsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x14\n\x0c\x63ollectionID\x18\x02 \x01(\x03\x12\x13\n\x0bpartitionID\x18\x03 \x01(\x03\"W\n\x14ShowSegmentsResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x12\n\nsegmentIDs\x18\x02 \x03(\x03\"\xcb\x01\n\x12\x43reateIndexRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x12\n\nfield_name\x18\x04 \x01(\t\x12\x37\n\x0c\x65xtra_params\x18\x05 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\x12\x12\n\nindex_name\x18\x06 \x01(\t\"\x94\x01\n\x14\x44\x65scribeIndexRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x12\n\nfield_name\x18\x04 \x01(\t\x12\x12\n\nindex_name\x18\x05 \x01(\t\"~\n\x10IndexDescription\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x0f\n\x07indexID\x18\x02 \x01(\x03\x12\x31\n\x06params\x18\x03 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\x12\x12\n\nfield_name\x18\x04 \x01(\t\"\x87\x01\n\x15\x44\x65scribeIndexResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x41\n\x12index_descriptions\x18\x02 \x03(\x0b\x32%.milvus.proto.milvus.IndexDescription\"\x9c\x01\n\x1cGetIndexBuildProgressRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x12\n\nfield_name\x18\x04 \x01(\t\x12\x12\n\nindex_name\x18\x05 \x01(\t\"v\n\x1dGetIndexBuildProgressResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x14\n\x0cindexed_rows\x18\x02 \x01(\x03\x12\x12\n\ntotal_rows\x18\x03 \x01(\x03\"\x94\x01\n\x14GetIndexStateRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x12\n\nfield_name\x18\x04 \x01(\t\x12\x12\n\nindex_name\x18\x05 \x01(\t\"\x89\x01\n\x15GetIndexStateResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12.\n\x05state\x18\x02 \x01(\x0e\x32\x1f.milvus.proto.common.IndexState\x12\x13\n\x0b\x66\x61il_reason\x18\x03 \x01(\t\"\x90\x01\n\x10\x44ropIndexRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x12\n\nfield_name\x18\x04 \x01(\t\x12\x12\n\nindex_name\x18\x05 \x01(\t\"\xd7\x01\n\rInsertRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0epartition_name\x18\x04 \x01(\t\x12\x33\n\x0b\x66ields_data\x18\x05 \x03(\x0b\x32\x1e.milvus.proto.schema.FieldData\x12\x11\n\thash_keys\x18\x06 \x03(\r\x12\x10\n\x08num_rows\x18\x07 \x01(\r\"\xf0\x01\n\x0eMutationResult\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12%\n\x03IDs\x18\x02 \x01(\x0b\x32\x18.milvus.proto.schema.IDs\x12\x12\n\nsucc_index\x18\x03 \x03(\r\x12\x11\n\terr_index\x18\x04 \x03(\r\x12\x14\n\x0c\x61\x63knowledged\x18\x05 \x01(\x08\x12\x12\n\ninsert_cnt\x18\x06 \x01(\x03\x12\x12\n\ndelete_cnt\x18\x07 \x01(\x03\x12\x12\n\nupsert_cnt\x18\x08 \x01(\x03\x12\x11\n\ttimestamp\x18\t \x01(\x04\"\x9e\x01\n\rDeleteRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x16\n\x0epartition_name\x18\x04 \x01(\t\x12\x0c\n\x04\x65xpr\x18\x05 \x01(\t\x12\x11\n\thash_keys\x18\x06 \x03(\r\"c\n\x10PlaceholderValue\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x32\n\x04type\x18\x02 \x01(\x0e\x32$.milvus.proto.milvus.PlaceholderType\x12\x0e\n\x06values\x18\x03 \x03(\x0c\"O\n\x10PlaceholderGroup\x12;\n\x0cplaceholders\x18\x01 \x03(\x0b\x32%.milvus.proto.milvus.PlaceholderValue\"\xde\x02\n\rSearchRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x17\n\x0fpartition_names\x18\x04 \x03(\t\x12\x0b\n\x03\x64sl\x18\x05 \x01(\t\x12\x19\n\x11placeholder_group\x18\x06 \x01(\x0c\x12.\n\x08\x64sl_type\x18\x07 \x01(\x0e\x32\x1c.milvus.proto.common.DslType\x12\x15\n\routput_fields\x18\x08 \x03(\t\x12\x38\n\rsearch_params\x18\t \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\x12\x18\n\x10travel_timestamp\x18\n \x01(\x04\x12\x1b\n\x13guarantee_timestamp\x18\x0b \x01(\x04\"5\n\x04Hits\x12\x0b\n\x03IDs\x18\x01 \x03(\x03\x12\x10\n\x08row_data\x18\x02 \x03(\x0c\x12\x0e\n\x06scores\x18\x03 \x03(\x02\"\x8d\x01\n\rSearchResults\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x36\n\x07results\x18\x02 \x01(\x0b\x32%.milvus.proto.schema.SearchResultData\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\"e\n\x0c\x46lushRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x18\n\x10\x63ollection_names\x18\x03 \x03(\t\"\xe9\x01\n\rFlushResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12G\n\x0b\x63oll_segIDs\x18\x03 \x03(\x0b\x32\x32.milvus.proto.milvus.FlushResponse.CollSegIDsEntry\x1aQ\n\x0f\x43ollSegIDsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x1e.milvus.proto.schema.LongArray:\x02\x38\x01\"\xd9\x01\n\x0cQueryRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x0c\n\x04\x65xpr\x18\x04 \x01(\t\x12\x15\n\routput_fields\x18\x05 \x03(\t\x12\x17\n\x0fpartition_names\x18\x06 \x03(\t\x12\x18\n\x10travel_timestamp\x18\x07 \x01(\x04\x12\x1b\n\x13guarantee_timestamp\x18\x08 \x01(\x04\"\x89\x01\n\x0cQueryResults\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x33\n\x0b\x66ields_data\x18\x02 \x03(\x0b\x32\x1e.milvus.proto.schema.FieldData\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\"}\n\tVectorIDs\x12\x17\n\x0f\x63ollection_name\x18\x01 \x01(\t\x12\x12\n\nfield_name\x18\x02 \x01(\t\x12*\n\x08id_array\x18\x03 \x01(\x0b\x32\x18.milvus.proto.schema.IDs\x12\x17\n\x0fpartition_names\x18\x04 \x03(\t\"\x83\x01\n\x0cVectorsArray\x12\x32\n\x08id_array\x18\x01 \x01(\x0b\x32\x1e.milvus.proto.milvus.VectorIDsH\x00\x12\x36\n\ndata_array\x18\x02 \x01(\x0b\x32 .milvus.proto.schema.VectorFieldH\x00\x42\x07\n\x05\x61rray\"\xdd\x01\n\x13\x43\x61lcDistanceRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x32\n\x07op_left\x18\x02 \x01(\x0b\x32!.milvus.proto.milvus.VectorsArray\x12\x33\n\x08op_right\x18\x03 \x01(\x0b\x32!.milvus.proto.milvus.VectorsArray\x12\x31\n\x06params\x18\x04 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\"\xb5\x01\n\x13\x43\x61lcDistanceResults\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x31\n\x08int_dist\x18\x02 \x01(\x0b\x32\x1d.milvus.proto.schema.IntArrayH\x00\x12\x35\n\nfloat_dist\x18\x03 \x01(\x0b\x32\x1f.milvus.proto.schema.FloatArrayH\x00\x42\x07\n\x05\x61rray\"\x99\x01\n\x15PersistentSegmentInfo\x12\x11\n\tsegmentID\x18\x01 \x01(\x03\x12\x14\n\x0c\x63ollectionID\x18\x02 \x01(\x03\x12\x13\n\x0bpartitionID\x18\x03 \x01(\x03\x12\x10\n\x08num_rows\x18\x04 \x01(\x03\x12\x30\n\x05state\x18\x05 \x01(\x0e\x32!.milvus.proto.common.SegmentState\"u\n\x1fGetPersistentSegmentInfoRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0e\n\x06\x64\x62Name\x18\x02 \x01(\t\x12\x16\n\x0e\x63ollectionName\x18\x03 \x01(\t\"\x8a\x01\n GetPersistentSegmentInfoResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x39\n\x05infos\x18\x02 \x03(\x0b\x32*.milvus.proto.milvus.PersistentSegmentInfo\"\xdb\x01\n\x10QuerySegmentInfo\x12\x11\n\tsegmentID\x18\x01 \x01(\x03\x12\x14\n\x0c\x63ollectionID\x18\x02 \x01(\x03\x12\x13\n\x0bpartitionID\x18\x03 \x01(\x03\x12\x10\n\x08mem_size\x18\x04 \x01(\x03\x12\x10\n\x08num_rows\x18\x05 \x01(\x03\x12\x12\n\nindex_name\x18\x06 \x01(\t\x12\x0f\n\x07indexID\x18\x07 \x01(\x03\x12\x0e\n\x06nodeID\x18\x08 \x01(\x03\x12\x30\n\x05state\x18\t \x01(\x0e\x32!.milvus.proto.common.SegmentState\"p\n\x1aGetQuerySegmentInfoRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0e\n\x06\x64\x62Name\x18\x02 \x01(\t\x12\x16\n\x0e\x63ollectionName\x18\x03 \x01(\t\"\x80\x01\n\x1bGetQuerySegmentInfoResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x34\n\x05infos\x18\x02 \x03(\x0b\x32%.milvus.proto.milvus.QuerySegmentInfo\"$\n\x0c\x44ummyRequest\x12\x14\n\x0crequest_type\x18\x01 \x01(\t\"!\n\rDummyResponse\x12\x10\n\x08response\x18\x01 \x01(\t\"\x15\n\x13RegisterLinkRequest\"r\n\x14RegisterLinkResponse\x12-\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.Address\x12+\n\x06status\x18\x02 \x01(\x0b\x32\x1b.milvus.proto.common.Status\"P\n\x11GetMetricsRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x0f\n\x07request\x18\x02 \x01(\t\"k\n\x12GetMetricsResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x10\n\x08response\x18\x02 \x01(\t\x12\x16\n\x0e\x63omponent_name\x18\x03 \x01(\t\"\x9c\x01\n\x12LoadBalanceRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x12\n\nsrc_nodeID\x18\x02 \x01(\x03\x12\x13\n\x0b\x64st_nodeIDs\x18\x03 \x03(\x03\x12\x19\n\x11sealed_segmentIDs\x18\x04 \x03(\x03\x12\x16\n\x0e\x63ollectionName\x18\x05 \x01(\t\"C\n\x17ManualCompactionRequest\x12\x14\n\x0c\x63ollectionID\x18\x01 \x01(\x03\x12\x12\n\ntimetravel\x18\x02 \x01(\x04\"]\n\x18ManualCompactionResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x14\n\x0c\x63ompactionID\x18\x02 \x01(\x03\"1\n\x19GetCompactionStateRequest\x12\x14\n\x0c\x63ompactionID\x18\x01 \x01(\x03\"\xc7\x01\n\x1aGetCompactionStateResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x33\n\x05state\x18\x02 \x01(\x0e\x32$.milvus.proto.common.CompactionState\x12\x17\n\x0f\x65xecutingPlanNo\x18\x03 \x01(\x03\x12\x15\n\rtimeoutPlanNo\x18\x04 \x01(\x03\x12\x17\n\x0f\x63ompletedPlanNo\x18\x05 \x01(\x03\"1\n\x19GetCompactionPlansRequest\x12\x14\n\x0c\x63ompactionID\x18\x01 \x01(\x03\"\xbc\x01\n\x1aGetCompactionPlansResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x33\n\x05state\x18\x02 \x01(\x0e\x32$.milvus.proto.common.CompactionState\x12<\n\nmergeInfos\x18\x03 \x03(\x0b\x32(.milvus.proto.milvus.CompactionMergeInfo\"6\n\x13\x43ompactionMergeInfo\x12\x0f\n\x07sources\x18\x01 \x03(\x03\x12\x0e\n\x06target\x18\x02 \x01(\x03\"*\n\x14GetFlushStateRequest\x12\x12\n\nsegmentIDs\x18\x01 \x03(\x03\"U\n\x15GetFlushStateResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x0f\n\x07\x66lushed\x18\x02 \x01(\x08\"\xad\x01\n\rImportRequest\x12\x17\n\x0f\x63ollection_name\x18\x01 \x01(\t\x12\x16\n\x0epartition_name\x18\x02 \x01(\t\x12\x15\n\rchannel_names\x18\x03 \x03(\t\x12\x11\n\trow_based\x18\x04 \x01(\x08\x12\r\n\x05\x66iles\x18\x05 \x03(\t\x12\x32\n\x07options\x18\x06 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\"L\n\x0eImportResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\r\n\x05tasks\x18\x02 \x03(\x03\"%\n\x15GetImportStateRequest\x12\x0c\n\x04task\x18\x01 \x01(\x03\"\xd8\x01\n\x16GetImportStateResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12/\n\x05state\x18\x02 \x01(\x0e\x32 .milvus.proto.common.ImportState\x12\x11\n\trow_count\x18\x03 \x01(\x03\x12\x0f\n\x07id_list\x18\x04 \x03(\x03\x12\x30\n\x05infos\x18\x05 \x03(\x0b\x32!.milvus.proto.common.KeyValuePair\x12\n\n\x02id\x18\x06 \x01(\x03\"\x18\n\x16ListImportTasksRequest\"\x82\x01\n\x17ListImportTasksResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12:\n\x05tasks\x18\x02 \x03(\x0b\x32+.milvus.proto.milvus.GetImportStateResponse\"p\n\x12GetReplicasRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x14\n\x0c\x63ollectionID\x18\x02 \x01(\x03\x12\x18\n\x10with_shard_nodes\x18\x03 \x01(\x08\"v\n\x13GetReplicasResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x32\n\x08replicas\x18\x02 \x03(\x0b\x32 .milvus.proto.milvus.ReplicaInfo\"\x9a\x01\n\x0bReplicaInfo\x12\x11\n\treplicaID\x18\x01 \x01(\x03\x12\x14\n\x0c\x63ollectionID\x18\x02 \x01(\x03\x12\x15\n\rpartition_ids\x18\x03 \x03(\x03\x12\x39\n\x0eshard_replicas\x18\x04 \x03(\x0b\x32!.milvus.proto.milvus.ShardReplica\x12\x10\n\x08node_ids\x18\x05 \x03(\x03\"`\n\x0cShardReplica\x12\x10\n\x08leaderID\x18\x01 \x01(\x03\x12\x13\n\x0bleader_addr\x18\x02 \x01(\t\x12\x17\n\x0f\x64m_channel_name\x18\x03 \x01(\t\x12\x10\n\x08node_ids\x18\x04 \x03(\x03\"\xaa\x01\n\x17\x43reateCredentialRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x10\n\x08password\x18\x03 \x01(\t\x12\x1e\n\x16\x63reated_utc_timestamps\x18\x04 \x01(\x04\x12\x1f\n\x17modified_utc_timestamps\x18\x05 \x01(\x04\"\xc2\x01\n\x17UpdateCredentialRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x13\n\x0boldPassword\x18\x03 \x01(\t\x12\x13\n\x0bnewPassword\x18\x04 \x01(\t\x12\x1e\n\x16\x63reated_utc_timestamps\x18\x05 \x01(\x04\x12\x1f\n\x17modified_utc_timestamps\x18\x06 \x01(\x04\"W\n\x17\x44\x65leteCredentialRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase\x12\x10\n\x08username\x18\x02 \x01(\t\"W\n\x15ListCredUsersResponse\x12+\n\x06status\x18\x01 \x01(\x0b\x32\x1b.milvus.proto.common.Status\x12\x11\n\tusernames\x18\x02 \x03(\t\"B\n\x14ListCredUsersRequest\x12*\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x1c.milvus.proto.common.MsgBase*!\n\x08ShowType\x12\x07\n\x03\x41ll\x10\x00\x12\x0c\n\x08InMemory\x10\x01*>\n\x0fPlaceholderType\x12\x08\n\x04None\x10\x00\x12\x10\n\x0c\x42inaryVector\x10\x64\x12\x0f\n\x0b\x46loatVector\x10\x65\x32\xa8%\n\rMilvusService\x12_\n\x10\x43reateCollection\x12,.milvus.proto.milvus.CreateCollectionRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12[\n\x0e\x44ropCollection\x12*.milvus.proto.milvus.DropCollectionRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12_\n\rHasCollection\x12).milvus.proto.milvus.HasCollectionRequest\x1a!.milvus.proto.milvus.BoolResponse\"\x00\x12[\n\x0eLoadCollection\x12*.milvus.proto.milvus.LoadCollectionRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12\x61\n\x11ReleaseCollection\x12-.milvus.proto.milvus.ReleaseCollectionRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12w\n\x12\x44\x65scribeCollection\x12..milvus.proto.milvus.DescribeCollectionRequest\x1a/.milvus.proto.milvus.DescribeCollectionResponse\"\x00\x12\x86\x01\n\x17GetCollectionStatistics\x12\x33.milvus.proto.milvus.GetCollectionStatisticsRequest\x1a\x34.milvus.proto.milvus.GetCollectionStatisticsResponse\"\x00\x12n\n\x0fShowCollections\x12+.milvus.proto.milvus.ShowCollectionsRequest\x1a,.milvus.proto.milvus.ShowCollectionsResponse\"\x00\x12]\n\x0f\x43reatePartition\x12+.milvus.proto.milvus.CreatePartitionRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12Y\n\rDropPartition\x12).milvus.proto.milvus.DropPartitionRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12]\n\x0cHasPartition\x12(.milvus.proto.milvus.HasPartitionRequest\x1a!.milvus.proto.milvus.BoolResponse\"\x00\x12[\n\x0eLoadPartitions\x12*.milvus.proto.milvus.LoadPartitionsRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12\x61\n\x11ReleasePartitions\x12-.milvus.proto.milvus.ReleasePartitionsRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12\x83\x01\n\x16GetPartitionStatistics\x12\x32.milvus.proto.milvus.GetPartitionStatisticsRequest\x1a\x33.milvus.proto.milvus.GetPartitionStatisticsResponse\"\x00\x12k\n\x0eShowPartitions\x12*.milvus.proto.milvus.ShowPartitionsRequest\x1a+.milvus.proto.milvus.ShowPartitionsResponse\"\x00\x12U\n\x0b\x43reateAlias\x12\'.milvus.proto.milvus.CreateAliasRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12Q\n\tDropAlias\x12%.milvus.proto.milvus.DropAliasRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12S\n\nAlterAlias\x12&.milvus.proto.milvus.AlterAliasRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12U\n\x0b\x43reateIndex\x12\'.milvus.proto.milvus.CreateIndexRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12h\n\rDescribeIndex\x12).milvus.proto.milvus.DescribeIndexRequest\x1a*.milvus.proto.milvus.DescribeIndexResponse\"\x00\x12h\n\rGetIndexState\x12).milvus.proto.milvus.GetIndexStateRequest\x1a*.milvus.proto.milvus.GetIndexStateResponse\"\x00\x12\x80\x01\n\x15GetIndexBuildProgress\x12\x31.milvus.proto.milvus.GetIndexBuildProgressRequest\x1a\x32.milvus.proto.milvus.GetIndexBuildProgressResponse\"\x00\x12Q\n\tDropIndex\x12%.milvus.proto.milvus.DropIndexRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12S\n\x06Insert\x12\".milvus.proto.milvus.InsertRequest\x1a#.milvus.proto.milvus.MutationResult\"\x00\x12S\n\x06\x44\x65lete\x12\".milvus.proto.milvus.DeleteRequest\x1a#.milvus.proto.milvus.MutationResult\"\x00\x12R\n\x06Search\x12\".milvus.proto.milvus.SearchRequest\x1a\".milvus.proto.milvus.SearchResults\"\x00\x12P\n\x05\x46lush\x12!.milvus.proto.milvus.FlushRequest\x1a\".milvus.proto.milvus.FlushResponse\"\x00\x12O\n\x05Query\x12!.milvus.proto.milvus.QueryRequest\x1a!.milvus.proto.milvus.QueryResults\"\x00\x12\x64\n\x0c\x43\x61lcDistance\x12(.milvus.proto.milvus.CalcDistanceRequest\x1a(.milvus.proto.milvus.CalcDistanceResults\"\x00\x12h\n\rGetFlushState\x12).milvus.proto.milvus.GetFlushStateRequest\x1a*.milvus.proto.milvus.GetFlushStateResponse\"\x00\x12\x89\x01\n\x18GetPersistentSegmentInfo\x12\x34.milvus.proto.milvus.GetPersistentSegmentInfoRequest\x1a\x35.milvus.proto.milvus.GetPersistentSegmentInfoResponse\"\x00\x12z\n\x13GetQuerySegmentInfo\x12/.milvus.proto.milvus.GetQuerySegmentInfoRequest\x1a\x30.milvus.proto.milvus.GetQuerySegmentInfoResponse\"\x00\x12\x62\n\x0bGetReplicas\x12\'.milvus.proto.milvus.GetReplicasRequest\x1a(.milvus.proto.milvus.GetReplicasResponse\"\x00\x12P\n\x05\x44ummy\x12!.milvus.proto.milvus.DummyRequest\x1a\".milvus.proto.milvus.DummyResponse\"\x00\x12\x65\n\x0cRegisterLink\x12(.milvus.proto.milvus.RegisterLinkRequest\x1a).milvus.proto.milvus.RegisterLinkResponse\"\x00\x12_\n\nGetMetrics\x12&.milvus.proto.milvus.GetMetricsRequest\x1a\'.milvus.proto.milvus.GetMetricsResponse\"\x00\x12U\n\x0bLoadBalance\x12\'.milvus.proto.milvus.LoadBalanceRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12w\n\x12GetCompactionState\x12..milvus.proto.milvus.GetCompactionStateRequest\x1a/.milvus.proto.milvus.GetCompactionStateResponse\"\x00\x12q\n\x10ManualCompaction\x12,.milvus.proto.milvus.ManualCompactionRequest\x1a-.milvus.proto.milvus.ManualCompactionResponse\"\x00\x12\x80\x01\n\x1bGetCompactionStateWithPlans\x12..milvus.proto.milvus.GetCompactionPlansRequest\x1a/.milvus.proto.milvus.GetCompactionPlansResponse\"\x00\x12S\n\x06Import\x12\".milvus.proto.milvus.ImportRequest\x1a#.milvus.proto.milvus.ImportResponse\"\x00\x12k\n\x0eGetImportState\x12*.milvus.proto.milvus.GetImportStateRequest\x1a+.milvus.proto.milvus.GetImportStateResponse\"\x00\x12n\n\x0fListImportTasks\x12+.milvus.proto.milvus.ListImportTasksRequest\x1a,.milvus.proto.milvus.ListImportTasksResponse\"\x00\x12_\n\x10\x43reateCredential\x12,.milvus.proto.milvus.CreateCredentialRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12_\n\x10UpdateCredential\x12,.milvus.proto.milvus.UpdateCredentialRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12_\n\x10\x44\x65leteCredential\x12,.milvus.proto.milvus.DeleteCredentialRequest\x1a\x1b.milvus.proto.common.Status\"\x00\x12h\n\rListCredUsers\x12).milvus.proto.milvus.ListCredUsersRequest\x1a*.milvus.proto.milvus.ListCredUsersResponse\"\x00\x32u\n\x0cProxyService\x12\x65\n\x0cRegisterLink\x12(.milvus.proto.milvus.RegisterLinkRequest\x1a).milvus.proto.milvus.RegisterLinkResponse\"\x00\x42W\n\x0eio.milvus.grpcB\x0bMilvusProtoP\x01Z3github.com/milvus-io/milvus/internal/proto/milvuspb\xa0\x01\x01\x62\x06proto3' , dependencies=[common__pb2.DESCRIPTOR,schema__pb2.DESCRIPTOR,]) @@ -46,8 +46,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=12339, - serialized_end=12372, + serialized_start=12510, + serialized_end=12543, ) _sym_db.RegisterEnumDescriptor(_SHOWTYPE) @@ -77,8 +77,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=12374, - serialized_end=12436, + serialized_start=12545, + serialized_end=12607, ) _sym_db.RegisterEnumDescriptor(_PLACEHOLDERTYPE) @@ -4236,6 +4236,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='id', full_name='milvus.proto.milvus.GetImportStateResponse.id', index=5, + number=6, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -4249,7 +4256,71 @@ oneofs=[ ], serialized_start=11028, - serialized_end=11232, + serialized_end=11244, +) + + +_LISTIMPORTTASKSREQUEST = _descriptor.Descriptor( + name='ListImportTasksRequest', + full_name='milvus.proto.milvus.ListImportTasksRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=11246, + serialized_end=11270, +) + + +_LISTIMPORTTASKSRESPONSE = _descriptor.Descriptor( + name='ListImportTasksResponse', + full_name='milvus.proto.milvus.ListImportTasksResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='status', full_name='milvus.proto.milvus.ListImportTasksResponse.status', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='tasks', full_name='milvus.proto.milvus.ListImportTasksResponse.tasks', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=11273, + serialized_end=11403, ) @@ -4294,8 +4365,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=11234, - serialized_end=11346, + serialized_start=11405, + serialized_end=11517, ) @@ -4333,8 +4404,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=11348, - serialized_end=11466, + serialized_start=11519, + serialized_end=11637, ) @@ -4393,8 +4464,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=11469, - serialized_end=11623, + serialized_start=11640, + serialized_end=11794, ) @@ -4446,8 +4517,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=11625, - serialized_end=11721, + serialized_start=11796, + serialized_end=11892, ) @@ -4506,8 +4577,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=11724, - serialized_end=11894, + serialized_start=11895, + serialized_end=12065, ) @@ -4573,8 +4644,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=11897, - serialized_end=12091, + serialized_start=12068, + serialized_end=12262, ) @@ -4612,8 +4683,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=12093, - serialized_end=12180, + serialized_start=12264, + serialized_end=12351, ) @@ -4651,8 +4722,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=12182, - serialized_end=12269, + serialized_start=12353, + serialized_end=12440, ) @@ -4683,8 +4754,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=12271, - serialized_end=12337, + serialized_start=12442, + serialized_end=12508, ) _CREATEALIASREQUEST.fields_by_name['base'].message_type = common__pb2._MSGBASE @@ -4803,6 +4874,8 @@ _GETIMPORTSTATERESPONSE.fields_by_name['status'].message_type = common__pb2._STATUS _GETIMPORTSTATERESPONSE.fields_by_name['state'].enum_type = common__pb2._IMPORTSTATE _GETIMPORTSTATERESPONSE.fields_by_name['infos'].message_type = common__pb2._KEYVALUEPAIR +_LISTIMPORTTASKSRESPONSE.fields_by_name['status'].message_type = common__pb2._STATUS +_LISTIMPORTTASKSRESPONSE.fields_by_name['tasks'].message_type = _GETIMPORTSTATERESPONSE _GETREPLICASREQUEST.fields_by_name['base'].message_type = common__pb2._MSGBASE _GETREPLICASRESPONSE.fields_by_name['status'].message_type = common__pb2._STATUS _GETREPLICASRESPONSE.fields_by_name['replicas'].message_type = _REPLICAINFO @@ -4892,6 +4965,8 @@ DESCRIPTOR.message_types_by_name['ImportResponse'] = _IMPORTRESPONSE DESCRIPTOR.message_types_by_name['GetImportStateRequest'] = _GETIMPORTSTATEREQUEST DESCRIPTOR.message_types_by_name['GetImportStateResponse'] = _GETIMPORTSTATERESPONSE +DESCRIPTOR.message_types_by_name['ListImportTasksRequest'] = _LISTIMPORTTASKSREQUEST +DESCRIPTOR.message_types_by_name['ListImportTasksResponse'] = _LISTIMPORTTASKSRESPONSE DESCRIPTOR.message_types_by_name['GetReplicasRequest'] = _GETREPLICASREQUEST DESCRIPTOR.message_types_by_name['GetReplicasResponse'] = _GETREPLICASRESPONSE DESCRIPTOR.message_types_by_name['ReplicaInfo'] = _REPLICAINFO @@ -5473,6 +5548,20 @@ }) _sym_db.RegisterMessage(GetImportStateResponse) +ListImportTasksRequest = _reflection.GeneratedProtocolMessageType('ListImportTasksRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTIMPORTTASKSREQUEST, + '__module__' : 'milvus_pb2' + # @@protoc_insertion_point(class_scope:milvus.proto.milvus.ListImportTasksRequest) + }) +_sym_db.RegisterMessage(ListImportTasksRequest) + +ListImportTasksResponse = _reflection.GeneratedProtocolMessageType('ListImportTasksResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTIMPORTTASKSRESPONSE, + '__module__' : 'milvus_pb2' + # @@protoc_insertion_point(class_scope:milvus.proto.milvus.ListImportTasksResponse) + }) +_sym_db.RegisterMessage(ListImportTasksResponse) + GetReplicasRequest = _reflection.GeneratedProtocolMessageType('GetReplicasRequest', (_message.Message,), { 'DESCRIPTOR' : _GETREPLICASREQUEST, '__module__' : 'milvus_pb2' @@ -5547,8 +5636,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=12439, - serialized_end=17103, + serialized_start=12610, + serialized_end=17386, methods=[ _descriptor.MethodDescriptor( name='CreateCollection', @@ -5970,10 +6059,20 @@ serialized_options=None, create_key=_descriptor._internal_create_key, ), + _descriptor.MethodDescriptor( + name='ListImportTasks', + full_name='milvus.proto.milvus.MilvusService.ListImportTasks', + index=42, + containing_service=None, + input_type=_LISTIMPORTTASKSREQUEST, + output_type=_LISTIMPORTTASKSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), _descriptor.MethodDescriptor( name='CreateCredential', full_name='milvus.proto.milvus.MilvusService.CreateCredential', - index=42, + index=43, containing_service=None, input_type=_CREATECREDENTIALREQUEST, output_type=common__pb2._STATUS, @@ -5983,7 +6082,7 @@ _descriptor.MethodDescriptor( name='UpdateCredential', full_name='milvus.proto.milvus.MilvusService.UpdateCredential', - index=43, + index=44, containing_service=None, input_type=_UPDATECREDENTIALREQUEST, output_type=common__pb2._STATUS, @@ -5993,7 +6092,7 @@ _descriptor.MethodDescriptor( name='DeleteCredential', full_name='milvus.proto.milvus.MilvusService.DeleteCredential', - index=44, + index=45, containing_service=None, input_type=_DELETECREDENTIALREQUEST, output_type=common__pb2._STATUS, @@ -6003,7 +6102,7 @@ _descriptor.MethodDescriptor( name='ListCredUsers', full_name='milvus.proto.milvus.MilvusService.ListCredUsers', - index=45, + index=46, containing_service=None, input_type=_LISTCREDUSERSREQUEST, output_type=_LISTCREDUSERSRESPONSE, @@ -6023,8 +6122,8 @@ index=1, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=17105, - serialized_end=17222, + serialized_start=17388, + serialized_end=17505, methods=[ _descriptor.MethodDescriptor( name='RegisterLink', diff --git a/pymilvus/grpc_gen/milvus_pb2_grpc.py b/pymilvus/grpc_gen/milvus_pb2_grpc.py index 09d27bf8c..434d30bae 100644 --- a/pymilvus/grpc_gen/milvus_pb2_grpc.py +++ b/pymilvus/grpc_gen/milvus_pb2_grpc.py @@ -225,6 +225,11 @@ def __init__(self, channel): request_serializer=milvus__pb2.GetImportStateRequest.SerializeToString, response_deserializer=milvus__pb2.GetImportStateResponse.FromString, ) + self.ListImportTasks = channel.unary_unary( + '/milvus.proto.milvus.MilvusService/ListImportTasks', + request_serializer=milvus__pb2.ListImportTasksRequest.SerializeToString, + response_deserializer=milvus__pb2.ListImportTasksResponse.FromString, + ) self.CreateCredential = channel.unary_unary( '/milvus.proto.milvus.MilvusService/CreateCredential', request_serializer=milvus__pb2.CreateCredentialRequest.SerializeToString, @@ -505,6 +510,12 @@ def GetImportState(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def ListImportTasks(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def CreateCredential(self, request, context): """https://wiki.lfaidata.foundation/display/MIL/MEP+27+--+Support+Basic+Authentication """ @@ -743,6 +754,11 @@ def add_MilvusServiceServicer_to_server(servicer, server): request_deserializer=milvus__pb2.GetImportStateRequest.FromString, response_serializer=milvus__pb2.GetImportStateResponse.SerializeToString, ), + 'ListImportTasks': grpc.unary_unary_rpc_method_handler( + servicer.ListImportTasks, + request_deserializer=milvus__pb2.ListImportTasksRequest.FromString, + response_serializer=milvus__pb2.ListImportTasksResponse.SerializeToString, + ), 'CreateCredential': grpc.unary_unary_rpc_method_handler( servicer.CreateCredential, request_deserializer=milvus__pb2.CreateCredentialRequest.FromString, @@ -1487,6 +1503,23 @@ def GetImportState(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def ListImportTasks(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/milvus.proto.milvus.MilvusService/ListImportTasks', + milvus__pb2.ListImportTasksRequest.SerializeToString, + milvus__pb2.ListImportTasksResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def CreateCredential(request, target, diff --git a/pymilvus/grpc_gen/proto/common.proto b/pymilvus/grpc_gen/proto/common.proto deleted file mode 100644 index cd3fdce8c..000000000 --- a/pymilvus/grpc_gen/proto/common.proto +++ /dev/null @@ -1,225 +0,0 @@ -syntax = "proto3"; -package milvus.proto.common; - -option go_package="github.com/milvus-io/milvus/internal/proto/commonpb"; - -option java_multiple_files = true; -option java_package = "io.milvus.grpc"; -option java_outer_classname = "CommonProto"; -option java_generate_equals_and_hash = true; - -enum ErrorCode { - Success = 0; - UnexpectedError = 1; - ConnectFailed = 2; - PermissionDenied = 3; - CollectionNotExists = 4; - IllegalArgument = 5; - IllegalDimension = 7; - IllegalIndexType = 8; - IllegalCollectionName = 9; - IllegalTOPK = 10; - IllegalRowRecord = 11; - IllegalVectorID = 12; - IllegalSearchResult = 13; - FileNotFound = 14; - MetaFailed = 15; - CacheFailed = 16; - CannotCreateFolder = 17; - CannotCreateFile = 18; - CannotDeleteFolder = 19; - CannotDeleteFile = 20; - BuildIndexError = 21; - IllegalNLIST = 22; - IllegalMetricType = 23; - OutOfMemory = 24; - IndexNotExist = 25; - EmptyCollection = 26; - UpdateImportTaskFailure = 27; - CollectionNameNotFound = 28; - CreateCredentialFailure = 29; - UpdateCredentialFailure = 30; - DeleteCredentialFailure = 31; - GetCredentialFailure = 32; - ListCredUsersFailure = 33; - - // internal error code. - DDRequestRace = 1000; -} - -enum IndexState { - IndexStateNone = 0; - Unissued = 1; - InProgress = 2; - Finished = 3; - Failed = 4; -} - -enum SegmentState { - SegmentStateNone = 0; - NotExist = 1; - Growing = 2; - Sealed = 3; - Flushed = 4; - Flushing = 5; - Dropped = 6; - Importing = 7; -} - -message Status { - ErrorCode error_code = 1; - string reason = 2; -} - -message KeyValuePair { - string key = 1; - string value = 2; -} - -message KeyDataPair { - string key = 1; - bytes data = 2; -} - -message Blob { - bytes value = 1; -} - -message Address { - string ip = 1; - int64 port = 2; -} - -enum MsgType { - Undefined = 0; - /* DEFINITION REQUESTS: COLLECTION */ - CreateCollection = 100; - DropCollection = 101; - HasCollection = 102; - DescribeCollection = 103; - ShowCollections = 104; - GetSystemConfigs = 105; - LoadCollection = 106; - ReleaseCollection = 107; - CreateAlias = 108; - DropAlias = 109; - AlterAlias = 110; - - - /* DEFINITION REQUESTS: PARTITION */ - CreatePartition = 200; - DropPartition = 201; - HasPartition = 202; - DescribePartition = 203; - ShowPartitions = 204; - LoadPartitions = 205; - ReleasePartitions = 206; - - /* DEFINE REQUESTS: SEGMENT */ - ShowSegments = 250; - DescribeSegment = 251; - LoadSegments = 252; - ReleaseSegments = 253; - HandoffSegments = 254; - LoadBalanceSegments = 255; - DescribeSegments = 256; - - /* DEFINITION REQUESTS: INDEX */ - CreateIndex = 300; - DescribeIndex = 301; - DropIndex = 302; - - /* MANIPULATION REQUESTS */ - Insert = 400; - Delete = 401; - Flush = 402; - - /* QUERY */ - Search = 500; - SearchResult = 501; - GetIndexState = 502; - GetIndexBuildProgress = 503; - GetCollectionStatistics = 504; - GetPartitionStatistics = 505; - Retrieve = 506; - RetrieveResult = 507; - WatchDmChannels = 508; - RemoveDmChannels = 509; - WatchQueryChannels = 510; - RemoveQueryChannels = 511; - SealedSegmentsChangeInfo = 512; - WatchDeltaChannels = 513; - GetShardLeaders = 514; - - /* DATA SERVICE */ - SegmentInfo = 600; - SystemInfo = 601; - GetRecoveryInfo = 602; - GetSegmentState = 603; - - /* SYSTEM CONTROL */ - TimeTick = 1200; - QueryNodeStats = 1201; // GOOSE TODO: Remove kQueryNodeStats - LoadIndex = 1202; - RequestID = 1203; - RequestTSO = 1204; - AllocateSegment = 1205; - SegmentStatistics = 1206; - SegmentFlushDone = 1207; - - DataNodeTt = 1208; - - /* Credential */ - CreateCredential = 1500; - GetCredential = 1501; - DeleteCredential = 1502; - UpdateCredential = 1503; - ListCredUsernames = 1504; -} - -message MsgBase { - MsgType msg_type = 1; - int64 msgID = 2; - uint64 timestamp = 3; - int64 sourceID = 4; -} - -enum DslType { - Dsl = 0; - BoolExprV1 = 1; -} - -// Don't Modify This. @czs -message MsgHeader { - common.MsgBase base = 1; -} - -// Don't Modify This. @czs -message DMLMsgHeader { - common.MsgBase base = 1; - string shardName = 2; -} - -enum CompactionState { - UndefiedState = 0; - Executing = 1; - Completed = 2; -} - -enum ConsistencyLevel { - Strong = 0; - Session = 1; // default in PyMilvus - Bounded = 2; - Eventually = 3; - Customized = 4; // Users pass their own `guarantee_timestamp`. -} - -enum ImportState { - ImportPending = 0; - ImportFailed = 1; - ImportStarted = 2; - ImportDownloaded = 3; - ImportParsed = 4; - ImportPersisted = 5; - ImportCompleted = 6; -} diff --git a/pymilvus/grpc_gen/proto/milvus.proto b/pymilvus/grpc_gen/proto/milvus.proto deleted file mode 100644 index 20ecc0d59..000000000 --- a/pymilvus/grpc_gen/proto/milvus.proto +++ /dev/null @@ -1,915 +0,0 @@ -syntax = "proto3"; -package milvus.proto.milvus; - -option go_package = "github.com/milvus-io/milvus/internal/proto/milvuspb"; - -option java_multiple_files = true; -option java_package = "io.milvus.grpc"; -option java_outer_classname = "MilvusProto"; -option java_generate_equals_and_hash = true; - -import "common.proto"; -import "schema.proto"; - -service MilvusService { - rpc CreateCollection(CreateCollectionRequest) returns (common.Status) {} - rpc DropCollection(DropCollectionRequest) returns (common.Status) {} - rpc HasCollection(HasCollectionRequest) returns (BoolResponse) {} - rpc LoadCollection(LoadCollectionRequest) returns (common.Status) {} - rpc ReleaseCollection(ReleaseCollectionRequest) returns (common.Status) {} - rpc DescribeCollection(DescribeCollectionRequest) returns (DescribeCollectionResponse) {} - rpc GetCollectionStatistics(GetCollectionStatisticsRequest) returns (GetCollectionStatisticsResponse) {} - rpc ShowCollections(ShowCollectionsRequest) returns (ShowCollectionsResponse) {} - - rpc CreatePartition(CreatePartitionRequest) returns (common.Status) {} - rpc DropPartition(DropPartitionRequest) returns (common.Status) {} - rpc HasPartition(HasPartitionRequest) returns (BoolResponse) {} - rpc LoadPartitions(LoadPartitionsRequest) returns (common.Status) {} - rpc ReleasePartitions(ReleasePartitionsRequest) returns (common.Status) {} - rpc GetPartitionStatistics(GetPartitionStatisticsRequest) returns (GetPartitionStatisticsResponse) {} - rpc ShowPartitions(ShowPartitionsRequest) returns (ShowPartitionsResponse) {} - - rpc CreateAlias(CreateAliasRequest) returns (common.Status) {} - rpc DropAlias(DropAliasRequest) returns (common.Status) {} - rpc AlterAlias(AlterAliasRequest) returns (common.Status) {} - - rpc CreateIndex(CreateIndexRequest) returns (common.Status) {} - rpc DescribeIndex(DescribeIndexRequest) returns (DescribeIndexResponse) {} - rpc GetIndexState(GetIndexStateRequest) returns (GetIndexStateResponse) {} - rpc GetIndexBuildProgress(GetIndexBuildProgressRequest) returns (GetIndexBuildProgressResponse) {} - rpc DropIndex(DropIndexRequest) returns (common.Status) {} - - rpc Insert(InsertRequest) returns (MutationResult) {} - rpc Delete(DeleteRequest) returns (MutationResult) {} - rpc Search(SearchRequest) returns (SearchResults) {} - rpc Flush(FlushRequest) returns (FlushResponse) {} - rpc Query(QueryRequest) returns (QueryResults) {} - rpc CalcDistance(CalcDistanceRequest) returns (CalcDistanceResults) {} - - rpc GetFlushState(GetFlushStateRequest) returns (GetFlushStateResponse) {} - rpc GetPersistentSegmentInfo(GetPersistentSegmentInfoRequest) returns (GetPersistentSegmentInfoResponse) {} - rpc GetQuerySegmentInfo(GetQuerySegmentInfoRequest) returns (GetQuerySegmentInfoResponse) {} - rpc GetReplicas(GetReplicasRequest) returns (GetReplicasResponse) {} - - rpc Dummy(DummyRequest) returns (DummyResponse) {} - - // TODO: remove - rpc RegisterLink(RegisterLinkRequest) returns (RegisterLinkResponse) {} - - // https://wiki.lfaidata.foundation/display/MIL/MEP+8+--+Add+metrics+for+proxy - rpc GetMetrics(GetMetricsRequest) returns (GetMetricsResponse) {} - rpc LoadBalance(LoadBalanceRequest) returns (common.Status) {} - rpc GetCompactionState(GetCompactionStateRequest) returns (GetCompactionStateResponse) {} - rpc ManualCompaction(ManualCompactionRequest) returns (ManualCompactionResponse) {} - rpc GetCompactionStateWithPlans(GetCompactionPlansRequest) returns (GetCompactionPlansResponse) {} - - // https://wiki.lfaidata.foundation/display/MIL/MEP+24+--+Support+bulk+load - rpc Import(ImportRequest) returns (ImportResponse) {} - rpc GetImportState(GetImportStateRequest) returns (GetImportStateResponse) {} - - // https://wiki.lfaidata.foundation/display/MIL/MEP+27+--+Support+Basic+Authentication - rpc CreateCredential(CreateCredentialRequest) returns (common.Status) {} - rpc UpdateCredential(UpdateCredentialRequest) returns (common.Status) {} - rpc DeleteCredential(DeleteCredentialRequest) returns (common.Status) {} - rpc ListCredUsers(ListCredUsersRequest) returns (ListCredUsersResponse) {} -} - -message CreateAliasRequest { - common.MsgBase base = 1; - string db_name = 2; - string collection_name = 3; - string alias = 4; -} - -message DropAliasRequest { - common.MsgBase base = 1; - string db_name = 2; - string alias = 3; -} - -message AlterAliasRequest{ - common.MsgBase base = 1; - string db_name = 2; - string collection_name = 3; - string alias = 4; -} - -/** -* Create collection in milvus -*/ -message CreateCollectionRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The unique collection name in milvus.(Required) - string collection_name = 3; - // The serialized `schema.CollectionSchema`(Required) - bytes schema = 4; - // Once set, no modification is allowed (Optional) - // https://github.com/milvus-io/milvus/issues/6690 - int32 shards_num = 5; - // The consistency level that the collection used, modification is not supported now. - common.ConsistencyLevel consistency_level = 6; -} - -/** -* Drop collection in milvus, also will drop data in collection. -*/ -message DropCollectionRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The unique collection name in milvus.(Required) - string collection_name = 3; -} - -/** -* Check collection exist in milvus or not. -*/ -message HasCollectionRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The collection name you want to check. - string collection_name = 3; - // If time_stamp is not zero, will return true when time_stamp >= created collection timestamp, otherwise will return false. - uint64 time_stamp = 4; -} - - -message BoolResponse { - common.Status status = 1; - bool value = 2; -} - -message StringResponse { - common.Status status = 1; - string value = 2; -} - -/** -* Get collection meta datas like: schema, collectionID, shards number ... -*/ -message DescribeCollectionRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The collection name you want to describe, you can pass collection_name or collectionID - string collection_name = 3; - // The collection ID you want to describe - int64 collectionID = 4; - // If time_stamp is not zero, will describe collection success when time_stamp >= created collection timestamp, otherwise will throw error. - uint64 time_stamp = 5; -} - -/** -* DescribeCollection Response -*/ -message DescribeCollectionResponse { - // Contain error_code and reason - common.Status status = 1; - // The schema param when you created collection. - schema.CollectionSchema schema = 2; - // The collection id - int64 collectionID = 3; - // System design related, users should not perceive - repeated string virtual_channel_names = 4; - // System design related, users should not perceive - repeated string physical_channel_names = 5; - // Hybrid timestamp in milvus - uint64 created_timestamp = 6; - // The utc timestamp calculated by created_timestamp - uint64 created_utc_timestamp = 7; - // The shards number you set. - int32 shards_num = 8; - // The aliases of this collection - repeated string aliases = 9; - // The message ID/posititon when collection is created - repeated common.KeyDataPair start_positions = 10; - // The consistency level that the collection used, modification is not supported now. - common.ConsistencyLevel consistency_level = 11; - // The collection name - string collection_name = 12; -} - -/** -* Load collection data into query nodes, then you can do vector search on this collection. -*/ -message LoadCollectionRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The collection name you want to load - string collection_name = 3; - // The replica number to load, default by 1 - int32 replica_number = 4; -} - -/** -* Release collection data from query nodes, then you can't do vector search on this collection. -*/ -message ReleaseCollectionRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The collection name you want to release - string collection_name = 3; -} - -/** -* Get collection statistics like row_count. -*/ -message GetCollectionStatisticsRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The collection name you want get statistics - string collection_name = 3; -} - -/** -* Will return collection statistics in stats field like [{key:"row_count",value:"1"}] -*/ -message GetCollectionStatisticsResponse { - // Contain error_code and reason - common.Status status = 1; - // Collection statistics data - repeated common.KeyValuePair stats = 2; -} - -/* -* This is for ShowCollectionsRequest type field. -*/ -enum ShowType { - // Will return all colloections - All = 0; - // Will return loaded collections with their inMemory_percentages - InMemory = 1; -} - -/* -* List collections -*/ -message ShowCollectionsRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // Not useful for now - uint64 time_stamp = 3; - // Decide return Loaded collections or All collections(Optional) - ShowType type = 4; - // When type is InMemory, will return these collection's inMemory_percentages.(Optional) - repeated string collection_names = 5; -} - -/* -* Return basic collection infos. -*/ -message ShowCollectionsResponse { - // Contain error_code and reason - common.Status status = 1; - // Collection name array - repeated string collection_names = 2; - // Collection Id array - repeated int64 collection_ids = 3; - // Hybrid timestamps in milvus - repeated uint64 created_timestamps = 4; - // The utc timestamp calculated by created_timestamp - repeated uint64 created_utc_timestamps = 5; - // Load percentage on querynode when type is InMemory - repeated int64 inMemory_percentages = 6; -} - -/* -* Create partition in created collection. -*/ -message CreatePartitionRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The collection name in milvus - string collection_name = 3; - // The partition name you want to create. - string partition_name = 4; -} - -/* -* Drop partition in created collection. -*/ -message DropPartitionRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The collection name in milvus - string collection_name = 3; - // The partition name you want to drop - string partition_name = 4; -} - -/* -* Check if partition exist in collection or not. -*/ -message HasPartitionRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The collection name in milvus - string collection_name = 3; - // The partition name you want to check - string partition_name = 4; -} - -/* -* Load specific partitions data of one collection into query nodes -* Then you can get these data as result when you do vector search on this collection. -*/ -message LoadPartitionsRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The collection name in milvus - string collection_name = 3; - // The partition names you want to load - repeated string partition_names = 4; - // The replicas number you would load, 1 by default - int32 replica_number = 5; -} - -/* -* Release specific partitions data of one collection from query nodes. -* Then you can not get these data as result when you do vector search on this collection. -*/ -message ReleasePartitionsRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The collection name in milvus - string collection_name = 3; - // The partition names you want to release - repeated string partition_names = 4; -} - -/* -* Get partition statistics like row_count. -*/ -message GetPartitionStatisticsRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The collection name in milvus - string collection_name = 3; - // The partition name you want to collect statistics - string partition_name = 4; -} - -message GetPartitionStatisticsResponse { - common.Status status = 1; - repeated common.KeyValuePair stats = 2; -} - -/* -* List all partitions for particular collection -*/ -message ShowPartitionsRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The collection name you want to describe, you can pass collection_name or collectionID - string collection_name = 3; - // The collection id in milvus - int64 collectionID = 4; - // When type is InMemory, will return these patitions's inMemory_percentages.(Optional) - repeated string partition_names = 5; - // Decide return Loaded partitions or All partitions(Optional) - ShowType type = 6; -} - -/* -* List all partitions for particular collection response. -* The returned datas are all rows, we can format to columns by therir index. -*/ -message ShowPartitionsResponse { - // Contain error_code and reason - common.Status status = 1; - // All partition names for this collection - repeated string partition_names = 2; - // All partition ids for this collection - repeated int64 partitionIDs = 3; - // All hybrid timestamps - repeated uint64 created_timestamps = 4; - // All utc timestamps calculated by created_timestamps - repeated uint64 created_utc_timestamps = 5; - // Load percentage on querynode - repeated int64 inMemory_percentages = 6; -} - -message DescribeSegmentRequest { - common.MsgBase base = 1; - int64 collectionID = 2; - int64 segmentID = 3; -} - -message DescribeSegmentResponse { - common.Status status = 1; - int64 indexID = 2; - int64 buildID = 3; - bool enable_index = 4; - int64 fieldID = 5; -} - -message ShowSegmentsRequest { - common.MsgBase base = 1; - int64 collectionID = 2; - int64 partitionID = 3; -} - -message ShowSegmentsResponse { - common.Status status = 1; - repeated int64 segmentIDs = 2; -} - -/* -* Create index for vector datas -*/ -message CreateIndexRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The particular collection name you want to create index. - string collection_name = 3; - // The vector field name in this particular collection - string field_name = 4; - // Support keys: index_type,metric_type, params. Different index_type may has different params. - repeated common.KeyValuePair extra_params = 5; - // Version before 2.0.2 doesn't contain index_name, we use default index name. - string index_name = 6; -} - -/* -* Get created index information. -* Current release of Milvus only supports showing latest built index. -*/ -message DescribeIndexRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2; - // The particular collection name in Milvus - string collection_name = 3; - // The vector field name in this particular collection - string field_name = 4; - // No need to set up for now @2021.06.30 - string index_name = 5; -} - -/* -* Index informations -*/ -message IndexDescription { - // Index name - string index_name = 1; - // Index id - int64 indexID = 2; - // Will return index_type, metric_type, params(like nlist). - repeated common.KeyValuePair params = 3; - // The vector field name - string field_name = 4; -} - -/* -* Describe index response -*/ -message DescribeIndexResponse { - // Response status - common.Status status = 1; - // All index informations, for now only return tha latest index you created for the collection. - repeated IndexDescription index_descriptions = 2; -} - -/* -* Get index building progress -*/ -message GetIndexBuildProgressRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string db_name = 2 ; - // The collection name in milvus - string collection_name = 3; - // The vector field name in this collection - string field_name = 4; - // Not useful for now - string index_name = 5; -} - -message GetIndexBuildProgressResponse { - common.Status status = 1; - int64 indexed_rows = 2; - int64 total_rows = 3; -} - -message GetIndexStateRequest { - common.MsgBase base = 1; // must - string db_name = 2 ; - string collection_name = 3; // must - string field_name = 4; - string index_name = 5; // No need to set up for now @2021.06.30 -} - -message GetIndexStateResponse { - common.Status status = 1; - common.IndexState state = 2; - string fail_reason = 3; -} - -message DropIndexRequest { - common.MsgBase base = 1; // must - string db_name = 2; - string collection_name = 3; // must - string field_name = 4; - string index_name = 5; // No need to set up for now @2021.06.30 -} - -message InsertRequest { - common.MsgBase base = 1; - string db_name = 2; - string collection_name = 3; - string partition_name = 4; - repeated schema.FieldData fields_data = 5; - repeated uint32 hash_keys = 6; - uint32 num_rows = 7; -} - -message MutationResult { - common.Status status = 1; - schema.IDs IDs = 2; // required for insert, delete - repeated uint32 succ_index = 3; // error indexes indicate - repeated uint32 err_index = 4; // error indexes indicate - bool acknowledged = 5; - int64 insert_cnt = 6; - int64 delete_cnt = 7; - int64 upsert_cnt = 8; - uint64 timestamp = 9; -} - -message DeleteRequest { - common.MsgBase base = 1; - string db_name = 2; - string collection_name = 3; - string partition_name = 4; - string expr = 5; - repeated uint32 hash_keys = 6; -} - -enum PlaceholderType { - None = 0; - BinaryVector = 100; - FloatVector = 101; -} - -message PlaceholderValue { - string tag = 1; - PlaceholderType type = 2; - // values is a 2d-array, every array contains a vector - repeated bytes values = 3; -} - -message PlaceholderGroup { - repeated PlaceholderValue placeholders = 1; -} - -message SearchRequest { - common.MsgBase base = 1; // must - string db_name = 2; - string collection_name = 3; // must - repeated string partition_names = 4; // must - string dsl = 5; // must - // serialized `PlaceholderGroup` - bytes placeholder_group = 6; // must - common.DslType dsl_type = 7; // must - repeated string output_fields = 8; - repeated common.KeyValuePair search_params = 9; // must - uint64 travel_timestamp = 10; - uint64 guarantee_timestamp = 11; // guarantee_timestamp -} - -message Hits { - repeated int64 IDs = 1; - repeated bytes row_data = 2; - repeated float scores = 3; -} - -message SearchResults { - common.Status status = 1; - schema.SearchResultData results = 2; - string collection_name = 3; -} - -message FlushRequest { - common.MsgBase base = 1; - string db_name = 2; - repeated string collection_names = 3; -} - -message FlushResponse{ - common.Status status = 1; - string db_name = 2; - map coll_segIDs = 3; -} - -message QueryRequest { - common.MsgBase base = 1; - string db_name = 2; - string collection_name = 3; - string expr = 4; - repeated string output_fields = 5; - repeated string partition_names = 6; - uint64 travel_timestamp = 7; - uint64 guarantee_timestamp = 8; // guarantee_timestamp -} - -message QueryResults { - common.Status status = 1; - repeated schema.FieldData fields_data = 2; - string collection_name = 3; -} - -message VectorIDs { - string collection_name = 1; - string field_name = 2; - schema.IDs id_array = 3; - repeated string partition_names = 4; -} - -message VectorsArray { - oneof array { - VectorIDs id_array = 1; // vector ids - schema.VectorField data_array = 2; // vectors data - } -} - -message CalcDistanceRequest { - common.MsgBase base = 1; - VectorsArray op_left = 2; // vectors on the left of operator - VectorsArray op_right = 3; // vectors on the right of operator - repeated common.KeyValuePair params = 4; // "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO" -} - -message CalcDistanceResults { - common.Status status = 1; - // num(op_left)*num(op_right) distance values, "HAMMIN" return integer distance - oneof array { - schema.IntArray int_dist = 2; - schema.FloatArray float_dist = 3; - } -} - -message PersistentSegmentInfo { - int64 segmentID = 1; - int64 collectionID = 2; - int64 partitionID = 3; - int64 num_rows = 4; - common.SegmentState state = 5; -} - -message GetPersistentSegmentInfoRequest { - common.MsgBase base = 1; // must - string dbName = 2; - string collectionName = 3; // must -} - -message GetPersistentSegmentInfoResponse { - common.Status status = 1; - repeated PersistentSegmentInfo infos = 2; -} - -message QuerySegmentInfo { - int64 segmentID = 1; - int64 collectionID = 2; - int64 partitionID = 3; - int64 mem_size = 4; - int64 num_rows = 5; - string index_name = 6; - int64 indexID = 7; - int64 nodeID = 8; - common.SegmentState state = 9; -} - -message GetQuerySegmentInfoRequest { - common.MsgBase base = 1; // must - string dbName = 2; - string collectionName = 3; // must -} - -message GetQuerySegmentInfoResponse { - common.Status status = 1; - repeated QuerySegmentInfo infos = 2; -} - -message DummyRequest { - string request_type = 1; -} - -message DummyResponse { - string response = 1; -} - -message RegisterLinkRequest { -} - -message RegisterLinkResponse { - common.Address address = 1; - common.Status status = 2; -} - -message GetMetricsRequest { - common.MsgBase base = 1; - string request = 2; // request is of jsonic format -} - -message GetMetricsResponse { - common.Status status = 1; - string response = 2; // response is of jsonic format - string component_name = 3; // metrics from which component -} - -/* -* Do load balancing operation from src_nodeID to dst_nodeID. -*/ -message LoadBalanceRequest { - common.MsgBase base = 1; - int64 src_nodeID = 2; - repeated int64 dst_nodeIDs = 3; - repeated int64 sealed_segmentIDs = 4; - string collectionName = 5; -} - -message ManualCompactionRequest { - int64 collectionID = 1; - uint64 timetravel = 2; -} - -message ManualCompactionResponse { - common.Status status = 1; - int64 compactionID = 2; -} - -message GetCompactionStateRequest { - int64 compactionID = 1; -} - -message GetCompactionStateResponse { - common.Status status = 1; - common.CompactionState state = 2; - int64 executingPlanNo = 3; - int64 timeoutPlanNo = 4; - int64 completedPlanNo = 5; -} - -message GetCompactionPlansRequest { - int64 compactionID = 1; -} - -message GetCompactionPlansResponse { - common.Status status = 1; - common.CompactionState state = 2; - repeated CompactionMergeInfo mergeInfos = 3; -} - -message CompactionMergeInfo { - repeated int64 sources = 1; - int64 target = 2; -} - -message GetFlushStateRequest { - repeated int64 segmentIDs = 1; -} - -message GetFlushStateResponse { - common.Status status = 1; - bool flushed = 2; -} - -message ImportRequest { - string collection_name = 1; // target collection - string partition_name = 2; // target partition - repeated string channel_names = 3; // channel names for the collection - bool row_based = 4; // the file is row-based or column-based - repeated string files = 5; // file paths to be imported - repeated common.KeyValuePair options = 6; // import options, bucket, etc. -} - -message ImportResponse { - common.Status status = 1; - repeated int64 tasks = 2; // id array of import tasks -} - -message GetImportStateRequest { - int64 task = 1; // id of an import task -} - -message GetImportStateResponse { - common.Status status = 1; - common.ImportState state = 2; // is this import task finished or not - int64 row_count = 3; // if the task is finished, this value is how many rows are imported. if the task is not finished, this value is how many rows are parsed. return 0 if failed. - repeated int64 id_list = 4; // auto generated ids if the primary key is autoid - repeated common.KeyValuePair infos = 5; // more informations about the task, progress percent, file path, failed reason, etc. -} - -message GetReplicasRequest { - common.MsgBase base = 1; - int64 collectionID = 2; - bool with_shard_nodes = 3; -} - -message GetReplicasResponse { - common.Status status = 1; - repeated ReplicaInfo replicas = 2; -} - -message ReplicaInfo { // ReplicaGroup - int64 replicaID = 1; - int64 collectionID = 2; - repeated int64 partition_ids = 3; // empty indicates to load collection - repeated ShardReplica shard_replicas = 4; - repeated int64 node_ids = 5; // include leaders -} - -message ShardReplica { - int64 leaderID = 1; - string leader_addr = 2; // IP:port - string dm_channel_name = 3; - // optional, DO NOT save it in meta, set it only for GetReplicas() - // if with_shard_nodes is true - repeated int64 node_ids = 4; -} - -service ProxyService { - rpc RegisterLink(RegisterLinkRequest) returns (RegisterLinkResponse) {} -} - -// https://wiki.lfaidata.foundation/display/MIL/MEP+27+--+Support+Basic+Authentication - -message CreateCredentialRequest { - // Not useful for now - common.MsgBase base = 1; - // username - string username = 2; - // ciphertext password - string password = 3; - // create time - uint64 created_utc_timestamps = 4; - // modify time - uint64 modified_utc_timestamps = 5; -} - -message UpdateCredentialRequest { - // Not useful for now - common.MsgBase base = 1; - // username - string username = 2; - // old password - string oldPassword = 3; - // new password - string newPassword = 4; - // create time - uint64 created_utc_timestamps = 5; - // modify time - uint64 modified_utc_timestamps = 6; -} - -message DeleteCredentialRequest { - // Not useful for now - common.MsgBase base = 1; - // Not useful for now - string username = 2; -} - -message ListCredUsersResponse { - // Contain error_code and reason - common.Status status = 1; - // username array - repeated string usernames = 2; -} - -message ListCredUsersRequest { - // Not useful for now - common.MsgBase base = 1; -} - diff --git a/pymilvus/grpc_gen/proto/python_gen.sh b/pymilvus/grpc_gen/proto/python_gen.sh deleted file mode 100755 index a8cadb7ed..000000000 --- a/pymilvus/grpc_gen/proto/python_gen.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -OUTDIR=../ - -python -m grpc_tools.protoc -I . --python_out=${OUTDIR} common.proto -python -m grpc_tools.protoc -I . --python_out=${OUTDIR} schema.proto -python -m grpc_tools.protoc -I . --python_out=${OUTDIR} --grpc_python_out=${OUTDIR} milvus.proto - -sed -i 's/import common_pb2 as common__pb2/from . import common_pb2 as common__pb2/' $OUTDIR/*py -sed -i 's/import schema_pb2 as schema__pb2/from . import schema_pb2 as schema__pb2/' $OUTDIR/*py -sed -i 's/import milvus_pb2 as milvus__pb2/from . import milvus_pb2 as milvus__pb2/' $OUTDIR/*py diff --git a/pymilvus/grpc_gen/proto/schema.proto b/pymilvus/grpc_gen/proto/schema.proto deleted file mode 100644 index 96ba20a4a..000000000 --- a/pymilvus/grpc_gen/proto/schema.proto +++ /dev/null @@ -1,132 +0,0 @@ -syntax = "proto3"; -package milvus.proto.schema; - -option go_package = "github.com/milvus-io/milvus/internal/proto/schemapb"; - -option java_multiple_files = true; -option java_package = "io.milvus.grpc"; -option java_outer_classname = "SchemaProto"; -option java_generate_equals_and_hash = true; - -import "common.proto"; - -/** - * @brief Field data type - */ -enum DataType { - None = 0; - Bool = 1; - Int8 = 2; - Int16 = 3; - Int32 = 4; - Int64 = 5; - - Float = 10; - Double = 11; - - String = 20; - VarChar = 21; // variable-length strings with a specified maximum length - - BinaryVector = 100; - FloatVector = 101; -} - -/** - * @brief Field schema - */ -message FieldSchema { - int64 fieldID = 1; - string name = 2; - bool is_primary_key = 3; - string description = 4; - DataType data_type = 5; - repeated common.KeyValuePair type_params = 6; - repeated common.KeyValuePair index_params = 7; - bool autoID = 8; -} - -/** - * @brief Collection schema - */ -message CollectionSchema { - string name = 1; - string description = 2; - bool autoID = 3; // deprecated later, keep compatible with c++ part now - 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; - } - int64 field_id = 5; -} - -message IDs { - oneof id_field { - LongArray int_id = 1; - StringArray str_id = 2; - } -} - -message SearchResultData { - int64 num_queries = 1; - int64 top_k = 2; - repeated FieldData fields_data = 3; - repeated float scores = 4; - IDs ids = 5; - repeated int64 topks = 6; -} - diff --git a/pymilvus/grpc_gen/python_gen.sh b/pymilvus/grpc_gen/python_gen.sh new file mode 100755 index 000000000..00ba571e8 --- /dev/null +++ b/pymilvus/grpc_gen/python_gen.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +OUTDIR=. +PROTO_DIR="milvus-proto/proto" + +python -m grpc_tools.protoc -I ${PROTO_DIR} --python_out=${OUTDIR} ${PROTO_DIR}/common.proto +python -m grpc_tools.protoc -I ${PROTO_DIR} --python_out=${OUTDIR} ${PROTO_DIR}/schema.proto +python -m grpc_tools.protoc -I ${PROTO_DIR} --python_out=${OUTDIR} --grpc_python_out=${OUTDIR} ${PROTO_DIR}/milvus.proto + +sed -i 's/import common_pb2 as common__pb2/from . import common_pb2 as common__pb2/' $OUTDIR/*py +sed -i 's/import schema_pb2 as schema__pb2/from . import schema_pb2 as schema__pb2/' $OUTDIR/*py +sed -i 's/import milvus_pb2 as milvus__pb2/from . import milvus_pb2 as milvus__pb2/' $OUTDIR/*py