@zilliz/milvus2-sdk-node 2.5.8 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/milvus/MilvusLiteClient.d.ts +5 -0
- package/dist/milvus/MilvusLiteClient.js +40 -0
- package/dist/milvus/MilvusLiteClient.js.map +1 -0
- package/dist/milvus/const/milvus.d.ts +4 -0
- package/dist/milvus/const/milvus.js +6 -1
- package/dist/milvus/const/milvus.js.map +1 -1
- package/dist/milvus/grpc/BaseClient.d.ts +0 -4
- package/dist/milvus/grpc/BaseClient.js +11 -20
- package/dist/milvus/grpc/BaseClient.js.map +1 -1
- package/dist/milvus/grpc/Data.js +7 -1
- package/dist/milvus/grpc/Data.js.map +1 -1
- package/dist/milvus/grpc/GrpcClient.d.ts +7 -1
- package/dist/milvus/grpc/GrpcClient.js +15 -1
- package/dist/milvus/grpc/GrpcClient.js.map +1 -1
- package/dist/milvus/index.d.ts +1 -0
- package/dist/milvus/index.js +1 -0
- package/dist/milvus/index.js.map +1 -1
- package/dist/milvus/lite/MilvusLiteServer.d.ts +11 -0
- package/dist/milvus/lite/MilvusLiteServer.js +201 -0
- package/dist/milvus/lite/MilvusLiteServer.js.map +1 -0
- package/dist/milvus/lite/start.py +66 -0
- package/dist/milvus/proto-json/milvus.base.d.ts +7115 -0
- package/dist/milvus/proto-json/milvus.base.js +7231 -0
- package/dist/milvus/proto-json/milvus.base.js.map +1 -0
- package/dist/milvus/proto-json/milvus.d.ts +7115 -0
- package/dist/milvus/proto-json/milvus.js +7231 -0
- package/dist/milvus/proto-json/milvus.js.map +1 -0
- package/dist/milvus/proto-json/schema.base.d.ts +2030 -0
- package/dist/milvus/proto-json/schema.base.js +2133 -0
- package/dist/milvus/proto-json/schema.base.js.map +1 -0
- package/dist/milvus/types/Client.d.ts +23 -4
- package/dist/milvus/types/Collection.d.ts +1 -0
- package/dist/milvus/types/Data.d.ts +1 -0
- package/dist/milvus/types/Http.d.ts +1 -0
- package/dist/milvus/types/Partition.d.ts +2 -0
- package/dist/milvus/utils/Grpc.d.ts +0 -1
- package/dist/milvus/utils/Grpc.js +16 -10
- package/dist/milvus/utils/Grpc.js.map +1 -1
- package/dist/sdk.json +1 -1
- package/package.json +8 -5
- package/dist/proto/proto/common.proto +0 -511
- package/dist/proto/proto/feder.proto +0 -40
- package/dist/proto/proto/google/protobuf/descriptor.proto +0 -1417
- package/dist/proto/proto/milvus.proto +0 -2106
- package/dist/proto/proto/msg.proto +0 -133
- package/dist/proto/proto/rg.proto +0 -35
- package/dist/proto/proto/schema.proto +0 -257
|
@@ -1,511 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package milvus.proto.common;
|
|
3
|
-
|
|
4
|
-
option go_package="github.com/milvus-io/milvus-proto/go-api/v2/commonpb";
|
|
5
|
-
|
|
6
|
-
option java_multiple_files = true;
|
|
7
|
-
option java_package = "io.milvus.grpc";
|
|
8
|
-
option java_outer_classname = "CommonProto";
|
|
9
|
-
option java_generate_equals_and_hash = true;
|
|
10
|
-
|
|
11
|
-
option csharp_namespace = "Milvus.Client.Grpc";
|
|
12
|
-
|
|
13
|
-
import "google/protobuf/descriptor.proto";
|
|
14
|
-
|
|
15
|
-
// Deprecated
|
|
16
|
-
enum ErrorCode {
|
|
17
|
-
option deprecated = true;
|
|
18
|
-
Success = 0;
|
|
19
|
-
UnexpectedError = 1;
|
|
20
|
-
ConnectFailed = 2;
|
|
21
|
-
PermissionDenied = 3;
|
|
22
|
-
CollectionNotExists = 4;
|
|
23
|
-
IllegalArgument = 5;
|
|
24
|
-
IllegalDimension = 7;
|
|
25
|
-
IllegalIndexType = 8;
|
|
26
|
-
IllegalCollectionName = 9;
|
|
27
|
-
IllegalTOPK = 10;
|
|
28
|
-
IllegalRowRecord = 11;
|
|
29
|
-
IllegalVectorID = 12;
|
|
30
|
-
IllegalSearchResult = 13;
|
|
31
|
-
FileNotFound = 14;
|
|
32
|
-
MetaFailed = 15;
|
|
33
|
-
CacheFailed = 16;
|
|
34
|
-
CannotCreateFolder = 17;
|
|
35
|
-
CannotCreateFile = 18;
|
|
36
|
-
CannotDeleteFolder = 19;
|
|
37
|
-
CannotDeleteFile = 20;
|
|
38
|
-
BuildIndexError = 21;
|
|
39
|
-
IllegalNLIST = 22;
|
|
40
|
-
IllegalMetricType = 23;
|
|
41
|
-
OutOfMemory = 24;
|
|
42
|
-
IndexNotExist = 25;
|
|
43
|
-
EmptyCollection = 26;
|
|
44
|
-
UpdateImportTaskFailure = 27;
|
|
45
|
-
CollectionNameNotFound = 28;
|
|
46
|
-
CreateCredentialFailure = 29;
|
|
47
|
-
UpdateCredentialFailure = 30;
|
|
48
|
-
DeleteCredentialFailure = 31;
|
|
49
|
-
GetCredentialFailure = 32;
|
|
50
|
-
ListCredUsersFailure = 33;
|
|
51
|
-
GetUserFailure = 34;
|
|
52
|
-
CreateRoleFailure = 35;
|
|
53
|
-
DropRoleFailure = 36;
|
|
54
|
-
OperateUserRoleFailure = 37;
|
|
55
|
-
SelectRoleFailure = 38;
|
|
56
|
-
SelectUserFailure = 39;
|
|
57
|
-
SelectResourceFailure = 40;
|
|
58
|
-
OperatePrivilegeFailure = 41;
|
|
59
|
-
SelectGrantFailure = 42;
|
|
60
|
-
RefreshPolicyInfoCacheFailure = 43;
|
|
61
|
-
ListPolicyFailure = 44;
|
|
62
|
-
NotShardLeader = 45;
|
|
63
|
-
NoReplicaAvailable = 46;
|
|
64
|
-
SegmentNotFound = 47;
|
|
65
|
-
ForceDeny = 48;
|
|
66
|
-
RateLimit = 49;
|
|
67
|
-
NodeIDNotMatch = 50;
|
|
68
|
-
UpsertAutoIDTrue = 51;
|
|
69
|
-
InsufficientMemoryToLoad = 52;
|
|
70
|
-
MemoryQuotaExhausted = 53;
|
|
71
|
-
DiskQuotaExhausted = 54;
|
|
72
|
-
TimeTickLongDelay = 55;
|
|
73
|
-
NotReadyServe = 56;
|
|
74
|
-
// Coord is switching from standby mode to active mode
|
|
75
|
-
NotReadyCoordActivating = 57;
|
|
76
|
-
CreatePrivilegeGroupFailure = 58;
|
|
77
|
-
DropPrivilegeGroupFailure = 59;
|
|
78
|
-
ListPrivilegeGroupsFailure = 60;
|
|
79
|
-
OperatePrivilegeGroupFailure = 61;
|
|
80
|
-
SchemaMismatch = 62;
|
|
81
|
-
// Service availability.
|
|
82
|
-
// NA: Not Available.
|
|
83
|
-
DataCoordNA = 100;
|
|
84
|
-
|
|
85
|
-
// internal error code.
|
|
86
|
-
DDRequestRace = 1000;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
enum IndexState {
|
|
90
|
-
IndexStateNone = 0;
|
|
91
|
-
Unissued = 1;
|
|
92
|
-
InProgress = 2;
|
|
93
|
-
Finished = 3;
|
|
94
|
-
Failed = 4;
|
|
95
|
-
Retry = 5;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
enum SegmentState {
|
|
99
|
-
SegmentStateNone = 0;
|
|
100
|
-
NotExist = 1;
|
|
101
|
-
Growing = 2;
|
|
102
|
-
Sealed = 3;
|
|
103
|
-
Flushed = 4;
|
|
104
|
-
Flushing = 5;
|
|
105
|
-
Dropped = 6;
|
|
106
|
-
Importing = 7;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
enum SegmentLevel {
|
|
110
|
-
Legacy = 0; // zero value for legacy logic
|
|
111
|
-
L0 = 1; // L0 segment, contains delta data for current channel
|
|
112
|
-
L1 = 2; // L1 segment, normal segment, with no extra compaction attribute
|
|
113
|
-
L2 = 3; // L2 segment, segment with extra data distribution info
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
message Status {
|
|
117
|
-
ErrorCode error_code = 1 [deprecated=true];
|
|
118
|
-
string reason = 2;
|
|
119
|
-
int32 code = 3;
|
|
120
|
-
bool retriable = 4;
|
|
121
|
-
string detail = 5;
|
|
122
|
-
map<string, string> extra_info = 6;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
message KeyValuePair {
|
|
126
|
-
string key = 1;
|
|
127
|
-
string value = 2;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
message KeyDataPair {
|
|
131
|
-
string key = 1;
|
|
132
|
-
bytes data = 2;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
message Blob {
|
|
136
|
-
bytes value = 1;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
enum PlaceholderType {
|
|
140
|
-
None = 0;
|
|
141
|
-
BinaryVector = 100;
|
|
142
|
-
FloatVector = 101;
|
|
143
|
-
Float16Vector = 102;
|
|
144
|
-
BFloat16Vector = 103;
|
|
145
|
-
SparseFloatVector = 104;
|
|
146
|
-
Int64 = 5;
|
|
147
|
-
VarChar = 21;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
message PlaceholderValue {
|
|
151
|
-
string tag = 1;
|
|
152
|
-
PlaceholderType type = 2;
|
|
153
|
-
// values is a 2d-array of nq rows, every row contains a query vector.
|
|
154
|
-
// for dense vector, all rows are of the same length; for sparse vector,
|
|
155
|
-
// the length of each row may vary depending on their number of non-zeros.
|
|
156
|
-
repeated bytes values = 3;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
message PlaceholderGroup {
|
|
160
|
-
repeated PlaceholderValue placeholders = 1;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
message Address {
|
|
165
|
-
string ip = 1;
|
|
166
|
-
int64 port = 2;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
enum MsgType {
|
|
170
|
-
Undefined = 0;
|
|
171
|
-
/* DEFINITION REQUESTS: COLLECTION */
|
|
172
|
-
CreateCollection = 100;
|
|
173
|
-
DropCollection = 101;
|
|
174
|
-
HasCollection = 102;
|
|
175
|
-
DescribeCollection = 103;
|
|
176
|
-
ShowCollections = 104;
|
|
177
|
-
GetSystemConfigs = 105;
|
|
178
|
-
LoadCollection = 106;
|
|
179
|
-
ReleaseCollection = 107;
|
|
180
|
-
CreateAlias = 108;
|
|
181
|
-
DropAlias = 109;
|
|
182
|
-
AlterAlias = 110;
|
|
183
|
-
AlterCollection = 111;
|
|
184
|
-
RenameCollection = 112;
|
|
185
|
-
DescribeAlias = 113;
|
|
186
|
-
ListAliases = 114;
|
|
187
|
-
AlterCollectionField = 115;
|
|
188
|
-
|
|
189
|
-
/* DEFINITION REQUESTS: PARTITION */
|
|
190
|
-
CreatePartition = 200;
|
|
191
|
-
DropPartition = 201;
|
|
192
|
-
HasPartition = 202;
|
|
193
|
-
DescribePartition = 203;
|
|
194
|
-
ShowPartitions = 204;
|
|
195
|
-
LoadPartitions = 205;
|
|
196
|
-
ReleasePartitions = 206;
|
|
197
|
-
|
|
198
|
-
/* DEFINE REQUESTS: SEGMENT */
|
|
199
|
-
ShowSegments = 250;
|
|
200
|
-
DescribeSegment = 251;
|
|
201
|
-
LoadSegments = 252;
|
|
202
|
-
ReleaseSegments = 253;
|
|
203
|
-
HandoffSegments = 254;
|
|
204
|
-
LoadBalanceSegments = 255;
|
|
205
|
-
DescribeSegments = 256;
|
|
206
|
-
FederListIndexedSegment = 257;
|
|
207
|
-
FederDescribeSegmentIndexData = 258;
|
|
208
|
-
|
|
209
|
-
/* DEFINITION REQUESTS: INDEX */
|
|
210
|
-
CreateIndex = 300;
|
|
211
|
-
DescribeIndex = 301;
|
|
212
|
-
DropIndex = 302;
|
|
213
|
-
GetIndexStatistics = 303;
|
|
214
|
-
AlterIndex = 304;
|
|
215
|
-
|
|
216
|
-
/* MANIPULATION REQUESTS */
|
|
217
|
-
Insert = 400;
|
|
218
|
-
Delete = 401;
|
|
219
|
-
Flush = 402;
|
|
220
|
-
ResendSegmentStats = 403;
|
|
221
|
-
Upsert = 404;
|
|
222
|
-
ManualFlush = 405; // streaming service new msg type for internal usage compatible
|
|
223
|
-
FlushSegment = 406; // streaming service new msg type for internal usage compatible
|
|
224
|
-
CreateSegment = 407; // streaming service new msg type for internal usage compatible
|
|
225
|
-
Import = 408;
|
|
226
|
-
|
|
227
|
-
/* QUERY */
|
|
228
|
-
Search = 500;
|
|
229
|
-
SearchResult = 501;
|
|
230
|
-
GetIndexState = 502;
|
|
231
|
-
GetIndexBuildProgress = 503;
|
|
232
|
-
GetCollectionStatistics = 504;
|
|
233
|
-
GetPartitionStatistics = 505;
|
|
234
|
-
Retrieve = 506;
|
|
235
|
-
RetrieveResult = 507;
|
|
236
|
-
WatchDmChannels = 508;
|
|
237
|
-
RemoveDmChannels = 509;
|
|
238
|
-
WatchQueryChannels = 510;
|
|
239
|
-
RemoveQueryChannels = 511;
|
|
240
|
-
SealedSegmentsChangeInfo = 512;
|
|
241
|
-
WatchDeltaChannels = 513;
|
|
242
|
-
GetShardLeaders = 514;
|
|
243
|
-
GetReplicas = 515;
|
|
244
|
-
UnsubDmChannel = 516;
|
|
245
|
-
GetDistribution = 517;
|
|
246
|
-
SyncDistribution = 518;
|
|
247
|
-
|
|
248
|
-
/* DATA SERVICE */
|
|
249
|
-
SegmentInfo = 600;
|
|
250
|
-
SystemInfo = 601;
|
|
251
|
-
GetRecoveryInfo = 602;
|
|
252
|
-
GetSegmentState = 603;
|
|
253
|
-
|
|
254
|
-
/* SYSTEM CONTROL */
|
|
255
|
-
TimeTick = 1200;
|
|
256
|
-
QueryNodeStats = 1201; // GOOSE TODO: Remove kQueryNodeStats
|
|
257
|
-
LoadIndex = 1202;
|
|
258
|
-
RequestID = 1203;
|
|
259
|
-
RequestTSO = 1204;
|
|
260
|
-
AllocateSegment = 1205;
|
|
261
|
-
SegmentStatistics = 1206;
|
|
262
|
-
SegmentFlushDone = 1207;
|
|
263
|
-
|
|
264
|
-
DataNodeTt = 1208;
|
|
265
|
-
Connect = 1209;
|
|
266
|
-
ListClientInfos = 1210;
|
|
267
|
-
AllocTimestamp = 1211;
|
|
268
|
-
Replicate = 1212;
|
|
269
|
-
|
|
270
|
-
/* Credential */
|
|
271
|
-
CreateCredential = 1500;
|
|
272
|
-
GetCredential = 1501;
|
|
273
|
-
DeleteCredential = 1502;
|
|
274
|
-
UpdateCredential = 1503;
|
|
275
|
-
ListCredUsernames = 1504;
|
|
276
|
-
|
|
277
|
-
/* RBAC */
|
|
278
|
-
CreateRole = 1600;
|
|
279
|
-
DropRole = 1601;
|
|
280
|
-
OperateUserRole = 1602;
|
|
281
|
-
SelectRole = 1603;
|
|
282
|
-
SelectUser = 1604;
|
|
283
|
-
SelectResource = 1605;
|
|
284
|
-
OperatePrivilege = 1606;
|
|
285
|
-
SelectGrant = 1607;
|
|
286
|
-
RefreshPolicyInfoCache = 1608;
|
|
287
|
-
ListPolicy = 1609;
|
|
288
|
-
CreatePrivilegeGroup = 1610;
|
|
289
|
-
DropPrivilegeGroup = 1611;
|
|
290
|
-
ListPrivilegeGroups = 1612;
|
|
291
|
-
OperatePrivilegeGroup = 1613;
|
|
292
|
-
OperatePrivilegeV2 = 1614;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
/* Resource group */
|
|
296
|
-
CreateResourceGroup = 1700;
|
|
297
|
-
DropResourceGroup = 1701;
|
|
298
|
-
ListResourceGroups = 1702;
|
|
299
|
-
DescribeResourceGroup = 1703;
|
|
300
|
-
TransferNode = 1704;
|
|
301
|
-
TransferReplica = 1705;
|
|
302
|
-
UpdateResourceGroups = 1706;
|
|
303
|
-
|
|
304
|
-
/* Database group */
|
|
305
|
-
CreateDatabase = 1801;
|
|
306
|
-
DropDatabase = 1802;
|
|
307
|
-
ListDatabases = 1803;
|
|
308
|
-
AlterDatabase = 1804;
|
|
309
|
-
DescribeDatabase = 1805;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
message MsgBase {
|
|
313
|
-
MsgType msg_type = 1;
|
|
314
|
-
int64 msgID = 2;
|
|
315
|
-
uint64 timestamp = 3;
|
|
316
|
-
int64 sourceID = 4;
|
|
317
|
-
int64 targetID = 5;
|
|
318
|
-
map<string, string> properties = 6;
|
|
319
|
-
ReplicateInfo replicateInfo = 7;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
message ReplicateInfo {
|
|
323
|
-
bool isReplicate = 1;
|
|
324
|
-
uint64 msgTimestamp = 2;
|
|
325
|
-
string replicateID = 3;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
enum DslType {
|
|
329
|
-
Dsl = 0;
|
|
330
|
-
BoolExprV1 = 1;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
// Don't Modify This. @czs
|
|
334
|
-
message MsgHeader {
|
|
335
|
-
common.MsgBase base = 1;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
// Don't Modify This. @czs
|
|
339
|
-
message DMLMsgHeader {
|
|
340
|
-
common.MsgBase base = 1;
|
|
341
|
-
string shardName = 2;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
enum CompactionState {
|
|
345
|
-
UndefiedState = 0;
|
|
346
|
-
Executing = 1;
|
|
347
|
-
Completed = 2;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
enum ConsistencyLevel {
|
|
351
|
-
Strong = 0;
|
|
352
|
-
Session = 1; // default in PyMilvus
|
|
353
|
-
Bounded = 2;
|
|
354
|
-
Eventually = 3;
|
|
355
|
-
Customized = 4; // Users pass their own `guarantee_timestamp`.
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
enum ImportState {
|
|
359
|
-
ImportPending = 0; // the task in in pending list of rootCoord, waiting to be executed
|
|
360
|
-
ImportFailed = 1; // the task failed for some reason, get detail reason from GetImportStateResponse.infos
|
|
361
|
-
ImportStarted = 2; // the task has been sent to datanode to execute
|
|
362
|
-
ImportPersisted = 5; // all data files have been parsed and all meta data already persisted, ready to be flushed.
|
|
363
|
-
ImportFlushed = 8; // all segments are successfully flushed.
|
|
364
|
-
ImportCompleted = 6; // all indexes are successfully built and segments are able to be compacted as normal.
|
|
365
|
-
ImportFailedAndCleaned = 7; // the task failed and all segments it generated are cleaned up.
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
enum ObjectType {
|
|
369
|
-
Collection = 0;
|
|
370
|
-
Global = 1;
|
|
371
|
-
User = 2;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
enum ObjectPrivilege {
|
|
375
|
-
PrivilegeAll = 0;
|
|
376
|
-
PrivilegeCreateCollection = 1;
|
|
377
|
-
PrivilegeDropCollection = 2;
|
|
378
|
-
PrivilegeDescribeCollection = 3;
|
|
379
|
-
PrivilegeShowCollections = 4;
|
|
380
|
-
PrivilegeLoad = 5;
|
|
381
|
-
PrivilegeRelease = 6;
|
|
382
|
-
PrivilegeCompaction = 7;
|
|
383
|
-
PrivilegeInsert = 8;
|
|
384
|
-
PrivilegeDelete = 9;
|
|
385
|
-
|
|
386
|
-
PrivilegeGetStatistics = 10;
|
|
387
|
-
PrivilegeCreateIndex = 11;
|
|
388
|
-
PrivilegeIndexDetail = 12;
|
|
389
|
-
PrivilegeDropIndex = 13;
|
|
390
|
-
PrivilegeSearch = 14;
|
|
391
|
-
PrivilegeFlush = 15;
|
|
392
|
-
PrivilegeQuery = 16;
|
|
393
|
-
PrivilegeLoadBalance = 17;
|
|
394
|
-
PrivilegeImport = 18;
|
|
395
|
-
PrivilegeCreateOwnership = 19;
|
|
396
|
-
PrivilegeUpdateUser = 20;
|
|
397
|
-
PrivilegeDropOwnership = 21;
|
|
398
|
-
PrivilegeSelectOwnership = 22;
|
|
399
|
-
PrivilegeManageOwnership = 23;
|
|
400
|
-
PrivilegeSelectUser = 24;
|
|
401
|
-
PrivilegeUpsert = 25;
|
|
402
|
-
PrivilegeCreateResourceGroup = 26;
|
|
403
|
-
PrivilegeDropResourceGroup = 27;
|
|
404
|
-
PrivilegeDescribeResourceGroup = 28;
|
|
405
|
-
PrivilegeListResourceGroups = 29;
|
|
406
|
-
PrivilegeTransferNode = 30;
|
|
407
|
-
PrivilegeTransferReplica = 31;
|
|
408
|
-
PrivilegeGetLoadingProgress = 32;
|
|
409
|
-
PrivilegeGetLoadState = 33;
|
|
410
|
-
|
|
411
|
-
PrivilegeRenameCollection = 34;
|
|
412
|
-
PrivilegeCreateDatabase = 35;
|
|
413
|
-
PrivilegeDropDatabase = 36;
|
|
414
|
-
PrivilegeListDatabases = 37;
|
|
415
|
-
PrivilegeFlushAll = 38;
|
|
416
|
-
|
|
417
|
-
PrivilegeCreatePartition = 39;
|
|
418
|
-
PrivilegeDropPartition = 40;
|
|
419
|
-
PrivilegeShowPartitions = 41;
|
|
420
|
-
PrivilegeHasPartition = 42;
|
|
421
|
-
PrivilegeGetFlushState = 43;
|
|
422
|
-
PrivilegeCreateAlias = 44;
|
|
423
|
-
PrivilegeDropAlias = 45;
|
|
424
|
-
PrivilegeDescribeAlias = 46;
|
|
425
|
-
PrivilegeListAliases = 47;
|
|
426
|
-
|
|
427
|
-
PrivilegeUpdateResourceGroups = 48;
|
|
428
|
-
PrivilegeAlterDatabase = 49;
|
|
429
|
-
PrivilegeDescribeDatabase = 50;
|
|
430
|
-
PrivilegeBackupRBAC = 51;
|
|
431
|
-
PrivilegeRestoreRBAC = 52;
|
|
432
|
-
|
|
433
|
-
PrivilegeGroupReadOnly = 53;
|
|
434
|
-
PrivilegeGroupReadWrite = 54;
|
|
435
|
-
PrivilegeGroupAdmin = 55;
|
|
436
|
-
|
|
437
|
-
PrivilegeCreatePrivilegeGroup = 56;
|
|
438
|
-
PrivilegeDropPrivilegeGroup = 57;
|
|
439
|
-
PrivilegeListPrivilegeGroups = 58;
|
|
440
|
-
PrivilegeOperatePrivilegeGroup = 59;
|
|
441
|
-
|
|
442
|
-
PrivilegeGroupClusterReadOnly = 60;
|
|
443
|
-
PrivilegeGroupClusterReadWrite = 61;
|
|
444
|
-
PrivilegeGroupClusterAdmin = 62;
|
|
445
|
-
PrivilegeGroupDatabaseReadOnly = 63;
|
|
446
|
-
PrivilegeGroupDatabaseReadWrite = 64;
|
|
447
|
-
PrivilegeGroupDatabaseAdmin = 65;
|
|
448
|
-
PrivilegeGroupCollectionReadOnly = 66;
|
|
449
|
-
PrivilegeGroupCollectionReadWrite = 67;
|
|
450
|
-
PrivilegeGroupCollectionAdmin = 68;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
message PrivilegeExt {
|
|
454
|
-
ObjectType object_type = 1;
|
|
455
|
-
ObjectPrivilege object_privilege = 2;
|
|
456
|
-
int32 object_name_index = 3;
|
|
457
|
-
int32 object_name_indexs = 4;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
extend google.protobuf.MessageOptions {
|
|
461
|
-
PrivilegeExt privilege_ext_obj = 1001;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
enum StateCode {
|
|
465
|
-
Initializing = 0;
|
|
466
|
-
Healthy = 1;
|
|
467
|
-
Abnormal = 2;
|
|
468
|
-
StandBy = 3;
|
|
469
|
-
Stopping = 4;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
enum LoadState {
|
|
473
|
-
LoadStateNotExist = 0;
|
|
474
|
-
LoadStateNotLoad = 1;
|
|
475
|
-
LoadStateLoading = 2;
|
|
476
|
-
LoadStateLoaded = 3;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
message SegmentStats {
|
|
480
|
-
int64 SegmentID = 1;
|
|
481
|
-
int64 NumRows = 2;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
message ClientInfo {
|
|
485
|
-
// sdk_type can be `python`, `golang`, `nodejs` and etc. It's not proper to make `sdk_type` an
|
|
486
|
-
// enumerate type, since we cannot always update the enum value everytime when newly sdk is supported.
|
|
487
|
-
string sdk_type = 1;
|
|
488
|
-
string sdk_version = 2;
|
|
489
|
-
string local_time = 3;
|
|
490
|
-
string user = 4;
|
|
491
|
-
string host = 5;
|
|
492
|
-
// reserved for newly-added feature if necessary.
|
|
493
|
-
map<string, string> reserved = 6;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
message ServerInfo {
|
|
497
|
-
string build_tags = 1;
|
|
498
|
-
string build_time = 2;
|
|
499
|
-
string git_commit = 3;
|
|
500
|
-
string go_version = 4;
|
|
501
|
-
string deploy_mode = 5;
|
|
502
|
-
// reserved for newly-added feature if necessary.
|
|
503
|
-
map<string, string> reserved = 6;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
// NodeInfo is used to describe the node information.
|
|
507
|
-
message NodeInfo {
|
|
508
|
-
int64 node_id = 1;
|
|
509
|
-
string address = 2;
|
|
510
|
-
string hostname = 3;
|
|
511
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package milvus.proto.feder;
|
|
3
|
-
option go_package = "github.com/milvus-io/milvus-proto/go-api/v2/federpb";
|
|
4
|
-
|
|
5
|
-
import "common.proto";
|
|
6
|
-
|
|
7
|
-
message SegmentIndexData {
|
|
8
|
-
int64 segmentID = 1;
|
|
9
|
-
string index_data = 2; // data from knownwhere
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
message FederSegmentSearchResult {
|
|
13
|
-
int64 segmentID = 1;
|
|
14
|
-
string visit_info = 2;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
message ListIndexedSegmentRequest {
|
|
18
|
-
common.MsgBase base = 1;
|
|
19
|
-
string collection_name = 2;
|
|
20
|
-
string index_name = 3;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
message ListIndexedSegmentResponse {
|
|
24
|
-
common.Status status = 1;
|
|
25
|
-
repeated int64 segmentIDs = 2;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
message DescribeSegmentIndexDataRequest {
|
|
29
|
-
common.MsgBase base = 1;
|
|
30
|
-
string collection_name = 2;
|
|
31
|
-
string index_name = 3;
|
|
32
|
-
repeated int64 segmentsIDs = 4;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
message DescribeSegmentIndexDataResponse {
|
|
36
|
-
common.Status status = 1;
|
|
37
|
-
// segmentID => segmentIndexData
|
|
38
|
-
map<int64, feder.SegmentIndexData> index_data = 2;
|
|
39
|
-
repeated common.KeyValuePair index_params = 3;
|
|
40
|
-
}
|