diff --git a/Makefile b/Makefile index 8f859d79d1..a6780e5d69 100644 --- a/Makefile +++ b/Makefile @@ -22,12 +22,9 @@ ARCH := $(shell arch) mode = Release disk_index = OFF +export GIT_BRANCH=master -milvus: build-cpp print-build-info -ifeq ($(RELEASE), TRUE) - @echo "Update milvus/api version ..." - @(env bash $(PWD)/scripts/update_api_version.sh) -endif +milvus: build-cpp update-api-version print-build-info @echo "Building Milvus ..." @source $(PWD)/scripts/setenv.sh && \ mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="1" && \ @@ -74,7 +71,7 @@ lint: tools/bin/revive @tools/bin/revive -formatter friendly -config tools/check/revive.toml ./... #TODO: Check code specifications by golangci-lint -static-check: +static-check: update-api-version @echo "Running $@ check" @GO111MODULE=on ${GOPATH}/bin/golangci-lint cache clean @source $(PWD)/scripts/setenv.sh && GO111MODULE=on ${GOPATH}/bin/golangci-lint run --timeout=30m --config ./.golangci.yml ./internal/... @@ -122,21 +119,27 @@ embd-milvus: build-cpp-embd print-build-info GO111MODULE=on $(GO) build -ldflags="-r /tmp/milvus/lib/ -X '$(OBJPREFIX).BuildTags=$(BUILD_TAGS)' -X '$(OBJPREFIX).BuildTime=$(BUILD_TIME)' -X '$(OBJPREFIX).GitCommit=$(GIT_COMMIT)' -X '$(OBJPREFIX).GoVersion=$(GO_VERSION)'" \ ${APPLE_SILICON_FLAG} -buildmode=c-shared -o $(INSTALL_PATH)/embd-milvus.so $(PWD)/pkg/embedded/embedded.go 1>/dev/null +download-milvus-proto: + @echo "Download milvus-proto repo ..." + @(env bash $(PWD)/scripts/download_milvus_proto.sh) +update-api-version: + @echo "Update milvus/api version ..." + @(env bash $(PWD)/scripts/update_api_version.sh) -build-cpp: +build-cpp: download-milvus-proto @echo "Building Milvus cpp library ..." @(env bash $(PWD)/scripts/core_build.sh -t ${mode} -f "$(CUSTOM_THIRDPARTY_PATH)" -n ${disk_index}) -build-cpp-embd: +build-cpp-embd: download-milvus-proto @echo "Building **Embedded** Milvus cpp library ..." @(env bash $(PWD)/scripts/core_build.sh -b -t ${mode} -f "$(CUSTOM_THIRDPARTY_PATH)" -n ${disk_index}) -build-cpp-with-unittest: +build-cpp-with-unittest: download-milvus-proto @echo "Building Milvus cpp library with unittest ..." @(env bash $(PWD)/scripts/core_build.sh -t ${mode} -u -f "$(CUSTOM_THIRDPARTY_PATH)" -n ${disk_index}) -build-cpp-with-coverage: +build-cpp-with-coverage: download-milvus-proto @echo "Building Milvus cpp library with coverage and unittest ..." @(env bash $(PWD)/scripts/core_build.sh -t ${mode} -u -c -f "$(CUSTOM_THIRDPARTY_PATH)" -n ${disk_index}) diff --git a/api/commonpb/common.pb.go b/api/commonpb/common.pb.go deleted file mode 100644 index fc114a1b80..0000000000 --- a/api/commonpb/common.pb.go +++ /dev/null @@ -1,1606 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: common.proto - -package commonpb - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type ErrorCode int32 - -const ( - ErrorCode_Success ErrorCode = 0 - ErrorCode_UnexpectedError ErrorCode = 1 - ErrorCode_ConnectFailed ErrorCode = 2 - ErrorCode_PermissionDenied ErrorCode = 3 - ErrorCode_CollectionNotExists ErrorCode = 4 - ErrorCode_IllegalArgument ErrorCode = 5 - ErrorCode_IllegalDimension ErrorCode = 7 - ErrorCode_IllegalIndexType ErrorCode = 8 - ErrorCode_IllegalCollectionName ErrorCode = 9 - ErrorCode_IllegalTOPK ErrorCode = 10 - ErrorCode_IllegalRowRecord ErrorCode = 11 - ErrorCode_IllegalVectorID ErrorCode = 12 - ErrorCode_IllegalSearchResult ErrorCode = 13 - ErrorCode_FileNotFound ErrorCode = 14 - ErrorCode_MetaFailed ErrorCode = 15 - ErrorCode_CacheFailed ErrorCode = 16 - ErrorCode_CannotCreateFolder ErrorCode = 17 - ErrorCode_CannotCreateFile ErrorCode = 18 - ErrorCode_CannotDeleteFolder ErrorCode = 19 - ErrorCode_CannotDeleteFile ErrorCode = 20 - ErrorCode_BuildIndexError ErrorCode = 21 - ErrorCode_IllegalNLIST ErrorCode = 22 - ErrorCode_IllegalMetricType ErrorCode = 23 - ErrorCode_OutOfMemory ErrorCode = 24 - ErrorCode_IndexNotExist ErrorCode = 25 - ErrorCode_EmptyCollection ErrorCode = 26 - ErrorCode_UpdateImportTaskFailure ErrorCode = 27 - ErrorCode_CollectionNameNotFound ErrorCode = 28 - ErrorCode_CreateCredentialFailure ErrorCode = 29 - ErrorCode_UpdateCredentialFailure ErrorCode = 30 - ErrorCode_DeleteCredentialFailure ErrorCode = 31 - ErrorCode_GetCredentialFailure ErrorCode = 32 - ErrorCode_ListCredUsersFailure ErrorCode = 33 - ErrorCode_GetUserFailure ErrorCode = 34 - ErrorCode_CreateRoleFailure ErrorCode = 35 - ErrorCode_DropRoleFailure ErrorCode = 36 - ErrorCode_OperateUserRoleFailure ErrorCode = 37 - ErrorCode_SelectRoleFailure ErrorCode = 38 - ErrorCode_SelectUserFailure ErrorCode = 39 - ErrorCode_SelectResourceFailure ErrorCode = 40 - ErrorCode_OperatePrivilegeFailure ErrorCode = 41 - ErrorCode_SelectGrantFailure ErrorCode = 42 - ErrorCode_RefreshPolicyInfoCacheFailure ErrorCode = 43 - ErrorCode_ListPolicyFailure ErrorCode = 44 - ErrorCode_NotShardLeader ErrorCode = 45 - ErrorCode_NoReplicaAvailable ErrorCode = 46 - ErrorCode_SegmentNotFound ErrorCode = 47 - ErrorCode_ForceDeny ErrorCode = 48 - ErrorCode_RateLimit ErrorCode = 49 - ErrorCode_NodeIDNotMatch ErrorCode = 50 - // Service availability. - // NA: Not Available. - ErrorCode_DataCoordNA ErrorCode = 100 - // internal error code. - ErrorCode_DDRequestRace ErrorCode = 1000 -) - -var ErrorCode_name = map[int32]string{ - 0: "Success", - 1: "UnexpectedError", - 2: "ConnectFailed", - 3: "PermissionDenied", - 4: "CollectionNotExists", - 5: "IllegalArgument", - 7: "IllegalDimension", - 8: "IllegalIndexType", - 9: "IllegalCollectionName", - 10: "IllegalTOPK", - 11: "IllegalRowRecord", - 12: "IllegalVectorID", - 13: "IllegalSearchResult", - 14: "FileNotFound", - 15: "MetaFailed", - 16: "CacheFailed", - 17: "CannotCreateFolder", - 18: "CannotCreateFile", - 19: "CannotDeleteFolder", - 20: "CannotDeleteFile", - 21: "BuildIndexError", - 22: "IllegalNLIST", - 23: "IllegalMetricType", - 24: "OutOfMemory", - 25: "IndexNotExist", - 26: "EmptyCollection", - 27: "UpdateImportTaskFailure", - 28: "CollectionNameNotFound", - 29: "CreateCredentialFailure", - 30: "UpdateCredentialFailure", - 31: "DeleteCredentialFailure", - 32: "GetCredentialFailure", - 33: "ListCredUsersFailure", - 34: "GetUserFailure", - 35: "CreateRoleFailure", - 36: "DropRoleFailure", - 37: "OperateUserRoleFailure", - 38: "SelectRoleFailure", - 39: "SelectUserFailure", - 40: "SelectResourceFailure", - 41: "OperatePrivilegeFailure", - 42: "SelectGrantFailure", - 43: "RefreshPolicyInfoCacheFailure", - 44: "ListPolicyFailure", - 45: "NotShardLeader", - 46: "NoReplicaAvailable", - 47: "SegmentNotFound", - 48: "ForceDeny", - 49: "RateLimit", - 50: "NodeIDNotMatch", - 100: "DataCoordNA", - 1000: "DDRequestRace", -} - -var ErrorCode_value = map[string]int32{ - "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, - "GetUserFailure": 34, - "CreateRoleFailure": 35, - "DropRoleFailure": 36, - "OperateUserRoleFailure": 37, - "SelectRoleFailure": 38, - "SelectUserFailure": 39, - "SelectResourceFailure": 40, - "OperatePrivilegeFailure": 41, - "SelectGrantFailure": 42, - "RefreshPolicyInfoCacheFailure": 43, - "ListPolicyFailure": 44, - "NotShardLeader": 45, - "NoReplicaAvailable": 46, - "SegmentNotFound": 47, - "ForceDeny": 48, - "RateLimit": 49, - "NodeIDNotMatch": 50, - "DataCoordNA": 100, - "DDRequestRace": 1000, -} - -func (x ErrorCode) String() string { - return proto.EnumName(ErrorCode_name, int32(x)) -} - -func (ErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{0} -} - -type IndexState int32 - -const ( - IndexState_IndexStateNone IndexState = 0 - IndexState_Unissued IndexState = 1 - IndexState_InProgress IndexState = 2 - IndexState_Finished IndexState = 3 - IndexState_Failed IndexState = 4 - IndexState_Retry IndexState = 5 -) - -var IndexState_name = map[int32]string{ - 0: "IndexStateNone", - 1: "Unissued", - 2: "InProgress", - 3: "Finished", - 4: "Failed", - 5: "Retry", -} - -var IndexState_value = map[string]int32{ - "IndexStateNone": 0, - "Unissued": 1, - "InProgress": 2, - "Finished": 3, - "Failed": 4, - "Retry": 5, -} - -func (x IndexState) String() string { - return proto.EnumName(IndexState_name, int32(x)) -} - -func (IndexState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{1} -} - -type SegmentState int32 - -const ( - SegmentState_SegmentStateNone SegmentState = 0 - SegmentState_NotExist SegmentState = 1 - SegmentState_Growing SegmentState = 2 - SegmentState_Sealed SegmentState = 3 - SegmentState_Flushed SegmentState = 4 - SegmentState_Flushing SegmentState = 5 - SegmentState_Dropped SegmentState = 6 - SegmentState_Importing SegmentState = 7 -) - -var SegmentState_name = map[int32]string{ - 0: "SegmentStateNone", - 1: "NotExist", - 2: "Growing", - 3: "Sealed", - 4: "Flushed", - 5: "Flushing", - 6: "Dropped", - 7: "Importing", -} - -var SegmentState_value = map[string]int32{ - "SegmentStateNone": 0, - "NotExist": 1, - "Growing": 2, - "Sealed": 3, - "Flushed": 4, - "Flushing": 5, - "Dropped": 6, - "Importing": 7, -} - -func (x SegmentState) String() string { - return proto.EnumName(SegmentState_name, int32(x)) -} - -func (SegmentState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{2} -} - -type PlaceholderType int32 - -const ( - PlaceholderType_None PlaceholderType = 0 - PlaceholderType_BinaryVector PlaceholderType = 100 - PlaceholderType_FloatVector PlaceholderType = 101 -) - -var PlaceholderType_name = map[int32]string{ - 0: "None", - 100: "BinaryVector", - 101: "FloatVector", -} - -var PlaceholderType_value = map[string]int32{ - "None": 0, - "BinaryVector": 100, - "FloatVector": 101, -} - -func (x PlaceholderType) String() string { - return proto.EnumName(PlaceholderType_name, int32(x)) -} - -func (PlaceholderType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{3} -} - -type MsgType int32 - -const ( - MsgType_Undefined MsgType = 0 - // DEFINITION REQUESTS: COLLECTION - MsgType_CreateCollection MsgType = 100 - MsgType_DropCollection MsgType = 101 - MsgType_HasCollection MsgType = 102 - MsgType_DescribeCollection MsgType = 103 - MsgType_ShowCollections MsgType = 104 - MsgType_GetSystemConfigs MsgType = 105 - MsgType_LoadCollection MsgType = 106 - MsgType_ReleaseCollection MsgType = 107 - MsgType_CreateAlias MsgType = 108 - MsgType_DropAlias MsgType = 109 - MsgType_AlterAlias MsgType = 110 - MsgType_AlterCollection MsgType = 111 - // DEFINITION REQUESTS: PARTITION - MsgType_CreatePartition MsgType = 200 - MsgType_DropPartition MsgType = 201 - MsgType_HasPartition MsgType = 202 - MsgType_DescribePartition MsgType = 203 - MsgType_ShowPartitions MsgType = 204 - MsgType_LoadPartitions MsgType = 205 - MsgType_ReleasePartitions MsgType = 206 - // DEFINE REQUESTS: SEGMENT - MsgType_ShowSegments MsgType = 250 - MsgType_DescribeSegment MsgType = 251 - MsgType_LoadSegments MsgType = 252 - MsgType_ReleaseSegments MsgType = 253 - MsgType_HandoffSegments MsgType = 254 - MsgType_LoadBalanceSegments MsgType = 255 - MsgType_DescribeSegments MsgType = 256 - // DEFINITION REQUESTS: INDEX - MsgType_CreateIndex MsgType = 300 - MsgType_DescribeIndex MsgType = 301 - MsgType_DropIndex MsgType = 302 - // MANIPULATION REQUESTS - MsgType_Insert MsgType = 400 - MsgType_Delete MsgType = 401 - MsgType_Flush MsgType = 402 - MsgType_ResendSegmentStats MsgType = 403 - // QUERY - MsgType_Search MsgType = 500 - MsgType_SearchResult MsgType = 501 - MsgType_GetIndexState MsgType = 502 - MsgType_GetIndexBuildProgress MsgType = 503 - MsgType_GetCollectionStatistics MsgType = 504 - MsgType_GetPartitionStatistics MsgType = 505 - MsgType_Retrieve MsgType = 506 - MsgType_RetrieveResult MsgType = 507 - MsgType_WatchDmChannels MsgType = 508 - MsgType_RemoveDmChannels MsgType = 509 - MsgType_WatchQueryChannels MsgType = 510 - MsgType_RemoveQueryChannels MsgType = 511 - MsgType_SealedSegmentsChangeInfo MsgType = 512 - MsgType_WatchDeltaChannels MsgType = 513 - MsgType_GetShardLeaders MsgType = 514 - MsgType_GetReplicas MsgType = 515 - MsgType_UnsubDmChannel MsgType = 516 - MsgType_GetDistribution MsgType = 517 - MsgType_SyncDistribution MsgType = 518 - // DATA SERVICE - MsgType_SegmentInfo MsgType = 600 - MsgType_SystemInfo MsgType = 601 - MsgType_GetRecoveryInfo MsgType = 602 - MsgType_GetSegmentState MsgType = 603 - // SYSTEM CONTROL - MsgType_TimeTick MsgType = 1200 - MsgType_QueryNodeStats MsgType = 1201 - MsgType_LoadIndex MsgType = 1202 - MsgType_RequestID MsgType = 1203 - MsgType_RequestTSO MsgType = 1204 - MsgType_AllocateSegment MsgType = 1205 - MsgType_SegmentStatistics MsgType = 1206 - MsgType_SegmentFlushDone MsgType = 1207 - MsgType_DataNodeTt MsgType = 1208 - // Credential - MsgType_CreateCredential MsgType = 1500 - MsgType_GetCredential MsgType = 1501 - MsgType_DeleteCredential MsgType = 1502 - MsgType_UpdateCredential MsgType = 1503 - MsgType_ListCredUsernames MsgType = 1504 - // RBAC - MsgType_CreateRole MsgType = 1600 - MsgType_DropRole MsgType = 1601 - MsgType_OperateUserRole MsgType = 1602 - MsgType_SelectRole MsgType = 1603 - MsgType_SelectUser MsgType = 1604 - MsgType_SelectResource MsgType = 1605 - MsgType_OperatePrivilege MsgType = 1606 - MsgType_SelectGrant MsgType = 1607 - MsgType_RefreshPolicyInfoCache MsgType = 1608 - MsgType_ListPolicy MsgType = 1609 -) - -var MsgType_name = map[int32]string{ - 0: "Undefined", - 100: "CreateCollection", - 101: "DropCollection", - 102: "HasCollection", - 103: "DescribeCollection", - 104: "ShowCollections", - 105: "GetSystemConfigs", - 106: "LoadCollection", - 107: "ReleaseCollection", - 108: "CreateAlias", - 109: "DropAlias", - 110: "AlterAlias", - 111: "AlterCollection", - 200: "CreatePartition", - 201: "DropPartition", - 202: "HasPartition", - 203: "DescribePartition", - 204: "ShowPartitions", - 205: "LoadPartitions", - 206: "ReleasePartitions", - 250: "ShowSegments", - 251: "DescribeSegment", - 252: "LoadSegments", - 253: "ReleaseSegments", - 254: "HandoffSegments", - 255: "LoadBalanceSegments", - 256: "DescribeSegments", - 300: "CreateIndex", - 301: "DescribeIndex", - 302: "DropIndex", - 400: "Insert", - 401: "Delete", - 402: "Flush", - 403: "ResendSegmentStats", - 500: "Search", - 501: "SearchResult", - 502: "GetIndexState", - 503: "GetIndexBuildProgress", - 504: "GetCollectionStatistics", - 505: "GetPartitionStatistics", - 506: "Retrieve", - 507: "RetrieveResult", - 508: "WatchDmChannels", - 509: "RemoveDmChannels", - 510: "WatchQueryChannels", - 511: "RemoveQueryChannels", - 512: "SealedSegmentsChangeInfo", - 513: "WatchDeltaChannels", - 514: "GetShardLeaders", - 515: "GetReplicas", - 516: "UnsubDmChannel", - 517: "GetDistribution", - 518: "SyncDistribution", - 600: "SegmentInfo", - 601: "SystemInfo", - 602: "GetRecoveryInfo", - 603: "GetSegmentState", - 1200: "TimeTick", - 1201: "QueryNodeStats", - 1202: "LoadIndex", - 1203: "RequestID", - 1204: "RequestTSO", - 1205: "AllocateSegment", - 1206: "SegmentStatistics", - 1207: "SegmentFlushDone", - 1208: "DataNodeTt", - 1500: "CreateCredential", - 1501: "GetCredential", - 1502: "DeleteCredential", - 1503: "UpdateCredential", - 1504: "ListCredUsernames", - 1600: "CreateRole", - 1601: "DropRole", - 1602: "OperateUserRole", - 1603: "SelectRole", - 1604: "SelectUser", - 1605: "SelectResource", - 1606: "OperatePrivilege", - 1607: "SelectGrant", - 1608: "RefreshPolicyInfoCache", - 1609: "ListPolicy", -} - -var MsgType_value = map[string]int32{ - "Undefined": 0, - "CreateCollection": 100, - "DropCollection": 101, - "HasCollection": 102, - "DescribeCollection": 103, - "ShowCollections": 104, - "GetSystemConfigs": 105, - "LoadCollection": 106, - "ReleaseCollection": 107, - "CreateAlias": 108, - "DropAlias": 109, - "AlterAlias": 110, - "AlterCollection": 111, - "CreatePartition": 200, - "DropPartition": 201, - "HasPartition": 202, - "DescribePartition": 203, - "ShowPartitions": 204, - "LoadPartitions": 205, - "ReleasePartitions": 206, - "ShowSegments": 250, - "DescribeSegment": 251, - "LoadSegments": 252, - "ReleaseSegments": 253, - "HandoffSegments": 254, - "LoadBalanceSegments": 255, - "DescribeSegments": 256, - "CreateIndex": 300, - "DescribeIndex": 301, - "DropIndex": 302, - "Insert": 400, - "Delete": 401, - "Flush": 402, - "ResendSegmentStats": 403, - "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, - "GetReplicas": 515, - "UnsubDmChannel": 516, - "GetDistribution": 517, - "SyncDistribution": 518, - "SegmentInfo": 600, - "SystemInfo": 601, - "GetRecoveryInfo": 602, - "GetSegmentState": 603, - "TimeTick": 1200, - "QueryNodeStats": 1201, - "LoadIndex": 1202, - "RequestID": 1203, - "RequestTSO": 1204, - "AllocateSegment": 1205, - "SegmentStatistics": 1206, - "SegmentFlushDone": 1207, - "DataNodeTt": 1208, - "CreateCredential": 1500, - "GetCredential": 1501, - "DeleteCredential": 1502, - "UpdateCredential": 1503, - "ListCredUsernames": 1504, - "CreateRole": 1600, - "DropRole": 1601, - "OperateUserRole": 1602, - "SelectRole": 1603, - "SelectUser": 1604, - "SelectResource": 1605, - "OperatePrivilege": 1606, - "SelectGrant": 1607, - "RefreshPolicyInfoCache": 1608, - "ListPolicy": 1609, -} - -func (x MsgType) String() string { - return proto.EnumName(MsgType_name, int32(x)) -} - -func (MsgType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{4} -} - -type DslType int32 - -const ( - DslType_Dsl DslType = 0 - DslType_BoolExprV1 DslType = 1 -) - -var DslType_name = map[int32]string{ - 0: "Dsl", - 1: "BoolExprV1", -} - -var DslType_value = map[string]int32{ - "Dsl": 0, - "BoolExprV1": 1, -} - -func (x DslType) String() string { - return proto.EnumName(DslType_name, int32(x)) -} - -func (DslType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{5} -} - -type CompactionState int32 - -const ( - CompactionState_UndefiedState CompactionState = 0 - CompactionState_Executing CompactionState = 1 - CompactionState_Completed CompactionState = 2 -) - -var CompactionState_name = map[int32]string{ - 0: "UndefiedState", - 1: "Executing", - 2: "Completed", -} - -var CompactionState_value = map[string]int32{ - "UndefiedState": 0, - "Executing": 1, - "Completed": 2, -} - -func (x CompactionState) String() string { - return proto.EnumName(CompactionState_name, int32(x)) -} - -func (CompactionState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{6} -} - -type ConsistencyLevel int32 - -const ( - ConsistencyLevel_Strong ConsistencyLevel = 0 - ConsistencyLevel_Session ConsistencyLevel = 1 - ConsistencyLevel_Bounded ConsistencyLevel = 2 - ConsistencyLevel_Eventually ConsistencyLevel = 3 - ConsistencyLevel_Customized ConsistencyLevel = 4 -) - -var ConsistencyLevel_name = map[int32]string{ - 0: "Strong", - 1: "Session", - 2: "Bounded", - 3: "Eventually", - 4: "Customized", -} - -var ConsistencyLevel_value = map[string]int32{ - "Strong": 0, - "Session": 1, - "Bounded": 2, - "Eventually": 3, - "Customized": 4, -} - -func (x ConsistencyLevel) String() string { - return proto.EnumName(ConsistencyLevel_name, int32(x)) -} - -func (ConsistencyLevel) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{7} -} - -type ImportState int32 - -const ( - ImportState_ImportPending ImportState = 0 - ImportState_ImportFailed ImportState = 1 - ImportState_ImportStarted ImportState = 2 - ImportState_ImportPersisted ImportState = 5 - ImportState_ImportCompleted ImportState = 6 - ImportState_ImportFailedAndCleaned ImportState = 7 -) - -var ImportState_name = map[int32]string{ - 0: "ImportPending", - 1: "ImportFailed", - 2: "ImportStarted", - 5: "ImportPersisted", - 6: "ImportCompleted", - 7: "ImportFailedAndCleaned", -} - -var ImportState_value = map[string]int32{ - "ImportPending": 0, - "ImportFailed": 1, - "ImportStarted": 2, - "ImportPersisted": 5, - "ImportCompleted": 6, - "ImportFailedAndCleaned": 7, -} - -func (x ImportState) String() string { - return proto.EnumName(ImportState_name, int32(x)) -} - -func (ImportState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{8} -} - -type ObjectType int32 - -const ( - ObjectType_Collection ObjectType = 0 - ObjectType_Global ObjectType = 1 - ObjectType_User ObjectType = 2 -) - -var ObjectType_name = map[int32]string{ - 0: "Collection", - 1: "Global", - 2: "User", -} - -var ObjectType_value = map[string]int32{ - "Collection": 0, - "Global": 1, - "User": 2, -} - -func (x ObjectType) String() string { - return proto.EnumName(ObjectType_name, int32(x)) -} - -func (ObjectType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{9} -} - -type ObjectPrivilege int32 - -const ( - ObjectPrivilege_PrivilegeAll ObjectPrivilege = 0 - ObjectPrivilege_PrivilegeCreateCollection ObjectPrivilege = 1 - ObjectPrivilege_PrivilegeDropCollection ObjectPrivilege = 2 - ObjectPrivilege_PrivilegeDescribeCollection ObjectPrivilege = 3 - ObjectPrivilege_PrivilegeShowCollections ObjectPrivilege = 4 - ObjectPrivilege_PrivilegeLoad ObjectPrivilege = 5 - ObjectPrivilege_PrivilegeRelease ObjectPrivilege = 6 - ObjectPrivilege_PrivilegeCompaction ObjectPrivilege = 7 - ObjectPrivilege_PrivilegeInsert ObjectPrivilege = 8 - ObjectPrivilege_PrivilegeDelete ObjectPrivilege = 9 - ObjectPrivilege_PrivilegeGetStatistics ObjectPrivilege = 10 - ObjectPrivilege_PrivilegeCreateIndex ObjectPrivilege = 11 - ObjectPrivilege_PrivilegeIndexDetail ObjectPrivilege = 12 - ObjectPrivilege_PrivilegeDropIndex ObjectPrivilege = 13 - ObjectPrivilege_PrivilegeSearch ObjectPrivilege = 14 - ObjectPrivilege_PrivilegeFlush ObjectPrivilege = 15 - ObjectPrivilege_PrivilegeQuery ObjectPrivilege = 16 - ObjectPrivilege_PrivilegeLoadBalance ObjectPrivilege = 17 - ObjectPrivilege_PrivilegeImport ObjectPrivilege = 18 - ObjectPrivilege_PrivilegeCreateOwnership ObjectPrivilege = 19 - ObjectPrivilege_PrivilegeUpdateUser ObjectPrivilege = 20 - ObjectPrivilege_PrivilegeDropOwnership ObjectPrivilege = 21 - ObjectPrivilege_PrivilegeSelectOwnership ObjectPrivilege = 22 - ObjectPrivilege_PrivilegeManageOwnership ObjectPrivilege = 23 - ObjectPrivilege_PrivilegeSelectUser ObjectPrivilege = 24 -) - -var ObjectPrivilege_name = map[int32]string{ - 0: "PrivilegeAll", - 1: "PrivilegeCreateCollection", - 2: "PrivilegeDropCollection", - 3: "PrivilegeDescribeCollection", - 4: "PrivilegeShowCollections", - 5: "PrivilegeLoad", - 6: "PrivilegeRelease", - 7: "PrivilegeCompaction", - 8: "PrivilegeInsert", - 9: "PrivilegeDelete", - 10: "PrivilegeGetStatistics", - 11: "PrivilegeCreateIndex", - 12: "PrivilegeIndexDetail", - 13: "PrivilegeDropIndex", - 14: "PrivilegeSearch", - 15: "PrivilegeFlush", - 16: "PrivilegeQuery", - 17: "PrivilegeLoadBalance", - 18: "PrivilegeImport", - 19: "PrivilegeCreateOwnership", - 20: "PrivilegeUpdateUser", - 21: "PrivilegeDropOwnership", - 22: "PrivilegeSelectOwnership", - 23: "PrivilegeManageOwnership", - 24: "PrivilegeSelectUser", -} - -var ObjectPrivilege_value = map[string]int32{ - "PrivilegeAll": 0, - "PrivilegeCreateCollection": 1, - "PrivilegeDropCollection": 2, - "PrivilegeDescribeCollection": 3, - "PrivilegeShowCollections": 4, - "PrivilegeLoad": 5, - "PrivilegeRelease": 6, - "PrivilegeCompaction": 7, - "PrivilegeInsert": 8, - "PrivilegeDelete": 9, - "PrivilegeGetStatistics": 10, - "PrivilegeCreateIndex": 11, - "PrivilegeIndexDetail": 12, - "PrivilegeDropIndex": 13, - "PrivilegeSearch": 14, - "PrivilegeFlush": 15, - "PrivilegeQuery": 16, - "PrivilegeLoadBalance": 17, - "PrivilegeImport": 18, - "PrivilegeCreateOwnership": 19, - "PrivilegeUpdateUser": 20, - "PrivilegeDropOwnership": 21, - "PrivilegeSelectOwnership": 22, - "PrivilegeManageOwnership": 23, - "PrivilegeSelectUser": 24, -} - -func (x ObjectPrivilege) String() string { - return proto.EnumName(ObjectPrivilege_name, int32(x)) -} - -func (ObjectPrivilege) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{10} -} - -type StateCode int32 - -const ( - StateCode_Initializing StateCode = 0 - StateCode_Healthy StateCode = 1 - StateCode_Abnormal StateCode = 2 - StateCode_StandBy StateCode = 3 -) - -var StateCode_name = map[int32]string{ - 0: "Initializing", - 1: "Healthy", - 2: "Abnormal", - 3: "StandBy", -} - -var StateCode_value = map[string]int32{ - "Initializing": 0, - "Healthy": 1, - "Abnormal": 2, - "StandBy": 3, -} - -func (x StateCode) String() string { - return proto.EnumName(StateCode_name, int32(x)) -} - -func (StateCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{11} -} - -type Status struct { - ErrorCode ErrorCode `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3,enum=milvus.proto.common.ErrorCode" json:"error_code,omitempty"` - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Status) Reset() { *m = Status{} } -func (m *Status) String() string { return proto.CompactTextString(m) } -func (*Status) ProtoMessage() {} -func (*Status) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{0} -} - -func (m *Status) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Status.Unmarshal(m, b) -} -func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Status.Marshal(b, m, deterministic) -} -func (m *Status) XXX_Merge(src proto.Message) { - xxx_messageInfo_Status.Merge(m, src) -} -func (m *Status) XXX_Size() int { - return xxx_messageInfo_Status.Size(m) -} -func (m *Status) XXX_DiscardUnknown() { - xxx_messageInfo_Status.DiscardUnknown(m) -} - -var xxx_messageInfo_Status proto.InternalMessageInfo - -func (m *Status) GetErrorCode() ErrorCode { - if m != nil { - return m.ErrorCode - } - return ErrorCode_Success -} - -func (m *Status) GetReason() string { - if m != nil { - return m.Reason - } - return "" -} - -type KeyValuePair struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyValuePair) Reset() { *m = KeyValuePair{} } -func (m *KeyValuePair) String() string { return proto.CompactTextString(m) } -func (*KeyValuePair) ProtoMessage() {} -func (*KeyValuePair) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{1} -} - -func (m *KeyValuePair) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeyValuePair.Unmarshal(m, b) -} -func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeyValuePair.Marshal(b, m, deterministic) -} -func (m *KeyValuePair) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyValuePair.Merge(m, src) -} -func (m *KeyValuePair) XXX_Size() int { - return xxx_messageInfo_KeyValuePair.Size(m) -} -func (m *KeyValuePair) XXX_DiscardUnknown() { - xxx_messageInfo_KeyValuePair.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyValuePair proto.InternalMessageInfo - -func (m *KeyValuePair) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *KeyValuePair) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type KeyDataPair struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyDataPair) Reset() { *m = KeyDataPair{} } -func (m *KeyDataPair) String() string { return proto.CompactTextString(m) } -func (*KeyDataPair) ProtoMessage() {} -func (*KeyDataPair) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{2} -} - -func (m *KeyDataPair) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeyDataPair.Unmarshal(m, b) -} -func (m *KeyDataPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeyDataPair.Marshal(b, m, deterministic) -} -func (m *KeyDataPair) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyDataPair.Merge(m, src) -} -func (m *KeyDataPair) XXX_Size() int { - return xxx_messageInfo_KeyDataPair.Size(m) -} -func (m *KeyDataPair) XXX_DiscardUnknown() { - xxx_messageInfo_KeyDataPair.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyDataPair proto.InternalMessageInfo - -func (m *KeyDataPair) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *KeyDataPair) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type Blob struct { - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Blob) Reset() { *m = Blob{} } -func (m *Blob) String() string { return proto.CompactTextString(m) } -func (*Blob) ProtoMessage() {} -func (*Blob) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{3} -} - -func (m *Blob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Blob.Unmarshal(m, b) -} -func (m *Blob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Blob.Marshal(b, m, deterministic) -} -func (m *Blob) XXX_Merge(src proto.Message) { - xxx_messageInfo_Blob.Merge(m, src) -} -func (m *Blob) XXX_Size() int { - return xxx_messageInfo_Blob.Size(m) -} -func (m *Blob) XXX_DiscardUnknown() { - xxx_messageInfo_Blob.DiscardUnknown(m) -} - -var xxx_messageInfo_Blob proto.InternalMessageInfo - -func (m *Blob) GetValue() []byte { - if m != nil { - return m.Value - } - return nil -} - -type PlaceholderValue struct { - Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` - Type PlaceholderType `protobuf:"varint,2,opt,name=type,proto3,enum=milvus.proto.common.PlaceholderType" json:"type,omitempty"` - // values is a 2d-array, every array contains a vector - Values [][]byte `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PlaceholderValue) Reset() { *m = PlaceholderValue{} } -func (m *PlaceholderValue) String() string { return proto.CompactTextString(m) } -func (*PlaceholderValue) ProtoMessage() {} -func (*PlaceholderValue) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{4} -} - -func (m *PlaceholderValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PlaceholderValue.Unmarshal(m, b) -} -func (m *PlaceholderValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PlaceholderValue.Marshal(b, m, deterministic) -} -func (m *PlaceholderValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlaceholderValue.Merge(m, src) -} -func (m *PlaceholderValue) XXX_Size() int { - return xxx_messageInfo_PlaceholderValue.Size(m) -} -func (m *PlaceholderValue) XXX_DiscardUnknown() { - xxx_messageInfo_PlaceholderValue.DiscardUnknown(m) -} - -var xxx_messageInfo_PlaceholderValue proto.InternalMessageInfo - -func (m *PlaceholderValue) GetTag() string { - if m != nil { - return m.Tag - } - return "" -} - -func (m *PlaceholderValue) GetType() PlaceholderType { - if m != nil { - return m.Type - } - return PlaceholderType_None -} - -func (m *PlaceholderValue) GetValues() [][]byte { - if m != nil { - return m.Values - } - return nil -} - -type PlaceholderGroup struct { - Placeholders []*PlaceholderValue `protobuf:"bytes,1,rep,name=placeholders,proto3" json:"placeholders,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PlaceholderGroup) Reset() { *m = PlaceholderGroup{} } -func (m *PlaceholderGroup) String() string { return proto.CompactTextString(m) } -func (*PlaceholderGroup) ProtoMessage() {} -func (*PlaceholderGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{5} -} - -func (m *PlaceholderGroup) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PlaceholderGroup.Unmarshal(m, b) -} -func (m *PlaceholderGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PlaceholderGroup.Marshal(b, m, deterministic) -} -func (m *PlaceholderGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlaceholderGroup.Merge(m, src) -} -func (m *PlaceholderGroup) XXX_Size() int { - return xxx_messageInfo_PlaceholderGroup.Size(m) -} -func (m *PlaceholderGroup) XXX_DiscardUnknown() { - xxx_messageInfo_PlaceholderGroup.DiscardUnknown(m) -} - -var xxx_messageInfo_PlaceholderGroup proto.InternalMessageInfo - -func (m *PlaceholderGroup) GetPlaceholders() []*PlaceholderValue { - if m != nil { - return m.Placeholders - } - return nil -} - -type Address struct { - Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` - Port int64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Address) Reset() { *m = Address{} } -func (m *Address) String() string { return proto.CompactTextString(m) } -func (*Address) ProtoMessage() {} -func (*Address) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{6} -} - -func (m *Address) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Address.Unmarshal(m, b) -} -func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Address.Marshal(b, m, deterministic) -} -func (m *Address) XXX_Merge(src proto.Message) { - xxx_messageInfo_Address.Merge(m, src) -} -func (m *Address) XXX_Size() int { - return xxx_messageInfo_Address.Size(m) -} -func (m *Address) XXX_DiscardUnknown() { - xxx_messageInfo_Address.DiscardUnknown(m) -} - -var xxx_messageInfo_Address proto.InternalMessageInfo - -func (m *Address) GetIp() string { - if m != nil { - return m.Ip - } - return "" -} - -func (m *Address) GetPort() int64 { - if m != nil { - return m.Port - } - return 0 -} - -type MsgBase struct { - MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.common.MsgType" json:"msg_type,omitempty"` - MsgID int64 `protobuf:"varint,2,opt,name=msgID,proto3" json:"msgID,omitempty"` - Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - SourceID int64 `protobuf:"varint,4,opt,name=sourceID,proto3" json:"sourceID,omitempty"` - TargetID int64 `protobuf:"varint,5,opt,name=targetID,proto3" json:"targetID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MsgBase) Reset() { *m = MsgBase{} } -func (m *MsgBase) String() string { return proto.CompactTextString(m) } -func (*MsgBase) ProtoMessage() {} -func (*MsgBase) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{7} -} - -func (m *MsgBase) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgBase.Unmarshal(m, b) -} -func (m *MsgBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgBase.Marshal(b, m, deterministic) -} -func (m *MsgBase) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBase.Merge(m, src) -} -func (m *MsgBase) XXX_Size() int { - return xxx_messageInfo_MsgBase.Size(m) -} -func (m *MsgBase) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBase.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgBase proto.InternalMessageInfo - -func (m *MsgBase) GetMsgType() MsgType { - if m != nil { - return m.MsgType - } - return MsgType_Undefined -} - -func (m *MsgBase) GetMsgID() int64 { - if m != nil { - return m.MsgID - } - return 0 -} - -func (m *MsgBase) GetTimestamp() uint64 { - if m != nil { - return m.Timestamp - } - return 0 -} - -func (m *MsgBase) GetSourceID() int64 { - if m != nil { - return m.SourceID - } - return 0 -} - -func (m *MsgBase) GetTargetID() int64 { - if m != nil { - return m.TargetID - } - return 0 -} - -// Don't Modify This. @czs -type MsgHeader struct { - Base *MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MsgHeader) Reset() { *m = MsgHeader{} } -func (m *MsgHeader) String() string { return proto.CompactTextString(m) } -func (*MsgHeader) ProtoMessage() {} -func (*MsgHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{8} -} - -func (m *MsgHeader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MsgHeader.Unmarshal(m, b) -} -func (m *MsgHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MsgHeader.Marshal(b, m, deterministic) -} -func (m *MsgHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgHeader.Merge(m, src) -} -func (m *MsgHeader) XXX_Size() int { - return xxx_messageInfo_MsgHeader.Size(m) -} -func (m *MsgHeader) XXX_DiscardUnknown() { - xxx_messageInfo_MsgHeader.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgHeader proto.InternalMessageInfo - -func (m *MsgHeader) GetBase() *MsgBase { - if m != nil { - return m.Base - } - return nil -} - -// Don't Modify This. @czs -type DMLMsgHeader struct { - Base *MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - ShardName string `protobuf:"bytes,2,opt,name=shardName,proto3" json:"shardName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DMLMsgHeader) Reset() { *m = DMLMsgHeader{} } -func (m *DMLMsgHeader) String() string { return proto.CompactTextString(m) } -func (*DMLMsgHeader) ProtoMessage() {} -func (*DMLMsgHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{9} -} - -func (m *DMLMsgHeader) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DMLMsgHeader.Unmarshal(m, b) -} -func (m *DMLMsgHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DMLMsgHeader.Marshal(b, m, deterministic) -} -func (m *DMLMsgHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_DMLMsgHeader.Merge(m, src) -} -func (m *DMLMsgHeader) XXX_Size() int { - return xxx_messageInfo_DMLMsgHeader.Size(m) -} -func (m *DMLMsgHeader) XXX_DiscardUnknown() { - xxx_messageInfo_DMLMsgHeader.DiscardUnknown(m) -} - -var xxx_messageInfo_DMLMsgHeader proto.InternalMessageInfo - -func (m *DMLMsgHeader) GetBase() *MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *DMLMsgHeader) GetShardName() string { - if m != nil { - return m.ShardName - } - return "" -} - -type PrivilegeExt struct { - ObjectType ObjectType `protobuf:"varint,1,opt,name=object_type,json=objectType,proto3,enum=milvus.proto.common.ObjectType" json:"object_type,omitempty"` - ObjectPrivilege ObjectPrivilege `protobuf:"varint,2,opt,name=object_privilege,json=objectPrivilege,proto3,enum=milvus.proto.common.ObjectPrivilege" json:"object_privilege,omitempty"` - ObjectNameIndex int32 `protobuf:"varint,3,opt,name=object_name_index,json=objectNameIndex,proto3" json:"object_name_index,omitempty"` - ObjectNameIndexs int32 `protobuf:"varint,4,opt,name=object_name_indexs,json=objectNameIndexs,proto3" json:"object_name_indexs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrivilegeExt) Reset() { *m = PrivilegeExt{} } -func (m *PrivilegeExt) String() string { return proto.CompactTextString(m) } -func (*PrivilegeExt) ProtoMessage() {} -func (*PrivilegeExt) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{10} -} - -func (m *PrivilegeExt) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PrivilegeExt.Unmarshal(m, b) -} -func (m *PrivilegeExt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PrivilegeExt.Marshal(b, m, deterministic) -} -func (m *PrivilegeExt) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrivilegeExt.Merge(m, src) -} -func (m *PrivilegeExt) XXX_Size() int { - return xxx_messageInfo_PrivilegeExt.Size(m) -} -func (m *PrivilegeExt) XXX_DiscardUnknown() { - xxx_messageInfo_PrivilegeExt.DiscardUnknown(m) -} - -var xxx_messageInfo_PrivilegeExt proto.InternalMessageInfo - -func (m *PrivilegeExt) GetObjectType() ObjectType { - if m != nil { - return m.ObjectType - } - return ObjectType_Collection -} - -func (m *PrivilegeExt) GetObjectPrivilege() ObjectPrivilege { - if m != nil { - return m.ObjectPrivilege - } - return ObjectPrivilege_PrivilegeAll -} - -func (m *PrivilegeExt) GetObjectNameIndex() int32 { - if m != nil { - return m.ObjectNameIndex - } - return 0 -} - -func (m *PrivilegeExt) GetObjectNameIndexs() int32 { - if m != nil { - return m.ObjectNameIndexs - } - return 0 -} - -var E_PrivilegeExtObj = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.MessageOptions)(nil), - ExtensionType: (*PrivilegeExt)(nil), - Field: 1001, - Name: "milvus.proto.common.privilege_ext_obj", - Tag: "bytes,1001,opt,name=privilege_ext_obj", - Filename: "common.proto", -} - -func init() { - proto.RegisterEnum("milvus.proto.common.ErrorCode", ErrorCode_name, ErrorCode_value) - proto.RegisterEnum("milvus.proto.common.IndexState", IndexState_name, IndexState_value) - proto.RegisterEnum("milvus.proto.common.SegmentState", SegmentState_name, SegmentState_value) - proto.RegisterEnum("milvus.proto.common.PlaceholderType", PlaceholderType_name, PlaceholderType_value) - proto.RegisterEnum("milvus.proto.common.MsgType", MsgType_name, MsgType_value) - proto.RegisterEnum("milvus.proto.common.DslType", DslType_name, DslType_value) - proto.RegisterEnum("milvus.proto.common.CompactionState", CompactionState_name, CompactionState_value) - proto.RegisterEnum("milvus.proto.common.ConsistencyLevel", ConsistencyLevel_name, ConsistencyLevel_value) - proto.RegisterEnum("milvus.proto.common.ImportState", ImportState_name, ImportState_value) - proto.RegisterEnum("milvus.proto.common.ObjectType", ObjectType_name, ObjectType_value) - proto.RegisterEnum("milvus.proto.common.ObjectPrivilege", ObjectPrivilege_name, ObjectPrivilege_value) - proto.RegisterEnum("milvus.proto.common.StateCode", StateCode_name, StateCode_value) - proto.RegisterType((*Status)(nil), "milvus.proto.common.Status") - proto.RegisterType((*KeyValuePair)(nil), "milvus.proto.common.KeyValuePair") - proto.RegisterType((*KeyDataPair)(nil), "milvus.proto.common.KeyDataPair") - proto.RegisterType((*Blob)(nil), "milvus.proto.common.Blob") - proto.RegisterType((*PlaceholderValue)(nil), "milvus.proto.common.PlaceholderValue") - proto.RegisterType((*PlaceholderGroup)(nil), "milvus.proto.common.PlaceholderGroup") - proto.RegisterType((*Address)(nil), "milvus.proto.common.Address") - proto.RegisterType((*MsgBase)(nil), "milvus.proto.common.MsgBase") - proto.RegisterType((*MsgHeader)(nil), "milvus.proto.common.MsgHeader") - proto.RegisterType((*DMLMsgHeader)(nil), "milvus.proto.common.DMLMsgHeader") - proto.RegisterType((*PrivilegeExt)(nil), "milvus.proto.common.PrivilegeExt") - proto.RegisterExtension(E_PrivilegeExtObj) -} - -func init() { proto.RegisterFile("common.proto", fileDescriptor_555bd8c177793206) } - -var fileDescriptor_555bd8c177793206 = []byte{ - // 2603 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0xd9, 0x73, 0x63, 0x47, - 0xd5, 0x9f, 0x2b, 0xc9, 0xf6, 0xa8, 0x25, 0xdb, 0x67, 0xda, 0x1e, 0x8f, 0x32, 0x4b, 0xc6, 0xf1, - 0x97, 0x7c, 0x18, 0x91, 0x78, 0x92, 0x49, 0x15, 0x50, 0x54, 0x85, 0xc2, 0x96, 0x6c, 0x8f, 0x2a, - 0xde, 0x90, 0x3d, 0x81, 0xa2, 0x0a, 0xa6, 0x5a, 0xf7, 0x1e, 0xcb, 0x3d, 0x73, 0x75, 0xfb, 0x72, - 0xbb, 0xe5, 0xb1, 0xf2, 0x14, 0x02, 0xe4, 0x85, 0xa2, 0x8a, 0xa5, 0x8a, 0x67, 0xfe, 0x00, 0x48, - 0xb1, 0xc3, 0x23, 0x3b, 0x09, 0xdb, 0x33, 0x3b, 0x3c, 0xc2, 0x3b, 0x6b, 0x56, 0xea, 0xf4, 0x5d, - 0xe5, 0x99, 0xc0, 0x03, 0x6f, 0xea, 0xdf, 0x39, 0x7d, 0xb6, 0x3e, 0xdb, 0x15, 0xab, 0xbb, 0x6a, - 0x30, 0x50, 0xc1, 0x4a, 0x18, 0x29, 0xa3, 0xf8, 0xdc, 0x40, 0xfa, 0xc7, 0x43, 0x1d, 0x9f, 0x56, - 0x62, 0xd2, 0xc5, 0xc5, 0xbe, 0x52, 0x7d, 0x1f, 0xaf, 0x59, 0xb0, 0x37, 0x3c, 0xbc, 0xe6, 0xa1, - 0x76, 0x23, 0x19, 0x1a, 0x15, 0xc5, 0x8c, 0x4b, 0xb7, 0xd8, 0xe4, 0xbe, 0x11, 0x66, 0xa8, 0xf9, - 0x53, 0x8c, 0x61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a, 0xe8, 0xfe, 0xff, 0xca, - 0x15, 0xfe, 0xf3, 0xe9, 0xce, 0x86, 0x85, 0xd3, 0x6e, 0xef, 0xf6, 0xda, 0x16, 0x9b, 0x91, 0x2a, - 0xbd, 0xd7, 0x8f, 0x42, 0x77, 0xad, 0xd6, 0xb2, 0xf7, 0xf6, 0x48, 0xc6, 0x9e, 0xf3, 0xa1, 0xe5, - 0xbe, 0x34, 0x47, 0xc3, 0x1e, 0x49, 0xbb, 0x16, 0xb3, 0x3d, 0x26, 0x55, 0xf2, 0xeb, 0x9a, 0x08, - 0xe5, 0xb5, 0x58, 0x4d, 0xd8, 0xfb, 0xa2, 0xe3, 0xf4, 0x26, 0xad, 0xe6, 0x27, 0xff, 0x1d, 0x00, - 0x00, 0xff, 0xff, 0x32, 0xc4, 0xc7, 0x30, 0xf3, 0x15, 0x00, 0x00, -} diff --git a/api/go.mod b/api/go.mod deleted file mode 100644 index d72677b39f..0000000000 --- a/api/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/milvus-io/milvus/api - -go 1.18 - -require ( - github.com/golang/protobuf v1.5.2 - google.golang.org/grpc v1.46.0 - google.golang.org/protobuf v1.28.0 -) - -require ( - golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect - golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 // indirect - golang.org/x/text v0.3.7 // indirect - google.golang.org/genproto v0.0.0-20220503193339-ba3ae3f07e29 // indirect -) diff --git a/api/go.sum b/api/go.sum deleted file mode 100644 index 1da10b8591..0000000000 --- a/api/go.sum +++ /dev/null @@ -1,127 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974 h1:IX6qOQeG5uLjB/hjjwjedwfjND0hgjPMMyO1RoIXQNI= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4 h1:myAQVi0cGEoqQVR5POX+8RR2mrocKqNN1hmeMqhX27k= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.46.0 h1:oCjezcn6g6A75TGoKYBPgKmVBLexhYLM6MebdrPApP8= -google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/api/hook/hook.go b/api/hook/hook.go deleted file mode 100644 index a5ea6ed723..0000000000 --- a/api/hook/hook.go +++ /dev/null @@ -1,11 +0,0 @@ -package hook - -import "context" - -type Hook interface { - Init(params map[string]string) error - Mock(ctx context.Context, req interface{}, fullMethod string) (bool, interface{}, error) - Before(ctx context.Context, req interface{}, fullMethod string) (context.Context, error) - After(ctx context.Context, result interface{}, err error, fullMethod string) error - Release() -} diff --git a/api/milvuspb/milvus.pb.go b/api/milvuspb/milvus.pb.go deleted file mode 100644 index 750daa23a9..0000000000 --- a/api/milvuspb/milvus.pb.go +++ /dev/null @@ -1,10138 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: milvus.proto - -package milvuspb - -import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" - commonpb "github.com/milvus-io/milvus/api/commonpb" - schemapb "github.com/milvus-io/milvus/api/schemapb" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Deprecated: use GetLoadingProgress rpc instead -type ShowType int32 - -const ( - // Will return all collections - ShowType_All ShowType = 0 - // Will return loaded collections with their inMemory_percentages - ShowType_InMemory ShowType = 1 -) - -var ShowType_name = map[int32]string{ - 0: "All", - 1: "InMemory", -} - -var ShowType_value = map[string]int32{ - "All": 0, - "InMemory": 1, -} - -func (x ShowType) String() string { - return proto.EnumName(ShowType_name, int32(x)) -} - -func (ShowType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{0} -} - -type OperateUserRoleType int32 - -const ( - OperateUserRoleType_AddUserToRole OperateUserRoleType = 0 - OperateUserRoleType_RemoveUserFromRole OperateUserRoleType = 1 -) - -var OperateUserRoleType_name = map[int32]string{ - 0: "AddUserToRole", - 1: "RemoveUserFromRole", -} - -var OperateUserRoleType_value = map[string]int32{ - "AddUserToRole": 0, - "RemoveUserFromRole": 1, -} - -func (x OperateUserRoleType) String() string { - return proto.EnumName(OperateUserRoleType_name, int32(x)) -} - -func (OperateUserRoleType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{1} -} - -type OperatePrivilegeType int32 - -const ( - OperatePrivilegeType_Grant OperatePrivilegeType = 0 - OperatePrivilegeType_Revoke OperatePrivilegeType = 1 -) - -var OperatePrivilegeType_name = map[int32]string{ - 0: "Grant", - 1: "Revoke", -} - -var OperatePrivilegeType_value = map[string]int32{ - "Grant": 0, - "Revoke": 1, -} - -func (x OperatePrivilegeType) String() string { - return proto.EnumName(OperatePrivilegeType_name, int32(x)) -} - -func (OperatePrivilegeType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{2} -} - -type CreateAliasRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - Alias string `protobuf:"bytes,4,opt,name=alias,proto3" json:"alias,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateAliasRequest) Reset() { *m = CreateAliasRequest{} } -func (m *CreateAliasRequest) String() string { return proto.CompactTextString(m) } -func (*CreateAliasRequest) ProtoMessage() {} -func (*CreateAliasRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{0} -} - -func (m *CreateAliasRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateAliasRequest.Unmarshal(m, b) -} -func (m *CreateAliasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateAliasRequest.Marshal(b, m, deterministic) -} -func (m *CreateAliasRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateAliasRequest.Merge(m, src) -} -func (m *CreateAliasRequest) XXX_Size() int { - return xxx_messageInfo_CreateAliasRequest.Size(m) -} -func (m *CreateAliasRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateAliasRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateAliasRequest proto.InternalMessageInfo - -func (m *CreateAliasRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *CreateAliasRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *CreateAliasRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *CreateAliasRequest) GetAlias() string { - if m != nil { - return m.Alias - } - return "" -} - -type DropAliasRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DropAliasRequest) Reset() { *m = DropAliasRequest{} } -func (m *DropAliasRequest) String() string { return proto.CompactTextString(m) } -func (*DropAliasRequest) ProtoMessage() {} -func (*DropAliasRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{1} -} - -func (m *DropAliasRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DropAliasRequest.Unmarshal(m, b) -} -func (m *DropAliasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DropAliasRequest.Marshal(b, m, deterministic) -} -func (m *DropAliasRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DropAliasRequest.Merge(m, src) -} -func (m *DropAliasRequest) XXX_Size() int { - return xxx_messageInfo_DropAliasRequest.Size(m) -} -func (m *DropAliasRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DropAliasRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DropAliasRequest proto.InternalMessageInfo - -func (m *DropAliasRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *DropAliasRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *DropAliasRequest) GetAlias() string { - if m != nil { - return m.Alias - } - return "" -} - -type AlterAliasRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - Alias string `protobuf:"bytes,4,opt,name=alias,proto3" json:"alias,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AlterAliasRequest) Reset() { *m = AlterAliasRequest{} } -func (m *AlterAliasRequest) String() string { return proto.CompactTextString(m) } -func (*AlterAliasRequest) ProtoMessage() {} -func (*AlterAliasRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{2} -} - -func (m *AlterAliasRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AlterAliasRequest.Unmarshal(m, b) -} -func (m *AlterAliasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AlterAliasRequest.Marshal(b, m, deterministic) -} -func (m *AlterAliasRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AlterAliasRequest.Merge(m, src) -} -func (m *AlterAliasRequest) XXX_Size() int { - return xxx_messageInfo_AlterAliasRequest.Size(m) -} -func (m *AlterAliasRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AlterAliasRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AlterAliasRequest proto.InternalMessageInfo - -func (m *AlterAliasRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *AlterAliasRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *AlterAliasRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *AlterAliasRequest) GetAlias() string { - if m != nil { - return m.Alias - } - return "" -} - -//* -// Create collection in milvus -type CreateCollectionRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The unique collection name in milvus.(Required) - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The serialized `schema.CollectionSchema`(Required) - Schema []byte `protobuf:"bytes,4,opt,name=schema,proto3" json:"schema,omitempty"` - // Once set, no modification is allowed (Optional) - // https://github.com/milvus-io/milvus/issues/6690 - ShardsNum int32 `protobuf:"varint,5,opt,name=shards_num,json=shardsNum,proto3" json:"shards_num,omitempty"` - // The consistency level that the collection used, modification is not supported now. - ConsistencyLevel commonpb.ConsistencyLevel `protobuf:"varint,6,opt,name=consistency_level,json=consistencyLevel,proto3,enum=milvus.proto.common.ConsistencyLevel" json:"consistency_level,omitempty"` - Properties []*commonpb.KeyValuePair `protobuf:"bytes,7,rep,name=properties,proto3" json:"properties,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateCollectionRequest) Reset() { *m = CreateCollectionRequest{} } -func (m *CreateCollectionRequest) String() string { return proto.CompactTextString(m) } -func (*CreateCollectionRequest) ProtoMessage() {} -func (*CreateCollectionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{3} -} - -func (m *CreateCollectionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateCollectionRequest.Unmarshal(m, b) -} -func (m *CreateCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateCollectionRequest.Marshal(b, m, deterministic) -} -func (m *CreateCollectionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateCollectionRequest.Merge(m, src) -} -func (m *CreateCollectionRequest) XXX_Size() int { - return xxx_messageInfo_CreateCollectionRequest.Size(m) -} -func (m *CreateCollectionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateCollectionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateCollectionRequest proto.InternalMessageInfo - -func (m *CreateCollectionRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *CreateCollectionRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *CreateCollectionRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *CreateCollectionRequest) GetSchema() []byte { - if m != nil { - return m.Schema - } - return nil -} - -func (m *CreateCollectionRequest) GetShardsNum() int32 { - if m != nil { - return m.ShardsNum - } - return 0 -} - -func (m *CreateCollectionRequest) GetConsistencyLevel() commonpb.ConsistencyLevel { - if m != nil { - return m.ConsistencyLevel - } - return commonpb.ConsistencyLevel_Strong -} - -func (m *CreateCollectionRequest) GetProperties() []*commonpb.KeyValuePair { - if m != nil { - return m.Properties - } - return nil -} - -//* -// Drop collection in milvus, also will drop data in collection. -type DropCollectionRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The unique collection name in milvus.(Required) - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DropCollectionRequest) Reset() { *m = DropCollectionRequest{} } -func (m *DropCollectionRequest) String() string { return proto.CompactTextString(m) } -func (*DropCollectionRequest) ProtoMessage() {} -func (*DropCollectionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{4} -} - -func (m *DropCollectionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DropCollectionRequest.Unmarshal(m, b) -} -func (m *DropCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DropCollectionRequest.Marshal(b, m, deterministic) -} -func (m *DropCollectionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DropCollectionRequest.Merge(m, src) -} -func (m *DropCollectionRequest) XXX_Size() int { - return xxx_messageInfo_DropCollectionRequest.Size(m) -} -func (m *DropCollectionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DropCollectionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DropCollectionRequest proto.InternalMessageInfo - -func (m *DropCollectionRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *DropCollectionRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *DropCollectionRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -//* -// Alter collection in milvus -type AlterCollectionRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The unique collection name in milvus.(Required) - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - CollectionID int64 `protobuf:"varint,4,opt,name=collectionID,proto3" json:"collectionID,omitempty"` - Properties []*commonpb.KeyValuePair `protobuf:"bytes,5,rep,name=properties,proto3" json:"properties,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AlterCollectionRequest) Reset() { *m = AlterCollectionRequest{} } -func (m *AlterCollectionRequest) String() string { return proto.CompactTextString(m) } -func (*AlterCollectionRequest) ProtoMessage() {} -func (*AlterCollectionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{5} -} - -func (m *AlterCollectionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AlterCollectionRequest.Unmarshal(m, b) -} -func (m *AlterCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AlterCollectionRequest.Marshal(b, m, deterministic) -} -func (m *AlterCollectionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AlterCollectionRequest.Merge(m, src) -} -func (m *AlterCollectionRequest) XXX_Size() int { - return xxx_messageInfo_AlterCollectionRequest.Size(m) -} -func (m *AlterCollectionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AlterCollectionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AlterCollectionRequest proto.InternalMessageInfo - -func (m *AlterCollectionRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *AlterCollectionRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *AlterCollectionRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *AlterCollectionRequest) GetCollectionID() int64 { - if m != nil { - return m.CollectionID - } - return 0 -} - -func (m *AlterCollectionRequest) GetProperties() []*commonpb.KeyValuePair { - if m != nil { - return m.Properties - } - return nil -} - -//* -// Check collection exist in milvus or not. -type HasCollectionRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name you want to check. - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // If time_stamp is not zero, will return true when time_stamp >= created collection timestamp, otherwise will return false. - TimeStamp uint64 `protobuf:"varint,4,opt,name=time_stamp,json=timeStamp,proto3" json:"time_stamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HasCollectionRequest) Reset() { *m = HasCollectionRequest{} } -func (m *HasCollectionRequest) String() string { return proto.CompactTextString(m) } -func (*HasCollectionRequest) ProtoMessage() {} -func (*HasCollectionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{6} -} - -func (m *HasCollectionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HasCollectionRequest.Unmarshal(m, b) -} -func (m *HasCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HasCollectionRequest.Marshal(b, m, deterministic) -} -func (m *HasCollectionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_HasCollectionRequest.Merge(m, src) -} -func (m *HasCollectionRequest) XXX_Size() int { - return xxx_messageInfo_HasCollectionRequest.Size(m) -} -func (m *HasCollectionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_HasCollectionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_HasCollectionRequest proto.InternalMessageInfo - -func (m *HasCollectionRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *HasCollectionRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *HasCollectionRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *HasCollectionRequest) GetTimeStamp() uint64 { - if m != nil { - return m.TimeStamp - } - return 0 -} - -type BoolResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Value bool `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BoolResponse) Reset() { *m = BoolResponse{} } -func (m *BoolResponse) String() string { return proto.CompactTextString(m) } -func (*BoolResponse) ProtoMessage() {} -func (*BoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{7} -} - -func (m *BoolResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BoolResponse.Unmarshal(m, b) -} -func (m *BoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BoolResponse.Marshal(b, m, deterministic) -} -func (m *BoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoolResponse.Merge(m, src) -} -func (m *BoolResponse) XXX_Size() int { - return xxx_messageInfo_BoolResponse.Size(m) -} -func (m *BoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BoolResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BoolResponse proto.InternalMessageInfo - -func (m *BoolResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *BoolResponse) GetValue() bool { - if m != nil { - return m.Value - } - return false -} - -type StringResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StringResponse) Reset() { *m = StringResponse{} } -func (m *StringResponse) String() string { return proto.CompactTextString(m) } -func (*StringResponse) ProtoMessage() {} -func (*StringResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{8} -} - -func (m *StringResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StringResponse.Unmarshal(m, b) -} -func (m *StringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StringResponse.Marshal(b, m, deterministic) -} -func (m *StringResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StringResponse.Merge(m, src) -} -func (m *StringResponse) XXX_Size() int { - return xxx_messageInfo_StringResponse.Size(m) -} -func (m *StringResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StringResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StringResponse proto.InternalMessageInfo - -func (m *StringResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *StringResponse) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -//* -// Get collection meta datas like: schema, collectionID, shards number ... -type DescribeCollectionRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name you want to describe, you can pass collection_name or collectionID - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The collection ID you want to describe - CollectionID int64 `protobuf:"varint,4,opt,name=collectionID,proto3" json:"collectionID,omitempty"` - // If time_stamp is not zero, will describe collection success when time_stamp >= created collection timestamp, otherwise will throw error. - TimeStamp uint64 `protobuf:"varint,5,opt,name=time_stamp,json=timeStamp,proto3" json:"time_stamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescribeCollectionRequest) Reset() { *m = DescribeCollectionRequest{} } -func (m *DescribeCollectionRequest) String() string { return proto.CompactTextString(m) } -func (*DescribeCollectionRequest) ProtoMessage() {} -func (*DescribeCollectionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{9} -} - -func (m *DescribeCollectionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescribeCollectionRequest.Unmarshal(m, b) -} -func (m *DescribeCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescribeCollectionRequest.Marshal(b, m, deterministic) -} -func (m *DescribeCollectionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeCollectionRequest.Merge(m, src) -} -func (m *DescribeCollectionRequest) XXX_Size() int { - return xxx_messageInfo_DescribeCollectionRequest.Size(m) -} -func (m *DescribeCollectionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeCollectionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DescribeCollectionRequest proto.InternalMessageInfo - -func (m *DescribeCollectionRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *DescribeCollectionRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *DescribeCollectionRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *DescribeCollectionRequest) GetCollectionID() int64 { - if m != nil { - return m.CollectionID - } - return 0 -} - -func (m *DescribeCollectionRequest) GetTimeStamp() uint64 { - if m != nil { - return m.TimeStamp - } - return 0 -} - -//* -// DescribeCollection Response -type DescribeCollectionResponse struct { - // Contain error_code and reason - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // The schema param when you created collection. - Schema *schemapb.CollectionSchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` - // The collection id - CollectionID int64 `protobuf:"varint,3,opt,name=collectionID,proto3" json:"collectionID,omitempty"` - // System design related, users should not perceive - VirtualChannelNames []string `protobuf:"bytes,4,rep,name=virtual_channel_names,json=virtualChannelNames,proto3" json:"virtual_channel_names,omitempty"` - // System design related, users should not perceive - PhysicalChannelNames []string `protobuf:"bytes,5,rep,name=physical_channel_names,json=physicalChannelNames,proto3" json:"physical_channel_names,omitempty"` - // Hybrid timestamp in milvus - CreatedTimestamp uint64 `protobuf:"varint,6,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"` - // The utc timestamp calculated by created_timestamp - CreatedUtcTimestamp uint64 `protobuf:"varint,7,opt,name=created_utc_timestamp,json=createdUtcTimestamp,proto3" json:"created_utc_timestamp,omitempty"` - // The shards number you set. - ShardsNum int32 `protobuf:"varint,8,opt,name=shards_num,json=shardsNum,proto3" json:"shards_num,omitempty"` - // The aliases of this collection - Aliases []string `protobuf:"bytes,9,rep,name=aliases,proto3" json:"aliases,omitempty"` - // The message ID/posititon when collection is created - StartPositions []*commonpb.KeyDataPair `protobuf:"bytes,10,rep,name=start_positions,json=startPositions,proto3" json:"start_positions,omitempty"` - // The consistency level that the collection used, modification is not supported now. - ConsistencyLevel commonpb.ConsistencyLevel `protobuf:"varint,11,opt,name=consistency_level,json=consistencyLevel,proto3,enum=milvus.proto.common.ConsistencyLevel" json:"consistency_level,omitempty"` - // The collection name - CollectionName string `protobuf:"bytes,12,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - Properties []*commonpb.KeyValuePair `protobuf:"bytes,13,rep,name=properties,proto3" json:"properties,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescribeCollectionResponse) Reset() { *m = DescribeCollectionResponse{} } -func (m *DescribeCollectionResponse) String() string { return proto.CompactTextString(m) } -func (*DescribeCollectionResponse) ProtoMessage() {} -func (*DescribeCollectionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{10} -} - -func (m *DescribeCollectionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescribeCollectionResponse.Unmarshal(m, b) -} -func (m *DescribeCollectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescribeCollectionResponse.Marshal(b, m, deterministic) -} -func (m *DescribeCollectionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeCollectionResponse.Merge(m, src) -} -func (m *DescribeCollectionResponse) XXX_Size() int { - return xxx_messageInfo_DescribeCollectionResponse.Size(m) -} -func (m *DescribeCollectionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeCollectionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DescribeCollectionResponse proto.InternalMessageInfo - -func (m *DescribeCollectionResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *DescribeCollectionResponse) GetSchema() *schemapb.CollectionSchema { - if m != nil { - return m.Schema - } - return nil -} - -func (m *DescribeCollectionResponse) GetCollectionID() int64 { - if m != nil { - return m.CollectionID - } - return 0 -} - -func (m *DescribeCollectionResponse) GetVirtualChannelNames() []string { - if m != nil { - return m.VirtualChannelNames - } - return nil -} - -func (m *DescribeCollectionResponse) GetPhysicalChannelNames() []string { - if m != nil { - return m.PhysicalChannelNames - } - return nil -} - -func (m *DescribeCollectionResponse) GetCreatedTimestamp() uint64 { - if m != nil { - return m.CreatedTimestamp - } - return 0 -} - -func (m *DescribeCollectionResponse) GetCreatedUtcTimestamp() uint64 { - if m != nil { - return m.CreatedUtcTimestamp - } - return 0 -} - -func (m *DescribeCollectionResponse) GetShardsNum() int32 { - if m != nil { - return m.ShardsNum - } - return 0 -} - -func (m *DescribeCollectionResponse) GetAliases() []string { - if m != nil { - return m.Aliases - } - return nil -} - -func (m *DescribeCollectionResponse) GetStartPositions() []*commonpb.KeyDataPair { - if m != nil { - return m.StartPositions - } - return nil -} - -func (m *DescribeCollectionResponse) GetConsistencyLevel() commonpb.ConsistencyLevel { - if m != nil { - return m.ConsistencyLevel - } - return commonpb.ConsistencyLevel_Strong -} - -func (m *DescribeCollectionResponse) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *DescribeCollectionResponse) GetProperties() []*commonpb.KeyValuePair { - if m != nil { - return m.Properties - } - return nil -} - -//* -// Load collection data into query nodes, then you can do vector search on this collection. -type LoadCollectionRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name you want to load - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The replica number to load, default by 1 - ReplicaNumber int32 `protobuf:"varint,4,opt,name=replica_number,json=replicaNumber,proto3" json:"replica_number,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoadCollectionRequest) Reset() { *m = LoadCollectionRequest{} } -func (m *LoadCollectionRequest) String() string { return proto.CompactTextString(m) } -func (*LoadCollectionRequest) ProtoMessage() {} -func (*LoadCollectionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{11} -} - -func (m *LoadCollectionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadCollectionRequest.Unmarshal(m, b) -} -func (m *LoadCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadCollectionRequest.Marshal(b, m, deterministic) -} -func (m *LoadCollectionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadCollectionRequest.Merge(m, src) -} -func (m *LoadCollectionRequest) XXX_Size() int { - return xxx_messageInfo_LoadCollectionRequest.Size(m) -} -func (m *LoadCollectionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoadCollectionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_LoadCollectionRequest proto.InternalMessageInfo - -func (m *LoadCollectionRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *LoadCollectionRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *LoadCollectionRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *LoadCollectionRequest) GetReplicaNumber() int32 { - if m != nil { - return m.ReplicaNumber - } - return 0 -} - -//* -// Release collection data from query nodes, then you can't do vector search on this collection. -type ReleaseCollectionRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name you want to release - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReleaseCollectionRequest) Reset() { *m = ReleaseCollectionRequest{} } -func (m *ReleaseCollectionRequest) String() string { return proto.CompactTextString(m) } -func (*ReleaseCollectionRequest) ProtoMessage() {} -func (*ReleaseCollectionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{12} -} - -func (m *ReleaseCollectionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReleaseCollectionRequest.Unmarshal(m, b) -} -func (m *ReleaseCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReleaseCollectionRequest.Marshal(b, m, deterministic) -} -func (m *ReleaseCollectionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReleaseCollectionRequest.Merge(m, src) -} -func (m *ReleaseCollectionRequest) XXX_Size() int { - return xxx_messageInfo_ReleaseCollectionRequest.Size(m) -} -func (m *ReleaseCollectionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReleaseCollectionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ReleaseCollectionRequest proto.InternalMessageInfo - -func (m *ReleaseCollectionRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *ReleaseCollectionRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *ReleaseCollectionRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -//* -// Get statistics like row_count. -// WARNING: This API is experimental and not useful for now. -type GetStatisticsRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name you want get statistics - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The partition names you want get statistics, empty for all partitions - PartitionNames []string `protobuf:"bytes,4,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"` - // Not useful for now, reserved for future - GuaranteeTimestamp uint64 `protobuf:"varint,5,opt,name=guarantee_timestamp,json=guaranteeTimestamp,proto3" json:"guarantee_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetStatisticsRequest) Reset() { *m = GetStatisticsRequest{} } -func (m *GetStatisticsRequest) String() string { return proto.CompactTextString(m) } -func (*GetStatisticsRequest) ProtoMessage() {} -func (*GetStatisticsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{13} -} - -func (m *GetStatisticsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetStatisticsRequest.Unmarshal(m, b) -} -func (m *GetStatisticsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetStatisticsRequest.Marshal(b, m, deterministic) -} -func (m *GetStatisticsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStatisticsRequest.Merge(m, src) -} -func (m *GetStatisticsRequest) XXX_Size() int { - return xxx_messageInfo_GetStatisticsRequest.Size(m) -} -func (m *GetStatisticsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetStatisticsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetStatisticsRequest proto.InternalMessageInfo - -func (m *GetStatisticsRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *GetStatisticsRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *GetStatisticsRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *GetStatisticsRequest) GetPartitionNames() []string { - if m != nil { - return m.PartitionNames - } - return nil -} - -func (m *GetStatisticsRequest) GetGuaranteeTimestamp() uint64 { - if m != nil { - return m.GuaranteeTimestamp - } - return 0 -} - -//* -// Will return statistics in stats field like [{key:"row_count",value:"1"}] -// WARNING: This API is experimental and not useful for now. -type GetStatisticsResponse struct { - // Contain error_code and reason - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // Collection statistics data - Stats []*commonpb.KeyValuePair `protobuf:"bytes,2,rep,name=stats,proto3" json:"stats,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetStatisticsResponse) Reset() { *m = GetStatisticsResponse{} } -func (m *GetStatisticsResponse) String() string { return proto.CompactTextString(m) } -func (*GetStatisticsResponse) ProtoMessage() {} -func (*GetStatisticsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{14} -} - -func (m *GetStatisticsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetStatisticsResponse.Unmarshal(m, b) -} -func (m *GetStatisticsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetStatisticsResponse.Marshal(b, m, deterministic) -} -func (m *GetStatisticsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStatisticsResponse.Merge(m, src) -} -func (m *GetStatisticsResponse) XXX_Size() int { - return xxx_messageInfo_GetStatisticsResponse.Size(m) -} -func (m *GetStatisticsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetStatisticsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetStatisticsResponse proto.InternalMessageInfo - -func (m *GetStatisticsResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetStatisticsResponse) GetStats() []*commonpb.KeyValuePair { - if m != nil { - return m.Stats - } - return nil -} - -//* -// Get collection statistics like row_count. -type GetCollectionStatisticsRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name you want get statistics - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetCollectionStatisticsRequest) Reset() { *m = GetCollectionStatisticsRequest{} } -func (m *GetCollectionStatisticsRequest) String() string { return proto.CompactTextString(m) } -func (*GetCollectionStatisticsRequest) ProtoMessage() {} -func (*GetCollectionStatisticsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{15} -} - -func (m *GetCollectionStatisticsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCollectionStatisticsRequest.Unmarshal(m, b) -} -func (m *GetCollectionStatisticsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCollectionStatisticsRequest.Marshal(b, m, deterministic) -} -func (m *GetCollectionStatisticsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCollectionStatisticsRequest.Merge(m, src) -} -func (m *GetCollectionStatisticsRequest) XXX_Size() int { - return xxx_messageInfo_GetCollectionStatisticsRequest.Size(m) -} -func (m *GetCollectionStatisticsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetCollectionStatisticsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCollectionStatisticsRequest proto.InternalMessageInfo - -func (m *GetCollectionStatisticsRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *GetCollectionStatisticsRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *GetCollectionStatisticsRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -//* -// Will return collection statistics in stats field like [{key:"row_count",value:"1"}] -type GetCollectionStatisticsResponse struct { - // Contain error_code and reason - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // Collection statistics data - Stats []*commonpb.KeyValuePair `protobuf:"bytes,2,rep,name=stats,proto3" json:"stats,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetCollectionStatisticsResponse) Reset() { *m = GetCollectionStatisticsResponse{} } -func (m *GetCollectionStatisticsResponse) String() string { return proto.CompactTextString(m) } -func (*GetCollectionStatisticsResponse) ProtoMessage() {} -func (*GetCollectionStatisticsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{16} -} - -func (m *GetCollectionStatisticsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCollectionStatisticsResponse.Unmarshal(m, b) -} -func (m *GetCollectionStatisticsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCollectionStatisticsResponse.Marshal(b, m, deterministic) -} -func (m *GetCollectionStatisticsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCollectionStatisticsResponse.Merge(m, src) -} -func (m *GetCollectionStatisticsResponse) XXX_Size() int { - return xxx_messageInfo_GetCollectionStatisticsResponse.Size(m) -} -func (m *GetCollectionStatisticsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetCollectionStatisticsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCollectionStatisticsResponse proto.InternalMessageInfo - -func (m *GetCollectionStatisticsResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetCollectionStatisticsResponse) GetStats() []*commonpb.KeyValuePair { - if m != nil { - return m.Stats - } - return nil -} - -// -// List collections -type ShowCollectionsRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // Not useful for now - TimeStamp uint64 `protobuf:"varint,3,opt,name=time_stamp,json=timeStamp,proto3" json:"time_stamp,omitempty"` - // Decide return Loaded collections or All collections(Optional) - Type ShowType `protobuf:"varint,4,opt,name=type,proto3,enum=milvus.proto.milvus.ShowType" json:"type,omitempty"` - // When type is InMemory, will return these collection's inMemory_percentages.(Optional) - // Deprecated: use GetLoadingProgress rpc instead - CollectionNames []string `protobuf:"bytes,5,rep,name=collection_names,json=collectionNames,proto3" json:"collection_names,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ShowCollectionsRequest) Reset() { *m = ShowCollectionsRequest{} } -func (m *ShowCollectionsRequest) String() string { return proto.CompactTextString(m) } -func (*ShowCollectionsRequest) ProtoMessage() {} -func (*ShowCollectionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{17} -} - -func (m *ShowCollectionsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ShowCollectionsRequest.Unmarshal(m, b) -} -func (m *ShowCollectionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ShowCollectionsRequest.Marshal(b, m, deterministic) -} -func (m *ShowCollectionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShowCollectionsRequest.Merge(m, src) -} -func (m *ShowCollectionsRequest) XXX_Size() int { - return xxx_messageInfo_ShowCollectionsRequest.Size(m) -} -func (m *ShowCollectionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ShowCollectionsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ShowCollectionsRequest proto.InternalMessageInfo - -func (m *ShowCollectionsRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *ShowCollectionsRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *ShowCollectionsRequest) GetTimeStamp() uint64 { - if m != nil { - return m.TimeStamp - } - return 0 -} - -func (m *ShowCollectionsRequest) GetType() ShowType { - if m != nil { - return m.Type - } - return ShowType_All -} - -func (m *ShowCollectionsRequest) GetCollectionNames() []string { - if m != nil { - return m.CollectionNames - } - return nil -} - -// -// Return basic collection infos. -type ShowCollectionsResponse struct { - // Contain error_code and reason - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // Collection name array - CollectionNames []string `protobuf:"bytes,2,rep,name=collection_names,json=collectionNames,proto3" json:"collection_names,omitempty"` - // Collection Id array - CollectionIds []int64 `protobuf:"varint,3,rep,packed,name=collection_ids,json=collectionIds,proto3" json:"collection_ids,omitempty"` - // Hybrid timestamps in milvus - CreatedTimestamps []uint64 `protobuf:"varint,4,rep,packed,name=created_timestamps,json=createdTimestamps,proto3" json:"created_timestamps,omitempty"` - // The utc timestamp calculated by created_timestamp - CreatedUtcTimestamps []uint64 `protobuf:"varint,5,rep,packed,name=created_utc_timestamps,json=createdUtcTimestamps,proto3" json:"created_utc_timestamps,omitempty"` - // Load percentage on querynode when type is InMemory - // Deprecated: use GetLoadingProgress rpc instead - InMemoryPercentages []int64 `protobuf:"varint,6,rep,packed,name=inMemory_percentages,json=inMemoryPercentages,proto3" json:"inMemory_percentages,omitempty"` - // Indicate whether query service is available - QueryServiceAvailable []bool `protobuf:"varint,7,rep,packed,name=query_service_available,json=queryServiceAvailable,proto3" json:"query_service_available,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ShowCollectionsResponse) Reset() { *m = ShowCollectionsResponse{} } -func (m *ShowCollectionsResponse) String() string { return proto.CompactTextString(m) } -func (*ShowCollectionsResponse) ProtoMessage() {} -func (*ShowCollectionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{18} -} - -func (m *ShowCollectionsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ShowCollectionsResponse.Unmarshal(m, b) -} -func (m *ShowCollectionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ShowCollectionsResponse.Marshal(b, m, deterministic) -} -func (m *ShowCollectionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShowCollectionsResponse.Merge(m, src) -} -func (m *ShowCollectionsResponse) XXX_Size() int { - return xxx_messageInfo_ShowCollectionsResponse.Size(m) -} -func (m *ShowCollectionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ShowCollectionsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ShowCollectionsResponse proto.InternalMessageInfo - -func (m *ShowCollectionsResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *ShowCollectionsResponse) GetCollectionNames() []string { - if m != nil { - return m.CollectionNames - } - return nil -} - -func (m *ShowCollectionsResponse) GetCollectionIds() []int64 { - if m != nil { - return m.CollectionIds - } - return nil -} - -func (m *ShowCollectionsResponse) GetCreatedTimestamps() []uint64 { - if m != nil { - return m.CreatedTimestamps - } - return nil -} - -func (m *ShowCollectionsResponse) GetCreatedUtcTimestamps() []uint64 { - if m != nil { - return m.CreatedUtcTimestamps - } - return nil -} - -func (m *ShowCollectionsResponse) GetInMemoryPercentages() []int64 { - if m != nil { - return m.InMemoryPercentages - } - return nil -} - -func (m *ShowCollectionsResponse) GetQueryServiceAvailable() []bool { - if m != nil { - return m.QueryServiceAvailable - } - return nil -} - -// -// Create partition in created collection. -type CreatePartitionRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name in milvus - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The partition name you want to create. - PartitionName string `protobuf:"bytes,4,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreatePartitionRequest) Reset() { *m = CreatePartitionRequest{} } -func (m *CreatePartitionRequest) String() string { return proto.CompactTextString(m) } -func (*CreatePartitionRequest) ProtoMessage() {} -func (*CreatePartitionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{19} -} - -func (m *CreatePartitionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreatePartitionRequest.Unmarshal(m, b) -} -func (m *CreatePartitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreatePartitionRequest.Marshal(b, m, deterministic) -} -func (m *CreatePartitionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreatePartitionRequest.Merge(m, src) -} -func (m *CreatePartitionRequest) XXX_Size() int { - return xxx_messageInfo_CreatePartitionRequest.Size(m) -} -func (m *CreatePartitionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreatePartitionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreatePartitionRequest proto.InternalMessageInfo - -func (m *CreatePartitionRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *CreatePartitionRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *CreatePartitionRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *CreatePartitionRequest) GetPartitionName() string { - if m != nil { - return m.PartitionName - } - return "" -} - -// -// Drop partition in created collection. -type DropPartitionRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name in milvus - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The partition name you want to drop - PartitionName string `protobuf:"bytes,4,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DropPartitionRequest) Reset() { *m = DropPartitionRequest{} } -func (m *DropPartitionRequest) String() string { return proto.CompactTextString(m) } -func (*DropPartitionRequest) ProtoMessage() {} -func (*DropPartitionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{20} -} - -func (m *DropPartitionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DropPartitionRequest.Unmarshal(m, b) -} -func (m *DropPartitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DropPartitionRequest.Marshal(b, m, deterministic) -} -func (m *DropPartitionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DropPartitionRequest.Merge(m, src) -} -func (m *DropPartitionRequest) XXX_Size() int { - return xxx_messageInfo_DropPartitionRequest.Size(m) -} -func (m *DropPartitionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DropPartitionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DropPartitionRequest proto.InternalMessageInfo - -func (m *DropPartitionRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *DropPartitionRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *DropPartitionRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *DropPartitionRequest) GetPartitionName() string { - if m != nil { - return m.PartitionName - } - return "" -} - -// -// Check if partition exist in collection or not. -type HasPartitionRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name in milvus - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The partition name you want to check - PartitionName string `protobuf:"bytes,4,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HasPartitionRequest) Reset() { *m = HasPartitionRequest{} } -func (m *HasPartitionRequest) String() string { return proto.CompactTextString(m) } -func (*HasPartitionRequest) ProtoMessage() {} -func (*HasPartitionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{21} -} - -func (m *HasPartitionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HasPartitionRequest.Unmarshal(m, b) -} -func (m *HasPartitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HasPartitionRequest.Marshal(b, m, deterministic) -} -func (m *HasPartitionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_HasPartitionRequest.Merge(m, src) -} -func (m *HasPartitionRequest) XXX_Size() int { - return xxx_messageInfo_HasPartitionRequest.Size(m) -} -func (m *HasPartitionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_HasPartitionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_HasPartitionRequest proto.InternalMessageInfo - -func (m *HasPartitionRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *HasPartitionRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *HasPartitionRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *HasPartitionRequest) GetPartitionName() string { - if m != nil { - return m.PartitionName - } - return "" -} - -// -// 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. -type LoadPartitionsRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name in milvus - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The partition names you want to load - PartitionNames []string `protobuf:"bytes,4,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"` - // The replicas number you would load, 1 by default - ReplicaNumber int32 `protobuf:"varint,5,opt,name=replica_number,json=replicaNumber,proto3" json:"replica_number,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoadPartitionsRequest) Reset() { *m = LoadPartitionsRequest{} } -func (m *LoadPartitionsRequest) String() string { return proto.CompactTextString(m) } -func (*LoadPartitionsRequest) ProtoMessage() {} -func (*LoadPartitionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{22} -} - -func (m *LoadPartitionsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadPartitionsRequest.Unmarshal(m, b) -} -func (m *LoadPartitionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadPartitionsRequest.Marshal(b, m, deterministic) -} -func (m *LoadPartitionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadPartitionsRequest.Merge(m, src) -} -func (m *LoadPartitionsRequest) XXX_Size() int { - return xxx_messageInfo_LoadPartitionsRequest.Size(m) -} -func (m *LoadPartitionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoadPartitionsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_LoadPartitionsRequest proto.InternalMessageInfo - -func (m *LoadPartitionsRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *LoadPartitionsRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *LoadPartitionsRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *LoadPartitionsRequest) GetPartitionNames() []string { - if m != nil { - return m.PartitionNames - } - return nil -} - -func (m *LoadPartitionsRequest) GetReplicaNumber() int32 { - if m != nil { - return m.ReplicaNumber - } - return 0 -} - -// -// 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. -type ReleasePartitionsRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name in milvus - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The partition names you want to release - PartitionNames []string `protobuf:"bytes,4,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReleasePartitionsRequest) Reset() { *m = ReleasePartitionsRequest{} } -func (m *ReleasePartitionsRequest) String() string { return proto.CompactTextString(m) } -func (*ReleasePartitionsRequest) ProtoMessage() {} -func (*ReleasePartitionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{23} -} - -func (m *ReleasePartitionsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReleasePartitionsRequest.Unmarshal(m, b) -} -func (m *ReleasePartitionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReleasePartitionsRequest.Marshal(b, m, deterministic) -} -func (m *ReleasePartitionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReleasePartitionsRequest.Merge(m, src) -} -func (m *ReleasePartitionsRequest) XXX_Size() int { - return xxx_messageInfo_ReleasePartitionsRequest.Size(m) -} -func (m *ReleasePartitionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReleasePartitionsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ReleasePartitionsRequest proto.InternalMessageInfo - -func (m *ReleasePartitionsRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *ReleasePartitionsRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *ReleasePartitionsRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *ReleasePartitionsRequest) GetPartitionNames() []string { - if m != nil { - return m.PartitionNames - } - return nil -} - -// -// Get partition statistics like row_count. -type GetPartitionStatisticsRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name in milvus - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The partition name you want to collect statistics - PartitionName string `protobuf:"bytes,4,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetPartitionStatisticsRequest) Reset() { *m = GetPartitionStatisticsRequest{} } -func (m *GetPartitionStatisticsRequest) String() string { return proto.CompactTextString(m) } -func (*GetPartitionStatisticsRequest) ProtoMessage() {} -func (*GetPartitionStatisticsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{24} -} - -func (m *GetPartitionStatisticsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetPartitionStatisticsRequest.Unmarshal(m, b) -} -func (m *GetPartitionStatisticsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetPartitionStatisticsRequest.Marshal(b, m, deterministic) -} -func (m *GetPartitionStatisticsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetPartitionStatisticsRequest.Merge(m, src) -} -func (m *GetPartitionStatisticsRequest) XXX_Size() int { - return xxx_messageInfo_GetPartitionStatisticsRequest.Size(m) -} -func (m *GetPartitionStatisticsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetPartitionStatisticsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetPartitionStatisticsRequest proto.InternalMessageInfo - -func (m *GetPartitionStatisticsRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *GetPartitionStatisticsRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *GetPartitionStatisticsRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *GetPartitionStatisticsRequest) GetPartitionName() string { - if m != nil { - return m.PartitionName - } - return "" -} - -type GetPartitionStatisticsResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Stats []*commonpb.KeyValuePair `protobuf:"bytes,2,rep,name=stats,proto3" json:"stats,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetPartitionStatisticsResponse) Reset() { *m = GetPartitionStatisticsResponse{} } -func (m *GetPartitionStatisticsResponse) String() string { return proto.CompactTextString(m) } -func (*GetPartitionStatisticsResponse) ProtoMessage() {} -func (*GetPartitionStatisticsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{25} -} - -func (m *GetPartitionStatisticsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetPartitionStatisticsResponse.Unmarshal(m, b) -} -func (m *GetPartitionStatisticsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetPartitionStatisticsResponse.Marshal(b, m, deterministic) -} -func (m *GetPartitionStatisticsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetPartitionStatisticsResponse.Merge(m, src) -} -func (m *GetPartitionStatisticsResponse) XXX_Size() int { - return xxx_messageInfo_GetPartitionStatisticsResponse.Size(m) -} -func (m *GetPartitionStatisticsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetPartitionStatisticsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetPartitionStatisticsResponse proto.InternalMessageInfo - -func (m *GetPartitionStatisticsResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetPartitionStatisticsResponse) GetStats() []*commonpb.KeyValuePair { - if m != nil { - return m.Stats - } - return nil -} - -// -// List all partitions for particular collection -type ShowPartitionsRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name you want to describe, you can pass collection_name or collectionID - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The collection id in milvus - CollectionID int64 `protobuf:"varint,4,opt,name=collectionID,proto3" json:"collectionID,omitempty"` - // When type is InMemory, will return these patitions's inMemory_percentages.(Optional) - PartitionNames []string `protobuf:"bytes,5,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"` - // Decide return Loaded partitions or All partitions(Optional) - // Deprecated: use GetLoadingProgress rpc instead - Type ShowType `protobuf:"varint,6,opt,name=type,proto3,enum=milvus.proto.milvus.ShowType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ShowPartitionsRequest) Reset() { *m = ShowPartitionsRequest{} } -func (m *ShowPartitionsRequest) String() string { return proto.CompactTextString(m) } -func (*ShowPartitionsRequest) ProtoMessage() {} -func (*ShowPartitionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{26} -} - -func (m *ShowPartitionsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ShowPartitionsRequest.Unmarshal(m, b) -} -func (m *ShowPartitionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ShowPartitionsRequest.Marshal(b, m, deterministic) -} -func (m *ShowPartitionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShowPartitionsRequest.Merge(m, src) -} -func (m *ShowPartitionsRequest) XXX_Size() int { - return xxx_messageInfo_ShowPartitionsRequest.Size(m) -} -func (m *ShowPartitionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ShowPartitionsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ShowPartitionsRequest proto.InternalMessageInfo - -func (m *ShowPartitionsRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *ShowPartitionsRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *ShowPartitionsRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *ShowPartitionsRequest) GetCollectionID() int64 { - if m != nil { - return m.CollectionID - } - return 0 -} - -func (m *ShowPartitionsRequest) GetPartitionNames() []string { - if m != nil { - return m.PartitionNames - } - return nil -} - -func (m *ShowPartitionsRequest) GetType() ShowType { - if m != nil { - return m.Type - } - return ShowType_All -} - -// -// List all partitions for particular collection response. -// The returned datas are all rows, we can format to columns by therir index. -type ShowPartitionsResponse struct { - // Contain error_code and reason - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // All partition names for this collection - PartitionNames []string `protobuf:"bytes,2,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"` - // All partition ids for this collection - PartitionIDs []int64 `protobuf:"varint,3,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"` - // All hybrid timestamps - CreatedTimestamps []uint64 `protobuf:"varint,4,rep,packed,name=created_timestamps,json=createdTimestamps,proto3" json:"created_timestamps,omitempty"` - // All utc timestamps calculated by created_timestamps - CreatedUtcTimestamps []uint64 `protobuf:"varint,5,rep,packed,name=created_utc_timestamps,json=createdUtcTimestamps,proto3" json:"created_utc_timestamps,omitempty"` - // Load percentage on querynode - // Deprecated: use GetLoadingProgress rpc instead - InMemoryPercentages []int64 `protobuf:"varint,6,rep,packed,name=inMemory_percentages,json=inMemoryPercentages,proto3" json:"inMemory_percentages,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ShowPartitionsResponse) Reset() { *m = ShowPartitionsResponse{} } -func (m *ShowPartitionsResponse) String() string { return proto.CompactTextString(m) } -func (*ShowPartitionsResponse) ProtoMessage() {} -func (*ShowPartitionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{27} -} - -func (m *ShowPartitionsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ShowPartitionsResponse.Unmarshal(m, b) -} -func (m *ShowPartitionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ShowPartitionsResponse.Marshal(b, m, deterministic) -} -func (m *ShowPartitionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShowPartitionsResponse.Merge(m, src) -} -func (m *ShowPartitionsResponse) XXX_Size() int { - return xxx_messageInfo_ShowPartitionsResponse.Size(m) -} -func (m *ShowPartitionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ShowPartitionsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ShowPartitionsResponse proto.InternalMessageInfo - -func (m *ShowPartitionsResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *ShowPartitionsResponse) GetPartitionNames() []string { - if m != nil { - return m.PartitionNames - } - return nil -} - -func (m *ShowPartitionsResponse) GetPartitionIDs() []int64 { - if m != nil { - return m.PartitionIDs - } - return nil -} - -func (m *ShowPartitionsResponse) GetCreatedTimestamps() []uint64 { - if m != nil { - return m.CreatedTimestamps - } - return nil -} - -func (m *ShowPartitionsResponse) GetCreatedUtcTimestamps() []uint64 { - if m != nil { - return m.CreatedUtcTimestamps - } - return nil -} - -func (m *ShowPartitionsResponse) GetInMemoryPercentages() []int64 { - if m != nil { - return m.InMemoryPercentages - } - return nil -} - -type DescribeSegmentRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - CollectionID int64 `protobuf:"varint,2,opt,name=collectionID,proto3" json:"collectionID,omitempty"` - SegmentID int64 `protobuf:"varint,3,opt,name=segmentID,proto3" json:"segmentID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescribeSegmentRequest) Reset() { *m = DescribeSegmentRequest{} } -func (m *DescribeSegmentRequest) String() string { return proto.CompactTextString(m) } -func (*DescribeSegmentRequest) ProtoMessage() {} -func (*DescribeSegmentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{28} -} - -func (m *DescribeSegmentRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescribeSegmentRequest.Unmarshal(m, b) -} -func (m *DescribeSegmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescribeSegmentRequest.Marshal(b, m, deterministic) -} -func (m *DescribeSegmentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeSegmentRequest.Merge(m, src) -} -func (m *DescribeSegmentRequest) XXX_Size() int { - return xxx_messageInfo_DescribeSegmentRequest.Size(m) -} -func (m *DescribeSegmentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeSegmentRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DescribeSegmentRequest proto.InternalMessageInfo - -func (m *DescribeSegmentRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *DescribeSegmentRequest) GetCollectionID() int64 { - if m != nil { - return m.CollectionID - } - return 0 -} - -func (m *DescribeSegmentRequest) GetSegmentID() int64 { - if m != nil { - return m.SegmentID - } - return 0 -} - -type DescribeSegmentResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - IndexID int64 `protobuf:"varint,2,opt,name=indexID,proto3" json:"indexID,omitempty"` - BuildID int64 `protobuf:"varint,3,opt,name=buildID,proto3" json:"buildID,omitempty"` - EnableIndex bool `protobuf:"varint,4,opt,name=enable_index,json=enableIndex,proto3" json:"enable_index,omitempty"` - FieldID int64 `protobuf:"varint,5,opt,name=fieldID,proto3" json:"fieldID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescribeSegmentResponse) Reset() { *m = DescribeSegmentResponse{} } -func (m *DescribeSegmentResponse) String() string { return proto.CompactTextString(m) } -func (*DescribeSegmentResponse) ProtoMessage() {} -func (*DescribeSegmentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{29} -} - -func (m *DescribeSegmentResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescribeSegmentResponse.Unmarshal(m, b) -} -func (m *DescribeSegmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescribeSegmentResponse.Marshal(b, m, deterministic) -} -func (m *DescribeSegmentResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeSegmentResponse.Merge(m, src) -} -func (m *DescribeSegmentResponse) XXX_Size() int { - return xxx_messageInfo_DescribeSegmentResponse.Size(m) -} -func (m *DescribeSegmentResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeSegmentResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DescribeSegmentResponse proto.InternalMessageInfo - -func (m *DescribeSegmentResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *DescribeSegmentResponse) GetIndexID() int64 { - if m != nil { - return m.IndexID - } - return 0 -} - -func (m *DescribeSegmentResponse) GetBuildID() int64 { - if m != nil { - return m.BuildID - } - return 0 -} - -func (m *DescribeSegmentResponse) GetEnableIndex() bool { - if m != nil { - return m.EnableIndex - } - return false -} - -func (m *DescribeSegmentResponse) GetFieldID() int64 { - if m != nil { - return m.FieldID - } - return 0 -} - -type ShowSegmentsRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - CollectionID int64 `protobuf:"varint,2,opt,name=collectionID,proto3" json:"collectionID,omitempty"` - PartitionID int64 `protobuf:"varint,3,opt,name=partitionID,proto3" json:"partitionID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ShowSegmentsRequest) Reset() { *m = ShowSegmentsRequest{} } -func (m *ShowSegmentsRequest) String() string { return proto.CompactTextString(m) } -func (*ShowSegmentsRequest) ProtoMessage() {} -func (*ShowSegmentsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{30} -} - -func (m *ShowSegmentsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ShowSegmentsRequest.Unmarshal(m, b) -} -func (m *ShowSegmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ShowSegmentsRequest.Marshal(b, m, deterministic) -} -func (m *ShowSegmentsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShowSegmentsRequest.Merge(m, src) -} -func (m *ShowSegmentsRequest) XXX_Size() int { - return xxx_messageInfo_ShowSegmentsRequest.Size(m) -} -func (m *ShowSegmentsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ShowSegmentsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ShowSegmentsRequest proto.InternalMessageInfo - -func (m *ShowSegmentsRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *ShowSegmentsRequest) GetCollectionID() int64 { - if m != nil { - return m.CollectionID - } - return 0 -} - -func (m *ShowSegmentsRequest) GetPartitionID() int64 { - if m != nil { - return m.PartitionID - } - return 0 -} - -type ShowSegmentsResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - SegmentIDs []int64 `protobuf:"varint,2,rep,packed,name=segmentIDs,proto3" json:"segmentIDs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ShowSegmentsResponse) Reset() { *m = ShowSegmentsResponse{} } -func (m *ShowSegmentsResponse) String() string { return proto.CompactTextString(m) } -func (*ShowSegmentsResponse) ProtoMessage() {} -func (*ShowSegmentsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{31} -} - -func (m *ShowSegmentsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ShowSegmentsResponse.Unmarshal(m, b) -} -func (m *ShowSegmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ShowSegmentsResponse.Marshal(b, m, deterministic) -} -func (m *ShowSegmentsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShowSegmentsResponse.Merge(m, src) -} -func (m *ShowSegmentsResponse) XXX_Size() int { - return xxx_messageInfo_ShowSegmentsResponse.Size(m) -} -func (m *ShowSegmentsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ShowSegmentsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ShowSegmentsResponse proto.InternalMessageInfo - -func (m *ShowSegmentsResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *ShowSegmentsResponse) GetSegmentIDs() []int64 { - if m != nil { - return m.SegmentIDs - } - return nil -} - -// -// Create index for vector datas -type CreateIndexRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The particular collection name you want to create index. - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The vector field name in this particular collection - FieldName string `protobuf:"bytes,4,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - // Support keys: index_type,metric_type, params. Different index_type may has different params. - ExtraParams []*commonpb.KeyValuePair `protobuf:"bytes,5,rep,name=extra_params,json=extraParams,proto3" json:"extra_params,omitempty"` - // Version before 2.0.2 doesn't contain index_name, we use default index name. - IndexName string `protobuf:"bytes,6,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateIndexRequest) Reset() { *m = CreateIndexRequest{} } -func (m *CreateIndexRequest) String() string { return proto.CompactTextString(m) } -func (*CreateIndexRequest) ProtoMessage() {} -func (*CreateIndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{32} -} - -func (m *CreateIndexRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateIndexRequest.Unmarshal(m, b) -} -func (m *CreateIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateIndexRequest.Marshal(b, m, deterministic) -} -func (m *CreateIndexRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateIndexRequest.Merge(m, src) -} -func (m *CreateIndexRequest) XXX_Size() int { - return xxx_messageInfo_CreateIndexRequest.Size(m) -} -func (m *CreateIndexRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateIndexRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateIndexRequest proto.InternalMessageInfo - -func (m *CreateIndexRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *CreateIndexRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *CreateIndexRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *CreateIndexRequest) GetFieldName() string { - if m != nil { - return m.FieldName - } - return "" -} - -func (m *CreateIndexRequest) GetExtraParams() []*commonpb.KeyValuePair { - if m != nil { - return m.ExtraParams - } - return nil -} - -func (m *CreateIndexRequest) GetIndexName() string { - if m != nil { - return m.IndexName - } - return "" -} - -// -// Get created index information. -// Current release of Milvus only supports showing latest built index. -type DescribeIndexRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The particular collection name in Milvus - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The vector field name in this particular collection - FieldName string `protobuf:"bytes,4,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - // No need to set up for now @2021.06.30 - IndexName string `protobuf:"bytes,5,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescribeIndexRequest) Reset() { *m = DescribeIndexRequest{} } -func (m *DescribeIndexRequest) String() string { return proto.CompactTextString(m) } -func (*DescribeIndexRequest) ProtoMessage() {} -func (*DescribeIndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{33} -} - -func (m *DescribeIndexRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescribeIndexRequest.Unmarshal(m, b) -} -func (m *DescribeIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescribeIndexRequest.Marshal(b, m, deterministic) -} -func (m *DescribeIndexRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeIndexRequest.Merge(m, src) -} -func (m *DescribeIndexRequest) XXX_Size() int { - return xxx_messageInfo_DescribeIndexRequest.Size(m) -} -func (m *DescribeIndexRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeIndexRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DescribeIndexRequest proto.InternalMessageInfo - -func (m *DescribeIndexRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *DescribeIndexRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *DescribeIndexRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *DescribeIndexRequest) GetFieldName() string { - if m != nil { - return m.FieldName - } - return "" -} - -func (m *DescribeIndexRequest) GetIndexName() string { - if m != nil { - return m.IndexName - } - return "" -} - -// -// Index informations -type IndexDescription struct { - // Index name - IndexName string `protobuf:"bytes,1,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` - // Index id - IndexID int64 `protobuf:"varint,2,opt,name=indexID,proto3" json:"indexID,omitempty"` - // Will return index_type, metric_type, params(like nlist). - Params []*commonpb.KeyValuePair `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"` - // The vector field name - FieldName string `protobuf:"bytes,4,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - // index build progress - IndexedRows int64 `protobuf:"varint,5,opt,name=indexed_rows,json=indexedRows,proto3" json:"indexed_rows,omitempty"` - TotalRows int64 `protobuf:"varint,6,opt,name=total_rows,json=totalRows,proto3" json:"total_rows,omitempty"` - // index state - State commonpb.IndexState `protobuf:"varint,7,opt,name=state,proto3,enum=milvus.proto.common.IndexState" json:"state,omitempty"` - IndexStateFailReason string `protobuf:"bytes,8,opt,name=index_state_fail_reason,json=indexStateFailReason,proto3" json:"index_state_fail_reason,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IndexDescription) Reset() { *m = IndexDescription{} } -func (m *IndexDescription) String() string { return proto.CompactTextString(m) } -func (*IndexDescription) ProtoMessage() {} -func (*IndexDescription) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{34} -} - -func (m *IndexDescription) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IndexDescription.Unmarshal(m, b) -} -func (m *IndexDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IndexDescription.Marshal(b, m, deterministic) -} -func (m *IndexDescription) XXX_Merge(src proto.Message) { - xxx_messageInfo_IndexDescription.Merge(m, src) -} -func (m *IndexDescription) XXX_Size() int { - return xxx_messageInfo_IndexDescription.Size(m) -} -func (m *IndexDescription) XXX_DiscardUnknown() { - xxx_messageInfo_IndexDescription.DiscardUnknown(m) -} - -var xxx_messageInfo_IndexDescription proto.InternalMessageInfo - -func (m *IndexDescription) GetIndexName() string { - if m != nil { - return m.IndexName - } - return "" -} - -func (m *IndexDescription) GetIndexID() int64 { - if m != nil { - return m.IndexID - } - return 0 -} - -func (m *IndexDescription) GetParams() []*commonpb.KeyValuePair { - if m != nil { - return m.Params - } - return nil -} - -func (m *IndexDescription) GetFieldName() string { - if m != nil { - return m.FieldName - } - return "" -} - -func (m *IndexDescription) GetIndexedRows() int64 { - if m != nil { - return m.IndexedRows - } - return 0 -} - -func (m *IndexDescription) GetTotalRows() int64 { - if m != nil { - return m.TotalRows - } - return 0 -} - -func (m *IndexDescription) GetState() commonpb.IndexState { - if m != nil { - return m.State - } - return commonpb.IndexState_IndexStateNone -} - -func (m *IndexDescription) GetIndexStateFailReason() string { - if m != nil { - return m.IndexStateFailReason - } - return "" -} - -// -// Describe index response -type DescribeIndexResponse struct { - // Response status - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // All index informations, for now only return tha latest index you created for the collection. - IndexDescriptions []*IndexDescription `protobuf:"bytes,2,rep,name=index_descriptions,json=indexDescriptions,proto3" json:"index_descriptions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescribeIndexResponse) Reset() { *m = DescribeIndexResponse{} } -func (m *DescribeIndexResponse) String() string { return proto.CompactTextString(m) } -func (*DescribeIndexResponse) ProtoMessage() {} -func (*DescribeIndexResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{35} -} - -func (m *DescribeIndexResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescribeIndexResponse.Unmarshal(m, b) -} -func (m *DescribeIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescribeIndexResponse.Marshal(b, m, deterministic) -} -func (m *DescribeIndexResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeIndexResponse.Merge(m, src) -} -func (m *DescribeIndexResponse) XXX_Size() int { - return xxx_messageInfo_DescribeIndexResponse.Size(m) -} -func (m *DescribeIndexResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeIndexResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DescribeIndexResponse proto.InternalMessageInfo - -func (m *DescribeIndexResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *DescribeIndexResponse) GetIndexDescriptions() []*IndexDescription { - if m != nil { - return m.IndexDescriptions - } - return nil -} - -// -// Get index building progress -type GetIndexBuildProgressRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - // The collection name in milvus - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - // The vector field name in this collection - FieldName string `protobuf:"bytes,4,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - // Not useful for now - IndexName string `protobuf:"bytes,5,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetIndexBuildProgressRequest) Reset() { *m = GetIndexBuildProgressRequest{} } -func (m *GetIndexBuildProgressRequest) String() string { return proto.CompactTextString(m) } -func (*GetIndexBuildProgressRequest) ProtoMessage() {} -func (*GetIndexBuildProgressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{36} -} - -func (m *GetIndexBuildProgressRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetIndexBuildProgressRequest.Unmarshal(m, b) -} -func (m *GetIndexBuildProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetIndexBuildProgressRequest.Marshal(b, m, deterministic) -} -func (m *GetIndexBuildProgressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetIndexBuildProgressRequest.Merge(m, src) -} -func (m *GetIndexBuildProgressRequest) XXX_Size() int { - return xxx_messageInfo_GetIndexBuildProgressRequest.Size(m) -} -func (m *GetIndexBuildProgressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetIndexBuildProgressRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetIndexBuildProgressRequest proto.InternalMessageInfo - -func (m *GetIndexBuildProgressRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *GetIndexBuildProgressRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *GetIndexBuildProgressRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *GetIndexBuildProgressRequest) GetFieldName() string { - if m != nil { - return m.FieldName - } - return "" -} - -func (m *GetIndexBuildProgressRequest) GetIndexName() string { - if m != nil { - return m.IndexName - } - return "" -} - -type GetIndexBuildProgressResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - IndexedRows int64 `protobuf:"varint,2,opt,name=indexed_rows,json=indexedRows,proto3" json:"indexed_rows,omitempty"` - TotalRows int64 `protobuf:"varint,3,opt,name=total_rows,json=totalRows,proto3" json:"total_rows,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetIndexBuildProgressResponse) Reset() { *m = GetIndexBuildProgressResponse{} } -func (m *GetIndexBuildProgressResponse) String() string { return proto.CompactTextString(m) } -func (*GetIndexBuildProgressResponse) ProtoMessage() {} -func (*GetIndexBuildProgressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{37} -} - -func (m *GetIndexBuildProgressResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetIndexBuildProgressResponse.Unmarshal(m, b) -} -func (m *GetIndexBuildProgressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetIndexBuildProgressResponse.Marshal(b, m, deterministic) -} -func (m *GetIndexBuildProgressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetIndexBuildProgressResponse.Merge(m, src) -} -func (m *GetIndexBuildProgressResponse) XXX_Size() int { - return xxx_messageInfo_GetIndexBuildProgressResponse.Size(m) -} -func (m *GetIndexBuildProgressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetIndexBuildProgressResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetIndexBuildProgressResponse proto.InternalMessageInfo - -func (m *GetIndexBuildProgressResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetIndexBuildProgressResponse) GetIndexedRows() int64 { - if m != nil { - return m.IndexedRows - } - return 0 -} - -func (m *GetIndexBuildProgressResponse) GetTotalRows() int64 { - if m != nil { - return m.TotalRows - } - return 0 -} - -type GetIndexStateRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - FieldName string `protobuf:"bytes,4,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - IndexName string `protobuf:"bytes,5,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetIndexStateRequest) Reset() { *m = GetIndexStateRequest{} } -func (m *GetIndexStateRequest) String() string { return proto.CompactTextString(m) } -func (*GetIndexStateRequest) ProtoMessage() {} -func (*GetIndexStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{38} -} - -func (m *GetIndexStateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetIndexStateRequest.Unmarshal(m, b) -} -func (m *GetIndexStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetIndexStateRequest.Marshal(b, m, deterministic) -} -func (m *GetIndexStateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetIndexStateRequest.Merge(m, src) -} -func (m *GetIndexStateRequest) XXX_Size() int { - return xxx_messageInfo_GetIndexStateRequest.Size(m) -} -func (m *GetIndexStateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetIndexStateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetIndexStateRequest proto.InternalMessageInfo - -func (m *GetIndexStateRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *GetIndexStateRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *GetIndexStateRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *GetIndexStateRequest) GetFieldName() string { - if m != nil { - return m.FieldName - } - return "" -} - -func (m *GetIndexStateRequest) GetIndexName() string { - if m != nil { - return m.IndexName - } - return "" -} - -type GetIndexStateResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - State commonpb.IndexState `protobuf:"varint,2,opt,name=state,proto3,enum=milvus.proto.common.IndexState" json:"state,omitempty"` - FailReason string `protobuf:"bytes,3,opt,name=fail_reason,json=failReason,proto3" json:"fail_reason,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetIndexStateResponse) Reset() { *m = GetIndexStateResponse{} } -func (m *GetIndexStateResponse) String() string { return proto.CompactTextString(m) } -func (*GetIndexStateResponse) ProtoMessage() {} -func (*GetIndexStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{39} -} - -func (m *GetIndexStateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetIndexStateResponse.Unmarshal(m, b) -} -func (m *GetIndexStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetIndexStateResponse.Marshal(b, m, deterministic) -} -func (m *GetIndexStateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetIndexStateResponse.Merge(m, src) -} -func (m *GetIndexStateResponse) XXX_Size() int { - return xxx_messageInfo_GetIndexStateResponse.Size(m) -} -func (m *GetIndexStateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetIndexStateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetIndexStateResponse proto.InternalMessageInfo - -func (m *GetIndexStateResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetIndexStateResponse) GetState() commonpb.IndexState { - if m != nil { - return m.State - } - return commonpb.IndexState_IndexStateNone -} - -func (m *GetIndexStateResponse) GetFailReason() string { - if m != nil { - return m.FailReason - } - return "" -} - -type DropIndexRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - FieldName string `protobuf:"bytes,4,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - IndexName string `protobuf:"bytes,5,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DropIndexRequest) Reset() { *m = DropIndexRequest{} } -func (m *DropIndexRequest) String() string { return proto.CompactTextString(m) } -func (*DropIndexRequest) ProtoMessage() {} -func (*DropIndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{40} -} - -func (m *DropIndexRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DropIndexRequest.Unmarshal(m, b) -} -func (m *DropIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DropIndexRequest.Marshal(b, m, deterministic) -} -func (m *DropIndexRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DropIndexRequest.Merge(m, src) -} -func (m *DropIndexRequest) XXX_Size() int { - return xxx_messageInfo_DropIndexRequest.Size(m) -} -func (m *DropIndexRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DropIndexRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DropIndexRequest proto.InternalMessageInfo - -func (m *DropIndexRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *DropIndexRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *DropIndexRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *DropIndexRequest) GetFieldName() string { - if m != nil { - return m.FieldName - } - return "" -} - -func (m *DropIndexRequest) GetIndexName() string { - if m != nil { - return m.IndexName - } - return "" -} - -type InsertRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - PartitionName string `protobuf:"bytes,4,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"` - FieldsData []*schemapb.FieldData `protobuf:"bytes,5,rep,name=fields_data,json=fieldsData,proto3" json:"fields_data,omitempty"` - HashKeys []uint32 `protobuf:"varint,6,rep,packed,name=hash_keys,json=hashKeys,proto3" json:"hash_keys,omitempty"` - NumRows uint32 `protobuf:"varint,7,opt,name=num_rows,json=numRows,proto3" json:"num_rows,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InsertRequest) Reset() { *m = InsertRequest{} } -func (m *InsertRequest) String() string { return proto.CompactTextString(m) } -func (*InsertRequest) ProtoMessage() {} -func (*InsertRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{41} -} - -func (m *InsertRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InsertRequest.Unmarshal(m, b) -} -func (m *InsertRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InsertRequest.Marshal(b, m, deterministic) -} -func (m *InsertRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InsertRequest.Merge(m, src) -} -func (m *InsertRequest) XXX_Size() int { - return xxx_messageInfo_InsertRequest.Size(m) -} -func (m *InsertRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InsertRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_InsertRequest proto.InternalMessageInfo - -func (m *InsertRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *InsertRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *InsertRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *InsertRequest) GetPartitionName() string { - if m != nil { - return m.PartitionName - } - return "" -} - -func (m *InsertRequest) GetFieldsData() []*schemapb.FieldData { - if m != nil { - return m.FieldsData - } - return nil -} - -func (m *InsertRequest) GetHashKeys() []uint32 { - if m != nil { - return m.HashKeys - } - return nil -} - -func (m *InsertRequest) GetNumRows() uint32 { - if m != nil { - return m.NumRows - } - return 0 -} - -type MutationResult struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - IDs *schemapb.IDs `protobuf:"bytes,2,opt,name=IDs,proto3" json:"IDs,omitempty"` - SuccIndex []uint32 `protobuf:"varint,3,rep,packed,name=succ_index,json=succIndex,proto3" json:"succ_index,omitempty"` - ErrIndex []uint32 `protobuf:"varint,4,rep,packed,name=err_index,json=errIndex,proto3" json:"err_index,omitempty"` - Acknowledged bool `protobuf:"varint,5,opt,name=acknowledged,proto3" json:"acknowledged,omitempty"` - InsertCnt int64 `protobuf:"varint,6,opt,name=insert_cnt,json=insertCnt,proto3" json:"insert_cnt,omitempty"` - DeleteCnt int64 `protobuf:"varint,7,opt,name=delete_cnt,json=deleteCnt,proto3" json:"delete_cnt,omitempty"` - UpsertCnt int64 `protobuf:"varint,8,opt,name=upsert_cnt,json=upsertCnt,proto3" json:"upsert_cnt,omitempty"` - Timestamp uint64 `protobuf:"varint,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MutationResult) Reset() { *m = MutationResult{} } -func (m *MutationResult) String() string { return proto.CompactTextString(m) } -func (*MutationResult) ProtoMessage() {} -func (*MutationResult) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{42} -} - -func (m *MutationResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MutationResult.Unmarshal(m, b) -} -func (m *MutationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MutationResult.Marshal(b, m, deterministic) -} -func (m *MutationResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_MutationResult.Merge(m, src) -} -func (m *MutationResult) XXX_Size() int { - return xxx_messageInfo_MutationResult.Size(m) -} -func (m *MutationResult) XXX_DiscardUnknown() { - xxx_messageInfo_MutationResult.DiscardUnknown(m) -} - -var xxx_messageInfo_MutationResult proto.InternalMessageInfo - -func (m *MutationResult) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *MutationResult) GetIDs() *schemapb.IDs { - if m != nil { - return m.IDs - } - return nil -} - -func (m *MutationResult) GetSuccIndex() []uint32 { - if m != nil { - return m.SuccIndex - } - return nil -} - -func (m *MutationResult) GetErrIndex() []uint32 { - if m != nil { - return m.ErrIndex - } - return nil -} - -func (m *MutationResult) GetAcknowledged() bool { - if m != nil { - return m.Acknowledged - } - return false -} - -func (m *MutationResult) GetInsertCnt() int64 { - if m != nil { - return m.InsertCnt - } - return 0 -} - -func (m *MutationResult) GetDeleteCnt() int64 { - if m != nil { - return m.DeleteCnt - } - return 0 -} - -func (m *MutationResult) GetUpsertCnt() int64 { - if m != nil { - return m.UpsertCnt - } - return 0 -} - -func (m *MutationResult) GetTimestamp() uint64 { - if m != nil { - return m.Timestamp - } - return 0 -} - -type DeleteRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - PartitionName string `protobuf:"bytes,4,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"` - Expr string `protobuf:"bytes,5,opt,name=expr,proto3" json:"expr,omitempty"` - HashKeys []uint32 `protobuf:"varint,6,rep,packed,name=hash_keys,json=hashKeys,proto3" json:"hash_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } -func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRequest) ProtoMessage() {} -func (*DeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{43} -} - -func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteRequest.Unmarshal(m, b) -} -func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) -} -func (m *DeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteRequest.Merge(m, src) -} -func (m *DeleteRequest) XXX_Size() int { - return xxx_messageInfo_DeleteRequest.Size(m) -} -func (m *DeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo - -func (m *DeleteRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *DeleteRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *DeleteRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *DeleteRequest) GetPartitionName() string { - if m != nil { - return m.PartitionName - } - return "" -} - -func (m *DeleteRequest) GetExpr() string { - if m != nil { - return m.Expr - } - return "" -} - -func (m *DeleteRequest) GetHashKeys() []uint32 { - if m != nil { - return m.HashKeys - } - return nil -} - -type SearchRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - PartitionNames []string `protobuf:"bytes,4,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"` - Dsl string `protobuf:"bytes,5,opt,name=dsl,proto3" json:"dsl,omitempty"` - // serialized `PlaceholderGroup` - PlaceholderGroup []byte `protobuf:"bytes,6,opt,name=placeholder_group,json=placeholderGroup,proto3" json:"placeholder_group,omitempty"` - DslType commonpb.DslType `protobuf:"varint,7,opt,name=dsl_type,json=dslType,proto3,enum=milvus.proto.common.DslType" json:"dsl_type,omitempty"` - OutputFields []string `protobuf:"bytes,8,rep,name=output_fields,json=outputFields,proto3" json:"output_fields,omitempty"` - SearchParams []*commonpb.KeyValuePair `protobuf:"bytes,9,rep,name=search_params,json=searchParams,proto3" json:"search_params,omitempty"` - TravelTimestamp uint64 `protobuf:"varint,10,opt,name=travel_timestamp,json=travelTimestamp,proto3" json:"travel_timestamp,omitempty"` - GuaranteeTimestamp uint64 `protobuf:"varint,11,opt,name=guarantee_timestamp,json=guaranteeTimestamp,proto3" json:"guarantee_timestamp,omitempty"` - Nq int64 `protobuf:"varint,12,opt,name=nq,proto3" json:"nq,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SearchRequest) Reset() { *m = SearchRequest{} } -func (m *SearchRequest) String() string { return proto.CompactTextString(m) } -func (*SearchRequest) ProtoMessage() {} -func (*SearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{44} -} - -func (m *SearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SearchRequest.Unmarshal(m, b) -} -func (m *SearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SearchRequest.Marshal(b, m, deterministic) -} -func (m *SearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchRequest.Merge(m, src) -} -func (m *SearchRequest) XXX_Size() int { - return xxx_messageInfo_SearchRequest.Size(m) -} -func (m *SearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SearchRequest proto.InternalMessageInfo - -func (m *SearchRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *SearchRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *SearchRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *SearchRequest) GetPartitionNames() []string { - if m != nil { - return m.PartitionNames - } - return nil -} - -func (m *SearchRequest) GetDsl() string { - if m != nil { - return m.Dsl - } - return "" -} - -func (m *SearchRequest) GetPlaceholderGroup() []byte { - if m != nil { - return m.PlaceholderGroup - } - return nil -} - -func (m *SearchRequest) GetDslType() commonpb.DslType { - if m != nil { - return m.DslType - } - return commonpb.DslType_Dsl -} - -func (m *SearchRequest) GetOutputFields() []string { - if m != nil { - return m.OutputFields - } - return nil -} - -func (m *SearchRequest) GetSearchParams() []*commonpb.KeyValuePair { - if m != nil { - return m.SearchParams - } - return nil -} - -func (m *SearchRequest) GetTravelTimestamp() uint64 { - if m != nil { - return m.TravelTimestamp - } - return 0 -} - -func (m *SearchRequest) GetGuaranteeTimestamp() uint64 { - if m != nil { - return m.GuaranteeTimestamp - } - return 0 -} - -func (m *SearchRequest) GetNq() int64 { - if m != nil { - return m.Nq - } - return 0 -} - -type Hits struct { - IDs []int64 `protobuf:"varint,1,rep,packed,name=IDs,proto3" json:"IDs,omitempty"` - RowData [][]byte `protobuf:"bytes,2,rep,name=row_data,json=rowData,proto3" json:"row_data,omitempty"` - Scores []float32 `protobuf:"fixed32,3,rep,packed,name=scores,proto3" json:"scores,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Hits) Reset() { *m = Hits{} } -func (m *Hits) String() string { return proto.CompactTextString(m) } -func (*Hits) ProtoMessage() {} -func (*Hits) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{45} -} - -func (m *Hits) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Hits.Unmarshal(m, b) -} -func (m *Hits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Hits.Marshal(b, m, deterministic) -} -func (m *Hits) XXX_Merge(src proto.Message) { - xxx_messageInfo_Hits.Merge(m, src) -} -func (m *Hits) XXX_Size() int { - return xxx_messageInfo_Hits.Size(m) -} -func (m *Hits) XXX_DiscardUnknown() { - xxx_messageInfo_Hits.DiscardUnknown(m) -} - -var xxx_messageInfo_Hits proto.InternalMessageInfo - -func (m *Hits) GetIDs() []int64 { - if m != nil { - return m.IDs - } - return nil -} - -func (m *Hits) GetRowData() [][]byte { - if m != nil { - return m.RowData - } - return nil -} - -func (m *Hits) GetScores() []float32 { - if m != nil { - return m.Scores - } - return nil -} - -type SearchResults struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Results *schemapb.SearchResultData `protobuf:"bytes,2,opt,name=results,proto3" json:"results,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SearchResults) Reset() { *m = SearchResults{} } -func (m *SearchResults) String() string { return proto.CompactTextString(m) } -func (*SearchResults) ProtoMessage() {} -func (*SearchResults) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{46} -} - -func (m *SearchResults) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SearchResults.Unmarshal(m, b) -} -func (m *SearchResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SearchResults.Marshal(b, m, deterministic) -} -func (m *SearchResults) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchResults.Merge(m, src) -} -func (m *SearchResults) XXX_Size() int { - return xxx_messageInfo_SearchResults.Size(m) -} -func (m *SearchResults) XXX_DiscardUnknown() { - xxx_messageInfo_SearchResults.DiscardUnknown(m) -} - -var xxx_messageInfo_SearchResults proto.InternalMessageInfo - -func (m *SearchResults) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *SearchResults) GetResults() *schemapb.SearchResultData { - if m != nil { - return m.Results - } - return nil -} - -func (m *SearchResults) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -type FlushRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - CollectionNames []string `protobuf:"bytes,3,rep,name=collection_names,json=collectionNames,proto3" json:"collection_names,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FlushRequest) Reset() { *m = FlushRequest{} } -func (m *FlushRequest) String() string { return proto.CompactTextString(m) } -func (*FlushRequest) ProtoMessage() {} -func (*FlushRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{47} -} - -func (m *FlushRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FlushRequest.Unmarshal(m, b) -} -func (m *FlushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FlushRequest.Marshal(b, m, deterministic) -} -func (m *FlushRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlushRequest.Merge(m, src) -} -func (m *FlushRequest) XXX_Size() int { - return xxx_messageInfo_FlushRequest.Size(m) -} -func (m *FlushRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FlushRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FlushRequest proto.InternalMessageInfo - -func (m *FlushRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *FlushRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *FlushRequest) GetCollectionNames() []string { - if m != nil { - return m.CollectionNames - } - return nil -} - -type FlushResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - CollSegIDs map[string]*schemapb.LongArray `protobuf:"bytes,3,rep,name=coll_segIDs,json=collSegIDs,proto3" json:"coll_segIDs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - FlushCollSegIDs map[string]*schemapb.LongArray `protobuf:"bytes,4,rep,name=flush_coll_segIDs,json=flushCollSegIDs,proto3" json:"flush_coll_segIDs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - CollSealTimes map[string]int64 `protobuf:"bytes,5,rep,name=coll_seal_times,json=collSealTimes,proto3" json:"coll_seal_times,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FlushResponse) Reset() { *m = FlushResponse{} } -func (m *FlushResponse) String() string { return proto.CompactTextString(m) } -func (*FlushResponse) ProtoMessage() {} -func (*FlushResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{48} -} - -func (m *FlushResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FlushResponse.Unmarshal(m, b) -} -func (m *FlushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FlushResponse.Marshal(b, m, deterministic) -} -func (m *FlushResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlushResponse.Merge(m, src) -} -func (m *FlushResponse) XXX_Size() int { - return xxx_messageInfo_FlushResponse.Size(m) -} -func (m *FlushResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FlushResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_FlushResponse proto.InternalMessageInfo - -func (m *FlushResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *FlushResponse) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *FlushResponse) GetCollSegIDs() map[string]*schemapb.LongArray { - if m != nil { - return m.CollSegIDs - } - return nil -} - -func (m *FlushResponse) GetFlushCollSegIDs() map[string]*schemapb.LongArray { - if m != nil { - return m.FlushCollSegIDs - } - return nil -} - -func (m *FlushResponse) GetCollSealTimes() map[string]int64 { - if m != nil { - return m.CollSealTimes - } - return nil -} - -type QueryRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - Expr string `protobuf:"bytes,4,opt,name=expr,proto3" json:"expr,omitempty"` - OutputFields []string `protobuf:"bytes,5,rep,name=output_fields,json=outputFields,proto3" json:"output_fields,omitempty"` - PartitionNames []string `protobuf:"bytes,6,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"` - TravelTimestamp uint64 `protobuf:"varint,7,opt,name=travel_timestamp,json=travelTimestamp,proto3" json:"travel_timestamp,omitempty"` - GuaranteeTimestamp uint64 `protobuf:"varint,8,opt,name=guarantee_timestamp,json=guaranteeTimestamp,proto3" json:"guarantee_timestamp,omitempty"` - QueryParams []*commonpb.KeyValuePair `protobuf:"bytes,9,rep,name=query_params,json=queryParams,proto3" json:"query_params,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *QueryRequest) Reset() { *m = QueryRequest{} } -func (m *QueryRequest) String() string { return proto.CompactTextString(m) } -func (*QueryRequest) ProtoMessage() {} -func (*QueryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{49} -} - -func (m *QueryRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QueryRequest.Unmarshal(m, b) -} -func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QueryRequest.Marshal(b, m, deterministic) -} -func (m *QueryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRequest.Merge(m, src) -} -func (m *QueryRequest) XXX_Size() int { - return xxx_messageInfo_QueryRequest.Size(m) -} -func (m *QueryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryRequest proto.InternalMessageInfo - -func (m *QueryRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *QueryRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *QueryRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *QueryRequest) GetExpr() string { - if m != nil { - return m.Expr - } - return "" -} - -func (m *QueryRequest) GetOutputFields() []string { - if m != nil { - return m.OutputFields - } - return nil -} - -func (m *QueryRequest) GetPartitionNames() []string { - if m != nil { - return m.PartitionNames - } - return nil -} - -func (m *QueryRequest) GetTravelTimestamp() uint64 { - if m != nil { - return m.TravelTimestamp - } - return 0 -} - -func (m *QueryRequest) GetGuaranteeTimestamp() uint64 { - if m != nil { - return m.GuaranteeTimestamp - } - return 0 -} - -func (m *QueryRequest) GetQueryParams() []*commonpb.KeyValuePair { - if m != nil { - return m.QueryParams - } - return nil -} - -type QueryResults struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - FieldsData []*schemapb.FieldData `protobuf:"bytes,2,rep,name=fields_data,json=fieldsData,proto3" json:"fields_data,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *QueryResults) Reset() { *m = QueryResults{} } -func (m *QueryResults) String() string { return proto.CompactTextString(m) } -func (*QueryResults) ProtoMessage() {} -func (*QueryResults) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{50} -} - -func (m *QueryResults) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QueryResults.Unmarshal(m, b) -} -func (m *QueryResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QueryResults.Marshal(b, m, deterministic) -} -func (m *QueryResults) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryResults.Merge(m, src) -} -func (m *QueryResults) XXX_Size() int { - return xxx_messageInfo_QueryResults.Size(m) -} -func (m *QueryResults) XXX_DiscardUnknown() { - xxx_messageInfo_QueryResults.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryResults proto.InternalMessageInfo - -func (m *QueryResults) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *QueryResults) GetFieldsData() []*schemapb.FieldData { - if m != nil { - return m.FieldsData - } - return nil -} - -func (m *QueryResults) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -type VectorIDs struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - IdArray *schemapb.IDs `protobuf:"bytes,3,opt,name=id_array,json=idArray,proto3" json:"id_array,omitempty"` - PartitionNames []string `protobuf:"bytes,4,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VectorIDs) Reset() { *m = VectorIDs{} } -func (m *VectorIDs) String() string { return proto.CompactTextString(m) } -func (*VectorIDs) ProtoMessage() {} -func (*VectorIDs) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{51} -} - -func (m *VectorIDs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VectorIDs.Unmarshal(m, b) -} -func (m *VectorIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VectorIDs.Marshal(b, m, deterministic) -} -func (m *VectorIDs) XXX_Merge(src proto.Message) { - xxx_messageInfo_VectorIDs.Merge(m, src) -} -func (m *VectorIDs) XXX_Size() int { - return xxx_messageInfo_VectorIDs.Size(m) -} -func (m *VectorIDs) XXX_DiscardUnknown() { - xxx_messageInfo_VectorIDs.DiscardUnknown(m) -} - -var xxx_messageInfo_VectorIDs proto.InternalMessageInfo - -func (m *VectorIDs) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *VectorIDs) GetFieldName() string { - if m != nil { - return m.FieldName - } - return "" -} - -func (m *VectorIDs) GetIdArray() *schemapb.IDs { - if m != nil { - return m.IdArray - } - return nil -} - -func (m *VectorIDs) GetPartitionNames() []string { - if m != nil { - return m.PartitionNames - } - return nil -} - -type VectorsArray struct { - // Types that are valid to be assigned to Array: - // *VectorsArray_IdArray - // *VectorsArray_DataArray - Array isVectorsArray_Array `protobuf_oneof:"array"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VectorsArray) Reset() { *m = VectorsArray{} } -func (m *VectorsArray) String() string { return proto.CompactTextString(m) } -func (*VectorsArray) ProtoMessage() {} -func (*VectorsArray) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{52} -} - -func (m *VectorsArray) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VectorsArray.Unmarshal(m, b) -} -func (m *VectorsArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VectorsArray.Marshal(b, m, deterministic) -} -func (m *VectorsArray) XXX_Merge(src proto.Message) { - xxx_messageInfo_VectorsArray.Merge(m, src) -} -func (m *VectorsArray) XXX_Size() int { - return xxx_messageInfo_VectorsArray.Size(m) -} -func (m *VectorsArray) XXX_DiscardUnknown() { - xxx_messageInfo_VectorsArray.DiscardUnknown(m) -} - -var xxx_messageInfo_VectorsArray proto.InternalMessageInfo - -type isVectorsArray_Array interface { - isVectorsArray_Array() -} - -type VectorsArray_IdArray struct { - IdArray *VectorIDs `protobuf:"bytes,1,opt,name=id_array,json=idArray,proto3,oneof"` -} - -type VectorsArray_DataArray struct { - DataArray *schemapb.VectorField `protobuf:"bytes,2,opt,name=data_array,json=dataArray,proto3,oneof"` -} - -func (*VectorsArray_IdArray) isVectorsArray_Array() {} - -func (*VectorsArray_DataArray) isVectorsArray_Array() {} - -func (m *VectorsArray) GetArray() isVectorsArray_Array { - if m != nil { - return m.Array - } - return nil -} - -func (m *VectorsArray) GetIdArray() *VectorIDs { - if x, ok := m.GetArray().(*VectorsArray_IdArray); ok { - return x.IdArray - } - return nil -} - -func (m *VectorsArray) GetDataArray() *schemapb.VectorField { - if x, ok := m.GetArray().(*VectorsArray_DataArray); ok { - return x.DataArray - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*VectorsArray) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*VectorsArray_IdArray)(nil), - (*VectorsArray_DataArray)(nil), - } -} - -type CalcDistanceRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - OpLeft *VectorsArray `protobuf:"bytes,2,opt,name=op_left,json=opLeft,proto3" json:"op_left,omitempty"` - OpRight *VectorsArray `protobuf:"bytes,3,opt,name=op_right,json=opRight,proto3" json:"op_right,omitempty"` - Params []*commonpb.KeyValuePair `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CalcDistanceRequest) Reset() { *m = CalcDistanceRequest{} } -func (m *CalcDistanceRequest) String() string { return proto.CompactTextString(m) } -func (*CalcDistanceRequest) ProtoMessage() {} -func (*CalcDistanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{53} -} - -func (m *CalcDistanceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CalcDistanceRequest.Unmarshal(m, b) -} -func (m *CalcDistanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CalcDistanceRequest.Marshal(b, m, deterministic) -} -func (m *CalcDistanceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CalcDistanceRequest.Merge(m, src) -} -func (m *CalcDistanceRequest) XXX_Size() int { - return xxx_messageInfo_CalcDistanceRequest.Size(m) -} -func (m *CalcDistanceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CalcDistanceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CalcDistanceRequest proto.InternalMessageInfo - -func (m *CalcDistanceRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *CalcDistanceRequest) GetOpLeft() *VectorsArray { - if m != nil { - return m.OpLeft - } - return nil -} - -func (m *CalcDistanceRequest) GetOpRight() *VectorsArray { - if m != nil { - return m.OpRight - } - return nil -} - -func (m *CalcDistanceRequest) GetParams() []*commonpb.KeyValuePair { - if m != nil { - return m.Params - } - return nil -} - -type CalcDistanceResults struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // num(op_left)*num(op_right) distance values, "HAMMIN" return integer distance - // - // Types that are valid to be assigned to Array: - // *CalcDistanceResults_IntDist - // *CalcDistanceResults_FloatDist - Array isCalcDistanceResults_Array `protobuf_oneof:"array"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CalcDistanceResults) Reset() { *m = CalcDistanceResults{} } -func (m *CalcDistanceResults) String() string { return proto.CompactTextString(m) } -func (*CalcDistanceResults) ProtoMessage() {} -func (*CalcDistanceResults) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{54} -} - -func (m *CalcDistanceResults) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CalcDistanceResults.Unmarshal(m, b) -} -func (m *CalcDistanceResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CalcDistanceResults.Marshal(b, m, deterministic) -} -func (m *CalcDistanceResults) XXX_Merge(src proto.Message) { - xxx_messageInfo_CalcDistanceResults.Merge(m, src) -} -func (m *CalcDistanceResults) XXX_Size() int { - return xxx_messageInfo_CalcDistanceResults.Size(m) -} -func (m *CalcDistanceResults) XXX_DiscardUnknown() { - xxx_messageInfo_CalcDistanceResults.DiscardUnknown(m) -} - -var xxx_messageInfo_CalcDistanceResults proto.InternalMessageInfo - -func (m *CalcDistanceResults) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -type isCalcDistanceResults_Array interface { - isCalcDistanceResults_Array() -} - -type CalcDistanceResults_IntDist struct { - IntDist *schemapb.IntArray `protobuf:"bytes,2,opt,name=int_dist,json=intDist,proto3,oneof"` -} - -type CalcDistanceResults_FloatDist struct { - FloatDist *schemapb.FloatArray `protobuf:"bytes,3,opt,name=float_dist,json=floatDist,proto3,oneof"` -} - -func (*CalcDistanceResults_IntDist) isCalcDistanceResults_Array() {} - -func (*CalcDistanceResults_FloatDist) isCalcDistanceResults_Array() {} - -func (m *CalcDistanceResults) GetArray() isCalcDistanceResults_Array { - if m != nil { - return m.Array - } - return nil -} - -func (m *CalcDistanceResults) GetIntDist() *schemapb.IntArray { - if x, ok := m.GetArray().(*CalcDistanceResults_IntDist); ok { - return x.IntDist - } - return nil -} - -func (m *CalcDistanceResults) GetFloatDist() *schemapb.FloatArray { - if x, ok := m.GetArray().(*CalcDistanceResults_FloatDist); ok { - return x.FloatDist - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*CalcDistanceResults) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*CalcDistanceResults_IntDist)(nil), - (*CalcDistanceResults_FloatDist)(nil), - } -} - -type PersistentSegmentInfo struct { - SegmentID int64 `protobuf:"varint,1,opt,name=segmentID,proto3" json:"segmentID,omitempty"` - CollectionID int64 `protobuf:"varint,2,opt,name=collectionID,proto3" json:"collectionID,omitempty"` - PartitionID int64 `protobuf:"varint,3,opt,name=partitionID,proto3" json:"partitionID,omitempty"` - NumRows int64 `protobuf:"varint,4,opt,name=num_rows,json=numRows,proto3" json:"num_rows,omitempty"` - State commonpb.SegmentState `protobuf:"varint,5,opt,name=state,proto3,enum=milvus.proto.common.SegmentState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PersistentSegmentInfo) Reset() { *m = PersistentSegmentInfo{} } -func (m *PersistentSegmentInfo) String() string { return proto.CompactTextString(m) } -func (*PersistentSegmentInfo) ProtoMessage() {} -func (*PersistentSegmentInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{55} -} - -func (m *PersistentSegmentInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PersistentSegmentInfo.Unmarshal(m, b) -} -func (m *PersistentSegmentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PersistentSegmentInfo.Marshal(b, m, deterministic) -} -func (m *PersistentSegmentInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersistentSegmentInfo.Merge(m, src) -} -func (m *PersistentSegmentInfo) XXX_Size() int { - return xxx_messageInfo_PersistentSegmentInfo.Size(m) -} -func (m *PersistentSegmentInfo) XXX_DiscardUnknown() { - xxx_messageInfo_PersistentSegmentInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_PersistentSegmentInfo proto.InternalMessageInfo - -func (m *PersistentSegmentInfo) GetSegmentID() int64 { - if m != nil { - return m.SegmentID - } - return 0 -} - -func (m *PersistentSegmentInfo) GetCollectionID() int64 { - if m != nil { - return m.CollectionID - } - return 0 -} - -func (m *PersistentSegmentInfo) GetPartitionID() int64 { - if m != nil { - return m.PartitionID - } - return 0 -} - -func (m *PersistentSegmentInfo) GetNumRows() int64 { - if m != nil { - return m.NumRows - } - return 0 -} - -func (m *PersistentSegmentInfo) GetState() commonpb.SegmentState { - if m != nil { - return m.State - } - return commonpb.SegmentState_SegmentStateNone -} - -type GetPersistentSegmentInfoRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=dbName,proto3" json:"dbName,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collectionName,proto3" json:"collectionName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetPersistentSegmentInfoRequest) Reset() { *m = GetPersistentSegmentInfoRequest{} } -func (m *GetPersistentSegmentInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetPersistentSegmentInfoRequest) ProtoMessage() {} -func (*GetPersistentSegmentInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{56} -} - -func (m *GetPersistentSegmentInfoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetPersistentSegmentInfoRequest.Unmarshal(m, b) -} -func (m *GetPersistentSegmentInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetPersistentSegmentInfoRequest.Marshal(b, m, deterministic) -} -func (m *GetPersistentSegmentInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetPersistentSegmentInfoRequest.Merge(m, src) -} -func (m *GetPersistentSegmentInfoRequest) XXX_Size() int { - return xxx_messageInfo_GetPersistentSegmentInfoRequest.Size(m) -} -func (m *GetPersistentSegmentInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetPersistentSegmentInfoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetPersistentSegmentInfoRequest proto.InternalMessageInfo - -func (m *GetPersistentSegmentInfoRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *GetPersistentSegmentInfoRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *GetPersistentSegmentInfoRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -type GetPersistentSegmentInfoResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Infos []*PersistentSegmentInfo `protobuf:"bytes,2,rep,name=infos,proto3" json:"infos,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetPersistentSegmentInfoResponse) Reset() { *m = GetPersistentSegmentInfoResponse{} } -func (m *GetPersistentSegmentInfoResponse) String() string { return proto.CompactTextString(m) } -func (*GetPersistentSegmentInfoResponse) ProtoMessage() {} -func (*GetPersistentSegmentInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{57} -} - -func (m *GetPersistentSegmentInfoResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetPersistentSegmentInfoResponse.Unmarshal(m, b) -} -func (m *GetPersistentSegmentInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetPersistentSegmentInfoResponse.Marshal(b, m, deterministic) -} -func (m *GetPersistentSegmentInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetPersistentSegmentInfoResponse.Merge(m, src) -} -func (m *GetPersistentSegmentInfoResponse) XXX_Size() int { - return xxx_messageInfo_GetPersistentSegmentInfoResponse.Size(m) -} -func (m *GetPersistentSegmentInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetPersistentSegmentInfoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetPersistentSegmentInfoResponse proto.InternalMessageInfo - -func (m *GetPersistentSegmentInfoResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetPersistentSegmentInfoResponse) GetInfos() []*PersistentSegmentInfo { - if m != nil { - return m.Infos - } - return nil -} - -type QuerySegmentInfo struct { - SegmentID int64 `protobuf:"varint,1,opt,name=segmentID,proto3" json:"segmentID,omitempty"` - CollectionID int64 `protobuf:"varint,2,opt,name=collectionID,proto3" json:"collectionID,omitempty"` - PartitionID int64 `protobuf:"varint,3,opt,name=partitionID,proto3" json:"partitionID,omitempty"` - MemSize int64 `protobuf:"varint,4,opt,name=mem_size,json=memSize,proto3" json:"mem_size,omitempty"` - NumRows int64 `protobuf:"varint,5,opt,name=num_rows,json=numRows,proto3" json:"num_rows,omitempty"` - IndexName string `protobuf:"bytes,6,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` - IndexID int64 `protobuf:"varint,7,opt,name=indexID,proto3" json:"indexID,omitempty"` - // deprecated, check node_ids(NodeIds) field - NodeID int64 `protobuf:"varint,8,opt,name=nodeID,proto3" json:"nodeID,omitempty"` - State commonpb.SegmentState `protobuf:"varint,9,opt,name=state,proto3,enum=milvus.proto.common.SegmentState" json:"state,omitempty"` - NodeIds []int64 `protobuf:"varint,10,rep,packed,name=nodeIds,proto3" json:"nodeIds,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *QuerySegmentInfo) Reset() { *m = QuerySegmentInfo{} } -func (m *QuerySegmentInfo) String() string { return proto.CompactTextString(m) } -func (*QuerySegmentInfo) ProtoMessage() {} -func (*QuerySegmentInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{58} -} - -func (m *QuerySegmentInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QuerySegmentInfo.Unmarshal(m, b) -} -func (m *QuerySegmentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QuerySegmentInfo.Marshal(b, m, deterministic) -} -func (m *QuerySegmentInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_QuerySegmentInfo.Merge(m, src) -} -func (m *QuerySegmentInfo) XXX_Size() int { - return xxx_messageInfo_QuerySegmentInfo.Size(m) -} -func (m *QuerySegmentInfo) XXX_DiscardUnknown() { - xxx_messageInfo_QuerySegmentInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_QuerySegmentInfo proto.InternalMessageInfo - -func (m *QuerySegmentInfo) GetSegmentID() int64 { - if m != nil { - return m.SegmentID - } - return 0 -} - -func (m *QuerySegmentInfo) GetCollectionID() int64 { - if m != nil { - return m.CollectionID - } - return 0 -} - -func (m *QuerySegmentInfo) GetPartitionID() int64 { - if m != nil { - return m.PartitionID - } - return 0 -} - -func (m *QuerySegmentInfo) GetMemSize() int64 { - if m != nil { - return m.MemSize - } - return 0 -} - -func (m *QuerySegmentInfo) GetNumRows() int64 { - if m != nil { - return m.NumRows - } - return 0 -} - -func (m *QuerySegmentInfo) GetIndexName() string { - if m != nil { - return m.IndexName - } - return "" -} - -func (m *QuerySegmentInfo) GetIndexID() int64 { - if m != nil { - return m.IndexID - } - return 0 -} - -func (m *QuerySegmentInfo) GetNodeID() int64 { - if m != nil { - return m.NodeID - } - return 0 -} - -func (m *QuerySegmentInfo) GetState() commonpb.SegmentState { - if m != nil { - return m.State - } - return commonpb.SegmentState_SegmentStateNone -} - -func (m *QuerySegmentInfo) GetNodeIds() []int64 { - if m != nil { - return m.NodeIds - } - return nil -} - -type GetQuerySegmentInfoRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - DbName string `protobuf:"bytes,2,opt,name=dbName,proto3" json:"dbName,omitempty"` - CollectionName string `protobuf:"bytes,3,opt,name=collectionName,proto3" json:"collectionName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetQuerySegmentInfoRequest) Reset() { *m = GetQuerySegmentInfoRequest{} } -func (m *GetQuerySegmentInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetQuerySegmentInfoRequest) ProtoMessage() {} -func (*GetQuerySegmentInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{59} -} - -func (m *GetQuerySegmentInfoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetQuerySegmentInfoRequest.Unmarshal(m, b) -} -func (m *GetQuerySegmentInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetQuerySegmentInfoRequest.Marshal(b, m, deterministic) -} -func (m *GetQuerySegmentInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetQuerySegmentInfoRequest.Merge(m, src) -} -func (m *GetQuerySegmentInfoRequest) XXX_Size() int { - return xxx_messageInfo_GetQuerySegmentInfoRequest.Size(m) -} -func (m *GetQuerySegmentInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetQuerySegmentInfoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetQuerySegmentInfoRequest proto.InternalMessageInfo - -func (m *GetQuerySegmentInfoRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *GetQuerySegmentInfoRequest) GetDbName() string { - if m != nil { - return m.DbName - } - return "" -} - -func (m *GetQuerySegmentInfoRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -type GetQuerySegmentInfoResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Infos []*QuerySegmentInfo `protobuf:"bytes,2,rep,name=infos,proto3" json:"infos,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetQuerySegmentInfoResponse) Reset() { *m = GetQuerySegmentInfoResponse{} } -func (m *GetQuerySegmentInfoResponse) String() string { return proto.CompactTextString(m) } -func (*GetQuerySegmentInfoResponse) ProtoMessage() {} -func (*GetQuerySegmentInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{60} -} - -func (m *GetQuerySegmentInfoResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetQuerySegmentInfoResponse.Unmarshal(m, b) -} -func (m *GetQuerySegmentInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetQuerySegmentInfoResponse.Marshal(b, m, deterministic) -} -func (m *GetQuerySegmentInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetQuerySegmentInfoResponse.Merge(m, src) -} -func (m *GetQuerySegmentInfoResponse) XXX_Size() int { - return xxx_messageInfo_GetQuerySegmentInfoResponse.Size(m) -} -func (m *GetQuerySegmentInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetQuerySegmentInfoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetQuerySegmentInfoResponse proto.InternalMessageInfo - -func (m *GetQuerySegmentInfoResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetQuerySegmentInfoResponse) GetInfos() []*QuerySegmentInfo { - if m != nil { - return m.Infos - } - return nil -} - -type DummyRequest struct { - RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DummyRequest) Reset() { *m = DummyRequest{} } -func (m *DummyRequest) String() string { return proto.CompactTextString(m) } -func (*DummyRequest) ProtoMessage() {} -func (*DummyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{61} -} - -func (m *DummyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DummyRequest.Unmarshal(m, b) -} -func (m *DummyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DummyRequest.Marshal(b, m, deterministic) -} -func (m *DummyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DummyRequest.Merge(m, src) -} -func (m *DummyRequest) XXX_Size() int { - return xxx_messageInfo_DummyRequest.Size(m) -} -func (m *DummyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DummyRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DummyRequest proto.InternalMessageInfo - -func (m *DummyRequest) GetRequestType() string { - if m != nil { - return m.RequestType - } - return "" -} - -type DummyResponse struct { - Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DummyResponse) Reset() { *m = DummyResponse{} } -func (m *DummyResponse) String() string { return proto.CompactTextString(m) } -func (*DummyResponse) ProtoMessage() {} -func (*DummyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{62} -} - -func (m *DummyResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DummyResponse.Unmarshal(m, b) -} -func (m *DummyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DummyResponse.Marshal(b, m, deterministic) -} -func (m *DummyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DummyResponse.Merge(m, src) -} -func (m *DummyResponse) XXX_Size() int { - return xxx_messageInfo_DummyResponse.Size(m) -} -func (m *DummyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DummyResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DummyResponse proto.InternalMessageInfo - -func (m *DummyResponse) GetResponse() string { - if m != nil { - return m.Response - } - return "" -} - -type RegisterLinkRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegisterLinkRequest) Reset() { *m = RegisterLinkRequest{} } -func (m *RegisterLinkRequest) String() string { return proto.CompactTextString(m) } -func (*RegisterLinkRequest) ProtoMessage() {} -func (*RegisterLinkRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{63} -} - -func (m *RegisterLinkRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RegisterLinkRequest.Unmarshal(m, b) -} -func (m *RegisterLinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RegisterLinkRequest.Marshal(b, m, deterministic) -} -func (m *RegisterLinkRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterLinkRequest.Merge(m, src) -} -func (m *RegisterLinkRequest) XXX_Size() int { - return xxx_messageInfo_RegisterLinkRequest.Size(m) -} -func (m *RegisterLinkRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterLinkRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RegisterLinkRequest proto.InternalMessageInfo - -type RegisterLinkResponse struct { - Address *commonpb.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Status *commonpb.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegisterLinkResponse) Reset() { *m = RegisterLinkResponse{} } -func (m *RegisterLinkResponse) String() string { return proto.CompactTextString(m) } -func (*RegisterLinkResponse) ProtoMessage() {} -func (*RegisterLinkResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{64} -} - -func (m *RegisterLinkResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RegisterLinkResponse.Unmarshal(m, b) -} -func (m *RegisterLinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RegisterLinkResponse.Marshal(b, m, deterministic) -} -func (m *RegisterLinkResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterLinkResponse.Merge(m, src) -} -func (m *RegisterLinkResponse) XXX_Size() int { - return xxx_messageInfo_RegisterLinkResponse.Size(m) -} -func (m *RegisterLinkResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterLinkResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RegisterLinkResponse proto.InternalMessageInfo - -func (m *RegisterLinkResponse) GetAddress() *commonpb.Address { - if m != nil { - return m.Address - } - return nil -} - -func (m *RegisterLinkResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -type GetMetricsRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - Request string `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetMetricsRequest) Reset() { *m = GetMetricsRequest{} } -func (m *GetMetricsRequest) String() string { return proto.CompactTextString(m) } -func (*GetMetricsRequest) ProtoMessage() {} -func (*GetMetricsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{65} -} - -func (m *GetMetricsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetMetricsRequest.Unmarshal(m, b) -} -func (m *GetMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetMetricsRequest.Marshal(b, m, deterministic) -} -func (m *GetMetricsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMetricsRequest.Merge(m, src) -} -func (m *GetMetricsRequest) XXX_Size() int { - return xxx_messageInfo_GetMetricsRequest.Size(m) -} -func (m *GetMetricsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetMetricsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetMetricsRequest proto.InternalMessageInfo - -func (m *GetMetricsRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *GetMetricsRequest) GetRequest() string { - if m != nil { - return m.Request - } - return "" -} - -type GetMetricsResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Response string `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` - ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetMetricsResponse) Reset() { *m = GetMetricsResponse{} } -func (m *GetMetricsResponse) String() string { return proto.CompactTextString(m) } -func (*GetMetricsResponse) ProtoMessage() {} -func (*GetMetricsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{66} -} - -func (m *GetMetricsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetMetricsResponse.Unmarshal(m, b) -} -func (m *GetMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetMetricsResponse.Marshal(b, m, deterministic) -} -func (m *GetMetricsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMetricsResponse.Merge(m, src) -} -func (m *GetMetricsResponse) XXX_Size() int { - return xxx_messageInfo_GetMetricsResponse.Size(m) -} -func (m *GetMetricsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetMetricsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetMetricsResponse proto.InternalMessageInfo - -func (m *GetMetricsResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetMetricsResponse) GetResponse() string { - if m != nil { - return m.Response - } - return "" -} - -func (m *GetMetricsResponse) GetComponentName() string { - if m != nil { - return m.ComponentName - } - return "" -} - -type ComponentInfo struct { - NodeID int64 `protobuf:"varint,1,opt,name=nodeID,proto3" json:"nodeID,omitempty"` - Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` - StateCode commonpb.StateCode `protobuf:"varint,3,opt,name=state_code,json=stateCode,proto3,enum=milvus.proto.common.StateCode" json:"state_code,omitempty"` - ExtraInfo []*commonpb.KeyValuePair `protobuf:"bytes,4,rep,name=extra_info,json=extraInfo,proto3" json:"extra_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ComponentInfo) Reset() { *m = ComponentInfo{} } -func (m *ComponentInfo) String() string { return proto.CompactTextString(m) } -func (*ComponentInfo) ProtoMessage() {} -func (*ComponentInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{67} -} - -func (m *ComponentInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ComponentInfo.Unmarshal(m, b) -} -func (m *ComponentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ComponentInfo.Marshal(b, m, deterministic) -} -func (m *ComponentInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ComponentInfo.Merge(m, src) -} -func (m *ComponentInfo) XXX_Size() int { - return xxx_messageInfo_ComponentInfo.Size(m) -} -func (m *ComponentInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ComponentInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_ComponentInfo proto.InternalMessageInfo - -func (m *ComponentInfo) GetNodeID() int64 { - if m != nil { - return m.NodeID - } - return 0 -} - -func (m *ComponentInfo) GetRole() string { - if m != nil { - return m.Role - } - return "" -} - -func (m *ComponentInfo) GetStateCode() commonpb.StateCode { - if m != nil { - return m.StateCode - } - return commonpb.StateCode_Initializing -} - -func (m *ComponentInfo) GetExtraInfo() []*commonpb.KeyValuePair { - if m != nil { - return m.ExtraInfo - } - return nil -} - -type ComponentStates struct { - State *ComponentInfo `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` - SubcomponentStates []*ComponentInfo `protobuf:"bytes,2,rep,name=subcomponent_states,json=subcomponentStates,proto3" json:"subcomponent_states,omitempty"` - Status *commonpb.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ComponentStates) Reset() { *m = ComponentStates{} } -func (m *ComponentStates) String() string { return proto.CompactTextString(m) } -func (*ComponentStates) ProtoMessage() {} -func (*ComponentStates) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{68} -} - -func (m *ComponentStates) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ComponentStates.Unmarshal(m, b) -} -func (m *ComponentStates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ComponentStates.Marshal(b, m, deterministic) -} -func (m *ComponentStates) XXX_Merge(src proto.Message) { - xxx_messageInfo_ComponentStates.Merge(m, src) -} -func (m *ComponentStates) XXX_Size() int { - return xxx_messageInfo_ComponentStates.Size(m) -} -func (m *ComponentStates) XXX_DiscardUnknown() { - xxx_messageInfo_ComponentStates.DiscardUnknown(m) -} - -var xxx_messageInfo_ComponentStates proto.InternalMessageInfo - -func (m *ComponentStates) GetState() *ComponentInfo { - if m != nil { - return m.State - } - return nil -} - -func (m *ComponentStates) GetSubcomponentStates() []*ComponentInfo { - if m != nil { - return m.SubcomponentStates - } - return nil -} - -func (m *ComponentStates) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -type GetComponentStatesRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetComponentStatesRequest) Reset() { *m = GetComponentStatesRequest{} } -func (m *GetComponentStatesRequest) String() string { return proto.CompactTextString(m) } -func (*GetComponentStatesRequest) ProtoMessage() {} -func (*GetComponentStatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{69} -} - -func (m *GetComponentStatesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetComponentStatesRequest.Unmarshal(m, b) -} -func (m *GetComponentStatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetComponentStatesRequest.Marshal(b, m, deterministic) -} -func (m *GetComponentStatesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetComponentStatesRequest.Merge(m, src) -} -func (m *GetComponentStatesRequest) XXX_Size() int { - return xxx_messageInfo_GetComponentStatesRequest.Size(m) -} -func (m *GetComponentStatesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetComponentStatesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetComponentStatesRequest proto.InternalMessageInfo - -// -// Do load balancing operation from src_nodeID to dst_nodeID. -type LoadBalanceRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - SrcNodeID int64 `protobuf:"varint,2,opt,name=src_nodeID,json=srcNodeID,proto3" json:"src_nodeID,omitempty"` - DstNodeIDs []int64 `protobuf:"varint,3,rep,packed,name=dst_nodeIDs,json=dstNodeIDs,proto3" json:"dst_nodeIDs,omitempty"` - SealedSegmentIDs []int64 `protobuf:"varint,4,rep,packed,name=sealed_segmentIDs,json=sealedSegmentIDs,proto3" json:"sealed_segmentIDs,omitempty"` - CollectionName string `protobuf:"bytes,5,opt,name=collectionName,proto3" json:"collectionName,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoadBalanceRequest) Reset() { *m = LoadBalanceRequest{} } -func (m *LoadBalanceRequest) String() string { return proto.CompactTextString(m) } -func (*LoadBalanceRequest) ProtoMessage() {} -func (*LoadBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{70} -} - -func (m *LoadBalanceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadBalanceRequest.Unmarshal(m, b) -} -func (m *LoadBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadBalanceRequest.Marshal(b, m, deterministic) -} -func (m *LoadBalanceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadBalanceRequest.Merge(m, src) -} -func (m *LoadBalanceRequest) XXX_Size() int { - return xxx_messageInfo_LoadBalanceRequest.Size(m) -} -func (m *LoadBalanceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoadBalanceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_LoadBalanceRequest proto.InternalMessageInfo - -func (m *LoadBalanceRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *LoadBalanceRequest) GetSrcNodeID() int64 { - if m != nil { - return m.SrcNodeID - } - return 0 -} - -func (m *LoadBalanceRequest) GetDstNodeIDs() []int64 { - if m != nil { - return m.DstNodeIDs - } - return nil -} - -func (m *LoadBalanceRequest) GetSealedSegmentIDs() []int64 { - if m != nil { - return m.SealedSegmentIDs - } - return nil -} - -func (m *LoadBalanceRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -type ManualCompactionRequest struct { - CollectionID int64 `protobuf:"varint,1,opt,name=collectionID,proto3" json:"collectionID,omitempty"` - Timetravel uint64 `protobuf:"varint,2,opt,name=timetravel,proto3" json:"timetravel,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ManualCompactionRequest) Reset() { *m = ManualCompactionRequest{} } -func (m *ManualCompactionRequest) String() string { return proto.CompactTextString(m) } -func (*ManualCompactionRequest) ProtoMessage() {} -func (*ManualCompactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{71} -} - -func (m *ManualCompactionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ManualCompactionRequest.Unmarshal(m, b) -} -func (m *ManualCompactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ManualCompactionRequest.Marshal(b, m, deterministic) -} -func (m *ManualCompactionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ManualCompactionRequest.Merge(m, src) -} -func (m *ManualCompactionRequest) XXX_Size() int { - return xxx_messageInfo_ManualCompactionRequest.Size(m) -} -func (m *ManualCompactionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ManualCompactionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ManualCompactionRequest proto.InternalMessageInfo - -func (m *ManualCompactionRequest) GetCollectionID() int64 { - if m != nil { - return m.CollectionID - } - return 0 -} - -func (m *ManualCompactionRequest) GetTimetravel() uint64 { - if m != nil { - return m.Timetravel - } - return 0 -} - -type ManualCompactionResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - CompactionID int64 `protobuf:"varint,2,opt,name=compactionID,proto3" json:"compactionID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ManualCompactionResponse) Reset() { *m = ManualCompactionResponse{} } -func (m *ManualCompactionResponse) String() string { return proto.CompactTextString(m) } -func (*ManualCompactionResponse) ProtoMessage() {} -func (*ManualCompactionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{72} -} - -func (m *ManualCompactionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ManualCompactionResponse.Unmarshal(m, b) -} -func (m *ManualCompactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ManualCompactionResponse.Marshal(b, m, deterministic) -} -func (m *ManualCompactionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ManualCompactionResponse.Merge(m, src) -} -func (m *ManualCompactionResponse) XXX_Size() int { - return xxx_messageInfo_ManualCompactionResponse.Size(m) -} -func (m *ManualCompactionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ManualCompactionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ManualCompactionResponse proto.InternalMessageInfo - -func (m *ManualCompactionResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *ManualCompactionResponse) GetCompactionID() int64 { - if m != nil { - return m.CompactionID - } - return 0 -} - -type GetCompactionStateRequest struct { - CompactionID int64 `protobuf:"varint,1,opt,name=compactionID,proto3" json:"compactionID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetCompactionStateRequest) Reset() { *m = GetCompactionStateRequest{} } -func (m *GetCompactionStateRequest) String() string { return proto.CompactTextString(m) } -func (*GetCompactionStateRequest) ProtoMessage() {} -func (*GetCompactionStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{73} -} - -func (m *GetCompactionStateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCompactionStateRequest.Unmarshal(m, b) -} -func (m *GetCompactionStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCompactionStateRequest.Marshal(b, m, deterministic) -} -func (m *GetCompactionStateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCompactionStateRequest.Merge(m, src) -} -func (m *GetCompactionStateRequest) XXX_Size() int { - return xxx_messageInfo_GetCompactionStateRequest.Size(m) -} -func (m *GetCompactionStateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetCompactionStateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCompactionStateRequest proto.InternalMessageInfo - -func (m *GetCompactionStateRequest) GetCompactionID() int64 { - if m != nil { - return m.CompactionID - } - return 0 -} - -type GetCompactionStateResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - State commonpb.CompactionState `protobuf:"varint,2,opt,name=state,proto3,enum=milvus.proto.common.CompactionState" json:"state,omitempty"` - ExecutingPlanNo int64 `protobuf:"varint,3,opt,name=executingPlanNo,proto3" json:"executingPlanNo,omitempty"` - TimeoutPlanNo int64 `protobuf:"varint,4,opt,name=timeoutPlanNo,proto3" json:"timeoutPlanNo,omitempty"` - CompletedPlanNo int64 `protobuf:"varint,5,opt,name=completedPlanNo,proto3" json:"completedPlanNo,omitempty"` - FailedPlanNo int64 `protobuf:"varint,6,opt,name=failedPlanNo,proto3" json:"failedPlanNo,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetCompactionStateResponse) Reset() { *m = GetCompactionStateResponse{} } -func (m *GetCompactionStateResponse) String() string { return proto.CompactTextString(m) } -func (*GetCompactionStateResponse) ProtoMessage() {} -func (*GetCompactionStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{74} -} - -func (m *GetCompactionStateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCompactionStateResponse.Unmarshal(m, b) -} -func (m *GetCompactionStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCompactionStateResponse.Marshal(b, m, deterministic) -} -func (m *GetCompactionStateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCompactionStateResponse.Merge(m, src) -} -func (m *GetCompactionStateResponse) XXX_Size() int { - return xxx_messageInfo_GetCompactionStateResponse.Size(m) -} -func (m *GetCompactionStateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetCompactionStateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCompactionStateResponse proto.InternalMessageInfo - -func (m *GetCompactionStateResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetCompactionStateResponse) GetState() commonpb.CompactionState { - if m != nil { - return m.State - } - return commonpb.CompactionState_UndefiedState -} - -func (m *GetCompactionStateResponse) GetExecutingPlanNo() int64 { - if m != nil { - return m.ExecutingPlanNo - } - return 0 -} - -func (m *GetCompactionStateResponse) GetTimeoutPlanNo() int64 { - if m != nil { - return m.TimeoutPlanNo - } - return 0 -} - -func (m *GetCompactionStateResponse) GetCompletedPlanNo() int64 { - if m != nil { - return m.CompletedPlanNo - } - return 0 -} - -func (m *GetCompactionStateResponse) GetFailedPlanNo() int64 { - if m != nil { - return m.FailedPlanNo - } - return 0 -} - -type GetCompactionPlansRequest struct { - CompactionID int64 `protobuf:"varint,1,opt,name=compactionID,proto3" json:"compactionID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetCompactionPlansRequest) Reset() { *m = GetCompactionPlansRequest{} } -func (m *GetCompactionPlansRequest) String() string { return proto.CompactTextString(m) } -func (*GetCompactionPlansRequest) ProtoMessage() {} -func (*GetCompactionPlansRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{75} -} - -func (m *GetCompactionPlansRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCompactionPlansRequest.Unmarshal(m, b) -} -func (m *GetCompactionPlansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCompactionPlansRequest.Marshal(b, m, deterministic) -} -func (m *GetCompactionPlansRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCompactionPlansRequest.Merge(m, src) -} -func (m *GetCompactionPlansRequest) XXX_Size() int { - return xxx_messageInfo_GetCompactionPlansRequest.Size(m) -} -func (m *GetCompactionPlansRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetCompactionPlansRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCompactionPlansRequest proto.InternalMessageInfo - -func (m *GetCompactionPlansRequest) GetCompactionID() int64 { - if m != nil { - return m.CompactionID - } - return 0 -} - -type GetCompactionPlansResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - State commonpb.CompactionState `protobuf:"varint,2,opt,name=state,proto3,enum=milvus.proto.common.CompactionState" json:"state,omitempty"` - MergeInfos []*CompactionMergeInfo `protobuf:"bytes,3,rep,name=mergeInfos,proto3" json:"mergeInfos,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetCompactionPlansResponse) Reset() { *m = GetCompactionPlansResponse{} } -func (m *GetCompactionPlansResponse) String() string { return proto.CompactTextString(m) } -func (*GetCompactionPlansResponse) ProtoMessage() {} -func (*GetCompactionPlansResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{76} -} - -func (m *GetCompactionPlansResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCompactionPlansResponse.Unmarshal(m, b) -} -func (m *GetCompactionPlansResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCompactionPlansResponse.Marshal(b, m, deterministic) -} -func (m *GetCompactionPlansResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCompactionPlansResponse.Merge(m, src) -} -func (m *GetCompactionPlansResponse) XXX_Size() int { - return xxx_messageInfo_GetCompactionPlansResponse.Size(m) -} -func (m *GetCompactionPlansResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetCompactionPlansResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCompactionPlansResponse proto.InternalMessageInfo - -func (m *GetCompactionPlansResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetCompactionPlansResponse) GetState() commonpb.CompactionState { - if m != nil { - return m.State - } - return commonpb.CompactionState_UndefiedState -} - -func (m *GetCompactionPlansResponse) GetMergeInfos() []*CompactionMergeInfo { - if m != nil { - return m.MergeInfos - } - return nil -} - -type CompactionMergeInfo struct { - Sources []int64 `protobuf:"varint,1,rep,packed,name=sources,proto3" json:"sources,omitempty"` - Target int64 `protobuf:"varint,2,opt,name=target,proto3" json:"target,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompactionMergeInfo) Reset() { *m = CompactionMergeInfo{} } -func (m *CompactionMergeInfo) String() string { return proto.CompactTextString(m) } -func (*CompactionMergeInfo) ProtoMessage() {} -func (*CompactionMergeInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{77} -} - -func (m *CompactionMergeInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CompactionMergeInfo.Unmarshal(m, b) -} -func (m *CompactionMergeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CompactionMergeInfo.Marshal(b, m, deterministic) -} -func (m *CompactionMergeInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactionMergeInfo.Merge(m, src) -} -func (m *CompactionMergeInfo) XXX_Size() int { - return xxx_messageInfo_CompactionMergeInfo.Size(m) -} -func (m *CompactionMergeInfo) XXX_DiscardUnknown() { - xxx_messageInfo_CompactionMergeInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_CompactionMergeInfo proto.InternalMessageInfo - -func (m *CompactionMergeInfo) GetSources() []int64 { - if m != nil { - return m.Sources - } - return nil -} - -func (m *CompactionMergeInfo) GetTarget() int64 { - if m != nil { - return m.Target - } - return 0 -} - -type GetFlushStateRequest struct { - SegmentIDs []int64 `protobuf:"varint,1,rep,packed,name=segmentIDs,proto3" json:"segmentIDs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetFlushStateRequest) Reset() { *m = GetFlushStateRequest{} } -func (m *GetFlushStateRequest) String() string { return proto.CompactTextString(m) } -func (*GetFlushStateRequest) ProtoMessage() {} -func (*GetFlushStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{78} -} - -func (m *GetFlushStateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetFlushStateRequest.Unmarshal(m, b) -} -func (m *GetFlushStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetFlushStateRequest.Marshal(b, m, deterministic) -} -func (m *GetFlushStateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetFlushStateRequest.Merge(m, src) -} -func (m *GetFlushStateRequest) XXX_Size() int { - return xxx_messageInfo_GetFlushStateRequest.Size(m) -} -func (m *GetFlushStateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetFlushStateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetFlushStateRequest proto.InternalMessageInfo - -func (m *GetFlushStateRequest) GetSegmentIDs() []int64 { - if m != nil { - return m.SegmentIDs - } - return nil -} - -type GetFlushStateResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Flushed bool `protobuf:"varint,2,opt,name=flushed,proto3" json:"flushed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetFlushStateResponse) Reset() { *m = GetFlushStateResponse{} } -func (m *GetFlushStateResponse) String() string { return proto.CompactTextString(m) } -func (*GetFlushStateResponse) ProtoMessage() {} -func (*GetFlushStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{79} -} - -func (m *GetFlushStateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetFlushStateResponse.Unmarshal(m, b) -} -func (m *GetFlushStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetFlushStateResponse.Marshal(b, m, deterministic) -} -func (m *GetFlushStateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetFlushStateResponse.Merge(m, src) -} -func (m *GetFlushStateResponse) XXX_Size() int { - return xxx_messageInfo_GetFlushStateResponse.Size(m) -} -func (m *GetFlushStateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetFlushStateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetFlushStateResponse proto.InternalMessageInfo - -func (m *GetFlushStateResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetFlushStateResponse) GetFlushed() bool { - if m != nil { - return m.Flushed - } - return false -} - -type ImportRequest struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - PartitionName string `protobuf:"bytes,2,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"` - ChannelNames []string `protobuf:"bytes,3,rep,name=channel_names,json=channelNames,proto3" json:"channel_names,omitempty"` - RowBased bool `protobuf:"varint,4,opt,name=row_based,json=rowBased,proto3" json:"row_based,omitempty"` - Files []string `protobuf:"bytes,5,rep,name=files,proto3" json:"files,omitempty"` - Options []*commonpb.KeyValuePair `protobuf:"bytes,6,rep,name=options,proto3" json:"options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ImportRequest) Reset() { *m = ImportRequest{} } -func (m *ImportRequest) String() string { return proto.CompactTextString(m) } -func (*ImportRequest) ProtoMessage() {} -func (*ImportRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{80} -} - -func (m *ImportRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ImportRequest.Unmarshal(m, b) -} -func (m *ImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ImportRequest.Marshal(b, m, deterministic) -} -func (m *ImportRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImportRequest.Merge(m, src) -} -func (m *ImportRequest) XXX_Size() int { - return xxx_messageInfo_ImportRequest.Size(m) -} -func (m *ImportRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ImportRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ImportRequest proto.InternalMessageInfo - -func (m *ImportRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *ImportRequest) GetPartitionName() string { - if m != nil { - return m.PartitionName - } - return "" -} - -func (m *ImportRequest) GetChannelNames() []string { - if m != nil { - return m.ChannelNames - } - return nil -} - -func (m *ImportRequest) GetRowBased() bool { - if m != nil { - return m.RowBased - } - return false -} - -func (m *ImportRequest) GetFiles() []string { - if m != nil { - return m.Files - } - return nil -} - -func (m *ImportRequest) GetOptions() []*commonpb.KeyValuePair { - if m != nil { - return m.Options - } - return nil -} - -type ImportResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Tasks []int64 `protobuf:"varint,2,rep,packed,name=tasks,proto3" json:"tasks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ImportResponse) Reset() { *m = ImportResponse{} } -func (m *ImportResponse) String() string { return proto.CompactTextString(m) } -func (*ImportResponse) ProtoMessage() {} -func (*ImportResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{81} -} - -func (m *ImportResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ImportResponse.Unmarshal(m, b) -} -func (m *ImportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ImportResponse.Marshal(b, m, deterministic) -} -func (m *ImportResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImportResponse.Merge(m, src) -} -func (m *ImportResponse) XXX_Size() int { - return xxx_messageInfo_ImportResponse.Size(m) -} -func (m *ImportResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ImportResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ImportResponse proto.InternalMessageInfo - -func (m *ImportResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *ImportResponse) GetTasks() []int64 { - if m != nil { - return m.Tasks - } - return nil -} - -type GetImportStateRequest struct { - Task int64 `protobuf:"varint,1,opt,name=task,proto3" json:"task,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetImportStateRequest) Reset() { *m = GetImportStateRequest{} } -func (m *GetImportStateRequest) String() string { return proto.CompactTextString(m) } -func (*GetImportStateRequest) ProtoMessage() {} -func (*GetImportStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{82} -} - -func (m *GetImportStateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetImportStateRequest.Unmarshal(m, b) -} -func (m *GetImportStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetImportStateRequest.Marshal(b, m, deterministic) -} -func (m *GetImportStateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetImportStateRequest.Merge(m, src) -} -func (m *GetImportStateRequest) XXX_Size() int { - return xxx_messageInfo_GetImportStateRequest.Size(m) -} -func (m *GetImportStateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetImportStateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetImportStateRequest proto.InternalMessageInfo - -func (m *GetImportStateRequest) GetTask() int64 { - if m != nil { - return m.Task - } - return 0 -} - -type GetImportStateResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - State commonpb.ImportState `protobuf:"varint,2,opt,name=state,proto3,enum=milvus.proto.common.ImportState" json:"state,omitempty"` - RowCount int64 `protobuf:"varint,3,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"` - IdList []int64 `protobuf:"varint,4,rep,packed,name=id_list,json=idList,proto3" json:"id_list,omitempty"` - Infos []*commonpb.KeyValuePair `protobuf:"bytes,5,rep,name=infos,proto3" json:"infos,omitempty"` - Id int64 `protobuf:"varint,6,opt,name=id,proto3" json:"id,omitempty"` - CollectionId int64 `protobuf:"varint,7,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` - SegmentIds []int64 `protobuf:"varint,8,rep,packed,name=segment_ids,json=segmentIds,proto3" json:"segment_ids,omitempty"` - CreateTs int64 `protobuf:"varint,9,opt,name=create_ts,json=createTs,proto3" json:"create_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetImportStateResponse) Reset() { *m = GetImportStateResponse{} } -func (m *GetImportStateResponse) String() string { return proto.CompactTextString(m) } -func (*GetImportStateResponse) ProtoMessage() {} -func (*GetImportStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{83} -} - -func (m *GetImportStateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetImportStateResponse.Unmarshal(m, b) -} -func (m *GetImportStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetImportStateResponse.Marshal(b, m, deterministic) -} -func (m *GetImportStateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetImportStateResponse.Merge(m, src) -} -func (m *GetImportStateResponse) XXX_Size() int { - return xxx_messageInfo_GetImportStateResponse.Size(m) -} -func (m *GetImportStateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetImportStateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetImportStateResponse proto.InternalMessageInfo - -func (m *GetImportStateResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetImportStateResponse) GetState() commonpb.ImportState { - if m != nil { - return m.State - } - return commonpb.ImportState_ImportPending -} - -func (m *GetImportStateResponse) GetRowCount() int64 { - if m != nil { - return m.RowCount - } - return 0 -} - -func (m *GetImportStateResponse) GetIdList() []int64 { - if m != nil { - return m.IdList - } - return nil -} - -func (m *GetImportStateResponse) GetInfos() []*commonpb.KeyValuePair { - if m != nil { - return m.Infos - } - return nil -} - -func (m *GetImportStateResponse) GetId() int64 { - if m != nil { - return m.Id - } - return 0 -} - -func (m *GetImportStateResponse) GetCollectionId() int64 { - if m != nil { - return m.CollectionId - } - return 0 -} - -func (m *GetImportStateResponse) GetSegmentIds() []int64 { - if m != nil { - return m.SegmentIds - } - return nil -} - -func (m *GetImportStateResponse) GetCreateTs() int64 { - if m != nil { - return m.CreateTs - } - return 0 -} - -type ListImportTasksRequest struct { - CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListImportTasksRequest) Reset() { *m = ListImportTasksRequest{} } -func (m *ListImportTasksRequest) String() string { return proto.CompactTextString(m) } -func (*ListImportTasksRequest) ProtoMessage() {} -func (*ListImportTasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{84} -} - -func (m *ListImportTasksRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListImportTasksRequest.Unmarshal(m, b) -} -func (m *ListImportTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListImportTasksRequest.Marshal(b, m, deterministic) -} -func (m *ListImportTasksRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListImportTasksRequest.Merge(m, src) -} -func (m *ListImportTasksRequest) XXX_Size() int { - return xxx_messageInfo_ListImportTasksRequest.Size(m) -} -func (m *ListImportTasksRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListImportTasksRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListImportTasksRequest proto.InternalMessageInfo - -func (m *ListImportTasksRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *ListImportTasksRequest) GetLimit() int64 { - if m != nil { - return m.Limit - } - return 0 -} - -type ListImportTasksResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Tasks []*GetImportStateResponse `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListImportTasksResponse) Reset() { *m = ListImportTasksResponse{} } -func (m *ListImportTasksResponse) String() string { return proto.CompactTextString(m) } -func (*ListImportTasksResponse) ProtoMessage() {} -func (*ListImportTasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{85} -} - -func (m *ListImportTasksResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListImportTasksResponse.Unmarshal(m, b) -} -func (m *ListImportTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListImportTasksResponse.Marshal(b, m, deterministic) -} -func (m *ListImportTasksResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListImportTasksResponse.Merge(m, src) -} -func (m *ListImportTasksResponse) XXX_Size() int { - return xxx_messageInfo_ListImportTasksResponse.Size(m) -} -func (m *ListImportTasksResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListImportTasksResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListImportTasksResponse proto.InternalMessageInfo - -func (m *ListImportTasksResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *ListImportTasksResponse) GetTasks() []*GetImportStateResponse { - if m != nil { - return m.Tasks - } - return nil -} - -type GetReplicasRequest struct { - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - CollectionID int64 `protobuf:"varint,2,opt,name=collectionID,proto3" json:"collectionID,omitempty"` - WithShardNodes bool `protobuf:"varint,3,opt,name=with_shard_nodes,json=withShardNodes,proto3" json:"with_shard_nodes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetReplicasRequest) Reset() { *m = GetReplicasRequest{} } -func (m *GetReplicasRequest) String() string { return proto.CompactTextString(m) } -func (*GetReplicasRequest) ProtoMessage() {} -func (*GetReplicasRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{86} -} - -func (m *GetReplicasRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetReplicasRequest.Unmarshal(m, b) -} -func (m *GetReplicasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetReplicasRequest.Marshal(b, m, deterministic) -} -func (m *GetReplicasRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetReplicasRequest.Merge(m, src) -} -func (m *GetReplicasRequest) XXX_Size() int { - return xxx_messageInfo_GetReplicasRequest.Size(m) -} -func (m *GetReplicasRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetReplicasRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetReplicasRequest proto.InternalMessageInfo - -func (m *GetReplicasRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *GetReplicasRequest) GetCollectionID() int64 { - if m != nil { - return m.CollectionID - } - return 0 -} - -func (m *GetReplicasRequest) GetWithShardNodes() bool { - if m != nil { - return m.WithShardNodes - } - return false -} - -type GetReplicasResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Replicas []*ReplicaInfo `protobuf:"bytes,2,rep,name=replicas,proto3" json:"replicas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetReplicasResponse) Reset() { *m = GetReplicasResponse{} } -func (m *GetReplicasResponse) String() string { return proto.CompactTextString(m) } -func (*GetReplicasResponse) ProtoMessage() {} -func (*GetReplicasResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{87} -} - -func (m *GetReplicasResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetReplicasResponse.Unmarshal(m, b) -} -func (m *GetReplicasResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetReplicasResponse.Marshal(b, m, deterministic) -} -func (m *GetReplicasResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetReplicasResponse.Merge(m, src) -} -func (m *GetReplicasResponse) XXX_Size() int { - return xxx_messageInfo_GetReplicasResponse.Size(m) -} -func (m *GetReplicasResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetReplicasResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetReplicasResponse proto.InternalMessageInfo - -func (m *GetReplicasResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetReplicasResponse) GetReplicas() []*ReplicaInfo { - if m != nil { - return m.Replicas - } - return nil -} - -type ReplicaInfo struct { - ReplicaID int64 `protobuf:"varint,1,opt,name=replicaID,proto3" json:"replicaID,omitempty"` - CollectionID int64 `protobuf:"varint,2,opt,name=collectionID,proto3" json:"collectionID,omitempty"` - PartitionIds []int64 `protobuf:"varint,3,rep,packed,name=partition_ids,json=partitionIds,proto3" json:"partition_ids,omitempty"` - ShardReplicas []*ShardReplica `protobuf:"bytes,4,rep,name=shard_replicas,json=shardReplicas,proto3" json:"shard_replicas,omitempty"` - NodeIds []int64 `protobuf:"varint,5,rep,packed,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReplicaInfo) Reset() { *m = ReplicaInfo{} } -func (m *ReplicaInfo) String() string { return proto.CompactTextString(m) } -func (*ReplicaInfo) ProtoMessage() {} -func (*ReplicaInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{88} -} - -func (m *ReplicaInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReplicaInfo.Unmarshal(m, b) -} -func (m *ReplicaInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReplicaInfo.Marshal(b, m, deterministic) -} -func (m *ReplicaInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaInfo.Merge(m, src) -} -func (m *ReplicaInfo) XXX_Size() int { - return xxx_messageInfo_ReplicaInfo.Size(m) -} -func (m *ReplicaInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaInfo proto.InternalMessageInfo - -func (m *ReplicaInfo) GetReplicaID() int64 { - if m != nil { - return m.ReplicaID - } - return 0 -} - -func (m *ReplicaInfo) GetCollectionID() int64 { - if m != nil { - return m.CollectionID - } - return 0 -} - -func (m *ReplicaInfo) GetPartitionIds() []int64 { - if m != nil { - return m.PartitionIds - } - return nil -} - -func (m *ReplicaInfo) GetShardReplicas() []*ShardReplica { - if m != nil { - return m.ShardReplicas - } - return nil -} - -func (m *ReplicaInfo) GetNodeIds() []int64 { - if m != nil { - return m.NodeIds - } - return nil -} - -type ShardReplica struct { - LeaderID int64 `protobuf:"varint,1,opt,name=leaderID,proto3" json:"leaderID,omitempty"` - LeaderAddr string `protobuf:"bytes,2,opt,name=leader_addr,json=leaderAddr,proto3" json:"leader_addr,omitempty"` - DmChannelName string `protobuf:"bytes,3,opt,name=dm_channel_name,json=dmChannelName,proto3" json:"dm_channel_name,omitempty"` - // optional, DO NOT save it in meta, set it only for GetReplicas() - // if with_shard_nodes is true - NodeIds []int64 `protobuf:"varint,4,rep,packed,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ShardReplica) Reset() { *m = ShardReplica{} } -func (m *ShardReplica) String() string { return proto.CompactTextString(m) } -func (*ShardReplica) ProtoMessage() {} -func (*ShardReplica) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{89} -} - -func (m *ShardReplica) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ShardReplica.Unmarshal(m, b) -} -func (m *ShardReplica) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ShardReplica.Marshal(b, m, deterministic) -} -func (m *ShardReplica) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShardReplica.Merge(m, src) -} -func (m *ShardReplica) XXX_Size() int { - return xxx_messageInfo_ShardReplica.Size(m) -} -func (m *ShardReplica) XXX_DiscardUnknown() { - xxx_messageInfo_ShardReplica.DiscardUnknown(m) -} - -var xxx_messageInfo_ShardReplica proto.InternalMessageInfo - -func (m *ShardReplica) GetLeaderID() int64 { - if m != nil { - return m.LeaderID - } - return 0 -} - -func (m *ShardReplica) GetLeaderAddr() string { - if m != nil { - return m.LeaderAddr - } - return "" -} - -func (m *ShardReplica) GetDmChannelName() string { - if m != nil { - return m.DmChannelName - } - return "" -} - -func (m *ShardReplica) GetNodeIds() []int64 { - if m != nil { - return m.NodeIds - } - return nil -} - -type CreateCredentialRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // username - Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` - // ciphertext password - Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` - // create time - CreatedUtcTimestamps uint64 `protobuf:"varint,4,opt,name=created_utc_timestamps,json=createdUtcTimestamps,proto3" json:"created_utc_timestamps,omitempty"` - // modify time - ModifiedUtcTimestamps uint64 `protobuf:"varint,5,opt,name=modified_utc_timestamps,json=modifiedUtcTimestamps,proto3" json:"modified_utc_timestamps,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateCredentialRequest) Reset() { *m = CreateCredentialRequest{} } -func (m *CreateCredentialRequest) String() string { return proto.CompactTextString(m) } -func (*CreateCredentialRequest) ProtoMessage() {} -func (*CreateCredentialRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{90} -} - -func (m *CreateCredentialRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateCredentialRequest.Unmarshal(m, b) -} -func (m *CreateCredentialRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateCredentialRequest.Marshal(b, m, deterministic) -} -func (m *CreateCredentialRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateCredentialRequest.Merge(m, src) -} -func (m *CreateCredentialRequest) XXX_Size() int { - return xxx_messageInfo_CreateCredentialRequest.Size(m) -} -func (m *CreateCredentialRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateCredentialRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateCredentialRequest proto.InternalMessageInfo - -func (m *CreateCredentialRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *CreateCredentialRequest) GetUsername() string { - if m != nil { - return m.Username - } - return "" -} - -func (m *CreateCredentialRequest) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -func (m *CreateCredentialRequest) GetCreatedUtcTimestamps() uint64 { - if m != nil { - return m.CreatedUtcTimestamps - } - return 0 -} - -func (m *CreateCredentialRequest) GetModifiedUtcTimestamps() uint64 { - if m != nil { - return m.ModifiedUtcTimestamps - } - return 0 -} - -type UpdateCredentialRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // username - Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` - // old password - OldPassword string `protobuf:"bytes,3,opt,name=oldPassword,proto3" json:"oldPassword,omitempty"` - // new password - NewPassword string `protobuf:"bytes,4,opt,name=newPassword,proto3" json:"newPassword,omitempty"` - // create time - CreatedUtcTimestamps uint64 `protobuf:"varint,5,opt,name=created_utc_timestamps,json=createdUtcTimestamps,proto3" json:"created_utc_timestamps,omitempty"` - // modify time - ModifiedUtcTimestamps uint64 `protobuf:"varint,6,opt,name=modified_utc_timestamps,json=modifiedUtcTimestamps,proto3" json:"modified_utc_timestamps,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateCredentialRequest) Reset() { *m = UpdateCredentialRequest{} } -func (m *UpdateCredentialRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateCredentialRequest) ProtoMessage() {} -func (*UpdateCredentialRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{91} -} - -func (m *UpdateCredentialRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateCredentialRequest.Unmarshal(m, b) -} -func (m *UpdateCredentialRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateCredentialRequest.Marshal(b, m, deterministic) -} -func (m *UpdateCredentialRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateCredentialRequest.Merge(m, src) -} -func (m *UpdateCredentialRequest) XXX_Size() int { - return xxx_messageInfo_UpdateCredentialRequest.Size(m) -} -func (m *UpdateCredentialRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateCredentialRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateCredentialRequest proto.InternalMessageInfo - -func (m *UpdateCredentialRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *UpdateCredentialRequest) GetUsername() string { - if m != nil { - return m.Username - } - return "" -} - -func (m *UpdateCredentialRequest) GetOldPassword() string { - if m != nil { - return m.OldPassword - } - return "" -} - -func (m *UpdateCredentialRequest) GetNewPassword() string { - if m != nil { - return m.NewPassword - } - return "" -} - -func (m *UpdateCredentialRequest) GetCreatedUtcTimestamps() uint64 { - if m != nil { - return m.CreatedUtcTimestamps - } - return 0 -} - -func (m *UpdateCredentialRequest) GetModifiedUtcTimestamps() uint64 { - if m != nil { - return m.ModifiedUtcTimestamps - } - return 0 -} - -type DeleteCredentialRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Not useful for now - Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteCredentialRequest) Reset() { *m = DeleteCredentialRequest{} } -func (m *DeleteCredentialRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteCredentialRequest) ProtoMessage() {} -func (*DeleteCredentialRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{92} -} - -func (m *DeleteCredentialRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteCredentialRequest.Unmarshal(m, b) -} -func (m *DeleteCredentialRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteCredentialRequest.Marshal(b, m, deterministic) -} -func (m *DeleteCredentialRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteCredentialRequest.Merge(m, src) -} -func (m *DeleteCredentialRequest) XXX_Size() int { - return xxx_messageInfo_DeleteCredentialRequest.Size(m) -} -func (m *DeleteCredentialRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteCredentialRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteCredentialRequest proto.InternalMessageInfo - -func (m *DeleteCredentialRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *DeleteCredentialRequest) GetUsername() string { - if m != nil { - return m.Username - } - return "" -} - -type ListCredUsersResponse struct { - // Contain error_code and reason - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // username array - Usernames []string `protobuf:"bytes,2,rep,name=usernames,proto3" json:"usernames,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListCredUsersResponse) Reset() { *m = ListCredUsersResponse{} } -func (m *ListCredUsersResponse) String() string { return proto.CompactTextString(m) } -func (*ListCredUsersResponse) ProtoMessage() {} -func (*ListCredUsersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{93} -} - -func (m *ListCredUsersResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListCredUsersResponse.Unmarshal(m, b) -} -func (m *ListCredUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListCredUsersResponse.Marshal(b, m, deterministic) -} -func (m *ListCredUsersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListCredUsersResponse.Merge(m, src) -} -func (m *ListCredUsersResponse) XXX_Size() int { - return xxx_messageInfo_ListCredUsersResponse.Size(m) -} -func (m *ListCredUsersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListCredUsersResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListCredUsersResponse proto.InternalMessageInfo - -func (m *ListCredUsersResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *ListCredUsersResponse) GetUsernames() []string { - if m != nil { - return m.Usernames - } - return nil -} - -type ListCredUsersRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListCredUsersRequest) Reset() { *m = ListCredUsersRequest{} } -func (m *ListCredUsersRequest) String() string { return proto.CompactTextString(m) } -func (*ListCredUsersRequest) ProtoMessage() {} -func (*ListCredUsersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{94} -} - -func (m *ListCredUsersRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListCredUsersRequest.Unmarshal(m, b) -} -func (m *ListCredUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListCredUsersRequest.Marshal(b, m, deterministic) -} -func (m *ListCredUsersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListCredUsersRequest.Merge(m, src) -} -func (m *ListCredUsersRequest) XXX_Size() int { - return xxx_messageInfo_ListCredUsersRequest.Size(m) -} -func (m *ListCredUsersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListCredUsersRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListCredUsersRequest proto.InternalMessageInfo - -func (m *ListCredUsersRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -// https://wiki.lfaidata.foundation/display/MIL/MEP+29+--+Support+Role-Based+Access+Control -type RoleEntity struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoleEntity) Reset() { *m = RoleEntity{} } -func (m *RoleEntity) String() string { return proto.CompactTextString(m) } -func (*RoleEntity) ProtoMessage() {} -func (*RoleEntity) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{95} -} - -func (m *RoleEntity) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoleEntity.Unmarshal(m, b) -} -func (m *RoleEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoleEntity.Marshal(b, m, deterministic) -} -func (m *RoleEntity) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleEntity.Merge(m, src) -} -func (m *RoleEntity) XXX_Size() int { - return xxx_messageInfo_RoleEntity.Size(m) -} -func (m *RoleEntity) XXX_DiscardUnknown() { - xxx_messageInfo_RoleEntity.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleEntity proto.InternalMessageInfo - -func (m *RoleEntity) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type UserEntity struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserEntity) Reset() { *m = UserEntity{} } -func (m *UserEntity) String() string { return proto.CompactTextString(m) } -func (*UserEntity) ProtoMessage() {} -func (*UserEntity) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{96} -} - -func (m *UserEntity) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserEntity.Unmarshal(m, b) -} -func (m *UserEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserEntity.Marshal(b, m, deterministic) -} -func (m *UserEntity) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserEntity.Merge(m, src) -} -func (m *UserEntity) XXX_Size() int { - return xxx_messageInfo_UserEntity.Size(m) -} -func (m *UserEntity) XXX_DiscardUnknown() { - xxx_messageInfo_UserEntity.DiscardUnknown(m) -} - -var xxx_messageInfo_UserEntity proto.InternalMessageInfo - -func (m *UserEntity) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type CreateRoleRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // role - Entity *RoleEntity `protobuf:"bytes,2,opt,name=entity,proto3" json:"entity,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateRoleRequest) Reset() { *m = CreateRoleRequest{} } -func (m *CreateRoleRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRoleRequest) ProtoMessage() {} -func (*CreateRoleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{97} -} - -func (m *CreateRoleRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateRoleRequest.Unmarshal(m, b) -} -func (m *CreateRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateRoleRequest.Marshal(b, m, deterministic) -} -func (m *CreateRoleRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateRoleRequest.Merge(m, src) -} -func (m *CreateRoleRequest) XXX_Size() int { - return xxx_messageInfo_CreateRoleRequest.Size(m) -} -func (m *CreateRoleRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateRoleRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateRoleRequest proto.InternalMessageInfo - -func (m *CreateRoleRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *CreateRoleRequest) GetEntity() *RoleEntity { - if m != nil { - return m.Entity - } - return nil -} - -type DropRoleRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // role name - RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DropRoleRequest) Reset() { *m = DropRoleRequest{} } -func (m *DropRoleRequest) String() string { return proto.CompactTextString(m) } -func (*DropRoleRequest) ProtoMessage() {} -func (*DropRoleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{98} -} - -func (m *DropRoleRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DropRoleRequest.Unmarshal(m, b) -} -func (m *DropRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DropRoleRequest.Marshal(b, m, deterministic) -} -func (m *DropRoleRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DropRoleRequest.Merge(m, src) -} -func (m *DropRoleRequest) XXX_Size() int { - return xxx_messageInfo_DropRoleRequest.Size(m) -} -func (m *DropRoleRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DropRoleRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DropRoleRequest proto.InternalMessageInfo - -func (m *DropRoleRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *DropRoleRequest) GetRoleName() string { - if m != nil { - return m.RoleName - } - return "" -} - -type OperateUserRoleRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // username - Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` - // role name - RoleName string `protobuf:"bytes,3,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` - // operation type - Type OperateUserRoleType `protobuf:"varint,4,opt,name=type,proto3,enum=milvus.proto.milvus.OperateUserRoleType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OperateUserRoleRequest) Reset() { *m = OperateUserRoleRequest{} } -func (m *OperateUserRoleRequest) String() string { return proto.CompactTextString(m) } -func (*OperateUserRoleRequest) ProtoMessage() {} -func (*OperateUserRoleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{99} -} - -func (m *OperateUserRoleRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OperateUserRoleRequest.Unmarshal(m, b) -} -func (m *OperateUserRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OperateUserRoleRequest.Marshal(b, m, deterministic) -} -func (m *OperateUserRoleRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OperateUserRoleRequest.Merge(m, src) -} -func (m *OperateUserRoleRequest) XXX_Size() int { - return xxx_messageInfo_OperateUserRoleRequest.Size(m) -} -func (m *OperateUserRoleRequest) XXX_DiscardUnknown() { - xxx_messageInfo_OperateUserRoleRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_OperateUserRoleRequest proto.InternalMessageInfo - -func (m *OperateUserRoleRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *OperateUserRoleRequest) GetUsername() string { - if m != nil { - return m.Username - } - return "" -} - -func (m *OperateUserRoleRequest) GetRoleName() string { - if m != nil { - return m.RoleName - } - return "" -} - -func (m *OperateUserRoleRequest) GetType() OperateUserRoleType { - if m != nil { - return m.Type - } - return OperateUserRoleType_AddUserToRole -} - -type SelectRoleRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // role - Role *RoleEntity `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` - // include user info - IncludeUserInfo bool `protobuf:"varint,3,opt,name=include_user_info,json=includeUserInfo,proto3" json:"include_user_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SelectRoleRequest) Reset() { *m = SelectRoleRequest{} } -func (m *SelectRoleRequest) String() string { return proto.CompactTextString(m) } -func (*SelectRoleRequest) ProtoMessage() {} -func (*SelectRoleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{100} -} - -func (m *SelectRoleRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SelectRoleRequest.Unmarshal(m, b) -} -func (m *SelectRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SelectRoleRequest.Marshal(b, m, deterministic) -} -func (m *SelectRoleRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelectRoleRequest.Merge(m, src) -} -func (m *SelectRoleRequest) XXX_Size() int { - return xxx_messageInfo_SelectRoleRequest.Size(m) -} -func (m *SelectRoleRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SelectRoleRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SelectRoleRequest proto.InternalMessageInfo - -func (m *SelectRoleRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *SelectRoleRequest) GetRole() *RoleEntity { - if m != nil { - return m.Role - } - return nil -} - -func (m *SelectRoleRequest) GetIncludeUserInfo() bool { - if m != nil { - return m.IncludeUserInfo - } - return false -} - -type RoleResult struct { - Role *RoleEntity `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` - Users []*UserEntity `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RoleResult) Reset() { *m = RoleResult{} } -func (m *RoleResult) String() string { return proto.CompactTextString(m) } -func (*RoleResult) ProtoMessage() {} -func (*RoleResult) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{101} -} - -func (m *RoleResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RoleResult.Unmarshal(m, b) -} -func (m *RoleResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RoleResult.Marshal(b, m, deterministic) -} -func (m *RoleResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleResult.Merge(m, src) -} -func (m *RoleResult) XXX_Size() int { - return xxx_messageInfo_RoleResult.Size(m) -} -func (m *RoleResult) XXX_DiscardUnknown() { - xxx_messageInfo_RoleResult.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleResult proto.InternalMessageInfo - -func (m *RoleResult) GetRole() *RoleEntity { - if m != nil { - return m.Role - } - return nil -} - -func (m *RoleResult) GetUsers() []*UserEntity { - if m != nil { - return m.Users - } - return nil -} - -type SelectRoleResponse struct { - // Not useful for now - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // role result array - Results []*RoleResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SelectRoleResponse) Reset() { *m = SelectRoleResponse{} } -func (m *SelectRoleResponse) String() string { return proto.CompactTextString(m) } -func (*SelectRoleResponse) ProtoMessage() {} -func (*SelectRoleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{102} -} - -func (m *SelectRoleResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SelectRoleResponse.Unmarshal(m, b) -} -func (m *SelectRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SelectRoleResponse.Marshal(b, m, deterministic) -} -func (m *SelectRoleResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelectRoleResponse.Merge(m, src) -} -func (m *SelectRoleResponse) XXX_Size() int { - return xxx_messageInfo_SelectRoleResponse.Size(m) -} -func (m *SelectRoleResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SelectRoleResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_SelectRoleResponse proto.InternalMessageInfo - -func (m *SelectRoleResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *SelectRoleResponse) GetResults() []*RoleResult { - if m != nil { - return m.Results - } - return nil -} - -type SelectUserRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // user - User *UserEntity `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` - // include user info - IncludeRoleInfo bool `protobuf:"varint,3,opt,name=include_role_info,json=includeRoleInfo,proto3" json:"include_role_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SelectUserRequest) Reset() { *m = SelectUserRequest{} } -func (m *SelectUserRequest) String() string { return proto.CompactTextString(m) } -func (*SelectUserRequest) ProtoMessage() {} -func (*SelectUserRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{103} -} - -func (m *SelectUserRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SelectUserRequest.Unmarshal(m, b) -} -func (m *SelectUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SelectUserRequest.Marshal(b, m, deterministic) -} -func (m *SelectUserRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelectUserRequest.Merge(m, src) -} -func (m *SelectUserRequest) XXX_Size() int { - return xxx_messageInfo_SelectUserRequest.Size(m) -} -func (m *SelectUserRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SelectUserRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SelectUserRequest proto.InternalMessageInfo - -func (m *SelectUserRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *SelectUserRequest) GetUser() *UserEntity { - if m != nil { - return m.User - } - return nil -} - -func (m *SelectUserRequest) GetIncludeRoleInfo() bool { - if m != nil { - return m.IncludeRoleInfo - } - return false -} - -type UserResult struct { - User *UserEntity `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` - Roles []*RoleEntity `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserResult) Reset() { *m = UserResult{} } -func (m *UserResult) String() string { return proto.CompactTextString(m) } -func (*UserResult) ProtoMessage() {} -func (*UserResult) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{104} -} - -func (m *UserResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserResult.Unmarshal(m, b) -} -func (m *UserResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserResult.Marshal(b, m, deterministic) -} -func (m *UserResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserResult.Merge(m, src) -} -func (m *UserResult) XXX_Size() int { - return xxx_messageInfo_UserResult.Size(m) -} -func (m *UserResult) XXX_DiscardUnknown() { - xxx_messageInfo_UserResult.DiscardUnknown(m) -} - -var xxx_messageInfo_UserResult proto.InternalMessageInfo - -func (m *UserResult) GetUser() *UserEntity { - if m != nil { - return m.User - } - return nil -} - -func (m *UserResult) GetRoles() []*RoleEntity { - if m != nil { - return m.Roles - } - return nil -} - -type SelectUserResponse struct { - // Not useful for now - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // user result array - Results []*UserResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SelectUserResponse) Reset() { *m = SelectUserResponse{} } -func (m *SelectUserResponse) String() string { return proto.CompactTextString(m) } -func (*SelectUserResponse) ProtoMessage() {} -func (*SelectUserResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{105} -} - -func (m *SelectUserResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SelectUserResponse.Unmarshal(m, b) -} -func (m *SelectUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SelectUserResponse.Marshal(b, m, deterministic) -} -func (m *SelectUserResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelectUserResponse.Merge(m, src) -} -func (m *SelectUserResponse) XXX_Size() int { - return xxx_messageInfo_SelectUserResponse.Size(m) -} -func (m *SelectUserResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SelectUserResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_SelectUserResponse proto.InternalMessageInfo - -func (m *SelectUserResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *SelectUserResponse) GetResults() []*UserResult { - if m != nil { - return m.Results - } - return nil -} - -type ObjectEntity struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ObjectEntity) Reset() { *m = ObjectEntity{} } -func (m *ObjectEntity) String() string { return proto.CompactTextString(m) } -func (*ObjectEntity) ProtoMessage() {} -func (*ObjectEntity) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{106} -} - -func (m *ObjectEntity) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ObjectEntity.Unmarshal(m, b) -} -func (m *ObjectEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ObjectEntity.Marshal(b, m, deterministic) -} -func (m *ObjectEntity) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectEntity.Merge(m, src) -} -func (m *ObjectEntity) XXX_Size() int { - return xxx_messageInfo_ObjectEntity.Size(m) -} -func (m *ObjectEntity) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectEntity.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectEntity proto.InternalMessageInfo - -func (m *ObjectEntity) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type PrivilegeEntity struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrivilegeEntity) Reset() { *m = PrivilegeEntity{} } -func (m *PrivilegeEntity) String() string { return proto.CompactTextString(m) } -func (*PrivilegeEntity) ProtoMessage() {} -func (*PrivilegeEntity) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{107} -} - -func (m *PrivilegeEntity) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PrivilegeEntity.Unmarshal(m, b) -} -func (m *PrivilegeEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PrivilegeEntity.Marshal(b, m, deterministic) -} -func (m *PrivilegeEntity) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrivilegeEntity.Merge(m, src) -} -func (m *PrivilegeEntity) XXX_Size() int { - return xxx_messageInfo_PrivilegeEntity.Size(m) -} -func (m *PrivilegeEntity) XXX_DiscardUnknown() { - xxx_messageInfo_PrivilegeEntity.DiscardUnknown(m) -} - -var xxx_messageInfo_PrivilegeEntity proto.InternalMessageInfo - -func (m *PrivilegeEntity) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type GrantorEntity struct { - User *UserEntity `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` - Privilege *PrivilegeEntity `protobuf:"bytes,2,opt,name=privilege,proto3" json:"privilege,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GrantorEntity) Reset() { *m = GrantorEntity{} } -func (m *GrantorEntity) String() string { return proto.CompactTextString(m) } -func (*GrantorEntity) ProtoMessage() {} -func (*GrantorEntity) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{108} -} - -func (m *GrantorEntity) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GrantorEntity.Unmarshal(m, b) -} -func (m *GrantorEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GrantorEntity.Marshal(b, m, deterministic) -} -func (m *GrantorEntity) XXX_Merge(src proto.Message) { - xxx_messageInfo_GrantorEntity.Merge(m, src) -} -func (m *GrantorEntity) XXX_Size() int { - return xxx_messageInfo_GrantorEntity.Size(m) -} -func (m *GrantorEntity) XXX_DiscardUnknown() { - xxx_messageInfo_GrantorEntity.DiscardUnknown(m) -} - -var xxx_messageInfo_GrantorEntity proto.InternalMessageInfo - -func (m *GrantorEntity) GetUser() *UserEntity { - if m != nil { - return m.User - } - return nil -} - -func (m *GrantorEntity) GetPrivilege() *PrivilegeEntity { - if m != nil { - return m.Privilege - } - return nil -} - -type GrantPrivilegeEntity struct { - Entities []*GrantorEntity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GrantPrivilegeEntity) Reset() { *m = GrantPrivilegeEntity{} } -func (m *GrantPrivilegeEntity) String() string { return proto.CompactTextString(m) } -func (*GrantPrivilegeEntity) ProtoMessage() {} -func (*GrantPrivilegeEntity) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{109} -} - -func (m *GrantPrivilegeEntity) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GrantPrivilegeEntity.Unmarshal(m, b) -} -func (m *GrantPrivilegeEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GrantPrivilegeEntity.Marshal(b, m, deterministic) -} -func (m *GrantPrivilegeEntity) XXX_Merge(src proto.Message) { - xxx_messageInfo_GrantPrivilegeEntity.Merge(m, src) -} -func (m *GrantPrivilegeEntity) XXX_Size() int { - return xxx_messageInfo_GrantPrivilegeEntity.Size(m) -} -func (m *GrantPrivilegeEntity) XXX_DiscardUnknown() { - xxx_messageInfo_GrantPrivilegeEntity.DiscardUnknown(m) -} - -var xxx_messageInfo_GrantPrivilegeEntity proto.InternalMessageInfo - -func (m *GrantPrivilegeEntity) GetEntities() []*GrantorEntity { - if m != nil { - return m.Entities - } - return nil -} - -type GrantEntity struct { - // role - Role *RoleEntity `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` - // object - Object *ObjectEntity `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` - // object name - ObjectName string `protobuf:"bytes,3,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` - // privilege - Grantor *GrantorEntity `protobuf:"bytes,4,opt,name=grantor,proto3" json:"grantor,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GrantEntity) Reset() { *m = GrantEntity{} } -func (m *GrantEntity) String() string { return proto.CompactTextString(m) } -func (*GrantEntity) ProtoMessage() {} -func (*GrantEntity) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{110} -} - -func (m *GrantEntity) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GrantEntity.Unmarshal(m, b) -} -func (m *GrantEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GrantEntity.Marshal(b, m, deterministic) -} -func (m *GrantEntity) XXX_Merge(src proto.Message) { - xxx_messageInfo_GrantEntity.Merge(m, src) -} -func (m *GrantEntity) XXX_Size() int { - return xxx_messageInfo_GrantEntity.Size(m) -} -func (m *GrantEntity) XXX_DiscardUnknown() { - xxx_messageInfo_GrantEntity.DiscardUnknown(m) -} - -var xxx_messageInfo_GrantEntity proto.InternalMessageInfo - -func (m *GrantEntity) GetRole() *RoleEntity { - if m != nil { - return m.Role - } - return nil -} - -func (m *GrantEntity) GetObject() *ObjectEntity { - if m != nil { - return m.Object - } - return nil -} - -func (m *GrantEntity) GetObjectName() string { - if m != nil { - return m.ObjectName - } - return "" -} - -func (m *GrantEntity) GetGrantor() *GrantorEntity { - if m != nil { - return m.Grantor - } - return nil -} - -type SelectGrantRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // grant - Entity *GrantEntity `protobuf:"bytes,2,opt,name=entity,proto3" json:"entity,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SelectGrantRequest) Reset() { *m = SelectGrantRequest{} } -func (m *SelectGrantRequest) String() string { return proto.CompactTextString(m) } -func (*SelectGrantRequest) ProtoMessage() {} -func (*SelectGrantRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{111} -} - -func (m *SelectGrantRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SelectGrantRequest.Unmarshal(m, b) -} -func (m *SelectGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SelectGrantRequest.Marshal(b, m, deterministic) -} -func (m *SelectGrantRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelectGrantRequest.Merge(m, src) -} -func (m *SelectGrantRequest) XXX_Size() int { - return xxx_messageInfo_SelectGrantRequest.Size(m) -} -func (m *SelectGrantRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SelectGrantRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SelectGrantRequest proto.InternalMessageInfo - -func (m *SelectGrantRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *SelectGrantRequest) GetEntity() *GrantEntity { - if m != nil { - return m.Entity - } - return nil -} - -type SelectGrantResponse struct { - // Not useful for now - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // grant info array - Entities []*GrantEntity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SelectGrantResponse) Reset() { *m = SelectGrantResponse{} } -func (m *SelectGrantResponse) String() string { return proto.CompactTextString(m) } -func (*SelectGrantResponse) ProtoMessage() {} -func (*SelectGrantResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{112} -} - -func (m *SelectGrantResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SelectGrantResponse.Unmarshal(m, b) -} -func (m *SelectGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SelectGrantResponse.Marshal(b, m, deterministic) -} -func (m *SelectGrantResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelectGrantResponse.Merge(m, src) -} -func (m *SelectGrantResponse) XXX_Size() int { - return xxx_messageInfo_SelectGrantResponse.Size(m) -} -func (m *SelectGrantResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SelectGrantResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_SelectGrantResponse proto.InternalMessageInfo - -func (m *SelectGrantResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *SelectGrantResponse) GetEntities() []*GrantEntity { - if m != nil { - return m.Entities - } - return nil -} - -type OperatePrivilegeRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // grant - Entity *GrantEntity `protobuf:"bytes,2,opt,name=entity,proto3" json:"entity,omitempty"` - // operation type - Type OperatePrivilegeType `protobuf:"varint,3,opt,name=type,proto3,enum=milvus.proto.milvus.OperatePrivilegeType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OperatePrivilegeRequest) Reset() { *m = OperatePrivilegeRequest{} } -func (m *OperatePrivilegeRequest) String() string { return proto.CompactTextString(m) } -func (*OperatePrivilegeRequest) ProtoMessage() {} -func (*OperatePrivilegeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{113} -} - -func (m *OperatePrivilegeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OperatePrivilegeRequest.Unmarshal(m, b) -} -func (m *OperatePrivilegeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OperatePrivilegeRequest.Marshal(b, m, deterministic) -} -func (m *OperatePrivilegeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OperatePrivilegeRequest.Merge(m, src) -} -func (m *OperatePrivilegeRequest) XXX_Size() int { - return xxx_messageInfo_OperatePrivilegeRequest.Size(m) -} -func (m *OperatePrivilegeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_OperatePrivilegeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_OperatePrivilegeRequest proto.InternalMessageInfo - -func (m *OperatePrivilegeRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *OperatePrivilegeRequest) GetEntity() *GrantEntity { - if m != nil { - return m.Entity - } - return nil -} - -func (m *OperatePrivilegeRequest) GetType() OperatePrivilegeType { - if m != nil { - return m.Type - } - return OperatePrivilegeType_Grant -} - -type GetLoadingProgressRequest struct { - // Not useful for now - Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - CollectionName string `protobuf:"bytes,2,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` - PartitionNames []string `protobuf:"bytes,3,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetLoadingProgressRequest) Reset() { *m = GetLoadingProgressRequest{} } -func (m *GetLoadingProgressRequest) String() string { return proto.CompactTextString(m) } -func (*GetLoadingProgressRequest) ProtoMessage() {} -func (*GetLoadingProgressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{114} -} - -func (m *GetLoadingProgressRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLoadingProgressRequest.Unmarshal(m, b) -} -func (m *GetLoadingProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLoadingProgressRequest.Marshal(b, m, deterministic) -} -func (m *GetLoadingProgressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLoadingProgressRequest.Merge(m, src) -} -func (m *GetLoadingProgressRequest) XXX_Size() int { - return xxx_messageInfo_GetLoadingProgressRequest.Size(m) -} -func (m *GetLoadingProgressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetLoadingProgressRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetLoadingProgressRequest proto.InternalMessageInfo - -func (m *GetLoadingProgressRequest) GetBase() *commonpb.MsgBase { - if m != nil { - return m.Base - } - return nil -} - -func (m *GetLoadingProgressRequest) GetCollectionName() string { - if m != nil { - return m.CollectionName - } - return "" -} - -func (m *GetLoadingProgressRequest) GetPartitionNames() []string { - if m != nil { - return m.PartitionNames - } - return nil -} - -type GetLoadingProgressResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - Progress int64 `protobuf:"varint,2,opt,name=progress,proto3" json:"progress,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetLoadingProgressResponse) Reset() { *m = GetLoadingProgressResponse{} } -func (m *GetLoadingProgressResponse) String() string { return proto.CompactTextString(m) } -func (*GetLoadingProgressResponse) ProtoMessage() {} -func (*GetLoadingProgressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{115} -} - -func (m *GetLoadingProgressResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLoadingProgressResponse.Unmarshal(m, b) -} -func (m *GetLoadingProgressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLoadingProgressResponse.Marshal(b, m, deterministic) -} -func (m *GetLoadingProgressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLoadingProgressResponse.Merge(m, src) -} -func (m *GetLoadingProgressResponse) XXX_Size() int { - return xxx_messageInfo_GetLoadingProgressResponse.Size(m) -} -func (m *GetLoadingProgressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetLoadingProgressResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetLoadingProgressResponse proto.InternalMessageInfo - -func (m *GetLoadingProgressResponse) GetStatus() *commonpb.Status { - if m != nil { - return m.Status - } - return nil -} - -func (m *GetLoadingProgressResponse) GetProgress() int64 { - if m != nil { - return m.Progress - } - return 0 -} - -type MilvusExt struct { - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MilvusExt) Reset() { *m = MilvusExt{} } -func (m *MilvusExt) String() string { return proto.CompactTextString(m) } -func (*MilvusExt) ProtoMessage() {} -func (*MilvusExt) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{116} -} - -func (m *MilvusExt) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MilvusExt.Unmarshal(m, b) -} -func (m *MilvusExt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MilvusExt.Marshal(b, m, deterministic) -} -func (m *MilvusExt) XXX_Merge(src proto.Message) { - xxx_messageInfo_MilvusExt.Merge(m, src) -} -func (m *MilvusExt) XXX_Size() int { - return xxx_messageInfo_MilvusExt.Size(m) -} -func (m *MilvusExt) XXX_DiscardUnknown() { - xxx_messageInfo_MilvusExt.DiscardUnknown(m) -} - -var xxx_messageInfo_MilvusExt proto.InternalMessageInfo - -func (m *MilvusExt) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -type GetVersionRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetVersionRequest) Reset() { *m = GetVersionRequest{} } -func (m *GetVersionRequest) String() string { return proto.CompactTextString(m) } -func (*GetVersionRequest) ProtoMessage() {} -func (*GetVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{117} -} - -func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetVersionRequest.Unmarshal(m, b) -} -func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetVersionRequest.Marshal(b, m, deterministic) -} -func (m *GetVersionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetVersionRequest.Merge(m, src) -} -func (m *GetVersionRequest) XXX_Size() int { - return xxx_messageInfo_GetVersionRequest.Size(m) -} -func (m *GetVersionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetVersionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetVersionRequest proto.InternalMessageInfo - -type GetVersionResponse struct { - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetVersionResponse) Reset() { *m = GetVersionResponse{} } -func (m *GetVersionResponse) String() string { return proto.CompactTextString(m) } -func (*GetVersionResponse) ProtoMessage() {} -func (*GetVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02345ba45cc0e303, []int{118} -} - -func (m *GetVersionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetVersionResponse.Unmarshal(m, b) -} -func (m *GetVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetVersionResponse.Marshal(b, m, deterministic) -} -func (m *GetVersionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetVersionResponse.Merge(m, src) -} -func (m *GetVersionResponse) XXX_Size() int { - return xxx_messageInfo_GetVersionResponse.Size(m) -} -func (m *GetVersionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetVersionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetVersionResponse proto.InternalMessageInfo - -func (m *GetVersionResponse) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -var E_MilvusExtObj = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FileOptions)(nil), - ExtensionType: (*MilvusExt)(nil), - Field: 1001, - Name: "milvus.proto.milvus.milvus_ext_obj", - Tag: "bytes,1001,opt,name=milvus_ext_obj", - Filename: "milvus.proto", -} - -func init() { - proto.RegisterEnum("milvus.proto.milvus.ShowType", ShowType_name, ShowType_value) - proto.RegisterEnum("milvus.proto.milvus.OperateUserRoleType", OperateUserRoleType_name, OperateUserRoleType_value) - proto.RegisterEnum("milvus.proto.milvus.OperatePrivilegeType", OperatePrivilegeType_name, OperatePrivilegeType_value) - proto.RegisterType((*CreateAliasRequest)(nil), "milvus.proto.milvus.CreateAliasRequest") - proto.RegisterType((*DropAliasRequest)(nil), "milvus.proto.milvus.DropAliasRequest") - proto.RegisterType((*AlterAliasRequest)(nil), "milvus.proto.milvus.AlterAliasRequest") - proto.RegisterType((*CreateCollectionRequest)(nil), "milvus.proto.milvus.CreateCollectionRequest") - proto.RegisterType((*DropCollectionRequest)(nil), "milvus.proto.milvus.DropCollectionRequest") - proto.RegisterType((*AlterCollectionRequest)(nil), "milvus.proto.milvus.AlterCollectionRequest") - proto.RegisterType((*HasCollectionRequest)(nil), "milvus.proto.milvus.HasCollectionRequest") - proto.RegisterType((*BoolResponse)(nil), "milvus.proto.milvus.BoolResponse") - proto.RegisterType((*StringResponse)(nil), "milvus.proto.milvus.StringResponse") - proto.RegisterType((*DescribeCollectionRequest)(nil), "milvus.proto.milvus.DescribeCollectionRequest") - proto.RegisterType((*DescribeCollectionResponse)(nil), "milvus.proto.milvus.DescribeCollectionResponse") - proto.RegisterType((*LoadCollectionRequest)(nil), "milvus.proto.milvus.LoadCollectionRequest") - proto.RegisterType((*ReleaseCollectionRequest)(nil), "milvus.proto.milvus.ReleaseCollectionRequest") - proto.RegisterType((*GetStatisticsRequest)(nil), "milvus.proto.milvus.GetStatisticsRequest") - proto.RegisterType((*GetStatisticsResponse)(nil), "milvus.proto.milvus.GetStatisticsResponse") - proto.RegisterType((*GetCollectionStatisticsRequest)(nil), "milvus.proto.milvus.GetCollectionStatisticsRequest") - proto.RegisterType((*GetCollectionStatisticsResponse)(nil), "milvus.proto.milvus.GetCollectionStatisticsResponse") - proto.RegisterType((*ShowCollectionsRequest)(nil), "milvus.proto.milvus.ShowCollectionsRequest") - proto.RegisterType((*ShowCollectionsResponse)(nil), "milvus.proto.milvus.ShowCollectionsResponse") - proto.RegisterType((*CreatePartitionRequest)(nil), "milvus.proto.milvus.CreatePartitionRequest") - proto.RegisterType((*DropPartitionRequest)(nil), "milvus.proto.milvus.DropPartitionRequest") - proto.RegisterType((*HasPartitionRequest)(nil), "milvus.proto.milvus.HasPartitionRequest") - proto.RegisterType((*LoadPartitionsRequest)(nil), "milvus.proto.milvus.LoadPartitionsRequest") - proto.RegisterType((*ReleasePartitionsRequest)(nil), "milvus.proto.milvus.ReleasePartitionsRequest") - proto.RegisterType((*GetPartitionStatisticsRequest)(nil), "milvus.proto.milvus.GetPartitionStatisticsRequest") - proto.RegisterType((*GetPartitionStatisticsResponse)(nil), "milvus.proto.milvus.GetPartitionStatisticsResponse") - proto.RegisterType((*ShowPartitionsRequest)(nil), "milvus.proto.milvus.ShowPartitionsRequest") - proto.RegisterType((*ShowPartitionsResponse)(nil), "milvus.proto.milvus.ShowPartitionsResponse") - proto.RegisterType((*DescribeSegmentRequest)(nil), "milvus.proto.milvus.DescribeSegmentRequest") - proto.RegisterType((*DescribeSegmentResponse)(nil), "milvus.proto.milvus.DescribeSegmentResponse") - proto.RegisterType((*ShowSegmentsRequest)(nil), "milvus.proto.milvus.ShowSegmentsRequest") - proto.RegisterType((*ShowSegmentsResponse)(nil), "milvus.proto.milvus.ShowSegmentsResponse") - proto.RegisterType((*CreateIndexRequest)(nil), "milvus.proto.milvus.CreateIndexRequest") - proto.RegisterType((*DescribeIndexRequest)(nil), "milvus.proto.milvus.DescribeIndexRequest") - proto.RegisterType((*IndexDescription)(nil), "milvus.proto.milvus.IndexDescription") - proto.RegisterType((*DescribeIndexResponse)(nil), "milvus.proto.milvus.DescribeIndexResponse") - proto.RegisterType((*GetIndexBuildProgressRequest)(nil), "milvus.proto.milvus.GetIndexBuildProgressRequest") - proto.RegisterType((*GetIndexBuildProgressResponse)(nil), "milvus.proto.milvus.GetIndexBuildProgressResponse") - proto.RegisterType((*GetIndexStateRequest)(nil), "milvus.proto.milvus.GetIndexStateRequest") - proto.RegisterType((*GetIndexStateResponse)(nil), "milvus.proto.milvus.GetIndexStateResponse") - proto.RegisterType((*DropIndexRequest)(nil), "milvus.proto.milvus.DropIndexRequest") - proto.RegisterType((*InsertRequest)(nil), "milvus.proto.milvus.InsertRequest") - proto.RegisterType((*MutationResult)(nil), "milvus.proto.milvus.MutationResult") - proto.RegisterType((*DeleteRequest)(nil), "milvus.proto.milvus.DeleteRequest") - proto.RegisterType((*SearchRequest)(nil), "milvus.proto.milvus.SearchRequest") - proto.RegisterType((*Hits)(nil), "milvus.proto.milvus.Hits") - proto.RegisterType((*SearchResults)(nil), "milvus.proto.milvus.SearchResults") - proto.RegisterType((*FlushRequest)(nil), "milvus.proto.milvus.FlushRequest") - proto.RegisterType((*FlushResponse)(nil), "milvus.proto.milvus.FlushResponse") - proto.RegisterMapType((map[string]int64)(nil), "milvus.proto.milvus.FlushResponse.CollSealTimesEntry") - proto.RegisterMapType((map[string]*schemapb.LongArray)(nil), "milvus.proto.milvus.FlushResponse.CollSegIDsEntry") - proto.RegisterMapType((map[string]*schemapb.LongArray)(nil), "milvus.proto.milvus.FlushResponse.FlushCollSegIDsEntry") - proto.RegisterType((*QueryRequest)(nil), "milvus.proto.milvus.QueryRequest") - proto.RegisterType((*QueryResults)(nil), "milvus.proto.milvus.QueryResults") - proto.RegisterType((*VectorIDs)(nil), "milvus.proto.milvus.VectorIDs") - proto.RegisterType((*VectorsArray)(nil), "milvus.proto.milvus.VectorsArray") - proto.RegisterType((*CalcDistanceRequest)(nil), "milvus.proto.milvus.CalcDistanceRequest") - proto.RegisterType((*CalcDistanceResults)(nil), "milvus.proto.milvus.CalcDistanceResults") - proto.RegisterType((*PersistentSegmentInfo)(nil), "milvus.proto.milvus.PersistentSegmentInfo") - proto.RegisterType((*GetPersistentSegmentInfoRequest)(nil), "milvus.proto.milvus.GetPersistentSegmentInfoRequest") - proto.RegisterType((*GetPersistentSegmentInfoResponse)(nil), "milvus.proto.milvus.GetPersistentSegmentInfoResponse") - proto.RegisterType((*QuerySegmentInfo)(nil), "milvus.proto.milvus.QuerySegmentInfo") - proto.RegisterType((*GetQuerySegmentInfoRequest)(nil), "milvus.proto.milvus.GetQuerySegmentInfoRequest") - proto.RegisterType((*GetQuerySegmentInfoResponse)(nil), "milvus.proto.milvus.GetQuerySegmentInfoResponse") - proto.RegisterType((*DummyRequest)(nil), "milvus.proto.milvus.DummyRequest") - proto.RegisterType((*DummyResponse)(nil), "milvus.proto.milvus.DummyResponse") - proto.RegisterType((*RegisterLinkRequest)(nil), "milvus.proto.milvus.RegisterLinkRequest") - proto.RegisterType((*RegisterLinkResponse)(nil), "milvus.proto.milvus.RegisterLinkResponse") - proto.RegisterType((*GetMetricsRequest)(nil), "milvus.proto.milvus.GetMetricsRequest") - proto.RegisterType((*GetMetricsResponse)(nil), "milvus.proto.milvus.GetMetricsResponse") - proto.RegisterType((*ComponentInfo)(nil), "milvus.proto.milvus.ComponentInfo") - proto.RegisterType((*ComponentStates)(nil), "milvus.proto.milvus.ComponentStates") - proto.RegisterType((*GetComponentStatesRequest)(nil), "milvus.proto.milvus.GetComponentStatesRequest") - proto.RegisterType((*LoadBalanceRequest)(nil), "milvus.proto.milvus.LoadBalanceRequest") - proto.RegisterType((*ManualCompactionRequest)(nil), "milvus.proto.milvus.ManualCompactionRequest") - proto.RegisterType((*ManualCompactionResponse)(nil), "milvus.proto.milvus.ManualCompactionResponse") - proto.RegisterType((*GetCompactionStateRequest)(nil), "milvus.proto.milvus.GetCompactionStateRequest") - proto.RegisterType((*GetCompactionStateResponse)(nil), "milvus.proto.milvus.GetCompactionStateResponse") - proto.RegisterType((*GetCompactionPlansRequest)(nil), "milvus.proto.milvus.GetCompactionPlansRequest") - proto.RegisterType((*GetCompactionPlansResponse)(nil), "milvus.proto.milvus.GetCompactionPlansResponse") - proto.RegisterType((*CompactionMergeInfo)(nil), "milvus.proto.milvus.CompactionMergeInfo") - proto.RegisterType((*GetFlushStateRequest)(nil), "milvus.proto.milvus.GetFlushStateRequest") - proto.RegisterType((*GetFlushStateResponse)(nil), "milvus.proto.milvus.GetFlushStateResponse") - proto.RegisterType((*ImportRequest)(nil), "milvus.proto.milvus.ImportRequest") - proto.RegisterType((*ImportResponse)(nil), "milvus.proto.milvus.ImportResponse") - proto.RegisterType((*GetImportStateRequest)(nil), "milvus.proto.milvus.GetImportStateRequest") - proto.RegisterType((*GetImportStateResponse)(nil), "milvus.proto.milvus.GetImportStateResponse") - proto.RegisterType((*ListImportTasksRequest)(nil), "milvus.proto.milvus.ListImportTasksRequest") - proto.RegisterType((*ListImportTasksResponse)(nil), "milvus.proto.milvus.ListImportTasksResponse") - proto.RegisterType((*GetReplicasRequest)(nil), "milvus.proto.milvus.GetReplicasRequest") - proto.RegisterType((*GetReplicasResponse)(nil), "milvus.proto.milvus.GetReplicasResponse") - proto.RegisterType((*ReplicaInfo)(nil), "milvus.proto.milvus.ReplicaInfo") - proto.RegisterType((*ShardReplica)(nil), "milvus.proto.milvus.ShardReplica") - proto.RegisterType((*CreateCredentialRequest)(nil), "milvus.proto.milvus.CreateCredentialRequest") - proto.RegisterType((*UpdateCredentialRequest)(nil), "milvus.proto.milvus.UpdateCredentialRequest") - proto.RegisterType((*DeleteCredentialRequest)(nil), "milvus.proto.milvus.DeleteCredentialRequest") - proto.RegisterType((*ListCredUsersResponse)(nil), "milvus.proto.milvus.ListCredUsersResponse") - proto.RegisterType((*ListCredUsersRequest)(nil), "milvus.proto.milvus.ListCredUsersRequest") - proto.RegisterType((*RoleEntity)(nil), "milvus.proto.milvus.RoleEntity") - proto.RegisterType((*UserEntity)(nil), "milvus.proto.milvus.UserEntity") - proto.RegisterType((*CreateRoleRequest)(nil), "milvus.proto.milvus.CreateRoleRequest") - proto.RegisterType((*DropRoleRequest)(nil), "milvus.proto.milvus.DropRoleRequest") - proto.RegisterType((*OperateUserRoleRequest)(nil), "milvus.proto.milvus.OperateUserRoleRequest") - proto.RegisterType((*SelectRoleRequest)(nil), "milvus.proto.milvus.SelectRoleRequest") - proto.RegisterType((*RoleResult)(nil), "milvus.proto.milvus.RoleResult") - proto.RegisterType((*SelectRoleResponse)(nil), "milvus.proto.milvus.SelectRoleResponse") - proto.RegisterType((*SelectUserRequest)(nil), "milvus.proto.milvus.SelectUserRequest") - proto.RegisterType((*UserResult)(nil), "milvus.proto.milvus.UserResult") - proto.RegisterType((*SelectUserResponse)(nil), "milvus.proto.milvus.SelectUserResponse") - proto.RegisterType((*ObjectEntity)(nil), "milvus.proto.milvus.ObjectEntity") - proto.RegisterType((*PrivilegeEntity)(nil), "milvus.proto.milvus.PrivilegeEntity") - proto.RegisterType((*GrantorEntity)(nil), "milvus.proto.milvus.GrantorEntity") - proto.RegisterType((*GrantPrivilegeEntity)(nil), "milvus.proto.milvus.GrantPrivilegeEntity") - proto.RegisterType((*GrantEntity)(nil), "milvus.proto.milvus.GrantEntity") - proto.RegisterType((*SelectGrantRequest)(nil), "milvus.proto.milvus.SelectGrantRequest") - proto.RegisterType((*SelectGrantResponse)(nil), "milvus.proto.milvus.SelectGrantResponse") - proto.RegisterType((*OperatePrivilegeRequest)(nil), "milvus.proto.milvus.OperatePrivilegeRequest") - proto.RegisterType((*GetLoadingProgressRequest)(nil), "milvus.proto.milvus.GetLoadingProgressRequest") - proto.RegisterType((*GetLoadingProgressResponse)(nil), "milvus.proto.milvus.GetLoadingProgressResponse") - proto.RegisterType((*MilvusExt)(nil), "milvus.proto.milvus.MilvusExt") - proto.RegisterType((*GetVersionRequest)(nil), "milvus.proto.milvus.GetVersionRequest") - proto.RegisterType((*GetVersionResponse)(nil), "milvus.proto.milvus.GetVersionResponse") - proto.RegisterExtension(E_MilvusExtObj) -} - -func init() { proto.RegisterFile("milvus.proto", fileDescriptor_02345ba45cc0e303) } - -var fileDescriptor_02345ba45cc0e303 = []byte{ - // 5596 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x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x4b, 0xf1, 0xbe, 0xda, 0xab, 0x7d, 0x93, 0x54, 0xd6, 0x6a, - 0xcd, 0x04, 0x04, 0x5d, 0x06, 0xe8, 0x78, 0x6e, 0x07, 0x7b, 0x81, 0x85, 0xfd, 0x7a, 0x61, 0x29, - 0xbb, 0x5c, 0x5e, 0x3d, 0x25, 0xed, 0xec, 0x6d, 0xbc, 0xff, 0x9e, 0x61, 0x77, 0xf1, 0x86, 0x61, - 0x79, 0x9a, 0xd0, 0xe8, 0x12, 0xfa, 0xf4, 0xf5, 0xe9, 0xa2, 0x52, 0x53, 0xea, 0xff, 0x17, 0xfe, - 0x29, 0xea, 0xf7, 0x14, 0x98, 0x27, 0x72, 0x78, 0x24, 0xe8, 0x1d, 0x62, 0x98, 0x11, 0x31, 0xfc, - 0xc5, 0x0c, 0x2c, 0x50, 0x99, 0x3d, 0x1a, 0x22, 0xa1, 0x42, 0xa5, 0x07, 0x59, 0x5f, 0xa3, 0x82, - 0x91, 0xd5, 0x62, 0xb0, 0x04, 0xaf, 0x72, 0x9f, 0x17, 0xaf, 0xfe, 0x40, 0x81, 0xb9, 0x1b, 0x86, - 0x7f, 0x34, 0xe8, 0x70, 0x02, 0x20, 0xb0, 0xda, 0x58, 0xf7, 0x03, 0xa3, 0xdd, 0xa1, 0x54, 0x98, - 0xd4, 0x4a, 0x04, 0xb2, 0x49, 0x00, 0xea, 0xd7, 0xa0, 0x72, 0xc5, 0x75, 0x6d, 0x0d, 0xfb, 0x1d, - 0xd7, 0xf1, 0x31, 0xba, 0x00, 0x79, 0x3f, 0x30, 0x82, 0xae, 0xcf, 0x91, 0x3c, 0x26, 0x45, 0x72, - 0x93, 0x56, 0xd1, 0x78, 0x55, 0x62, 0x24, 0x76, 0x09, 0x75, 0x28, 0x8e, 0x45, 0x8d, 0x7d, 0xa8, - 0xef, 0xc3, 0xd4, 0x66, 0xe0, 0x59, 0x4e, 0xeb, 0x73, 0xec, 0xbc, 0x14, 0x76, 0xfe, 0x2f, 0x0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84, 0x9f, 0xa4, 0x64, 0xab, 0x6b, 0xd9, - 0x66, 0x84, 0x46, 0xf8, 0x89, 0x4e, 0x41, 0x05, 0x3b, 0x24, 0xc6, 0xd0, 0x69, 0x5d, 0x2a, 0xc8, - 0x45, 0xad, 0xcc, 0x60, 0xeb, 0x04, 0x44, 0x1a, 0x6f, 0x5b, 0x98, 0x36, 0xce, 0xb1, 0xc6, 0xfc, - 0x53, 0xfd, 0x15, 0x05, 0x66, 0x89, 0x14, 0x72, 0xec, 0xfd, 0x87, 0x4b, 0xcd, 0x25, 0x28, 0x0b, - 0x62, 0xc6, 0x27, 0x22, 0x82, 0xd4, 0x7b, 0x30, 0x17, 0x47, 0x67, 0x1c, 0x6a, 0x3e, 0x09, 0x10, - 0xf1, 0x8a, 0x69, 0x43, 0x56, 0x13, 0x20, 0xea, 0x6f, 0x66, 0xc2, 0x63, 0x1e, 0x4a, 0xa6, 0x47, - 0xbc, 0x21, 0x4a, 0x59, 0x22, 0xda, 0xf3, 0x12, 0x85, 0xd0, 0xe2, 0x35, 0xa8, 0xe0, 0x07, 0x81, - 0x67, 0xe8, 0x1d, 0xc3, 0x33, 0xda, 0x23, 0xec, 0x0a, 0x97, 0x69, 0xb3, 0x0d, 0xda, 0x8a, 0x0c, - 0x42, 0x45, 0x84, 0x0d, 0x92, 0x67, 0x83, 0x50, 0x48, 0x6f, 0x9d, 0x56, 0xae, 0x67, 0xd5, 0x1f, - 0x92, 0xa8, 0x8f, 0x8b, 0xf5, 0x51, 0xa7, 0x4c, 0x7c, 0x4e, 0x39, 0xe9, 0x9c, 0x2a, 0xf5, 0xac, - 0xfa, 0x59, 0x06, 0x6a, 0x74, 0x2e, 0x6b, 0xfc, 0xb0, 0xcf, 0x72, 0x9d, 0x44, 0x63, 0x25, 0xd1, - 0x78, 0x80, 0x36, 0xbe, 0x0c, 0x79, 0xce, 0x89, 0xec, 0xb0, 0x9c, 0xe0, 0x0d, 0x0e, 0x9a, 0xcf, - 0x29, 0xa8, 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 0x31, 0x29, 0x42, - 0xe3, 0x88, 0xde, 0x2b, 0x71, 0xd1, 0x93, 0x6f, 0x91, 0xf7, 0x0d, 0xc9, 0xa5, 0xee, 0x39, 0xa8, - 0xac, 0x75, 0xdb, 0xed, 0x28, 0xb6, 0x3b, 0x05, 0x15, 0x8f, 0xfd, 0x64, 0xeb, 0x62, 0xe6, 0x99, - 0xcb, 0x1c, 0x46, 0x56, 0xbf, 0xea, 0x59, 0xa8, 0xf2, 0x26, 0x1c, 0xeb, 0x06, 0x14, 0x3d, 0xfe, - 0x9b, 0xd7, 0x8f, 0xbe, 0xd5, 0x79, 0x98, 0xd5, 0x70, 0x8b, 0x08, 0xbd, 0x77, 0xd3, 0x72, 0xee, - 0xf1, 0x61, 0xd4, 0xaf, 0x2b, 0x30, 0x17, 0x87, 0xf3, 0xbe, 0x5e, 0x80, 0x82, 0x61, 0x9a, 0x1e, - 0xf6, 0xfd, 0x81, 0x6c, 0xb9, 0xcc, 0xea, 0x68, 0x61, 0x65, 0x81, 0x72, 0x99, 0xa1, 0x29, 0xa7, - 0xea, 0x30, 0x73, 0x1d, 0x07, 0xb7, 0x70, 0xe0, 0x8d, 0x95, 0xce, 0x51, 0x27, 0x0b, 0x53, 0xda, - 0x98, 0x8b, 0x45, 0xf8, 0xa9, 0x7e, 0x5b, 0x01, 0x24, 0x8e, 0x30, 0x0e, 0x9b, 0x45, 0x2a, 0x67, - 0xe2, 0x54, 0x66, 0x09, 0x75, 0xed, 0x8e, 0xeb, 0x60, 0x27, 0x10, 0x03, 0xb1, 0x6a, 0x04, 0xa5, - 0xe2, 0xf7, 0x57, 0x0a, 0x54, 0xaf, 0x86, 0x10, 0x6a, 0x5f, 0x7a, 0xca, 0xa8, 0xc4, 0x94, 0x11, - 0xc1, 0xa4, 0xe7, 0xda, 0xe1, 0x40, 0xf4, 0x37, 0x7a, 0x0d, 0x80, 0x9d, 0x0b, 0x35, 0x5d, 0x93, - 0x0d, 0x30, 0x95, 0x0c, 0x81, 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xe0, 0x94, 0x9c, 0x24, 0xaa, 0xc6, 0xb5, 0x64, 0x36, 0xc6, 0xe0, 0x1d, 0xa5, 0xe4, - 0x31, 0xfc, 0xc1, 0x9b, 0x3e, 0xb5, 0x64, 0x9a, 0x43, 0xca, 0x00, 0x29, 0xd9, 0x10, 0x43, 0x0c, - 0x90, 0xcc, 0x10, 0x48, 0x19, 0x20, 0x25, 0x91, 0x60, 0x88, 0x48, 0x39, 0x76, 0x32, 0x9f, 0xe2, - 0x78, 0x65, 0xa7, 0xf7, 0x29, 0x8e, 0x57, 0x9a, 0x54, 0xc0, 0xd6, 0x0f, 0xbd, 0x03, 0xf6, 0x14, - 0x9b, 0xda, 0x77, 0x02, 0x7f, 0x10, 0xfa, 0x77, 0xa0, 0x18, 0x9e, 0x90, 0xa3, 0xa7, 0x53, 0x03, - 0xd2, 0x11, 0x3a, 0xfc, 0x00, 0xa6, 0x13, 0xfb, 0xa0, 0x29, 0x22, 0x2a, 0x3f, 0x21, 0x3f, 0x98, - 0x9f, 0xd0, 0x3b, 0x4b, 0x4d, 0x21, 0x42, 0xdf, 0x19, 0x75, 0x8a, 0x63, 0xe9, 0x3f, 0x94, 0x15, - 0x07, 0x20, 0x88, 0x0d, 0x1c, 0x40, 0x38, 0x46, 0x1d, 0x38, 0x80, 0x78, 0x80, 0xc8, 0x24, 0x32, - 0xb9, 0xcd, 0x9b, 0x22, 0x91, 0x29, 0x27, 0x19, 0x07, 0x91, 0x68, 0x0b, 0xca, 0xc2, 0x71, 0x0c, - 0x1a, 0x84, 0x9a, 0x78, 0x8e, 0x94, 0x12, 0x98, 0x48, 0x4e, 0x76, 0x22, 0xff, 0xce, 0x37, 0xd0, - 0xd3, 0xfd, 0x7b, 0x7c, 0xdb, 0x3d, 0xdd, 0xbf, 0x27, 0x76, 0xe2, 0xd5, 0x89, 0xd5, 0x2e, 0x54, - 0x36, 0x3c, 0xf7, 0x41, 0xf8, 0xfa, 0xf3, 0x17, 0x14, 0xb7, 0x5c, 0x6a, 0xc2, 0x14, 0xab, 0xa0, - 0xe3, 0x07, 0x81, 0xee, 0x6e, 0x7d, 0x88, 0x8e, 0xaf, 0xb0, 0xff, 0x71, 0xb5, 0x12, 0xfe, 0x8f, - 0xab, 0x95, 0x6b, 0x96, 0x8d, 0xef, 0xf0, 0xd4, 0xe2, 0x7f, 0x2b, 0x0c, 0xb8, 0xc2, 0x1c, 0x1d, - 0x4f, 0x68, 0xfc, 0xdf, 0x6c, 0xbd, 0xf5, 0x20, 0xb8, 0xb3, 0xf5, 0xe1, 0x95, 0x9b, 0x30, 0x65, - 0x45, 0x95, 0x5a, 0x5e, 0xa7, 0x79, 0xa5, 0xcc, 0xaa, 0x6e, 0x90, 0xd6, 0x1b, 0xca, 0xcf, 0x2c, - 0xb7, 0xac, 0x60, 0xa7, 0xbb, 0x45, 0x38, 0x7b, 0x9e, 0x55, 0x3b, 0x67, 0xb9, 0xfc, 0xd7, 0x79, - 0xa3, 0x63, 0xf1, 0x9f, 0x9d, 0xad, 0xdf, 0x53, 0x94, 0xad, 0x3c, 0x1d, 0xf3, 0xc2, 0xff, 0x07, - 0x00, 0x00, 0xff, 0xff, 0x95, 0xda, 0xce, 0x4c, 0xcb, 0x6b, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// MilvusServiceClient is the client API for MilvusService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MilvusServiceClient interface { - CreateCollection(ctx context.Context, in *CreateCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - DropCollection(ctx context.Context, in *DropCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - HasCollection(ctx context.Context, in *HasCollectionRequest, opts ...grpc.CallOption) (*BoolResponse, error) - LoadCollection(ctx context.Context, in *LoadCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - ReleaseCollection(ctx context.Context, in *ReleaseCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - DescribeCollection(ctx context.Context, in *DescribeCollectionRequest, opts ...grpc.CallOption) (*DescribeCollectionResponse, error) - GetCollectionStatistics(ctx context.Context, in *GetCollectionStatisticsRequest, opts ...grpc.CallOption) (*GetCollectionStatisticsResponse, error) - ShowCollections(ctx context.Context, in *ShowCollectionsRequest, opts ...grpc.CallOption) (*ShowCollectionsResponse, error) - AlterCollection(ctx context.Context, in *AlterCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - CreatePartition(ctx context.Context, in *CreatePartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - DropPartition(ctx context.Context, in *DropPartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - HasPartition(ctx context.Context, in *HasPartitionRequest, opts ...grpc.CallOption) (*BoolResponse, error) - LoadPartitions(ctx context.Context, in *LoadPartitionsRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - ReleasePartitions(ctx context.Context, in *ReleasePartitionsRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - GetPartitionStatistics(ctx context.Context, in *GetPartitionStatisticsRequest, opts ...grpc.CallOption) (*GetPartitionStatisticsResponse, error) - ShowPartitions(ctx context.Context, in *ShowPartitionsRequest, opts ...grpc.CallOption) (*ShowPartitionsResponse, error) - GetLoadingProgress(ctx context.Context, in *GetLoadingProgressRequest, opts ...grpc.CallOption) (*GetLoadingProgressResponse, error) - CreateAlias(ctx context.Context, in *CreateAliasRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - DropAlias(ctx context.Context, in *DropAliasRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - AlterAlias(ctx context.Context, in *AlterAliasRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - CreateIndex(ctx context.Context, in *CreateIndexRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - DescribeIndex(ctx context.Context, in *DescribeIndexRequest, opts ...grpc.CallOption) (*DescribeIndexResponse, error) - // Deprecated: use DescribeIndex instead - GetIndexState(ctx context.Context, in *GetIndexStateRequest, opts ...grpc.CallOption) (*GetIndexStateResponse, error) - // Deprecated: use DescribeIndex instead - GetIndexBuildProgress(ctx context.Context, in *GetIndexBuildProgressRequest, opts ...grpc.CallOption) (*GetIndexBuildProgressResponse, error) - DropIndex(ctx context.Context, in *DropIndexRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - Insert(ctx context.Context, in *InsertRequest, opts ...grpc.CallOption) (*MutationResult, error) - Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*MutationResult, error) - Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResults, error) - Flush(ctx context.Context, in *FlushRequest, opts ...grpc.CallOption) (*FlushResponse, error) - Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResults, error) - CalcDistance(ctx context.Context, in *CalcDistanceRequest, opts ...grpc.CallOption) (*CalcDistanceResults, error) - GetFlushState(ctx context.Context, in *GetFlushStateRequest, opts ...grpc.CallOption) (*GetFlushStateResponse, error) - GetPersistentSegmentInfo(ctx context.Context, in *GetPersistentSegmentInfoRequest, opts ...grpc.CallOption) (*GetPersistentSegmentInfoResponse, error) - GetQuerySegmentInfo(ctx context.Context, in *GetQuerySegmentInfoRequest, opts ...grpc.CallOption) (*GetQuerySegmentInfoResponse, error) - GetReplicas(ctx context.Context, in *GetReplicasRequest, opts ...grpc.CallOption) (*GetReplicasResponse, error) - Dummy(ctx context.Context, in *DummyRequest, opts ...grpc.CallOption) (*DummyResponse, error) - // TODO: remove - RegisterLink(ctx context.Context, in *RegisterLinkRequest, opts ...grpc.CallOption) (*RegisterLinkResponse, error) - // https://wiki.lfaidata.foundation/display/MIL/MEP+8+--+Add+metrics+for+proxy - GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error) - GetComponentStates(ctx context.Context, in *GetComponentStatesRequest, opts ...grpc.CallOption) (*ComponentStates, error) - LoadBalance(ctx context.Context, in *LoadBalanceRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - GetCompactionState(ctx context.Context, in *GetCompactionStateRequest, opts ...grpc.CallOption) (*GetCompactionStateResponse, error) - ManualCompaction(ctx context.Context, in *ManualCompactionRequest, opts ...grpc.CallOption) (*ManualCompactionResponse, error) - GetCompactionStateWithPlans(ctx context.Context, in *GetCompactionPlansRequest, opts ...grpc.CallOption) (*GetCompactionPlansResponse, error) - // https://wiki.lfaidata.foundation/display/MIL/MEP+24+--+Support+bulk+load - Import(ctx context.Context, in *ImportRequest, opts ...grpc.CallOption) (*ImportResponse, error) - GetImportState(ctx context.Context, in *GetImportStateRequest, opts ...grpc.CallOption) (*GetImportStateResponse, error) - ListImportTasks(ctx context.Context, in *ListImportTasksRequest, opts ...grpc.CallOption) (*ListImportTasksResponse, error) - // https://wiki.lfaidata.foundation/display/MIL/MEP+27+--+Support+Basic+Authentication - CreateCredential(ctx context.Context, in *CreateCredentialRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - UpdateCredential(ctx context.Context, in *UpdateCredentialRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - DeleteCredential(ctx context.Context, in *DeleteCredentialRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - ListCredUsers(ctx context.Context, in *ListCredUsersRequest, opts ...grpc.CallOption) (*ListCredUsersResponse, error) - // https://wiki.lfaidata.foundation/display/MIL/MEP+29+--+Support+Role-Based+Access+Control - CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - DropRole(ctx context.Context, in *DropRoleRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - OperateUserRole(ctx context.Context, in *OperateUserRoleRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - SelectRole(ctx context.Context, in *SelectRoleRequest, opts ...grpc.CallOption) (*SelectRoleResponse, error) - SelectUser(ctx context.Context, in *SelectUserRequest, opts ...grpc.CallOption) (*SelectUserResponse, error) - OperatePrivilege(ctx context.Context, in *OperatePrivilegeRequest, opts ...grpc.CallOption) (*commonpb.Status, error) - SelectGrant(ctx context.Context, in *SelectGrantRequest, opts ...grpc.CallOption) (*SelectGrantResponse, error) - GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error) -} - -type milvusServiceClient struct { - cc *grpc.ClientConn -} - -func NewMilvusServiceClient(cc *grpc.ClientConn) MilvusServiceClient { - return &milvusServiceClient{cc} -} - -func (c *milvusServiceClient) CreateCollection(ctx context.Context, in *CreateCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/CreateCollection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DropCollection(ctx context.Context, in *DropCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/DropCollection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) HasCollection(ctx context.Context, in *HasCollectionRequest, opts ...grpc.CallOption) (*BoolResponse, error) { - out := new(BoolResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/HasCollection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) LoadCollection(ctx context.Context, in *LoadCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/LoadCollection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) ReleaseCollection(ctx context.Context, in *ReleaseCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/ReleaseCollection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DescribeCollection(ctx context.Context, in *DescribeCollectionRequest, opts ...grpc.CallOption) (*DescribeCollectionResponse, error) { - out := new(DescribeCollectionResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/DescribeCollection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetCollectionStatistics(ctx context.Context, in *GetCollectionStatisticsRequest, opts ...grpc.CallOption) (*GetCollectionStatisticsResponse, error) { - out := new(GetCollectionStatisticsResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetCollectionStatistics", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) ShowCollections(ctx context.Context, in *ShowCollectionsRequest, opts ...grpc.CallOption) (*ShowCollectionsResponse, error) { - out := new(ShowCollectionsResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/ShowCollections", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) AlterCollection(ctx context.Context, in *AlterCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/AlterCollection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) CreatePartition(ctx context.Context, in *CreatePartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/CreatePartition", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DropPartition(ctx context.Context, in *DropPartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/DropPartition", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) HasPartition(ctx context.Context, in *HasPartitionRequest, opts ...grpc.CallOption) (*BoolResponse, error) { - out := new(BoolResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/HasPartition", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) LoadPartitions(ctx context.Context, in *LoadPartitionsRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/LoadPartitions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) ReleasePartitions(ctx context.Context, in *ReleasePartitionsRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/ReleasePartitions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetPartitionStatistics(ctx context.Context, in *GetPartitionStatisticsRequest, opts ...grpc.CallOption) (*GetPartitionStatisticsResponse, error) { - out := new(GetPartitionStatisticsResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetPartitionStatistics", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) ShowPartitions(ctx context.Context, in *ShowPartitionsRequest, opts ...grpc.CallOption) (*ShowPartitionsResponse, error) { - out := new(ShowPartitionsResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/ShowPartitions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetLoadingProgress(ctx context.Context, in *GetLoadingProgressRequest, opts ...grpc.CallOption) (*GetLoadingProgressResponse, error) { - out := new(GetLoadingProgressResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetLoadingProgress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) CreateAlias(ctx context.Context, in *CreateAliasRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/CreateAlias", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DropAlias(ctx context.Context, in *DropAliasRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/DropAlias", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) AlterAlias(ctx context.Context, in *AlterAliasRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/AlterAlias", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) CreateIndex(ctx context.Context, in *CreateIndexRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/CreateIndex", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DescribeIndex(ctx context.Context, in *DescribeIndexRequest, opts ...grpc.CallOption) (*DescribeIndexResponse, error) { - out := new(DescribeIndexResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/DescribeIndex", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetIndexState(ctx context.Context, in *GetIndexStateRequest, opts ...grpc.CallOption) (*GetIndexStateResponse, error) { - out := new(GetIndexStateResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetIndexState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetIndexBuildProgress(ctx context.Context, in *GetIndexBuildProgressRequest, opts ...grpc.CallOption) (*GetIndexBuildProgressResponse, error) { - out := new(GetIndexBuildProgressResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetIndexBuildProgress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DropIndex(ctx context.Context, in *DropIndexRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/DropIndex", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) Insert(ctx context.Context, in *InsertRequest, opts ...grpc.CallOption) (*MutationResult, error) { - out := new(MutationResult) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/Insert", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*MutationResult, error) { - out := new(MutationResult) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/Delete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResults, error) { - out := new(SearchResults) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/Search", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) Flush(ctx context.Context, in *FlushRequest, opts ...grpc.CallOption) (*FlushResponse, error) { - out := new(FlushResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/Flush", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResults, error) { - out := new(QueryResults) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/Query", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) CalcDistance(ctx context.Context, in *CalcDistanceRequest, opts ...grpc.CallOption) (*CalcDistanceResults, error) { - out := new(CalcDistanceResults) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/CalcDistance", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetFlushState(ctx context.Context, in *GetFlushStateRequest, opts ...grpc.CallOption) (*GetFlushStateResponse, error) { - out := new(GetFlushStateResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetFlushState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetPersistentSegmentInfo(ctx context.Context, in *GetPersistentSegmentInfoRequest, opts ...grpc.CallOption) (*GetPersistentSegmentInfoResponse, error) { - out := new(GetPersistentSegmentInfoResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetPersistentSegmentInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetQuerySegmentInfo(ctx context.Context, in *GetQuerySegmentInfoRequest, opts ...grpc.CallOption) (*GetQuerySegmentInfoResponse, error) { - out := new(GetQuerySegmentInfoResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetQuerySegmentInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetReplicas(ctx context.Context, in *GetReplicasRequest, opts ...grpc.CallOption) (*GetReplicasResponse, error) { - out := new(GetReplicasResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetReplicas", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) Dummy(ctx context.Context, in *DummyRequest, opts ...grpc.CallOption) (*DummyResponse, error) { - out := new(DummyResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/Dummy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) RegisterLink(ctx context.Context, in *RegisterLinkRequest, opts ...grpc.CallOption) (*RegisterLinkResponse, error) { - out := new(RegisterLinkResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/RegisterLink", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error) { - out := new(GetMetricsResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetMetrics", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetComponentStates(ctx context.Context, in *GetComponentStatesRequest, opts ...grpc.CallOption) (*ComponentStates, error) { - out := new(ComponentStates) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetComponentStates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) LoadBalance(ctx context.Context, in *LoadBalanceRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/LoadBalance", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetCompactionState(ctx context.Context, in *GetCompactionStateRequest, opts ...grpc.CallOption) (*GetCompactionStateResponse, error) { - out := new(GetCompactionStateResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetCompactionState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) ManualCompaction(ctx context.Context, in *ManualCompactionRequest, opts ...grpc.CallOption) (*ManualCompactionResponse, error) { - out := new(ManualCompactionResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/ManualCompaction", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetCompactionStateWithPlans(ctx context.Context, in *GetCompactionPlansRequest, opts ...grpc.CallOption) (*GetCompactionPlansResponse, error) { - out := new(GetCompactionPlansResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetCompactionStateWithPlans", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) Import(ctx context.Context, in *ImportRequest, opts ...grpc.CallOption) (*ImportResponse, error) { - out := new(ImportResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/Import", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetImportState(ctx context.Context, in *GetImportStateRequest, opts ...grpc.CallOption) (*GetImportStateResponse, error) { - out := new(GetImportStateResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetImportState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) ListImportTasks(ctx context.Context, in *ListImportTasksRequest, opts ...grpc.CallOption) (*ListImportTasksResponse, error) { - out := new(ListImportTasksResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/ListImportTasks", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) CreateCredential(ctx context.Context, in *CreateCredentialRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/CreateCredential", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) UpdateCredential(ctx context.Context, in *UpdateCredentialRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/UpdateCredential", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DeleteCredential(ctx context.Context, in *DeleteCredentialRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/DeleteCredential", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) ListCredUsers(ctx context.Context, in *ListCredUsersRequest, opts ...grpc.CallOption) (*ListCredUsersResponse, error) { - out := new(ListCredUsersResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/ListCredUsers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/CreateRole", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) DropRole(ctx context.Context, in *DropRoleRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/DropRole", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) OperateUserRole(ctx context.Context, in *OperateUserRoleRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/OperateUserRole", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) SelectRole(ctx context.Context, in *SelectRoleRequest, opts ...grpc.CallOption) (*SelectRoleResponse, error) { - out := new(SelectRoleResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/SelectRole", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) SelectUser(ctx context.Context, in *SelectUserRequest, opts ...grpc.CallOption) (*SelectUserResponse, error) { - out := new(SelectUserResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/SelectUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) OperatePrivilege(ctx context.Context, in *OperatePrivilegeRequest, opts ...grpc.CallOption) (*commonpb.Status, error) { - out := new(commonpb.Status) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/OperatePrivilege", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) SelectGrant(ctx context.Context, in *SelectGrantRequest, opts ...grpc.CallOption) (*SelectGrantResponse, error) { - out := new(SelectGrantResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/SelectGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *milvusServiceClient) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error) { - out := new(GetVersionResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.MilvusService/GetVersion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MilvusServiceServer is the server API for MilvusService service. -type MilvusServiceServer interface { - CreateCollection(context.Context, *CreateCollectionRequest) (*commonpb.Status, error) - DropCollection(context.Context, *DropCollectionRequest) (*commonpb.Status, error) - HasCollection(context.Context, *HasCollectionRequest) (*BoolResponse, error) - LoadCollection(context.Context, *LoadCollectionRequest) (*commonpb.Status, error) - ReleaseCollection(context.Context, *ReleaseCollectionRequest) (*commonpb.Status, error) - DescribeCollection(context.Context, *DescribeCollectionRequest) (*DescribeCollectionResponse, error) - GetCollectionStatistics(context.Context, *GetCollectionStatisticsRequest) (*GetCollectionStatisticsResponse, error) - ShowCollections(context.Context, *ShowCollectionsRequest) (*ShowCollectionsResponse, error) - AlterCollection(context.Context, *AlterCollectionRequest) (*commonpb.Status, error) - CreatePartition(context.Context, *CreatePartitionRequest) (*commonpb.Status, error) - DropPartition(context.Context, *DropPartitionRequest) (*commonpb.Status, error) - HasPartition(context.Context, *HasPartitionRequest) (*BoolResponse, error) - LoadPartitions(context.Context, *LoadPartitionsRequest) (*commonpb.Status, error) - ReleasePartitions(context.Context, *ReleasePartitionsRequest) (*commonpb.Status, error) - GetPartitionStatistics(context.Context, *GetPartitionStatisticsRequest) (*GetPartitionStatisticsResponse, error) - ShowPartitions(context.Context, *ShowPartitionsRequest) (*ShowPartitionsResponse, error) - GetLoadingProgress(context.Context, *GetLoadingProgressRequest) (*GetLoadingProgressResponse, error) - CreateAlias(context.Context, *CreateAliasRequest) (*commonpb.Status, error) - DropAlias(context.Context, *DropAliasRequest) (*commonpb.Status, error) - AlterAlias(context.Context, *AlterAliasRequest) (*commonpb.Status, error) - CreateIndex(context.Context, *CreateIndexRequest) (*commonpb.Status, error) - DescribeIndex(context.Context, *DescribeIndexRequest) (*DescribeIndexResponse, error) - // Deprecated: use DescribeIndex instead - GetIndexState(context.Context, *GetIndexStateRequest) (*GetIndexStateResponse, error) - // Deprecated: use DescribeIndex instead - GetIndexBuildProgress(context.Context, *GetIndexBuildProgressRequest) (*GetIndexBuildProgressResponse, error) - DropIndex(context.Context, *DropIndexRequest) (*commonpb.Status, error) - Insert(context.Context, *InsertRequest) (*MutationResult, error) - Delete(context.Context, *DeleteRequest) (*MutationResult, error) - Search(context.Context, *SearchRequest) (*SearchResults, error) - Flush(context.Context, *FlushRequest) (*FlushResponse, error) - Query(context.Context, *QueryRequest) (*QueryResults, error) - CalcDistance(context.Context, *CalcDistanceRequest) (*CalcDistanceResults, error) - GetFlushState(context.Context, *GetFlushStateRequest) (*GetFlushStateResponse, error) - GetPersistentSegmentInfo(context.Context, *GetPersistentSegmentInfoRequest) (*GetPersistentSegmentInfoResponse, error) - GetQuerySegmentInfo(context.Context, *GetQuerySegmentInfoRequest) (*GetQuerySegmentInfoResponse, error) - GetReplicas(context.Context, *GetReplicasRequest) (*GetReplicasResponse, error) - Dummy(context.Context, *DummyRequest) (*DummyResponse, error) - // TODO: remove - RegisterLink(context.Context, *RegisterLinkRequest) (*RegisterLinkResponse, error) - // https://wiki.lfaidata.foundation/display/MIL/MEP+8+--+Add+metrics+for+proxy - GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error) - GetComponentStates(context.Context, *GetComponentStatesRequest) (*ComponentStates, error) - LoadBalance(context.Context, *LoadBalanceRequest) (*commonpb.Status, error) - GetCompactionState(context.Context, *GetCompactionStateRequest) (*GetCompactionStateResponse, error) - ManualCompaction(context.Context, *ManualCompactionRequest) (*ManualCompactionResponse, error) - GetCompactionStateWithPlans(context.Context, *GetCompactionPlansRequest) (*GetCompactionPlansResponse, error) - // https://wiki.lfaidata.foundation/display/MIL/MEP+24+--+Support+bulk+load - Import(context.Context, *ImportRequest) (*ImportResponse, error) - GetImportState(context.Context, *GetImportStateRequest) (*GetImportStateResponse, error) - ListImportTasks(context.Context, *ListImportTasksRequest) (*ListImportTasksResponse, error) - // https://wiki.lfaidata.foundation/display/MIL/MEP+27+--+Support+Basic+Authentication - CreateCredential(context.Context, *CreateCredentialRequest) (*commonpb.Status, error) - UpdateCredential(context.Context, *UpdateCredentialRequest) (*commonpb.Status, error) - DeleteCredential(context.Context, *DeleteCredentialRequest) (*commonpb.Status, error) - ListCredUsers(context.Context, *ListCredUsersRequest) (*ListCredUsersResponse, error) - // https://wiki.lfaidata.foundation/display/MIL/MEP+29+--+Support+Role-Based+Access+Control - CreateRole(context.Context, *CreateRoleRequest) (*commonpb.Status, error) - DropRole(context.Context, *DropRoleRequest) (*commonpb.Status, error) - OperateUserRole(context.Context, *OperateUserRoleRequest) (*commonpb.Status, error) - SelectRole(context.Context, *SelectRoleRequest) (*SelectRoleResponse, error) - SelectUser(context.Context, *SelectUserRequest) (*SelectUserResponse, error) - OperatePrivilege(context.Context, *OperatePrivilegeRequest) (*commonpb.Status, error) - SelectGrant(context.Context, *SelectGrantRequest) (*SelectGrantResponse, error) - GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error) -} - -// UnimplementedMilvusServiceServer can be embedded to have forward compatible implementations. -type UnimplementedMilvusServiceServer struct { -} - -func (*UnimplementedMilvusServiceServer) CreateCollection(ctx context.Context, req *CreateCollectionRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateCollection not implemented") -} -func (*UnimplementedMilvusServiceServer) DropCollection(ctx context.Context, req *DropCollectionRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method DropCollection not implemented") -} -func (*UnimplementedMilvusServiceServer) HasCollection(ctx context.Context, req *HasCollectionRequest) (*BoolResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HasCollection not implemented") -} -func (*UnimplementedMilvusServiceServer) LoadCollection(ctx context.Context, req *LoadCollectionRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadCollection not implemented") -} -func (*UnimplementedMilvusServiceServer) ReleaseCollection(ctx context.Context, req *ReleaseCollectionRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReleaseCollection not implemented") -} -func (*UnimplementedMilvusServiceServer) DescribeCollection(ctx context.Context, req *DescribeCollectionRequest) (*DescribeCollectionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeCollection not implemented") -} -func (*UnimplementedMilvusServiceServer) GetCollectionStatistics(ctx context.Context, req *GetCollectionStatisticsRequest) (*GetCollectionStatisticsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCollectionStatistics not implemented") -} -func (*UnimplementedMilvusServiceServer) ShowCollections(ctx context.Context, req *ShowCollectionsRequest) (*ShowCollectionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ShowCollections not implemented") -} -func (*UnimplementedMilvusServiceServer) AlterCollection(ctx context.Context, req *AlterCollectionRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method AlterCollection not implemented") -} -func (*UnimplementedMilvusServiceServer) CreatePartition(ctx context.Context, req *CreatePartitionRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreatePartition not implemented") -} -func (*UnimplementedMilvusServiceServer) DropPartition(ctx context.Context, req *DropPartitionRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method DropPartition not implemented") -} -func (*UnimplementedMilvusServiceServer) HasPartition(ctx context.Context, req *HasPartitionRequest) (*BoolResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HasPartition not implemented") -} -func (*UnimplementedMilvusServiceServer) LoadPartitions(ctx context.Context, req *LoadPartitionsRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadPartitions not implemented") -} -func (*UnimplementedMilvusServiceServer) ReleasePartitions(ctx context.Context, req *ReleasePartitionsRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReleasePartitions not implemented") -} -func (*UnimplementedMilvusServiceServer) GetPartitionStatistics(ctx context.Context, req *GetPartitionStatisticsRequest) (*GetPartitionStatisticsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPartitionStatistics not implemented") -} -func (*UnimplementedMilvusServiceServer) ShowPartitions(ctx context.Context, req *ShowPartitionsRequest) (*ShowPartitionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ShowPartitions not implemented") -} -func (*UnimplementedMilvusServiceServer) GetLoadingProgress(ctx context.Context, req *GetLoadingProgressRequest) (*GetLoadingProgressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLoadingProgress not implemented") -} -func (*UnimplementedMilvusServiceServer) CreateAlias(ctx context.Context, req *CreateAliasRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateAlias not implemented") -} -func (*UnimplementedMilvusServiceServer) DropAlias(ctx context.Context, req *DropAliasRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method DropAlias not implemented") -} -func (*UnimplementedMilvusServiceServer) AlterAlias(ctx context.Context, req *AlterAliasRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method AlterAlias not implemented") -} -func (*UnimplementedMilvusServiceServer) CreateIndex(ctx context.Context, req *CreateIndexRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateIndex not implemented") -} -func (*UnimplementedMilvusServiceServer) DescribeIndex(ctx context.Context, req *DescribeIndexRequest) (*DescribeIndexResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeIndex not implemented") -} -func (*UnimplementedMilvusServiceServer) GetIndexState(ctx context.Context, req *GetIndexStateRequest) (*GetIndexStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetIndexState not implemented") -} -func (*UnimplementedMilvusServiceServer) GetIndexBuildProgress(ctx context.Context, req *GetIndexBuildProgressRequest) (*GetIndexBuildProgressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetIndexBuildProgress not implemented") -} -func (*UnimplementedMilvusServiceServer) DropIndex(ctx context.Context, req *DropIndexRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method DropIndex not implemented") -} -func (*UnimplementedMilvusServiceServer) Insert(ctx context.Context, req *InsertRequest) (*MutationResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method Insert not implemented") -} -func (*UnimplementedMilvusServiceServer) Delete(ctx context.Context, req *DeleteRequest) (*MutationResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") -} -func (*UnimplementedMilvusServiceServer) Search(ctx context.Context, req *SearchRequest) (*SearchResults, error) { - return nil, status.Errorf(codes.Unimplemented, "method Search not implemented") -} -func (*UnimplementedMilvusServiceServer) Flush(ctx context.Context, req *FlushRequest) (*FlushResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented") -} -func (*UnimplementedMilvusServiceServer) Query(ctx context.Context, req *QueryRequest) (*QueryResults, error) { - return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") -} -func (*UnimplementedMilvusServiceServer) CalcDistance(ctx context.Context, req *CalcDistanceRequest) (*CalcDistanceResults, error) { - return nil, status.Errorf(codes.Unimplemented, "method CalcDistance not implemented") -} -func (*UnimplementedMilvusServiceServer) GetFlushState(ctx context.Context, req *GetFlushStateRequest) (*GetFlushStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetFlushState not implemented") -} -func (*UnimplementedMilvusServiceServer) GetPersistentSegmentInfo(ctx context.Context, req *GetPersistentSegmentInfoRequest) (*GetPersistentSegmentInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPersistentSegmentInfo not implemented") -} -func (*UnimplementedMilvusServiceServer) GetQuerySegmentInfo(ctx context.Context, req *GetQuerySegmentInfoRequest) (*GetQuerySegmentInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetQuerySegmentInfo not implemented") -} -func (*UnimplementedMilvusServiceServer) GetReplicas(ctx context.Context, req *GetReplicasRequest) (*GetReplicasResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReplicas not implemented") -} -func (*UnimplementedMilvusServiceServer) Dummy(ctx context.Context, req *DummyRequest) (*DummyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Dummy not implemented") -} -func (*UnimplementedMilvusServiceServer) RegisterLink(ctx context.Context, req *RegisterLinkRequest) (*RegisterLinkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterLink not implemented") -} -func (*UnimplementedMilvusServiceServer) GetMetrics(ctx context.Context, req *GetMetricsRequest) (*GetMetricsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented") -} -func (*UnimplementedMilvusServiceServer) GetComponentStates(ctx context.Context, req *GetComponentStatesRequest) (*ComponentStates, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetComponentStates not implemented") -} -func (*UnimplementedMilvusServiceServer) LoadBalance(ctx context.Context, req *LoadBalanceRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadBalance not implemented") -} -func (*UnimplementedMilvusServiceServer) GetCompactionState(ctx context.Context, req *GetCompactionStateRequest) (*GetCompactionStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCompactionState not implemented") -} -func (*UnimplementedMilvusServiceServer) ManualCompaction(ctx context.Context, req *ManualCompactionRequest) (*ManualCompactionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ManualCompaction not implemented") -} -func (*UnimplementedMilvusServiceServer) GetCompactionStateWithPlans(ctx context.Context, req *GetCompactionPlansRequest) (*GetCompactionPlansResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCompactionStateWithPlans not implemented") -} -func (*UnimplementedMilvusServiceServer) Import(ctx context.Context, req *ImportRequest) (*ImportResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Import not implemented") -} -func (*UnimplementedMilvusServiceServer) GetImportState(ctx context.Context, req *GetImportStateRequest) (*GetImportStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetImportState not implemented") -} -func (*UnimplementedMilvusServiceServer) ListImportTasks(ctx context.Context, req *ListImportTasksRequest) (*ListImportTasksResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListImportTasks not implemented") -} -func (*UnimplementedMilvusServiceServer) CreateCredential(ctx context.Context, req *CreateCredentialRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateCredential not implemented") -} -func (*UnimplementedMilvusServiceServer) UpdateCredential(ctx context.Context, req *UpdateCredentialRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateCredential not implemented") -} -func (*UnimplementedMilvusServiceServer) DeleteCredential(ctx context.Context, req *DeleteCredentialRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteCredential not implemented") -} -func (*UnimplementedMilvusServiceServer) ListCredUsers(ctx context.Context, req *ListCredUsersRequest) (*ListCredUsersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListCredUsers not implemented") -} -func (*UnimplementedMilvusServiceServer) CreateRole(ctx context.Context, req *CreateRoleRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateRole not implemented") -} -func (*UnimplementedMilvusServiceServer) DropRole(ctx context.Context, req *DropRoleRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method DropRole not implemented") -} -func (*UnimplementedMilvusServiceServer) OperateUserRole(ctx context.Context, req *OperateUserRoleRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method OperateUserRole not implemented") -} -func (*UnimplementedMilvusServiceServer) SelectRole(ctx context.Context, req *SelectRoleRequest) (*SelectRoleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SelectRole not implemented") -} -func (*UnimplementedMilvusServiceServer) SelectUser(ctx context.Context, req *SelectUserRequest) (*SelectUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SelectUser not implemented") -} -func (*UnimplementedMilvusServiceServer) OperatePrivilege(ctx context.Context, req *OperatePrivilegeRequest) (*commonpb.Status, error) { - return nil, status.Errorf(codes.Unimplemented, "method OperatePrivilege not implemented") -} -func (*UnimplementedMilvusServiceServer) SelectGrant(ctx context.Context, req *SelectGrantRequest) (*SelectGrantResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SelectGrant not implemented") -} -func (*UnimplementedMilvusServiceServer) GetVersion(ctx context.Context, req *GetVersionRequest) (*GetVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") -} - -func RegisterMilvusServiceServer(s *grpc.Server, srv MilvusServiceServer) { - s.RegisterService(&_MilvusService_serviceDesc, srv) -} - -func _MilvusService_CreateCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateCollectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).CreateCollection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/CreateCollection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).CreateCollection(ctx, req.(*CreateCollectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DropCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DropCollectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DropCollection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/DropCollection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DropCollection(ctx, req.(*DropCollectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_HasCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(HasCollectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).HasCollection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/HasCollection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).HasCollection(ctx, req.(*HasCollectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_LoadCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoadCollectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).LoadCollection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/LoadCollection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).LoadCollection(ctx, req.(*LoadCollectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_ReleaseCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReleaseCollectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).ReleaseCollection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/ReleaseCollection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).ReleaseCollection(ctx, req.(*ReleaseCollectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DescribeCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeCollectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DescribeCollection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/DescribeCollection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DescribeCollection(ctx, req.(*DescribeCollectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetCollectionStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetCollectionStatisticsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetCollectionStatistics(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetCollectionStatistics", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetCollectionStatistics(ctx, req.(*GetCollectionStatisticsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_ShowCollections_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ShowCollectionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).ShowCollections(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/ShowCollections", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).ShowCollections(ctx, req.(*ShowCollectionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_AlterCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AlterCollectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).AlterCollection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/AlterCollection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).AlterCollection(ctx, req.(*AlterCollectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_CreatePartition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreatePartitionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).CreatePartition(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/CreatePartition", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).CreatePartition(ctx, req.(*CreatePartitionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DropPartition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DropPartitionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DropPartition(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/DropPartition", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DropPartition(ctx, req.(*DropPartitionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_HasPartition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(HasPartitionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).HasPartition(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/HasPartition", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).HasPartition(ctx, req.(*HasPartitionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_LoadPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoadPartitionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).LoadPartitions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/LoadPartitions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).LoadPartitions(ctx, req.(*LoadPartitionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_ReleasePartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReleasePartitionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).ReleasePartitions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/ReleasePartitions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).ReleasePartitions(ctx, req.(*ReleasePartitionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetPartitionStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetPartitionStatisticsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetPartitionStatistics(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetPartitionStatistics", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetPartitionStatistics(ctx, req.(*GetPartitionStatisticsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_ShowPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ShowPartitionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).ShowPartitions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/ShowPartitions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).ShowPartitions(ctx, req.(*ShowPartitionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetLoadingProgress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetLoadingProgressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetLoadingProgress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetLoadingProgress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetLoadingProgress(ctx, req.(*GetLoadingProgressRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_CreateAlias_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateAliasRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).CreateAlias(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/CreateAlias", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).CreateAlias(ctx, req.(*CreateAliasRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DropAlias_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DropAliasRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DropAlias(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/DropAlias", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DropAlias(ctx, req.(*DropAliasRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_AlterAlias_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AlterAliasRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).AlterAlias(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/AlterAlias", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).AlterAlias(ctx, req.(*AlterAliasRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_CreateIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateIndexRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).CreateIndex(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/CreateIndex", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).CreateIndex(ctx, req.(*CreateIndexRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DescribeIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeIndexRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DescribeIndex(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/DescribeIndex", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DescribeIndex(ctx, req.(*DescribeIndexRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetIndexState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetIndexStateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetIndexState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetIndexState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetIndexState(ctx, req.(*GetIndexStateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetIndexBuildProgress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetIndexBuildProgressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetIndexBuildProgress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetIndexBuildProgress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetIndexBuildProgress(ctx, req.(*GetIndexBuildProgressRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DropIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DropIndexRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DropIndex(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/DropIndex", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DropIndex(ctx, req.(*DropIndexRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_Insert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InsertRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).Insert(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/Insert", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).Insert(ctx, req.(*InsertRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).Delete(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/Delete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).Delete(ctx, req.(*DeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_Search_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).Search(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/Search", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).Search(ctx, req.(*SearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FlushRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).Flush(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/Flush", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).Flush(ctx, req.(*FlushRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).Query(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/Query", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).Query(ctx, req.(*QueryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_CalcDistance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CalcDistanceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).CalcDistance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/CalcDistance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).CalcDistance(ctx, req.(*CalcDistanceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetFlushState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetFlushStateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetFlushState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetFlushState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetFlushState(ctx, req.(*GetFlushStateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetPersistentSegmentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetPersistentSegmentInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetPersistentSegmentInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetPersistentSegmentInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetPersistentSegmentInfo(ctx, req.(*GetPersistentSegmentInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetQuerySegmentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetQuerySegmentInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetQuerySegmentInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetQuerySegmentInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetQuerySegmentInfo(ctx, req.(*GetQuerySegmentInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetReplicas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetReplicasRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetReplicas(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetReplicas", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetReplicas(ctx, req.(*GetReplicasRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_Dummy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DummyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).Dummy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/Dummy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).Dummy(ctx, req.(*DummyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_RegisterLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RegisterLinkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).RegisterLink(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/RegisterLink", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).RegisterLink(ctx, req.(*RegisterLinkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetMetricsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetMetrics(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetMetrics", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetMetrics(ctx, req.(*GetMetricsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetComponentStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetComponentStatesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetComponentStates(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetComponentStates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetComponentStates(ctx, req.(*GetComponentStatesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_LoadBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoadBalanceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).LoadBalance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/LoadBalance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).LoadBalance(ctx, req.(*LoadBalanceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetCompactionState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetCompactionStateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetCompactionState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetCompactionState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetCompactionState(ctx, req.(*GetCompactionStateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_ManualCompaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ManualCompactionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).ManualCompaction(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/ManualCompaction", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).ManualCompaction(ctx, req.(*ManualCompactionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetCompactionStateWithPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetCompactionPlansRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetCompactionStateWithPlans(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetCompactionStateWithPlans", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetCompactionStateWithPlans(ctx, req.(*GetCompactionPlansRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_Import_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ImportRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).Import(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/Import", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).Import(ctx, req.(*ImportRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetImportState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetImportStateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetImportState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetImportState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetImportState(ctx, req.(*GetImportStateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_ListImportTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListImportTasksRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).ListImportTasks(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/ListImportTasks", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).ListImportTasks(ctx, req.(*ListImportTasksRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_CreateCredential_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateCredentialRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).CreateCredential(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/CreateCredential", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).CreateCredential(ctx, req.(*CreateCredentialRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_UpdateCredential_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateCredentialRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).UpdateCredential(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/UpdateCredential", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).UpdateCredential(ctx, req.(*UpdateCredentialRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DeleteCredential_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteCredentialRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DeleteCredential(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/DeleteCredential", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DeleteCredential(ctx, req.(*DeleteCredentialRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_ListCredUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListCredUsersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).ListCredUsers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/ListCredUsers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).ListCredUsers(ctx, req.(*ListCredUsersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_CreateRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRoleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).CreateRole(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/CreateRole", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).CreateRole(ctx, req.(*CreateRoleRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_DropRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DropRoleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).DropRole(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/DropRole", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).DropRole(ctx, req.(*DropRoleRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_OperateUserRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OperateUserRoleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).OperateUserRole(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/OperateUserRole", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).OperateUserRole(ctx, req.(*OperateUserRoleRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_SelectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SelectRoleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).SelectRole(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/SelectRole", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).SelectRole(ctx, req.(*SelectRoleRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_SelectUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SelectUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).SelectUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/SelectUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).SelectUser(ctx, req.(*SelectUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_OperatePrivilege_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OperatePrivilegeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).OperatePrivilege(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/OperatePrivilege", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).OperatePrivilege(ctx, req.(*OperatePrivilegeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_SelectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SelectGrantRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).SelectGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/SelectGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).SelectGrant(ctx, req.(*SelectGrantRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MilvusService_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetVersionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MilvusServiceServer).GetVersion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.MilvusService/GetVersion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MilvusServiceServer).GetVersion(ctx, req.(*GetVersionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _MilvusService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "milvus.proto.milvus.MilvusService", - HandlerType: (*MilvusServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateCollection", - Handler: _MilvusService_CreateCollection_Handler, - }, - { - MethodName: "DropCollection", - Handler: _MilvusService_DropCollection_Handler, - }, - { - MethodName: "HasCollection", - Handler: _MilvusService_HasCollection_Handler, - }, - { - MethodName: "LoadCollection", - Handler: _MilvusService_LoadCollection_Handler, - }, - { - MethodName: "ReleaseCollection", - Handler: _MilvusService_ReleaseCollection_Handler, - }, - { - MethodName: "DescribeCollection", - Handler: _MilvusService_DescribeCollection_Handler, - }, - { - MethodName: "GetCollectionStatistics", - Handler: _MilvusService_GetCollectionStatistics_Handler, - }, - { - MethodName: "ShowCollections", - Handler: _MilvusService_ShowCollections_Handler, - }, - { - MethodName: "AlterCollection", - Handler: _MilvusService_AlterCollection_Handler, - }, - { - MethodName: "CreatePartition", - Handler: _MilvusService_CreatePartition_Handler, - }, - { - MethodName: "DropPartition", - Handler: _MilvusService_DropPartition_Handler, - }, - { - MethodName: "HasPartition", - Handler: _MilvusService_HasPartition_Handler, - }, - { - MethodName: "LoadPartitions", - Handler: _MilvusService_LoadPartitions_Handler, - }, - { - MethodName: "ReleasePartitions", - Handler: _MilvusService_ReleasePartitions_Handler, - }, - { - MethodName: "GetPartitionStatistics", - Handler: _MilvusService_GetPartitionStatistics_Handler, - }, - { - MethodName: "ShowPartitions", - Handler: _MilvusService_ShowPartitions_Handler, - }, - { - MethodName: "GetLoadingProgress", - Handler: _MilvusService_GetLoadingProgress_Handler, - }, - { - MethodName: "CreateAlias", - Handler: _MilvusService_CreateAlias_Handler, - }, - { - MethodName: "DropAlias", - Handler: _MilvusService_DropAlias_Handler, - }, - { - MethodName: "AlterAlias", - Handler: _MilvusService_AlterAlias_Handler, - }, - { - MethodName: "CreateIndex", - Handler: _MilvusService_CreateIndex_Handler, - }, - { - MethodName: "DescribeIndex", - Handler: _MilvusService_DescribeIndex_Handler, - }, - { - MethodName: "GetIndexState", - Handler: _MilvusService_GetIndexState_Handler, - }, - { - MethodName: "GetIndexBuildProgress", - Handler: _MilvusService_GetIndexBuildProgress_Handler, - }, - { - MethodName: "DropIndex", - Handler: _MilvusService_DropIndex_Handler, - }, - { - MethodName: "Insert", - Handler: _MilvusService_Insert_Handler, - }, - { - MethodName: "Delete", - Handler: _MilvusService_Delete_Handler, - }, - { - MethodName: "Search", - Handler: _MilvusService_Search_Handler, - }, - { - MethodName: "Flush", - Handler: _MilvusService_Flush_Handler, - }, - { - MethodName: "Query", - Handler: _MilvusService_Query_Handler, - }, - { - MethodName: "CalcDistance", - Handler: _MilvusService_CalcDistance_Handler, - }, - { - MethodName: "GetFlushState", - Handler: _MilvusService_GetFlushState_Handler, - }, - { - MethodName: "GetPersistentSegmentInfo", - Handler: _MilvusService_GetPersistentSegmentInfo_Handler, - }, - { - MethodName: "GetQuerySegmentInfo", - Handler: _MilvusService_GetQuerySegmentInfo_Handler, - }, - { - MethodName: "GetReplicas", - Handler: _MilvusService_GetReplicas_Handler, - }, - { - MethodName: "Dummy", - Handler: _MilvusService_Dummy_Handler, - }, - { - MethodName: "RegisterLink", - Handler: _MilvusService_RegisterLink_Handler, - }, - { - MethodName: "GetMetrics", - Handler: _MilvusService_GetMetrics_Handler, - }, - { - MethodName: "GetComponentStates", - Handler: _MilvusService_GetComponentStates_Handler, - }, - { - MethodName: "LoadBalance", - Handler: _MilvusService_LoadBalance_Handler, - }, - { - MethodName: "GetCompactionState", - Handler: _MilvusService_GetCompactionState_Handler, - }, - { - MethodName: "ManualCompaction", - Handler: _MilvusService_ManualCompaction_Handler, - }, - { - MethodName: "GetCompactionStateWithPlans", - Handler: _MilvusService_GetCompactionStateWithPlans_Handler, - }, - { - MethodName: "Import", - Handler: _MilvusService_Import_Handler, - }, - { - MethodName: "GetImportState", - Handler: _MilvusService_GetImportState_Handler, - }, - { - MethodName: "ListImportTasks", - Handler: _MilvusService_ListImportTasks_Handler, - }, - { - MethodName: "CreateCredential", - Handler: _MilvusService_CreateCredential_Handler, - }, - { - MethodName: "UpdateCredential", - Handler: _MilvusService_UpdateCredential_Handler, - }, - { - MethodName: "DeleteCredential", - Handler: _MilvusService_DeleteCredential_Handler, - }, - { - MethodName: "ListCredUsers", - Handler: _MilvusService_ListCredUsers_Handler, - }, - { - MethodName: "CreateRole", - Handler: _MilvusService_CreateRole_Handler, - }, - { - MethodName: "DropRole", - Handler: _MilvusService_DropRole_Handler, - }, - { - MethodName: "OperateUserRole", - Handler: _MilvusService_OperateUserRole_Handler, - }, - { - MethodName: "SelectRole", - Handler: _MilvusService_SelectRole_Handler, - }, - { - MethodName: "SelectUser", - Handler: _MilvusService_SelectUser_Handler, - }, - { - MethodName: "OperatePrivilege", - Handler: _MilvusService_OperatePrivilege_Handler, - }, - { - MethodName: "SelectGrant", - Handler: _MilvusService_SelectGrant_Handler, - }, - { - MethodName: "GetVersion", - Handler: _MilvusService_GetVersion_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "milvus.proto", -} - -// ProxyServiceClient is the client API for ProxyService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ProxyServiceClient interface { - RegisterLink(ctx context.Context, in *RegisterLinkRequest, opts ...grpc.CallOption) (*RegisterLinkResponse, error) -} - -type proxyServiceClient struct { - cc *grpc.ClientConn -} - -func NewProxyServiceClient(cc *grpc.ClientConn) ProxyServiceClient { - return &proxyServiceClient{cc} -} - -func (c *proxyServiceClient) RegisterLink(ctx context.Context, in *RegisterLinkRequest, opts ...grpc.CallOption) (*RegisterLinkResponse, error) { - out := new(RegisterLinkResponse) - err := c.cc.Invoke(ctx, "/milvus.proto.milvus.ProxyService/RegisterLink", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ProxyServiceServer is the server API for ProxyService service. -type ProxyServiceServer interface { - RegisterLink(context.Context, *RegisterLinkRequest) (*RegisterLinkResponse, error) -} - -// UnimplementedProxyServiceServer can be embedded to have forward compatible implementations. -type UnimplementedProxyServiceServer struct { -} - -func (*UnimplementedProxyServiceServer) RegisterLink(ctx context.Context, req *RegisterLinkRequest) (*RegisterLinkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterLink not implemented") -} - -func RegisterProxyServiceServer(s *grpc.Server, srv ProxyServiceServer) { - s.RegisterService(&_ProxyService_serviceDesc, srv) -} - -func _ProxyService_RegisterLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RegisterLinkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProxyServiceServer).RegisterLink(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/milvus.proto.milvus.ProxyService/RegisterLink", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProxyServiceServer).RegisterLink(ctx, req.(*RegisterLinkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _ProxyService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "milvus.proto.milvus.ProxyService", - HandlerType: (*ProxyServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "RegisterLink", - Handler: _ProxyService_RegisterLink_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "milvus.proto", -} diff --git a/api/schemapb/schema.pb.go b/api/schemapb/schema.pb.go deleted file mode 100644 index 2e1ff25f2d..0000000000 --- a/api/schemapb/schema.pb.go +++ /dev/null @@ -1,1151 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: schema.proto - -package schemapb - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - commonpb "github.com/milvus-io/milvus/api/commonpb" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -//* -// @brief Field data type -type DataType int32 - -const ( - DataType_None DataType = 0 - DataType_Bool DataType = 1 - DataType_Int8 DataType = 2 - DataType_Int16 DataType = 3 - DataType_Int32 DataType = 4 - DataType_Int64 DataType = 5 - DataType_Float DataType = 10 - DataType_Double DataType = 11 - DataType_String DataType = 20 - DataType_VarChar DataType = 21 - DataType_BinaryVector DataType = 100 - DataType_FloatVector DataType = 101 -) - -var DataType_name = map[int32]string{ - 0: "None", - 1: "Bool", - 2: "Int8", - 3: "Int16", - 4: "Int32", - 5: "Int64", - 10: "Float", - 11: "Double", - 20: "String", - 21: "VarChar", - 100: "BinaryVector", - 101: "FloatVector", -} - -var DataType_value = map[string]int32{ - "None": 0, - "Bool": 1, - "Int8": 2, - "Int16": 3, - "Int32": 4, - "Int64": 5, - "Float": 10, - "Double": 11, - "String": 20, - "VarChar": 21, - "BinaryVector": 100, - "FloatVector": 101, -} - -func (x DataType) String() string { - return proto.EnumName(DataType_name, int32(x)) -} - -func (DataType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{0} -} - -type FieldState int32 - -const ( - FieldState_FieldCreated FieldState = 0 - FieldState_FieldCreating FieldState = 1 - FieldState_FieldDropping FieldState = 2 - FieldState_FieldDropped FieldState = 3 -) - -var FieldState_name = map[int32]string{ - 0: "FieldCreated", - 1: "FieldCreating", - 2: "FieldDropping", - 3: "FieldDropped", -} - -var FieldState_value = map[string]int32{ - "FieldCreated": 0, - "FieldCreating": 1, - "FieldDropping": 2, - "FieldDropped": 3, -} - -func (x FieldState) String() string { - return proto.EnumName(FieldState_name, int32(x)) -} - -func (FieldState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{1} -} - -//* -// @brief Field schema -type FieldSchema struct { - FieldID int64 `protobuf:"varint,1,opt,name=fieldID,proto3" json:"fieldID,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - IsPrimaryKey bool `protobuf:"varint,3,opt,name=is_primary_key,json=isPrimaryKey,proto3" json:"is_primary_key,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - DataType DataType `protobuf:"varint,5,opt,name=data_type,json=dataType,proto3,enum=milvus.proto.schema.DataType" json:"data_type,omitempty"` - TypeParams []*commonpb.KeyValuePair `protobuf:"bytes,6,rep,name=type_params,json=typeParams,proto3" json:"type_params,omitempty"` - IndexParams []*commonpb.KeyValuePair `protobuf:"bytes,7,rep,name=index_params,json=indexParams,proto3" json:"index_params,omitempty"` - AutoID bool `protobuf:"varint,8,opt,name=autoID,proto3" json:"autoID,omitempty"` - State FieldState `protobuf:"varint,9,opt,name=state,proto3,enum=milvus.proto.schema.FieldState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FieldSchema) Reset() { *m = FieldSchema{} } -func (m *FieldSchema) String() string { return proto.CompactTextString(m) } -func (*FieldSchema) ProtoMessage() {} -func (*FieldSchema) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{0} -} - -func (m *FieldSchema) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FieldSchema.Unmarshal(m, b) -} -func (m *FieldSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FieldSchema.Marshal(b, m, deterministic) -} -func (m *FieldSchema) XXX_Merge(src proto.Message) { - xxx_messageInfo_FieldSchema.Merge(m, src) -} -func (m *FieldSchema) XXX_Size() int { - return xxx_messageInfo_FieldSchema.Size(m) -} -func (m *FieldSchema) XXX_DiscardUnknown() { - xxx_messageInfo_FieldSchema.DiscardUnknown(m) -} - -var xxx_messageInfo_FieldSchema proto.InternalMessageInfo - -func (m *FieldSchema) GetFieldID() int64 { - if m != nil { - return m.FieldID - } - return 0 -} - -func (m *FieldSchema) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *FieldSchema) GetIsPrimaryKey() bool { - if m != nil { - return m.IsPrimaryKey - } - return false -} - -func (m *FieldSchema) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func (m *FieldSchema) GetDataType() DataType { - if m != nil { - return m.DataType - } - return DataType_None -} - -func (m *FieldSchema) GetTypeParams() []*commonpb.KeyValuePair { - if m != nil { - return m.TypeParams - } - return nil -} - -func (m *FieldSchema) GetIndexParams() []*commonpb.KeyValuePair { - if m != nil { - return m.IndexParams - } - return nil -} - -func (m *FieldSchema) GetAutoID() bool { - if m != nil { - return m.AutoID - } - return false -} - -func (m *FieldSchema) GetState() FieldState { - if m != nil { - return m.State - } - return FieldState_FieldCreated -} - -//* -// @brief Collection schema -type CollectionSchema struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - AutoID bool `protobuf:"varint,3,opt,name=autoID,proto3" json:"autoID,omitempty"` - Fields []*FieldSchema `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CollectionSchema) Reset() { *m = CollectionSchema{} } -func (m *CollectionSchema) String() string { return proto.CompactTextString(m) } -func (*CollectionSchema) ProtoMessage() {} -func (*CollectionSchema) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{1} -} - -func (m *CollectionSchema) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CollectionSchema.Unmarshal(m, b) -} -func (m *CollectionSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CollectionSchema.Marshal(b, m, deterministic) -} -func (m *CollectionSchema) XXX_Merge(src proto.Message) { - xxx_messageInfo_CollectionSchema.Merge(m, src) -} -func (m *CollectionSchema) XXX_Size() int { - return xxx_messageInfo_CollectionSchema.Size(m) -} -func (m *CollectionSchema) XXX_DiscardUnknown() { - xxx_messageInfo_CollectionSchema.DiscardUnknown(m) -} - -var xxx_messageInfo_CollectionSchema proto.InternalMessageInfo - -func (m *CollectionSchema) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *CollectionSchema) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func (m *CollectionSchema) GetAutoID() bool { - if m != nil { - return m.AutoID - } - return false -} - -func (m *CollectionSchema) GetFields() []*FieldSchema { - if m != nil { - return m.Fields - } - return nil -} - -type BoolArray struct { - Data []bool `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BoolArray) Reset() { *m = BoolArray{} } -func (m *BoolArray) String() string { return proto.CompactTextString(m) } -func (*BoolArray) ProtoMessage() {} -func (*BoolArray) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{2} -} - -func (m *BoolArray) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BoolArray.Unmarshal(m, b) -} -func (m *BoolArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BoolArray.Marshal(b, m, deterministic) -} -func (m *BoolArray) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoolArray.Merge(m, src) -} -func (m *BoolArray) XXX_Size() int { - return xxx_messageInfo_BoolArray.Size(m) -} -func (m *BoolArray) XXX_DiscardUnknown() { - xxx_messageInfo_BoolArray.DiscardUnknown(m) -} - -var xxx_messageInfo_BoolArray proto.InternalMessageInfo - -func (m *BoolArray) GetData() []bool { - if m != nil { - return m.Data - } - return nil -} - -type IntArray struct { - Data []int32 `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IntArray) Reset() { *m = IntArray{} } -func (m *IntArray) String() string { return proto.CompactTextString(m) } -func (*IntArray) ProtoMessage() {} -func (*IntArray) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{3} -} - -func (m *IntArray) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IntArray.Unmarshal(m, b) -} -func (m *IntArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IntArray.Marshal(b, m, deterministic) -} -func (m *IntArray) XXX_Merge(src proto.Message) { - xxx_messageInfo_IntArray.Merge(m, src) -} -func (m *IntArray) XXX_Size() int { - return xxx_messageInfo_IntArray.Size(m) -} -func (m *IntArray) XXX_DiscardUnknown() { - xxx_messageInfo_IntArray.DiscardUnknown(m) -} - -var xxx_messageInfo_IntArray proto.InternalMessageInfo - -func (m *IntArray) GetData() []int32 { - if m != nil { - return m.Data - } - return nil -} - -type LongArray struct { - Data []int64 `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LongArray) Reset() { *m = LongArray{} } -func (m *LongArray) String() string { return proto.CompactTextString(m) } -func (*LongArray) ProtoMessage() {} -func (*LongArray) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{4} -} - -func (m *LongArray) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LongArray.Unmarshal(m, b) -} -func (m *LongArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LongArray.Marshal(b, m, deterministic) -} -func (m *LongArray) XXX_Merge(src proto.Message) { - xxx_messageInfo_LongArray.Merge(m, src) -} -func (m *LongArray) XXX_Size() int { - return xxx_messageInfo_LongArray.Size(m) -} -func (m *LongArray) XXX_DiscardUnknown() { - xxx_messageInfo_LongArray.DiscardUnknown(m) -} - -var xxx_messageInfo_LongArray proto.InternalMessageInfo - -func (m *LongArray) GetData() []int64 { - if m != nil { - return m.Data - } - return nil -} - -type FloatArray struct { - Data []float32 `protobuf:"fixed32,1,rep,packed,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FloatArray) Reset() { *m = FloatArray{} } -func (m *FloatArray) String() string { return proto.CompactTextString(m) } -func (*FloatArray) ProtoMessage() {} -func (*FloatArray) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{5} -} - -func (m *FloatArray) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FloatArray.Unmarshal(m, b) -} -func (m *FloatArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FloatArray.Marshal(b, m, deterministic) -} -func (m *FloatArray) XXX_Merge(src proto.Message) { - xxx_messageInfo_FloatArray.Merge(m, src) -} -func (m *FloatArray) XXX_Size() int { - return xxx_messageInfo_FloatArray.Size(m) -} -func (m *FloatArray) XXX_DiscardUnknown() { - xxx_messageInfo_FloatArray.DiscardUnknown(m) -} - -var xxx_messageInfo_FloatArray proto.InternalMessageInfo - -func (m *FloatArray) GetData() []float32 { - if m != nil { - return m.Data - } - return nil -} - -type DoubleArray struct { - Data []float64 `protobuf:"fixed64,1,rep,packed,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DoubleArray) Reset() { *m = DoubleArray{} } -func (m *DoubleArray) String() string { return proto.CompactTextString(m) } -func (*DoubleArray) ProtoMessage() {} -func (*DoubleArray) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{6} -} - -func (m *DoubleArray) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DoubleArray.Unmarshal(m, b) -} -func (m *DoubleArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DoubleArray.Marshal(b, m, deterministic) -} -func (m *DoubleArray) XXX_Merge(src proto.Message) { - xxx_messageInfo_DoubleArray.Merge(m, src) -} -func (m *DoubleArray) XXX_Size() int { - return xxx_messageInfo_DoubleArray.Size(m) -} -func (m *DoubleArray) XXX_DiscardUnknown() { - xxx_messageInfo_DoubleArray.DiscardUnknown(m) -} - -var xxx_messageInfo_DoubleArray proto.InternalMessageInfo - -func (m *DoubleArray) GetData() []float64 { - if m != nil { - return m.Data - } - return nil -} - -// For special fields such as bigdecimal, array... -type BytesArray struct { - Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BytesArray) Reset() { *m = BytesArray{} } -func (m *BytesArray) String() string { return proto.CompactTextString(m) } -func (*BytesArray) ProtoMessage() {} -func (*BytesArray) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{7} -} - -func (m *BytesArray) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BytesArray.Unmarshal(m, b) -} -func (m *BytesArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BytesArray.Marshal(b, m, deterministic) -} -func (m *BytesArray) XXX_Merge(src proto.Message) { - xxx_messageInfo_BytesArray.Merge(m, src) -} -func (m *BytesArray) XXX_Size() int { - return xxx_messageInfo_BytesArray.Size(m) -} -func (m *BytesArray) XXX_DiscardUnknown() { - xxx_messageInfo_BytesArray.DiscardUnknown(m) -} - -var xxx_messageInfo_BytesArray proto.InternalMessageInfo - -func (m *BytesArray) GetData() [][]byte { - if m != nil { - return m.Data - } - return nil -} - -type StringArray struct { - Data []string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StringArray) Reset() { *m = StringArray{} } -func (m *StringArray) String() string { return proto.CompactTextString(m) } -func (*StringArray) ProtoMessage() {} -func (*StringArray) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{8} -} - -func (m *StringArray) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StringArray.Unmarshal(m, b) -} -func (m *StringArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StringArray.Marshal(b, m, deterministic) -} -func (m *StringArray) XXX_Merge(src proto.Message) { - xxx_messageInfo_StringArray.Merge(m, src) -} -func (m *StringArray) XXX_Size() int { - return xxx_messageInfo_StringArray.Size(m) -} -func (m *StringArray) XXX_DiscardUnknown() { - xxx_messageInfo_StringArray.DiscardUnknown(m) -} - -var xxx_messageInfo_StringArray proto.InternalMessageInfo - -func (m *StringArray) GetData() []string { - if m != nil { - return m.Data - } - return nil -} - -type ScalarField struct { - // Types that are valid to be assigned to Data: - // *ScalarField_BoolData - // *ScalarField_IntData - // *ScalarField_LongData - // *ScalarField_FloatData - // *ScalarField_DoubleData - // *ScalarField_StringData - // *ScalarField_BytesData - Data isScalarField_Data `protobuf_oneof:"data"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScalarField) Reset() { *m = ScalarField{} } -func (m *ScalarField) String() string { return proto.CompactTextString(m) } -func (*ScalarField) ProtoMessage() {} -func (*ScalarField) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{9} -} - -func (m *ScalarField) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ScalarField.Unmarshal(m, b) -} -func (m *ScalarField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ScalarField.Marshal(b, m, deterministic) -} -func (m *ScalarField) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScalarField.Merge(m, src) -} -func (m *ScalarField) XXX_Size() int { - return xxx_messageInfo_ScalarField.Size(m) -} -func (m *ScalarField) XXX_DiscardUnknown() { - xxx_messageInfo_ScalarField.DiscardUnknown(m) -} - -var xxx_messageInfo_ScalarField proto.InternalMessageInfo - -type isScalarField_Data interface { - isScalarField_Data() -} - -type ScalarField_BoolData struct { - BoolData *BoolArray `protobuf:"bytes,1,opt,name=bool_data,json=boolData,proto3,oneof"` -} - -type ScalarField_IntData struct { - IntData *IntArray `protobuf:"bytes,2,opt,name=int_data,json=intData,proto3,oneof"` -} - -type ScalarField_LongData struct { - LongData *LongArray `protobuf:"bytes,3,opt,name=long_data,json=longData,proto3,oneof"` -} - -type ScalarField_FloatData struct { - FloatData *FloatArray `protobuf:"bytes,4,opt,name=float_data,json=floatData,proto3,oneof"` -} - -type ScalarField_DoubleData struct { - DoubleData *DoubleArray `protobuf:"bytes,5,opt,name=double_data,json=doubleData,proto3,oneof"` -} - -type ScalarField_StringData struct { - StringData *StringArray `protobuf:"bytes,6,opt,name=string_data,json=stringData,proto3,oneof"` -} - -type ScalarField_BytesData struct { - BytesData *BytesArray `protobuf:"bytes,7,opt,name=bytes_data,json=bytesData,proto3,oneof"` -} - -func (*ScalarField_BoolData) isScalarField_Data() {} - -func (*ScalarField_IntData) isScalarField_Data() {} - -func (*ScalarField_LongData) isScalarField_Data() {} - -func (*ScalarField_FloatData) isScalarField_Data() {} - -func (*ScalarField_DoubleData) isScalarField_Data() {} - -func (*ScalarField_StringData) isScalarField_Data() {} - -func (*ScalarField_BytesData) isScalarField_Data() {} - -func (m *ScalarField) GetData() isScalarField_Data { - if m != nil { - return m.Data - } - return nil -} - -func (m *ScalarField) GetBoolData() *BoolArray { - if x, ok := m.GetData().(*ScalarField_BoolData); ok { - return x.BoolData - } - return nil -} - -func (m *ScalarField) GetIntData() *IntArray { - if x, ok := m.GetData().(*ScalarField_IntData); ok { - return x.IntData - } - return nil -} - -func (m *ScalarField) GetLongData() *LongArray { - if x, ok := m.GetData().(*ScalarField_LongData); ok { - return x.LongData - } - return nil -} - -func (m *ScalarField) GetFloatData() *FloatArray { - if x, ok := m.GetData().(*ScalarField_FloatData); ok { - return x.FloatData - } - return nil -} - -func (m *ScalarField) GetDoubleData() *DoubleArray { - if x, ok := m.GetData().(*ScalarField_DoubleData); ok { - return x.DoubleData - } - return nil -} - -func (m *ScalarField) GetStringData() *StringArray { - if x, ok := m.GetData().(*ScalarField_StringData); ok { - return x.StringData - } - return nil -} - -func (m *ScalarField) GetBytesData() *BytesArray { - if x, ok := m.GetData().(*ScalarField_BytesData); ok { - return x.BytesData - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ScalarField) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ScalarField_BoolData)(nil), - (*ScalarField_IntData)(nil), - (*ScalarField_LongData)(nil), - (*ScalarField_FloatData)(nil), - (*ScalarField_DoubleData)(nil), - (*ScalarField_StringData)(nil), - (*ScalarField_BytesData)(nil), - } -} - -type VectorField struct { - Dim int64 `protobuf:"varint,1,opt,name=dim,proto3" json:"dim,omitempty"` - // Types that are valid to be assigned to Data: - // *VectorField_FloatVector - // *VectorField_BinaryVector - Data isVectorField_Data `protobuf_oneof:"data"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VectorField) Reset() { *m = VectorField{} } -func (m *VectorField) String() string { return proto.CompactTextString(m) } -func (*VectorField) ProtoMessage() {} -func (*VectorField) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{10} -} - -func (m *VectorField) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VectorField.Unmarshal(m, b) -} -func (m *VectorField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VectorField.Marshal(b, m, deterministic) -} -func (m *VectorField) XXX_Merge(src proto.Message) { - xxx_messageInfo_VectorField.Merge(m, src) -} -func (m *VectorField) XXX_Size() int { - return xxx_messageInfo_VectorField.Size(m) -} -func (m *VectorField) XXX_DiscardUnknown() { - xxx_messageInfo_VectorField.DiscardUnknown(m) -} - -var xxx_messageInfo_VectorField proto.InternalMessageInfo - -func (m *VectorField) GetDim() int64 { - if m != nil { - return m.Dim - } - return 0 -} - -type isVectorField_Data interface { - isVectorField_Data() -} - -type VectorField_FloatVector struct { - FloatVector *FloatArray `protobuf:"bytes,2,opt,name=float_vector,json=floatVector,proto3,oneof"` -} - -type VectorField_BinaryVector struct { - BinaryVector []byte `protobuf:"bytes,3,opt,name=binary_vector,json=binaryVector,proto3,oneof"` -} - -func (*VectorField_FloatVector) isVectorField_Data() {} - -func (*VectorField_BinaryVector) isVectorField_Data() {} - -func (m *VectorField) GetData() isVectorField_Data { - if m != nil { - return m.Data - } - return nil -} - -func (m *VectorField) GetFloatVector() *FloatArray { - if x, ok := m.GetData().(*VectorField_FloatVector); ok { - return x.FloatVector - } - return nil -} - -func (m *VectorField) GetBinaryVector() []byte { - if x, ok := m.GetData().(*VectorField_BinaryVector); ok { - return x.BinaryVector - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*VectorField) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*VectorField_FloatVector)(nil), - (*VectorField_BinaryVector)(nil), - } -} - -type FieldData struct { - Type DataType `protobuf:"varint,1,opt,name=type,proto3,enum=milvus.proto.schema.DataType" json:"type,omitempty"` - FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - // Types that are valid to be assigned to Field: - // *FieldData_Scalars - // *FieldData_Vectors - Field isFieldData_Field `protobuf_oneof:"field"` - FieldId int64 `protobuf:"varint,5,opt,name=field_id,json=fieldId,proto3" json:"field_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FieldData) Reset() { *m = FieldData{} } -func (m *FieldData) String() string { return proto.CompactTextString(m) } -func (*FieldData) ProtoMessage() {} -func (*FieldData) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{11} -} - -func (m *FieldData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FieldData.Unmarshal(m, b) -} -func (m *FieldData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FieldData.Marshal(b, m, deterministic) -} -func (m *FieldData) XXX_Merge(src proto.Message) { - xxx_messageInfo_FieldData.Merge(m, src) -} -func (m *FieldData) XXX_Size() int { - return xxx_messageInfo_FieldData.Size(m) -} -func (m *FieldData) XXX_DiscardUnknown() { - xxx_messageInfo_FieldData.DiscardUnknown(m) -} - -var xxx_messageInfo_FieldData proto.InternalMessageInfo - -func (m *FieldData) GetType() DataType { - if m != nil { - return m.Type - } - return DataType_None -} - -func (m *FieldData) GetFieldName() string { - if m != nil { - return m.FieldName - } - return "" -} - -type isFieldData_Field interface { - isFieldData_Field() -} - -type FieldData_Scalars struct { - Scalars *ScalarField `protobuf:"bytes,3,opt,name=scalars,proto3,oneof"` -} - -type FieldData_Vectors struct { - Vectors *VectorField `protobuf:"bytes,4,opt,name=vectors,proto3,oneof"` -} - -func (*FieldData_Scalars) isFieldData_Field() {} - -func (*FieldData_Vectors) isFieldData_Field() {} - -func (m *FieldData) GetField() isFieldData_Field { - if m != nil { - return m.Field - } - return nil -} - -func (m *FieldData) GetScalars() *ScalarField { - if x, ok := m.GetField().(*FieldData_Scalars); ok { - return x.Scalars - } - return nil -} - -func (m *FieldData) GetVectors() *VectorField { - if x, ok := m.GetField().(*FieldData_Vectors); ok { - return x.Vectors - } - return nil -} - -func (m *FieldData) GetFieldId() int64 { - if m != nil { - return m.FieldId - } - return 0 -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*FieldData) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*FieldData_Scalars)(nil), - (*FieldData_Vectors)(nil), - } -} - -type IDs struct { - // Types that are valid to be assigned to IdField: - // *IDs_IntId - // *IDs_StrId - IdField isIDs_IdField `protobuf_oneof:"id_field"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IDs) Reset() { *m = IDs{} } -func (m *IDs) String() string { return proto.CompactTextString(m) } -func (*IDs) ProtoMessage() {} -func (*IDs) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{12} -} - -func (m *IDs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IDs.Unmarshal(m, b) -} -func (m *IDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IDs.Marshal(b, m, deterministic) -} -func (m *IDs) XXX_Merge(src proto.Message) { - xxx_messageInfo_IDs.Merge(m, src) -} -func (m *IDs) XXX_Size() int { - return xxx_messageInfo_IDs.Size(m) -} -func (m *IDs) XXX_DiscardUnknown() { - xxx_messageInfo_IDs.DiscardUnknown(m) -} - -var xxx_messageInfo_IDs proto.InternalMessageInfo - -type isIDs_IdField interface { - isIDs_IdField() -} - -type IDs_IntId struct { - IntId *LongArray `protobuf:"bytes,1,opt,name=int_id,json=intId,proto3,oneof"` -} - -type IDs_StrId struct { - StrId *StringArray `protobuf:"bytes,2,opt,name=str_id,json=strId,proto3,oneof"` -} - -func (*IDs_IntId) isIDs_IdField() {} - -func (*IDs_StrId) isIDs_IdField() {} - -func (m *IDs) GetIdField() isIDs_IdField { - if m != nil { - return m.IdField - } - return nil -} - -func (m *IDs) GetIntId() *LongArray { - if x, ok := m.GetIdField().(*IDs_IntId); ok { - return x.IntId - } - return nil -} - -func (m *IDs) GetStrId() *StringArray { - if x, ok := m.GetIdField().(*IDs_StrId); ok { - return x.StrId - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*IDs) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*IDs_IntId)(nil), - (*IDs_StrId)(nil), - } -} - -type SearchResultData struct { - NumQueries int64 `protobuf:"varint,1,opt,name=num_queries,json=numQueries,proto3" json:"num_queries,omitempty"` - TopK int64 `protobuf:"varint,2,opt,name=top_k,json=topK,proto3" json:"top_k,omitempty"` - FieldsData []*FieldData `protobuf:"bytes,3,rep,name=fields_data,json=fieldsData,proto3" json:"fields_data,omitempty"` - Scores []float32 `protobuf:"fixed32,4,rep,packed,name=scores,proto3" json:"scores,omitempty"` - Ids *IDs `protobuf:"bytes,5,opt,name=ids,proto3" json:"ids,omitempty"` - Topks []int64 `protobuf:"varint,6,rep,packed,name=topks,proto3" json:"topks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SearchResultData) Reset() { *m = SearchResultData{} } -func (m *SearchResultData) String() string { return proto.CompactTextString(m) } -func (*SearchResultData) ProtoMessage() {} -func (*SearchResultData) Descriptor() ([]byte, []int) { - return fileDescriptor_1c5fb4d8cc22d66a, []int{13} -} - -func (m *SearchResultData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SearchResultData.Unmarshal(m, b) -} -func (m *SearchResultData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SearchResultData.Marshal(b, m, deterministic) -} -func (m *SearchResultData) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchResultData.Merge(m, src) -} -func (m *SearchResultData) XXX_Size() int { - return xxx_messageInfo_SearchResultData.Size(m) -} -func (m *SearchResultData) XXX_DiscardUnknown() { - xxx_messageInfo_SearchResultData.DiscardUnknown(m) -} - -var xxx_messageInfo_SearchResultData proto.InternalMessageInfo - -func (m *SearchResultData) GetNumQueries() int64 { - if m != nil { - return m.NumQueries - } - return 0 -} - -func (m *SearchResultData) GetTopK() int64 { - if m != nil { - return m.TopK - } - return 0 -} - -func (m *SearchResultData) GetFieldsData() []*FieldData { - if m != nil { - return m.FieldsData - } - return nil -} - -func (m *SearchResultData) GetScores() []float32 { - if m != nil { - return m.Scores - } - return nil -} - -func (m *SearchResultData) GetIds() *IDs { - if m != nil { - return m.Ids - } - return nil -} - -func (m *SearchResultData) GetTopks() []int64 { - if m != nil { - return m.Topks - } - return nil -} - -func init() { - proto.RegisterEnum("milvus.proto.schema.DataType", DataType_name, DataType_value) - proto.RegisterEnum("milvus.proto.schema.FieldState", FieldState_name, FieldState_value) - proto.RegisterType((*FieldSchema)(nil), "milvus.proto.schema.FieldSchema") - proto.RegisterType((*CollectionSchema)(nil), "milvus.proto.schema.CollectionSchema") - proto.RegisterType((*BoolArray)(nil), "milvus.proto.schema.BoolArray") - proto.RegisterType((*IntArray)(nil), "milvus.proto.schema.IntArray") - proto.RegisterType((*LongArray)(nil), "milvus.proto.schema.LongArray") - proto.RegisterType((*FloatArray)(nil), "milvus.proto.schema.FloatArray") - proto.RegisterType((*DoubleArray)(nil), "milvus.proto.schema.DoubleArray") - proto.RegisterType((*BytesArray)(nil), "milvus.proto.schema.BytesArray") - proto.RegisterType((*StringArray)(nil), "milvus.proto.schema.StringArray") - proto.RegisterType((*ScalarField)(nil), "milvus.proto.schema.ScalarField") - proto.RegisterType((*VectorField)(nil), "milvus.proto.schema.VectorField") - proto.RegisterType((*FieldData)(nil), "milvus.proto.schema.FieldData") - proto.RegisterType((*IDs)(nil), "milvus.proto.schema.IDs") - proto.RegisterType((*SearchResultData)(nil), "milvus.proto.schema.SearchResultData") -} - -func init() { proto.RegisterFile("schema.proto", fileDescriptor_1c5fb4d8cc22d66a) } - -var fileDescriptor_1c5fb4d8cc22d66a = []byte{ - // 1044 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x5f, 0x6f, 0x1b, 0x45, - 0x10, 0xf7, 0xfa, 0xfc, 0xe7, 0x6e, 0xce, 0x0d, 0xc7, 0xb6, 0xa0, 0x03, 0xa9, 0x8d, 0x6b, 0x81, - 0x64, 0x45, 0x22, 0x51, 0x53, 0x28, 0xa5, 0xa2, 0x02, 0x1c, 0x2b, 0x8a, 0x95, 0xaa, 0x0a, 0x17, - 0x94, 0x07, 0x5e, 0xac, 0xb5, 0x6f, 0x9b, 0xac, 0x72, 0x77, 0x7b, 0xdc, 0xae, 0x2b, 0xfc, 0x01, - 0xf8, 0x06, 0x3c, 0x20, 0xc4, 0x03, 0x5f, 0x8c, 0x27, 0x3e, 0x07, 0x12, 0xda, 0xd9, 0xf5, 0x9f, - 0x36, 0x8e, 0x95, 0xb7, 0xd9, 0xb9, 0xf9, 0xfd, 0x6e, 0xe6, 0x37, 0xb3, 0xb3, 0xd0, 0x51, 0xd3, - 0x2b, 0x9e, 0xb3, 0xfd, 0xb2, 0x92, 0x5a, 0xd2, 0xfb, 0xb9, 0xc8, 0xde, 0xce, 0x94, 0x3d, 0xed, - 0xdb, 0x4f, 0x9f, 0x76, 0xa6, 0x32, 0xcf, 0x65, 0x61, 0x9d, 0xbd, 0x3f, 0x3c, 0x08, 0x8f, 0x05, - 0xcf, 0xd2, 0x73, 0xfc, 0x4a, 0x63, 0x68, 0xbf, 0x31, 0xc7, 0xd1, 0x30, 0x26, 0x5d, 0xd2, 0xf7, - 0x92, 0xc5, 0x91, 0x52, 0x68, 0x14, 0x2c, 0xe7, 0x71, 0xbd, 0x4b, 0xfa, 0x41, 0x82, 0x36, 0xfd, - 0x0c, 0x76, 0x84, 0x1a, 0x97, 0x95, 0xc8, 0x59, 0x35, 0x1f, 0x5f, 0xf3, 0x79, 0xec, 0x75, 0x49, - 0xdf, 0x4f, 0x3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0x2d, 0x88, 0x80, 0x02, 0xb4, 0xec, 0x1e, 0x88, 0x42, - 0x63, 0x5b, 0xb1, 0xa3, 0x07, 0x34, 0x84, 0xf6, 0x05, 0xab, 0x8e, 0xae, 0x58, 0x15, 0x7d, 0x44, - 0x23, 0xe8, 0x0c, 0xd6, 0x6e, 0x40, 0x94, 0xd2, 0x0f, 0x20, 0x3c, 0x5e, 0xdd, 0x9c, 0x88, 0xef, - 0x5d, 0x00, 0xac, 0x5e, 0x48, 0x03, 0xc0, 0xd3, 0x51, 0xc5, 0x99, 0xe6, 0x69, 0x54, 0xa3, 0x1f, - 0xc2, 0xbd, 0x95, 0xc7, 0xfc, 0x82, 0x2c, 0x5d, 0xc3, 0x4a, 0x96, 0xa5, 0x71, 0xd5, 0x97, 0x38, - 0x74, 0xf1, 0x34, 0xf2, 0x06, 0xaf, 0x60, 0x47, 0xc8, 0x85, 0x5e, 0x97, 0x55, 0x39, 0x1d, 0x84, - 0xf6, 0xa5, 0x3b, 0x33, 0xda, 0x9d, 0x91, 0x9f, 0xfb, 0x97, 0x42, 0x5f, 0xcd, 0x26, 0xe6, 0xf5, - 0x3f, 0xb0, 0x61, 0x5f, 0x08, 0xe9, 0xac, 0x03, 0x56, 0x8a, 0x03, 0x2b, 0x6f, 0x39, 0xf9, 0x9b, - 0x90, 0x49, 0x0b, 0x15, 0x7f, 0xfa, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x20, 0xa3, 0xa5, 0x38, - 0x87, 0x09, 0x00, 0x00, -} diff --git a/cmd/components/data_coord.go b/cmd/components/data_coord.go index 06ca15dacb..9a59b74174 100644 --- a/cmd/components/data_coord.go +++ b/cmd/components/data_coord.go @@ -19,8 +19,8 @@ package components import ( "context" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/util/dependency" "github.com/milvus-io/milvus/internal/util/typeutil" diff --git a/cmd/components/data_node.go b/cmd/components/data_node.go index b108e78612..4debe237bb 100644 --- a/cmd/components/data_node.go +++ b/cmd/components/data_node.go @@ -19,8 +19,8 @@ package components import ( "context" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" grpcdatanode "github.com/milvus-io/milvus/internal/distributed/datanode" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/util/dependency" diff --git a/cmd/components/index_coord.go b/cmd/components/index_coord.go index cc4f715583..823bbcbc6f 100644 --- a/cmd/components/index_coord.go +++ b/cmd/components/index_coord.go @@ -19,8 +19,8 @@ package components import ( "context" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" grpcindexcoord "github.com/milvus-io/milvus/internal/distributed/indexcoord" "github.com/milvus-io/milvus/internal/log" diff --git a/cmd/components/index_node.go b/cmd/components/index_node.go index ca42363a46..d9bceab9a4 100644 --- a/cmd/components/index_node.go +++ b/cmd/components/index_node.go @@ -19,8 +19,8 @@ package components import ( "context" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/util/dependency" diff --git a/cmd/components/proxy.go b/cmd/components/proxy.go index bbe9f6c8a6..536561a4d8 100644 --- a/cmd/components/proxy.go +++ b/cmd/components/proxy.go @@ -19,8 +19,8 @@ package components import ( "context" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" grpcproxy "github.com/milvus-io/milvus/internal/distributed/proxy" "github.com/milvus-io/milvus/internal/log" diff --git a/cmd/components/query_coord.go b/cmd/components/query_coord.go index aaf282397c..4a723a5fc5 100644 --- a/cmd/components/query_coord.go +++ b/cmd/components/query_coord.go @@ -19,8 +19,8 @@ package components import ( "context" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/util/dependency" diff --git a/cmd/components/query_node.go b/cmd/components/query_node.go index f6f0f65a4b..2fadda17cc 100644 --- a/cmd/components/query_node.go +++ b/cmd/components/query_node.go @@ -19,8 +19,8 @@ package components import ( "context" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/util/dependency" diff --git a/cmd/components/root_coord.go b/cmd/components/root_coord.go index ac9ea1693f..71fe16fed0 100644 --- a/cmd/components/root_coord.go +++ b/cmd/components/root_coord.go @@ -20,8 +20,8 @@ import ( "context" "io" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" rc "github.com/milvus-io/milvus/internal/distributed/rootcoord" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/util/dependency" diff --git a/cmd/milvus/mck.go b/cmd/milvus/mck.go index 6a24d5cc4f..d4c3c626df 100644 --- a/cmd/milvus/mck.go +++ b/cmd/milvus/mck.go @@ -22,7 +22,7 @@ import ( pb "github.com/milvus-io/milvus/internal/proto/etcdpb" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/golang/protobuf/proto" diff --git a/cmd/tools/migration/backend/backup_restore.go b/cmd/tools/migration/backend/backup_restore.go index f9b2686ef0..1552681a10 100644 --- a/cmd/tools/migration/backend/backup_restore.go +++ b/cmd/tools/migration/backend/backup_restore.go @@ -6,7 +6,7 @@ import ( "io" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) type BackupFile []byte diff --git a/cmd/tools/migration/legacy/legacypb/legacy.pb.go b/cmd/tools/migration/legacy/legacypb/legacy.pb.go index 6f910679eb..e9fda266a3 100644 --- a/cmd/tools/migration/legacy/legacypb/legacy.pb.go +++ b/cmd/tools/migration/legacy/legacypb/legacy.pb.go @@ -6,8 +6,8 @@ package legacypb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - commonpb "github.com/milvus-io/milvus/api/commonpb" - schemapb "github.com/milvus-io/milvus/api/schemapb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" + schemapb "github.com/milvus-io/milvus-proto/go-api/schemapb" math "math" ) diff --git a/cmd/tools/migration/meta/meta210.go b/cmd/tools/migration/meta/meta210.go index cb327630a6..e11706e379 100644 --- a/cmd/tools/migration/meta/meta210.go +++ b/cmd/tools/migration/meta/meta210.go @@ -9,7 +9,7 @@ import ( "github.com/golang/protobuf/proto" "github.com/milvus-io/milvus/internal/metastore/kv/rootcoord" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" pb "github.com/milvus-io/milvus/internal/proto/etcdpb" ) diff --git a/configs/hook.yaml b/configs/hook.yaml index e69de29bb2..5ee028063f 100644 --- a/configs/hook.yaml +++ b/configs/hook.yaml @@ -0,0 +1,41 @@ +denyAPI: + default: + - HasCollection + - GetCollectionStatistics + - CreatePartition + - DropPartition + - HasPartition + - LoadPartitions + - ReleasePartitions + - GetPartitionStatistics + - ShowPartitions + - CreateAlias + - DropAlias + - AlterAlias + - GetIndexState + - GetIndexBuildProgress + - CalcDistance + - GetFlushState + - GetPersistentSegmentInfo + - GetQuerySegmentInfo + - Dummy + - RegisterLink + - GetCompactionState + - ManualCompaction + - GetCompactionStateWithPlans + - GetReplicas + - GetMetrics + - LoadBalance + - CreateRole + - DropRole + - OperateUserRole + - SelectRole + - SelectUser + - OperatePrivilege + - SelectGrant + zcloud_root: + root: + +invisibleUsers: + - root + - zcloud_root \ No newline at end of file diff --git a/configs/milvus.yaml b/configs/milvus.yaml index 95b62c7bc6..6d2232ff81 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -153,6 +153,7 @@ proxy: maxTaskNum: 1024 # max task number of proxy task queue # please adjust in embedded Milvus: false ginLogging: true # Whether to produce gin logs. + soPath: "/Users/derek/fubang/milvus-plugin-demo/hook.so" # Related configuration of queryCoord, used to manage topology and load balancing for the query nodes, and handoff from growing segments to sealed segments. diff --git a/go.mod b/go.mod index 4bc99c248b..24ccf68039 100644 --- a/go.mod +++ b/go.mod @@ -11,6 +11,7 @@ require ( github.com/antonmedv/expr v1.8.9 github.com/apache/arrow/go/v8 v8.0.0-20220322092137-778b1772fd20 github.com/apache/pulsar-client-go v0.6.1-0.20210728062540-29414db801a7 + github.com/apache/thrift v0.15.0 github.com/bits-and-blooms/bloom/v3 v3.0.1 github.com/casbin/casbin/v2 v2.44.2 github.com/casbin/json-adapter/v2 v2.0.0 @@ -19,6 +20,7 @@ require ( github.com/gin-gonic/gin v1.7.7 github.com/go-basic/ipv4 v1.0.0 github.com/gofrs/flock v0.8.1 + github.com/golang/mock v1.5.0 github.com/golang/protobuf v1.5.2 github.com/google/btree v1.0.1 github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 @@ -26,13 +28,16 @@ require ( github.com/jinzhu/now v1.1.5 // indirect github.com/klauspost/compress v1.14.2 github.com/lingdor/stackerror v0.0.0-20191119040541-976d8885ed76 - github.com/milvus-io/milvus/api v0.0.0-20220915082433-b1f4c60117bb + github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d + github.com/milvus-io/milvus-proto/go-api master github.com/minio/minio-go/v7 v7.0.17 github.com/opentracing/opentracing-go v1.2.0 github.com/panjf2000/ants/v2 v2.4.8 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.11.0 + github.com/sandertv/go-formula/v2 v2.0.0-alpha.7 github.com/sbinet/npyio v0.6.0 + github.com/shirou/gopsutil/v3 v3.22.9 github.com/spaolacci/murmur3 v1.1.0 github.com/spf13/cast v1.3.1 github.com/spf13/viper v1.8.1 @@ -58,22 +63,6 @@ require ( stathat.com/c/consistent v1.0.0 ) -require ( - github.com/apache/thrift v0.15.0 // indirect - github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d -) - -require github.com/sandertv/go-formula/v2 v2.0.0-alpha.7 - -require github.com/quasilyte/go-ruleguard/dsl v0.3.21 // indirect - -require ( - github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect - github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect - github.com/shirou/gopsutil/v3 v3.22.9 - github.com/yusufpapurcu/wmi v1.2.2 // indirect -) - require ( github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/AthenZ/athenz v1.10.15 // indirect @@ -130,6 +119,7 @@ require ( github.com/kris-nova/lolgopher v0.0.0-20180921204813-313b3abb0d9b // indirect github.com/leodido/go-urn v1.2.0 // indirect github.com/linkedin/goavro/v2 v2.11.1 // indirect + github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect github.com/magiconair/properties v1.8.5 // indirect github.com/mattn/go-colorable v0.1.8 // indirect github.com/mattn/go-isatty v0.0.12 // indirect @@ -147,6 +137,7 @@ require ( github.com/pelletier/go-toml v1.9.3 // indirect github.com/pierrec/lz4 v2.5.2+incompatible // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect github.com/prometheus/client_model v0.2.0 // indirect github.com/prometheus/common v0.26.0 // indirect github.com/prometheus/procfs v0.6.0 // indirect @@ -166,6 +157,7 @@ require ( github.com/uber/jaeger-lib v2.4.0+incompatible // indirect github.com/ugorji/go/codec v1.1.7 // indirect github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect + github.com/yusufpapurcu/wmi v1.2.2 // indirect github.com/zeebo/xxh3 v1.0.1 // indirect go.etcd.io/bbolt v1.3.6 // indirect go.etcd.io/etcd/client/pkg/v3 v3.5.0 // indirect @@ -206,12 +198,9 @@ replace ( github.com/bketelsen/crypt => github.com/bketelsen/crypt v0.0.4 // Fix security alert for core-os/etcd github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt v3.2.2+incompatible // Fix security alert for jwt-go 3.2.0 github.com/go-kit/kit => github.com/go-kit/kit v0.1.0 -) - -replace ( - // If you want to use the hook interceptor, the following code should be commented out - // and you should modify the api version to be the same as the `so` project. - github.com/milvus-io/milvus/api => ./api github.com/streamnative/pulsarctl => github.com/xiaofan-luan/pulsarctl v0.5.1 github.com/tecbot/gorocksdb => github.com/milvus-io/gorocksdb v0.0.0-20220624081344-8c5f4212846b // indirect + // If you want to use the hook interceptor, the following code should be commented out + // and you should modify the api version to be the same as the `so` project. + //replace github.com/milvus-io/milvus-proto/go-api => github.com/SimFG/milvus-proto/go-api v0.0.0-20221012123137-df1cf6457a79 ) diff --git a/go.sum b/go.sum index e44420b62d..90c3ec9077 100644 --- a/go.sum +++ b/go.sum @@ -493,6 +493,8 @@ github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyex github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/milvus-io/gorocksdb v0.0.0-20220624081344-8c5f4212846b h1:TfeY0NxYxZzUfIfYe5qYDBzt4ZYRqzUjTR6CvUzjat8= github.com/milvus-io/gorocksdb v0.0.0-20220624081344-8c5f4212846b/go.mod h1:iwW+9cWfIzzDseEBCCeDSN5SD16Tidvy8cwQ7ZY8Qj4= +github.com/milvus-io/milvus-proto/go-api v0.0.0-20221013061520-f0f555f4f091 h1:hCuXvhJweswxha1A9+VlnrcZPRwcRwukb00Y6k+RaJo= +github.com/milvus-io/milvus-proto/go-api v0.0.0-20221013061520-f0f555f4f091/go.mod h1:148qnlmZ0Fdm1Fq+Mj/OW2uDoEP25g3mjh0vMGtkgmk= github.com/milvus-io/pulsar-client-go v0.6.8 h1:fZdZH73aPRszu2fazyeeahQEz34tyn1Pt9EkqJmV100= github.com/milvus-io/pulsar-client-go v0.6.8/go.mod h1:oFIlYIk23tamkSLttw849qphmMIpHY8ztEBWDWJW+sc= github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8 h1:AMFGa4R4MiIpspGNG7Z948v4n35fFGB3RR3G/ry4FWs= @@ -594,8 +596,6 @@ github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.6.0 h1:mxy4L2jP6qMonqmq+aTtOx1ifVWUgG/TAmntgbh3xv4= github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/quasilyte/go-ruleguard/dsl v0.3.21 h1:vNkC6fC6qMLzCOGbnIHOd5ixUGgTbp3Z4fGnUgULlDA= -github.com/quasilyte/go-ruleguard/dsl v0.3.21/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/rivo/tview v0.0.0-20200219210816-cd38d7432498/go.mod h1:6lkG1x+13OShEf0EaOCaTQYyB7d5nSbb181KtjlS+84= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rogpeppe/clock v0.0.0-20190514195947-2896927a307a/go.mod h1:4r5QyqhjIWCcK8DO4KMclc5Iknq5qVBAlbYYzAbUScQ= diff --git a/internal/allocator/id_allocator.go b/internal/allocator/id_allocator.go index d9581583bd..4512216c68 100644 --- a/internal/allocator/id_allocator.go +++ b/internal/allocator/id_allocator.go @@ -21,7 +21,7 @@ import ( "fmt" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/rootcoordpb" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/allocator/id_allocator_test.go b/internal/allocator/id_allocator_test.go index 16874ae73e..9f9d1df221 100644 --- a/internal/allocator/id_allocator_test.go +++ b/internal/allocator/id_allocator_test.go @@ -20,7 +20,7 @@ import ( "context" "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/rootcoordpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/common/error.go b/internal/common/error.go index b916ee59e4..d197c7dbbf 100644 --- a/internal/common/error.go +++ b/internal/common/error.go @@ -20,7 +20,7 @@ import ( "errors" "fmt" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) var ( diff --git a/internal/common/error_test.go b/internal/common/error_test.go index 1e4f0e2d60..56fbf9c309 100644 --- a/internal/common/error_test.go +++ b/internal/common/error_test.go @@ -21,7 +21,7 @@ import ( "fmt" "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/common/key_data_pairs.go b/internal/common/key_data_pairs.go index dd917e2a7c..b85742ca79 100644 --- a/internal/common/key_data_pairs.go +++ b/internal/common/key_data_pairs.go @@ -3,7 +3,7 @@ package common import ( "reflect" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) type KeyDataPairs []*commonpb.KeyDataPair diff --git a/internal/common/key_data_pairs_test.go b/internal/common/key_data_pairs_test.go index 153fa6d3d4..0134e0cc89 100644 --- a/internal/common/key_data_pairs_test.go +++ b/internal/common/key_data_pairs_test.go @@ -3,7 +3,7 @@ package common import ( "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/common/key_value_pairs.go b/internal/common/key_value_pairs.go index 89279d5465..f5e52c9aec 100644 --- a/internal/common/key_value_pairs.go +++ b/internal/common/key_value_pairs.go @@ -3,7 +3,7 @@ package common import ( "reflect" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) type KeyValuePairs []*commonpb.KeyValuePair diff --git a/internal/common/key_value_pairs_test.go b/internal/common/key_value_pairs_test.go index 89f84fafb1..d49120cb7a 100644 --- a/internal/common/key_value_pairs_test.go +++ b/internal/common/key_value_pairs_test.go @@ -3,7 +3,7 @@ package common import ( "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/core/src/pb/CMakeLists.txt b/internal/core/src/pb/CMakeLists.txt index 87871684d8..fc9191834c 100644 --- a/internal/core/src/pb/CMakeLists.txt +++ b/internal/core/src/pb/CMakeLists.txt @@ -10,15 +10,12 @@ # or implied. See the License for the specific language governing permissions and limitations under the License set( proto_file_names - segcore.proto - index_cgo_msg.proto - plan.proto schema.proto common.proto ) -set( PROTO_PATH "${MILVUS_SOURCE_DIR}/../proto/") set( PROTO_GOOGLE_PATH "${MILVUS_SOURCE_DIR}/../../cmake_build/thirdparty/protobuf/protobuf-src/src/" ) +set( PROTO_PATH "${MILVUS_SOURCE_DIR}/../../cmake_build/thirdparty/milvus-proto/proto/") FOREACH(proto_file ${proto_file_names}) STRING( REGEX REPLACE "[^/]proto" "" proto_src_file_name ${proto_file} ) @@ -35,6 +32,32 @@ FOREACH(proto_file ${proto_file_names}) ENDFOREACH(proto_file) +set( proto_file_names + segcore.proto + index_cgo_msg.proto + plan.proto + ) + +set( PROTO_PATH "${MILVUS_SOURCE_DIR}/../proto/") +set( PROTO_GOOGLE_PATH "${MILVUS_SOURCE_DIR}/../../cmake_build/thirdparty/protobuf/protobuf-src/src/" ) +set( PROTO_API_PATH "${MILVUS_SOURCE_DIR}/../../cmake_build/thirdparty/milvus-proto/proto/" ) + +FOREACH(proto_file ${proto_file_names}) + STRING( REGEX REPLACE "[^/]proto" "" proto_src_file_name ${proto_file} ) + LIST( APPEND milvus_proto_srcs "${proto_src_file_name}.pb.cc" ) + + ADD_CUSTOM_COMMAND( + OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/${proto_src_file_name}.pb.h" + "${CMAKE_CURRENT_SOURCE_DIR}/${proto_src_file_name}.pb.cc" + COMMAND protobuf::protoc --proto_path=${PROTO_PATH}/ + --proto_path=${PROTO_GOOGLE_PATH}/ + --proto_path=${PROTO_API_PATH}/ + --cpp_out=${CMAKE_CURRENT_SOURCE_DIR}/ + ${proto_file} + DEPENDS ${PROTO_PATH}/${proto_file} ) + +ENDFOREACH(proto_file) + add_library(milvus_proto STATIC ${milvus_proto_srcs}) message(STATUS "milvus proto sources: " ${milvus_proto_srcs}) diff --git a/internal/core/src/pb/common.pb.cc b/internal/core/src/pb/common.pb.cc index 1a3a8719da..b9a79da471 100644 --- a/internal/core/src/pb/common.pb.cc +++ b/internal/core/src/pb/common.pb.cc @@ -472,9 +472,9 @@ const char descriptor_table_protodef_common_2eproto[] PROTOBUF_SECTION_VARIABLE( "lthy\020\001\022\014\n\010Abnormal\020\002\022\013\n\007StandBy\020\003:^\n\021pri" "vilege_ext_obj\022\037.google.protobuf.Message" "Options\030\351\007 \001(\0132!.milvus.proto.common.Pri" - "vilegeExtBL\n\016io.milvus.grpcB\013CommonProto" - "P\001Z(github.com/milvus-io/milvus/api/comm" - "onpb\240\001\001b\006proto3" + "vilegeExtBU\n\016io.milvus.grpcB\013CommonProto" + "P\001Z1github.com/milvus-io/milvus-proto/go" + "-api/commonpb\240\001\001b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_common_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, @@ -495,7 +495,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_com static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_common_2eproto_once; static bool descriptor_table_common_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_common_2eproto = { - &descriptor_table_common_2eproto_initialized, descriptor_table_protodef_common_2eproto, "common.proto", 5375, + &descriptor_table_common_2eproto_initialized, descriptor_table_protodef_common_2eproto, "common.proto", 5384, &descriptor_table_common_2eproto_once, descriptor_table_common_2eproto_sccs, descriptor_table_common_2eproto_deps, 11, 1, schemas, file_default_instances, TableStruct_common_2eproto::offsets, file_level_metadata_common_2eproto, 11, file_level_enum_descriptors_common_2eproto, file_level_service_descriptors_common_2eproto, diff --git a/internal/core/src/pb/schema.pb.cc b/internal/core/src/pb/schema.pb.cc index 3659af1a29..ef22047e68 100644 --- a/internal/core/src/pb/schema.pb.cc +++ b/internal/core/src/pb/schema.pb.cc @@ -522,9 +522,9 @@ const char descriptor_table_protodef_schema_2eproto[] PROTOBUF_SECTION_VARIABLE( "r\020\025\022\020\n\014BinaryVector\020d\022\017\n\013FloatVector\020e*V" "\n\nFieldState\022\020\n\014FieldCreated\020\000\022\021\n\rFieldC" "reating\020\001\022\021\n\rFieldDropping\020\002\022\020\n\014FieldDro" - "pped\020\003BL\n\016io.milvus.grpcB\013SchemaProtoP\001Z" - "(github.com/milvus-io/milvus/api/schemap" - "b\240\001\001b\006proto3" + "pped\020\003BU\n\016io.milvus.grpcB\013SchemaProtoP\001Z" + "1github.com/milvus-io/milvus-proto/go-ap" + "i/schemapb\240\001\001b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_schema_2eproto_deps[1] = { &::descriptor_table_common_2eproto, @@ -548,7 +548,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_sch static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_schema_2eproto_once; static bool descriptor_table_schema_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_schema_2eproto = { - &descriptor_table_schema_2eproto_initialized, descriptor_table_protodef_schema_2eproto, "schema.proto", 2052, + &descriptor_table_schema_2eproto_initialized, descriptor_table_protodef_schema_2eproto, "schema.proto", 2061, &descriptor_table_schema_2eproto_once, descriptor_table_schema_2eproto_sccs, descriptor_table_schema_2eproto_deps, 14, 1, schemas, file_default_instances, TableStruct_schema_2eproto::offsets, file_level_metadata_schema_2eproto, 14, file_level_enum_descriptors_schema_2eproto, file_level_service_descriptors_schema_2eproto, diff --git a/internal/datacoord/allocator.go b/internal/datacoord/allocator.go index caa9e9d17b..b7bcd6ad47 100644 --- a/internal/datacoord/allocator.go +++ b/internal/datacoord/allocator.go @@ -19,7 +19,7 @@ package datacoord import ( "context" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/rootcoordpb" "github.com/milvus-io/milvus/internal/types" ) diff --git a/internal/datacoord/channel_manager.go b/internal/datacoord/channel_manager.go index 73401bc092..a3bf24e629 100644 --- a/internal/datacoord/channel_manager.go +++ b/internal/datacoord/channel_manager.go @@ -22,8 +22,8 @@ import ( "sync" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/mq/msgstream" diff --git a/internal/datacoord/cluster.go b/internal/datacoord/cluster.go index 81140c7469..adc04aa24d 100644 --- a/internal/datacoord/cluster.go +++ b/internal/datacoord/cluster.go @@ -19,7 +19,7 @@ package datacoord import ( "context" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/datacoord/compaction.go b/internal/datacoord/compaction.go index 87fff1f69f..96f114015f 100644 --- a/internal/datacoord/compaction.go +++ b/internal/datacoord/compaction.go @@ -23,7 +23,7 @@ import ( "sync" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/util/tsoutil" diff --git a/internal/datacoord/compaction_test.go b/internal/datacoord/compaction_test.go index 0f240ff06d..de29cfd4a7 100644 --- a/internal/datacoord/compaction_test.go +++ b/internal/datacoord/compaction_test.go @@ -22,7 +22,7 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" memkv "github.com/milvus-io/milvus/internal/kv/mem" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore/kv/datacoord" diff --git a/internal/datacoord/compaction_trigger.go b/internal/datacoord/compaction_trigger.go index cd469394a4..88c1dab3c3 100644 --- a/internal/datacoord/compaction_trigger.go +++ b/internal/datacoord/compaction_trigger.go @@ -25,7 +25,7 @@ import ( "github.com/milvus-io/milvus/internal/util/tsoutil" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/datacoord/compaction_trigger_test.go b/internal/datacoord/compaction_trigger_test.go index 47d76c2fce..8e9d352650 100644 --- a/internal/datacoord/compaction_trigger_test.go +++ b/internal/datacoord/compaction_trigger_test.go @@ -26,8 +26,8 @@ import ( "github.com/milvus-io/milvus/internal/util/tsoutil" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/stretchr/testify/assert" ) diff --git a/internal/datacoord/garbage_collector.go b/internal/datacoord/garbage_collector.go index b897d9566b..4efe414ed8 100644 --- a/internal/datacoord/garbage_collector.go +++ b/internal/datacoord/garbage_collector.go @@ -23,7 +23,7 @@ import ( "sync" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/storage" diff --git a/internal/datacoord/garbage_collector_test.go b/internal/datacoord/garbage_collector_test.go index 5d4ef46afd..203c856652 100644 --- a/internal/datacoord/garbage_collector_test.go +++ b/internal/datacoord/garbage_collector_test.go @@ -25,7 +25,7 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" "github.com/milvus-io/milvus/internal/mocks" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/datacoord/handler.go b/internal/datacoord/handler.go index b1b6180895..9a56843501 100644 --- a/internal/datacoord/handler.go +++ b/internal/datacoord/handler.go @@ -19,7 +19,7 @@ package datacoord import ( "context" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/datacoord/meta.go b/internal/datacoord/meta.go index 2f2ba3974b..463bbe82c9 100644 --- a/internal/datacoord/meta.go +++ b/internal/datacoord/meta.go @@ -30,8 +30,8 @@ import ( "github.com/milvus-io/milvus/internal/common" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore" diff --git a/internal/datacoord/meta_test.go b/internal/datacoord/meta_test.go index 2edf43140f..3dc280545d 100644 --- a/internal/datacoord/meta_test.go +++ b/internal/datacoord/meta_test.go @@ -27,7 +27,7 @@ import ( "github.com/milvus-io/milvus/internal/common" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/kv" memkv "github.com/milvus-io/milvus/internal/kv/mem" "github.com/milvus-io/milvus/internal/metastore/kv/datacoord" diff --git a/internal/datacoord/metrics_info.go b/internal/datacoord/metrics_info.go index 1a537ada38..83ad1b9b39 100644 --- a/internal/datacoord/metrics_info.go +++ b/internal/datacoord/metrics_info.go @@ -22,8 +22,8 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/hardware" diff --git a/internal/datacoord/metrics_info_test.go b/internal/datacoord/metrics_info_test.go index deb5171236..9684ba2e6c 100644 --- a/internal/datacoord/metrics_info_test.go +++ b/internal/datacoord/metrics_info_test.go @@ -21,8 +21,8 @@ import ( "errors" "testing" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/types" "github.com/milvus-io/milvus/internal/util/metricsinfo" "github.com/milvus-io/milvus/internal/util/typeutil" diff --git a/internal/datacoord/mock_test.go b/internal/datacoord/mock_test.go index fe61c3893d..4e3858b2bc 100644 --- a/internal/datacoord/mock_test.go +++ b/internal/datacoord/mock_test.go @@ -22,9 +22,9 @@ import ( "sync/atomic" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/kv" memkv "github.com/milvus-io/milvus/internal/kv/mem" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/datacoord/segment_allocation_policy.go b/internal/datacoord/segment_allocation_policy.go index c273019510..478d116ea2 100644 --- a/internal/datacoord/segment_allocation_policy.go +++ b/internal/datacoord/segment_allocation_policy.go @@ -21,8 +21,8 @@ import ( "sort" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/util/tsoutil" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/datacoord/segment_allocation_policy_test.go b/internal/datacoord/segment_allocation_policy_test.go index b44faa90b3..4da133a128 100644 --- a/internal/datacoord/segment_allocation_policy_test.go +++ b/internal/datacoord/segment_allocation_policy_test.go @@ -21,8 +21,8 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/util/tsoutil" "github.com/stretchr/testify/assert" diff --git a/internal/datacoord/segment_info.go b/internal/datacoord/segment_info.go index 0f837d6d4d..64a268d98c 100644 --- a/internal/datacoord/segment_info.go +++ b/internal/datacoord/segment_info.go @@ -20,7 +20,7 @@ import ( "time" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" ) diff --git a/internal/datacoord/segment_manager.go b/internal/datacoord/segment_manager.go index eabc27ecf5..993124d96a 100644 --- a/internal/datacoord/segment_manager.go +++ b/internal/datacoord/segment_manager.go @@ -23,7 +23,7 @@ import ( "sync" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/types" diff --git a/internal/datacoord/segment_manager_test.go b/internal/datacoord/segment_manager_test.go index c7bfcc90de..91b5f53ba3 100644 --- a/internal/datacoord/segment_manager_test.go +++ b/internal/datacoord/segment_manager_test.go @@ -23,8 +23,8 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" memkv "github.com/milvus-io/milvus/internal/kv/mem" "github.com/milvus-io/milvus/internal/metastore/kv/datacoord" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/datacoord/server.go b/internal/datacoord/server.go index f18b51e549..68290fb86c 100644 --- a/internal/datacoord/server.go +++ b/internal/datacoord/server.go @@ -31,8 +31,8 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" datanodeclient "github.com/milvus-io/milvus/internal/distributed/datanode/client" rootcoordclient "github.com/milvus-io/milvus/internal/distributed/rootcoord/client" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" diff --git a/internal/datacoord/server_test.go b/internal/datacoord/server_test.go index cc98000d10..1179c56bf1 100644 --- a/internal/datacoord/server_test.go +++ b/internal/datacoord/server_test.go @@ -39,9 +39,9 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/kv" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" diff --git a/internal/datacoord/services.go b/internal/datacoord/services.go index 17e731c5e9..6e7f29117f 100644 --- a/internal/datacoord/services.go +++ b/internal/datacoord/services.go @@ -22,8 +22,8 @@ import ( "math/rand" "strconv" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/datacoord/session_manager.go b/internal/datacoord/session_manager.go index 6dea0458d7..ffa25ec5ab 100644 --- a/internal/datacoord/session_manager.go +++ b/internal/datacoord/session_manager.go @@ -22,7 +22,7 @@ import ( "sync" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" grpcdatanodeclient "github.com/milvus-io/milvus/internal/distributed/datanode/client" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/datacoord/util.go b/internal/datacoord/util.go index 85e08a202e..937f863a98 100644 --- a/internal/datacoord/util.go +++ b/internal/datacoord/util.go @@ -25,8 +25,8 @@ import ( "github.com/milvus-io/milvus/internal/common" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/types" diff --git a/internal/datacoord/util_test.go b/internal/datacoord/util_test.go index fd846dfd61..387757da46 100644 --- a/internal/datacoord/util_test.go +++ b/internal/datacoord/util_test.go @@ -22,7 +22,7 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/proto/rootcoordpb" "github.com/milvus-io/milvus/internal/util/tsoutil" diff --git a/internal/datanode/allocator.go b/internal/datanode/allocator.go index 21004875b3..dcec9b72ce 100644 --- a/internal/datanode/allocator.go +++ b/internal/datanode/allocator.go @@ -22,7 +22,7 @@ import ( "github.com/milvus-io/milvus/internal/util/metautil" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/rootcoordpb" "github.com/milvus-io/milvus/internal/types" ) diff --git a/internal/datanode/binlog_io_test.go b/internal/datanode/binlog_io_test.go index 8ca05851ea..ae02103466 100644 --- a/internal/datanode/binlog_io_test.go +++ b/internal/datanode/binlog_io_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/storage" diff --git a/internal/datanode/compactor.go b/internal/datanode/compactor.go index 80eb6a9758..3d9a25b728 100644 --- a/internal/datanode/compactor.go +++ b/internal/datanode/compactor.go @@ -25,7 +25,7 @@ import ( "sync" "time" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/datanode/compactor_test.go b/internal/datanode/compactor_test.go index 1b41d82e92..2fef4505d7 100644 --- a/internal/datanode/compactor_test.go +++ b/internal/datanode/compactor_test.go @@ -25,9 +25,9 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" memkv "github.com/milvus-io/milvus/internal/kv/mem" "github.com/milvus-io/milvus/internal/mocks" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/datanode/data_node.go b/internal/datanode/data_node.go index 5a7f0d5c7b..b50ce816cb 100644 --- a/internal/datanode/data_node.go +++ b/internal/datanode/data_node.go @@ -35,9 +35,9 @@ import ( "time" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" allocator2 "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/kv" diff --git a/internal/datanode/data_node_test.go b/internal/datanode/data_node_test.go index 33186232c8..532672aede 100644 --- a/internal/datanode/data_node_test.go +++ b/internal/datanode/data_node_test.go @@ -29,9 +29,9 @@ import ( "time" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" "github.com/milvus-io/milvus/internal/log" diff --git a/internal/datanode/data_sync_service.go b/internal/datanode/data_sync_service.go index fd3e76e6f7..4a5d929bfb 100644 --- a/internal/datanode/data_sync_service.go +++ b/internal/datanode/data_sync_service.go @@ -23,7 +23,7 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/mq/msgstream" diff --git a/internal/datanode/data_sync_service_test.go b/internal/datanode/data_sync_service_test.go index 64929dfa23..073a9cb6ad 100644 --- a/internal/datanode/data_sync_service_test.go +++ b/internal/datanode/data_sync_service_test.go @@ -28,8 +28,8 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/mq/msgstream" diff --git a/internal/datanode/flow_graph_dd_node.go b/internal/datanode/flow_graph_dd_node.go index 4bccd5ab51..4c6092ce1f 100644 --- a/internal/datanode/flow_graph_dd_node.go +++ b/internal/datanode/flow_graph_dd_node.go @@ -27,7 +27,7 @@ import ( "github.com/opentracing/opentracing-go" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" diff --git a/internal/datanode/flow_graph_dd_node_test.go b/internal/datanode/flow_graph_dd_node_test.go index 1e10d69af3..01df072fee 100644 --- a/internal/datanode/flow_graph_dd_node_test.go +++ b/internal/datanode/flow_graph_dd_node_test.go @@ -24,7 +24,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/datanode/flow_graph_delete_node.go b/internal/datanode/flow_graph_delete_node.go index 303c103593..bb2891230f 100644 --- a/internal/datanode/flow_graph_delete_node.go +++ b/internal/datanode/flow_graph_delete_node.go @@ -26,7 +26,7 @@ import ( "github.com/opentracing/opentracing-go" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" diff --git a/internal/datanode/flow_graph_delete_node_test.go b/internal/datanode/flow_graph_delete_node_test.go index 1b277fa7a1..efaa3edaf9 100644 --- a/internal/datanode/flow_graph_delete_node_test.go +++ b/internal/datanode/flow_graph_delete_node_test.go @@ -26,7 +26,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/storage" diff --git a/internal/datanode/flow_graph_insert_buffer_node.go b/internal/datanode/flow_graph_insert_buffer_node.go index 853ced4991..3ded0ed3a9 100644 --- a/internal/datanode/flow_graph_insert_buffer_node.go +++ b/internal/datanode/flow_graph_insert_buffer_node.go @@ -29,8 +29,8 @@ import ( "go.uber.org/atomic" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/mq/msgstream" diff --git a/internal/datanode/flow_graph_insert_buffer_node_test.go b/internal/datanode/flow_graph_insert_buffer_node_test.go index cf948c5564..5cdc59282f 100644 --- a/internal/datanode/flow_graph_insert_buffer_node_test.go +++ b/internal/datanode/flow_graph_insert_buffer_node_test.go @@ -24,9 +24,9 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/etcdpb" diff --git a/internal/datanode/flow_graph_manager.go b/internal/datanode/flow_graph_manager.go index 994ca5a107..7017cc6b99 100644 --- a/internal/datanode/flow_graph_manager.go +++ b/internal/datanode/flow_graph_manager.go @@ -20,7 +20,7 @@ import ( "fmt" "sync" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/datanode/flow_graph_manager_test.go b/internal/datanode/flow_graph_manager_test.go index a1401fc46e..9a104fa5cb 100644 --- a/internal/datanode/flow_graph_manager_test.go +++ b/internal/datanode/flow_graph_manager_test.go @@ -20,7 +20,7 @@ import ( "context" "testing" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/etcd" diff --git a/internal/datanode/flush_manager.go b/internal/datanode/flush_manager.go index 2235de6167..052186e931 100644 --- a/internal/datanode/flush_manager.go +++ b/internal/datanode/flush_manager.go @@ -27,7 +27,7 @@ import ( "go.uber.org/atomic" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" diff --git a/internal/datanode/flush_manager_test.go b/internal/datanode/flush_manager_test.go index c88ab0a2c3..3429345be0 100644 --- a/internal/datanode/flush_manager_test.go +++ b/internal/datanode/flush_manager_test.go @@ -24,8 +24,8 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/storage" diff --git a/internal/datanode/meta_service.go b/internal/datanode/meta_service.go index 481aed9cdf..8aa5f3632c 100644 --- a/internal/datanode/meta_service.go +++ b/internal/datanode/meta_service.go @@ -23,9 +23,9 @@ import ( "github.com/milvus-io/milvus/internal/types" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/etcdpb" ) diff --git a/internal/datanode/meta_service_test.go b/internal/datanode/meta_service_test.go index ab7c46caaf..4e7a7077c2 100644 --- a/internal/datanode/meta_service_test.go +++ b/internal/datanode/meta_service_test.go @@ -21,9 +21,9 @@ import ( "errors" "testing" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/stretchr/testify/assert" ) diff --git a/internal/datanode/metrics_info.go b/internal/datanode/metrics_info.go index 1e4d68e34d..277cb1f9a0 100644 --- a/internal/datanode/metrics_info.go +++ b/internal/datanode/metrics_info.go @@ -19,8 +19,8 @@ package datanode import ( "context" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/hardware" "github.com/milvus-io/milvus/internal/util/metricsinfo" diff --git a/internal/datanode/mock_test.go b/internal/datanode/mock_test.go index bfb128057a..475422aa7f 100644 --- a/internal/datanode/mock_test.go +++ b/internal/datanode/mock_test.go @@ -40,9 +40,9 @@ import ( "github.com/milvus-io/milvus/internal/util/tsoutil" "github.com/milvus-io/milvus/internal/util/typeutil" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/etcdpb" diff --git a/internal/datanode/segment_replica.go b/internal/datanode/segment_replica.go index 497f24299b..ecd3391308 100644 --- a/internal/datanode/segment_replica.go +++ b/internal/datanode/segment_replica.go @@ -26,7 +26,7 @@ import ( "github.com/bits-and-blooms/bloom/v3" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" diff --git a/internal/datanode/segment_replica_test.go b/internal/datanode/segment_replica_test.go index 85ce901d5e..c06ae43904 100644 --- a/internal/datanode/segment_replica_test.go +++ b/internal/datanode/segment_replica_test.go @@ -30,7 +30,7 @@ import ( "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/distributed/datacoord/client/client.go b/internal/distributed/datacoord/client/client.go index 7713649900..ddea9a132f 100644 --- a/internal/distributed/datacoord/client/client.go +++ b/internal/distributed/datacoord/client/client.go @@ -20,8 +20,8 @@ import ( "context" "fmt" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/distributed/datacoord/service.go b/internal/distributed/datacoord/service.go index 24821ac338..219e70d129 100644 --- a/internal/distributed/datacoord/service.go +++ b/internal/distributed/datacoord/service.go @@ -33,8 +33,8 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/keepalive" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/datacoord" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/distributed/datacoord/service_test.go b/internal/distributed/datacoord/service_test.go index c375c81157..86be4d2c8c 100644 --- a/internal/distributed/datacoord/service_test.go +++ b/internal/distributed/datacoord/service_test.go @@ -21,8 +21,8 @@ import ( "errors" "testing" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/mocks" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/distributed/datanode/client/client.go b/internal/distributed/datanode/client/client.go index b60b0ab5aa..c096e5de65 100644 --- a/internal/distributed/datanode/client/client.go +++ b/internal/distributed/datanode/client/client.go @@ -20,8 +20,8 @@ import ( "context" "fmt" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/funcutil" diff --git a/internal/distributed/datanode/service.go b/internal/distributed/datanode/service.go index 7fe8093f15..db183e5f57 100644 --- a/internal/distributed/datanode/service.go +++ b/internal/distributed/datanode/service.go @@ -33,8 +33,8 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/keepalive" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" dn "github.com/milvus-io/milvus/internal/datanode" dcc "github.com/milvus-io/milvus/internal/distributed/datacoord/client" rcc "github.com/milvus-io/milvus/internal/distributed/rootcoord/client" diff --git a/internal/distributed/datanode/service_test.go b/internal/distributed/datanode/service_test.go index 188410a835..af16fa8c3a 100644 --- a/internal/distributed/datanode/service_test.go +++ b/internal/distributed/datanode/service_test.go @@ -22,8 +22,8 @@ import ( "fmt" "testing" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/types" diff --git a/internal/distributed/indexcoord/client/client.go b/internal/distributed/indexcoord/client/client.go index 07b42d1194..8c18b009a7 100644 --- a/internal/distributed/indexcoord/client/client.go +++ b/internal/distributed/indexcoord/client/client.go @@ -24,8 +24,8 @@ import ( "go.uber.org/zap" "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/distributed/indexcoord/client/client_test.go b/internal/distributed/indexcoord/client/client_test.go index 21a355e6e8..a11d8c1d2d 100644 --- a/internal/distributed/indexcoord/client/client_test.go +++ b/internal/distributed/indexcoord/client/client_test.go @@ -22,8 +22,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" grpcindexcoord "github.com/milvus-io/milvus/internal/distributed/indexcoord" "github.com/milvus-io/milvus/internal/indexcoord" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" diff --git a/internal/distributed/indexcoord/service.go b/internal/distributed/indexcoord/service.go index b8e9d4257a..7fdda5e966 100644 --- a/internal/distributed/indexcoord/service.go +++ b/internal/distributed/indexcoord/service.go @@ -31,8 +31,8 @@ import ( grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" ot "github.com/grpc-ecosystem/go-grpc-middleware/tracing/opentracing" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" dcc "github.com/milvus-io/milvus/internal/distributed/datacoord/client" rcc "github.com/milvus-io/milvus/internal/distributed/rootcoord/client" "github.com/milvus-io/milvus/internal/indexcoord" diff --git a/internal/distributed/indexcoord/service_test.go b/internal/distributed/indexcoord/service_test.go index f897671b5e..22162abb5e 100644 --- a/internal/distributed/indexcoord/service_test.go +++ b/internal/distributed/indexcoord/service_test.go @@ -22,8 +22,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/indexcoord" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/distributed/indexnode/client/client.go b/internal/distributed/indexnode/client/client.go index c1b23565b7..8cce0c6cb6 100644 --- a/internal/distributed/indexnode/client/client.go +++ b/internal/distributed/indexnode/client/client.go @@ -22,8 +22,8 @@ import ( "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/funcutil" diff --git a/internal/distributed/indexnode/client/client_test.go b/internal/distributed/indexnode/client/client_test.go index aa056834c5..656cc98b8f 100644 --- a/internal/distributed/indexnode/client/client_test.go +++ b/internal/distributed/indexnode/client/client_test.go @@ -24,7 +24,7 @@ import ( "github.com/stretchr/testify/assert" "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" grpcindexnode "github.com/milvus-io/milvus/internal/distributed/indexnode" "github.com/milvus-io/milvus/internal/indexnode" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/distributed/indexnode/service.go b/internal/distributed/indexnode/service.go index 51d4a29e8b..b96923182f 100644 --- a/internal/distributed/indexnode/service.go +++ b/internal/distributed/indexnode/service.go @@ -32,8 +32,8 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/keepalive" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/indexnode" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/distributed/indexnode/service_test.go b/internal/distributed/indexnode/service_test.go index 28d9980ad8..f4551b30db 100644 --- a/internal/distributed/indexnode/service_test.go +++ b/internal/distributed/indexnode/service_test.go @@ -22,8 +22,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/indexnode" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/distributed/proxy/client/client.go b/internal/distributed/proxy/client/client.go index 2ac152a1bf..7e1e65e5fc 100644 --- a/internal/distributed/proxy/client/client.go +++ b/internal/distributed/proxy/client/client.go @@ -20,8 +20,8 @@ import ( "context" "fmt" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/proxypb" "github.com/milvus-io/milvus/internal/util/funcutil" diff --git a/internal/distributed/proxy/httpserver/handler.go b/internal/distributed/proxy/httpserver/handler.go index 1caf8e27c1..34bdee24c8 100644 --- a/internal/distributed/proxy/httpserver/handler.go +++ b/internal/distributed/proxy/httpserver/handler.go @@ -5,7 +5,7 @@ import ( "github.com/gin-gonic/gin" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/types" ) diff --git a/internal/distributed/proxy/httpserver/handler_test.go b/internal/distributed/proxy/httpserver/handler_test.go index 539df460af..81e2fc0013 100644 --- a/internal/distributed/proxy/httpserver/handler_test.go +++ b/internal/distributed/proxy/httpserver/handler_test.go @@ -12,9 +12,9 @@ import ( "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/types" "github.com/stretchr/testify/assert" ) diff --git a/internal/distributed/proxy/httpserver/wrap_request.go b/internal/distributed/proxy/httpserver/wrap_request.go index 68d527ad21..194b59cd87 100644 --- a/internal/distributed/proxy/httpserver/wrap_request.go +++ b/internal/distributed/proxy/httpserver/wrap_request.go @@ -8,9 +8,9 @@ import ( "reflect" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) // We wrap original protobuf structure for 2 reasons: diff --git a/internal/distributed/proxy/httpserver/wrap_request_test.go b/internal/distributed/proxy/httpserver/wrap_request_test.go index ab93a68e04..7669fe6a37 100644 --- a/internal/distributed/proxy/httpserver/wrap_request_test.go +++ b/internal/distributed/proxy/httpserver/wrap_request_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/stretchr/testify/assert" ) diff --git a/internal/distributed/proxy/httpserver/wrapper.go b/internal/distributed/proxy/httpserver/wrapper.go index e8ddc63c81..6d8e5a790e 100644 --- a/internal/distributed/proxy/httpserver/wrapper.go +++ b/internal/distributed/proxy/httpserver/wrapper.go @@ -7,7 +7,7 @@ import ( "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) var ( diff --git a/internal/distributed/proxy/service.go b/internal/distributed/proxy/service.go index 00dc1c2d12..751b850bab 100644 --- a/internal/distributed/proxy/service.go +++ b/internal/distributed/proxy/service.go @@ -36,8 +36,8 @@ import ( grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" grpc_auth "github.com/grpc-ecosystem/go-grpc-middleware/auth" ot "github.com/grpc-ecosystem/go-grpc-middleware/tracing/opentracing" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" dcc "github.com/milvus-io/milvus/internal/distributed/datacoord/client" icc "github.com/milvus-io/milvus/internal/distributed/indexcoord/client" "github.com/milvus-io/milvus/internal/distributed/proxy/httpserver" diff --git a/internal/distributed/proxy/service_test.go b/internal/distributed/proxy/service_test.go index 8e9d84a966..b9cb399a2b 100644 --- a/internal/distributed/proxy/service_test.go +++ b/internal/distributed/proxy/service_test.go @@ -34,8 +34,8 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/distributed/querycoord/client/client.go b/internal/distributed/querycoord/client/client.go index c115b1746e..ad150794ec 100644 --- a/internal/distributed/querycoord/client/client.go +++ b/internal/distributed/querycoord/client/client.go @@ -20,8 +20,8 @@ import ( "context" "fmt" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/distributed/querycoord/service.go b/internal/distributed/querycoord/service.go index 8e161611e9..3a701de85b 100644 --- a/internal/distributed/querycoord/service.go +++ b/internal/distributed/querycoord/service.go @@ -31,8 +31,8 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/keepalive" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" dcc "github.com/milvus-io/milvus/internal/distributed/datacoord/client" icc "github.com/milvus-io/milvus/internal/distributed/indexcoord/client" rcc "github.com/milvus-io/milvus/internal/distributed/rootcoord/client" diff --git a/internal/distributed/querycoord/service_test.go b/internal/distributed/querycoord/service_test.go index 772bad85b2..3a7c24d116 100644 --- a/internal/distributed/querycoord/service_test.go +++ b/internal/distributed/querycoord/service_test.go @@ -24,8 +24,8 @@ import ( "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/types" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/stretchr/testify/assert" diff --git a/internal/distributed/querynode/client/client.go b/internal/distributed/querynode/client/client.go index 82dd55786c..17a14aafdc 100644 --- a/internal/distributed/querynode/client/client.go +++ b/internal/distributed/querynode/client/client.go @@ -22,8 +22,8 @@ import ( "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/milvus-io/milvus/internal/util/funcutil" diff --git a/internal/distributed/querynode/service.go b/internal/distributed/querynode/service.go index 531c6fa47d..f26367bba0 100644 --- a/internal/distributed/querynode/service.go +++ b/internal/distributed/querynode/service.go @@ -32,8 +32,8 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/keepalive" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/distributed/querynode/service_test.go b/internal/distributed/querynode/service_test.go index ff2d46305f..8fa8c64084 100644 --- a/internal/distributed/querynode/service_test.go +++ b/internal/distributed/querynode/service_test.go @@ -26,8 +26,8 @@ import ( "github.com/stretchr/testify/assert" clientv3 "go.etcd.io/etcd/client/v3" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" ) diff --git a/internal/distributed/rootcoord/client/client.go b/internal/distributed/rootcoord/client/client.go index aa981834bb..58b291f7b9 100644 --- a/internal/distributed/rootcoord/client/client.go +++ b/internal/distributed/rootcoord/client/client.go @@ -20,8 +20,8 @@ import ( "context" "fmt" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/proxypb" diff --git a/internal/distributed/rootcoord/service.go b/internal/distributed/rootcoord/service.go index f2befabb09..7583486064 100644 --- a/internal/distributed/rootcoord/service.go +++ b/internal/distributed/rootcoord/service.go @@ -31,8 +31,8 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/keepalive" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/proxypb" diff --git a/internal/distributed/rootcoord/service_test.go b/internal/distributed/rootcoord/service_test.go index 8bcddf1e33..46ce441ddc 100644 --- a/internal/distributed/rootcoord/service_test.go +++ b/internal/distributed/rootcoord/service_test.go @@ -28,8 +28,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/proxypb" "github.com/milvus-io/milvus/internal/rootcoord" "github.com/milvus-io/milvus/internal/types" diff --git a/internal/indexcoord/flushed_segment_watcher_test.go b/internal/indexcoord/flushed_segment_watcher_test.go index 37ad3deb50..4d3cdb92c4 100644 --- a/internal/indexcoord/flushed_segment_watcher_test.go +++ b/internal/indexcoord/flushed_segment_watcher_test.go @@ -25,7 +25,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/metastore/kv/indexcoord" "github.com/milvus-io/milvus/internal/metastore/model" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/indexcoord/garbage_collector.go b/internal/indexcoord/garbage_collector.go index 6d7fc77c5c..04a0d6584e 100644 --- a/internal/indexcoord/garbage_collector.go +++ b/internal/indexcoord/garbage_collector.go @@ -24,7 +24,7 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore/model" diff --git a/internal/indexcoord/garbage_collector_test.go b/internal/indexcoord/garbage_collector_test.go index 4149ef05fe..9cc65c8e53 100644 --- a/internal/indexcoord/garbage_collector_test.go +++ b/internal/indexcoord/garbage_collector_test.go @@ -27,7 +27,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/metastore" "github.com/milvus-io/milvus/internal/metastore/kv/indexcoord" "github.com/milvus-io/milvus/internal/metastore/model" diff --git a/internal/indexcoord/handoff.go b/internal/indexcoord/handoff.go index 723b3e0a99..65fe36384d 100644 --- a/internal/indexcoord/handoff.go +++ b/internal/indexcoord/handoff.go @@ -26,7 +26,7 @@ import ( "github.com/golang/protobuf/proto" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/indexcoord/handoff_test.go b/internal/indexcoord/handoff_test.go index 0c8d43a0a9..dfdd1be39a 100644 --- a/internal/indexcoord/handoff_test.go +++ b/internal/indexcoord/handoff_test.go @@ -25,7 +25,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/metastore" "github.com/milvus-io/milvus/internal/metastore/kv/indexcoord" "github.com/milvus-io/milvus/internal/metastore/model" diff --git a/internal/indexcoord/index_builder.go b/internal/indexcoord/index_builder.go index 1eb3aa5477..452eefbc06 100644 --- a/internal/indexcoord/index_builder.go +++ b/internal/indexcoord/index_builder.go @@ -26,7 +26,7 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/indexcoord/index_builder_test.go b/internal/indexcoord/index_builder_test.go index 39a04abe1c..25dc637fa8 100644 --- a/internal/indexcoord/index_builder_test.go +++ b/internal/indexcoord/index_builder_test.go @@ -31,7 +31,7 @@ import ( "github.com/milvus-io/milvus/internal/metastore/kv/indexcoord" "github.com/milvus-io/milvus/internal/metastore/model" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/indexnode" "github.com/milvus-io/milvus/internal/types" "github.com/stretchr/testify/assert" diff --git a/internal/indexcoord/index_coord.go b/internal/indexcoord/index_coord.go index b958a2abd3..b172cc4573 100644 --- a/internal/indexcoord/index_coord.go +++ b/internal/indexcoord/index_coord.go @@ -33,8 +33,8 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/kv" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" diff --git a/internal/indexcoord/index_coord_mock.go b/internal/indexcoord/index_coord_mock.go index fdfc02e22e..a89c94ba5f 100644 --- a/internal/indexcoord/index_coord_mock.go +++ b/internal/indexcoord/index_coord_mock.go @@ -24,8 +24,8 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/indexcoord/index_coord_test.go b/internal/indexcoord/index_coord_test.go index 8e5ded1ea5..97b3a78dc6 100644 --- a/internal/indexcoord/index_coord_test.go +++ b/internal/indexcoord/index_coord_test.go @@ -30,7 +30,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/indexnode" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" diff --git a/internal/indexcoord/meta_table.go b/internal/indexcoord/meta_table.go index 5222fda4ce..852bd6061c 100644 --- a/internal/indexcoord/meta_table.go +++ b/internal/indexcoord/meta_table.go @@ -28,7 +28,7 @@ import ( "github.com/golang/protobuf/proto" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore" diff --git a/internal/indexcoord/meta_table_test.go b/internal/indexcoord/meta_table_test.go index 9b7f17bcf2..605b2582cf 100644 --- a/internal/indexcoord/meta_table_test.go +++ b/internal/indexcoord/meta_table_test.go @@ -23,7 +23,7 @@ import ( "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/metastore" "github.com/milvus-io/milvus/internal/metastore/kv/indexcoord" "github.com/milvus-io/milvus/internal/metastore/model" diff --git a/internal/indexcoord/metrics_info.go b/internal/indexcoord/metrics_info.go index 1ab112191a..f15f6cb5ad 100644 --- a/internal/indexcoord/metrics_info.go +++ b/internal/indexcoord/metrics_info.go @@ -21,8 +21,8 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/hardware" diff --git a/internal/indexcoord/node_manager.go b/internal/indexcoord/node_manager.go index 91ab12461a..f647e743ab 100644 --- a/internal/indexcoord/node_manager.go +++ b/internal/indexcoord/node_manager.go @@ -22,8 +22,8 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" grpcindexnodeclient "github.com/milvus-io/milvus/internal/distributed/indexnode/client" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore/model" diff --git a/internal/indexcoord/node_manager_test.go b/internal/indexcoord/node_manager_test.go index 0329735218..d7868b9cc6 100644 --- a/internal/indexcoord/node_manager_test.go +++ b/internal/indexcoord/node_manager_test.go @@ -22,7 +22,7 @@ import ( "sync" "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/indexnode" "github.com/milvus-io/milvus/internal/metastore/model" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/indexcoord/peek_client_policy.go b/internal/indexcoord/peek_client_policy.go index 2e28d0d7f5..29c1478419 100644 --- a/internal/indexcoord/peek_client_policy.go +++ b/internal/indexcoord/peek_client_policy.go @@ -16,7 +16,7 @@ package indexcoord -import "github.com/milvus-io/milvus/api/commonpb" +import "github.com/milvus-io/milvus-proto/go-api/commonpb" // PeekClientPolicy defines how to choose IndexNode. type PeekClientPolicy func(memorySize uint64, indexParams []*commonpb.KeyValuePair, diff --git a/internal/indexcoord/peek_client_policy_test.go b/internal/indexcoord/peek_client_policy_test.go index 31e7891753..3a01850ade 100644 --- a/internal/indexcoord/peek_client_policy_test.go +++ b/internal/indexcoord/peek_client_policy_test.go @@ -19,7 +19,7 @@ package indexcoord import ( "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/indexcoord/priority_queue.go b/internal/indexcoord/priority_queue.go index 86e3cfb0e5..634dcf56f0 100644 --- a/internal/indexcoord/priority_queue.go +++ b/internal/indexcoord/priority_queue.go @@ -20,7 +20,7 @@ import ( "container/heap" "sync" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) // PQItem is something we manage in a priority queue. diff --git a/internal/indexcoord/priority_queue_test.go b/internal/indexcoord/priority_queue_test.go index aed21d534a..117df17bd2 100644 --- a/internal/indexcoord/priority_queue_test.go +++ b/internal/indexcoord/priority_queue_test.go @@ -20,7 +20,7 @@ import ( "container/heap" "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/indexcoord/task.go b/internal/indexcoord/task.go index e8a0e08a3b..4a290a27bf 100644 --- a/internal/indexcoord/task.go +++ b/internal/indexcoord/task.go @@ -22,7 +22,7 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore/model" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/indexcoord/util.go b/internal/indexcoord/util.go index 3ccffabe1a..69c7401090 100644 --- a/internal/indexcoord/util.go +++ b/internal/indexcoord/util.go @@ -22,8 +22,8 @@ import ( "strconv" "strings" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/util" diff --git a/internal/indexcoord/util_test.go b/internal/indexcoord/util_test.go index e11860ecb1..13cd9d8a04 100644 --- a/internal/indexcoord/util_test.go +++ b/internal/indexcoord/util_test.go @@ -19,8 +19,8 @@ package indexcoord import ( "testing" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/indexnode/chunkmgr_mock.go b/internal/indexnode/chunkmgr_mock.go index 32fc678b76..583767a927 100644 --- a/internal/indexnode/chunkmgr_mock.go +++ b/internal/indexnode/chunkmgr_mock.go @@ -9,7 +9,7 @@ import ( "golang.org/x/exp/mmap" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/proto/etcdpb" diff --git a/internal/indexnode/indexnode.go b/internal/indexnode/indexnode.go index 77ec809560..46de611236 100644 --- a/internal/indexnode/indexnode.go +++ b/internal/indexnode/indexnode.go @@ -41,8 +41,8 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/indexnode/indexnode_mock.go b/internal/indexnode/indexnode_mock.go index 9dbb417e26..97eec38b38 100644 --- a/internal/indexnode/indexnode_mock.go +++ b/internal/indexnode/indexnode_mock.go @@ -21,8 +21,8 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/types" diff --git a/internal/indexnode/indexnode_service.go b/internal/indexnode/indexnode_service.go index d770600190..1732956e35 100644 --- a/internal/indexnode/indexnode_service.go +++ b/internal/indexnode/indexnode_service.go @@ -8,8 +8,8 @@ import ( "github.com/golang/protobuf/proto" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/indexnode/indexnode_service_test.go b/internal/indexnode/indexnode_service_test.go index a3ac9770bb..ebe8f7a117 100644 --- a/internal/indexnode/indexnode_service_test.go +++ b/internal/indexnode/indexnode_service_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/util/metricsinfo" ) diff --git a/internal/indexnode/indexnode_test.go b/internal/indexnode/indexnode_test.go index a2843dc4a7..28564b57c9 100644 --- a/internal/indexnode/indexnode_test.go +++ b/internal/indexnode/indexnode_test.go @@ -21,7 +21,7 @@ import ( "os" "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/indexnode/metrics_info.go b/internal/indexnode/metrics_info.go index a196211b0d..2eb22111e5 100644 --- a/internal/indexnode/metrics_info.go +++ b/internal/indexnode/metrics_info.go @@ -19,8 +19,8 @@ package indexnode import ( "context" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/hardware" "github.com/milvus-io/milvus/internal/util/metricsinfo" diff --git a/internal/indexnode/task.go b/internal/indexnode/task.go index 185381db1d..9570bd6e44 100644 --- a/internal/indexnode/task.go +++ b/internal/indexnode/task.go @@ -28,8 +28,8 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/indexnode/task_scheduler.go b/internal/indexnode/task_scheduler.go index 558e5841d0..3a9a479b37 100644 --- a/internal/indexnode/task_scheduler.go +++ b/internal/indexnode/task_scheduler.go @@ -25,7 +25,7 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" ) diff --git a/internal/indexnode/task_scheduler_test.go b/internal/indexnode/task_scheduler_test.go index b2622b5cd2..8fc7c50fa6 100644 --- a/internal/indexnode/task_scheduler_test.go +++ b/internal/indexnode/task_scheduler_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/indexnode/task_test.go b/internal/indexnode/task_test.go index 80c1c0512b..f688bb43e7 100644 --- a/internal/indexnode/task_test.go +++ b/internal/indexnode/task_test.go @@ -28,7 +28,7 @@ package indexnode // "github.com/golang/protobuf/proto" // etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" -// "github.com/milvus-io/milvus/api/commonpb" +// "github.com/milvus-io/milvus-proto/go-api/commonpb" // "github.com/milvus-io/milvus/internal/proto/indexpb" // "github.com/milvus-io/milvus/internal/storage" // "github.com/milvus-io/milvus/internal/util/etcd" diff --git a/internal/indexnode/taskinfo_ops.go b/internal/indexnode/taskinfo_ops.go index 2be24af71d..f0a6b6861b 100644 --- a/internal/indexnode/taskinfo_ops.go +++ b/internal/indexnode/taskinfo_ops.go @@ -4,7 +4,7 @@ import ( "github.com/golang/protobuf/proto" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/indexpb" ) diff --git a/internal/management/healthz/healthz_handler.go b/internal/management/healthz/healthz_handler.go index bc5474a909..7002dd082c 100644 --- a/internal/management/healthz/healthz_handler.go +++ b/internal/management/healthz/healthz_handler.go @@ -22,8 +22,8 @@ import ( "fmt" "net/http" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "go.uber.org/zap" ) diff --git a/internal/management/server_test.go b/internal/management/server_test.go index 449c84d4e3..a0c5578185 100644 --- a/internal/management/server_test.go +++ b/internal/management/server_test.go @@ -25,7 +25,7 @@ import ( "net/http/httptest" "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/management/healthz" "github.com/stretchr/testify/assert" diff --git a/internal/metastore/catalog.go b/internal/metastore/catalog.go index 7ead3a9562..04fa22b0f7 100644 --- a/internal/metastore/catalog.go +++ b/internal/metastore/catalog.go @@ -3,7 +3,7 @@ package metastore import ( "context" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/metastore/model" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/metastore/db/dao/collection_test.go b/internal/metastore/db/dao/collection_test.go index 69ef8910c9..b451a896d8 100644 --- a/internal/metastore/db/dao/collection_test.go +++ b/internal/metastore/db/dao/collection_test.go @@ -12,7 +12,7 @@ import ( "github.com/milvus-io/milvus/internal/common" "github.com/DATA-DOG/go-sqlmock" - commonpb "github.com/milvus-io/milvus/api/commonpb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/metastore/db/dbcore" "github.com/milvus-io/milvus/internal/metastore/db/dbmodel" "github.com/milvus-io/milvus/internal/util/typeutil" diff --git a/internal/metastore/db/dao/field_test.go b/internal/metastore/db/dao/field_test.go index fcc48cdf18..37a99b9cb6 100644 --- a/internal/metastore/db/dao/field_test.go +++ b/internal/metastore/db/dao/field_test.go @@ -6,7 +6,7 @@ import ( "time" "github.com/DATA-DOG/go-sqlmock" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/metastore/db/dbmodel" "github.com/stretchr/testify/assert" ) diff --git a/internal/metastore/db/dbmodel/collection.go b/internal/metastore/db/dbmodel/collection.go index 3739993335..b5a85be60a 100644 --- a/internal/metastore/db/dbmodel/collection.go +++ b/internal/metastore/db/dbmodel/collection.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore/model" "github.com/milvus-io/milvus/internal/util/typeutil" diff --git a/internal/metastore/db/dbmodel/collection_test.go b/internal/metastore/db/dbmodel/collection_test.go index b864349177..b5b815cd85 100644 --- a/internal/metastore/db/dbmodel/collection_test.go +++ b/internal/metastore/db/dbmodel/collection_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" ) diff --git a/internal/metastore/db/dbmodel/field.go b/internal/metastore/db/dbmodel/field.go index 6c86eb9284..7db068a4fb 100644 --- a/internal/metastore/db/dbmodel/field.go +++ b/internal/metastore/db/dbmodel/field.go @@ -4,8 +4,8 @@ import ( "encoding/json" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore/model" "github.com/milvus-io/milvus/internal/util/funcutil" diff --git a/internal/metastore/db/dbmodel/index.go b/internal/metastore/db/dbmodel/index.go index 21a20057b6..d6e4890043 100644 --- a/internal/metastore/db/dbmodel/index.go +++ b/internal/metastore/db/dbmodel/index.go @@ -4,7 +4,7 @@ import ( "encoding/json" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore/model" diff --git a/internal/metastore/db/dbmodel/role.go b/internal/metastore/db/dbmodel/role.go index 51fc3147bf..b5f887ae7a 100644 --- a/internal/metastore/db/dbmodel/role.go +++ b/internal/metastore/db/dbmodel/role.go @@ -1,6 +1,6 @@ package dbmodel -import "github.com/milvus-io/milvus/api/milvuspb" +import "github.com/milvus-io/milvus-proto/go-api/milvuspb" type Role struct { Base diff --git a/internal/metastore/db/dbmodel/segment_index.go b/internal/metastore/db/dbmodel/segment_index.go index 55c7c5c6af..42c62d076b 100644 --- a/internal/metastore/db/dbmodel/segment_index.go +++ b/internal/metastore/db/dbmodel/segment_index.go @@ -4,7 +4,7 @@ import ( "encoding/json" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore/model" diff --git a/internal/metastore/db/indexcoord/table_catalog_test.go b/internal/metastore/db/indexcoord/table_catalog_test.go index 35639ce3a4..df40c81cb2 100644 --- a/internal/metastore/db/indexcoord/table_catalog_test.go +++ b/internal/metastore/db/indexcoord/table_catalog_test.go @@ -10,7 +10,7 @@ package indexcoord // "github.com/milvus-io/milvus/internal/metastore" // "github.com/milvus-io/milvus/internal/metastore/db/dbmodel/mocks" // "github.com/milvus-io/milvus/internal/metastore/model" -// "github.com/milvus-io/milvus/api/commonpb" +// "github.com/milvus-io/milvus-proto/go-api/commonpb" // "github.com/milvus-io/milvus/internal/util/contextutil" // "github.com/milvus-io/milvus/internal/util/typeutil" // "github.com/stretchr/testify/mock" diff --git a/internal/metastore/db/rootcoord/table_catalog.go b/internal/metastore/db/rootcoord/table_catalog.go index de36fed908..7b800db8bf 100644 --- a/internal/metastore/db/rootcoord/table_catalog.go +++ b/internal/metastore/db/rootcoord/table_catalog.go @@ -15,7 +15,7 @@ import ( "github.com/milvus-io/milvus/internal/common" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore/db/dbmodel" "github.com/milvus-io/milvus/internal/metastore/model" diff --git a/internal/metastore/db/rootcoord/table_catalog_test.go b/internal/metastore/db/rootcoord/table_catalog_test.go index 047b53acb1..3597beca51 100644 --- a/internal/metastore/db/rootcoord/table_catalog_test.go +++ b/internal/metastore/db/rootcoord/table_catalog_test.go @@ -12,9 +12,9 @@ import ( pb "github.com/milvus-io/milvus/internal/proto/etcdpb" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/metastore/db/dbmodel" "github.com/milvus-io/milvus/internal/metastore/db/dbmodel/mocks" diff --git a/internal/metastore/kv/datacoord/kv_catalog.go b/internal/metastore/kv/datacoord/kv_catalog.go index 15b0c8cb2f..68b1dfa770 100644 --- a/internal/metastore/kv/datacoord/kv_catalog.go +++ b/internal/metastore/kv/datacoord/kv_catalog.go @@ -29,7 +29,7 @@ import ( "golang.org/x/exp/maps" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/metastore/kv/datacoord/kv_catalog_test.go b/internal/metastore/kv/datacoord/kv_catalog_test.go index 635f11c7bb..72bd047c3d 100644 --- a/internal/metastore/kv/datacoord/kv_catalog_test.go +++ b/internal/metastore/kv/datacoord/kv_catalog_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/kv/mocks" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/metastore/kv/indexcoord/kv_catalog_test.go b/internal/metastore/kv/indexcoord/kv_catalog_test.go index f95f4d2989..ae240f81d7 100644 --- a/internal/metastore/kv/indexcoord/kv_catalog_test.go +++ b/internal/metastore/kv/indexcoord/kv_catalog_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/protobuf/proto" "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/metastore/model" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/metastore/kv/querycoord/kv_catalog.go b/internal/metastore/kv/querycoord/kv_catalog.go index 459abbc5c2..66ea36d858 100644 --- a/internal/metastore/kv/querycoord/kv_catalog.go +++ b/internal/metastore/kv/querycoord/kv_catalog.go @@ -8,7 +8,7 @@ import ( "github.com/samber/lo" clientv3 "go.etcd.io/etcd/client/v3" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/milvus-io/milvus/internal/util" diff --git a/internal/metastore/kv/rootcoord/kv_catalog.go b/internal/metastore/kv/rootcoord/kv_catalog.go index 0b66a5356a..6a0b393966 100644 --- a/internal/metastore/kv/rootcoord/kv_catalog.go +++ b/internal/metastore/kv/rootcoord/kv_catalog.go @@ -15,8 +15,8 @@ import ( "github.com/golang/protobuf/proto" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/log" diff --git a/internal/metastore/kv/rootcoord/kv_catalog_test.go b/internal/metastore/kv/rootcoord/kv_catalog_test.go index 32b45d9a86..a0b6909438 100644 --- a/internal/metastore/kv/rootcoord/kv_catalog_test.go +++ b/internal/metastore/kv/rootcoord/kv_catalog_test.go @@ -9,12 +9,12 @@ import ( "github.com/milvus-io/milvus/internal/metastore" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/util/typeutil" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" pb "github.com/milvus-io/milvus/internal/proto/etcdpb" "github.com/stretchr/testify/assert" diff --git a/internal/metastore/mocks/RootCoordCatalog.go b/internal/metastore/mocks/RootCoordCatalog.go index 1855b53d3f..e076d30ec0 100644 --- a/internal/metastore/mocks/RootCoordCatalog.go +++ b/internal/metastore/mocks/RootCoordCatalog.go @@ -5,7 +5,7 @@ package mocks import ( context "context" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" metastore "github.com/milvus-io/milvus/internal/metastore" mock "github.com/stretchr/testify/mock" diff --git a/internal/metastore/model/collection.go b/internal/metastore/model/collection.go index 05f80e4cd3..ef61041af9 100644 --- a/internal/metastore/model/collection.go +++ b/internal/metastore/model/collection.go @@ -1,8 +1,8 @@ package model import ( - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" pb "github.com/milvus-io/milvus/internal/proto/etcdpb" ) diff --git a/internal/metastore/model/collection_test.go b/internal/metastore/model/collection_test.go index 3acace038e..d82baaf01c 100644 --- a/internal/metastore/model/collection_test.go +++ b/internal/metastore/model/collection_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" pb "github.com/milvus-io/milvus/internal/proto/etcdpb" ) diff --git a/internal/metastore/model/field.go b/internal/metastore/model/field.go index 017adaa82a..2af08b6dee 100644 --- a/internal/metastore/model/field.go +++ b/internal/metastore/model/field.go @@ -3,8 +3,8 @@ package model import ( "github.com/milvus-io/milvus/internal/common" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) type Field struct { diff --git a/internal/metastore/model/field_test.go b/internal/metastore/model/field_test.go index fe57e290ce..547363488d 100644 --- a/internal/metastore/model/field_test.go +++ b/internal/metastore/model/field_test.go @@ -3,9 +3,9 @@ package model import ( "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/stretchr/testify/assert" ) diff --git a/internal/metastore/model/index.go b/internal/metastore/model/index.go index b2a67e81f7..f74fae0a3d 100644 --- a/internal/metastore/model/index.go +++ b/internal/metastore/model/index.go @@ -2,7 +2,7 @@ package model import ( "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/indexpb" ) diff --git a/internal/metastore/model/index_test.go b/internal/metastore/model/index_test.go index 59c6ea175d..7f6b4a97d2 100644 --- a/internal/metastore/model/index_test.go +++ b/internal/metastore/model/index_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/indexpb" ) diff --git a/internal/metastore/model/segment.go b/internal/metastore/model/segment.go index 4c82445710..036d597e72 100644 --- a/internal/metastore/model/segment.go +++ b/internal/metastore/model/segment.go @@ -1,7 +1,7 @@ package model import ( - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) type Segment struct { diff --git a/internal/metastore/model/segment_index.go b/internal/metastore/model/segment_index.go index b32d095ccc..09fea43063 100644 --- a/internal/metastore/model/segment_index.go +++ b/internal/metastore/model/segment_index.go @@ -1,7 +1,7 @@ package model import ( - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/indexpb" ) diff --git a/internal/metastore/model/segment_index_test.go b/internal/metastore/model/segment_index_test.go index 974a49b24b..4b78df7439 100644 --- a/internal/metastore/model/segment_index_test.go +++ b/internal/metastore/model/segment_index_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/indexpb" ) diff --git a/internal/mocks/mock_datacoord.go b/internal/mocks/mock_datacoord.go index b5de615645..932132f8f8 100644 --- a/internal/mocks/mock_datacoord.go +++ b/internal/mocks/mock_datacoord.go @@ -5,13 +5,13 @@ package mocks import ( context "context" - commonpb "github.com/milvus-io/milvus/api/commonpb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" datapb "github.com/milvus-io/milvus/internal/proto/datapb" internalpb "github.com/milvus-io/milvus/internal/proto/internalpb" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" mock "github.com/stretchr/testify/mock" ) diff --git a/internal/mocks/mock_datanode.go b/internal/mocks/mock_datanode.go index bd50ae95f6..75759e1490 100644 --- a/internal/mocks/mock_datanode.go +++ b/internal/mocks/mock_datanode.go @@ -5,13 +5,13 @@ package mocks import ( context "context" - commonpb "github.com/milvus-io/milvus/api/commonpb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" datapb "github.com/milvus-io/milvus/internal/proto/datapb" internalpb "github.com/milvus-io/milvus/internal/proto/internalpb" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" mock "github.com/stretchr/testify/mock" ) diff --git a/internal/mocks/mock_indexcoord.go b/internal/mocks/mock_indexcoord.go index 2750e965f2..5e25f8fcea 100644 --- a/internal/mocks/mock_indexcoord.go +++ b/internal/mocks/mock_indexcoord.go @@ -5,13 +5,13 @@ package mocks import ( context "context" - commonpb "github.com/milvus-io/milvus/api/commonpb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" indexpb "github.com/milvus-io/milvus/internal/proto/indexpb" internalpb "github.com/milvus-io/milvus/internal/proto/internalpb" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" mock "github.com/stretchr/testify/mock" ) diff --git a/internal/mocks/mock_rootcoord.go b/internal/mocks/mock_rootcoord.go index 6498cc1e7b..cb15c6818d 100644 --- a/internal/mocks/mock_rootcoord.go +++ b/internal/mocks/mock_rootcoord.go @@ -5,11 +5,11 @@ package mocks import ( context "context" - commonpb "github.com/milvus-io/milvus/api/commonpb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" internalpb "github.com/milvus-io/milvus/internal/proto/internalpb" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" mock "github.com/stretchr/testify/mock" diff --git a/internal/mq/msgstream/mq_kafka_msgstream_test.go b/internal/mq/msgstream/mq_kafka_msgstream_test.go index f5d763101a..68c120c322 100644 --- a/internal/mq/msgstream/mq_kafka_msgstream_test.go +++ b/internal/mq/msgstream/mq_kafka_msgstream_test.go @@ -29,7 +29,7 @@ import ( kafkawrapper "github.com/milvus-io/milvus/internal/mq/msgstream/mqwrapper/kafka" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/funcutil" "github.com/stretchr/testify/assert" diff --git a/internal/mq/msgstream/mq_msgstream.go b/internal/mq/msgstream/mq_msgstream.go index 429dec7bf8..c97f85f96d 100644 --- a/internal/mq/msgstream/mq_msgstream.go +++ b/internal/mq/msgstream/mq_msgstream.go @@ -28,7 +28,7 @@ import ( "github.com/golang/protobuf/proto" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/mq/msgstream/mqwrapper" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/mq/msgstream/mq_msgstream_test.go b/internal/mq/msgstream/mq_msgstream_test.go index f5883b1b12..58f321e55e 100644 --- a/internal/mq/msgstream/mq_msgstream_test.go +++ b/internal/mq/msgstream/mq_msgstream_test.go @@ -40,7 +40,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/common" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" diff --git a/internal/mq/msgstream/msg.go b/internal/mq/msgstream/msg.go index 0fce1f43ce..beec82fde0 100644 --- a/internal/mq/msgstream/msg.go +++ b/internal/mq/msgstream/msg.go @@ -22,13 +22,13 @@ import ( "fmt" "time" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/util/funcutil" "github.com/milvus-io/milvus/internal/util/typeutil" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/mq/msgstream/msg_test.go b/internal/mq/msgstream/msg_test.go index c3bc22582c..026a501055 100644 --- a/internal/mq/msgstream/msg_test.go +++ b/internal/mq/msgstream/msg_test.go @@ -22,8 +22,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/mq/msgstream/repack_func.go b/internal/mq/msgstream/repack_func.go index 29a497ce00..80c7cde3ab 100644 --- a/internal/mq/msgstream/repack_func.go +++ b/internal/mq/msgstream/repack_func.go @@ -20,7 +20,7 @@ import ( "errors" "fmt" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) // InsertRepackFunc is used to repack messages after hash by primary key diff --git a/internal/mq/msgstream/trace.go b/internal/mq/msgstream/trace.go index 3a26293f4f..346d04da8d 100644 --- a/internal/mq/msgstream/trace.go +++ b/internal/mq/msgstream/trace.go @@ -25,7 +25,7 @@ import ( "github.com/opentracing/opentracing-go/ext" "github.com/opentracing/opentracing-go/log" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/util/trace" ) diff --git a/internal/mq/msgstream/unmarshal.go b/internal/mq/msgstream/unmarshal.go index c64163be2b..b132894afe 100644 --- a/internal/mq/msgstream/unmarshal.go +++ b/internal/mq/msgstream/unmarshal.go @@ -19,7 +19,7 @@ package msgstream import ( "errors" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) // UnmarshalFunc is an interface that has been implemented by each Msg diff --git a/internal/mq/msgstream/unmarshal_test.go b/internal/mq/msgstream/unmarshal_test.go index ac1329b543..b3d853fb64 100644 --- a/internal/mq/msgstream/unmarshal_test.go +++ b/internal/mq/msgstream/unmarshal_test.go @@ -23,7 +23,7 @@ import ( "github.com/golang/protobuf/proto" "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/internalpb" ) diff --git a/internal/parser/planparserv2/node_ret.go b/internal/parser/planparserv2/node_ret.go index 15f8e96baf..d1d1b80ba1 100644 --- a/internal/parser/planparserv2/node_ret.go +++ b/internal/parser/planparserv2/node_ret.go @@ -1,7 +1,7 @@ package planparserv2 import ( - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/planpb" ) diff --git a/internal/parser/planparserv2/operators.go b/internal/parser/planparserv2/operators.go index 47370b8b89..ab3def33cc 100644 --- a/internal/parser/planparserv2/operators.go +++ b/internal/parser/planparserv2/operators.go @@ -4,7 +4,7 @@ import ( "fmt" "math" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" parser "github.com/milvus-io/milvus/internal/parser/planparserv2/generated" "github.com/milvus-io/milvus/internal/proto/planpb" ) diff --git a/internal/parser/planparserv2/parser_visitor.go b/internal/parser/planparserv2/parser_visitor.go index e57a138233..b6fd1105c8 100644 --- a/internal/parser/planparserv2/parser_visitor.go +++ b/internal/parser/planparserv2/parser_visitor.go @@ -4,7 +4,7 @@ import ( "fmt" "strconv" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" parser "github.com/milvus-io/milvus/internal/parser/planparserv2/generated" "github.com/milvus-io/milvus/internal/proto/planpb" "github.com/milvus-io/milvus/internal/util/typeutil" diff --git a/internal/parser/planparserv2/plan_parser_v2.go b/internal/parser/planparserv2/plan_parser_v2.go index 7b10b401c5..1fe719fa48 100644 --- a/internal/parser/planparserv2/plan_parser_v2.go +++ b/internal/parser/planparserv2/plan_parser_v2.go @@ -3,7 +3,7 @@ package planparserv2 import ( "fmt" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/planpb" "github.com/milvus-io/milvus/internal/util/typeutil" diff --git a/internal/parser/planparserv2/plan_parser_v2_test.go b/internal/parser/planparserv2/plan_parser_v2_test.go index 58e7e2f510..02be4df379 100644 --- a/internal/parser/planparserv2/plan_parser_v2_test.go +++ b/internal/parser/planparserv2/plan_parser_v2_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/parser/planparserv2/utils.go b/internal/parser/planparserv2/utils.go index c185f00a4e..0105ec0b6e 100644 --- a/internal/parser/planparserv2/utils.go +++ b/internal/parser/planparserv2/utils.go @@ -5,7 +5,7 @@ import ( "github.com/milvus-io/milvus/internal/util/typeutil" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/planpb" ) diff --git a/internal/parser/planparserv2/utils_test.go b/internal/parser/planparserv2/utils_test.go index a33ecf65f6..58ab01a990 100644 --- a/internal/parser/planparserv2/utils_test.go +++ b/internal/parser/planparserv2/utils_test.go @@ -3,7 +3,7 @@ package planparserv2 import ( "testing" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) func Test_relationalCompatible(t *testing.T) { diff --git a/internal/proto/common.proto b/internal/proto/common.proto deleted file mode 100644 index 837d9d48ec..0000000000 --- a/internal/proto/common.proto +++ /dev/null @@ -1,338 +0,0 @@ -syntax = "proto3"; -package milvus.proto.common; - -option go_package="github.com/milvus-io/milvus/api/commonpb"; - -option java_multiple_files = true; -option java_package = "io.milvus.grpc"; -option java_outer_classname = "CommonProto"; -option java_generate_equals_and_hash = true; - -import "google/protobuf/descriptor.proto"; - -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; - GetUserFailure = 34; - CreateRoleFailure = 35; - DropRoleFailure = 36; - OperateUserRoleFailure = 37; - SelectRoleFailure = 38; - SelectUserFailure = 39; - SelectResourceFailure = 40; - OperatePrivilegeFailure = 41; - SelectGrantFailure = 42; - RefreshPolicyInfoCacheFailure = 43; - ListPolicyFailure = 44; - NotShardLeader = 45; - NoReplicaAvailable = 46; - SegmentNotFound = 47; - ForceDeny = 48; - RateLimit = 49; - NodeIDNotMatch = 50; - - // Service availability. - // NA: Not Available. - DataCoordNA = 100; - - // internal error code. - DDRequestRace = 1000; -} - -enum IndexState { - IndexStateNone = 0; - Unissued = 1; - InProgress = 2; - Finished = 3; - Failed = 4; - Retry = 5; -} - -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; -} - -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 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; - AlterCollection = 111; - - - /* 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; - ResendSegmentStats = 403; - - /* 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; - GetReplicas = 515; - UnsubDmChannel = 516; - GetDistribution = 517; - SyncDistribution = 518; - - /* 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; - - /* RBAC */ - CreateRole = 1600; - DropRole = 1601; - OperateUserRole = 1602; - SelectRole = 1603; - SelectUser = 1604; - SelectResource = 1605; - OperatePrivilege = 1606; - SelectGrant = 1607; - RefreshPolicyInfoCache = 1608; - ListPolicy = 1609; -} - -message MsgBase { - MsgType msg_type = 1; - int64 msgID = 2; - uint64 timestamp = 3; - int64 sourceID = 4; - int64 targetID = 5; -} - -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; // the task in in pending list of rootCoord, waiting to be executed - ImportFailed = 1; // the task failed for some reason, get detail reason from GetImportStateResponse.infos - ImportStarted = 2; // the task has been sent to datanode to execute - ImportPersisted = 5; // all data files have been parsed and data already persisted - ImportCompleted = 6; // all indexes are successfully built and segments are able to be compacted as normal. - ImportFailedAndCleaned = 7; // the task failed and all segments it generated are cleaned up. -} - -enum ObjectType { - Collection = 0; - Global = 1; - User = 2; -} - -enum ObjectPrivilege { - PrivilegeAll = 0; - PrivilegeCreateCollection = 1; - PrivilegeDropCollection = 2; - PrivilegeDescribeCollection = 3; - PrivilegeShowCollections = 4; - PrivilegeLoad = 5; - PrivilegeRelease = 6; - PrivilegeCompaction = 7; - PrivilegeInsert = 8; - PrivilegeDelete = 9; - - PrivilegeGetStatistics = 10; - PrivilegeCreateIndex = 11; - PrivilegeIndexDetail = 12; - PrivilegeDropIndex = 13; - PrivilegeSearch = 14; - PrivilegeFlush = 15; - PrivilegeQuery = 16; - PrivilegeLoadBalance = 17; - PrivilegeImport = 18; - PrivilegeCreateOwnership = 19; - PrivilegeUpdateUser = 20; - PrivilegeDropOwnership = 21; - PrivilegeSelectOwnership = 22; - PrivilegeManageOwnership = 23; - PrivilegeSelectUser = 24; -} - -message PrivilegeExt { - ObjectType object_type = 1; - ObjectPrivilege object_privilege = 2; - int32 object_name_index = 3; - int32 object_name_indexs = 4; -} - -extend google.protobuf.MessageOptions { - PrivilegeExt privilege_ext_obj = 1001; -} - -enum StateCode { - Initializing = 0; - Healthy = 1; - Abnormal = 2; - StandBy = 3; -} diff --git a/internal/proto/datapb/data_coord.pb.go b/internal/proto/datapb/data_coord.pb.go index d3651b7497..29a05ed1bf 100644 --- a/internal/proto/datapb/data_coord.pb.go +++ b/internal/proto/datapb/data_coord.pb.go @@ -7,9 +7,9 @@ import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - commonpb "github.com/milvus-io/milvus/api/commonpb" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" - schemapb "github.com/milvus-io/milvus/api/schemapb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" + schemapb "github.com/milvus-io/milvus-proto/go-api/schemapb" internalpb "github.com/milvus-io/milvus/internal/proto/internalpb" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" diff --git a/internal/proto/etcdpb/etcd_meta.pb.go b/internal/proto/etcdpb/etcd_meta.pb.go index 340350122e..e9dc5d448f 100644 --- a/internal/proto/etcdpb/etcd_meta.pb.go +++ b/internal/proto/etcdpb/etcd_meta.pb.go @@ -6,8 +6,8 @@ package etcdpb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - commonpb "github.com/milvus-io/milvus/api/commonpb" - schemapb "github.com/milvus-io/milvus/api/schemapb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" + schemapb "github.com/milvus-io/milvus-proto/go-api/schemapb" math "math" ) diff --git a/internal/proto/indexcgopb/index_cgo_msg.pb.go b/internal/proto/indexcgopb/index_cgo_msg.pb.go index 60d7c26e23..a86fc20d55 100644 --- a/internal/proto/indexcgopb/index_cgo_msg.pb.go +++ b/internal/proto/indexcgopb/index_cgo_msg.pb.go @@ -6,7 +6,7 @@ package indexcgopb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - commonpb "github.com/milvus-io/milvus/api/commonpb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" math "math" ) diff --git a/internal/proto/indexpb/index_coord.pb.go b/internal/proto/indexpb/index_coord.pb.go index 2f4785df7d..f417d90ebe 100644 --- a/internal/proto/indexpb/index_coord.pb.go +++ b/internal/proto/indexpb/index_coord.pb.go @@ -7,8 +7,8 @@ import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - commonpb "github.com/milvus-io/milvus/api/commonpb" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" internalpb "github.com/milvus-io/milvus/internal/proto/internalpb" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" diff --git a/internal/proto/internalpb/internal.pb.go b/internal/proto/internalpb/internal.pb.go index 3617d18c1f..4690d50b92 100644 --- a/internal/proto/internalpb/internal.pb.go +++ b/internal/proto/internalpb/internal.pb.go @@ -6,8 +6,8 @@ package internalpb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - commonpb "github.com/milvus-io/milvus/api/commonpb" - schemapb "github.com/milvus-io/milvus/api/schemapb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" + schemapb "github.com/milvus-io/milvus-proto/go-api/schemapb" math "math" ) diff --git a/internal/proto/milvus.proto b/internal/proto/milvus.proto deleted file mode 100644 index 3f99d4bf09..0000000000 --- a/internal/proto/milvus.proto +++ /dev/null @@ -1,1341 +0,0 @@ -syntax = "proto3"; -package milvus.proto.milvus; - -option go_package = "github.com/milvus-io/milvus/api/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"; -import "google/protobuf/descriptor.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 AlterCollection(AlterCollectionRequest) returns (common.Status) {} - - 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 GetLoadingProgress(GetLoadingProgressRequest) returns (GetLoadingProgressResponse) {} - - 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) {} - // Deprecated: use DescribeIndex instead - rpc GetIndexState(GetIndexStateRequest) returns (GetIndexStateResponse) {} - // Deprecated: use DescribeIndex instead - 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 GetComponentStates(GetComponentStatesRequest) returns (ComponentStates) {} - - 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) {} - rpc ListImportTasks(ListImportTasksRequest) returns (ListImportTasksResponse) {} - - // 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) {} - - // https://wiki.lfaidata.foundation/display/MIL/MEP+29+--+Support+Role-Based+Access+Control - rpc CreateRole(CreateRoleRequest) returns (common.Status) {} - rpc DropRole(DropRoleRequest) returns (common.Status) {} - rpc OperateUserRole(OperateUserRoleRequest) returns (common.Status) {} - rpc SelectRole(SelectRoleRequest) returns (SelectRoleResponse) {} - rpc SelectUser(SelectUserRequest) returns (SelectUserResponse) {} - rpc OperatePrivilege(OperatePrivilegeRequest) returns (common.Status) {} - rpc SelectGrant(SelectGrantRequest) returns (SelectGrantResponse) {} - - rpc GetVersion(GetVersionRequest) returns (GetVersionResponse) {} -} - -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 { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeCreateCollection - object_name_index: -1 - }; - // 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; - repeated common.KeyValuePair properties = 7; -} - -/** -* Drop collection in milvus, also will drop data in collection. -*/ -message DropCollectionRequest { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeDropCollection - object_name_index: -1 - }; - // 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; -} - -/** -* Alter collection in milvus -*/ -message AlterCollectionRequest { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeCreateCollection - object_name_index: -1 - }; - // 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; - int64 collectionID = 4; - repeated common.KeyValuePair properties = 5; -} - -/** -* 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 { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeDescribeCollection - object_name_index: -1 - }; - // 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; - repeated common.KeyValuePair properties = 13; -} - -/** -* Load collection data into query nodes, then you can do vector search on this collection. -*/ -message LoadCollectionRequest { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeLoad - object_name_index: 3 - }; - // 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 { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeRelease - object_name_index: 3 - }; - // 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 statistics like row_count. -* WARNING: This API is experimental and not useful for now. -*/ -message GetStatisticsRequest { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeGetStatistics - object_name_index: 3 - }; - // 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; - // The partition names you want get statistics, empty for all partitions - repeated string partition_names = 4; - // Not useful for now, reserved for future - uint64 guarantee_timestamp = 5; -} - -/** -* Will return statistics in stats field like [{key:"row_count",value:"1"}] -* WARNING: This API is experimental and not useful for now. -*/ -message GetStatisticsResponse { - // Contain error_code and reason - common.Status status = 1; - // Collection statistics data - repeated common.KeyValuePair stats = 2; -} - -/** -* Get collection statistics like row_count. -*/ -message GetCollectionStatisticsRequest { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeGetStatistics - object_name_index: 3 - }; - // 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. -*/ -// Deprecated: use GetLoadingProgress rpc instead -enum ShowType { - // Will return all collections - All = 0; - // Will return loaded collections with their inMemory_percentages - InMemory = 1; -} - -/* -* List collections -*/ -message ShowCollectionsRequest { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeShowCollections - object_name_index: -1 - }; - // 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) - // Deprecated: use GetLoadingProgress rpc instead - 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 - // Deprecated: use GetLoadingProgress rpc instead - repeated int64 inMemory_percentages = 6; - // Indicate whether query service is available - repeated bool query_service_available = 7; -} - -/* -* 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) - // Deprecated: use GetLoadingProgress rpc instead - 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 - // Deprecated: use GetLoadingProgress rpc instead - 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 { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeCreateIndex - object_name_index: 3 - }; - // 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 { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeIndexDetail - object_name_index: 3 - }; - // 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; - // index build progress - int64 indexed_rows = 5; - int64 total_rows = 6; - // index state - common.IndexState state = 7; - string index_state_fail_reason = 8; -} - -/* -* 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 { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeIndexDetail - object_name_index: 3 - }; - // 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 { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeIndexDetail - object_name_index: 3 - }; - 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 { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeDropIndex - object_name_index: 3 - }; - 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 { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeInsert - object_name_index: 3 - }; - 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 { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeDelete - object_name_index: 3 - }; - common.MsgBase base = 1; - string db_name = 2; - string collection_name = 3; - string partition_name = 4; - string expr = 5; - repeated uint32 hash_keys = 6; -} - - -message SearchRequest { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeSearch - object_name_index: 3 - }; - 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 - int64 nq = 12; -} - -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 { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeFlush - object_name_indexs: 3 - }; - 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; - map flush_coll_segIDs = 4; - map coll_seal_times = 5; -} - -message QueryRequest { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeQuery - object_name_index: 3 - }; - 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 - repeated common.KeyValuePair query_params = 9; // optional -} - -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; - // deprecated, check node_ids(NodeIds) field - int64 nodeID = 8; - common.SegmentState state = 9; - repeated int64 nodeIds = 10; -} - -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 -} - -message ComponentInfo { - int64 nodeID = 1; - string role = 2; - common.StateCode state_code = 3; - repeated common.KeyValuePair extra_info = 4; -} - -message ComponentStates { - ComponentInfo state = 1; - repeated ComponentInfo subcomponent_states = 2; - common.Status status = 3; -} - -message GetComponentStatesRequest { -} - -/* -* Do load balancing operation from src_nodeID to dst_nodeID. -*/ -message LoadBalanceRequest { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeLoadBalance - object_name_index: 5 - }; - common.MsgBase base = 1; - int64 src_nodeID = 2; - repeated int64 dst_nodeIDs = 3; - repeated int64 sealed_segmentIDs = 4; - string collectionName = 5; -} - -message ManualCompactionRequest { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeCompaction - object_name_index: 1 - }; - 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; - int64 failedPlanNo = 6; -} - -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 { - option (common.privilege_ext_obj) = { - object_type: Collection - object_privilege: PrivilegeImport - object_name_index: 1 - }; - 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 information about the task, progress percent, file path, failed reason, etc. - int64 id = 6; // id of an import task - int64 collection_id = 7; // collection ID of the import task. - repeated int64 segment_ids = 8; // a list of segment IDs created by the import task. - int64 create_ts = 9; // timestamp when the import task is created. -} - -message ListImportTasksRequest { - string collection_name = 1; // target collection, list all tasks if the name is empty - int64 limit = 2; // maximum number of tasks returned, list all tasks if the value is 0 -} - -message ListImportTasksResponse { - common.Status status = 1; - repeated GetImportStateResponse tasks = 2; // list of all import tasks -} - -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 { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeCreateOwnership - object_name_index: -1 - }; - // 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 { - option (common.privilege_ext_obj) = { - object_type: User - object_privilege: PrivilegeUpdateUser - object_name_index: 2 - }; - // 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 { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeDropOwnership - object_name_index: -1 - }; - // 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 { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeSelectOwnership - object_name_index: -1 - }; - // Not useful for now - common.MsgBase base = 1; -} - -// https://wiki.lfaidata.foundation/display/MIL/MEP+29+--+Support+Role-Based+Access+Control -message RoleEntity { - string name = 1; -} - -message UserEntity { - string name = 1; -} - -message CreateRoleRequest { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeCreateOwnership - object_name_index: -1 - }; - // Not useful for now - common.MsgBase base = 1; - // role - RoleEntity entity = 2; -} - -message DropRoleRequest { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeDropOwnership - object_name_index: -1 - }; - // Not useful for now - common.MsgBase base = 1; - // role name - string role_name = 2; -} - -enum OperateUserRoleType { - AddUserToRole = 0; - RemoveUserFromRole = 1; -} - -message OperateUserRoleRequest { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeManageOwnership - object_name_index: -1 - }; - // Not useful for now - common.MsgBase base = 1; - // username - string username = 2; - // role name - string role_name = 3; - // operation type - OperateUserRoleType type = 4; -} - -message SelectRoleRequest { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeSelectOwnership - object_name_index: -1 - }; - // Not useful for now - common.MsgBase base = 1; - // role - RoleEntity role = 2; - // include user info - bool include_user_info = 3; -} - -message RoleResult { - RoleEntity role = 1; - repeated UserEntity users = 2; -} - -message SelectRoleResponse { - // Not useful for now - common.Status status = 1; - // role result array - repeated RoleResult results = 2; -} - -message SelectUserRequest { - option (common.privilege_ext_obj) = { - object_type: User - object_privilege: PrivilegeSelectUser - object_name_index: 2 - }; - // Not useful for now - common.MsgBase base = 1; - // user - UserEntity user = 2; - // include user info - bool include_role_info = 3; -} - -message UserResult { - UserEntity user = 1; - repeated RoleEntity roles = 2; -} - -message SelectUserResponse { - // Not useful for now - common.Status status = 1; - // user result array - repeated UserResult results = 2; -} - -message ObjectEntity { - string name = 1; -} - -message PrivilegeEntity { - string name = 1; -} - -message GrantorEntity { - UserEntity user = 1; - PrivilegeEntity privilege = 2; -} - -message GrantPrivilegeEntity { - repeated GrantorEntity entities = 1; -} - -message GrantEntity { - // role - RoleEntity role = 1; - // object - ObjectEntity object = 2; - // object name - string object_name = 3; - // privilege - GrantorEntity grantor = 4; -} - -message SelectGrantRequest { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeSelectOwnership - object_name_index: -1 - }; - // Not useful for now - common.MsgBase base = 1; - // grant - GrantEntity entity = 2; -} - -message SelectGrantResponse { - // Not useful for now - common.Status status = 1; - // grant info array - repeated GrantEntity entities = 2; -} - -enum OperatePrivilegeType { - Grant = 0; - Revoke = 1; -} - -message OperatePrivilegeRequest { - option (common.privilege_ext_obj) = { - object_type: Global - object_privilege: PrivilegeManageOwnership - object_name_index: -1 - }; - // Not useful for now - common.MsgBase base = 1; - // grant - GrantEntity entity = 2; - // operation type - OperatePrivilegeType type = 3; -} - -message GetLoadingProgressRequest { - // Not useful for now - common.MsgBase base = 1; - string collection_name = 2; - repeated string partition_names = 3; -} - -message GetLoadingProgressResponse { - common.Status status = 1; - int64 progress = 2; -} - -message MilvusExt { - string version = 1; -} - -extend google.protobuf.FileOptions { - MilvusExt milvus_ext_obj = 1001; -} - -message GetVersionRequest { -} - -message GetVersionResponse { - string version =1; -} diff --git a/internal/proto/planpb/plan.pb.go b/internal/proto/planpb/plan.pb.go index 030e97ebcd..dd0c4b2384 100644 --- a/internal/proto/planpb/plan.pb.go +++ b/internal/proto/planpb/plan.pb.go @@ -6,7 +6,7 @@ package planpb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - schemapb "github.com/milvus-io/milvus/api/schemapb" + schemapb "github.com/milvus-io/milvus-proto/go-api/schemapb" math "math" ) diff --git a/internal/proto/proxypb/proxy.pb.go b/internal/proto/proxypb/proxy.pb.go index dd5f67b1c2..5bbaeed181 100644 --- a/internal/proto/proxypb/proxy.pb.go +++ b/internal/proto/proxypb/proxy.pb.go @@ -7,8 +7,8 @@ import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - commonpb "github.com/milvus-io/milvus/api/commonpb" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" internalpb "github.com/milvus-io/milvus/internal/proto/internalpb" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" diff --git a/internal/proto/querypb/query_coord.pb.go b/internal/proto/querypb/query_coord.pb.go index 32cbdc3e86..41b459eaae 100644 --- a/internal/proto/querypb/query_coord.pb.go +++ b/internal/proto/querypb/query_coord.pb.go @@ -7,9 +7,9 @@ import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - commonpb "github.com/milvus-io/milvus/api/commonpb" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" - schemapb "github.com/milvus-io/milvus/api/schemapb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" + schemapb "github.com/milvus-io/milvus-proto/go-api/schemapb" datapb "github.com/milvus-io/milvus/internal/proto/datapb" internalpb "github.com/milvus-io/milvus/internal/proto/internalpb" grpc "google.golang.org/grpc" diff --git a/internal/proto/rootcoordpb/root_coord.pb.go b/internal/proto/rootcoordpb/root_coord.pb.go index 2692ec1d6b..b73ce42bf2 100644 --- a/internal/proto/rootcoordpb/root_coord.pb.go +++ b/internal/proto/rootcoordpb/root_coord.pb.go @@ -7,8 +7,8 @@ import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - commonpb "github.com/milvus-io/milvus/api/commonpb" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" etcdpb "github.com/milvus-io/milvus/internal/proto/etcdpb" internalpb "github.com/milvus-io/milvus/internal/proto/internalpb" proxypb "github.com/milvus-io/milvus/internal/proto/proxypb" diff --git a/internal/proto/schema.proto b/internal/proto/schema.proto deleted file mode 100644 index 6ae896fe27..0000000000 --- a/internal/proto/schema.proto +++ /dev/null @@ -1,140 +0,0 @@ -syntax = "proto3"; -package milvus.proto.schema; - -option go_package = "github.com/milvus-io/milvus/api/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; -} - -enum FieldState { - FieldCreated = 0; - FieldCreating = 1; - FieldDropping = 2; - FieldDropped = 3; -} - -/** - * @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; - FieldState state = 9; // To keep compatible with older version, the default state is `Created`. -} - -/** - * @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/internal/proto/segcorepb/segcore.pb.go b/internal/proto/segcorepb/segcore.pb.go index 43c746a86b..c6b8426073 100644 --- a/internal/proto/segcorepb/segcore.pb.go +++ b/internal/proto/segcorepb/segcore.pb.go @@ -6,7 +6,7 @@ package segcorepb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - schemapb "github.com/milvus-io/milvus/api/schemapb" + schemapb "github.com/milvus-io/milvus-proto/go-api/schemapb" math "math" ) diff --git a/internal/proxy/channels_mgr.go b/internal/proxy/channels_mgr.go index 0ab5ff78e5..ebcadd1809 100644 --- a/internal/proxy/channels_mgr.go +++ b/internal/proxy/channels_mgr.go @@ -24,8 +24,8 @@ import ( "strconv" "sync" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/mq/msgstream" diff --git a/internal/proxy/channels_mgr_test.go b/internal/proxy/channels_mgr_test.go index c18bb0851f..7a4c625b41 100644 --- a/internal/proxy/channels_mgr_test.go +++ b/internal/proxy/channels_mgr_test.go @@ -23,8 +23,8 @@ import ( "github.com/milvus-io/milvus/internal/mq/msgstream" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/stretchr/testify/assert" ) diff --git a/internal/proxy/data_coord_mock_test.go b/internal/proxy/data_coord_mock_test.go index 61e6ac3668..13eb02be61 100644 --- a/internal/proxy/data_coord_mock_test.go +++ b/internal/proxy/data_coord_mock_test.go @@ -20,8 +20,8 @@ import ( "context" "sync/atomic" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/funcutil" diff --git a/internal/proxy/error.go b/internal/proxy/error.go index fbca188337..c87ca4ff0b 100644 --- a/internal/proxy/error.go +++ b/internal/proxy/error.go @@ -23,7 +23,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) // TODO(dragondriver): add more common error type diff --git a/internal/proxy/error_test.go b/internal/proxy/error_test.go index 328d0f5c65..11feebe16c 100644 --- a/internal/proxy/error_test.go +++ b/internal/proxy/error_test.go @@ -19,7 +19,7 @@ package proxy import ( "testing" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "go.uber.org/zap" ) diff --git a/internal/proxy/hook_interceptor.go b/internal/proxy/hook_interceptor.go index 8bbef7325d..f5d4146245 100644 --- a/internal/proxy/hook_interceptor.go +++ b/internal/proxy/hook_interceptor.go @@ -5,7 +5,7 @@ import ( "fmt" "plugin" - "github.com/milvus-io/milvus/api/hook" + "github.com/milvus-io/milvus-proto/go-api/hook" "go.uber.org/zap" diff --git a/internal/proxy/impl.go b/internal/proxy/impl.go index 92b136c5e8..2c3261aab4 100644 --- a/internal/proxy/impl.go +++ b/internal/proxy/impl.go @@ -24,8 +24,8 @@ import ( "strconv" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" diff --git a/internal/proxy/impl_test.go b/internal/proxy/impl_test.go index 370fce9e21..14418cabd1 100644 --- a/internal/proxy/impl_test.go +++ b/internal/proxy/impl_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/proxypb" "github.com/stretchr/testify/assert" diff --git a/internal/proxy/index_coord_mock_test.go b/internal/proxy/index_coord_mock_test.go index ec5bf36424..4467292e92 100644 --- a/internal/proxy/index_coord_mock_test.go +++ b/internal/proxy/index_coord_mock_test.go @@ -28,8 +28,8 @@ import ( "github.com/milvus-io/milvus/internal/util/funcutil" "github.com/milvus-io/milvus/internal/util/uniquegenerator" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/typeutil" diff --git a/internal/proxy/meta_cache.go b/internal/proxy/meta_cache.go index 7c028306a9..a2c0d854b6 100644 --- a/internal/proxy/meta_cache.go +++ b/internal/proxy/meta_cache.go @@ -28,9 +28,9 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" diff --git a/internal/proxy/meta_cache_test.go b/internal/proxy/meta_cache_test.go index 615aa461af..ff31378bbf 100644 --- a/internal/proxy/meta_cache_test.go +++ b/internal/proxy/meta_cache_test.go @@ -27,9 +27,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/proxy/metrics_info.go b/internal/proxy/metrics_info.go index c2b13dd3d9..7a0c0d9291 100644 --- a/internal/proxy/metrics_info.go +++ b/internal/proxy/metrics_info.go @@ -20,8 +20,8 @@ import ( "context" "sync" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/hardware" "github.com/milvus-io/milvus/internal/util/metricsinfo" diff --git a/internal/proxy/metrics_info_test.go b/internal/proxy/metrics_info_test.go index f90d34e36f..6d7c43c17b 100644 --- a/internal/proxy/metrics_info_test.go +++ b/internal/proxy/metrics_info_test.go @@ -25,8 +25,8 @@ import ( "github.com/milvus-io/milvus/internal/util/uniquegenerator" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/util/typeutil" "github.com/stretchr/testify/assert" diff --git a/internal/proxy/mock_cache_test.go b/internal/proxy/mock_cache_test.go index 4bba76cec6..1f697ce5a7 100644 --- a/internal/proxy/mock_cache_test.go +++ b/internal/proxy/mock_cache_test.go @@ -3,7 +3,7 @@ package proxy import ( "context" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/proxy/mock_test.go b/internal/proxy/mock_test.go index 4236976e5b..4ef14de97b 100644 --- a/internal/proxy/mock_test.go +++ b/internal/proxy/mock_test.go @@ -22,8 +22,8 @@ import ( "sync" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/mq/msgstream/mqwrapper" diff --git a/internal/proxy/plan_parser.go b/internal/proxy/plan_parser.go index 443c5c3b4f..66006c1403 100644 --- a/internal/proxy/plan_parser.go +++ b/internal/proxy/plan_parser.go @@ -23,7 +23,7 @@ import ( ant_ast "github.com/antonmedv/expr/ast" ant_parser "github.com/antonmedv/expr/parser" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/planpb" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/proxy/plan_parser_test.go b/internal/proxy/plan_parser_test.go index 3c3bbb14e8..a9954060fb 100644 --- a/internal/proxy/plan_parser_test.go +++ b/internal/proxy/plan_parser_test.go @@ -28,7 +28,7 @@ import ( "github.com/golang/protobuf/proto" "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/planpb" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/proxy/privilege_interceptor.go b/internal/proxy/privilege_interceptor.go index 1a1fc9245a..b2078426d1 100644 --- a/internal/proxy/privilege_interceptor.go +++ b/internal/proxy/privilege_interceptor.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/util" diff --git a/internal/proxy/privilege_interceptor_test.go b/internal/proxy/privilege_interceptor_test.go index 9212eb688a..9f0296aae6 100644 --- a/internal/proxy/privilege_interceptor_test.go +++ b/internal/proxy/privilege_interceptor_test.go @@ -6,8 +6,8 @@ import ( "github.com/milvus-io/milvus/internal/util/funcutil" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/proxy/proxy.go b/internal/proxy/proxy.go index 2e4aa1b06e..14565fef66 100644 --- a/internal/proxy/proxy.go +++ b/internal/proxy/proxy.go @@ -31,7 +31,7 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" diff --git a/internal/proxy/proxy_test.go b/internal/proxy/proxy_test.go index 7ffcef83e1..b6170ae55d 100644 --- a/internal/proxy/proxy_test.go +++ b/internal/proxy/proxy_test.go @@ -54,9 +54,9 @@ import ( "github.com/milvus-io/milvus/internal/util/trace" "github.com/milvus-io/milvus/internal/util/typeutil" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/proxypb" "github.com/milvus-io/milvus/internal/proto/rootcoordpb" diff --git a/internal/proxy/query_coord_mock_test.go b/internal/proxy/query_coord_mock_test.go index cf9738cd17..7ca29b9f24 100644 --- a/internal/proxy/query_coord_mock_test.go +++ b/internal/proxy/query_coord_mock_test.go @@ -25,8 +25,8 @@ import ( "github.com/milvus-io/milvus/internal/util/funcutil" "github.com/milvus-io/milvus/internal/util/uniquegenerator" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/milvus-io/milvus/internal/util/typeutil" diff --git a/internal/proxy/query_node_mock_test.go b/internal/proxy/query_node_mock_test.go index 66f13dc521..adea72af73 100644 --- a/internal/proxy/query_node_mock_test.go +++ b/internal/proxy/query_node_mock_test.go @@ -22,8 +22,8 @@ import ( "github.com/milvus-io/milvus/internal/types" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/milvus-io/milvus/internal/util/typeutil" diff --git a/internal/proxy/rate_limit_interceptor.go b/internal/proxy/rate_limit_interceptor.go index 736b054187..f1d3cb0d75 100644 --- a/internal/proxy/rate_limit_interceptor.go +++ b/internal/proxy/rate_limit_interceptor.go @@ -24,8 +24,8 @@ import ( "github.com/golang/protobuf/proto" "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/types" ) diff --git a/internal/proxy/rate_limit_interceptor_test.go b/internal/proxy/rate_limit_interceptor_test.go index c1090ce002..d2149fc106 100644 --- a/internal/proxy/rate_limit_interceptor_test.go +++ b/internal/proxy/rate_limit_interceptor_test.go @@ -24,8 +24,8 @@ import ( "github.com/stretchr/testify/assert" "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" ) diff --git a/internal/proxy/rootcoord_mock_test.go b/internal/proxy/rootcoord_mock_test.go index 670f300f9d..4904e95c32 100644 --- a/internal/proxy/rootcoord_mock_test.go +++ b/internal/proxy/rootcoord_mock_test.go @@ -35,12 +35,12 @@ import ( "github.com/milvus-io/milvus/internal/util/milvuserrors" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/util/typeutil" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/proxypb" diff --git a/internal/proxy/segment.go b/internal/proxy/segment.go index e1cb905ed0..e14eb87746 100644 --- a/internal/proxy/segment.go +++ b/internal/proxy/segment.go @@ -25,7 +25,7 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/proxy/segment_test.go b/internal/proxy/segment_test.go index 379c195200..329349c4dd 100644 --- a/internal/proxy/segment_test.go +++ b/internal/proxy/segment_test.go @@ -24,7 +24,7 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/stretchr/testify/assert" ) diff --git a/internal/proxy/task.go b/internal/proxy/task.go index 1722efc8dd..25c272fa13 100644 --- a/internal/proxy/task.go +++ b/internal/proxy/task.go @@ -32,9 +32,9 @@ import ( "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/types" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/planpb" diff --git a/internal/proxy/task_calc_distance.go b/internal/proxy/task_calc_distance.go index 6d06b0c7a6..7dc5a47e86 100644 --- a/internal/proxy/task_calc_distance.go +++ b/internal/proxy/task_calc_distance.go @@ -5,9 +5,9 @@ import ( "errors" "fmt" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/util/distance" "github.com/milvus-io/milvus/internal/util/funcutil" diff --git a/internal/proxy/task_calc_distance_test.go b/internal/proxy/task_calc_distance_test.go index eb97ea52ce..21177eaac3 100644 --- a/internal/proxy/task_calc_distance_test.go +++ b/internal/proxy/task_calc_distance_test.go @@ -5,9 +5,9 @@ import ( "errors" "testing" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/stretchr/testify/assert" ) diff --git a/internal/proxy/task_index.go b/internal/proxy/task_index.go index 064933d7d0..5e77cdff0b 100644 --- a/internal/proxy/task_index.go +++ b/internal/proxy/task_index.go @@ -23,9 +23,9 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/proxy/task_index_test.go b/internal/proxy/task_index_test.go index 96fa175019..0c5f91d61f 100644 --- a/internal/proxy/task_index_test.go +++ b/internal/proxy/task_index_test.go @@ -22,8 +22,8 @@ import ( "github.com/milvus-io/milvus/internal/proto/indexpb" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/util/funcutil" "github.com/stretchr/testify/assert" ) diff --git a/internal/proxy/task_insert.go b/internal/proxy/task_insert.go index cd65e0be0b..e33e756ff9 100644 --- a/internal/proxy/task_insert.go +++ b/internal/proxy/task_insert.go @@ -5,9 +5,9 @@ import ( "fmt" "strconv" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" diff --git a/internal/proxy/task_insert_test.go b/internal/proxy/task_insert_test.go index 6d5c4ad582..2b463d41b2 100644 --- a/internal/proxy/task_insert_test.go +++ b/internal/proxy/task_insert_test.go @@ -3,8 +3,8 @@ package proxy import ( "testing" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/proxy/task_query.go b/internal/proxy/task_query.go index 6dcd757768..c2e55da72e 100644 --- a/internal/proxy/task_query.go +++ b/internal/proxy/task_query.go @@ -22,9 +22,9 @@ import ( "github.com/milvus-io/milvus/internal/util/tsoutil" "github.com/milvus-io/milvus/internal/util/typeutil" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" ) diff --git a/internal/proxy/task_query_test.go b/internal/proxy/task_query_test.go index b87a52fe23..fff72ae487 100644 --- a/internal/proxy/task_query_test.go +++ b/internal/proxy/task_query_test.go @@ -15,9 +15,9 @@ import ( "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/types" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/proxy/task_search.go b/internal/proxy/task_search.go index f3d6ef3fd5..5d969efb0e 100644 --- a/internal/proxy/task_search.go +++ b/internal/proxy/task_search.go @@ -26,9 +26,9 @@ import ( "github.com/milvus-io/milvus/internal/util/tsoutil" "github.com/milvus-io/milvus/internal/util/typeutil" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/planpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/proxy/task_search_test.go b/internal/proxy/task_search_test.go index 601c6cedcb..c7c6c81b61 100644 --- a/internal/proxy/task_search_test.go +++ b/internal/proxy/task_search_test.go @@ -18,9 +18,9 @@ import ( "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/types" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/proxy/task_statistic.go b/internal/proxy/task_statistic.go index 67c47147cf..f9ce9198ce 100644 --- a/internal/proxy/task_statistic.go +++ b/internal/proxy/task_statistic.go @@ -6,10 +6,10 @@ import ( "fmt" "strconv" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/datapb" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/proxy/task_test.go b/internal/proxy/task_test.go index 098516540e..1b6a3195fa 100644 --- a/internal/proxy/task_test.go +++ b/internal/proxy/task_test.go @@ -38,9 +38,9 @@ import ( "github.com/golang/protobuf/proto" "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/proxy/timestamp.go b/internal/proxy/timestamp.go index 4b60dfae33..812e712470 100644 --- a/internal/proxy/timestamp.go +++ b/internal/proxy/timestamp.go @@ -22,7 +22,7 @@ import ( "strconv" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/proto/rootcoordpb" "github.com/milvus-io/milvus/internal/util/timerecord" diff --git a/internal/proxy/util.go b/internal/proxy/util.go index 1fe5a12f3c..3cea94033a 100644 --- a/internal/proxy/util.go +++ b/internal/proxy/util.go @@ -28,8 +28,8 @@ import ( "golang.org/x/crypto/bcrypt" "google.golang.org/grpc/metadata" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/util" "github.com/milvus-io/milvus/internal/util/crypto" diff --git a/internal/proxy/util_test.go b/internal/proxy/util_test.go index 36f9e09ad4..432a78e5f0 100644 --- a/internal/proxy/util_test.go +++ b/internal/proxy/util_test.go @@ -24,8 +24,8 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/util" "github.com/milvus-io/milvus/internal/util/crypto" diff --git a/internal/querycoordv2/dist/dist_handler.go b/internal/querycoordv2/dist/dist_handler.go index 5478e29d0a..05b0452311 100644 --- a/internal/querycoordv2/dist/dist_handler.go +++ b/internal/querycoordv2/dist/dist_handler.go @@ -23,7 +23,7 @@ import ( "time" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/querycoordv2/handlers.go b/internal/querycoordv2/handlers.go index dad2ecc92e..dd84545205 100644 --- a/internal/querycoordv2/handlers.go +++ b/internal/querycoordv2/handlers.go @@ -25,8 +25,8 @@ import ( "github.com/samber/lo" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/milvus-io/milvus/internal/querycoordv2/job" diff --git a/internal/querycoordv2/meta/coordinator_broker.go b/internal/querycoordv2/meta/coordinator_broker.go index 33a9435a5e..e2cedcdcfe 100644 --- a/internal/querycoordv2/meta/coordinator_broker.go +++ b/internal/querycoordv2/meta/coordinator_broker.go @@ -22,9 +22,9 @@ import ( "fmt" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/querycoordv2/meta/mock_broker.go b/internal/querycoordv2/meta/mock_broker.go index c5f5beccc2..0a40602647 100644 --- a/internal/querycoordv2/meta/mock_broker.go +++ b/internal/querycoordv2/meta/mock_broker.go @@ -10,7 +10,7 @@ import ( querypb "github.com/milvus-io/milvus/internal/proto/querypb" - schemapb "github.com/milvus-io/milvus/api/schemapb" + schemapb "github.com/milvus-io/milvus-proto/go-api/schemapb" ) // MockBroker is an autogenerated mock type for the Broker type diff --git a/internal/querycoordv2/meta/replica_manager_test.go b/internal/querycoordv2/meta/replica_manager_test.go index 7b0c5d935f..d6d7d8c1df 100644 --- a/internal/querycoordv2/meta/replica_manager_test.go +++ b/internal/querycoordv2/meta/replica_manager_test.go @@ -20,7 +20,7 @@ import ( "testing" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/kv" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" . "github.com/milvus-io/milvus/internal/querycoordv2/params" diff --git a/internal/querycoordv2/meta/store.go b/internal/querycoordv2/meta/store.go index 82eb942ce5..9231814e39 100644 --- a/internal/querycoordv2/meta/store.go +++ b/internal/querycoordv2/meta/store.go @@ -24,7 +24,7 @@ import ( "github.com/samber/lo" clientv3 "go.etcd.io/etcd/client/v3" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/metastore" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/querycoordv2/mocks/mock_querynode.go b/internal/querycoordv2/mocks/mock_querynode.go index de585c7a9a..de10646bbd 100644 --- a/internal/querycoordv2/mocks/mock_querynode.go +++ b/internal/querycoordv2/mocks/mock_querynode.go @@ -5,11 +5,11 @@ package mocks import ( context "context" - commonpb "github.com/milvus-io/milvus/api/commonpb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" internalpb "github.com/milvus-io/milvus/internal/proto/internalpb" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" mock "github.com/stretchr/testify/mock" diff --git a/internal/querycoordv2/mocks/querynode.go b/internal/querycoordv2/mocks/querynode.go index 30483683d5..0b6c06d6ad 100644 --- a/internal/querycoordv2/mocks/querynode.go +++ b/internal/querycoordv2/mocks/querynode.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" querypb "github.com/milvus-io/milvus/internal/proto/querypb" . "github.com/milvus-io/milvus/internal/querycoordv2/params" diff --git a/internal/querycoordv2/observers/handoff_observer_test.go b/internal/querycoordv2/observers/handoff_observer_test.go index 7685c6cc91..0a37c8cb8b 100644 --- a/internal/querycoordv2/observers/handoff_observer_test.go +++ b/internal/querycoordv2/observers/handoff_observer_test.go @@ -28,7 +28,7 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/querycoordv2/observers/leader_observer.go b/internal/querycoordv2/observers/leader_observer.go index 069e318d4f..406c46d60c 100644 --- a/internal/querycoordv2/observers/leader_observer.go +++ b/internal/querycoordv2/observers/leader_observer.go @@ -21,7 +21,7 @@ import ( "sync" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/milvus-io/milvus/internal/querycoordv2/meta" diff --git a/internal/querycoordv2/observers/leader_observer_test.go b/internal/querycoordv2/observers/leader_observer_test.go index d81e8375f0..d7ab056d1f 100644 --- a/internal/querycoordv2/observers/leader_observer_test.go +++ b/internal/querycoordv2/observers/leader_observer_test.go @@ -25,7 +25,7 @@ import ( "github.com/stretchr/testify/suite" "go.uber.org/atomic" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/milvus-io/milvus/internal/querycoordv2/meta" diff --git a/internal/querycoordv2/server.go b/internal/querycoordv2/server.go index 0cd78003d4..456d64b5fe 100644 --- a/internal/querycoordv2/server.go +++ b/internal/querycoordv2/server.go @@ -32,8 +32,8 @@ import ( "go.uber.org/zap" "golang.org/x/sync/errgroup" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/kv" diff --git a/internal/querycoordv2/server_test.go b/internal/querycoordv2/server_test.go index 4fd1ca65d3..85f1176268 100644 --- a/internal/querycoordv2/server_test.go +++ b/internal/querycoordv2/server_test.go @@ -25,8 +25,8 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/suite" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/querycoordv2/services.go b/internal/querycoordv2/services.go index 0f1233aba9..f41a95a123 100644 --- a/internal/querycoordv2/services.go +++ b/internal/querycoordv2/services.go @@ -21,8 +21,8 @@ import ( "errors" "fmt" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/querycoordv2/services_test.go b/internal/querycoordv2/services_test.go index 4d59507014..12c032eb75 100644 --- a/internal/querycoordv2/services_test.go +++ b/internal/querycoordv2/services_test.go @@ -21,8 +21,8 @@ import ( "encoding/json" "testing" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/kv" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/querycoordv2/session/cluster.go b/internal/querycoordv2/session/cluster.go index 384dea1aa9..5e92f978cc 100644 --- a/internal/querycoordv2/session/cluster.go +++ b/internal/querycoordv2/session/cluster.go @@ -24,8 +24,8 @@ import ( "time" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" grpcquerynodeclient "github.com/milvus-io/milvus/internal/distributed/querynode/client" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/querycoordv2/session/cluster_test.go b/internal/querycoordv2/session/cluster_test.go index cb386d15a6..ddc319ce9e 100644 --- a/internal/querycoordv2/session/cluster_test.go +++ b/internal/querycoordv2/session/cluster_test.go @@ -22,8 +22,8 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/milvus-io/milvus/internal/querycoordv2/mocks" "github.com/stretchr/testify/mock" diff --git a/internal/querycoordv2/session/mock_cluster.go b/internal/querycoordv2/session/mock_cluster.go index 00091c0489..0180f32340 100644 --- a/internal/querycoordv2/session/mock_cluster.go +++ b/internal/querycoordv2/session/mock_cluster.go @@ -5,9 +5,9 @@ package session import ( context "context" - commonpb "github.com/milvus-io/milvus/api/commonpb" + commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" mock "github.com/stretchr/testify/mock" diff --git a/internal/querycoordv2/task/executor.go b/internal/querycoordv2/task/executor.go index e89a181871..3a4f52678b 100644 --- a/internal/querycoordv2/task/executor.go +++ b/internal/querycoordv2/task/executor.go @@ -20,7 +20,7 @@ import ( "context" "sync" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/milvus-io/milvus/internal/querycoordv2/meta" diff --git a/internal/querycoordv2/task/task_test.go b/internal/querycoordv2/task/task_test.go index f3eadfc8b5..8b50941b4d 100644 --- a/internal/querycoordv2/task/task_test.go +++ b/internal/querycoordv2/task/task_test.go @@ -23,8 +23,8 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/kv" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/querycoordv2/task/utils.go b/internal/querycoordv2/task/utils.go index f8b10769d5..52caf6864d 100644 --- a/internal/querycoordv2/task/utils.go +++ b/internal/querycoordv2/task/utils.go @@ -20,8 +20,8 @@ import ( "context" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/querycoordv2/utils/types.go b/internal/querycoordv2/utils/types.go index e55de0d5d3..11f4787b63 100644 --- a/internal/querycoordv2/utils/types.go +++ b/internal/querycoordv2/utils/types.go @@ -19,8 +19,8 @@ package utils import ( "fmt" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/milvus-io/milvus/internal/querycoordv2/meta" diff --git a/internal/querynode/benchmark_test.go b/internal/querynode/benchmark_test.go index 6b2196ee75..a02668b500 100644 --- a/internal/querynode/benchmark_test.go +++ b/internal/querynode/benchmark_test.go @@ -28,7 +28,7 @@ import ( "github.com/stretchr/testify/assert" "go.uber.org/zap/zapcore" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" ) diff --git a/internal/querynode/cgo_helper.go b/internal/querynode/cgo_helper.go index a756a54258..0bad1b612f 100644 --- a/internal/querynode/cgo_helper.go +++ b/internal/querynode/cgo_helper.go @@ -33,7 +33,7 @@ import ( "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/util/cgoconverter" ) diff --git a/internal/querynode/collection.go b/internal/querynode/collection.go index fe2da31948..f0c40589a2 100644 --- a/internal/querynode/collection.go +++ b/internal/querynode/collection.go @@ -38,7 +38,7 @@ import ( "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" ) diff --git a/internal/querynode/collection_test.go b/internal/querynode/collection_test.go index 98f990e16e..ce29a16525 100644 --- a/internal/querynode/collection_test.go +++ b/internal/querynode/collection_test.go @@ -21,7 +21,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) func TestCollection_newCollection(t *testing.T) { diff --git a/internal/querynode/flow_graph_delete_node_test.go b/internal/querynode/flow_graph_delete_node_test.go index 170de6256d..7172cea3e3 100644 --- a/internal/querynode/flow_graph_delete_node_test.go +++ b/internal/querynode/flow_graph_delete_node_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/util/flowgraph" diff --git a/internal/querynode/flow_graph_filter_delete_node.go b/internal/querynode/flow_graph_filter_delete_node.go index dcb93da531..564cb13b28 100644 --- a/internal/querynode/flow_graph_filter_delete_node.go +++ b/internal/querynode/flow_graph_filter_delete_node.go @@ -23,7 +23,7 @@ import ( "github.com/opentracing/opentracing-go" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/util/flowgraph" diff --git a/internal/querynode/flow_graph_filter_delete_node_test.go b/internal/querynode/flow_graph_filter_delete_node_test.go index b905fd569d..9f6cd88752 100644 --- a/internal/querynode/flow_graph_filter_delete_node_test.go +++ b/internal/querynode/flow_graph_filter_delete_node_test.go @@ -21,7 +21,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/storage" "github.com/milvus-io/milvus/internal/util/flowgraph" diff --git a/internal/querynode/flow_graph_filter_dm_node.go b/internal/querynode/flow_graph_filter_dm_node.go index 0e95959a44..8f2947a705 100644 --- a/internal/querynode/flow_graph_filter_dm_node.go +++ b/internal/querynode/flow_graph_filter_dm_node.go @@ -25,7 +25,7 @@ import ( "github.com/opentracing/opentracing-go" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/mq/msgstream" diff --git a/internal/querynode/flow_graph_filter_dm_node_test.go b/internal/querynode/flow_graph_filter_dm_node_test.go index 25517102ff..eb4ad3016c 100644 --- a/internal/querynode/flow_graph_filter_dm_node_test.go +++ b/internal/querynode/flow_graph_filter_dm_node_test.go @@ -21,8 +21,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/querynode/flow_graph_insert_node.go b/internal/querynode/flow_graph_insert_node.go index f778c5920a..b2b306d358 100644 --- a/internal/querynode/flow_graph_insert_node.go +++ b/internal/querynode/flow_graph_insert_node.go @@ -30,7 +30,7 @@ import ( "github.com/opentracing/opentracing-go" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/mq/msgstream" diff --git a/internal/querynode/flow_graph_insert_node_test.go b/internal/querynode/flow_graph_insert_node_test.go index 840f3985af..19f06dc7c3 100644 --- a/internal/querynode/flow_graph_insert_node_test.go +++ b/internal/querynode/flow_graph_insert_node_test.go @@ -25,7 +25,7 @@ import ( "github.com/bits-and-blooms/bloom/v3" "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/storage" diff --git a/internal/querynode/impl.go b/internal/querynode/impl.go index 6b9090020c..42c3d2ee8f 100644 --- a/internal/querynode/impl.go +++ b/internal/querynode/impl.go @@ -27,8 +27,8 @@ import ( "go.uber.org/zap" "golang.org/x/sync/errgroup" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" diff --git a/internal/querynode/impl_test.go b/internal/querynode/impl_test.go index 56c55dc0fd..1a83c0934b 100644 --- a/internal/querynode/impl_test.go +++ b/internal/querynode/impl_test.go @@ -27,8 +27,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/querynode/impl_utils.go b/internal/querynode/impl_utils.go index dec692e761..5c3d64a23d 100644 --- a/internal/querynode/impl_utils.go +++ b/internal/querynode/impl_utils.go @@ -3,7 +3,7 @@ package querynode import ( "context" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/querypb" "go.uber.org/zap" diff --git a/internal/querynode/load_index_info.go b/internal/querynode/load_index_info.go index 0277f0af38..b3e7e3206f 100644 --- a/internal/querynode/load_index_info.go +++ b/internal/querynode/load_index_info.go @@ -34,7 +34,7 @@ import ( "path/filepath" "unsafe" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/querypb" ) diff --git a/internal/querynode/load_index_info_test.go b/internal/querynode/load_index_info_test.go index 5f8ce380cd..3d8cf459d0 100644 --- a/internal/querynode/load_index_info_test.go +++ b/internal/querynode/load_index_info_test.go @@ -21,8 +21,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/querypb" ) diff --git a/internal/querynode/meta_replica.go b/internal/querynode/meta_replica.go index 9533b0cd77..b62481ecb5 100644 --- a/internal/querynode/meta_replica.go +++ b/internal/querynode/meta_replica.go @@ -31,7 +31,7 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" diff --git a/internal/querynode/meta_replica_test.go b/internal/querynode/meta_replica_test.go index e6c4ea3572..b46acfc7aa 100644 --- a/internal/querynode/meta_replica_test.go +++ b/internal/querynode/meta_replica_test.go @@ -23,7 +23,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/milvus-io/milvus/internal/util/concurrency" ) diff --git a/internal/querynode/metrics_info.go b/internal/querynode/metrics_info.go index 267b2513de..a5de20641b 100644 --- a/internal/querynode/metrics_info.go +++ b/internal/querynode/metrics_info.go @@ -19,8 +19,8 @@ package querynode import ( "context" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/hardware" "github.com/milvus-io/milvus/internal/util/metricsinfo" diff --git a/internal/querynode/metrics_info_test.go b/internal/querynode/metrics_info_test.go index 7d0b57a3bf..0df11b561d 100644 --- a/internal/querynode/metrics_info_test.go +++ b/internal/querynode/metrics_info_test.go @@ -22,8 +22,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/etcd" "github.com/milvus-io/milvus/internal/util/metricsinfo" diff --git a/internal/querynode/mock_test.go b/internal/querynode/mock_test.go index 9568847e5b..dc97ddb4da 100644 --- a/internal/querynode/mock_test.go +++ b/internal/querynode/mock_test.go @@ -30,8 +30,8 @@ import ( "github.com/golang/protobuf/proto" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" "github.com/milvus-io/milvus/internal/log" diff --git a/internal/querynode/plan.go b/internal/querynode/plan.go index 67843dc611..64112bf785 100644 --- a/internal/querynode/plan.go +++ b/internal/querynode/plan.go @@ -29,7 +29,7 @@ import ( "fmt" "unsafe" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/querypb" ) diff --git a/internal/querynode/plan_test.go b/internal/querynode/plan_test.go index d379679b3a..963c601d98 100644 --- a/internal/querynode/plan_test.go +++ b/internal/querynode/plan_test.go @@ -24,7 +24,7 @@ import ( "github.com/golang/protobuf/proto" "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/proto/planpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/querynode/query_node.go b/internal/querynode/query_node.go index e245af6c8a..828af650a0 100644 --- a/internal/querynode/query_node.go +++ b/internal/querynode/query_node.go @@ -30,7 +30,6 @@ import "C" import ( "context" "fmt" - "github.com/milvus-io/milvus/api/commonpb" "math" "os" "path" @@ -43,6 +42,8 @@ import ( "time" "unsafe" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/golang/protobuf/proto" "github.com/panjf2000/ants/v2" "go.etcd.io/etcd/api/v3/mvccpb" diff --git a/internal/querynode/query_shard_test.go b/internal/querynode/query_shard_test.go index 4f1181bffb..247ba39ddd 100644 --- a/internal/querynode/query_shard_test.go +++ b/internal/querynode/query_shard_test.go @@ -24,7 +24,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) func genSimpleQueryShard(ctx context.Context) (*queryShard, error) { diff --git a/internal/querynode/reduce_test.go b/internal/querynode/reduce_test.go index 2685ad71a4..f3b355e3ea 100644 --- a/internal/querynode/reduce_test.go +++ b/internal/querynode/reduce_test.go @@ -27,7 +27,7 @@ import ( "github.com/golang/protobuf/proto" "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" ) diff --git a/internal/querynode/result.go b/internal/querynode/result.go index e4a1bd6056..da08167ba6 100644 --- a/internal/querynode/result.go +++ b/internal/querynode/result.go @@ -25,8 +25,8 @@ import ( "github.com/golang/protobuf/proto" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/querynode/result_sorter.go b/internal/querynode/result_sorter.go index 85eea42f61..76004771aa 100644 --- a/internal/querynode/result_sorter.go +++ b/internal/querynode/result_sorter.go @@ -1,7 +1,7 @@ package querynode import ( - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/segcorepb" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/querynode/result_sorter_test.go b/internal/querynode/result_sorter_test.go index 9256b43404..f3179b7c77 100644 --- a/internal/querynode/result_sorter_test.go +++ b/internal/querynode/result_sorter_test.go @@ -4,7 +4,7 @@ import ( "sort" "testing" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/segcorepb" "github.com/stretchr/testify/assert" diff --git a/internal/querynode/result_test.go b/internal/querynode/result_test.go index 85d8d1656d..87849d4255 100644 --- a/internal/querynode/result_test.go +++ b/internal/querynode/result_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/segcorepb" diff --git a/internal/querynode/search.go b/internal/querynode/search.go index ce1a623cf3..f35cf6b149 100644 --- a/internal/querynode/search.go +++ b/internal/querynode/search.go @@ -21,7 +21,7 @@ import ( "fmt" "sync" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/util/timerecord" diff --git a/internal/querynode/segment.go b/internal/querynode/segment.go index 2b2f84b35b..7637eb8df1 100644 --- a/internal/querynode/segment.go +++ b/internal/querynode/segment.go @@ -46,8 +46,8 @@ import ( "go.uber.org/atomic" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/querynode/segment_loader.go b/internal/querynode/segment_loader.go index 1c2bd23266..758ced2890 100644 --- a/internal/querynode/segment_loader.go +++ b/internal/querynode/segment_loader.go @@ -28,8 +28,8 @@ import ( "github.com/panjf2000/ants/v2" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" etcdkv "github.com/milvus-io/milvus/internal/kv/etcd" "github.com/milvus-io/milvus/internal/log" diff --git a/internal/querynode/segment_loader_test.go b/internal/querynode/segment_loader_test.go index b06cf90b2c..3ef4169172 100644 --- a/internal/querynode/segment_loader_test.go +++ b/internal/querynode/segment_loader_test.go @@ -29,8 +29,8 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/atomic" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/mocks" diff --git a/internal/querynode/segment_test.go b/internal/querynode/segment_test.go index 90fbb1fbfa..5fde331e53 100644 --- a/internal/querynode/segment_test.go +++ b/internal/querynode/segment_test.go @@ -27,8 +27,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/planpb" diff --git a/internal/querynode/shard_cluster.go b/internal/querynode/shard_cluster.go index c3408b5a90..333c615d68 100644 --- a/internal/querynode/shard_cluster.go +++ b/internal/querynode/shard_cluster.go @@ -27,7 +27,7 @@ import ( "go.uber.org/zap" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/querynode/shard_cluster_test.go b/internal/querynode/shard_cluster_test.go index 34fc708a13..8eda895235 100644 --- a/internal/querynode/shard_cluster_test.go +++ b/internal/querynode/shard_cluster_test.go @@ -22,7 +22,7 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/querynode/task.go b/internal/querynode/task.go index 1149b044eb..cd8a732aa7 100644 --- a/internal/querynode/task.go +++ b/internal/querynode/task.go @@ -26,7 +26,7 @@ import ( "golang.org/x/sync/errgroup" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/querynode/task_query.go b/internal/querynode/task_query.go index d65b9ded18..bcf7acbcad 100644 --- a/internal/querynode/task_query.go +++ b/internal/querynode/task_query.go @@ -24,7 +24,7 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/querynode/task_search.go b/internal/querynode/task_search.go index 621d15a2cc..59fe4898ff 100644 --- a/internal/querynode/task_search.go +++ b/internal/querynode/task_search.go @@ -29,7 +29,7 @@ import ( "go.uber.org/zap" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/querynode/task_statistics.go b/internal/querynode/task_statistics.go index ebded60933..11d4a592c3 100644 --- a/internal/querynode/task_statistics.go +++ b/internal/querynode/task_statistics.go @@ -7,7 +7,7 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" diff --git a/internal/querynode/task_test.go b/internal/querynode/task_test.go index d31672705e..59f6a8fb1b 100644 --- a/internal/querynode/task_test.go +++ b/internal/querynode/task_test.go @@ -24,8 +24,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/mq/msgstream/mqwrapper/rmq" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/rootcoord/alter_alias_task.go b/internal/rootcoord/alter_alias_task.go index a56f92bfda..4ec25d9213 100644 --- a/internal/rootcoord/alter_alias_task.go +++ b/internal/rootcoord/alter_alias_task.go @@ -3,8 +3,8 @@ package rootcoord import ( "context" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) type alterAliasTask struct { diff --git a/internal/rootcoord/alter_alias_task_test.go b/internal/rootcoord/alter_alias_task_test.go index 19afef4d5c..0c6f72f5d9 100644 --- a/internal/rootcoord/alter_alias_task_test.go +++ b/internal/rootcoord/alter_alias_task_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) func Test_alterAliasTask_Prepare(t *testing.T) { diff --git a/internal/rootcoord/alter_collection_task.go b/internal/rootcoord/alter_collection_task.go index 374f5175ed..959ce5e7a4 100644 --- a/internal/rootcoord/alter_collection_task.go +++ b/internal/rootcoord/alter_collection_task.go @@ -8,7 +8,7 @@ import ( "github.com/milvus-io/milvus/internal/log" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) type alterCollectionTask struct { diff --git a/internal/rootcoord/alter_collection_task_test.go b/internal/rootcoord/alter_collection_task_test.go index febc9ddea4..51906a39bc 100644 --- a/internal/rootcoord/alter_collection_task_test.go +++ b/internal/rootcoord/alter_collection_task_test.go @@ -9,10 +9,10 @@ import ( "github.com/milvus-io/milvus/internal/common" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) func Test_alterCollectionTask_Prepare(t *testing.T) { diff --git a/internal/rootcoord/broker.go b/internal/rootcoord/broker.go index 48dd74a197..d29aee2f66 100644 --- a/internal/rootcoord/broker.go +++ b/internal/rootcoord/broker.go @@ -5,14 +5,14 @@ import ( "errors" "fmt" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/proto/datapb" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/querypb" "go.uber.org/zap" diff --git a/internal/rootcoord/broker_test.go b/internal/rootcoord/broker_test.go index 56576b2975..57e4827c21 100644 --- a/internal/rootcoord/broker_test.go +++ b/internal/rootcoord/broker_test.go @@ -4,11 +4,11 @@ import ( "context" "testing" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/indexpb" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/stretchr/testify/assert" ) diff --git a/internal/rootcoord/create_alias_task.go b/internal/rootcoord/create_alias_task.go index a97b22587a..d7e2e69b09 100644 --- a/internal/rootcoord/create_alias_task.go +++ b/internal/rootcoord/create_alias_task.go @@ -3,9 +3,9 @@ package rootcoord import ( "context" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) type createAliasTask struct { diff --git a/internal/rootcoord/create_alias_task_test.go b/internal/rootcoord/create_alias_task_test.go index 4fae5614b0..9150d3f647 100644 --- a/internal/rootcoord/create_alias_task_test.go +++ b/internal/rootcoord/create_alias_task_test.go @@ -4,10 +4,10 @@ import ( "context" "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) func Test_createAliasTask_Prepare(t *testing.T) { diff --git a/internal/rootcoord/create_collection_task.go b/internal/rootcoord/create_collection_task.go index 90bf9fb437..8ea7892c5d 100644 --- a/internal/rootcoord/create_collection_task.go +++ b/internal/rootcoord/create_collection_task.go @@ -10,7 +10,7 @@ import ( "github.com/milvus-io/milvus/internal/util/funcutil" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" pb "github.com/milvus-io/milvus/internal/proto/etcdpb" @@ -22,9 +22,9 @@ import ( "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) type collectionChannels struct { diff --git a/internal/rootcoord/create_collection_task_test.go b/internal/rootcoord/create_collection_task_test.go index 1cc2061fd4..f5679f187a 100644 --- a/internal/rootcoord/create_collection_task_test.go +++ b/internal/rootcoord/create_collection_task_test.go @@ -11,9 +11,9 @@ import ( "github.com/stretchr/testify/mock" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/metastore/model" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/etcdpb" diff --git a/internal/rootcoord/create_partition_task.go b/internal/rootcoord/create_partition_task.go index c60f1e72c7..1a8bad30ad 100644 --- a/internal/rootcoord/create_partition_task.go +++ b/internal/rootcoord/create_partition_task.go @@ -5,13 +5,13 @@ import ( pb "github.com/milvus-io/milvus/internal/proto/etcdpb" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore/model" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) type createPartitionTask struct { diff --git a/internal/rootcoord/create_partition_task_test.go b/internal/rootcoord/create_partition_task_test.go index 29f1f4db82..34a1d9c73f 100644 --- a/internal/rootcoord/create_partition_task_test.go +++ b/internal/rootcoord/create_partition_task_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) func Test_createPartitionTask_Prepare(t *testing.T) { diff --git a/internal/rootcoord/drop_alias_task.go b/internal/rootcoord/drop_alias_task.go index 907fa46438..e8d600b9ca 100644 --- a/internal/rootcoord/drop_alias_task.go +++ b/internal/rootcoord/drop_alias_task.go @@ -3,9 +3,9 @@ package rootcoord import ( "context" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) type dropAliasTask struct { diff --git a/internal/rootcoord/drop_alias_task_test.go b/internal/rootcoord/drop_alias_task_test.go index 2847278ab0..e57e2bf79e 100644 --- a/internal/rootcoord/drop_alias_task_test.go +++ b/internal/rootcoord/drop_alias_task_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) func Test_dropAliasTask_Prepare(t *testing.T) { diff --git a/internal/rootcoord/drop_collection_task.go b/internal/rootcoord/drop_collection_task.go index 0e5e0094fb..ce9bb1cb17 100644 --- a/internal/rootcoord/drop_collection_task.go +++ b/internal/rootcoord/drop_collection_task.go @@ -13,9 +13,9 @@ import ( "github.com/milvus-io/milvus/internal/util/typeutil" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) type dropCollectionTask struct { diff --git a/internal/rootcoord/drop_collection_task_test.go b/internal/rootcoord/drop_collection_task_test.go index 37a7d64e63..a7a0985377 100644 --- a/internal/rootcoord/drop_collection_task_test.go +++ b/internal/rootcoord/drop_collection_task_test.go @@ -7,8 +7,8 @@ import ( "github.com/milvus-io/milvus/internal/common" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/metastore/model" "github.com/milvus-io/milvus/internal/proto/etcdpb" mockrootcoord "github.com/milvus-io/milvus/internal/rootcoord/mocks" diff --git a/internal/rootcoord/drop_partition_task.go b/internal/rootcoord/drop_partition_task.go index aeaedc408e..760d3f5feb 100644 --- a/internal/rootcoord/drop_partition_task.go +++ b/internal/rootcoord/drop_partition_task.go @@ -9,12 +9,12 @@ import ( "github.com/milvus-io/milvus/internal/metastore/model" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" pb "github.com/milvus-io/milvus/internal/proto/etcdpb" "github.com/milvus-io/milvus/internal/common" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) type dropPartitionTask struct { diff --git a/internal/rootcoord/drop_partition_task_test.go b/internal/rootcoord/drop_partition_task_test.go index 50da353cb9..9fc18be73c 100644 --- a/internal/rootcoord/drop_partition_task_test.go +++ b/internal/rootcoord/drop_partition_task_test.go @@ -14,8 +14,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) func Test_dropPartitionTask_Prepare(t *testing.T) { diff --git a/internal/rootcoord/expire_cache.go b/internal/rootcoord/expire_cache.go index 9c1102db3d..c9b1adb70b 100644 --- a/internal/rootcoord/expire_cache.go +++ b/internal/rootcoord/expire_cache.go @@ -3,7 +3,7 @@ package rootcoord import ( "context" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/proxypb" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/rootcoord/expire_cache_test.go b/internal/rootcoord/expire_cache_test.go index aa20d9e8a1..af66e4937f 100644 --- a/internal/rootcoord/expire_cache_test.go +++ b/internal/rootcoord/expire_cache_test.go @@ -3,7 +3,7 @@ package rootcoord import ( "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/proxypb" "github.com/stretchr/testify/assert" diff --git a/internal/rootcoord/garbage_collector.go b/internal/rootcoord/garbage_collector.go index 0bbc6c46f7..3eeb233ff8 100644 --- a/internal/rootcoord/garbage_collector.go +++ b/internal/rootcoord/garbage_collector.go @@ -3,7 +3,7 @@ package rootcoord import ( "context" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ms "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/rootcoord/import_helper.go b/internal/rootcoord/import_helper.go index ae101b0ee7..0f43b260c3 100644 --- a/internal/rootcoord/import_helper.go +++ b/internal/rootcoord/import_helper.go @@ -3,7 +3,7 @@ package rootcoord import ( "context" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/rootcoord/import_manager.go b/internal/rootcoord/import_manager.go index bb0ef720fb..d4ee6106c7 100644 --- a/internal/rootcoord/import_manager.go +++ b/internal/rootcoord/import_manager.go @@ -27,8 +27,8 @@ import ( "time" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" diff --git a/internal/rootcoord/import_manager_test.go b/internal/rootcoord/import_manager_test.go index f17ccbc707..ec388113e1 100644 --- a/internal/rootcoord/import_manager_test.go +++ b/internal/rootcoord/import_manager_test.go @@ -25,8 +25,8 @@ import ( "time" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/indexpb" diff --git a/internal/rootcoord/meta_table.go b/internal/rootcoord/meta_table.go index 64f274047a..bb7cb82ca7 100644 --- a/internal/rootcoord/meta_table.go +++ b/internal/rootcoord/meta_table.go @@ -28,7 +28,7 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metastore" "github.com/milvus-io/milvus/internal/metastore/kv/rootcoord" diff --git a/internal/rootcoord/meta_table_test.go b/internal/rootcoord/meta_table_test.go index 7a5391697d..208c6d0ca9 100644 --- a/internal/rootcoord/meta_table_test.go +++ b/internal/rootcoord/meta_table_test.go @@ -35,8 +35,8 @@ import ( "github.com/milvus-io/milvus/internal/util/funcutil" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/metastore/kv/rootcoord" diff --git a/internal/rootcoord/metrics_info.go b/internal/rootcoord/metrics_info.go index b1aecd47b9..a10e84ac03 100644 --- a/internal/rootcoord/metrics_info.go +++ b/internal/rootcoord/metrics_info.go @@ -21,8 +21,8 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/hardware" diff --git a/internal/rootcoord/mock_test.go b/internal/rootcoord/mock_test.go index 41a67a9b70..cf23c62354 100644 --- a/internal/rootcoord/mock_test.go +++ b/internal/rootcoord/mock_test.go @@ -6,8 +6,8 @@ import ( "math/rand" "os" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/log" diff --git a/internal/rootcoord/mocks/IMetaTable.go b/internal/rootcoord/mocks/IMetaTable.go index 69d7462d42..379bfd8205 100644 --- a/internal/rootcoord/mocks/IMetaTable.go +++ b/internal/rootcoord/mocks/IMetaTable.go @@ -8,7 +8,7 @@ import ( etcdpb "github.com/milvus-io/milvus/internal/proto/etcdpb" internalpb "github.com/milvus-io/milvus/internal/proto/internalpb" - milvuspb "github.com/milvus-io/milvus/api/milvuspb" + milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb" mock "github.com/stretchr/testify/mock" diff --git a/internal/rootcoord/proxy_client_manager.go b/internal/rootcoord/proxy_client_manager.go index 4983800a75..ee9fffbe50 100644 --- a/internal/rootcoord/proxy_client_manager.go +++ b/internal/rootcoord/proxy_client_manager.go @@ -25,8 +25,8 @@ import ( "go.uber.org/zap" "golang.org/x/sync/errgroup" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/proxypb" "github.com/milvus-io/milvus/internal/types" diff --git a/internal/rootcoord/proxy_client_manager_test.go b/internal/rootcoord/proxy_client_manager_test.go index 2f58bcb3e2..7c9a932a15 100644 --- a/internal/rootcoord/proxy_client_manager_test.go +++ b/internal/rootcoord/proxy_client_manager_test.go @@ -23,7 +23,7 @@ import ( "sync" "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" diff --git a/internal/rootcoord/quota_center.go b/internal/rootcoord/quota_center.go index fc094587bf..19b396a3ee 100644 --- a/internal/rootcoord/quota_center.go +++ b/internal/rootcoord/quota_center.go @@ -25,7 +25,7 @@ import ( "go.uber.org/zap" "golang.org/x/sync/errgroup" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/proxypb" diff --git a/internal/rootcoord/quota_center_test.go b/internal/rootcoord/quota_center_test.go index a42c1ba863..f642699d67 100644 --- a/internal/rootcoord/quota_center_test.go +++ b/internal/rootcoord/quota_center_test.go @@ -25,8 +25,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/metricsinfo" "github.com/milvus-io/milvus/internal/util/tsoutil" diff --git a/internal/rootcoord/root_coord.go b/internal/rootcoord/root_coord.go index 409c1d96f6..c612558e44 100644 --- a/internal/rootcoord/root_coord.go +++ b/internal/rootcoord/root_coord.go @@ -27,9 +27,9 @@ import ( "syscall" "time" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/common" pnc "github.com/milvus-io/milvus/internal/distributed/proxy/client" diff --git a/internal/rootcoord/root_coord_test.go b/internal/rootcoord/root_coord_test.go index 1d458c392c..1e08438dbd 100644 --- a/internal/rootcoord/root_coord_test.go +++ b/internal/rootcoord/root_coord_test.go @@ -10,8 +10,8 @@ import ( "time" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/kv" "github.com/milvus-io/milvus/internal/metastore/model" diff --git a/internal/rootcoord/step.go b/internal/rootcoord/step.go index 93c8f7bdd9..7dea3b7993 100644 --- a/internal/rootcoord/step.go +++ b/internal/rootcoord/step.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" pb "github.com/milvus-io/milvus/internal/proto/etcdpb" diff --git a/internal/rootcoord/timeticksync.go b/internal/rootcoord/timeticksync.go index 842e298e93..73a593cb3d 100644 --- a/internal/rootcoord/timeticksync.go +++ b/internal/rootcoord/timeticksync.go @@ -22,7 +22,7 @@ import ( "sync" "time" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/metrics" "github.com/milvus-io/milvus/internal/mq/msgstream" diff --git a/internal/rootcoord/timeticksync_test.go b/internal/rootcoord/timeticksync_test.go index 99b34a1dd6..f7fbb1f7db 100644 --- a/internal/rootcoord/timeticksync_test.go +++ b/internal/rootcoord/timeticksync_test.go @@ -25,7 +25,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/dependency" ) diff --git a/internal/rootcoord/util.go b/internal/rootcoord/util.go index 4a5d16e7e8..5bccc54909 100644 --- a/internal/rootcoord/util.go +++ b/internal/rootcoord/util.go @@ -27,7 +27,7 @@ import ( "github.com/milvus-io/milvus/internal/metastore/model" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/rootcoord/util_test.go b/internal/rootcoord/util_test.go index 8452c0b562..f96e858586 100644 --- a/internal/rootcoord/util_test.go +++ b/internal/rootcoord/util_test.go @@ -21,11 +21,11 @@ import ( "github.com/milvus-io/milvus/internal/util/typeutil" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/metastore/model" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/stretchr/testify/assert" ) diff --git a/internal/storage/binlog_iterator.go b/internal/storage/binlog_iterator.go index aa073a6384..b703b5d039 100644 --- a/internal/storage/binlog_iterator.go +++ b/internal/storage/binlog_iterator.go @@ -20,7 +20,7 @@ import ( "errors" "sync/atomic" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" ) diff --git a/internal/storage/binlog_iterator_test.go b/internal/storage/binlog_iterator_test.go index aa737e3ab3..5fdb26e77e 100644 --- a/internal/storage/binlog_iterator_test.go +++ b/internal/storage/binlog_iterator_test.go @@ -19,7 +19,7 @@ package storage import ( "testing" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/proto/etcdpb" diff --git a/internal/storage/binlog_test.go b/internal/storage/binlog_test.go index 19d5f9a4a6..2a9981a176 100644 --- a/internal/storage/binlog_test.go +++ b/internal/storage/binlog_test.go @@ -25,7 +25,7 @@ import ( "time" "unsafe" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/util/funcutil" "github.com/milvus-io/milvus/internal/util/tsoutil" diff --git a/internal/storage/binlog_writer.go b/internal/storage/binlog_writer.go index f4ecf16653..8d7ec9904f 100644 --- a/internal/storage/binlog_writer.go +++ b/internal/storage/binlog_writer.go @@ -21,7 +21,7 @@ import ( "encoding/binary" "fmt" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/storage/binlog_writer_test.go b/internal/storage/binlog_writer_test.go index 64bb439f68..80cb507a47 100644 --- a/internal/storage/binlog_writer_test.go +++ b/internal/storage/binlog_writer_test.go @@ -20,7 +20,7 @@ import ( "fmt" "testing" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/stretchr/testify/assert" ) diff --git a/internal/storage/data_codec.go b/internal/storage/data_codec.go index 8d096d3b38..ebff58fb97 100644 --- a/internal/storage/data_codec.go +++ b/internal/storage/data_codec.go @@ -29,7 +29,7 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/etcdpb" diff --git a/internal/storage/data_codec_test.go b/internal/storage/data_codec_test.go index bece749c40..8a836aefab 100644 --- a/internal/storage/data_codec_test.go +++ b/internal/storage/data_codec_test.go @@ -24,7 +24,7 @@ import ( "github.com/milvus-io/milvus/internal/util/funcutil" "github.com/milvus-io/milvus/internal/util/uniquegenerator" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/etcdpb" "github.com/stretchr/testify/assert" diff --git a/internal/storage/data_sorter.go b/internal/storage/data_sorter.go index 6f724b530d..e06580d329 100644 --- a/internal/storage/data_sorter.go +++ b/internal/storage/data_sorter.go @@ -17,7 +17,7 @@ package storage import ( - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" ) diff --git a/internal/storage/data_sorter_test.go b/internal/storage/data_sorter_test.go index d74df13a41..54a4d99907 100644 --- a/internal/storage/data_sorter_test.go +++ b/internal/storage/data_sorter_test.go @@ -20,7 +20,7 @@ import ( "sort" "testing" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/etcdpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/storage/event_data.go b/internal/storage/event_data.go index 0e3c423b91..ad6a5d426f 100644 --- a/internal/storage/event_data.go +++ b/internal/storage/event_data.go @@ -24,7 +24,7 @@ import ( "io" "strconv" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/storage/event_reader.go b/internal/storage/event_reader.go index d7eaf48a8f..aee0895144 100644 --- a/internal/storage/event_reader.go +++ b/internal/storage/event_reader.go @@ -20,7 +20,7 @@ import ( "bytes" "fmt" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) // EventReader is used to parse the events contained in the Binlog file. diff --git a/internal/storage/event_test.go b/internal/storage/event_test.go index 82828f58da..1e84757779 100644 --- a/internal/storage/event_test.go +++ b/internal/storage/event_test.go @@ -24,7 +24,7 @@ import ( "time" "unsafe" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/util/funcutil" "github.com/milvus-io/milvus/internal/util/tsoutil" diff --git a/internal/storage/event_writer.go b/internal/storage/event_writer.go index 41ea7848cc..fcc3c0ac86 100644 --- a/internal/storage/event_writer.go +++ b/internal/storage/event_writer.go @@ -23,7 +23,7 @@ import ( "fmt" "io" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/storage/event_writer_test.go b/internal/storage/event_writer_test.go index ae3d0054c4..1e2b9e15d8 100644 --- a/internal/storage/event_writer_test.go +++ b/internal/storage/event_writer_test.go @@ -21,7 +21,7 @@ import ( "encoding/binary" "testing" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/stretchr/testify/assert" ) diff --git a/internal/storage/payload.go b/internal/storage/payload.go index 6a228d470f..17f592b76a 100644 --- a/internal/storage/payload.go +++ b/internal/storage/payload.go @@ -29,7 +29,7 @@ import ( "reflect" "unsafe" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/util/typeutil" ) diff --git a/internal/storage/payload_benchmark_test.go b/internal/storage/payload_benchmark_test.go index bfe836bf7f..53b7b63260 100644 --- a/internal/storage/payload_benchmark_test.go +++ b/internal/storage/payload_benchmark_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) // workload setting for benchmark diff --git a/internal/storage/payload_cgo_test.go b/internal/storage/payload_cgo_test.go index e0ef31db83..9637533c45 100644 --- a/internal/storage/payload_cgo_test.go +++ b/internal/storage/payload_cgo_test.go @@ -23,7 +23,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) func TestPayload_CGO_ReaderandWriter(t *testing.T) { diff --git a/internal/storage/payload_reader.go b/internal/storage/payload_reader.go index 65fc2da700..d8678d0b9b 100644 --- a/internal/storage/payload_reader.go +++ b/internal/storage/payload_reader.go @@ -9,7 +9,7 @@ import ( "github.com/apache/arrow/go/v8/parquet" "github.com/apache/arrow/go/v8/parquet/file" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) // PayloadReader reads data from payload diff --git a/internal/storage/payload_reader_cgo.go b/internal/storage/payload_reader_cgo.go index b3a9a2451d..a8838c952b 100644 --- a/internal/storage/payload_reader_cgo.go +++ b/internal/storage/payload_reader_cgo.go @@ -12,8 +12,8 @@ import ( "fmt" "unsafe" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" ) diff --git a/internal/storage/payload_test.go b/internal/storage/payload_test.go index 6528e3169d..6b1e85b894 100644 --- a/internal/storage/payload_test.go +++ b/internal/storage/payload_test.go @@ -23,7 +23,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) func TestPayload_ReaderAndWriter(t *testing.T) { diff --git a/internal/storage/primary_key.go b/internal/storage/primary_key.go index 5bec21f94c..e673abdce7 100644 --- a/internal/storage/primary_key.go +++ b/internal/storage/primary_key.go @@ -21,7 +21,7 @@ import ( "fmt" "strings" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" ) diff --git a/internal/storage/primary_key_test.go b/internal/storage/primary_key_test.go index 82ab367287..5a8abc270d 100644 --- a/internal/storage/primary_key_test.go +++ b/internal/storage/primary_key_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) func TestVarCharPrimaryKey(t *testing.T) { diff --git a/internal/storage/print_binlog.go b/internal/storage/print_binlog.go index 9092cd2869..e5c047cd53 100644 --- a/internal/storage/print_binlog.go +++ b/internal/storage/print_binlog.go @@ -25,7 +25,7 @@ import ( "golang.org/x/exp/mmap" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/tsoutil" ) diff --git a/internal/storage/print_binlog_test.go b/internal/storage/print_binlog_test.go index ce50c7a664..fb259bbb0d 100644 --- a/internal/storage/print_binlog_test.go +++ b/internal/storage/print_binlog_test.go @@ -27,8 +27,8 @@ import ( "github.com/milvus-io/milvus/internal/util/uniquegenerator" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/etcdpb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/tsoutil" diff --git a/internal/storage/stats.go b/internal/storage/stats.go index 7fff586356..6d3d290a4a 100644 --- a/internal/storage/stats.go +++ b/internal/storage/stats.go @@ -20,7 +20,7 @@ import ( "encoding/json" "github.com/bits-and-blooms/bloom/v3" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" ) diff --git a/internal/storage/stats_test.go b/internal/storage/stats_test.go index f5d83be9ae..d066d9b4d1 100644 --- a/internal/storage/stats_test.go +++ b/internal/storage/stats_test.go @@ -23,7 +23,7 @@ import ( "github.com/bits-and-blooms/bloom/v3" "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" ) diff --git a/internal/storage/utils.go b/internal/storage/utils.go index 8ce05ce4a9..4b2f3957de 100644 --- a/internal/storage/utils.go +++ b/internal/storage/utils.go @@ -28,8 +28,8 @@ import ( "github.com/golang/protobuf/proto" "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/mq/msgstream" diff --git a/internal/storage/utils_test.go b/internal/storage/utils_test.go index 34efeef3d5..963a6e067b 100644 --- a/internal/storage/utils_test.go +++ b/internal/storage/utils_test.go @@ -27,11 +27,11 @@ import ( "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/proto/internalpb" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/common" "github.com/stretchr/testify/assert" diff --git a/internal/storage/vector_chunk_manager_test.go b/internal/storage/vector_chunk_manager_test.go index f37505e5ba..1ba875848e 100644 --- a/internal/storage/vector_chunk_manager_test.go +++ b/internal/storage/vector_chunk_manager_test.go @@ -24,7 +24,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/etcdpb" "github.com/milvus-io/milvus/internal/util/paramtable" "github.com/milvus-io/milvus/internal/util/typeutil" diff --git a/internal/types/types.go b/internal/types/types.go index 5f3d469c18..1a24c8fc11 100644 --- a/internal/types/types.go +++ b/internal/types/types.go @@ -21,8 +21,8 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/proto/internalpb" diff --git a/internal/util/autoindex/function.go b/internal/util/autoindex/function.go index 5310332afd..3861451bcb 100644 --- a/internal/util/autoindex/function.go +++ b/internal/util/autoindex/function.go @@ -22,7 +22,7 @@ import ( //"strconv" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/sandertv/go-formula/v2" ) diff --git a/internal/util/autoindex/function_test.go b/internal/util/autoindex/function_test.go index b19757c8af..583d421f7a 100644 --- a/internal/util/autoindex/function_test.go +++ b/internal/util/autoindex/function_test.go @@ -20,7 +20,7 @@ import ( "math" "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/util/autoindex/method.go b/internal/util/autoindex/method.go index 229d7f5414..d1b103047d 100644 --- a/internal/util/autoindex/method.go +++ b/internal/util/autoindex/method.go @@ -20,7 +20,7 @@ import ( "encoding/json" "fmt" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) var _ Calculator = (*methodPieceWise)(nil) diff --git a/internal/util/autoindex/method_test.go b/internal/util/autoindex/method_test.go index 0afe14cbbc..87ec18615e 100644 --- a/internal/util/autoindex/method_test.go +++ b/internal/util/autoindex/method_test.go @@ -21,7 +21,7 @@ import ( "math" "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/util/autoindex/parser_test.go b/internal/util/autoindex/parser_test.go index 8fb4b361c7..6afb4a5b5f 100644 --- a/internal/util/autoindex/parser_test.go +++ b/internal/util/autoindex/parser_test.go @@ -5,7 +5,7 @@ import ( "math" "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/util/autoindex/util.go b/internal/util/autoindex/util.go index 9f64fd2e5e..6b2191de75 100644 --- a/internal/util/autoindex/util.go +++ b/internal/util/autoindex/util.go @@ -26,7 +26,7 @@ import ( //"encoding/json" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/util/funcutil" ) diff --git a/internal/util/autoindex/util_test.go b/internal/util/autoindex/util_test.go index ca7643f7c7..3a548f628d 100644 --- a/internal/util/autoindex/util_test.go +++ b/internal/util/autoindex/util_test.go @@ -3,7 +3,7 @@ package autoindex import ( "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/sandertv/go-formula/v2" "github.com/stretchr/testify/assert" ) diff --git a/internal/util/constant.go b/internal/util/constant.go index cbd3a80158..2a5cb96721 100644 --- a/internal/util/constant.go +++ b/internal/util/constant.go @@ -19,7 +19,7 @@ package util import ( "strings" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) // Meta Prefix consts diff --git a/internal/util/errorutil/util.go b/internal/util/errorutil/util.go index 55f5c0e6d4..60a13976fc 100644 --- a/internal/util/errorutil/util.go +++ b/internal/util/errorutil/util.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) // ErrorList for print error log diff --git a/internal/util/flowgraph/node_test.go b/internal/util/flowgraph/node_test.go index 6fb964f764..a539226d7f 100644 --- a/internal/util/flowgraph/node_test.go +++ b/internal/util/flowgraph/node_test.go @@ -25,7 +25,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/mq/msgstream" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/util/dependency" diff --git a/internal/util/funcutil/func.go b/internal/util/funcutil/func.go index f6d7410cfc..ae0f94bfc9 100644 --- a/internal/util/funcutil/func.go +++ b/internal/util/funcutil/func.go @@ -35,9 +35,9 @@ import ( "go.uber.org/zap" grpcStatus "google.golang.org/grpc/status" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/types" diff --git a/internal/util/funcutil/func_test.go b/internal/util/funcutil/func_test.go index 74d153fcbb..bdaac9ae6a 100644 --- a/internal/util/funcutil/func_test.go +++ b/internal/util/funcutil/func_test.go @@ -28,8 +28,8 @@ import ( "time" "github.com/jarcoal/httpmock" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/stretchr/testify/assert" grpcCodes "google.golang.org/grpc/codes" grpcStatus "google.golang.org/grpc/status" diff --git a/internal/util/funcutil/policy.go b/internal/util/funcutil/policy.go index 065bd3cba5..80f07d1099 100644 --- a/internal/util/funcutil/policy.go +++ b/internal/util/funcutil/policy.go @@ -7,8 +7,8 @@ import ( "github.com/golang/protobuf/descriptor" "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/log" "go.uber.org/zap" "google.golang.org/protobuf/reflect/protoreflect" diff --git a/internal/util/funcutil/policy_test.go b/internal/util/funcutil/policy_test.go index 40fda24dbf..1276019968 100644 --- a/internal/util/funcutil/policy_test.go +++ b/internal/util/funcutil/policy_test.go @@ -3,8 +3,8 @@ package funcutil import ( "testing" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/stretchr/testify/assert" ) diff --git a/internal/util/funcutil/verify_response.go b/internal/util/funcutil/verify_response.go index 36414df27e..d0d21ea38a 100644 --- a/internal/util/funcutil/verify_response.go +++ b/internal/util/funcutil/verify_response.go @@ -3,7 +3,7 @@ package funcutil import ( "errors" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" ) // errors for VerifyResponse diff --git a/internal/util/importutil/binlog_adapter.go b/internal/util/importutil/binlog_adapter.go index 55ad7a5886..969e6d0b37 100644 --- a/internal/util/importutil/binlog_adapter.go +++ b/internal/util/importutil/binlog_adapter.go @@ -23,7 +23,7 @@ import ( "strconv" "strings" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/storage" diff --git a/internal/util/importutil/binlog_adapter_test.go b/internal/util/importutil/binlog_adapter_test.go index 0d88fde10d..9f60c26343 100644 --- a/internal/util/importutil/binlog_adapter_test.go +++ b/internal/util/importutil/binlog_adapter_test.go @@ -21,7 +21,7 @@ import ( "strconv" "testing" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/storage" "github.com/stretchr/testify/assert" diff --git a/internal/util/importutil/binlog_file.go b/internal/util/importutil/binlog_file.go index 385b67bf0b..eff0a3ed48 100644 --- a/internal/util/importutil/binlog_file.go +++ b/internal/util/importutil/binlog_file.go @@ -20,7 +20,7 @@ import ( "context" "errors" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/storage" "go.uber.org/zap" diff --git a/internal/util/importutil/binlog_file_test.go b/internal/util/importutil/binlog_file_test.go index 4e8f145501..038c5a347d 100644 --- a/internal/util/importutil/binlog_file_test.go +++ b/internal/util/importutil/binlog_file_test.go @@ -21,7 +21,7 @@ import ( "fmt" "testing" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/storage" "github.com/stretchr/testify/assert" ) diff --git a/internal/util/importutil/binlog_parser.go b/internal/util/importutil/binlog_parser.go index caa8ecd365..181107d42d 100644 --- a/internal/util/importutil/binlog_parser.go +++ b/internal/util/importutil/binlog_parser.go @@ -23,7 +23,7 @@ import ( "sort" "strconv" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/storage" "go.uber.org/zap" diff --git a/internal/util/importutil/binlog_parser_test.go b/internal/util/importutil/binlog_parser_test.go index c951d3c981..33e8a10b94 100644 --- a/internal/util/importutil/binlog_parser_test.go +++ b/internal/util/importutil/binlog_parser_test.go @@ -21,7 +21,7 @@ import ( "strconv" "testing" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/storage" "github.com/stretchr/testify/assert" ) diff --git a/internal/util/importutil/import_wrapper.go b/internal/util/importutil/import_wrapper.go index a552564d39..f92c31ecb5 100644 --- a/internal/util/importutil/import_wrapper.go +++ b/internal/util/importutil/import_wrapper.go @@ -29,8 +29,8 @@ import ( "go.uber.org/zap" "go.uber.org/zap/zapcore" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" diff --git a/internal/util/importutil/import_wrapper_test.go b/internal/util/importutil/import_wrapper_test.go index e4adf82a85..3d08c04577 100644 --- a/internal/util/importutil/import_wrapper_test.go +++ b/internal/util/importutil/import_wrapper_test.go @@ -30,8 +30,8 @@ import ( "go.uber.org/zap" "golang.org/x/exp/mmap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/rootcoordpb" diff --git a/internal/util/importutil/json_handler.go b/internal/util/importutil/json_handler.go index a9a5b354da..b515a584c6 100644 --- a/internal/util/importutil/json_handler.go +++ b/internal/util/importutil/json_handler.go @@ -23,7 +23,7 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" diff --git a/internal/util/importutil/json_handler_test.go b/internal/util/importutil/json_handler_test.go index 4c7be16e00..2a30c7aba1 100644 --- a/internal/util/importutil/json_handler_test.go +++ b/internal/util/importutil/json_handler_test.go @@ -23,8 +23,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/proto/rootcoordpb" diff --git a/internal/util/importutil/json_parser.go b/internal/util/importutil/json_parser.go index 2b09398528..12dd71bec2 100644 --- a/internal/util/importutil/json_parser.go +++ b/internal/util/importutil/json_parser.go @@ -23,7 +23,7 @@ import ( "io" "strings" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/storage" "github.com/milvus-io/milvus/internal/util/typeutil" diff --git a/internal/util/importutil/json_parser_test.go b/internal/util/importutil/json_parser_test.go index cc2c86b402..5192ab8fc0 100644 --- a/internal/util/importutil/json_parser_test.go +++ b/internal/util/importutil/json_parser_test.go @@ -21,8 +21,8 @@ import ( "strings" "testing" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/util/typeutil" "github.com/stretchr/testify/assert" ) diff --git a/internal/util/importutil/numpy_parser.go b/internal/util/importutil/numpy_parser.go index 9936103453..510e83ffbf 100644 --- a/internal/util/importutil/numpy_parser.go +++ b/internal/util/importutil/numpy_parser.go @@ -22,7 +22,7 @@ import ( "io" "strconv" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/storage" ) diff --git a/internal/util/importutil/numpy_parser_test.go b/internal/util/importutil/numpy_parser_test.go index 40d446e224..45c29b55f4 100644 --- a/internal/util/importutil/numpy_parser_test.go +++ b/internal/util/importutil/numpy_parser_test.go @@ -24,7 +24,7 @@ import ( "github.com/sbinet/npyio/npy" "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/storage" "github.com/milvus-io/milvus/internal/util/timerecord" ) diff --git a/internal/util/indexcgowrapper/codec_index_test.go b/internal/util/indexcgowrapper/codec_index_test.go index dc07d92014..3c1eca1b9b 100644 --- a/internal/util/indexcgowrapper/codec_index_test.go +++ b/internal/util/indexcgowrapper/codec_index_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/storage" "github.com/milvus-io/milvus/internal/util/funcutil" diff --git a/internal/util/indexcgowrapper/dataset.go b/internal/util/indexcgowrapper/dataset.go index dc5510605f..215dee4cbe 100644 --- a/internal/util/indexcgowrapper/dataset.go +++ b/internal/util/indexcgowrapper/dataset.go @@ -1,7 +1,7 @@ package indexcgowrapper import ( - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/storage" ) diff --git a/internal/util/indexcgowrapper/helper.go b/internal/util/indexcgowrapper/helper.go index a1e251a619..45cd28bca2 100644 --- a/internal/util/indexcgowrapper/helper.go +++ b/internal/util/indexcgowrapper/helper.go @@ -13,7 +13,7 @@ import ( "fmt" "unsafe" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/milvus-io/milvus/internal/log" ) diff --git a/internal/util/indexcgowrapper/index.go b/internal/util/indexcgowrapper/index.go index a16361a3af..1f672f651d 100644 --- a/internal/util/indexcgowrapper/index.go +++ b/internal/util/indexcgowrapper/index.go @@ -16,8 +16,8 @@ import ( "github.com/golang/protobuf/proto" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/indexcgopb" diff --git a/internal/util/indexcgowrapper/index_test.go b/internal/util/indexcgowrapper/index_test.go index 8319aad712..efcfb450a9 100644 --- a/internal/util/indexcgowrapper/index_test.go +++ b/internal/util/indexcgowrapper/index_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/util/paramtable" ) diff --git a/internal/util/indexparamcheck/conf_adapter.go b/internal/util/indexparamcheck/conf_adapter.go index f0ec88afff..2dcbd5765f 100644 --- a/internal/util/indexparamcheck/conf_adapter.go +++ b/internal/util/indexparamcheck/conf_adapter.go @@ -19,7 +19,7 @@ package indexparamcheck import ( "strconv" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/util/funcutil" ) diff --git a/internal/util/indexparamcheck/scalar_index_checker.go b/internal/util/indexparamcheck/scalar_index_checker.go index 2c7128d8f0..76706bf0e7 100644 --- a/internal/util/indexparamcheck/scalar_index_checker.go +++ b/internal/util/indexparamcheck/scalar_index_checker.go @@ -1,6 +1,6 @@ package indexparamcheck -import "github.com/milvus-io/milvus/api/schemapb" +import "github.com/milvus-io/milvus-proto/go-api/schemapb" // TODO: check index parameters according to the index type & data type. func CheckIndexValid(dType schemapb.DataType, indexType IndexType, indexParams map[string]string) error { diff --git a/internal/util/indexparamcheck/scalar_index_checker_test.go b/internal/util/indexparamcheck/scalar_index_checker_test.go index 157da0a9f3..cda94d6b25 100644 --- a/internal/util/indexparamcheck/scalar_index_checker_test.go +++ b/internal/util/indexparamcheck/scalar_index_checker_test.go @@ -3,7 +3,7 @@ package indexparamcheck import ( "testing" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/stretchr/testify/assert" ) diff --git a/internal/util/metricsinfo/cache.go b/internal/util/metricsinfo/cache.go index 2ab8744157..cb89e45db7 100644 --- a/internal/util/metricsinfo/cache.go +++ b/internal/util/metricsinfo/cache.go @@ -20,7 +20,7 @@ import ( "sync" "time" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" ) // DefaultMetricsRetention defines the default retention of metrics cache. diff --git a/internal/util/metricsinfo/cache_test.go b/internal/util/metricsinfo/cache_test.go index 040ce3b591..a4db425343 100644 --- a/internal/util/metricsinfo/cache_test.go +++ b/internal/util/metricsinfo/cache_test.go @@ -15,7 +15,7 @@ import ( "testing" "time" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/stretchr/testify/assert" ) diff --git a/internal/util/metricsinfo/metric_type.go b/internal/util/metricsinfo/metric_type.go index a2ad7b616e..6a600e44a0 100644 --- a/internal/util/metricsinfo/metric_type.go +++ b/internal/util/metricsinfo/metric_type.go @@ -15,8 +15,8 @@ import ( "encoding/json" "fmt" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/common" ) diff --git a/internal/util/mock/datacoord_client.go b/internal/util/mock/datacoord_client.go index fe0296920f..ace56f94f3 100644 --- a/internal/util/mock/datacoord_client.go +++ b/internal/util/mock/datacoord_client.go @@ -21,8 +21,8 @@ import ( "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" ) diff --git a/internal/util/mock/grpc_datacoord_client.go b/internal/util/mock/grpc_datacoord_client.go index fa6ea53fd6..4c2bf863bc 100644 --- a/internal/util/mock/grpc_datacoord_client.go +++ b/internal/util/mock/grpc_datacoord_client.go @@ -21,8 +21,8 @@ import ( "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" ) diff --git a/internal/util/mock/grpc_datanode_client.go b/internal/util/mock/grpc_datanode_client.go index dbbfd5742c..c7ad96b96e 100644 --- a/internal/util/mock/grpc_datanode_client.go +++ b/internal/util/mock/grpc_datanode_client.go @@ -21,8 +21,8 @@ import ( "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" ) diff --git a/internal/util/mock/grpc_indexnode_client.go b/internal/util/mock/grpc_indexnode_client.go index bcae8add92..847a709c5e 100644 --- a/internal/util/mock/grpc_indexnode_client.go +++ b/internal/util/mock/grpc_indexnode_client.go @@ -21,8 +21,8 @@ import ( "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/indexpb" "github.com/milvus-io/milvus/internal/proto/internalpb" ) diff --git a/internal/util/mock/grpc_proxy_client.go b/internal/util/mock/grpc_proxy_client.go index 0ab9d732e0..86365fdf4e 100644 --- a/internal/util/mock/grpc_proxy_client.go +++ b/internal/util/mock/grpc_proxy_client.go @@ -21,8 +21,8 @@ import ( "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/proxypb" ) diff --git a/internal/util/mock/grpc_querycoord_client.go b/internal/util/mock/grpc_querycoord_client.go index 5e75650cbe..d99676e59b 100644 --- a/internal/util/mock/grpc_querycoord_client.go +++ b/internal/util/mock/grpc_querycoord_client.go @@ -21,8 +21,8 @@ import ( "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" ) diff --git a/internal/util/mock/grpc_querynode_client.go b/internal/util/mock/grpc_querynode_client.go index 8db1708fe5..dade724ac5 100644 --- a/internal/util/mock/grpc_querynode_client.go +++ b/internal/util/mock/grpc_querynode_client.go @@ -21,8 +21,8 @@ import ( "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" ) diff --git a/internal/util/mock/grpc_rootcoord_client.go b/internal/util/mock/grpc_rootcoord_client.go index 15051ea466..473bd65d11 100644 --- a/internal/util/mock/grpc_rootcoord_client.go +++ b/internal/util/mock/grpc_rootcoord_client.go @@ -21,8 +21,8 @@ import ( "google.golang.org/grpc" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/proxypb" diff --git a/internal/util/mock/querynode_client.go b/internal/util/mock/querynode_client.go index 323159f55f..2f2dd6dfa6 100644 --- a/internal/util/mock/querynode_client.go +++ b/internal/util/mock/querynode_client.go @@ -19,8 +19,8 @@ package mock import ( "context" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/milvuspb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/milvuspb" "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/querypb" "github.com/milvus-io/milvus/internal/types" diff --git a/internal/util/typeutil/data_format.go b/internal/util/typeutil/data_format.go index 4d0201216b..e41782a75e 100644 --- a/internal/util/typeutil/data_format.go +++ b/internal/util/typeutil/data_format.go @@ -23,8 +23,8 @@ import ( "fmt" "reflect" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "go.uber.org/zap" diff --git a/internal/util/typeutil/data_format_test.go b/internal/util/typeutil/data_format_test.go index 352c972dfe..030c66a649 100644 --- a/internal/util/typeutil/data_format_test.go +++ b/internal/util/typeutil/data_format_test.go @@ -24,8 +24,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" ) func TestTransferColumnBasedDataToRowBasedData(t *testing.T) { diff --git a/internal/util/typeutil/hash.go b/internal/util/typeutil/hash.go index ac1c7e84c5..008922f05b 100644 --- a/internal/util/typeutil/hash.go +++ b/internal/util/typeutil/hash.go @@ -22,7 +22,7 @@ import ( "github.com/spaolacci/murmur3" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" ) diff --git a/internal/util/typeutil/hash_test.go b/internal/util/typeutil/hash_test.go index 3dd674ff53..1cba6236e3 100644 --- a/internal/util/typeutil/hash_test.go +++ b/internal/util/typeutil/hash_test.go @@ -21,7 +21,7 @@ import ( "testing" "unsafe" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/stretchr/testify/assert" ) diff --git a/internal/util/typeutil/index.go b/internal/util/typeutil/index.go index 0bffd53c10..c652151e4b 100644 --- a/internal/util/typeutil/index.go +++ b/internal/util/typeutil/index.go @@ -16,7 +16,7 @@ package typeutil -import "github.com/milvus-io/milvus/api/commonpb" +import "github.com/milvus-io/milvus-proto/go-api/commonpb" // CompareIndexParams compares indexParam1 with indexParam2. When all keys of indexParam1 exist in indexParam2, // and the corresponding value are the same as in indexParam2, return true diff --git a/internal/util/typeutil/index_test.go b/internal/util/typeutil/index_test.go index ab3073cbb6..b8f3cd19ec 100644 --- a/internal/util/typeutil/index_test.go +++ b/internal/util/typeutil/index_test.go @@ -19,7 +19,7 @@ package typeutil import ( "testing" - "github.com/milvus-io/milvus/api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" "github.com/stretchr/testify/assert" ) diff --git a/internal/util/typeutil/schema.go b/internal/util/typeutil/schema.go index e2499af04f..5449963303 100644 --- a/internal/util/typeutil/schema.go +++ b/internal/util/typeutil/schema.go @@ -22,7 +22,7 @@ import ( "math" "strconv" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/log" "go.uber.org/zap" ) diff --git a/internal/util/typeutil/schema_test.go b/internal/util/typeutil/schema_test.go index 5ca217046e..020af9a526 100644 --- a/internal/util/typeutil/schema_test.go +++ b/internal/util/typeutil/schema_test.go @@ -22,8 +22,8 @@ import ( "go.uber.org/zap" - "github.com/milvus-io/milvus/api/commonpb" - "github.com/milvus-io/milvus/api/schemapb" + "github.com/milvus-io/milvus-proto/go-api/commonpb" + "github.com/milvus-io/milvus-proto/go-api/schemapb" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/log" "github.com/stretchr/testify/assert" diff --git a/scripts/download_milvus_proto.sh b/scripts/download_milvus_proto.sh new file mode 100644 index 0000000000..7358b02e03 --- /dev/null +++ b/scripts/download_milvus_proto.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +SCRIPTS_DIR=$(dirname "$0") +THIRD_PARTY_DIR=$SCRIPTS_DIR/../cmake_build/thirdparty/ + +mkdir -p $THIRD_PARTY_DIR + +pushd $THIRD_PARTY_DIR + +rm -rf milvus-proto + +git clone -b $GIT_BRANCH https://github.com/milvus-io/milvus-proto.git + +popd \ No newline at end of file diff --git a/scripts/proto_gen_go.sh b/scripts/proto_gen_go.sh index 508464c3b1..ca19f1dd8d 100755 --- a/scripts/proto_gen_go.sh +++ b/scripts/proto_gen_go.sh @@ -20,6 +20,7 @@ SCRIPTS_DIR=$(dirname "$0") PROTO_DIR=$SCRIPTS_DIR/../internal/proto/ GOOGLE_PROTO_DIR=$SCRIPTS_DIR/../cmake_build/thirdparty/protobuf/protobuf-src/src/ +API_PROTO_DIR=$SCRIPTS_DIR/../cmake_build/thirdparty/milvus-proto/proto/ PROGRAM=$(basename "$0") GOPATH=$(go env GOPATH) @@ -35,13 +36,10 @@ echo `which protoc-gen-go` # official go code ship with the crate, so we need to generate it manually. pushd ${PROTO_DIR} -mkdir -p ../../api/commonpb -mkdir -p ../../api/schemapb mkdir -p etcdpb mkdir -p indexcgopb mkdir -p internalpb -mkdir -p ../../api/milvuspb mkdir -p rootcoordpb mkdir -p segcorepb @@ -54,28 +52,30 @@ mkdir -p planpb mkdir -p ../../cmd/tools/migration/legacy/legacypb -${protoc} --proto_path="${GOOGLE_PROTO_DIR}" --proto_path=. \ - --go_opt="Mmilvus.proto=github.com/milvus-io/milvus/api/milvuspb;milvuspb" \ - --go_opt=Mcommon.proto=github.com/milvus-io/milvus/api/commonpb \ - --go_opt=Mschema.proto=github.com/milvus-io/milvus/api/schemapb \ - --go_out=plugins=grpc,paths=source_relative:./../../api/milvuspb milvus.proto +#${protoc} --proto_path="${GOOGLE_PROTO_DIR}" --proto_path=. \ +# --go_opt="Mmilvus.proto=github.com/milvus-io/milvus/api/milvuspb;milvuspb" \ +# --go_opt=Mcommon.proto=github.com/milvus-io/milvus/api/commonpb \ +# --go_opt=Mschema.proto=github.com/milvus-io/milvus/api/schemapb \ +# --go_out=plugins=grpc,paths=source_relative:./../../api/milvuspb milvus.proto +# +#${protoc} --proto_path="${GOOGLE_PROTO_DIR}" --proto_path=. \ +# --go_opt=Mmilvus.proto=github.com/milvus-io/milvus/api/milvuspb \ +# --go_opt=Mcommon.proto=github.com/milvus-io/milvus/api/commonpb \ +# --go_opt="Mschema.proto=github.com/milvus-io/milvus/api/schemapb;schemapb" \ +# --go_out=plugins=grpc,paths=source_relative:./../../api/schemapb schema.proto +# +#${protoc} --proto_path="${GOOGLE_PROTO_DIR}" --proto_path=. \ +# --go_opt=Mmilvus.proto=github.com/milvus-io/milvus/api/milvuspb \ +# --go_opt="Mcommon.proto=github.com/milvus-io/milvus/api/commonpb;commonpb" \ +# --go_opt=Mschema.proto=github.com/milvus-io/milvus/api/schemapb \ +# --go_out=plugins=grpc,paths=source_relative:./../../api/commonpb common.proto -${protoc} --proto_path="${GOOGLE_PROTO_DIR}" --proto_path=. \ - --go_opt=Mmilvus.proto=github.com/milvus-io/milvus/api/milvuspb \ - --go_opt=Mcommon.proto=github.com/milvus-io/milvus/api/commonpb \ - --go_opt="Mschema.proto=github.com/milvus-io/milvus/api/schemapb;schemapb" \ - --go_out=plugins=grpc,paths=source_relative:./../../api/schemapb schema.proto +#protoc_opt="${protoc} --proto_path=${GOOGLE_PROTO_DIR} --proto_path=${API_PROTO_DIR} --proto_path=. +# --go_opt=Mmilvus.proto=github.com/milvus-io/milvus/api/milvuspb +# --go_opt=Mcommon.proto=github.com/milvus-io/milvus/api/commonpb +# --go_opt=Mschema.proto=github.com/milvus-io/milvus/api/schemapb" -${protoc} --proto_path="${GOOGLE_PROTO_DIR}" --proto_path=. \ - --go_opt=Mmilvus.proto=github.com/milvus-io/milvus/api/milvuspb \ - --go_opt="Mcommon.proto=github.com/milvus-io/milvus/api/commonpb;commonpb" \ - --go_opt=Mschema.proto=github.com/milvus-io/milvus/api/schemapb \ - --go_out=plugins=grpc,paths=source_relative:./../../api/commonpb common.proto - -protoc_opt="${protoc} --proto_path=${GOOGLE_PROTO_DIR} --proto_path=. - --go_opt=Mmilvus.proto=github.com/milvus-io/milvus/api/milvuspb - --go_opt=Mcommon.proto=github.com/milvus-io/milvus/api/commonpb - --go_opt=Mschema.proto=github.com/milvus-io/milvus/api/schemapb" +protoc_opt="${protoc} --proto_path=${GOOGLE_PROTO_DIR} --proto_path=${API_PROTO_DIR} --proto_path=." ${protoc_opt} --go_out=plugins=grpc,paths=source_relative:./etcdpb etcd_meta.proto ${protoc_opt} --go_out=plugins=grpc,paths=source_relative:./indexcgopb index_cgo_msg.proto diff --git a/scripts/update_api_version.sh b/scripts/update_api_version.sh index eaf428eea9..31e141814a 100755 --- a/scripts/update_api_version.sh +++ b/scripts/update_api_version.sh @@ -5,12 +5,13 @@ function line() echo "----------------------------" } -line -echo "Get the latest commitID" -commitID=`git rev-parse --short HEAD` -echo $commitID - line echo "Update the milvus/api version" -go mod edit -dropreplace=github.com/milvus-io/milvus/api -go get github.com/milvus-io/milvus/api@$commitID \ No newline at end of file +commitID=$(git ls-remote https://github.com/milvus-io/milvus-proto.git refs/heads/$GIT_BRANCH | cut -f 1) +go get github.com/milvus-io/milvus-proto/go-api@$commitID + +SCRIPTS_DIR=$(dirname "$0") +EXAMPLE_DIR=$SCRIPTS_DIR/../cmake_build/thirdparty/protobuf/protobuf-src/examples +rm -rf $EXAMPLE_DIR +go mod tidy +go get github.com/quasilyte/go-ruleguard/dsl@v0.3.21 \ No newline at end of file